xref: /potrace-1.14/configure (revision b3fce824)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for potrace 1.14.
4#
5# Report bugs to <selinger at users.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell [email protected] and selinger at
278$0: users.sourceforge.net 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='potrace'
592PACKAGE_TARNAME='potrace'
593PACKAGE_VERSION='1.14'
594PACKAGE_STRING='potrace 1.14'
595PACKAGE_BUGREPORT='selinger at users.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="src/trace.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
639POTRACELIB_VERSION
640AM_CPPFLAGS
641EXTRA_LIBS
642EXTRA_OBJS
643MKBITMAP
644POTRACE
645DATE
646INSTHEADERS
647INSTLIBS
648CPP
649LT_SYS_LIBRARY_PATH
650OTOOL64
651OTOOL
652LIPO
653NMEDIT
654DSYMUTIL
655MANIFEST_TOOL
656RANLIB
657ac_ct_AR
658AR
659LN_S
660NM
661ac_ct_DUMPBIN
662DUMPBIN
663LD
664FGREP
665EGREP
666GREP
667SED
668LIBTOOL
669OBJDUMP
670DLLTOOL
671AS
672host_os
673host_vendor
674host_cpu
675host
676build_os
677build_vendor
678build_cpu
679build
680CADD
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_BACKSLASH
699AM_DEFAULT_VERBOSITY
700AM_DEFAULT_V
701AM_V
702am__untar
703am__tar
704AMTAR
705am__leading_dot
706SET_MAKE
707AWK
708mkdir_p
709MKDIR_P
710INSTALL_STRIP_PROGRAM
711STRIP
712install_sh
713MAKEINFO
714AUTOHEADER
715AUTOMAKE
716AUTOCONF
717ACLOCAL
718VERSION
719PACKAGE
720CYGPATH_W
721am__isrc
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725target_alias
726host_alias
727build_alias
728LIBS
729ECHO_T
730ECHO_N
731ECHO_C
732DEFS
733mandir
734localedir
735libdir
736psdir
737pdfdir
738dvidir
739htmldir
740infodir
741docdir
742oldincludedir
743includedir
744runstatedir
745localstatedir
746sharedstatedir
747sysconfdir
748datadir
749datarootdir
750libexecdir
751sbindir
752bindir
753program_transform_name
754prefix
755exec_prefix
756PACKAGE_URL
757PACKAGE_BUGREPORT
758PACKAGE_STRING
759PACKAGE_VERSION
760PACKAGE_TARNAME
761PACKAGE_NAME
762PATH_SEPARATOR
763SHELL'
764ac_subst_files=''
765ac_user_opts='
766enable_option_checking
767enable_silent_rules
768enable_dependency_tracking
769with_libpotrace
770enable_shared
771enable_static
772with_pic
773enable_fast_install
774with_aix_soname
775with_gnu_ld
776with_sysroot
777enable_libtool_lock
778enable_zlib
779enable_metric
780enable_a4
781enable_dumb_tty
782'
783      ac_precious_vars='build_alias
784host_alias
785target_alias
786CC
787CFLAGS
788LDFLAGS
789LIBS
790CPPFLAGS
791LT_SYS_LIBRARY_PATH
792CPP'
793
794
795# Initialize some variables set by options.
796ac_init_help=
797ac_init_version=false
798ac_unrecognized_opts=
799ac_unrecognized_sep=
800# The variables have the same names as the options, with
801# dashes changed to underlines.
802cache_file=/dev/null
803exec_prefix=NONE
804no_create=
805no_recursion=
806prefix=NONE
807program_prefix=NONE
808program_suffix=NONE
809program_transform_name=s,x,x,
810silent=
811site=
812srcdir=
813verbose=
814x_includes=NONE
815x_libraries=NONE
816
817# Installation directory options.
818# These are left unexpanded so users can "make install exec_prefix=/foo"
819# and all the variables that are supposed to be based on exec_prefix
820# by default will actually change.
821# Use braces instead of parens because sh, perl, etc. also accept them.
822# (The list follows the same order as the GNU Coding Standards.)
823bindir='${exec_prefix}/bin'
824sbindir='${exec_prefix}/sbin'
825libexecdir='${exec_prefix}/libexec'
826datarootdir='${prefix}/share'
827datadir='${datarootdir}'
828sysconfdir='${prefix}/etc'
829sharedstatedir='${prefix}/com'
830localstatedir='${prefix}/var'
831runstatedir='${localstatedir}/run'
832includedir='${prefix}/include'
833oldincludedir='/usr/include'
834docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835infodir='${datarootdir}/info'
836htmldir='${docdir}'
837dvidir='${docdir}'
838pdfdir='${docdir}'
839psdir='${docdir}'
840libdir='${exec_prefix}/lib'
841localedir='${datarootdir}/locale'
842mandir='${datarootdir}/man'
843
844ac_prev=
845ac_dashdash=
846for ac_option
847do
848  # If the previous option needs an argument, assign it.
849  if test -n "$ac_prev"; then
850    eval $ac_prev=\$ac_option
851    ac_prev=
852    continue
853  fi
854
855  case $ac_option in
856  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857  *=)   ac_optarg= ;;
858  *)    ac_optarg=yes ;;
859  esac
860
861  # Accept the important Cygnus configure options, so we can diagnose typos.
862
863  case $ac_dashdash$ac_option in
864  --)
865    ac_dashdash=yes ;;
866
867  -bindir | --bindir | --bindi | --bind | --bin | --bi)
868    ac_prev=bindir ;;
869  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870    bindir=$ac_optarg ;;
871
872  -build | --build | --buil | --bui | --bu)
873    ac_prev=build_alias ;;
874  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875    build_alias=$ac_optarg ;;
876
877  -cache-file | --cache-file | --cache-fil | --cache-fi \
878  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879    ac_prev=cache_file ;;
880  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882    cache_file=$ac_optarg ;;
883
884  --config-cache | -C)
885    cache_file=config.cache ;;
886
887  -datadir | --datadir | --datadi | --datad)
888    ac_prev=datadir ;;
889  -datadir=* | --datadir=* | --datadi=* | --datad=*)
890    datadir=$ac_optarg ;;
891
892  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893  | --dataroo | --dataro | --datar)
894    ac_prev=datarootdir ;;
895  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897    datarootdir=$ac_optarg ;;
898
899  -disable-* | --disable-*)
900    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901    # Reject names that are not valid shell variable names.
902    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903      as_fn_error $? "invalid feature name: $ac_useropt"
904    ac_useropt_orig=$ac_useropt
905    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906    case $ac_user_opts in
907      *"
908"enable_$ac_useropt"
909"*) ;;
910      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911	 ac_unrecognized_sep=', ';;
912    esac
913    eval enable_$ac_useropt=no ;;
914
915  -docdir | --docdir | --docdi | --doc | --do)
916    ac_prev=docdir ;;
917  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918    docdir=$ac_optarg ;;
919
920  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921    ac_prev=dvidir ;;
922  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923    dvidir=$ac_optarg ;;
924
925  -enable-* | --enable-*)
926    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927    # Reject names that are not valid shell variable names.
928    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929      as_fn_error $? "invalid feature name: $ac_useropt"
930    ac_useropt_orig=$ac_useropt
931    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932    case $ac_user_opts in
933      *"
934"enable_$ac_useropt"
935"*) ;;
936      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937	 ac_unrecognized_sep=', ';;
938    esac
939    eval enable_$ac_useropt=\$ac_optarg ;;
940
941  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943  | --exec | --exe | --ex)
944    ac_prev=exec_prefix ;;
945  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947  | --exec=* | --exe=* | --ex=*)
948    exec_prefix=$ac_optarg ;;
949
950  -gas | --gas | --ga | --g)
951    # Obsolete; use --with-gas.
952    with_gas=yes ;;
953
954  -help | --help | --hel | --he | -h)
955    ac_init_help=long ;;
956  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957    ac_init_help=recursive ;;
958  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959    ac_init_help=short ;;
960
961  -host | --host | --hos | --ho)
962    ac_prev=host_alias ;;
963  -host=* | --host=* | --hos=* | --ho=*)
964    host_alias=$ac_optarg ;;
965
966  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967    ac_prev=htmldir ;;
968  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969  | --ht=*)
970    htmldir=$ac_optarg ;;
971
972  -includedir | --includedir | --includedi | --included | --include \
973  | --includ | --inclu | --incl | --inc)
974    ac_prev=includedir ;;
975  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976  | --includ=* | --inclu=* | --incl=* | --inc=*)
977    includedir=$ac_optarg ;;
978
979  -infodir | --infodir | --infodi | --infod | --info | --inf)
980    ac_prev=infodir ;;
981  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982    infodir=$ac_optarg ;;
983
984  -libdir | --libdir | --libdi | --libd)
985    ac_prev=libdir ;;
986  -libdir=* | --libdir=* | --libdi=* | --libd=*)
987    libdir=$ac_optarg ;;
988
989  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990  | --libexe | --libex | --libe)
991    ac_prev=libexecdir ;;
992  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993  | --libexe=* | --libex=* | --libe=*)
994    libexecdir=$ac_optarg ;;
995
996  -localedir | --localedir | --localedi | --localed | --locale)
997    ac_prev=localedir ;;
998  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999    localedir=$ac_optarg ;;
1000
1001  -localstatedir | --localstatedir | --localstatedi | --localstated \
1002  | --localstate | --localstat | --localsta | --localst | --locals)
1003    ac_prev=localstatedir ;;
1004  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006    localstatedir=$ac_optarg ;;
1007
1008  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009    ac_prev=mandir ;;
1010  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011    mandir=$ac_optarg ;;
1012
1013  -nfp | --nfp | --nf)
1014    # Obsolete; use --without-fp.
1015    with_fp=no ;;
1016
1017  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018  | --no-cr | --no-c | -n)
1019    no_create=yes ;;
1020
1021  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023    no_recursion=yes ;;
1024
1025  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027  | --oldin | --oldi | --old | --ol | --o)
1028    ac_prev=oldincludedir ;;
1029  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032    oldincludedir=$ac_optarg ;;
1033
1034  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035    ac_prev=prefix ;;
1036  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037    prefix=$ac_optarg ;;
1038
1039  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040  | --program-pre | --program-pr | --program-p)
1041    ac_prev=program_prefix ;;
1042  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044    program_prefix=$ac_optarg ;;
1045
1046  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047  | --program-suf | --program-su | --program-s)
1048    ac_prev=program_suffix ;;
1049  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051    program_suffix=$ac_optarg ;;
1052
1053  -program-transform-name | --program-transform-name \
1054  | --program-transform-nam | --program-transform-na \
1055  | --program-transform-n | --program-transform- \
1056  | --program-transform | --program-transfor \
1057  | --program-transfo | --program-transf \
1058  | --program-trans | --program-tran \
1059  | --progr-tra | --program-tr | --program-t)
1060    ac_prev=program_transform_name ;;
1061  -program-transform-name=* | --program-transform-name=* \
1062  | --program-transform-nam=* | --program-transform-na=* \
1063  | --program-transform-n=* | --program-transform-=* \
1064  | --program-transform=* | --program-transfor=* \
1065  | --program-transfo=* | --program-transf=* \
1066  | --program-trans=* | --program-tran=* \
1067  | --progr-tra=* | --program-tr=* | --program-t=*)
1068    program_transform_name=$ac_optarg ;;
1069
1070  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071    ac_prev=pdfdir ;;
1072  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073    pdfdir=$ac_optarg ;;
1074
1075  -psdir | --psdir | --psdi | --psd | --ps)
1076    ac_prev=psdir ;;
1077  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078    psdir=$ac_optarg ;;
1079
1080  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081  | -silent | --silent | --silen | --sile | --sil)
1082    silent=yes ;;
1083
1084  -runstatedir | --runstatedir | --runstatedi | --runstated \
1085  | --runstate | --runstat | --runsta | --runst | --runs \
1086  | --run | --ru | --r)
1087    ac_prev=runstatedir ;;
1088  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1089  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1090  | --run=* | --ru=* | --r=*)
1091    runstatedir=$ac_optarg ;;
1092
1093  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094    ac_prev=sbindir ;;
1095  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096  | --sbi=* | --sb=*)
1097    sbindir=$ac_optarg ;;
1098
1099  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101  | --sharedst | --shareds | --shared | --share | --shar \
1102  | --sha | --sh)
1103    ac_prev=sharedstatedir ;;
1104  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107  | --sha=* | --sh=*)
1108    sharedstatedir=$ac_optarg ;;
1109
1110  -site | --site | --sit)
1111    ac_prev=site ;;
1112  -site=* | --site=* | --sit=*)
1113    site=$ac_optarg ;;
1114
1115  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116    ac_prev=srcdir ;;
1117  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118    srcdir=$ac_optarg ;;
1119
1120  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121  | --syscon | --sysco | --sysc | --sys | --sy)
1122    ac_prev=sysconfdir ;;
1123  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125    sysconfdir=$ac_optarg ;;
1126
1127  -target | --target | --targe | --targ | --tar | --ta | --t)
1128    ac_prev=target_alias ;;
1129  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130    target_alias=$ac_optarg ;;
1131
1132  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133    verbose=yes ;;
1134
1135  -version | --version | --versio | --versi | --vers | -V)
1136    ac_init_version=: ;;
1137
1138  -with-* | --with-*)
1139    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140    # Reject names that are not valid shell variable names.
1141    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142      as_fn_error $? "invalid package name: $ac_useropt"
1143    ac_useropt_orig=$ac_useropt
1144    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145    case $ac_user_opts in
1146      *"
1147"with_$ac_useropt"
1148"*) ;;
1149      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150	 ac_unrecognized_sep=', ';;
1151    esac
1152    eval with_$ac_useropt=\$ac_optarg ;;
1153
1154  -without-* | --without-*)
1155    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156    # Reject names that are not valid shell variable names.
1157    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158      as_fn_error $? "invalid package name: $ac_useropt"
1159    ac_useropt_orig=$ac_useropt
1160    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161    case $ac_user_opts in
1162      *"
1163"with_$ac_useropt"
1164"*) ;;
1165      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166	 ac_unrecognized_sep=', ';;
1167    esac
1168    eval with_$ac_useropt=no ;;
1169
1170  --x)
1171    # Obsolete; use --with-x.
1172    with_x=yes ;;
1173
1174  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175  | --x-incl | --x-inc | --x-in | --x-i)
1176    ac_prev=x_includes ;;
1177  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179    x_includes=$ac_optarg ;;
1180
1181  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183    ac_prev=x_libraries ;;
1184  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186    x_libraries=$ac_optarg ;;
1187
1188  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189Try \`$0 --help' for more information"
1190    ;;
1191
1192  *=*)
1193    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194    # Reject names that are not valid shell variable names.
1195    case $ac_envvar in #(
1196      '' | [0-9]* | *[!_$as_cr_alnum]* )
1197      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198    esac
1199    eval $ac_envvar=\$ac_optarg
1200    export $ac_envvar ;;
1201
1202  *)
1203    # FIXME: should be removed in autoconf 3.0.
1204    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208    ;;
1209
1210  esac
1211done
1212
1213if test -n "$ac_prev"; then
1214  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215  as_fn_error $? "missing argument to $ac_option"
1216fi
1217
1218if test -n "$ac_unrecognized_opts"; then
1219  case $enable_option_checking in
1220    no) ;;
1221    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223  esac
1224fi
1225
1226# Check all directory arguments for consistency.
1227for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228		datadir sysconfdir sharedstatedir localstatedir includedir \
1229		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230		libdir localedir mandir runstatedir
1231do
1232  eval ac_val=\$$ac_var
1233  # Remove trailing slashes.
1234  case $ac_val in
1235    */ )
1236      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237      eval $ac_var=\$ac_val;;
1238  esac
1239  # Be sure to have absolute directory names.
1240  case $ac_val in
1241    [\\/$]* | ?:[\\/]* )  continue;;
1242    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243  esac
1244  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245done
1246
1247# There might be people who depend on the old broken behavior: `$host'
1248# used to hold the argument of --host etc.
1249# FIXME: To remove some day.
1250build=$build_alias
1251host=$host_alias
1252target=$target_alias
1253
1254# FIXME: To remove some day.
1255if test "x$host_alias" != x; then
1256  if test "x$build_alias" = x; then
1257    cross_compiling=maybe
1258  elif test "x$build_alias" != "x$host_alias"; then
1259    cross_compiling=yes
1260  fi
1261fi
1262
1263ac_tool_prefix=
1264test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266test "$silent" = yes && exec 6>/dev/null
1267
1268
1269ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270ac_ls_di=`ls -di .` &&
1271ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272  as_fn_error $? "working directory cannot be determined"
1273test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274  as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277# Find the source files, if location was not specified.
1278if test -z "$srcdir"; then
1279  ac_srcdir_defaulted=yes
1280  # Try the directory containing this script, then the parent directory.
1281  ac_confdir=`$as_dirname -- "$as_myself" ||
1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283	 X"$as_myself" : 'X\(//\)[^/]' \| \
1284	 X"$as_myself" : 'X\(//\)$' \| \
1285	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286$as_echo X"$as_myself" |
1287    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288	    s//\1/
1289	    q
1290	  }
1291	  /^X\(\/\/\)[^/].*/{
1292	    s//\1/
1293	    q
1294	  }
1295	  /^X\(\/\/\)$/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\).*/{
1300	    s//\1/
1301	    q
1302	  }
1303	  s/.*/./; q'`
1304  srcdir=$ac_confdir
1305  if test ! -r "$srcdir/$ac_unique_file"; then
1306    srcdir=..
1307  fi
1308else
1309  ac_srcdir_defaulted=no
1310fi
1311if test ! -r "$srcdir/$ac_unique_file"; then
1312  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314fi
1315ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316ac_abs_confdir=`(
1317	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318	pwd)`
1319# When building in place, set srcdir=.
1320if test "$ac_abs_confdir" = "$ac_pwd"; then
1321  srcdir=.
1322fi
1323# Remove unnecessary trailing slashes from srcdir.
1324# Double slashes in file names in object file debugging info
1325# mess up M-x gdb in Emacs.
1326case $srcdir in
1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328esac
1329for ac_var in $ac_precious_vars; do
1330  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331  eval ac_env_${ac_var}_value=\$${ac_var}
1332  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334done
1335
1336#
1337# Report the --help message.
1338#
1339if test "$ac_init_help" = "long"; then
1340  # Omit some internal or obsolete options to make the list less imposing.
1341  # This message is too long to be a string in the A/UX 3.1 sh.
1342  cat <<_ACEOF
1343\`configure' configures potrace 1.14 to adapt to many kinds of systems.
1344
1345Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348VAR=VALUE.  See below for descriptions of some of the useful variables.
1349
1350Defaults for the options are specified in brackets.
1351
1352Configuration:
1353  -h, --help              display this help and exit
1354      --help=short        display options specific to this package
1355      --help=recursive    display the short help of all the included packages
1356  -V, --version           display version information and exit
1357  -q, --quiet, --silent   do not print \`checking ...' messages
1358      --cache-file=FILE   cache test results in FILE [disabled]
1359  -C, --config-cache      alias for \`--cache-file=config.cache'
1360  -n, --no-create         do not create output files
1361      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1362
1363Installation directories:
1364  --prefix=PREFIX         install architecture-independent files in PREFIX
1365                          [$ac_default_prefix]
1366  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1367                          [PREFIX]
1368
1369By default, \`make install' will install all the files in
1370\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1371an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372for instance \`--prefix=\$HOME'.
1373
1374For better control, use the options below.
1375
1376Fine tuning of the installation directories:
1377  --bindir=DIR            user executables [EPREFIX/bin]
1378  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1379  --libexecdir=DIR        program executables [EPREFIX/libexec]
1380  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1381  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1382  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1383  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1384  --libdir=DIR            object code libraries [EPREFIX/lib]
1385  --includedir=DIR        C header files [PREFIX/include]
1386  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1387  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1388  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1389  --infodir=DIR           info documentation [DATAROOTDIR/info]
1390  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1391  --mandir=DIR            man documentation [DATAROOTDIR/man]
1392  --docdir=DIR            documentation root [DATAROOTDIR/doc/potrace]
1393  --htmldir=DIR           html documentation [DOCDIR]
1394  --dvidir=DIR            dvi documentation [DOCDIR]
1395  --pdfdir=DIR            pdf documentation [DOCDIR]
1396  --psdir=DIR             ps documentation [DOCDIR]
1397_ACEOF
1398
1399  cat <<\_ACEOF
1400
1401Program names:
1402  --program-prefix=PREFIX            prepend PREFIX to installed program names
1403  --program-suffix=SUFFIX            append SUFFIX to installed program names
1404  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1405
1406System types:
1407  --build=BUILD     configure for building on BUILD [guessed]
1408  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1409_ACEOF
1410fi
1411
1412if test -n "$ac_init_help"; then
1413  case $ac_init_help in
1414     short | recursive ) echo "Configuration of potrace 1.14:";;
1415   esac
1416  cat <<\_ACEOF
1417
1418Optional Features:
1419  --disable-option-checking  ignore unrecognized --enable/--with options
1420  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1421  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1422  --enable-silent-rules   less verbose build output (undo: "make V=1")
1423  --disable-silent-rules  verbose build output (undo: "make V=0")
1424  --enable-dependency-tracking
1425                          do not reject slow dependency extractors
1426  --disable-dependency-tracking
1427                          speeds up one-time build
1428  --enable-shared[=PKGS]  build shared libraries [default=yes]
1429  --enable-static[=PKGS]  build static libraries [default=yes]
1430  --enable-fast-install[=PKGS]
1431                          optimize for fast installation [default=yes]
1432  --disable-libtool-lock  avoid locking (might break parallel builds)
1433  --disable-zlib          disable PostScript level 3 compression
1434  --enable-metric         use metric units (centimeters) as default
1435  --enable-a4             use a4 as the default papersize
1436  --enable-dumb-tty       use simplified ASCII-only progress bar
1437
1438Optional Packages:
1439  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1440  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1441  --with-libpotrace       install Potrace library and headers [default=no]
1442  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1443                          both]
1444  --with-aix-soname=aix|svr4|both
1445                          shared library versioning (aka "SONAME") variant to
1446                          provide on AIX, [default=aix].
1447  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1448  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1449                          compiler's sysroot if not specified).
1450
1451Some influential environment variables:
1452  CC          C compiler command
1453  CFLAGS      C compiler flags
1454  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1455              nonstandard directory <lib dir>
1456  LIBS        libraries to pass to the linker, e.g. -l<library>
1457  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458              you have headers in a nonstandard directory <include dir>
1459  LT_SYS_LIBRARY_PATH
1460              User-defined run-time library search path.
1461  CPP         C preprocessor
1462
1463Use these variables to override the choices made by `configure' or to help
1464it to find libraries and programs with nonstandard names/locations.
1465
1466Report bugs to <selinger at users.sourceforge.net>.
1467_ACEOF
1468ac_status=$?
1469fi
1470
1471if test "$ac_init_help" = "recursive"; then
1472  # If there are subdirs, report their specific --help.
1473  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1474    test -d "$ac_dir" ||
1475      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476      continue
1477    ac_builddir=.
1478
1479case "$ac_dir" in
1480.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481*)
1482  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1483  # A ".." for each directory in $ac_dir_suffix.
1484  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1485  case $ac_top_builddir_sub in
1486  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488  esac ;;
1489esac
1490ac_abs_top_builddir=$ac_pwd
1491ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492# for backward compatibility:
1493ac_top_builddir=$ac_top_build_prefix
1494
1495case $srcdir in
1496  .)  # We are building in place.
1497    ac_srcdir=.
1498    ac_top_srcdir=$ac_top_builddir_sub
1499    ac_abs_top_srcdir=$ac_pwd ;;
1500  [\\/]* | ?:[\\/]* )  # Absolute name.
1501    ac_srcdir=$srcdir$ac_dir_suffix;
1502    ac_top_srcdir=$srcdir
1503    ac_abs_top_srcdir=$srcdir ;;
1504  *) # Relative name.
1505    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506    ac_top_srcdir=$ac_top_build_prefix$srcdir
1507    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508esac
1509ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510
1511    cd "$ac_dir" || { ac_status=$?; continue; }
1512    # Check for guested configure.
1513    if test -f "$ac_srcdir/configure.gnu"; then
1514      echo &&
1515      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516    elif test -f "$ac_srcdir/configure"; then
1517      echo &&
1518      $SHELL "$ac_srcdir/configure" --help=recursive
1519    else
1520      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521    fi || ac_status=$?
1522    cd "$ac_pwd" || { ac_status=$?; break; }
1523  done
1524fi
1525
1526test -n "$ac_init_help" && exit $ac_status
1527if $ac_init_version; then
1528  cat <<\_ACEOF
1529potrace configure 1.14
1530generated by GNU Autoconf 2.69
1531
1532Copyright (C) 2012 Free Software Foundation, Inc.
1533This configure script is free software; the Free Software Foundation
1534gives unlimited permission to copy, distribute and modify it.
1535_ACEOF
1536  exit
1537fi
1538
1539## ------------------------ ##
1540## Autoconf initialization. ##
1541## ------------------------ ##
1542
1543# ac_fn_c_try_compile LINENO
1544# --------------------------
1545# Try to compile conftest.$ac_ext, and return whether this succeeded.
1546ac_fn_c_try_compile ()
1547{
1548  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549  rm -f conftest.$ac_objext
1550  if { { ac_try="$ac_compile"
1551case "(($ac_try" in
1552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553  *) ac_try_echo=$ac_try;;
1554esac
1555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556$as_echo "$ac_try_echo"; } >&5
1557  (eval "$ac_compile") 2>conftest.err
1558  ac_status=$?
1559  if test -s conftest.err; then
1560    grep -v '^ *+' conftest.err >conftest.er1
1561    cat conftest.er1 >&5
1562    mv -f conftest.er1 conftest.err
1563  fi
1564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565  test $ac_status = 0; } && {
1566	 test -z "$ac_c_werror_flag" ||
1567	 test ! -s conftest.err
1568       } && test -s conftest.$ac_objext; then :
1569  ac_retval=0
1570else
1571  $as_echo "$as_me: failed program was:" >&5
1572sed 's/^/| /' conftest.$ac_ext >&5
1573
1574	ac_retval=1
1575fi
1576  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577  as_fn_set_status $ac_retval
1578
1579} # ac_fn_c_try_compile
1580
1581# ac_fn_c_try_link LINENO
1582# -----------------------
1583# Try to link conftest.$ac_ext, and return whether this succeeded.
1584ac_fn_c_try_link ()
1585{
1586  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587  rm -f conftest.$ac_objext conftest$ac_exeext
1588  if { { ac_try="$ac_link"
1589case "(($ac_try" in
1590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591  *) ac_try_echo=$ac_try;;
1592esac
1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594$as_echo "$ac_try_echo"; } >&5
1595  (eval "$ac_link") 2>conftest.err
1596  ac_status=$?
1597  if test -s conftest.err; then
1598    grep -v '^ *+' conftest.err >conftest.er1
1599    cat conftest.er1 >&5
1600    mv -f conftest.er1 conftest.err
1601  fi
1602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603  test $ac_status = 0; } && {
1604	 test -z "$ac_c_werror_flag" ||
1605	 test ! -s conftest.err
1606       } && test -s conftest$ac_exeext && {
1607	 test "$cross_compiling" = yes ||
1608	 test -x conftest$ac_exeext
1609       }; then :
1610  ac_retval=0
1611else
1612  $as_echo "$as_me: failed program was:" >&5
1613sed 's/^/| /' conftest.$ac_ext >&5
1614
1615	ac_retval=1
1616fi
1617  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1618  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1619  # interfere with the next link command; also delete a directory that is
1620  # left behind by Apple's compiler.  We do this before executing the actions.
1621  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1622  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623  as_fn_set_status $ac_retval
1624
1625} # ac_fn_c_try_link
1626
1627# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1628# -------------------------------------------------------
1629# Tests whether HEADER exists and can be compiled using the include files in
1630# INCLUDES, setting the cache variable VAR accordingly.
1631ac_fn_c_check_header_compile ()
1632{
1633  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635$as_echo_n "checking for $2... " >&6; }
1636if eval \${$3+:} false; then :
1637  $as_echo_n "(cached) " >&6
1638else
1639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640/* end confdefs.h.  */
1641$4
1642#include <$2>
1643_ACEOF
1644if ac_fn_c_try_compile "$LINENO"; then :
1645  eval "$3=yes"
1646else
1647  eval "$3=no"
1648fi
1649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650fi
1651eval ac_res=\$$3
1652	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653$as_echo "$ac_res" >&6; }
1654  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655
1656} # ac_fn_c_check_header_compile
1657
1658# ac_fn_c_try_cpp LINENO
1659# ----------------------
1660# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1661ac_fn_c_try_cpp ()
1662{
1663  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664  if { { ac_try="$ac_cpp conftest.$ac_ext"
1665case "(($ac_try" in
1666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667  *) ac_try_echo=$ac_try;;
1668esac
1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670$as_echo "$ac_try_echo"; } >&5
1671  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1672  ac_status=$?
1673  if test -s conftest.err; then
1674    grep -v '^ *+' conftest.err >conftest.er1
1675    cat conftest.er1 >&5
1676    mv -f conftest.er1 conftest.err
1677  fi
1678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679  test $ac_status = 0; } > conftest.i && {
1680	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1681	 test ! -s conftest.err
1682       }; then :
1683  ac_retval=0
1684else
1685  $as_echo "$as_me: failed program was:" >&5
1686sed 's/^/| /' conftest.$ac_ext >&5
1687
1688    ac_retval=1
1689fi
1690  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691  as_fn_set_status $ac_retval
1692
1693} # ac_fn_c_try_cpp
1694
1695# ac_fn_c_try_run LINENO
1696# ----------------------
1697# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698# that executables *can* be run.
1699ac_fn_c_try_run ()
1700{
1701  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702  if { { ac_try="$ac_link"
1703case "(($ac_try" in
1704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705  *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709  (eval "$ac_link") 2>&5
1710  ac_status=$?
1711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713  { { case "(($ac_try" in
1714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715  *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719  (eval "$ac_try") 2>&5
1720  ac_status=$?
1721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722  test $ac_status = 0; }; }; then :
1723  ac_retval=0
1724else
1725  $as_echo "$as_me: program exited with status $ac_status" >&5
1726       $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729       ac_retval=$ac_status
1730fi
1731  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733  as_fn_set_status $ac_retval
1734
1735} # ac_fn_c_try_run
1736
1737# ac_fn_c_check_func LINENO FUNC VAR
1738# ----------------------------------
1739# Tests whether FUNC exists, setting the cache variable VAR accordingly
1740ac_fn_c_check_func ()
1741{
1742  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744$as_echo_n "checking for $2... " >&6; }
1745if eval \${$3+:} false; then :
1746  $as_echo_n "(cached) " >&6
1747else
1748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h.  */
1750/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1752#define $2 innocuous_$2
1753
1754/* System header to define __stub macros and hopefully few prototypes,
1755    which can conflict with char $2 (); below.
1756    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1757    <limits.h> exists even on freestanding compilers.  */
1758
1759#ifdef __STDC__
1760# include <limits.h>
1761#else
1762# include <assert.h>
1763#endif
1764
1765#undef $2
1766
1767/* Override any GCC internal prototype to avoid an error.
1768   Use char because int might match the return type of a GCC
1769   builtin and then its argument prototype would still apply.  */
1770#ifdef __cplusplus
1771extern "C"
1772#endif
1773char $2 ();
1774/* The GNU C library defines this for functions which it implements
1775    to always fail with ENOSYS.  Some functions are actually named
1776    something starting with __ and the normal name is an alias.  */
1777#if defined __stub_$2 || defined __stub___$2
1778choke me
1779#endif
1780
1781int
1782main ()
1783{
1784return $2 ();
1785  ;
1786  return 0;
1787}
1788_ACEOF
1789if ac_fn_c_try_link "$LINENO"; then :
1790  eval "$3=yes"
1791else
1792  eval "$3=no"
1793fi
1794rm -f core conftest.err conftest.$ac_objext \
1795    conftest$ac_exeext conftest.$ac_ext
1796fi
1797eval ac_res=\$$3
1798	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799$as_echo "$ac_res" >&6; }
1800  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802} # ac_fn_c_check_func
1803
1804# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1805# -------------------------------------------------------
1806# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1807# the include files in INCLUDES and setting the cache variable VAR
1808# accordingly.
1809ac_fn_c_check_header_mongrel ()
1810{
1811  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812  if eval \${$3+:} false; then :
1813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814$as_echo_n "checking for $2... " >&6; }
1815if eval \${$3+:} false; then :
1816  $as_echo_n "(cached) " >&6
1817fi
1818eval ac_res=\$$3
1819	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820$as_echo "$ac_res" >&6; }
1821else
1822  # Is the header compilable?
1823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1824$as_echo_n "checking $2 usability... " >&6; }
1825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h.  */
1827$4
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_compile "$LINENO"; then :
1831  ac_header_compiler=yes
1832else
1833  ac_header_compiler=no
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1837$as_echo "$ac_header_compiler" >&6; }
1838
1839# Is the header present?
1840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1841$as_echo_n "checking $2 presence... " >&6; }
1842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h.  */
1844#include <$2>
1845_ACEOF
1846if ac_fn_c_try_cpp "$LINENO"; then :
1847  ac_header_preproc=yes
1848else
1849  ac_header_preproc=no
1850fi
1851rm -f conftest.err conftest.i conftest.$ac_ext
1852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1853$as_echo "$ac_header_preproc" >&6; }
1854
1855# So?  What about this header?
1856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1857  yes:no: )
1858    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1859$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1860    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862    ;;
1863  no:yes:* )
1864    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1865$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1866    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1867$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1868    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1869$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1870    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1871$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1872    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874( $as_echo "## ------------------------------------------------ ##
1875## Report this to selinger at users.sourceforge.net ##
1876## ------------------------------------------------ ##"
1877     ) | sed "s/^/$as_me: WARNING:     /" >&2
1878    ;;
1879esac
1880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881$as_echo_n "checking for $2... " >&6; }
1882if eval \${$3+:} false; then :
1883  $as_echo_n "(cached) " >&6
1884else
1885  eval "$3=\$ac_header_compiler"
1886fi
1887eval ac_res=\$$3
1888	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889$as_echo "$ac_res" >&6; }
1890fi
1891  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893} # ac_fn_c_check_header_mongrel
1894
1895# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1896# ---------------------------------------------
1897# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1898# accordingly.
1899ac_fn_c_check_decl ()
1900{
1901  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902  as_decl_name=`echo $2|sed 's/ *(.*//'`
1903  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1905$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1906if eval \${$3+:} false; then :
1907  $as_echo_n "(cached) " >&6
1908else
1909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h.  */
1911$4
1912int
1913main ()
1914{
1915#ifndef $as_decl_name
1916#ifdef __cplusplus
1917  (void) $as_decl_use;
1918#else
1919  (void) $as_decl_name;
1920#endif
1921#endif
1922
1923  ;
1924  return 0;
1925}
1926_ACEOF
1927if ac_fn_c_try_compile "$LINENO"; then :
1928  eval "$3=yes"
1929else
1930  eval "$3=no"
1931fi
1932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933fi
1934eval ac_res=\$$3
1935	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936$as_echo "$ac_res" >&6; }
1937  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938
1939} # ac_fn_c_check_decl
1940cat >config.log <<_ACEOF
1941This file contains any messages produced by compilers while
1942running configure, to aid debugging if configure makes a mistake.
1943
1944It was created by potrace $as_me 1.14, which was
1945generated by GNU Autoconf 2.69.  Invocation command line was
1946
1947  $ $0 $@
1948
1949_ACEOF
1950exec 5>>config.log
1951{
1952cat <<_ASUNAME
1953## --------- ##
1954## Platform. ##
1955## --------- ##
1956
1957hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1958uname -m = `(uname -m) 2>/dev/null || echo unknown`
1959uname -r = `(uname -r) 2>/dev/null || echo unknown`
1960uname -s = `(uname -s) 2>/dev/null || echo unknown`
1961uname -v = `(uname -v) 2>/dev/null || echo unknown`
1962
1963/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1964/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1965
1966/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1967/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1968/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1969/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1970/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1971/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1972/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1973
1974_ASUNAME
1975
1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979  IFS=$as_save_IFS
1980  test -z "$as_dir" && as_dir=.
1981    $as_echo "PATH: $as_dir"
1982  done
1983IFS=$as_save_IFS
1984
1985} >&5
1986
1987cat >&5 <<_ACEOF
1988
1989
1990## ----------- ##
1991## Core tests. ##
1992## ----------- ##
1993
1994_ACEOF
1995
1996
1997# Keep a trace of the command line.
1998# Strip out --no-create and --no-recursion so they do not pile up.
1999# Strip out --silent because we don't want to record it for future runs.
2000# Also quote any args containing shell meta-characters.
2001# Make two passes to allow for proper duplicate-argument suppression.
2002ac_configure_args=
2003ac_configure_args0=
2004ac_configure_args1=
2005ac_must_keep_next=false
2006for ac_pass in 1 2
2007do
2008  for ac_arg
2009  do
2010    case $ac_arg in
2011    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2012    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2013    | -silent | --silent | --silen | --sile | --sil)
2014      continue ;;
2015    *\'*)
2016      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2017    esac
2018    case $ac_pass in
2019    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2020    2)
2021      as_fn_append ac_configure_args1 " '$ac_arg'"
2022      if test $ac_must_keep_next = true; then
2023	ac_must_keep_next=false # Got value, back to normal.
2024      else
2025	case $ac_arg in
2026	  *=* | --config-cache | -C | -disable-* | --disable-* \
2027	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2028	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2029	  | -with-* | --with-* | -without-* | --without-* | --x)
2030	    case "$ac_configure_args0 " in
2031	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2032	    esac
2033	    ;;
2034	  -* ) ac_must_keep_next=true ;;
2035	esac
2036      fi
2037      as_fn_append ac_configure_args " '$ac_arg'"
2038      ;;
2039    esac
2040  done
2041done
2042{ ac_configure_args0=; unset ac_configure_args0;}
2043{ ac_configure_args1=; unset ac_configure_args1;}
2044
2045# When interrupted or exit'd, cleanup temporary files, and complete
2046# config.log.  We remove comments because anyway the quotes in there
2047# would cause problems or look ugly.
2048# WARNING: Use '\'' to represent an apostrophe within the trap.
2049# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2050trap 'exit_status=$?
2051  # Save into config.log some information that might help in debugging.
2052  {
2053    echo
2054
2055    $as_echo "## ---------------- ##
2056## Cache variables. ##
2057## ---------------- ##"
2058    echo
2059    # The following way of writing the cache mishandles newlines in values,
2060(
2061  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2062    eval ac_val=\$$ac_var
2063    case $ac_val in #(
2064    *${as_nl}*)
2065      case $ac_var in #(
2066      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2067$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2068      esac
2069      case $ac_var in #(
2070      _ | IFS | as_nl) ;; #(
2071      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2072      *) { eval $ac_var=; unset $ac_var;} ;;
2073      esac ;;
2074    esac
2075  done
2076  (set) 2>&1 |
2077    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2078    *${as_nl}ac_space=\ *)
2079      sed -n \
2080	"s/'\''/'\''\\\\'\'''\''/g;
2081	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2082      ;; #(
2083    *)
2084      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2085      ;;
2086    esac |
2087    sort
2088)
2089    echo
2090
2091    $as_echo "## ----------------- ##
2092## Output variables. ##
2093## ----------------- ##"
2094    echo
2095    for ac_var in $ac_subst_vars
2096    do
2097      eval ac_val=\$$ac_var
2098      case $ac_val in
2099      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2100      esac
2101      $as_echo "$ac_var='\''$ac_val'\''"
2102    done | sort
2103    echo
2104
2105    if test -n "$ac_subst_files"; then
2106      $as_echo "## ------------------- ##
2107## File substitutions. ##
2108## ------------------- ##"
2109      echo
2110      for ac_var in $ac_subst_files
2111      do
2112	eval ac_val=\$$ac_var
2113	case $ac_val in
2114	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115	esac
2116	$as_echo "$ac_var='\''$ac_val'\''"
2117      done | sort
2118      echo
2119    fi
2120
2121    if test -s confdefs.h; then
2122      $as_echo "## ----------- ##
2123## confdefs.h. ##
2124## ----------- ##"
2125      echo
2126      cat confdefs.h
2127      echo
2128    fi
2129    test "$ac_signal" != 0 &&
2130      $as_echo "$as_me: caught signal $ac_signal"
2131    $as_echo "$as_me: exit $exit_status"
2132  } >&5
2133  rm -f core *.core core.conftest.* &&
2134    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2135    exit $exit_status
2136' 0
2137for ac_signal in 1 2 13 15; do
2138  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2139done
2140ac_signal=0
2141
2142# confdefs.h avoids OS command line length limits that DEFS can exceed.
2143rm -f -r conftest* confdefs.h
2144
2145$as_echo "/* confdefs.h */" > confdefs.h
2146
2147# Predefined preprocessor variables.
2148
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_NAME "$PACKAGE_NAME"
2151_ACEOF
2152
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2155_ACEOF
2156
2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_VERSION "$PACKAGE_VERSION"
2159_ACEOF
2160
2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_STRING "$PACKAGE_STRING"
2163_ACEOF
2164
2165cat >>confdefs.h <<_ACEOF
2166#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2167_ACEOF
2168
2169cat >>confdefs.h <<_ACEOF
2170#define PACKAGE_URL "$PACKAGE_URL"
2171_ACEOF
2172
2173
2174# Let the site file select an alternate cache file if it wants to.
2175# Prefer an explicitly selected file to automatically selected ones.
2176ac_site_file1=NONE
2177ac_site_file2=NONE
2178if test -n "$CONFIG_SITE"; then
2179  # We do not want a PATH search for config.site.
2180  case $CONFIG_SITE in #((
2181    -*)  ac_site_file1=./$CONFIG_SITE;;
2182    */*) ac_site_file1=$CONFIG_SITE;;
2183    *)   ac_site_file1=./$CONFIG_SITE;;
2184  esac
2185elif test "x$prefix" != xNONE; then
2186  ac_site_file1=$prefix/share/config.site
2187  ac_site_file2=$prefix/etc/config.site
2188else
2189  ac_site_file1=$ac_default_prefix/share/config.site
2190  ac_site_file2=$ac_default_prefix/etc/config.site
2191fi
2192for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2193do
2194  test "x$ac_site_file" = xNONE && continue
2195  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2196    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2197$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2198    sed 's/^/| /' "$ac_site_file" >&5
2199    . "$ac_site_file" \
2200      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2202as_fn_error $? "failed to load site script $ac_site_file
2203See \`config.log' for more details" "$LINENO" 5; }
2204  fi
2205done
2206
2207if test -r "$cache_file"; then
2208  # Some versions of bash will fail to source /dev/null (special files
2209  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2210  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2211    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2212$as_echo "$as_me: loading cache $cache_file" >&6;}
2213    case $cache_file in
2214      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2215      *)                      . "./$cache_file";;
2216    esac
2217  fi
2218else
2219  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2220$as_echo "$as_me: creating cache $cache_file" >&6;}
2221  >$cache_file
2222fi
2223
2224# Check that the precious variables saved in the cache have kept the same
2225# value.
2226ac_cache_corrupted=false
2227for ac_var in $ac_precious_vars; do
2228  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2229  eval ac_new_set=\$ac_env_${ac_var}_set
2230  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2231  eval ac_new_val=\$ac_env_${ac_var}_value
2232  case $ac_old_set,$ac_new_set in
2233    set,)
2234      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2235$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2236      ac_cache_corrupted=: ;;
2237    ,set)
2238      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2239$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2240      ac_cache_corrupted=: ;;
2241    ,);;
2242    *)
2243      if test "x$ac_old_val" != "x$ac_new_val"; then
2244	# differences in whitespace do not lead to failure.
2245	ac_old_val_w=`echo x $ac_old_val`
2246	ac_new_val_w=`echo x $ac_new_val`
2247	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2248	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2249$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2250	  ac_cache_corrupted=:
2251	else
2252	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2253$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2254	  eval $ac_var=\$ac_old_val
2255	fi
2256	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2257$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2258	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2259$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2260      fi;;
2261  esac
2262  # Pass precious variables to config.status.
2263  if test "$ac_new_set" = set; then
2264    case $ac_new_val in
2265    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2266    *) ac_arg=$ac_var=$ac_new_val ;;
2267    esac
2268    case " $ac_configure_args " in
2269      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2270      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2271    esac
2272  fi
2273done
2274if $ac_cache_corrupted; then
2275  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2277  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2278$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2279  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2280fi
2281## -------------------- ##
2282## Main body of script. ##
2283## -------------------- ##
2284
2285ac_ext=c
2286ac_cpp='$CPP $CPPFLAGS'
2287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289ac_compiler_gnu=$ac_cv_c_compiler_gnu
2290
2291
2292
2293am__api_version='1.15'
2294
2295ac_aux_dir=
2296for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2297  if test -f "$ac_dir/install-sh"; then
2298    ac_aux_dir=$ac_dir
2299    ac_install_sh="$ac_aux_dir/install-sh -c"
2300    break
2301  elif test -f "$ac_dir/install.sh"; then
2302    ac_aux_dir=$ac_dir
2303    ac_install_sh="$ac_aux_dir/install.sh -c"
2304    break
2305  elif test -f "$ac_dir/shtool"; then
2306    ac_aux_dir=$ac_dir
2307    ac_install_sh="$ac_aux_dir/shtool install -c"
2308    break
2309  fi
2310done
2311if test -z "$ac_aux_dir"; then
2312  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2313fi
2314
2315# These three variables are undocumented and unsupported,
2316# and are intended to be withdrawn in a future Autoconf release.
2317# They can cause serious problems if a builder's source tree is in a directory
2318# whose full name contains unusual characters.
2319ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2320ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2321ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2322
2323
2324# Find a good install program.  We prefer a C program (faster),
2325# so one script is as good as another.  But avoid the broken or
2326# incompatible versions:
2327# SysV /etc/install, /usr/sbin/install
2328# SunOS /usr/etc/install
2329# IRIX /sbin/install
2330# AIX /bin/install
2331# AmigaOS /C/install, which installs bootblocks on floppy discs
2332# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2333# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2334# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2335# OS/2's system install, which has a completely different semantic
2336# ./install, which can be erroneously created by make from ./install.sh.
2337# Reject install programs that cannot install multiple files.
2338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2339$as_echo_n "checking for a BSD-compatible install... " >&6; }
2340if test -z "$INSTALL"; then
2341if ${ac_cv_path_install+:} false; then :
2342  $as_echo_n "(cached) " >&6
2343else
2344  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347  IFS=$as_save_IFS
2348  test -z "$as_dir" && as_dir=.
2349    # Account for people who put trailing slashes in PATH elements.
2350case $as_dir/ in #((
2351  ./ | .// | /[cC]/* | \
2352  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2353  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2354  /usr/ucb/* ) ;;
2355  *)
2356    # OSF1 and SCO ODT 3.0 have their own names for install.
2357    # Don't use installbsd from OSF since it installs stuff as root
2358    # by default.
2359    for ac_prog in ginstall scoinst install; do
2360      for ac_exec_ext in '' $ac_executable_extensions; do
2361	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2362	  if test $ac_prog = install &&
2363	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2364	    # AIX install.  It has an incompatible calling convention.
2365	    :
2366	  elif test $ac_prog = install &&
2367	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368	    # program-specific install script used by HP pwplus--don't use.
2369	    :
2370	  else
2371	    rm -rf conftest.one conftest.two conftest.dir
2372	    echo one > conftest.one
2373	    echo two > conftest.two
2374	    mkdir conftest.dir
2375	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2376	      test -s conftest.one && test -s conftest.two &&
2377	      test -s conftest.dir/conftest.one &&
2378	      test -s conftest.dir/conftest.two
2379	    then
2380	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2381	      break 3
2382	    fi
2383	  fi
2384	fi
2385      done
2386    done
2387    ;;
2388esac
2389
2390  done
2391IFS=$as_save_IFS
2392
2393rm -rf conftest.one conftest.two conftest.dir
2394
2395fi
2396  if test "${ac_cv_path_install+set}" = set; then
2397    INSTALL=$ac_cv_path_install
2398  else
2399    # As a last resort, use the slow shell script.  Don't cache a
2400    # value for INSTALL within a source directory, because that will
2401    # break other packages using the cache if that directory is
2402    # removed, or if the value is a relative name.
2403    INSTALL=$ac_install_sh
2404  fi
2405fi
2406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2407$as_echo "$INSTALL" >&6; }
2408
2409# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2410# It thinks the first close brace ends the variable substitution.
2411test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2412
2413test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2414
2415test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2416
2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2418$as_echo_n "checking whether build environment is sane... " >&6; }
2419# Reject unsafe characters in $srcdir or the absolute working directory
2420# name.  Accept space and tab only in the latter.
2421am_lf='
2422'
2423case `pwd` in
2424  *[\\\"\#\$\&\'\`$am_lf]*)
2425    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2426esac
2427case $srcdir in
2428  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2429    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2430esac
2431
2432# Do 'set' in a subshell so we don't clobber the current shell's
2433# arguments.  Must try -L first in case configure is actually a
2434# symlink; some systems play weird games with the mod time of symlinks
2435# (eg FreeBSD returns the mod time of the symlink's containing
2436# directory).
2437if (
2438   am_has_slept=no
2439   for am_try in 1 2; do
2440     echo "timestamp, slept: $am_has_slept" > conftest.file
2441     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2442     if test "$*" = "X"; then
2443	# -L didn't work.
2444	set X `ls -t "$srcdir/configure" conftest.file`
2445     fi
2446     if test "$*" != "X $srcdir/configure conftest.file" \
2447	&& test "$*" != "X conftest.file $srcdir/configure"; then
2448
2449	# If neither matched, then we have a broken ls.  This can happen
2450	# if, for instance, CONFIG_SHELL is bash and it inherits a
2451	# broken ls alias from the environment.  This has actually
2452	# happened.  Such a system could not be considered "sane".
2453	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2454  alias in your environment" "$LINENO" 5
2455     fi
2456     if test "$2" = conftest.file || test $am_try -eq 2; then
2457       break
2458     fi
2459     # Just in case.
2460     sleep 1
2461     am_has_slept=yes
2462   done
2463   test "$2" = conftest.file
2464   )
2465then
2466   # Ok.
2467   :
2468else
2469   as_fn_error $? "newly created file is older than distributed files!
2470Check your system clock" "$LINENO" 5
2471fi
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2473$as_echo "yes" >&6; }
2474# If we didn't sleep, we still need to ensure time stamps of config.status and
2475# generated files are strictly newer.
2476am_sleep_pid=
2477if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2478  ( sleep 1 ) &
2479  am_sleep_pid=$!
2480fi
2481
2482rm -f conftest.file
2483
2484test "$program_prefix" != NONE &&
2485  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2486# Use a double $ so make ignores it.
2487test "$program_suffix" != NONE &&
2488  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2489# Double any \ or $.
2490# By default was `s,x,x', remove it if useless.
2491ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2492program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2493
2494# Expand $ac_aux_dir to an absolute path.
2495am_aux_dir=`cd "$ac_aux_dir" && pwd`
2496
2497if test x"${MISSING+set}" != xset; then
2498  case $am_aux_dir in
2499  *\ * | *\	*)
2500    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2501  *)
2502    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2503  esac
2504fi
2505# Use eval to expand $SHELL
2506if eval "$MISSING --is-lightweight"; then
2507  am_missing_run="$MISSING "
2508else
2509  am_missing_run=
2510  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2511$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2512fi
2513
2514if test x"${install_sh+set}" != xset; then
2515  case $am_aux_dir in
2516  *\ * | *\	*)
2517    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2518  *)
2519    install_sh="\${SHELL} $am_aux_dir/install-sh"
2520  esac
2521fi
2522
2523# Installed binaries are usually stripped using 'strip' when the user
2524# run "make install-strip".  However 'strip' might not be the right
2525# tool to use in cross-compilation environments, therefore Automake
2526# will honor the 'STRIP' environment variable to overrule this program.
2527if test "$cross_compiling" != no; then
2528  if test -n "$ac_tool_prefix"; then
2529  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2530set dummy ${ac_tool_prefix}strip; ac_word=$2
2531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532$as_echo_n "checking for $ac_word... " >&6; }
2533if ${ac_cv_prog_STRIP+:} false; then :
2534  $as_echo_n "(cached) " >&6
2535else
2536  if test -n "$STRIP"; then
2537  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2538else
2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542  IFS=$as_save_IFS
2543  test -z "$as_dir" && as_dir=.
2544    for ac_exec_ext in '' $ac_executable_extensions; do
2545  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548    break 2
2549  fi
2550done
2551  done
2552IFS=$as_save_IFS
2553
2554fi
2555fi
2556STRIP=$ac_cv_prog_STRIP
2557if test -n "$STRIP"; then
2558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2559$as_echo "$STRIP" >&6; }
2560else
2561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562$as_echo "no" >&6; }
2563fi
2564
2565
2566fi
2567if test -z "$ac_cv_prog_STRIP"; then
2568  ac_ct_STRIP=$STRIP
2569  # Extract the first word of "strip", so it can be a program name with args.
2570set dummy strip; 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_ac_ct_STRIP+:} false; then :
2574  $as_echo_n "(cached) " >&6
2575else
2576  if test -n "$ac_ct_STRIP"; then
2577  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip"
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
2596ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2597if test -n "$ac_ct_STRIP"; then
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2599$as_echo "$ac_ct_STRIP" >&6; }
2600else
2601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602$as_echo "no" >&6; }
2603fi
2604
2605  if test "x$ac_ct_STRIP" = x; then
2606    STRIP=":"
2607  else
2608    case $cross_compiling:$ac_tool_warned in
2609yes:)
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2612ac_tool_warned=yes ;;
2613esac
2614    STRIP=$ac_ct_STRIP
2615  fi
2616else
2617  STRIP="$ac_cv_prog_STRIP"
2618fi
2619
2620fi
2621INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2622
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2624$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2625if test -z "$MKDIR_P"; then
2626  if ${ac_cv_path_mkdir+:} false; then :
2627  $as_echo_n "(cached) " >&6
2628else
2629  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2631do
2632  IFS=$as_save_IFS
2633  test -z "$as_dir" && as_dir=.
2634    for ac_prog in mkdir gmkdir; do
2635	 for ac_exec_ext in '' $ac_executable_extensions; do
2636	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2637	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2638	     'mkdir (GNU coreutils) '* | \
2639	     'mkdir (coreutils) '* | \
2640	     'mkdir (fileutils) '4.1*)
2641	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2642	       break 3;;
2643	   esac
2644	 done
2645       done
2646  done
2647IFS=$as_save_IFS
2648
2649fi
2650
2651  test -d ./--version && rmdir ./--version
2652  if test "${ac_cv_path_mkdir+set}" = set; then
2653    MKDIR_P="$ac_cv_path_mkdir -p"
2654  else
2655    # As a last resort, use the slow shell script.  Don't cache a
2656    # value for MKDIR_P within a source directory, because that will
2657    # break other packages using the cache if that directory is
2658    # removed, or if the value is a relative name.
2659    MKDIR_P="$ac_install_sh -d"
2660  fi
2661fi
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2663$as_echo "$MKDIR_P" >&6; }
2664
2665for ac_prog in gawk mawk nawk awk
2666do
2667  # Extract the first word of "$ac_prog", so it can be a program name with args.
2668set dummy $ac_prog; ac_word=$2
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670$as_echo_n "checking for $ac_word... " >&6; }
2671if ${ac_cv_prog_AWK+:} false; then :
2672  $as_echo_n "(cached) " >&6
2673else
2674  if test -n "$AWK"; then
2675  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680  IFS=$as_save_IFS
2681  test -z "$as_dir" && as_dir=.
2682    for ac_exec_ext in '' $ac_executable_extensions; do
2683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684    ac_cv_prog_AWK="$ac_prog"
2685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686    break 2
2687  fi
2688done
2689  done
2690IFS=$as_save_IFS
2691
2692fi
2693fi
2694AWK=$ac_cv_prog_AWK
2695if test -n "$AWK"; then
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2697$as_echo "$AWK" >&6; }
2698else
2699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700$as_echo "no" >&6; }
2701fi
2702
2703
2704  test -n "$AWK" && break
2705done
2706
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2708$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2709set x ${MAKE-make}
2710ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2711if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2712  $as_echo_n "(cached) " >&6
2713else
2714  cat >conftest.make <<\_ACEOF
2715SHELL = /bin/sh
2716all:
2717	@echo '@@@%%%=$(MAKE)=@@@%%%'
2718_ACEOF
2719# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2720case `${MAKE-make} -f conftest.make 2>/dev/null` in
2721  *@@@%%%=?*=@@@%%%*)
2722    eval ac_cv_prog_make_${ac_make}_set=yes;;
2723  *)
2724    eval ac_cv_prog_make_${ac_make}_set=no;;
2725esac
2726rm -f conftest.make
2727fi
2728if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2730$as_echo "yes" >&6; }
2731  SET_MAKE=
2732else
2733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734$as_echo "no" >&6; }
2735  SET_MAKE="MAKE=${MAKE-make}"
2736fi
2737
2738rm -rf .tst 2>/dev/null
2739mkdir .tst 2>/dev/null
2740if test -d .tst; then
2741  am__leading_dot=.
2742else
2743  am__leading_dot=_
2744fi
2745rmdir .tst 2>/dev/null
2746
2747# Check whether --enable-silent-rules was given.
2748if test "${enable_silent_rules+set}" = set; then :
2749  enableval=$enable_silent_rules;
2750fi
2751
2752case $enable_silent_rules in # (((
2753  yes) AM_DEFAULT_VERBOSITY=0;;
2754   no) AM_DEFAULT_VERBOSITY=1;;
2755    *) AM_DEFAULT_VERBOSITY=1;;
2756esac
2757am_make=${MAKE-make}
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2759$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2760if ${am_cv_make_support_nested_variables+:} false; then :
2761  $as_echo_n "(cached) " >&6
2762else
2763  if $as_echo 'TRUE=$(BAR$(V))
2764BAR0=false
2765BAR1=true
2766V=1
2767am__doit:
2768	@$(TRUE)
2769.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2770  am_cv_make_support_nested_variables=yes
2771else
2772  am_cv_make_support_nested_variables=no
2773fi
2774fi
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2776$as_echo "$am_cv_make_support_nested_variables" >&6; }
2777if test $am_cv_make_support_nested_variables = yes; then
2778    AM_V='$(V)'
2779  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2780else
2781  AM_V=$AM_DEFAULT_VERBOSITY
2782  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2783fi
2784AM_BACKSLASH='\'
2785
2786if test "`cd $srcdir && pwd`" != "`pwd`"; then
2787  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2788  # is not polluted with repeated "-I."
2789  am__isrc=' -I$(srcdir)'
2790  # test to see if srcdir already configured
2791  if test -f $srcdir/config.status; then
2792    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2793  fi
2794fi
2795
2796# test whether we have cygpath
2797if test -z "$CYGPATH_W"; then
2798  if (cygpath --version) >/dev/null 2>/dev/null; then
2799    CYGPATH_W='cygpath -w'
2800  else
2801    CYGPATH_W=echo
2802  fi
2803fi
2804
2805
2806# Define the identity of the package.
2807 PACKAGE='potrace'
2808 VERSION='1.14'
2809
2810
2811cat >>confdefs.h <<_ACEOF
2812#define PACKAGE "$PACKAGE"
2813_ACEOF
2814
2815
2816cat >>confdefs.h <<_ACEOF
2817#define VERSION "$VERSION"
2818_ACEOF
2819
2820# Some tools Automake needs.
2821
2822ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2823
2824
2825AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2826
2827
2828AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2829
2830
2831AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2832
2833
2834MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2835
2836# For better backward compatibility.  To be removed once Automake 1.9.x
2837# dies out for good.  For more background, see:
2838# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2839# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2840mkdir_p='$(MKDIR_P)'
2841
2842# We need awk for the "check" target (and possibly the TAP driver).  The
2843# system "awk" is bad on some platforms.
2844# Always define AMTAR for backward compatibility.  Yes, it's still used
2845# in the wild :-(  We should find a proper way to deprecate it ...
2846AMTAR='$${TAR-tar}'
2847
2848
2849# We'll loop over all known methods to create a tar archive until one works.
2850_am_tools='gnutar  pax cpio none'
2851
2852am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2853
2854
2855
2856
2857
2858
2859# POSIX will say in a future version that running "rm -f" with no argument
2860# is OK; and we want to be able to make that assumption in our Makefile
2861# recipes.  So use an aggressive probe to check that the usage we want is
2862# actually supported "in the wild" to an acceptable degree.
2863# See automake bug#10828.
2864# To make any issue more visible, cause the running configure to be aborted
2865# by default if the 'rm' program in use doesn't match our expectations; the
2866# user can still override this though.
2867if rm -f && rm -fr && rm -rf; then : OK; else
2868  cat >&2 <<'END'
2869Oops!
2870
2871Your 'rm' program seems unable to run without file operands specified
2872on the command line, even when the '-f' option is present.  This is contrary
2873to the behaviour of most rm programs out there, and not conforming with
2874the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2875
2876Please tell bug-automake@gnu.org about your system, including the value
2877of your $PATH and any error possibly output before this message.  This
2878can help us improve future automake versions.
2879
2880END
2881  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2882    echo 'Configuration will proceed anyway, since you have set the' >&2
2883    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2884    echo >&2
2885  else
2886    cat >&2 <<'END'
2887Aborting the configuration process, to ensure you take notice of the issue.
2888
2889You can download and install GNU coreutils to get an 'rm' implementation
2890that behaves properly: <http://www.gnu.org/software/coreutils/>.
2891
2892If you want to complete the configuration process using your problematic
2893'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2894to "yes", and re-run configure.
2895
2896END
2897    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2898  fi
2899fi
2900
2901ac_config_headers="$ac_config_headers config.h"
2902
2903
2904
2905DATE="February 2017"
2906
2907
2908POTRACE=potrace
2909
2910cat >>confdefs.h <<_ACEOF
2911#define POTRACE "$POTRACE"
2912_ACEOF
2913
2914
2915MKBITMAP=mkbitmap
2916
2917cat >>confdefs.h <<_ACEOF
2918#define MKBITMAP "$MKBITMAP"
2919_ACEOF
2920
2921
2922
2923ac_ext=c
2924ac_cpp='$CPP $CPPFLAGS'
2925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928if test -n "$ac_tool_prefix"; then
2929  for ac_prog in clang gcc cc c99 mgcc c89 pcc opencc sunc99 suncc
2930  do
2931    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2932set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934$as_echo_n "checking for $ac_word... " >&6; }
2935if ${ac_cv_prog_CC+:} false; then :
2936  $as_echo_n "(cached) " >&6
2937else
2938  if test -n "$CC"; then
2939  ac_cv_prog_CC="$CC" # Let the user override the test.
2940else
2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH
2943do
2944  IFS=$as_save_IFS
2945  test -z "$as_dir" && as_dir=.
2946    for ac_exec_ext in '' $ac_executable_extensions; do
2947  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950    break 2
2951  fi
2952done
2953  done
2954IFS=$as_save_IFS
2955
2956fi
2957fi
2958CC=$ac_cv_prog_CC
2959if test -n "$CC"; then
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961$as_echo "$CC" >&6; }
2962else
2963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964$as_echo "no" >&6; }
2965fi
2966
2967
2968    test -n "$CC" && break
2969  done
2970fi
2971if test -z "$CC"; then
2972  ac_ct_CC=$CC
2973  for ac_prog in clang gcc cc c99 mgcc c89 pcc opencc sunc99 suncc
2974do
2975  # Extract the first word of "$ac_prog", so it can be a program name with args.
2976set dummy $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_ac_ct_CC+:} false; then :
2980  $as_echo_n "(cached) " >&6
2981else
2982  if test -n "$ac_ct_CC"; then
2983  ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$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
3002ac_ct_CC=$ac_cv_prog_ac_ct_CC
3003if test -n "$ac_ct_CC"; then
3004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3005$as_echo "$ac_ct_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 "$ac_ct_CC" && break
3013done
3014
3015  if test "x$ac_ct_CC" = x; then
3016    CC=""
3017  else
3018    case $cross_compiling:$ac_tool_warned in
3019yes:)
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022ac_tool_warned=yes ;;
3023esac
3024    CC=$ac_ct_CC
3025  fi
3026fi
3027
3028
3029test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031as_fn_error $? "no acceptable C compiler found in \$PATH
3032See \`config.log' for more details" "$LINENO" 5; }
3033
3034# Provide some information about the compiler.
3035$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3036set X $ac_compile
3037ac_compiler=$2
3038for ac_option in --version -v -V -qversion; do
3039  { { ac_try="$ac_compiler $ac_option >&5"
3040case "(($ac_try" in
3041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042  *) ac_try_echo=$ac_try;;
3043esac
3044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045$as_echo "$ac_try_echo"; } >&5
3046  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3047  ac_status=$?
3048  if test -s conftest.err; then
3049    sed '10a\
3050... rest of stderr output deleted ...
3051         10q' conftest.err >conftest.er1
3052    cat conftest.er1 >&5
3053  fi
3054  rm -f conftest.er1 conftest.err
3055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3056  test $ac_status = 0; }
3057done
3058
3059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060/* end confdefs.h.  */
3061
3062int
3063main ()
3064{
3065
3066  ;
3067  return 0;
3068}
3069_ACEOF
3070ac_clean_files_save=$ac_clean_files
3071ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3072# Try to create an executable without -o first, disregard a.out.
3073# It will help us diagnose broken compilers, and finding out an intuition
3074# of exeext.
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3076$as_echo_n "checking whether the C compiler works... " >&6; }
3077ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3078
3079# The possible output files:
3080ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3081
3082ac_rmfiles=
3083for ac_file in $ac_files
3084do
3085  case $ac_file in
3086    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3087    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3088  esac
3089done
3090rm -f $ac_rmfiles
3091
3092if { { ac_try="$ac_link_default"
3093case "(($ac_try" in
3094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095  *) ac_try_echo=$ac_try;;
3096esac
3097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3098$as_echo "$ac_try_echo"; } >&5
3099  (eval "$ac_link_default") 2>&5
3100  ac_status=$?
3101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102  test $ac_status = 0; }; then :
3103  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3104# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3105# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3106# so that the user can short-circuit this test for compilers unknown to
3107# Autoconf.
3108for ac_file in $ac_files ''
3109do
3110  test -f "$ac_file" || continue
3111  case $ac_file in
3112    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3113	;;
3114    [ab].out )
3115	# We found the default executable, but exeext='' is most
3116	# certainly right.
3117	break;;
3118    *.* )
3119	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3120	then :; else
3121	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122	fi
3123	# We set ac_cv_exeext here because the later test for it is not
3124	# safe: cross compilers may not add the suffix if given an `-o'
3125	# argument, so we may need to know it at that point already.
3126	# Even if this section looks crufty: it has the advantage of
3127	# actually working.
3128	break;;
3129    * )
3130	break;;
3131  esac
3132done
3133test "$ac_cv_exeext" = no && ac_cv_exeext=
3134
3135else
3136  ac_file=''
3137fi
3138if test -z "$ac_file"; then :
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140$as_echo "no" >&6; }
3141$as_echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146as_fn_error 77 "C compiler cannot create executables
3147See \`config.log' for more details" "$LINENO" 5; }
3148else
3149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3150$as_echo "yes" >&6; }
3151fi
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3153$as_echo_n "checking for C compiler default output file name... " >&6; }
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3155$as_echo "$ac_file" >&6; }
3156ac_exeext=$ac_cv_exeext
3157
3158rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3159ac_clean_files=$ac_clean_files_save
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3161$as_echo_n "checking for suffix of executables... " >&6; }
3162if { { ac_try="$ac_link"
3163case "(($ac_try" in
3164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165  *) ac_try_echo=$ac_try;;
3166esac
3167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168$as_echo "$ac_try_echo"; } >&5
3169  (eval "$ac_link") 2>&5
3170  ac_status=$?
3171  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172  test $ac_status = 0; }; then :
3173  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3174# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3175# work properly (i.e., refer to `conftest.exe'), while it won't with
3176# `rm'.
3177for ac_file in conftest.exe conftest conftest.*; do
3178  test -f "$ac_file" || continue
3179  case $ac_file in
3180    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3181    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3182	  break;;
3183    * ) break;;
3184  esac
3185done
3186else
3187  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3190See \`config.log' for more details" "$LINENO" 5; }
3191fi
3192rm -f conftest conftest$ac_cv_exeext
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3194$as_echo "$ac_cv_exeext" >&6; }
3195
3196rm -f conftest.$ac_ext
3197EXEEXT=$ac_cv_exeext
3198ac_exeext=$EXEEXT
3199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200/* end confdefs.h.  */
3201#include <stdio.h>
3202int
3203main ()
3204{
3205FILE *f = fopen ("conftest.out", "w");
3206 return ferror (f) || fclose (f) != 0;
3207
3208  ;
3209  return 0;
3210}
3211_ACEOF
3212ac_clean_files="$ac_clean_files conftest.out"
3213# Check that the compiler produces executables we can run.  If not, either
3214# the compiler is broken, or we cross compile.
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3216$as_echo_n "checking whether we are cross compiling... " >&6; }
3217if test "$cross_compiling" != yes; then
3218  { { ac_try="$ac_link"
3219case "(($ac_try" in
3220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221  *) ac_try_echo=$ac_try;;
3222esac
3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224$as_echo "$ac_try_echo"; } >&5
3225  (eval "$ac_link") 2>&5
3226  ac_status=$?
3227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228  test $ac_status = 0; }
3229  if { ac_try='./conftest$ac_cv_exeext'
3230  { { case "(($ac_try" in
3231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232  *) ac_try_echo=$ac_try;;
3233esac
3234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235$as_echo "$ac_try_echo"; } >&5
3236  (eval "$ac_try") 2>&5
3237  ac_status=$?
3238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239  test $ac_status = 0; }; }; then
3240    cross_compiling=no
3241  else
3242    if test "$cross_compiling" = maybe; then
3243	cross_compiling=yes
3244    else
3245	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247as_fn_error $? "cannot run C compiled programs.
3248If you meant to cross compile, use \`--host'.
3249See \`config.log' for more details" "$LINENO" 5; }
3250    fi
3251  fi
3252fi
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3254$as_echo "$cross_compiling" >&6; }
3255
3256rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3257ac_clean_files=$ac_clean_files_save
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3259$as_echo_n "checking for suffix of object files... " >&6; }
3260if ${ac_cv_objext+:} false; then :
3261  $as_echo_n "(cached) " >&6
3262else
3263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264/* end confdefs.h.  */
3265
3266int
3267main ()
3268{
3269
3270  ;
3271  return 0;
3272}
3273_ACEOF
3274rm -f conftest.o conftest.obj
3275if { { ac_try="$ac_compile"
3276case "(($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_compile") 2>&5
3283  ac_status=$?
3284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285  test $ac_status = 0; }; then :
3286  for ac_file in conftest.o conftest.obj conftest.*; do
3287  test -f "$ac_file" || continue;
3288  case $ac_file in
3289    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3290    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3291       break;;
3292  esac
3293done
3294else
3295  $as_echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300as_fn_error $? "cannot compute suffix of object files: cannot compile
3301See \`config.log' for more details" "$LINENO" 5; }
3302fi
3303rm -f conftest.$ac_cv_objext conftest.$ac_ext
3304fi
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3306$as_echo "$ac_cv_objext" >&6; }
3307OBJEXT=$ac_cv_objext
3308ac_objext=$OBJEXT
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3310$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3311if ${ac_cv_c_compiler_gnu+:} false; then :
3312  $as_echo_n "(cached) " >&6
3313else
3314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315/* end confdefs.h.  */
3316
3317int
3318main ()
3319{
3320#ifndef __GNUC__
3321       choke me
3322#endif
3323
3324  ;
3325  return 0;
3326}
3327_ACEOF
3328if ac_fn_c_try_compile "$LINENO"; then :
3329  ac_compiler_gnu=yes
3330else
3331  ac_compiler_gnu=no
3332fi
3333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334ac_cv_c_compiler_gnu=$ac_compiler_gnu
3335
3336fi
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3338$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3339if test $ac_compiler_gnu = yes; then
3340  GCC=yes
3341else
3342  GCC=
3343fi
3344ac_test_CFLAGS=${CFLAGS+set}
3345ac_save_CFLAGS=$CFLAGS
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3347$as_echo_n "checking whether $CC accepts -g... " >&6; }
3348if ${ac_cv_prog_cc_g+:} false; then :
3349  $as_echo_n "(cached) " >&6
3350else
3351  ac_save_c_werror_flag=$ac_c_werror_flag
3352   ac_c_werror_flag=yes
3353   ac_cv_prog_cc_g=no
3354   CFLAGS="-g"
3355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356/* end confdefs.h.  */
3357
3358int
3359main ()
3360{
3361
3362  ;
3363  return 0;
3364}
3365_ACEOF
3366if ac_fn_c_try_compile "$LINENO"; then :
3367  ac_cv_prog_cc_g=yes
3368else
3369  CFLAGS=""
3370      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371/* end confdefs.h.  */
3372
3373int
3374main ()
3375{
3376
3377  ;
3378  return 0;
3379}
3380_ACEOF
3381if ac_fn_c_try_compile "$LINENO"; then :
3382
3383else
3384  ac_c_werror_flag=$ac_save_c_werror_flag
3385	 CFLAGS="-g"
3386	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387/* end confdefs.h.  */
3388
3389int
3390main ()
3391{
3392
3393  ;
3394  return 0;
3395}
3396_ACEOF
3397if ac_fn_c_try_compile "$LINENO"; then :
3398  ac_cv_prog_cc_g=yes
3399fi
3400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401fi
3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403fi
3404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405   ac_c_werror_flag=$ac_save_c_werror_flag
3406fi
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3408$as_echo "$ac_cv_prog_cc_g" >&6; }
3409if test "$ac_test_CFLAGS" = set; then
3410  CFLAGS=$ac_save_CFLAGS
3411elif test $ac_cv_prog_cc_g = yes; then
3412  if test "$GCC" = yes; then
3413    CFLAGS="-g -O2"
3414  else
3415    CFLAGS="-g"
3416  fi
3417else
3418  if test "$GCC" = yes; then
3419    CFLAGS="-O2"
3420  else
3421    CFLAGS=
3422  fi
3423fi
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3425$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3426if ${ac_cv_prog_cc_c89+:} false; then :
3427  $as_echo_n "(cached) " >&6
3428else
3429  ac_cv_prog_cc_c89=no
3430ac_save_CC=$CC
3431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432/* end confdefs.h.  */
3433#include <stdarg.h>
3434#include <stdio.h>
3435struct stat;
3436/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3437struct buf { int x; };
3438FILE * (*rcsopen) (struct buf *, struct stat *, int);
3439static char *e (p, i)
3440     char **p;
3441     int i;
3442{
3443  return p[i];
3444}
3445static char *f (char * (*g) (char **, int), char **p, ...)
3446{
3447  char *s;
3448  va_list v;
3449  va_start (v,p);
3450  s = g (p, va_arg (v,int));
3451  va_end (v);
3452  return s;
3453}
3454
3455/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3456   function prototypes and stuff, but not '\xHH' hex character constants.
3457   These don't provoke an error unfortunately, instead are silently treated
3458   as 'x'.  The following induces an error, until -std is added to get
3459   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3460   array size at least.  It's necessary to write '\x00'==0 to get something
3461   that's true only with -std.  */
3462int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3463
3464/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3465   inside strings and character constants.  */
3466#define FOO(x) 'x'
3467int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3468
3469int test (int i, double x);
3470struct s1 {int (*f) (int a);};
3471struct s2 {int (*f) (double a);};
3472int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3473int argc;
3474char **argv;
3475int
3476main ()
3477{
3478return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3479  ;
3480  return 0;
3481}
3482_ACEOF
3483for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3484	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3485do
3486  CC="$ac_save_CC $ac_arg"
3487  if ac_fn_c_try_compile "$LINENO"; then :
3488  ac_cv_prog_cc_c89=$ac_arg
3489fi
3490rm -f core conftest.err conftest.$ac_objext
3491  test "x$ac_cv_prog_cc_c89" != "xno" && break
3492done
3493rm -f conftest.$ac_ext
3494CC=$ac_save_CC
3495
3496fi
3497# AC_CACHE_VAL
3498case "x$ac_cv_prog_cc_c89" in
3499  x)
3500    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3501$as_echo "none needed" >&6; } ;;
3502  xno)
3503    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3504$as_echo "unsupported" >&6; } ;;
3505  *)
3506    CC="$CC $ac_cv_prog_cc_c89"
3507    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3508$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3509esac
3510if test "x$ac_cv_prog_cc_c89" != xno; then :
3511
3512fi
3513
3514ac_ext=c
3515ac_cpp='$CPP $CPPFLAGS'
3516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519
3520ac_ext=c
3521ac_cpp='$CPP $CPPFLAGS'
3522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3526$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3527if ${am_cv_prog_cc_c_o+:} false; then :
3528  $as_echo_n "(cached) " >&6
3529else
3530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531/* end confdefs.h.  */
3532
3533int
3534main ()
3535{
3536
3537  ;
3538  return 0;
3539}
3540_ACEOF
3541  # Make sure it works both with $CC and with simple cc.
3542  # Following AC_PROG_CC_C_O, we do the test twice because some
3543  # compilers refuse to overwrite an existing .o file with -o,
3544  # though they will create one.
3545  am_cv_prog_cc_c_o=yes
3546  for am_i in 1 2; do
3547    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3548   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); } \
3552         && test -f conftest2.$ac_objext; then
3553      : OK
3554    else
3555      am_cv_prog_cc_c_o=no
3556      break
3557    fi
3558  done
3559  rm -f core conftest*
3560  unset am_i
3561fi
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3563$as_echo "$am_cv_prog_cc_c_o" >&6; }
3564if test "$am_cv_prog_cc_c_o" != yes; then
3565   # Losing compiler, so override with the script.
3566   # FIXME: It is wrong to rewrite CC.
3567   # But if we don't then we get into trouble of one sort or another.
3568   # A longer-term fix would be to have automake use am__CC in this case,
3569   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3570   CC="$am_aux_dir/compile $CC"
3571fi
3572ac_ext=c
3573ac_cpp='$CPP $CPPFLAGS'
3574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578DEPDIR="${am__leading_dot}deps"
3579
3580ac_config_commands="$ac_config_commands depfiles"
3581
3582
3583am_make=${MAKE-make}
3584cat > confinc << 'END'
3585am__doit:
3586	@echo this is the am__doit target
3587.PHONY: am__doit
3588END
3589# If we don't find an include directive, just comment out the code.
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3591$as_echo_n "checking for style of include used by $am_make... " >&6; }
3592am__include="#"
3593am__quote=
3594_am_result=none
3595# First try GNU make style include.
3596echo "include confinc" > confmf
3597# Ignore all kinds of additional output from 'make'.
3598case `$am_make -s -f confmf 2> /dev/null` in #(
3599*the\ am__doit\ target*)
3600  am__include=include
3601  am__quote=
3602  _am_result=GNU
3603  ;;
3604esac
3605# Now try BSD make style include.
3606if test "$am__include" = "#"; then
3607   echo '.include "confinc"' > confmf
3608   case `$am_make -s -f confmf 2> /dev/null` in #(
3609   *the\ am__doit\ target*)
3610     am__include=.include
3611     am__quote="\""
3612     _am_result=BSD
3613     ;;
3614   esac
3615fi
3616
3617
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3619$as_echo "$_am_result" >&6; }
3620rm -f confinc confmf
3621
3622# Check whether --enable-dependency-tracking was given.
3623if test "${enable_dependency_tracking+set}" = set; then :
3624  enableval=$enable_dependency_tracking;
3625fi
3626
3627if test "x$enable_dependency_tracking" != xno; then
3628  am_depcomp="$ac_aux_dir/depcomp"
3629  AMDEPBACKSLASH='\'
3630  am__nodep='_no'
3631fi
3632 if test "x$enable_dependency_tracking" != xno; then
3633  AMDEP_TRUE=
3634  AMDEP_FALSE='#'
3635else
3636  AMDEP_TRUE='#'
3637  AMDEP_FALSE=
3638fi
3639
3640
3641
3642depcc="$CC"   am_compiler_list=
3643
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3645$as_echo_n "checking dependency style of $depcc... " >&6; }
3646if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3647  $as_echo_n "(cached) " >&6
3648else
3649  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3650  # We make a subdir and do the tests there.  Otherwise we can end up
3651  # making bogus files that we don't know about and never remove.  For
3652  # instance it was reported that on HP-UX the gcc test will end up
3653  # making a dummy file named 'D' -- because '-MD' means "put the output
3654  # in D".
3655  rm -rf conftest.dir
3656  mkdir conftest.dir
3657  # Copy depcomp to subdir because otherwise we won't find it if we're
3658  # using a relative directory.
3659  cp "$am_depcomp" conftest.dir
3660  cd conftest.dir
3661  # We will build objects and dependencies in a subdirectory because
3662  # it helps to detect inapplicable dependency modes.  For instance
3663  # both Tru64's cc and ICC support -MD to output dependencies as a
3664  # side effect of compilation, but ICC will put the dependencies in
3665  # the current directory while Tru64 will put them in the object
3666  # directory.
3667  mkdir sub
3668
3669  am_cv_CC_dependencies_compiler_type=none
3670  if test "$am_compiler_list" = ""; then
3671     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3672  fi
3673  am__universal=false
3674  case " $depcc " in #(
3675     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3676     esac
3677
3678  for depmode in $am_compiler_list; do
3679    # Setup a source with many dependencies, because some compilers
3680    # like to wrap large dependency lists on column 80 (with \), and
3681    # we should not choose a depcomp mode which is confused by this.
3682    #
3683    # We need to recreate these files for each test, as the compiler may
3684    # overwrite some of them when testing with obscure command lines.
3685    # This happens at least with the AIX C compiler.
3686    : > sub/conftest.c
3687    for i in 1 2 3 4 5 6; do
3688      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3689      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3690      # Solaris 10 /bin/sh.
3691      echo '/* dummy */' > sub/conftst$i.h
3692    done
3693    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3694
3695    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3696    # mode.  It turns out that the SunPro C++ compiler does not properly
3697    # handle '-M -o', and we need to detect this.  Also, some Intel
3698    # versions had trouble with output in subdirs.
3699    am__obj=sub/conftest.${OBJEXT-o}
3700    am__minus_obj="-o $am__obj"
3701    case $depmode in
3702    gcc)
3703      # This depmode causes a compiler race in universal mode.
3704      test "$am__universal" = false || continue
3705      ;;
3706    nosideeffect)
3707      # After this tag, mechanisms are not by side-effect, so they'll
3708      # only be used when explicitly requested.
3709      if test "x$enable_dependency_tracking" = xyes; then
3710	continue
3711      else
3712	break
3713      fi
3714      ;;
3715    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3716      # This compiler won't grok '-c -o', but also, the minuso test has
3717      # not run yet.  These depmodes are late enough in the game, and
3718      # so weak that their functioning should not be impacted.
3719      am__obj=conftest.${OBJEXT-o}
3720      am__minus_obj=
3721      ;;
3722    none) break ;;
3723    esac
3724    if depmode=$depmode \
3725       source=sub/conftest.c object=$am__obj \
3726       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3727       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3728         >/dev/null 2>conftest.err &&
3729       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3730       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3731       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3732       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3733      # icc doesn't choke on unknown options, it will just issue warnings
3734      # or remarks (even with -Werror).  So we grep stderr for any message
3735      # that says an option was ignored or not supported.
3736      # When given -MP, icc 7.0 and 7.1 complain thusly:
3737      #   icc: Command line warning: ignoring option '-M'; no argument required
3738      # The diagnosis changed in icc 8.0:
3739      #   icc: Command line remark: option '-MP' not supported
3740      if (grep 'ignoring option' conftest.err ||
3741          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3742        am_cv_CC_dependencies_compiler_type=$depmode
3743        break
3744      fi
3745    fi
3746  done
3747
3748  cd ..
3749  rm -rf conftest.dir
3750else
3751  am_cv_CC_dependencies_compiler_type=none
3752fi
3753
3754fi
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3756$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3757CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3758
3759 if
3760  test "x$enable_dependency_tracking" != xno \
3761  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3762  am__fastdepCC_TRUE=
3763  am__fastdepCC_FALSE='#'
3764else
3765  am__fastdepCC_TRUE='#'
3766  am__fastdepCC_FALSE=
3767fi
3768
3769
3770
3771
3772
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what compiler options to use" >&5
3774$as_echo_n "checking what compiler options to use... " >&6; }
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGS $CADD" >&5
3776$as_echo "$CFLAGS $CADD" >&6; }
3777
3778
3779
3780# Check whether --with-libpotrace was given.
3781if test "${with_libpotrace+set}" = set; then :
3782  withval=$with_libpotrace;
3783fi
3784
3785
3786if test "$with_libpotrace" != yes; then
3787 enable_shared=no
3788fi
3789
3790
3791# Make sure we can run config.sub.
3792$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3793  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3794
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3796$as_echo_n "checking build system type... " >&6; }
3797if ${ac_cv_build+:} false; then :
3798  $as_echo_n "(cached) " >&6
3799else
3800  ac_build_alias=$build_alias
3801test "x$ac_build_alias" = x &&
3802  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3803test "x$ac_build_alias" = x &&
3804  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3805ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3806  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3807
3808fi
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3810$as_echo "$ac_cv_build" >&6; }
3811case $ac_cv_build in
3812*-*-*) ;;
3813*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3814esac
3815build=$ac_cv_build
3816ac_save_IFS=$IFS; IFS='-'
3817set x $ac_cv_build
3818shift
3819build_cpu=$1
3820build_vendor=$2
3821shift; shift
3822# Remember, the first character of IFS is used to create $*,
3823# except with old shells:
3824build_os=$*
3825IFS=$ac_save_IFS
3826case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3827
3828
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3830$as_echo_n "checking host system type... " >&6; }
3831if ${ac_cv_host+:} false; then :
3832  $as_echo_n "(cached) " >&6
3833else
3834  if test "x$host_alias" = x; then
3835  ac_cv_host=$ac_cv_build
3836else
3837  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3838    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3839fi
3840
3841fi
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3843$as_echo "$ac_cv_host" >&6; }
3844case $ac_cv_host in
3845*-*-*) ;;
3846*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3847esac
3848host=$ac_cv_host
3849ac_save_IFS=$IFS; IFS='-'
3850set x $ac_cv_host
3851shift
3852host_cpu=$1
3853host_vendor=$2
3854shift; shift
3855# Remember, the first character of IFS is used to create $*,
3856# except with old shells:
3857host_os=$*
3858IFS=$ac_save_IFS
3859case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3860
3861
3862enable_win32_dll=yes
3863
3864case $host in
3865*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3866  if test -n "$ac_tool_prefix"; then
3867  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3868set dummy ${ac_tool_prefix}as; ac_word=$2
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870$as_echo_n "checking for $ac_word... " >&6; }
3871if ${ac_cv_prog_AS+:} false; then :
3872  $as_echo_n "(cached) " >&6
3873else
3874  if test -n "$AS"; then
3875  ac_cv_prog_AS="$AS" # Let the user override the test.
3876else
3877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878for as_dir in $PATH
3879do
3880  IFS=$as_save_IFS
3881  test -z "$as_dir" && as_dir=.
3882    for ac_exec_ext in '' $ac_executable_extensions; do
3883  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3884    ac_cv_prog_AS="${ac_tool_prefix}as"
3885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3886    break 2
3887  fi
3888done
3889  done
3890IFS=$as_save_IFS
3891
3892fi
3893fi
3894AS=$ac_cv_prog_AS
3895if test -n "$AS"; then
3896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3897$as_echo "$AS" >&6; }
3898else
3899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900$as_echo "no" >&6; }
3901fi
3902
3903
3904fi
3905if test -z "$ac_cv_prog_AS"; then
3906  ac_ct_AS=$AS
3907  # Extract the first word of "as", so it can be a program name with args.
3908set dummy as; ac_word=$2
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3910$as_echo_n "checking for $ac_word... " >&6; }
3911if ${ac_cv_prog_ac_ct_AS+:} false; then :
3912  $as_echo_n "(cached) " >&6
3913else
3914  if test -n "$ac_ct_AS"; then
3915  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3916else
3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH
3919do
3920  IFS=$as_save_IFS
3921  test -z "$as_dir" && as_dir=.
3922    for ac_exec_ext in '' $ac_executable_extensions; do
3923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924    ac_cv_prog_ac_ct_AS="as"
3925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3926    break 2
3927  fi
3928done
3929  done
3930IFS=$as_save_IFS
3931
3932fi
3933fi
3934ac_ct_AS=$ac_cv_prog_ac_ct_AS
3935if test -n "$ac_ct_AS"; then
3936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3937$as_echo "$ac_ct_AS" >&6; }
3938else
3939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940$as_echo "no" >&6; }
3941fi
3942
3943  if test "x$ac_ct_AS" = x; then
3944    AS="false"
3945  else
3946    case $cross_compiling:$ac_tool_warned in
3947yes:)
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3950ac_tool_warned=yes ;;
3951esac
3952    AS=$ac_ct_AS
3953  fi
3954else
3955  AS="$ac_cv_prog_AS"
3956fi
3957
3958  if test -n "$ac_tool_prefix"; then
3959  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3960set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962$as_echo_n "checking for $ac_word... " >&6; }
3963if ${ac_cv_prog_DLLTOOL+:} false; then :
3964  $as_echo_n "(cached) " >&6
3965else
3966  if test -n "$DLLTOOL"; then
3967  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3968else
3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970for as_dir in $PATH
3971do
3972  IFS=$as_save_IFS
3973  test -z "$as_dir" && as_dir=.
3974    for ac_exec_ext in '' $ac_executable_extensions; do
3975  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3978    break 2
3979  fi
3980done
3981  done
3982IFS=$as_save_IFS
3983
3984fi
3985fi
3986DLLTOOL=$ac_cv_prog_DLLTOOL
3987if test -n "$DLLTOOL"; then
3988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3989$as_echo "$DLLTOOL" >&6; }
3990else
3991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992$as_echo "no" >&6; }
3993fi
3994
3995
3996fi
3997if test -z "$ac_cv_prog_DLLTOOL"; then
3998  ac_ct_DLLTOOL=$DLLTOOL
3999  # Extract the first word of "dlltool", so it can be a program name with args.
4000set dummy dlltool; ac_word=$2
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4002$as_echo_n "checking for $ac_word... " >&6; }
4003if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4004  $as_echo_n "(cached) " >&6
4005else
4006  if test -n "$ac_ct_DLLTOOL"; then
4007  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4008else
4009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010for as_dir in $PATH
4011do
4012  IFS=$as_save_IFS
4013  test -z "$as_dir" && as_dir=.
4014    for ac_exec_ext in '' $ac_executable_extensions; do
4015  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4018    break 2
4019  fi
4020done
4021  done
4022IFS=$as_save_IFS
4023
4024fi
4025fi
4026ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4027if test -n "$ac_ct_DLLTOOL"; then
4028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4029$as_echo "$ac_ct_DLLTOOL" >&6; }
4030else
4031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032$as_echo "no" >&6; }
4033fi
4034
4035  if test "x$ac_ct_DLLTOOL" = x; then
4036    DLLTOOL="false"
4037  else
4038    case $cross_compiling:$ac_tool_warned in
4039yes:)
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4042ac_tool_warned=yes ;;
4043esac
4044    DLLTOOL=$ac_ct_DLLTOOL
4045  fi
4046else
4047  DLLTOOL="$ac_cv_prog_DLLTOOL"
4048fi
4049
4050  if test -n "$ac_tool_prefix"; then
4051  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4052set dummy ${ac_tool_prefix}objdump; ac_word=$2
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054$as_echo_n "checking for $ac_word... " >&6; }
4055if ${ac_cv_prog_OBJDUMP+:} false; then :
4056  $as_echo_n "(cached) " >&6
4057else
4058  if test -n "$OBJDUMP"; then
4059  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4060else
4061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062for as_dir in $PATH
4063do
4064  IFS=$as_save_IFS
4065  test -z "$as_dir" && as_dir=.
4066    for ac_exec_ext in '' $ac_executable_extensions; do
4067  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4068    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4070    break 2
4071  fi
4072done
4073  done
4074IFS=$as_save_IFS
4075
4076fi
4077fi
4078OBJDUMP=$ac_cv_prog_OBJDUMP
4079if test -n "$OBJDUMP"; then
4080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4081$as_echo "$OBJDUMP" >&6; }
4082else
4083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084$as_echo "no" >&6; }
4085fi
4086
4087
4088fi
4089if test -z "$ac_cv_prog_OBJDUMP"; then
4090  ac_ct_OBJDUMP=$OBJDUMP
4091  # Extract the first word of "objdump", so it can be a program name with args.
4092set dummy objdump; ac_word=$2
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094$as_echo_n "checking for $ac_word... " >&6; }
4095if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4096  $as_echo_n "(cached) " >&6
4097else
4098  if test -n "$ac_ct_OBJDUMP"; then
4099  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4100else
4101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH
4103do
4104  IFS=$as_save_IFS
4105  test -z "$as_dir" && as_dir=.
4106    for ac_exec_ext in '' $ac_executable_extensions; do
4107  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4110    break 2
4111  fi
4112done
4113  done
4114IFS=$as_save_IFS
4115
4116fi
4117fi
4118ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4119if test -n "$ac_ct_OBJDUMP"; then
4120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4121$as_echo "$ac_ct_OBJDUMP" >&6; }
4122else
4123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124$as_echo "no" >&6; }
4125fi
4126
4127  if test "x$ac_ct_OBJDUMP" = x; then
4128    OBJDUMP="false"
4129  else
4130    case $cross_compiling:$ac_tool_warned in
4131yes:)
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4134ac_tool_warned=yes ;;
4135esac
4136    OBJDUMP=$ac_ct_OBJDUMP
4137  fi
4138else
4139  OBJDUMP="$ac_cv_prog_OBJDUMP"
4140fi
4141
4142  ;;
4143esac
4144
4145test -z "$AS" && AS=as
4146
4147
4148
4149
4150
4151test -z "$DLLTOOL" && DLLTOOL=dlltool
4152
4153
4154
4155
4156
4157test -z "$OBJDUMP" && OBJDUMP=objdump
4158
4159
4160
4161
4162
4163
4164
4165case `pwd` in
4166  *\ * | *\	*)
4167    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4168$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4169esac
4170
4171
4172
4173macro_version='2.4.6'
4174macro_revision='2.4.6'
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188ltmain=$ac_aux_dir/ltmain.sh
4189
4190# Backslashify metacharacters that are still active within
4191# double-quoted strings.
4192sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4193
4194# Same as above, but do not quote variable references.
4195double_quote_subst='s/\(["`\\]\)/\\\1/g'
4196
4197# Sed substitution to delay expansion of an escaped shell variable in a
4198# double_quote_subst'ed string.
4199delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4200
4201# Sed substitution to delay expansion of an escaped single quote.
4202delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4203
4204# Sed substitution to avoid accidental globbing in evaled expressions
4205no_glob_subst='s/\*/\\\*/g'
4206
4207ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4208ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4209ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4210
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4212$as_echo_n "checking how to print strings... " >&6; }
4213# Test print first, because it will be a builtin if present.
4214if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4215   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4216  ECHO='print -r --'
4217elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4218  ECHO='printf %s\n'
4219else
4220  # Use this function as a fallback that always works.
4221  func_fallback_echo ()
4222  {
4223    eval 'cat <<_LTECHO_EOF
4224$1
4225_LTECHO_EOF'
4226  }
4227  ECHO='func_fallback_echo'
4228fi
4229
4230# func_echo_all arg...
4231# Invoke $ECHO with all args, space-separated.
4232func_echo_all ()
4233{
4234    $ECHO ""
4235}
4236
4237case $ECHO in
4238  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4239$as_echo "printf" >&6; } ;;
4240  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4241$as_echo "print -r" >&6; } ;;
4242  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4243$as_echo "cat" >&6; } ;;
4244esac
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4260$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4261if ${ac_cv_path_SED+:} false; then :
4262  $as_echo_n "(cached) " >&6
4263else
4264            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4265     for ac_i in 1 2 3 4 5 6 7; do
4266       ac_script="$ac_script$as_nl$ac_script"
4267     done
4268     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4269     { ac_script=; unset ac_script;}
4270     if test -z "$SED"; then
4271  ac_path_SED_found=false
4272  # Loop through the user's path and test for each of PROGNAME-LIST
4273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276  IFS=$as_save_IFS
4277  test -z "$as_dir" && as_dir=.
4278    for ac_prog in sed gsed; do
4279    for ac_exec_ext in '' $ac_executable_extensions; do
4280      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4281      as_fn_executable_p "$ac_path_SED" || continue
4282# Check for GNU ac_path_SED and select it if it is found.
4283  # Check for GNU $ac_path_SED
4284case `"$ac_path_SED" --version 2>&1` in
4285*GNU*)
4286  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4287*)
4288  ac_count=0
4289  $as_echo_n 0123456789 >"conftest.in"
4290  while :
4291  do
4292    cat "conftest.in" "conftest.in" >"conftest.tmp"
4293    mv "conftest.tmp" "conftest.in"
4294    cp "conftest.in" "conftest.nl"
4295    $as_echo '' >> "conftest.nl"
4296    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4297    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4298    as_fn_arith $ac_count + 1 && ac_count=$as_val
4299    if test $ac_count -gt ${ac_path_SED_max-0}; then
4300      # Best one so far, save it but keep looking for a better one
4301      ac_cv_path_SED="$ac_path_SED"
4302      ac_path_SED_max=$ac_count
4303    fi
4304    # 10*(2^10) chars as input seems more than enough
4305    test $ac_count -gt 10 && break
4306  done
4307  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4308esac
4309
4310      $ac_path_SED_found && break 3
4311    done
4312  done
4313  done
4314IFS=$as_save_IFS
4315  if test -z "$ac_cv_path_SED"; then
4316    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4317  fi
4318else
4319  ac_cv_path_SED=$SED
4320fi
4321
4322fi
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4324$as_echo "$ac_cv_path_SED" >&6; }
4325 SED="$ac_cv_path_SED"
4326  rm -f conftest.sed
4327
4328test -z "$SED" && SED=sed
4329Xsed="$SED -e 1s/^X//"
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4342$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4343if ${ac_cv_path_GREP+:} false; then :
4344  $as_echo_n "(cached) " >&6
4345else
4346  if test -z "$GREP"; then
4347  ac_path_GREP_found=false
4348  # Loop through the user's path and test for each of PROGNAME-LIST
4349  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4351do
4352  IFS=$as_save_IFS
4353  test -z "$as_dir" && as_dir=.
4354    for ac_prog in grep ggrep; do
4355    for ac_exec_ext in '' $ac_executable_extensions; do
4356      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4357      as_fn_executable_p "$ac_path_GREP" || continue
4358# Check for GNU ac_path_GREP and select it if it is found.
4359  # Check for GNU $ac_path_GREP
4360case `"$ac_path_GREP" --version 2>&1` in
4361*GNU*)
4362  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4363*)
4364  ac_count=0
4365  $as_echo_n 0123456789 >"conftest.in"
4366  while :
4367  do
4368    cat "conftest.in" "conftest.in" >"conftest.tmp"
4369    mv "conftest.tmp" "conftest.in"
4370    cp "conftest.in" "conftest.nl"
4371    $as_echo 'GREP' >> "conftest.nl"
4372    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4373    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4374    as_fn_arith $ac_count + 1 && ac_count=$as_val
4375    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4376      # Best one so far, save it but keep looking for a better one
4377      ac_cv_path_GREP="$ac_path_GREP"
4378      ac_path_GREP_max=$ac_count
4379    fi
4380    # 10*(2^10) chars as input seems more than enough
4381    test $ac_count -gt 10 && break
4382  done
4383  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4384esac
4385
4386      $ac_path_GREP_found && break 3
4387    done
4388  done
4389  done
4390IFS=$as_save_IFS
4391  if test -z "$ac_cv_path_GREP"; then
4392    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4393  fi
4394else
4395  ac_cv_path_GREP=$GREP
4396fi
4397
4398fi
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4400$as_echo "$ac_cv_path_GREP" >&6; }
4401 GREP="$ac_cv_path_GREP"
4402
4403
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4405$as_echo_n "checking for egrep... " >&6; }
4406if ${ac_cv_path_EGREP+:} false; then :
4407  $as_echo_n "(cached) " >&6
4408else
4409  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4410   then ac_cv_path_EGREP="$GREP -E"
4411   else
4412     if test -z "$EGREP"; then
4413  ac_path_EGREP_found=false
4414  # Loop through the user's path and test for each of PROGNAME-LIST
4415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4417do
4418  IFS=$as_save_IFS
4419  test -z "$as_dir" && as_dir=.
4420    for ac_prog in egrep; do
4421    for ac_exec_ext in '' $ac_executable_extensions; do
4422      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4423      as_fn_executable_p "$ac_path_EGREP" || continue
4424# Check for GNU ac_path_EGREP and select it if it is found.
4425  # Check for GNU $ac_path_EGREP
4426case `"$ac_path_EGREP" --version 2>&1` in
4427*GNU*)
4428  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4429*)
4430  ac_count=0
4431  $as_echo_n 0123456789 >"conftest.in"
4432  while :
4433  do
4434    cat "conftest.in" "conftest.in" >"conftest.tmp"
4435    mv "conftest.tmp" "conftest.in"
4436    cp "conftest.in" "conftest.nl"
4437    $as_echo 'EGREP' >> "conftest.nl"
4438    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4439    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4440    as_fn_arith $ac_count + 1 && ac_count=$as_val
4441    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4442      # Best one so far, save it but keep looking for a better one
4443      ac_cv_path_EGREP="$ac_path_EGREP"
4444      ac_path_EGREP_max=$ac_count
4445    fi
4446    # 10*(2^10) chars as input seems more than enough
4447    test $ac_count -gt 10 && break
4448  done
4449  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4450esac
4451
4452      $ac_path_EGREP_found && break 3
4453    done
4454  done
4455  done
4456IFS=$as_save_IFS
4457  if test -z "$ac_cv_path_EGREP"; then
4458    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4459  fi
4460else
4461  ac_cv_path_EGREP=$EGREP
4462fi
4463
4464   fi
4465fi
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4467$as_echo "$ac_cv_path_EGREP" >&6; }
4468 EGREP="$ac_cv_path_EGREP"
4469
4470
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4472$as_echo_n "checking for fgrep... " >&6; }
4473if ${ac_cv_path_FGREP+:} false; then :
4474  $as_echo_n "(cached) " >&6
4475else
4476  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4477   then ac_cv_path_FGREP="$GREP -F"
4478   else
4479     if test -z "$FGREP"; then
4480  ac_path_FGREP_found=false
4481  # Loop through the user's path and test for each of PROGNAME-LIST
4482  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4484do
4485  IFS=$as_save_IFS
4486  test -z "$as_dir" && as_dir=.
4487    for ac_prog in fgrep; do
4488    for ac_exec_ext in '' $ac_executable_extensions; do
4489      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4490      as_fn_executable_p "$ac_path_FGREP" || continue
4491# Check for GNU ac_path_FGREP and select it if it is found.
4492  # Check for GNU $ac_path_FGREP
4493case `"$ac_path_FGREP" --version 2>&1` in
4494*GNU*)
4495  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4496*)
4497  ac_count=0
4498  $as_echo_n 0123456789 >"conftest.in"
4499  while :
4500  do
4501    cat "conftest.in" "conftest.in" >"conftest.tmp"
4502    mv "conftest.tmp" "conftest.in"
4503    cp "conftest.in" "conftest.nl"
4504    $as_echo 'FGREP' >> "conftest.nl"
4505    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4506    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4507    as_fn_arith $ac_count + 1 && ac_count=$as_val
4508    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4509      # Best one so far, save it but keep looking for a better one
4510      ac_cv_path_FGREP="$ac_path_FGREP"
4511      ac_path_FGREP_max=$ac_count
4512    fi
4513    # 10*(2^10) chars as input seems more than enough
4514    test $ac_count -gt 10 && break
4515  done
4516  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4517esac
4518
4519      $ac_path_FGREP_found && break 3
4520    done
4521  done
4522  done
4523IFS=$as_save_IFS
4524  if test -z "$ac_cv_path_FGREP"; then
4525    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4526  fi
4527else
4528  ac_cv_path_FGREP=$FGREP
4529fi
4530
4531   fi
4532fi
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4534$as_echo "$ac_cv_path_FGREP" >&6; }
4535 FGREP="$ac_cv_path_FGREP"
4536
4537
4538test -z "$GREP" && GREP=grep
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558# Check whether --with-gnu-ld was given.
4559if test "${with_gnu_ld+set}" = set; then :
4560  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4561else
4562  with_gnu_ld=no
4563fi
4564
4565ac_prog=ld
4566if test yes = "$GCC"; then
4567  # Check if gcc -print-prog-name=ld gives a path.
4568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4569$as_echo_n "checking for ld used by $CC... " >&6; }
4570  case $host in
4571  *-*-mingw*)
4572    # gcc leaves a trailing carriage return, which upsets mingw
4573    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4574  *)
4575    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4576  esac
4577  case $ac_prog in
4578    # Accept absolute paths.
4579    [\\/]* | ?:[\\/]*)
4580      re_direlt='/[^/][^/]*/\.\./'
4581      # Canonicalize the pathname of ld
4582      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4583      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4584	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4585      done
4586      test -z "$LD" && LD=$ac_prog
4587      ;;
4588  "")
4589    # If it fails, then pretend we aren't using GCC.
4590    ac_prog=ld
4591    ;;
4592  *)
4593    # If it is relative, then search for the first ld in PATH.
4594    with_gnu_ld=unknown
4595    ;;
4596  esac
4597elif test yes = "$with_gnu_ld"; then
4598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4599$as_echo_n "checking for GNU ld... " >&6; }
4600else
4601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4602$as_echo_n "checking for non-GNU ld... " >&6; }
4603fi
4604if ${lt_cv_path_LD+:} false; then :
4605  $as_echo_n "(cached) " >&6
4606else
4607  if test -z "$LD"; then
4608  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4609  for ac_dir in $PATH; do
4610    IFS=$lt_save_ifs
4611    test -z "$ac_dir" && ac_dir=.
4612    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4613      lt_cv_path_LD=$ac_dir/$ac_prog
4614      # Check to see if the program is GNU ld.  I'd rather use --version,
4615      # but apparently some variants of GNU ld only accept -v.
4616      # Break only if it was the GNU/non-GNU ld that we prefer.
4617      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4618      *GNU* | *'with BFD'*)
4619	test no != "$with_gnu_ld" && break
4620	;;
4621      *)
4622	test yes != "$with_gnu_ld" && break
4623	;;
4624      esac
4625    fi
4626  done
4627  IFS=$lt_save_ifs
4628else
4629  lt_cv_path_LD=$LD # Let the user override the test with a path.
4630fi
4631fi
4632
4633LD=$lt_cv_path_LD
4634if test -n "$LD"; then
4635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4636$as_echo "$LD" >&6; }
4637else
4638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639$as_echo "no" >&6; }
4640fi
4641test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4643$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4644if ${lt_cv_prog_gnu_ld+:} false; then :
4645  $as_echo_n "(cached) " >&6
4646else
4647  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4648case `$LD -v 2>&1 </dev/null` in
4649*GNU* | *'with BFD'*)
4650  lt_cv_prog_gnu_ld=yes
4651  ;;
4652*)
4653  lt_cv_prog_gnu_ld=no
4654  ;;
4655esac
4656fi
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4658$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4659with_gnu_ld=$lt_cv_prog_gnu_ld
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4670$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4671if ${lt_cv_path_NM+:} false; then :
4672  $as_echo_n "(cached) " >&6
4673else
4674  if test -n "$NM"; then
4675  # Let the user override the test.
4676  lt_cv_path_NM=$NM
4677else
4678  lt_nm_to_check=${ac_tool_prefix}nm
4679  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4680    lt_nm_to_check="$lt_nm_to_check nm"
4681  fi
4682  for lt_tmp_nm in $lt_nm_to_check; do
4683    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4684    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4685      IFS=$lt_save_ifs
4686      test -z "$ac_dir" && ac_dir=.
4687      tmp_nm=$ac_dir/$lt_tmp_nm
4688      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4689	# Check to see if the nm accepts a BSD-compat flag.
4690	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4691	#   nm: unknown option "B" ignored
4692	# Tru64's nm complains that /dev/null is an invalid object file
4693	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4694	case $build_os in
4695	mingw*) lt_bad_file=conftest.nm/nofile ;;
4696	*) lt_bad_file=/dev/null ;;
4697	esac
4698	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4699	*$lt_bad_file* | *'Invalid file or object type'*)
4700	  lt_cv_path_NM="$tmp_nm -B"
4701	  break 2
4702	  ;;
4703	*)
4704	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4705	  */dev/null*)
4706	    lt_cv_path_NM="$tmp_nm -p"
4707	    break 2
4708	    ;;
4709	  *)
4710	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4711	    continue # so that we can try to find one that supports BSD flags
4712	    ;;
4713	  esac
4714	  ;;
4715	esac
4716      fi
4717    done
4718    IFS=$lt_save_ifs
4719  done
4720  : ${lt_cv_path_NM=no}
4721fi
4722fi
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4724$as_echo "$lt_cv_path_NM" >&6; }
4725if test no != "$lt_cv_path_NM"; then
4726  NM=$lt_cv_path_NM
4727else
4728  # Didn't find any BSD compatible name lister, look for dumpbin.
4729  if test -n "$DUMPBIN"; then :
4730    # Let the user override the test.
4731  else
4732    if test -n "$ac_tool_prefix"; then
4733  for ac_prog in dumpbin "link -dump"
4734  do
4735    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4736set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738$as_echo_n "checking for $ac_word... " >&6; }
4739if ${ac_cv_prog_DUMPBIN+:} false; then :
4740  $as_echo_n "(cached) " >&6
4741else
4742  if test -n "$DUMPBIN"; then
4743  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4744else
4745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746for as_dir in $PATH
4747do
4748  IFS=$as_save_IFS
4749  test -z "$as_dir" && as_dir=.
4750    for ac_exec_ext in '' $ac_executable_extensions; do
4751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754    break 2
4755  fi
4756done
4757  done
4758IFS=$as_save_IFS
4759
4760fi
4761fi
4762DUMPBIN=$ac_cv_prog_DUMPBIN
4763if test -n "$DUMPBIN"; then
4764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4765$as_echo "$DUMPBIN" >&6; }
4766else
4767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768$as_echo "no" >&6; }
4769fi
4770
4771
4772    test -n "$DUMPBIN" && break
4773  done
4774fi
4775if test -z "$DUMPBIN"; then
4776  ac_ct_DUMPBIN=$DUMPBIN
4777  for ac_prog in dumpbin "link -dump"
4778do
4779  # Extract the first word of "$ac_prog", so it can be a program name with args.
4780set dummy $ac_prog; ac_word=$2
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782$as_echo_n "checking for $ac_word... " >&6; }
4783if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4784  $as_echo_n "(cached) " >&6
4785else
4786  if test -n "$ac_ct_DUMPBIN"; then
4787  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4788else
4789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792  IFS=$as_save_IFS
4793  test -z "$as_dir" && as_dir=.
4794    for ac_exec_ext in '' $ac_executable_extensions; do
4795  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798    break 2
4799  fi
4800done
4801  done
4802IFS=$as_save_IFS
4803
4804fi
4805fi
4806ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4807if test -n "$ac_ct_DUMPBIN"; then
4808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4809$as_echo "$ac_ct_DUMPBIN" >&6; }
4810else
4811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812$as_echo "no" >&6; }
4813fi
4814
4815
4816  test -n "$ac_ct_DUMPBIN" && break
4817done
4818
4819  if test "x$ac_ct_DUMPBIN" = x; then
4820    DUMPBIN=":"
4821  else
4822    case $cross_compiling:$ac_tool_warned in
4823yes:)
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826ac_tool_warned=yes ;;
4827esac
4828    DUMPBIN=$ac_ct_DUMPBIN
4829  fi
4830fi
4831
4832    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4833    *COFF*)
4834      DUMPBIN="$DUMPBIN -symbols -headers"
4835      ;;
4836    *)
4837      DUMPBIN=:
4838      ;;
4839    esac
4840  fi
4841
4842  if test : != "$DUMPBIN"; then
4843    NM=$DUMPBIN
4844  fi
4845fi
4846test -z "$NM" && NM=nm
4847
4848
4849
4850
4851
4852
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4854$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4855if ${lt_cv_nm_interface+:} false; then :
4856  $as_echo_n "(cached) " >&6
4857else
4858  lt_cv_nm_interface="BSD nm"
4859  echo "int some_variable = 0;" > conftest.$ac_ext
4860  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4861  (eval "$ac_compile" 2>conftest.err)
4862  cat conftest.err >&5
4863  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4864  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4865  cat conftest.err >&5
4866  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4867  cat conftest.out >&5
4868  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4869    lt_cv_nm_interface="MS dumpbin"
4870  fi
4871  rm -f conftest*
4872fi
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4874$as_echo "$lt_cv_nm_interface" >&6; }
4875
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4877$as_echo_n "checking whether ln -s works... " >&6; }
4878LN_S=$as_ln_s
4879if test "$LN_S" = "ln -s"; then
4880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4881$as_echo "yes" >&6; }
4882else
4883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4884$as_echo "no, using $LN_S" >&6; }
4885fi
4886
4887# find the maximum length of command line arguments
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4889$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4890if ${lt_cv_sys_max_cmd_len+:} false; then :
4891  $as_echo_n "(cached) " >&6
4892else
4893    i=0
4894  teststring=ABCD
4895
4896  case $build_os in
4897  msdosdjgpp*)
4898    # On DJGPP, this test can blow up pretty badly due to problems in libc
4899    # (any single argument exceeding 2000 bytes causes a buffer overrun
4900    # during glob expansion).  Even if it were fixed, the result of this
4901    # check would be larger than it should be.
4902    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4903    ;;
4904
4905  gnu*)
4906    # Under GNU Hurd, this test is not required because there is
4907    # no limit to the length of command line arguments.
4908    # Libtool will interpret -1 as no limit whatsoever
4909    lt_cv_sys_max_cmd_len=-1;
4910    ;;
4911
4912  cygwin* | mingw* | cegcc*)
4913    # On Win9x/ME, this test blows up -- it succeeds, but takes
4914    # about 5 minutes as the teststring grows exponentially.
4915    # Worse, since 9x/ME are not pre-emptively multitasking,
4916    # you end up with a "frozen" computer, even though with patience
4917    # the test eventually succeeds (with a max line length of 256k).
4918    # Instead, let's just punt: use the minimum linelength reported by
4919    # all of the supported platforms: 8192 (on NT/2K/XP).
4920    lt_cv_sys_max_cmd_len=8192;
4921    ;;
4922
4923  mint*)
4924    # On MiNT this can take a long time and run out of memory.
4925    lt_cv_sys_max_cmd_len=8192;
4926    ;;
4927
4928  amigaos*)
4929    # On AmigaOS with pdksh, this test takes hours, literally.
4930    # So we just punt and use a minimum line length of 8192.
4931    lt_cv_sys_max_cmd_len=8192;
4932    ;;
4933
4934  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4935    # This has been around since 386BSD, at least.  Likely further.
4936    if test -x /sbin/sysctl; then
4937      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4938    elif test -x /usr/sbin/sysctl; then
4939      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4940    else
4941      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4942    fi
4943    # And add a safety zone
4944    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4945    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4946    ;;
4947
4948  interix*)
4949    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4950    lt_cv_sys_max_cmd_len=196608
4951    ;;
4952
4953  os2*)
4954    # The test takes a long time on OS/2.
4955    lt_cv_sys_max_cmd_len=8192
4956    ;;
4957
4958  osf*)
4959    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4960    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4961    # nice to cause kernel panics so lets avoid the loop below.
4962    # First set a reasonable default.
4963    lt_cv_sys_max_cmd_len=16384
4964    #
4965    if test -x /sbin/sysconfig; then
4966      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4967        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4968      esac
4969    fi
4970    ;;
4971  sco3.2v5*)
4972    lt_cv_sys_max_cmd_len=102400
4973    ;;
4974  sysv5* | sco5v6* | sysv4.2uw2*)
4975    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4976    if test -n "$kargmax"; then
4977      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4978    else
4979      lt_cv_sys_max_cmd_len=32768
4980    fi
4981    ;;
4982  *)
4983    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4984    if test -n "$lt_cv_sys_max_cmd_len" && \
4985       test undefined != "$lt_cv_sys_max_cmd_len"; then
4986      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4987      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4988    else
4989      # Make teststring a little bigger before we do anything with it.
4990      # a 1K string should be a reasonable start.
4991      for i in 1 2 3 4 5 6 7 8; do
4992        teststring=$teststring$teststring
4993      done
4994      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4995      # If test is not a shell built-in, we'll probably end up computing a
4996      # maximum length that is only half of the actual maximum length, but
4997      # we can't tell.
4998      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4999	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5000	      test 17 != "$i" # 1/2 MB should be enough
5001      do
5002        i=`expr $i + 1`
5003        teststring=$teststring$teststring
5004      done
5005      # Only check the string length outside the loop.
5006      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5007      teststring=
5008      # Add a significant safety factor because C++ compilers can tack on
5009      # massive amounts of additional arguments before passing them to the
5010      # linker.  It appears as though 1/2 is a usable value.
5011      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5012    fi
5013    ;;
5014  esac
5015
5016fi
5017
5018if test -n "$lt_cv_sys_max_cmd_len"; then
5019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5020$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5021else
5022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5023$as_echo "none" >&6; }
5024fi
5025max_cmd_len=$lt_cv_sys_max_cmd_len
5026
5027
5028
5029
5030
5031
5032: ${CP="cp -f"}
5033: ${MV="mv -f"}
5034: ${RM="rm -f"}
5035
5036if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5037  lt_unset=unset
5038else
5039  lt_unset=false
5040fi
5041
5042
5043
5044
5045
5046# test EBCDIC or ASCII
5047case `echo X|tr X '\101'` in
5048 A) # ASCII based system
5049    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5050  lt_SP2NL='tr \040 \012'
5051  lt_NL2SP='tr \015\012 \040\040'
5052  ;;
5053 *) # EBCDIC based system
5054  lt_SP2NL='tr \100 \n'
5055  lt_NL2SP='tr \r\n \100\100'
5056  ;;
5057esac
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5068$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5069if ${lt_cv_to_host_file_cmd+:} false; then :
5070  $as_echo_n "(cached) " >&6
5071else
5072  case $host in
5073  *-*-mingw* )
5074    case $build in
5075      *-*-mingw* ) # actually msys
5076        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5077        ;;
5078      *-*-cygwin* )
5079        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5080        ;;
5081      * ) # otherwise, assume *nix
5082        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5083        ;;
5084    esac
5085    ;;
5086  *-*-cygwin* )
5087    case $build in
5088      *-*-mingw* ) # actually msys
5089        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5090        ;;
5091      *-*-cygwin* )
5092        lt_cv_to_host_file_cmd=func_convert_file_noop
5093        ;;
5094      * ) # otherwise, assume *nix
5095        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5096        ;;
5097    esac
5098    ;;
5099  * ) # unhandled hosts (and "normal" native builds)
5100    lt_cv_to_host_file_cmd=func_convert_file_noop
5101    ;;
5102esac
5103
5104fi
5105
5106to_host_file_cmd=$lt_cv_to_host_file_cmd
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5108$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5109
5110
5111
5112
5113
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5115$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5116if ${lt_cv_to_tool_file_cmd+:} false; then :
5117  $as_echo_n "(cached) " >&6
5118else
5119  #assume ordinary cross tools, or native build.
5120lt_cv_to_tool_file_cmd=func_convert_file_noop
5121case $host in
5122  *-*-mingw* )
5123    case $build in
5124      *-*-mingw* ) # actually msys
5125        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5126        ;;
5127    esac
5128    ;;
5129esac
5130
5131fi
5132
5133to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5135$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5136
5137
5138
5139
5140
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5142$as_echo_n "checking for $LD option to reload object files... " >&6; }
5143if ${lt_cv_ld_reload_flag+:} false; then :
5144  $as_echo_n "(cached) " >&6
5145else
5146  lt_cv_ld_reload_flag='-r'
5147fi
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5149$as_echo "$lt_cv_ld_reload_flag" >&6; }
5150reload_flag=$lt_cv_ld_reload_flag
5151case $reload_flag in
5152"" | " "*) ;;
5153*) reload_flag=" $reload_flag" ;;
5154esac
5155reload_cmds='$LD$reload_flag -o $output$reload_objs'
5156case $host_os in
5157  cygwin* | mingw* | pw32* | cegcc*)
5158    if test yes != "$GCC"; then
5159      reload_cmds=false
5160    fi
5161    ;;
5162  darwin*)
5163    if test yes = "$GCC"; then
5164      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5165    else
5166      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5167    fi
5168    ;;
5169esac
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179if test -n "$ac_tool_prefix"; then
5180  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5181set dummy ${ac_tool_prefix}objdump; ac_word=$2
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183$as_echo_n "checking for $ac_word... " >&6; }
5184if ${ac_cv_prog_OBJDUMP+:} false; then :
5185  $as_echo_n "(cached) " >&6
5186else
5187  if test -n "$OBJDUMP"; then
5188  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5189else
5190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH
5192do
5193  IFS=$as_save_IFS
5194  test -z "$as_dir" && as_dir=.
5195    for ac_exec_ext in '' $ac_executable_extensions; do
5196  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199    break 2
5200  fi
5201done
5202  done
5203IFS=$as_save_IFS
5204
5205fi
5206fi
5207OBJDUMP=$ac_cv_prog_OBJDUMP
5208if test -n "$OBJDUMP"; then
5209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5210$as_echo "$OBJDUMP" >&6; }
5211else
5212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213$as_echo "no" >&6; }
5214fi
5215
5216
5217fi
5218if test -z "$ac_cv_prog_OBJDUMP"; then
5219  ac_ct_OBJDUMP=$OBJDUMP
5220  # Extract the first word of "objdump", so it can be a program name with args.
5221set dummy objdump; ac_word=$2
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223$as_echo_n "checking for $ac_word... " >&6; }
5224if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5225  $as_echo_n "(cached) " >&6
5226else
5227  if test -n "$ac_ct_OBJDUMP"; then
5228  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5229else
5230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH
5232do
5233  IFS=$as_save_IFS
5234  test -z "$as_dir" && as_dir=.
5235    for ac_exec_ext in '' $ac_executable_extensions; do
5236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239    break 2
5240  fi
5241done
5242  done
5243IFS=$as_save_IFS
5244
5245fi
5246fi
5247ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5248if test -n "$ac_ct_OBJDUMP"; then
5249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5250$as_echo "$ac_ct_OBJDUMP" >&6; }
5251else
5252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253$as_echo "no" >&6; }
5254fi
5255
5256  if test "x$ac_ct_OBJDUMP" = x; then
5257    OBJDUMP="false"
5258  else
5259    case $cross_compiling:$ac_tool_warned in
5260yes:)
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5263ac_tool_warned=yes ;;
5264esac
5265    OBJDUMP=$ac_ct_OBJDUMP
5266  fi
5267else
5268  OBJDUMP="$ac_cv_prog_OBJDUMP"
5269fi
5270
5271test -z "$OBJDUMP" && OBJDUMP=objdump
5272
5273
5274
5275
5276
5277
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5279$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5280if ${lt_cv_deplibs_check_method+:} false; then :
5281  $as_echo_n "(cached) " >&6
5282else
5283  lt_cv_file_magic_cmd='$MAGIC_CMD'
5284lt_cv_file_magic_test_file=
5285lt_cv_deplibs_check_method='unknown'
5286# Need to set the preceding variable on all platforms that support
5287# interlibrary dependencies.
5288# 'none' -- dependencies not supported.
5289# 'unknown' -- same as none, but documents that we really don't know.
5290# 'pass_all' -- all dependencies passed with no checks.
5291# 'test_compile' -- check by making test program.
5292# 'file_magic [[regex]]' -- check by looking for files in library path
5293# that responds to the $file_magic_cmd with a given extended regex.
5294# If you have 'file' or equivalent on your system and you're not sure
5295# whether 'pass_all' will *always* work, you probably want this one.
5296
5297case $host_os in
5298aix[4-9]*)
5299  lt_cv_deplibs_check_method=pass_all
5300  ;;
5301
5302beos*)
5303  lt_cv_deplibs_check_method=pass_all
5304  ;;
5305
5306bsdi[45]*)
5307  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5308  lt_cv_file_magic_cmd='/usr/bin/file -L'
5309  lt_cv_file_magic_test_file=/shlib/libc.so
5310  ;;
5311
5312cygwin*)
5313  # func_win32_libid is a shell function defined in ltmain.sh
5314  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5315  lt_cv_file_magic_cmd='func_win32_libid'
5316  ;;
5317
5318mingw* | pw32*)
5319  # Base MSYS/MinGW do not provide the 'file' command needed by
5320  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5321  # unless we find 'file', for example because we are cross-compiling.
5322  if ( file / ) >/dev/null 2>&1; then
5323    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5324    lt_cv_file_magic_cmd='func_win32_libid'
5325  else
5326    # Keep this pattern in sync with the one in func_win32_libid.
5327    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5328    lt_cv_file_magic_cmd='$OBJDUMP -f'
5329  fi
5330  ;;
5331
5332cegcc*)
5333  # use the weaker test based on 'objdump'. See mingw*.
5334  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5335  lt_cv_file_magic_cmd='$OBJDUMP -f'
5336  ;;
5337
5338darwin* | rhapsody*)
5339  lt_cv_deplibs_check_method=pass_all
5340  ;;
5341
5342freebsd* | dragonfly*)
5343  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5344    case $host_cpu in
5345    i*86 )
5346      # Not sure whether the presence of OpenBSD here was a mistake.
5347      # Let's accept both of them until this is cleared up.
5348      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5349      lt_cv_file_magic_cmd=/usr/bin/file
5350      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5351      ;;
5352    esac
5353  else
5354    lt_cv_deplibs_check_method=pass_all
5355  fi
5356  ;;
5357
5358haiku*)
5359  lt_cv_deplibs_check_method=pass_all
5360  ;;
5361
5362hpux10.20* | hpux11*)
5363  lt_cv_file_magic_cmd=/usr/bin/file
5364  case $host_cpu in
5365  ia64*)
5366    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5367    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5368    ;;
5369  hppa*64*)
5370    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]'
5371    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5372    ;;
5373  *)
5374    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5375    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5376    ;;
5377  esac
5378  ;;
5379
5380interix[3-9]*)
5381  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5382  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5383  ;;
5384
5385irix5* | irix6* | nonstopux*)
5386  case $LD in
5387  *-32|*"-32 ") libmagic=32-bit;;
5388  *-n32|*"-n32 ") libmagic=N32;;
5389  *-64|*"-64 ") libmagic=64-bit;;
5390  *) libmagic=never-match;;
5391  esac
5392  lt_cv_deplibs_check_method=pass_all
5393  ;;
5394
5395# This must be glibc/ELF.
5396linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5397  lt_cv_deplibs_check_method=pass_all
5398  ;;
5399
5400netbsd* | netbsdelf*-gnu)
5401  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5402    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5403  else
5404    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5405  fi
5406  ;;
5407
5408newos6*)
5409  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5410  lt_cv_file_magic_cmd=/usr/bin/file
5411  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5412  ;;
5413
5414*nto* | *qnx*)
5415  lt_cv_deplibs_check_method=pass_all
5416  ;;
5417
5418openbsd* | bitrig*)
5419  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5420    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5421  else
5422    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5423  fi
5424  ;;
5425
5426osf3* | osf4* | osf5*)
5427  lt_cv_deplibs_check_method=pass_all
5428  ;;
5429
5430rdos*)
5431  lt_cv_deplibs_check_method=pass_all
5432  ;;
5433
5434solaris*)
5435  lt_cv_deplibs_check_method=pass_all
5436  ;;
5437
5438sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5439  lt_cv_deplibs_check_method=pass_all
5440  ;;
5441
5442sysv4 | sysv4.3*)
5443  case $host_vendor in
5444  motorola)
5445    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]'
5446    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5447    ;;
5448  ncr)
5449    lt_cv_deplibs_check_method=pass_all
5450    ;;
5451  sequent)
5452    lt_cv_file_magic_cmd='/bin/file'
5453    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5454    ;;
5455  sni)
5456    lt_cv_file_magic_cmd='/bin/file'
5457    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5458    lt_cv_file_magic_test_file=/lib/libc.so
5459    ;;
5460  siemens)
5461    lt_cv_deplibs_check_method=pass_all
5462    ;;
5463  pc)
5464    lt_cv_deplibs_check_method=pass_all
5465    ;;
5466  esac
5467  ;;
5468
5469tpf*)
5470  lt_cv_deplibs_check_method=pass_all
5471  ;;
5472os2*)
5473  lt_cv_deplibs_check_method=pass_all
5474  ;;
5475esac
5476
5477fi
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5479$as_echo "$lt_cv_deplibs_check_method" >&6; }
5480
5481file_magic_glob=
5482want_nocaseglob=no
5483if test "$build" = "$host"; then
5484  case $host_os in
5485  mingw* | pw32*)
5486    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5487      want_nocaseglob=yes
5488    else
5489      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5490    fi
5491    ;;
5492  esac
5493fi
5494
5495file_magic_cmd=$lt_cv_file_magic_cmd
5496deplibs_check_method=$lt_cv_deplibs_check_method
5497test -z "$deplibs_check_method" && deplibs_check_method=unknown
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520if test -n "$ac_tool_prefix"; then
5521  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5522set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524$as_echo_n "checking for $ac_word... " >&6; }
5525if ${ac_cv_prog_DLLTOOL+:} false; then :
5526  $as_echo_n "(cached) " >&6
5527else
5528  if test -n "$DLLTOOL"; then
5529  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5530else
5531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532for as_dir in $PATH
5533do
5534  IFS=$as_save_IFS
5535  test -z "$as_dir" && as_dir=.
5536    for ac_exec_ext in '' $ac_executable_extensions; do
5537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540    break 2
5541  fi
5542done
5543  done
5544IFS=$as_save_IFS
5545
5546fi
5547fi
5548DLLTOOL=$ac_cv_prog_DLLTOOL
5549if test -n "$DLLTOOL"; then
5550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5551$as_echo "$DLLTOOL" >&6; }
5552else
5553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554$as_echo "no" >&6; }
5555fi
5556
5557
5558fi
5559if test -z "$ac_cv_prog_DLLTOOL"; then
5560  ac_ct_DLLTOOL=$DLLTOOL
5561  # Extract the first word of "dlltool", so it can be a program name with args.
5562set dummy dlltool; ac_word=$2
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564$as_echo_n "checking for $ac_word... " >&6; }
5565if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5566  $as_echo_n "(cached) " >&6
5567else
5568  if test -n "$ac_ct_DLLTOOL"; then
5569  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5570else
5571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572for as_dir in $PATH
5573do
5574  IFS=$as_save_IFS
5575  test -z "$as_dir" && as_dir=.
5576    for ac_exec_ext in '' $ac_executable_extensions; do
5577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580    break 2
5581  fi
5582done
5583  done
5584IFS=$as_save_IFS
5585
5586fi
5587fi
5588ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5589if test -n "$ac_ct_DLLTOOL"; then
5590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5591$as_echo "$ac_ct_DLLTOOL" >&6; }
5592else
5593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594$as_echo "no" >&6; }
5595fi
5596
5597  if test "x$ac_ct_DLLTOOL" = x; then
5598    DLLTOOL="false"
5599  else
5600    case $cross_compiling:$ac_tool_warned in
5601yes:)
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5604ac_tool_warned=yes ;;
5605esac
5606    DLLTOOL=$ac_ct_DLLTOOL
5607  fi
5608else
5609  DLLTOOL="$ac_cv_prog_DLLTOOL"
5610fi
5611
5612test -z "$DLLTOOL" && DLLTOOL=dlltool
5613
5614
5615
5616
5617
5618
5619
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5621$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5622if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5623  $as_echo_n "(cached) " >&6
5624else
5625  lt_cv_sharedlib_from_linklib_cmd='unknown'
5626
5627case $host_os in
5628cygwin* | mingw* | pw32* | cegcc*)
5629  # two different shell functions defined in ltmain.sh;
5630  # decide which one to use based on capabilities of $DLLTOOL
5631  case `$DLLTOOL --help 2>&1` in
5632  *--identify-strict*)
5633    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5634    ;;
5635  *)
5636    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5637    ;;
5638  esac
5639  ;;
5640*)
5641  # fallback: assume linklib IS sharedlib
5642  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5643  ;;
5644esac
5645
5646fi
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5648$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5649sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5650test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5651
5652
5653
5654
5655
5656
5657
5658
5659if test -n "$ac_tool_prefix"; then
5660  for ac_prog in ar
5661  do
5662    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5663set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665$as_echo_n "checking for $ac_word... " >&6; }
5666if ${ac_cv_prog_AR+:} false; then :
5667  $as_echo_n "(cached) " >&6
5668else
5669  if test -n "$AR"; then
5670  ac_cv_prog_AR="$AR" # Let the user override the test.
5671else
5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675  IFS=$as_save_IFS
5676  test -z "$as_dir" && as_dir=.
5677    for ac_exec_ext in '' $ac_executable_extensions; do
5678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681    break 2
5682  fi
5683done
5684  done
5685IFS=$as_save_IFS
5686
5687fi
5688fi
5689AR=$ac_cv_prog_AR
5690if test -n "$AR"; then
5691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5692$as_echo "$AR" >&6; }
5693else
5694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695$as_echo "no" >&6; }
5696fi
5697
5698
5699    test -n "$AR" && break
5700  done
5701fi
5702if test -z "$AR"; then
5703  ac_ct_AR=$AR
5704  for ac_prog in ar
5705do
5706  # Extract the first word of "$ac_prog", so it can be a program name with args.
5707set dummy $ac_prog; ac_word=$2
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709$as_echo_n "checking for $ac_word... " >&6; }
5710if ${ac_cv_prog_ac_ct_AR+:} false; then :
5711  $as_echo_n "(cached) " >&6
5712else
5713  if test -n "$ac_ct_AR"; then
5714  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5715else
5716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717for as_dir in $PATH
5718do
5719  IFS=$as_save_IFS
5720  test -z "$as_dir" && as_dir=.
5721    for ac_exec_ext in '' $ac_executable_extensions; do
5722  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723    ac_cv_prog_ac_ct_AR="$ac_prog"
5724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725    break 2
5726  fi
5727done
5728  done
5729IFS=$as_save_IFS
5730
5731fi
5732fi
5733ac_ct_AR=$ac_cv_prog_ac_ct_AR
5734if test -n "$ac_ct_AR"; then
5735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5736$as_echo "$ac_ct_AR" >&6; }
5737else
5738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739$as_echo "no" >&6; }
5740fi
5741
5742
5743  test -n "$ac_ct_AR" && break
5744done
5745
5746  if test "x$ac_ct_AR" = x; then
5747    AR="false"
5748  else
5749    case $cross_compiling:$ac_tool_warned in
5750yes:)
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5753ac_tool_warned=yes ;;
5754esac
5755    AR=$ac_ct_AR
5756  fi
5757fi
5758
5759: ${AR=ar}
5760: ${AR_FLAGS=cru}
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5773$as_echo_n "checking for archiver @FILE support... " >&6; }
5774if ${lt_cv_ar_at_file+:} false; then :
5775  $as_echo_n "(cached) " >&6
5776else
5777  lt_cv_ar_at_file=no
5778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779/* end confdefs.h.  */
5780
5781int
5782main ()
5783{
5784
5785  ;
5786  return 0;
5787}
5788_ACEOF
5789if ac_fn_c_try_compile "$LINENO"; then :
5790  echo conftest.$ac_objext > conftest.lst
5791      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5792      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5793  (eval $lt_ar_try) 2>&5
5794  ac_status=$?
5795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5796  test $ac_status = 0; }
5797      if test 0 -eq "$ac_status"; then
5798	# Ensure the archiver fails upon bogus file names.
5799	rm -f conftest.$ac_objext libconftest.a
5800	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5801  (eval $lt_ar_try) 2>&5
5802  ac_status=$?
5803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5804  test $ac_status = 0; }
5805	if test 0 -ne "$ac_status"; then
5806          lt_cv_ar_at_file=@
5807        fi
5808      fi
5809      rm -f conftest.* libconftest.a
5810
5811fi
5812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813
5814fi
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5816$as_echo "$lt_cv_ar_at_file" >&6; }
5817
5818if test no = "$lt_cv_ar_at_file"; then
5819  archiver_list_spec=
5820else
5821  archiver_list_spec=$lt_cv_ar_at_file
5822fi
5823
5824
5825
5826
5827
5828
5829
5830if test -n "$ac_tool_prefix"; then
5831  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5832set dummy ${ac_tool_prefix}strip; ac_word=$2
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834$as_echo_n "checking for $ac_word... " >&6; }
5835if ${ac_cv_prog_STRIP+:} false; then :
5836  $as_echo_n "(cached) " >&6
5837else
5838  if test -n "$STRIP"; then
5839  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5840else
5841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842for as_dir in $PATH
5843do
5844  IFS=$as_save_IFS
5845  test -z "$as_dir" && as_dir=.
5846    for ac_exec_ext in '' $ac_executable_extensions; do
5847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850    break 2
5851  fi
5852done
5853  done
5854IFS=$as_save_IFS
5855
5856fi
5857fi
5858STRIP=$ac_cv_prog_STRIP
5859if test -n "$STRIP"; then
5860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5861$as_echo "$STRIP" >&6; }
5862else
5863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864$as_echo "no" >&6; }
5865fi
5866
5867
5868fi
5869if test -z "$ac_cv_prog_STRIP"; then
5870  ac_ct_STRIP=$STRIP
5871  # Extract the first word of "strip", so it can be a program name with args.
5872set dummy strip; ac_word=$2
5873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874$as_echo_n "checking for $ac_word... " >&6; }
5875if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5876  $as_echo_n "(cached) " >&6
5877else
5878  if test -n "$ac_ct_STRIP"; then
5879  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5880else
5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884  IFS=$as_save_IFS
5885  test -z "$as_dir" && as_dir=.
5886    for ac_exec_ext in '' $ac_executable_extensions; do
5887  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888    ac_cv_prog_ac_ct_STRIP="strip"
5889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890    break 2
5891  fi
5892done
5893  done
5894IFS=$as_save_IFS
5895
5896fi
5897fi
5898ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5899if test -n "$ac_ct_STRIP"; then
5900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5901$as_echo "$ac_ct_STRIP" >&6; }
5902else
5903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904$as_echo "no" >&6; }
5905fi
5906
5907  if test "x$ac_ct_STRIP" = x; then
5908    STRIP=":"
5909  else
5910    case $cross_compiling:$ac_tool_warned in
5911yes:)
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5914ac_tool_warned=yes ;;
5915esac
5916    STRIP=$ac_ct_STRIP
5917  fi
5918else
5919  STRIP="$ac_cv_prog_STRIP"
5920fi
5921
5922test -z "$STRIP" && STRIP=:
5923
5924
5925
5926
5927
5928
5929if test -n "$ac_tool_prefix"; then
5930  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5931set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933$as_echo_n "checking for $ac_word... " >&6; }
5934if ${ac_cv_prog_RANLIB+:} false; then :
5935  $as_echo_n "(cached) " >&6
5936else
5937  if test -n "$RANLIB"; then
5938  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5939else
5940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941for as_dir in $PATH
5942do
5943  IFS=$as_save_IFS
5944  test -z "$as_dir" && as_dir=.
5945    for ac_exec_ext in '' $ac_executable_extensions; do
5946  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5947    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949    break 2
5950  fi
5951done
5952  done
5953IFS=$as_save_IFS
5954
5955fi
5956fi
5957RANLIB=$ac_cv_prog_RANLIB
5958if test -n "$RANLIB"; then
5959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5960$as_echo "$RANLIB" >&6; }
5961else
5962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963$as_echo "no" >&6; }
5964fi
5965
5966
5967fi
5968if test -z "$ac_cv_prog_RANLIB"; then
5969  ac_ct_RANLIB=$RANLIB
5970  # Extract the first word of "ranlib", so it can be a program name with args.
5971set dummy ranlib; ac_word=$2
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973$as_echo_n "checking for $ac_word... " >&6; }
5974if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5975  $as_echo_n "(cached) " >&6
5976else
5977  if test -n "$ac_ct_RANLIB"; then
5978  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5979else
5980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981for as_dir in $PATH
5982do
5983  IFS=$as_save_IFS
5984  test -z "$as_dir" && as_dir=.
5985    for ac_exec_ext in '' $ac_executable_extensions; do
5986  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5987    ac_cv_prog_ac_ct_RANLIB="ranlib"
5988    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989    break 2
5990  fi
5991done
5992  done
5993IFS=$as_save_IFS
5994
5995fi
5996fi
5997ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5998if test -n "$ac_ct_RANLIB"; then
5999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6000$as_echo "$ac_ct_RANLIB" >&6; }
6001else
6002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003$as_echo "no" >&6; }
6004fi
6005
6006  if test "x$ac_ct_RANLIB" = x; then
6007    RANLIB=":"
6008  else
6009    case $cross_compiling:$ac_tool_warned in
6010yes:)
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6013ac_tool_warned=yes ;;
6014esac
6015    RANLIB=$ac_ct_RANLIB
6016  fi
6017else
6018  RANLIB="$ac_cv_prog_RANLIB"
6019fi
6020
6021test -z "$RANLIB" && RANLIB=:
6022
6023
6024
6025
6026
6027
6028# Determine commands to create old-style static archives.
6029old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6030old_postinstall_cmds='chmod 644 $oldlib'
6031old_postuninstall_cmds=
6032
6033if test -n "$RANLIB"; then
6034  case $host_os in
6035  bitrig* | openbsd*)
6036    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6037    ;;
6038  *)
6039    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6040    ;;
6041  esac
6042  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6043fi
6044
6045case $host_os in
6046  darwin*)
6047    lock_old_archive_extraction=yes ;;
6048  *)
6049    lock_old_archive_extraction=no ;;
6050esac
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090# If no C compiler was specified, use CC.
6091LTCC=${LTCC-"$CC"}
6092
6093# If no C compiler flags were specified, use CFLAGS.
6094LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6095
6096# Allow CC to be a program name with arguments.
6097compiler=$CC
6098
6099
6100# Check for command to grab the raw symbol name followed by C symbol from nm.
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6102$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6103if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6104  $as_echo_n "(cached) " >&6
6105else
6106
6107# These are sane defaults that work on at least a few old systems.
6108# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6109
6110# Character class describing NM global symbol codes.
6111symcode='[BCDEGRST]'
6112
6113# Regexp to match symbols that can be accessed directly from C.
6114sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6115
6116# Define system-specific variables.
6117case $host_os in
6118aix*)
6119  symcode='[BCDT]'
6120  ;;
6121cygwin* | mingw* | pw32* | cegcc*)
6122  symcode='[ABCDGISTW]'
6123  ;;
6124hpux*)
6125  if test ia64 = "$host_cpu"; then
6126    symcode='[ABCDEGRST]'
6127  fi
6128  ;;
6129irix* | nonstopux*)
6130  symcode='[BCDEGRST]'
6131  ;;
6132osf*)
6133  symcode='[BCDEGQRST]'
6134  ;;
6135solaris*)
6136  symcode='[BDRT]'
6137  ;;
6138sco3.2v5*)
6139  symcode='[DT]'
6140  ;;
6141sysv4.2uw2*)
6142  symcode='[DT]'
6143  ;;
6144sysv5* | sco5v6* | unixware* | OpenUNIX*)
6145  symcode='[ABDT]'
6146  ;;
6147sysv4)
6148  symcode='[DFNSTU]'
6149  ;;
6150esac
6151
6152# If we're using GNU nm, then use its standard symbol codes.
6153case `$NM -V 2>&1` in
6154*GNU* | *'with BFD'*)
6155  symcode='[ABCDGIRSTW]' ;;
6156esac
6157
6158if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6159  # Gets list of data symbols to import.
6160  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6161  # Adjust the below global symbol transforms to fixup imported variables.
6162  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6163  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6164  lt_c_name_lib_hook="\
6165  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6166  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6167else
6168  # Disable hooks by default.
6169  lt_cv_sys_global_symbol_to_import=
6170  lt_cdecl_hook=
6171  lt_c_name_hook=
6172  lt_c_name_lib_hook=
6173fi
6174
6175# Transform an extracted symbol line into a proper C declaration.
6176# Some systems (esp. on ia64) link data and code symbols differently,
6177# so use this general approach.
6178lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6179$lt_cdecl_hook\
6180" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6181" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6182
6183# Transform an extracted symbol line into symbol name and symbol address
6184lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6185$lt_c_name_hook\
6186" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6187" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6188
6189# Transform an extracted symbol line into symbol name with lib prefix and
6190# symbol address.
6191lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6192$lt_c_name_lib_hook\
6193" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6194" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6195" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6196
6197# Handle CRLF in mingw tool chain
6198opt_cr=
6199case $build_os in
6200mingw*)
6201  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6202  ;;
6203esac
6204
6205# Try without a prefix underscore, then with it.
6206for ac_symprfx in "" "_"; do
6207
6208  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6209  symxfrm="\\1 $ac_symprfx\\2 \\2"
6210
6211  # Write the raw and C identifiers.
6212  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6213    # Fake it for dumpbin and say T for any non-static function,
6214    # D for any global variable and I for any imported variable.
6215    # Also find C++ and __fastcall symbols from MSVC++,
6216    # which start with @ or ?.
6217    lt_cv_sys_global_symbol_pipe="$AWK '"\
6218"     {last_section=section; section=\$ 3};"\
6219"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6220"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6221"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6222"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6223"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6224"     \$ 0!~/External *\|/{next};"\
6225"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6226"     {if(hide[section]) next};"\
6227"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6228"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6229"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6230"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6231"     ' prfx=^$ac_symprfx"
6232  else
6233    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6234  fi
6235  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6236
6237  # Check to see that the pipe works correctly.
6238  pipe_works=no
6239
6240  rm -f conftest*
6241  cat > conftest.$ac_ext <<_LT_EOF
6242#ifdef __cplusplus
6243extern "C" {
6244#endif
6245char nm_test_var;
6246void nm_test_func(void);
6247void nm_test_func(void){}
6248#ifdef __cplusplus
6249}
6250#endif
6251int main(){nm_test_var='a';nm_test_func();return(0);}
6252_LT_EOF
6253
6254  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6255  (eval $ac_compile) 2>&5
6256  ac_status=$?
6257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6258  test $ac_status = 0; }; then
6259    # Now try to grab the symbols.
6260    nlist=conftest.nm
6261    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6262  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6263  ac_status=$?
6264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6265  test $ac_status = 0; } && test -s "$nlist"; then
6266      # Try sorting and uniquifying the output.
6267      if sort "$nlist" | uniq > "$nlist"T; then
6268	mv -f "$nlist"T "$nlist"
6269      else
6270	rm -f "$nlist"T
6271      fi
6272
6273      # Make sure that we snagged all the symbols we need.
6274      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6275	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6276	  cat <<_LT_EOF > conftest.$ac_ext
6277/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6278#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6279/* DATA imports from DLLs on WIN32 can't be const, because runtime
6280   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6281# define LT_DLSYM_CONST
6282#elif defined __osf__
6283/* This system does not cope well with relocations in const data.  */
6284# define LT_DLSYM_CONST
6285#else
6286# define LT_DLSYM_CONST const
6287#endif
6288
6289#ifdef __cplusplus
6290extern "C" {
6291#endif
6292
6293_LT_EOF
6294	  # Now generate the symbol file.
6295	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6296
6297	  cat <<_LT_EOF >> conftest.$ac_ext
6298
6299/* The mapping between symbol names and symbols.  */
6300LT_DLSYM_CONST struct {
6301  const char *name;
6302  void       *address;
6303}
6304lt__PROGRAM__LTX_preloaded_symbols[] =
6305{
6306  { "@PROGRAM@", (void *) 0 },
6307_LT_EOF
6308	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6309	  cat <<\_LT_EOF >> conftest.$ac_ext
6310  {0, (void *) 0}
6311};
6312
6313/* This works around a problem in FreeBSD linker */
6314#ifdef FREEBSD_WORKAROUND
6315static const void *lt_preloaded_setup() {
6316  return lt__PROGRAM__LTX_preloaded_symbols;
6317}
6318#endif
6319
6320#ifdef __cplusplus
6321}
6322#endif
6323_LT_EOF
6324	  # Now try linking the two files.
6325	  mv conftest.$ac_objext conftstm.$ac_objext
6326	  lt_globsym_save_LIBS=$LIBS
6327	  lt_globsym_save_CFLAGS=$CFLAGS
6328	  LIBS=conftstm.$ac_objext
6329	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6330	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6331  (eval $ac_link) 2>&5
6332  ac_status=$?
6333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6334  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6335	    pipe_works=yes
6336	  fi
6337	  LIBS=$lt_globsym_save_LIBS
6338	  CFLAGS=$lt_globsym_save_CFLAGS
6339	else
6340	  echo "cannot find nm_test_func in $nlist" >&5
6341	fi
6342      else
6343	echo "cannot find nm_test_var in $nlist" >&5
6344      fi
6345    else
6346      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6347    fi
6348  else
6349    echo "$progname: failed program was:" >&5
6350    cat conftest.$ac_ext >&5
6351  fi
6352  rm -rf conftest* conftst*
6353
6354  # Do not use the global_symbol_pipe unless it works.
6355  if test yes = "$pipe_works"; then
6356    break
6357  else
6358    lt_cv_sys_global_symbol_pipe=
6359  fi
6360done
6361
6362fi
6363
6364if test -z "$lt_cv_sys_global_symbol_pipe"; then
6365  lt_cv_sys_global_symbol_to_cdecl=
6366fi
6367if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6369$as_echo "failed" >&6; }
6370else
6371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6372$as_echo "ok" >&6; }
6373fi
6374
6375# Response file support.
6376if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6377  nm_file_list_spec='@'
6378elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6379  nm_file_list_spec='@'
6380fi
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6419$as_echo_n "checking for sysroot... " >&6; }
6420
6421# Check whether --with-sysroot was given.
6422if test "${with_sysroot+set}" = set; then :
6423  withval=$with_sysroot;
6424else
6425  with_sysroot=no
6426fi
6427
6428
6429lt_sysroot=
6430case $with_sysroot in #(
6431 yes)
6432   if test yes = "$GCC"; then
6433     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6434   fi
6435   ;; #(
6436 /*)
6437   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6438   ;; #(
6439 no|'')
6440   ;; #(
6441 *)
6442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6443$as_echo "$with_sysroot" >&6; }
6444   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6445   ;;
6446esac
6447
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6449$as_echo "${lt_sysroot:-no}" >&6; }
6450
6451
6452
6453
6454
6455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6456$as_echo_n "checking for a working dd... " >&6; }
6457if ${ac_cv_path_lt_DD+:} false; then :
6458  $as_echo_n "(cached) " >&6
6459else
6460  printf 0123456789abcdef0123456789abcdef >conftest.i
6461cat conftest.i conftest.i >conftest2.i
6462: ${lt_DD:=$DD}
6463if test -z "$lt_DD"; then
6464  ac_path_lt_DD_found=false
6465  # Loop through the user's path and test for each of PROGNAME-LIST
6466  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467for as_dir in $PATH
6468do
6469  IFS=$as_save_IFS
6470  test -z "$as_dir" && as_dir=.
6471    for ac_prog in dd; do
6472    for ac_exec_ext in '' $ac_executable_extensions; do
6473      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6474      as_fn_executable_p "$ac_path_lt_DD" || continue
6475if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6476  cmp -s conftest.i conftest.out \
6477  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6478fi
6479      $ac_path_lt_DD_found && break 3
6480    done
6481  done
6482  done
6483IFS=$as_save_IFS
6484  if test -z "$ac_cv_path_lt_DD"; then
6485    :
6486  fi
6487else
6488  ac_cv_path_lt_DD=$lt_DD
6489fi
6490
6491rm -f conftest.i conftest2.i conftest.out
6492fi
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6494$as_echo "$ac_cv_path_lt_DD" >&6; }
6495
6496
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6498$as_echo_n "checking how to truncate binary pipes... " >&6; }
6499if ${lt_cv_truncate_bin+:} false; then :
6500  $as_echo_n "(cached) " >&6
6501else
6502  printf 0123456789abcdef0123456789abcdef >conftest.i
6503cat conftest.i conftest.i >conftest2.i
6504lt_cv_truncate_bin=
6505if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6506  cmp -s conftest.i conftest.out \
6507  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6508fi
6509rm -f conftest.i conftest2.i conftest.out
6510test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6511fi
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6513$as_echo "$lt_cv_truncate_bin" >&6; }
6514
6515
6516
6517
6518
6519
6520
6521# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6522func_cc_basename ()
6523{
6524    for cc_temp in $*""; do
6525      case $cc_temp in
6526        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6527        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6528        \-*) ;;
6529        *) break;;
6530      esac
6531    done
6532    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6533}
6534
6535# Check whether --enable-libtool-lock was given.
6536if test "${enable_libtool_lock+set}" = set; then :
6537  enableval=$enable_libtool_lock;
6538fi
6539
6540test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6541
6542# Some flags need to be propagated to the compiler or linker for good
6543# libtool support.
6544case $host in
6545ia64-*-hpux*)
6546  # Find out what ABI is being produced by ac_compile, and set mode
6547  # options accordingly.
6548  echo 'int i;' > conftest.$ac_ext
6549  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6550  (eval $ac_compile) 2>&5
6551  ac_status=$?
6552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6553  test $ac_status = 0; }; then
6554    case `/usr/bin/file conftest.$ac_objext` in
6555      *ELF-32*)
6556	HPUX_IA64_MODE=32
6557	;;
6558      *ELF-64*)
6559	HPUX_IA64_MODE=64
6560	;;
6561    esac
6562  fi
6563  rm -rf conftest*
6564  ;;
6565*-*-irix6*)
6566  # Find out what ABI is being produced by ac_compile, and set linker
6567  # options accordingly.
6568  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6569  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6570  (eval $ac_compile) 2>&5
6571  ac_status=$?
6572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573  test $ac_status = 0; }; then
6574    if test yes = "$lt_cv_prog_gnu_ld"; then
6575      case `/usr/bin/file conftest.$ac_objext` in
6576	*32-bit*)
6577	  LD="${LD-ld} -melf32bsmip"
6578	  ;;
6579	*N32*)
6580	  LD="${LD-ld} -melf32bmipn32"
6581	  ;;
6582	*64-bit*)
6583	  LD="${LD-ld} -melf64bmip"
6584	;;
6585      esac
6586    else
6587      case `/usr/bin/file conftest.$ac_objext` in
6588	*32-bit*)
6589	  LD="${LD-ld} -32"
6590	  ;;
6591	*N32*)
6592	  LD="${LD-ld} -n32"
6593	  ;;
6594	*64-bit*)
6595	  LD="${LD-ld} -64"
6596	  ;;
6597      esac
6598    fi
6599  fi
6600  rm -rf conftest*
6601  ;;
6602
6603mips64*-*linux*)
6604  # Find out what ABI is being produced by ac_compile, and set linker
6605  # options accordingly.
6606  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6607  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6608  (eval $ac_compile) 2>&5
6609  ac_status=$?
6610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611  test $ac_status = 0; }; then
6612    emul=elf
6613    case `/usr/bin/file conftest.$ac_objext` in
6614      *32-bit*)
6615	emul="${emul}32"
6616	;;
6617      *64-bit*)
6618	emul="${emul}64"
6619	;;
6620    esac
6621    case `/usr/bin/file conftest.$ac_objext` in
6622      *MSB*)
6623	emul="${emul}btsmip"
6624	;;
6625      *LSB*)
6626	emul="${emul}ltsmip"
6627	;;
6628    esac
6629    case `/usr/bin/file conftest.$ac_objext` in
6630      *N32*)
6631	emul="${emul}n32"
6632	;;
6633    esac
6634    LD="${LD-ld} -m $emul"
6635  fi
6636  rm -rf conftest*
6637  ;;
6638
6639x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6640s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6641  # Find out what ABI is being produced by ac_compile, and set linker
6642  # options accordingly.  Note that the listed cases only cover the
6643  # situations where additional linker options are needed (such as when
6644  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6645  # vice versa); the common cases where no linker options are needed do
6646  # not appear in the list.
6647  echo 'int i;' > conftest.$ac_ext
6648  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6649  (eval $ac_compile) 2>&5
6650  ac_status=$?
6651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6652  test $ac_status = 0; }; then
6653    case `/usr/bin/file conftest.o` in
6654      *32-bit*)
6655	case $host in
6656	  x86_64-*kfreebsd*-gnu)
6657	    LD="${LD-ld} -m elf_i386_fbsd"
6658	    ;;
6659	  x86_64-*linux*)
6660	    case `/usr/bin/file conftest.o` in
6661	      *x86-64*)
6662		LD="${LD-ld} -m elf32_x86_64"
6663		;;
6664	      *)
6665		LD="${LD-ld} -m elf_i386"
6666		;;
6667	    esac
6668	    ;;
6669	  powerpc64le-*linux*)
6670	    LD="${LD-ld} -m elf32lppclinux"
6671	    ;;
6672	  powerpc64-*linux*)
6673	    LD="${LD-ld} -m elf32ppclinux"
6674	    ;;
6675	  s390x-*linux*)
6676	    LD="${LD-ld} -m elf_s390"
6677	    ;;
6678	  sparc64-*linux*)
6679	    LD="${LD-ld} -m elf32_sparc"
6680	    ;;
6681	esac
6682	;;
6683      *64-bit*)
6684	case $host in
6685	  x86_64-*kfreebsd*-gnu)
6686	    LD="${LD-ld} -m elf_x86_64_fbsd"
6687	    ;;
6688	  x86_64-*linux*)
6689	    LD="${LD-ld} -m elf_x86_64"
6690	    ;;
6691	  powerpcle-*linux*)
6692	    LD="${LD-ld} -m elf64lppc"
6693	    ;;
6694	  powerpc-*linux*)
6695	    LD="${LD-ld} -m elf64ppc"
6696	    ;;
6697	  s390*-*linux*|s390*-*tpf*)
6698	    LD="${LD-ld} -m elf64_s390"
6699	    ;;
6700	  sparc*-*linux*)
6701	    LD="${LD-ld} -m elf64_sparc"
6702	    ;;
6703	esac
6704	;;
6705    esac
6706  fi
6707  rm -rf conftest*
6708  ;;
6709
6710*-*-sco3.2v5*)
6711  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6712  SAVE_CFLAGS=$CFLAGS
6713  CFLAGS="$CFLAGS -belf"
6714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6715$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6716if ${lt_cv_cc_needs_belf+:} false; then :
6717  $as_echo_n "(cached) " >&6
6718else
6719  ac_ext=c
6720ac_cpp='$CPP $CPPFLAGS'
6721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6723ac_compiler_gnu=$ac_cv_c_compiler_gnu
6724
6725     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726/* end confdefs.h.  */
6727
6728int
6729main ()
6730{
6731
6732  ;
6733  return 0;
6734}
6735_ACEOF
6736if ac_fn_c_try_link "$LINENO"; then :
6737  lt_cv_cc_needs_belf=yes
6738else
6739  lt_cv_cc_needs_belf=no
6740fi
6741rm -f core conftest.err conftest.$ac_objext \
6742    conftest$ac_exeext conftest.$ac_ext
6743     ac_ext=c
6744ac_cpp='$CPP $CPPFLAGS'
6745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6747ac_compiler_gnu=$ac_cv_c_compiler_gnu
6748
6749fi
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6751$as_echo "$lt_cv_cc_needs_belf" >&6; }
6752  if test yes != "$lt_cv_cc_needs_belf"; then
6753    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6754    CFLAGS=$SAVE_CFLAGS
6755  fi
6756  ;;
6757*-*solaris*)
6758  # Find out what ABI is being produced by ac_compile, and set linker
6759  # options accordingly.
6760  echo 'int i;' > conftest.$ac_ext
6761  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6762  (eval $ac_compile) 2>&5
6763  ac_status=$?
6764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6765  test $ac_status = 0; }; then
6766    case `/usr/bin/file conftest.o` in
6767    *64-bit*)
6768      case $lt_cv_prog_gnu_ld in
6769      yes*)
6770        case $host in
6771        i?86-*-solaris*|x86_64-*-solaris*)
6772          LD="${LD-ld} -m elf_x86_64"
6773          ;;
6774        sparc*-*-solaris*)
6775          LD="${LD-ld} -m elf64_sparc"
6776          ;;
6777        esac
6778        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6779        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6780          LD=${LD-ld}_sol2
6781        fi
6782        ;;
6783      *)
6784	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6785	  LD="${LD-ld} -64"
6786	fi
6787	;;
6788      esac
6789      ;;
6790    esac
6791  fi
6792  rm -rf conftest*
6793  ;;
6794esac
6795
6796need_locks=$enable_libtool_lock
6797
6798if test -n "$ac_tool_prefix"; then
6799  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6800set dummy ${ac_tool_prefix}mt; ac_word=$2
6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802$as_echo_n "checking for $ac_word... " >&6; }
6803if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6804  $as_echo_n "(cached) " >&6
6805else
6806  if test -n "$MANIFEST_TOOL"; then
6807  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6808else
6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810for as_dir in $PATH
6811do
6812  IFS=$as_save_IFS
6813  test -z "$as_dir" && as_dir=.
6814    for ac_exec_ext in '' $ac_executable_extensions; do
6815  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6816    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818    break 2
6819  fi
6820done
6821  done
6822IFS=$as_save_IFS
6823
6824fi
6825fi
6826MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6827if test -n "$MANIFEST_TOOL"; then
6828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6829$as_echo "$MANIFEST_TOOL" >&6; }
6830else
6831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832$as_echo "no" >&6; }
6833fi
6834
6835
6836fi
6837if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6838  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6839  # Extract the first word of "mt", so it can be a program name with args.
6840set dummy mt; ac_word=$2
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842$as_echo_n "checking for $ac_word... " >&6; }
6843if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6844  $as_echo_n "(cached) " >&6
6845else
6846  if test -n "$ac_ct_MANIFEST_TOOL"; then
6847  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6848else
6849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850for as_dir in $PATH
6851do
6852  IFS=$as_save_IFS
6853  test -z "$as_dir" && as_dir=.
6854    for ac_exec_ext in '' $ac_executable_extensions; do
6855  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6856    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858    break 2
6859  fi
6860done
6861  done
6862IFS=$as_save_IFS
6863
6864fi
6865fi
6866ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6867if test -n "$ac_ct_MANIFEST_TOOL"; then
6868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6869$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6870else
6871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872$as_echo "no" >&6; }
6873fi
6874
6875  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6876    MANIFEST_TOOL=":"
6877  else
6878    case $cross_compiling:$ac_tool_warned in
6879yes:)
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6882ac_tool_warned=yes ;;
6883esac
6884    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6885  fi
6886else
6887  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6888fi
6889
6890test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6892$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6893if ${lt_cv_path_mainfest_tool+:} false; then :
6894  $as_echo_n "(cached) " >&6
6895else
6896  lt_cv_path_mainfest_tool=no
6897  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6898  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6899  cat conftest.err >&5
6900  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6901    lt_cv_path_mainfest_tool=yes
6902  fi
6903  rm -f conftest*
6904fi
6905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6906$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6907if test yes != "$lt_cv_path_mainfest_tool"; then
6908  MANIFEST_TOOL=:
6909fi
6910
6911
6912
6913
6914
6915
6916  case $host_os in
6917    rhapsody* | darwin*)
6918    if test -n "$ac_tool_prefix"; then
6919  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6920set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922$as_echo_n "checking for $ac_word... " >&6; }
6923if ${ac_cv_prog_DSYMUTIL+:} false; then :
6924  $as_echo_n "(cached) " >&6
6925else
6926  if test -n "$DSYMUTIL"; then
6927  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6928else
6929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930for as_dir in $PATH
6931do
6932  IFS=$as_save_IFS
6933  test -z "$as_dir" && as_dir=.
6934    for ac_exec_ext in '' $ac_executable_extensions; do
6935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6936    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938    break 2
6939  fi
6940done
6941  done
6942IFS=$as_save_IFS
6943
6944fi
6945fi
6946DSYMUTIL=$ac_cv_prog_DSYMUTIL
6947if test -n "$DSYMUTIL"; then
6948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6949$as_echo "$DSYMUTIL" >&6; }
6950else
6951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952$as_echo "no" >&6; }
6953fi
6954
6955
6956fi
6957if test -z "$ac_cv_prog_DSYMUTIL"; then
6958  ac_ct_DSYMUTIL=$DSYMUTIL
6959  # Extract the first word of "dsymutil", so it can be a program name with args.
6960set dummy dsymutil; ac_word=$2
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962$as_echo_n "checking for $ac_word... " >&6; }
6963if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6964  $as_echo_n "(cached) " >&6
6965else
6966  if test -n "$ac_ct_DSYMUTIL"; then
6967  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6968else
6969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970for as_dir in $PATH
6971do
6972  IFS=$as_save_IFS
6973  test -z "$as_dir" && as_dir=.
6974    for ac_exec_ext in '' $ac_executable_extensions; do
6975  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6976    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6978    break 2
6979  fi
6980done
6981  done
6982IFS=$as_save_IFS
6983
6984fi
6985fi
6986ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6987if test -n "$ac_ct_DSYMUTIL"; then
6988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6989$as_echo "$ac_ct_DSYMUTIL" >&6; }
6990else
6991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992$as_echo "no" >&6; }
6993fi
6994
6995  if test "x$ac_ct_DSYMUTIL" = x; then
6996    DSYMUTIL=":"
6997  else
6998    case $cross_compiling:$ac_tool_warned in
6999yes:)
7000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7002ac_tool_warned=yes ;;
7003esac
7004    DSYMUTIL=$ac_ct_DSYMUTIL
7005  fi
7006else
7007  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7008fi
7009
7010    if test -n "$ac_tool_prefix"; then
7011  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7012set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014$as_echo_n "checking for $ac_word... " >&6; }
7015if ${ac_cv_prog_NMEDIT+:} false; then :
7016  $as_echo_n "(cached) " >&6
7017else
7018  if test -n "$NMEDIT"; then
7019  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7020else
7021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022for as_dir in $PATH
7023do
7024  IFS=$as_save_IFS
7025  test -z "$as_dir" && as_dir=.
7026    for ac_exec_ext in '' $ac_executable_extensions; do
7027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7028    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7030    break 2
7031  fi
7032done
7033  done
7034IFS=$as_save_IFS
7035
7036fi
7037fi
7038NMEDIT=$ac_cv_prog_NMEDIT
7039if test -n "$NMEDIT"; then
7040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7041$as_echo "$NMEDIT" >&6; }
7042else
7043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044$as_echo "no" >&6; }
7045fi
7046
7047
7048fi
7049if test -z "$ac_cv_prog_NMEDIT"; then
7050  ac_ct_NMEDIT=$NMEDIT
7051  # Extract the first word of "nmedit", so it can be a program name with args.
7052set dummy nmedit; ac_word=$2
7053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054$as_echo_n "checking for $ac_word... " >&6; }
7055if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7056  $as_echo_n "(cached) " >&6
7057else
7058  if test -n "$ac_ct_NMEDIT"; then
7059  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7060else
7061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062for as_dir in $PATH
7063do
7064  IFS=$as_save_IFS
7065  test -z "$as_dir" && as_dir=.
7066    for ac_exec_ext in '' $ac_executable_extensions; do
7067  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7068    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070    break 2
7071  fi
7072done
7073  done
7074IFS=$as_save_IFS
7075
7076fi
7077fi
7078ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7079if test -n "$ac_ct_NMEDIT"; then
7080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7081$as_echo "$ac_ct_NMEDIT" >&6; }
7082else
7083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084$as_echo "no" >&6; }
7085fi
7086
7087  if test "x$ac_ct_NMEDIT" = x; then
7088    NMEDIT=":"
7089  else
7090    case $cross_compiling:$ac_tool_warned in
7091yes:)
7092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7094ac_tool_warned=yes ;;
7095esac
7096    NMEDIT=$ac_ct_NMEDIT
7097  fi
7098else
7099  NMEDIT="$ac_cv_prog_NMEDIT"
7100fi
7101
7102    if test -n "$ac_tool_prefix"; then
7103  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7104set dummy ${ac_tool_prefix}lipo; ac_word=$2
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106$as_echo_n "checking for $ac_word... " >&6; }
7107if ${ac_cv_prog_LIPO+:} false; then :
7108  $as_echo_n "(cached) " >&6
7109else
7110  if test -n "$LIPO"; then
7111  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7112else
7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116  IFS=$as_save_IFS
7117  test -z "$as_dir" && as_dir=.
7118    for ac_exec_ext in '' $ac_executable_extensions; do
7119  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122    break 2
7123  fi
7124done
7125  done
7126IFS=$as_save_IFS
7127
7128fi
7129fi
7130LIPO=$ac_cv_prog_LIPO
7131if test -n "$LIPO"; then
7132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7133$as_echo "$LIPO" >&6; }
7134else
7135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136$as_echo "no" >&6; }
7137fi
7138
7139
7140fi
7141if test -z "$ac_cv_prog_LIPO"; then
7142  ac_ct_LIPO=$LIPO
7143  # Extract the first word of "lipo", so it can be a program name with args.
7144set dummy lipo; ac_word=$2
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146$as_echo_n "checking for $ac_word... " >&6; }
7147if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7148  $as_echo_n "(cached) " >&6
7149else
7150  if test -n "$ac_ct_LIPO"; then
7151  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7152else
7153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154for as_dir in $PATH
7155do
7156  IFS=$as_save_IFS
7157  test -z "$as_dir" && as_dir=.
7158    for ac_exec_ext in '' $ac_executable_extensions; do
7159  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7160    ac_cv_prog_ac_ct_LIPO="lipo"
7161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162    break 2
7163  fi
7164done
7165  done
7166IFS=$as_save_IFS
7167
7168fi
7169fi
7170ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7171if test -n "$ac_ct_LIPO"; then
7172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7173$as_echo "$ac_ct_LIPO" >&6; }
7174else
7175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176$as_echo "no" >&6; }
7177fi
7178
7179  if test "x$ac_ct_LIPO" = x; then
7180    LIPO=":"
7181  else
7182    case $cross_compiling:$ac_tool_warned in
7183yes:)
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7186ac_tool_warned=yes ;;
7187esac
7188    LIPO=$ac_ct_LIPO
7189  fi
7190else
7191  LIPO="$ac_cv_prog_LIPO"
7192fi
7193
7194    if test -n "$ac_tool_prefix"; then
7195  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7196set dummy ${ac_tool_prefix}otool; ac_word=$2
7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198$as_echo_n "checking for $ac_word... " >&6; }
7199if ${ac_cv_prog_OTOOL+:} false; then :
7200  $as_echo_n "(cached) " >&6
7201else
7202  if test -n "$OTOOL"; then
7203  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7204else
7205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206for as_dir in $PATH
7207do
7208  IFS=$as_save_IFS
7209  test -z "$as_dir" && as_dir=.
7210    for ac_exec_ext in '' $ac_executable_extensions; do
7211  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7212    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7213    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214    break 2
7215  fi
7216done
7217  done
7218IFS=$as_save_IFS
7219
7220fi
7221fi
7222OTOOL=$ac_cv_prog_OTOOL
7223if test -n "$OTOOL"; then
7224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7225$as_echo "$OTOOL" >&6; }
7226else
7227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228$as_echo "no" >&6; }
7229fi
7230
7231
7232fi
7233if test -z "$ac_cv_prog_OTOOL"; then
7234  ac_ct_OTOOL=$OTOOL
7235  # Extract the first word of "otool", so it can be a program name with args.
7236set dummy otool; ac_word=$2
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238$as_echo_n "checking for $ac_word... " >&6; }
7239if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7240  $as_echo_n "(cached) " >&6
7241else
7242  if test -n "$ac_ct_OTOOL"; then
7243  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7244else
7245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246for as_dir in $PATH
7247do
7248  IFS=$as_save_IFS
7249  test -z "$as_dir" && as_dir=.
7250    for ac_exec_ext in '' $ac_executable_extensions; do
7251  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252    ac_cv_prog_ac_ct_OTOOL="otool"
7253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254    break 2
7255  fi
7256done
7257  done
7258IFS=$as_save_IFS
7259
7260fi
7261fi
7262ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7263if test -n "$ac_ct_OTOOL"; then
7264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7265$as_echo "$ac_ct_OTOOL" >&6; }
7266else
7267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268$as_echo "no" >&6; }
7269fi
7270
7271  if test "x$ac_ct_OTOOL" = x; then
7272    OTOOL=":"
7273  else
7274    case $cross_compiling:$ac_tool_warned in
7275yes:)
7276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7278ac_tool_warned=yes ;;
7279esac
7280    OTOOL=$ac_ct_OTOOL
7281  fi
7282else
7283  OTOOL="$ac_cv_prog_OTOOL"
7284fi
7285
7286    if test -n "$ac_tool_prefix"; then
7287  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7288set dummy ${ac_tool_prefix}otool64; ac_word=$2
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290$as_echo_n "checking for $ac_word... " >&6; }
7291if ${ac_cv_prog_OTOOL64+:} false; then :
7292  $as_echo_n "(cached) " >&6
7293else
7294  if test -n "$OTOOL64"; then
7295  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7296else
7297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298for as_dir in $PATH
7299do
7300  IFS=$as_save_IFS
7301  test -z "$as_dir" && as_dir=.
7302    for ac_exec_ext in '' $ac_executable_extensions; do
7303  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306    break 2
7307  fi
7308done
7309  done
7310IFS=$as_save_IFS
7311
7312fi
7313fi
7314OTOOL64=$ac_cv_prog_OTOOL64
7315if test -n "$OTOOL64"; then
7316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7317$as_echo "$OTOOL64" >&6; }
7318else
7319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320$as_echo "no" >&6; }
7321fi
7322
7323
7324fi
7325if test -z "$ac_cv_prog_OTOOL64"; then
7326  ac_ct_OTOOL64=$OTOOL64
7327  # Extract the first word of "otool64", so it can be a program name with args.
7328set dummy otool64; ac_word=$2
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330$as_echo_n "checking for $ac_word... " >&6; }
7331if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7332  $as_echo_n "(cached) " >&6
7333else
7334  if test -n "$ac_ct_OTOOL64"; then
7335  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7336else
7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340  IFS=$as_save_IFS
7341  test -z "$as_dir" && as_dir=.
7342    for ac_exec_ext in '' $ac_executable_extensions; do
7343  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7344    ac_cv_prog_ac_ct_OTOOL64="otool64"
7345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346    break 2
7347  fi
7348done
7349  done
7350IFS=$as_save_IFS
7351
7352fi
7353fi
7354ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7355if test -n "$ac_ct_OTOOL64"; then
7356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7357$as_echo "$ac_ct_OTOOL64" >&6; }
7358else
7359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360$as_echo "no" >&6; }
7361fi
7362
7363  if test "x$ac_ct_OTOOL64" = x; then
7364    OTOOL64=":"
7365  else
7366    case $cross_compiling:$ac_tool_warned in
7367yes:)
7368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7370ac_tool_warned=yes ;;
7371esac
7372    OTOOL64=$ac_ct_OTOOL64
7373  fi
7374else
7375  OTOOL64="$ac_cv_prog_OTOOL64"
7376fi
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7405$as_echo_n "checking for -single_module linker flag... " >&6; }
7406if ${lt_cv_apple_cc_single_mod+:} false; then :
7407  $as_echo_n "(cached) " >&6
7408else
7409  lt_cv_apple_cc_single_mod=no
7410      if test -z "$LT_MULTI_MODULE"; then
7411	# By default we will add the -single_module flag. You can override
7412	# by either setting the environment variable LT_MULTI_MODULE
7413	# non-empty at configure time, or by adding -multi_module to the
7414	# link flags.
7415	rm -rf libconftest.dylib*
7416	echo "int foo(void){return 1;}" > conftest.c
7417	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7418-dynamiclib -Wl,-single_module conftest.c" >&5
7419	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7420	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7421        _lt_result=$?
7422	# If there is a non-empty error log, and "single_module"
7423	# appears in it, assume the flag caused a linker warning
7424        if test -s conftest.err && $GREP single_module conftest.err; then
7425	  cat conftest.err >&5
7426	# Otherwise, if the output was created with a 0 exit code from
7427	# the compiler, it worked.
7428	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7429	  lt_cv_apple_cc_single_mod=yes
7430	else
7431	  cat conftest.err >&5
7432	fi
7433	rm -rf libconftest.dylib*
7434	rm -f conftest.*
7435      fi
7436fi
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7438$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7439
7440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7441$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7442if ${lt_cv_ld_exported_symbols_list+:} false; then :
7443  $as_echo_n "(cached) " >&6
7444else
7445  lt_cv_ld_exported_symbols_list=no
7446      save_LDFLAGS=$LDFLAGS
7447      echo "_main" > conftest.sym
7448      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7449      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450/* end confdefs.h.  */
7451
7452int
7453main ()
7454{
7455
7456  ;
7457  return 0;
7458}
7459_ACEOF
7460if ac_fn_c_try_link "$LINENO"; then :
7461  lt_cv_ld_exported_symbols_list=yes
7462else
7463  lt_cv_ld_exported_symbols_list=no
7464fi
7465rm -f core conftest.err conftest.$ac_objext \
7466    conftest$ac_exeext conftest.$ac_ext
7467	LDFLAGS=$save_LDFLAGS
7468
7469fi
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7471$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7472
7473    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7474$as_echo_n "checking for -force_load linker flag... " >&6; }
7475if ${lt_cv_ld_force_load+:} false; then :
7476  $as_echo_n "(cached) " >&6
7477else
7478  lt_cv_ld_force_load=no
7479      cat > conftest.c << _LT_EOF
7480int forced_loaded() { return 2;}
7481_LT_EOF
7482      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7483      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7484      echo "$AR cru libconftest.a conftest.o" >&5
7485      $AR cru libconftest.a conftest.o 2>&5
7486      echo "$RANLIB libconftest.a" >&5
7487      $RANLIB libconftest.a 2>&5
7488      cat > conftest.c << _LT_EOF
7489int main() { return 0;}
7490_LT_EOF
7491      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7492      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7493      _lt_result=$?
7494      if test -s conftest.err && $GREP force_load conftest.err; then
7495	cat conftest.err >&5
7496      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7497	lt_cv_ld_force_load=yes
7498      else
7499	cat conftest.err >&5
7500      fi
7501        rm -f conftest.err libconftest.a conftest conftest.c
7502        rm -rf conftest.dSYM
7503
7504fi
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7506$as_echo "$lt_cv_ld_force_load" >&6; }
7507    case $host_os in
7508    rhapsody* | darwin1.[012])
7509      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7510    darwin1.*)
7511      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7512    darwin*) # darwin 5.x on
7513      # if running on 10.5 or later, the deployment target defaults
7514      # to the OS version, if on x86, and 10.4, the deployment
7515      # target defaults to 10.4. Don't you love it?
7516      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7517	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7518	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7519	10.[012][,.]*)
7520	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7521	10.*)
7522	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7523      esac
7524    ;;
7525  esac
7526    if test yes = "$lt_cv_apple_cc_single_mod"; then
7527      _lt_dar_single_mod='$single_module'
7528    fi
7529    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7530      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7531    else
7532      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7533    fi
7534    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7535      _lt_dsymutil='~$DSYMUTIL $lib || :'
7536    else
7537      _lt_dsymutil=
7538    fi
7539    ;;
7540  esac
7541
7542# func_munge_path_list VARIABLE PATH
7543# -----------------------------------
7544# VARIABLE is name of variable containing _space_ separated list of
7545# directories to be munged by the contents of PATH, which is string
7546# having a format:
7547# "DIR[:DIR]:"
7548#       string "DIR[ DIR]" will be prepended to VARIABLE
7549# ":DIR[:DIR]"
7550#       string "DIR[ DIR]" will be appended to VARIABLE
7551# "DIRP[:DIRP]::[DIRA:]DIRA"
7552#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7553#       "DIRA[ DIRA]" will be appended to VARIABLE
7554# "DIR[:DIR]"
7555#       VARIABLE will be replaced by "DIR[ DIR]"
7556func_munge_path_list ()
7557{
7558    case x$2 in
7559    x)
7560        ;;
7561    *:)
7562        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7563        ;;
7564    x:*)
7565        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7566        ;;
7567    *::*)
7568        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7569        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7570        ;;
7571    *)
7572        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7573        ;;
7574    esac
7575}
7576
7577ac_ext=c
7578ac_cpp='$CPP $CPPFLAGS'
7579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7581ac_compiler_gnu=$ac_cv_c_compiler_gnu
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7583$as_echo_n "checking how to run the C preprocessor... " >&6; }
7584# On Suns, sometimes $CPP names a directory.
7585if test -n "$CPP" && test -d "$CPP"; then
7586  CPP=
7587fi
7588if test -z "$CPP"; then
7589  if ${ac_cv_prog_CPP+:} false; then :
7590  $as_echo_n "(cached) " >&6
7591else
7592      # Double quotes because CPP needs to be expanded
7593    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7594    do
7595      ac_preproc_ok=false
7596for ac_c_preproc_warn_flag in '' yes
7597do
7598  # Use a header file that comes with gcc, so configuring glibc
7599  # with a fresh cross-compiler works.
7600  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7601  # <limits.h> exists even on freestanding compilers.
7602  # On the NeXT, cc -E runs the code through the compiler's parser,
7603  # not just through cpp. "Syntax error" is here to catch this case.
7604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605/* end confdefs.h.  */
7606#ifdef __STDC__
7607# include <limits.h>
7608#else
7609# include <assert.h>
7610#endif
7611		     Syntax error
7612_ACEOF
7613if ac_fn_c_try_cpp "$LINENO"; then :
7614
7615else
7616  # Broken: fails on valid input.
7617continue
7618fi
7619rm -f conftest.err conftest.i conftest.$ac_ext
7620
7621  # OK, works on sane cases.  Now check whether nonexistent headers
7622  # can be detected and how.
7623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624/* end confdefs.h.  */
7625#include <ac_nonexistent.h>
7626_ACEOF
7627if ac_fn_c_try_cpp "$LINENO"; then :
7628  # Broken: success on invalid input.
7629continue
7630else
7631  # Passes both tests.
7632ac_preproc_ok=:
7633break
7634fi
7635rm -f conftest.err conftest.i conftest.$ac_ext
7636
7637done
7638# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7639rm -f conftest.i conftest.err conftest.$ac_ext
7640if $ac_preproc_ok; then :
7641  break
7642fi
7643
7644    done
7645    ac_cv_prog_CPP=$CPP
7646
7647fi
7648  CPP=$ac_cv_prog_CPP
7649else
7650  ac_cv_prog_CPP=$CPP
7651fi
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7653$as_echo "$CPP" >&6; }
7654ac_preproc_ok=false
7655for ac_c_preproc_warn_flag in '' yes
7656do
7657  # Use a header file that comes with gcc, so configuring glibc
7658  # with a fresh cross-compiler works.
7659  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7660  # <limits.h> exists even on freestanding compilers.
7661  # On the NeXT, cc -E runs the code through the compiler's parser,
7662  # not just through cpp. "Syntax error" is here to catch this case.
7663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664/* end confdefs.h.  */
7665#ifdef __STDC__
7666# include <limits.h>
7667#else
7668# include <assert.h>
7669#endif
7670		     Syntax error
7671_ACEOF
7672if ac_fn_c_try_cpp "$LINENO"; then :
7673
7674else
7675  # Broken: fails on valid input.
7676continue
7677fi
7678rm -f conftest.err conftest.i conftest.$ac_ext
7679
7680  # OK, works on sane cases.  Now check whether nonexistent headers
7681  # can be detected and how.
7682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683/* end confdefs.h.  */
7684#include <ac_nonexistent.h>
7685_ACEOF
7686if ac_fn_c_try_cpp "$LINENO"; then :
7687  # Broken: success on invalid input.
7688continue
7689else
7690  # Passes both tests.
7691ac_preproc_ok=:
7692break
7693fi
7694rm -f conftest.err conftest.i conftest.$ac_ext
7695
7696done
7697# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7698rm -f conftest.i conftest.err conftest.$ac_ext
7699if $ac_preproc_ok; then :
7700
7701else
7702  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7704as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7705See \`config.log' for more details" "$LINENO" 5; }
7706fi
7707
7708ac_ext=c
7709ac_cpp='$CPP $CPPFLAGS'
7710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713
7714
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7716$as_echo_n "checking for ANSI C header files... " >&6; }
7717if ${ac_cv_header_stdc+:} false; then :
7718  $as_echo_n "(cached) " >&6
7719else
7720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721/* end confdefs.h.  */
7722#include <stdlib.h>
7723#include <stdarg.h>
7724#include <string.h>
7725#include <float.h>
7726
7727int
7728main ()
7729{
7730
7731  ;
7732  return 0;
7733}
7734_ACEOF
7735if ac_fn_c_try_compile "$LINENO"; then :
7736  ac_cv_header_stdc=yes
7737else
7738  ac_cv_header_stdc=no
7739fi
7740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7741
7742if test $ac_cv_header_stdc = yes; then
7743  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745/* end confdefs.h.  */
7746#include <string.h>
7747
7748_ACEOF
7749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7750  $EGREP "memchr" >/dev/null 2>&1; then :
7751
7752else
7753  ac_cv_header_stdc=no
7754fi
7755rm -f conftest*
7756
7757fi
7758
7759if test $ac_cv_header_stdc = yes; then
7760  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762/* end confdefs.h.  */
7763#include <stdlib.h>
7764
7765_ACEOF
7766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7767  $EGREP "free" >/dev/null 2>&1; then :
7768
7769else
7770  ac_cv_header_stdc=no
7771fi
7772rm -f conftest*
7773
7774fi
7775
7776if test $ac_cv_header_stdc = yes; then
7777  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7778  if test "$cross_compiling" = yes; then :
7779  :
7780else
7781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782/* end confdefs.h.  */
7783#include <ctype.h>
7784#include <stdlib.h>
7785#if ((' ' & 0x0FF) == 0x020)
7786# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7787# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7788#else
7789# define ISLOWER(c) \
7790		   (('a' <= (c) && (c) <= 'i') \
7791		     || ('j' <= (c) && (c) <= 'r') \
7792		     || ('s' <= (c) && (c) <= 'z'))
7793# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7794#endif
7795
7796#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7797int
7798main ()
7799{
7800  int i;
7801  for (i = 0; i < 256; i++)
7802    if (XOR (islower (i), ISLOWER (i))
7803	|| toupper (i) != TOUPPER (i))
7804      return 2;
7805  return 0;
7806}
7807_ACEOF
7808if ac_fn_c_try_run "$LINENO"; then :
7809
7810else
7811  ac_cv_header_stdc=no
7812fi
7813rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7814  conftest.$ac_objext conftest.beam conftest.$ac_ext
7815fi
7816
7817fi
7818fi
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7820$as_echo "$ac_cv_header_stdc" >&6; }
7821if test $ac_cv_header_stdc = yes; then
7822
7823$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7824
7825fi
7826
7827# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7828for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7829		  inttypes.h stdint.h unistd.h
7830do :
7831  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7832ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7833"
7834if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7835  cat >>confdefs.h <<_ACEOF
7836#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7837_ACEOF
7838
7839fi
7840
7841done
7842
7843
7844for ac_header in dlfcn.h
7845do :
7846  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7847"
7848if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7849  cat >>confdefs.h <<_ACEOF
7850#define HAVE_DLFCN_H 1
7851_ACEOF
7852
7853fi
7854
7855done
7856
7857
7858
7859
7860
7861# Set options
7862
7863
7864
7865        enable_dlopen=no
7866
7867
7868
7869            # Check whether --enable-shared was given.
7870if test "${enable_shared+set}" = set; then :
7871  enableval=$enable_shared; p=${PACKAGE-default}
7872    case $enableval in
7873    yes) enable_shared=yes ;;
7874    no) enable_shared=no ;;
7875    *)
7876      enable_shared=no
7877      # Look at the argument we got.  We use all the common list separators.
7878      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7879      for pkg in $enableval; do
7880	IFS=$lt_save_ifs
7881	if test "X$pkg" = "X$p"; then
7882	  enable_shared=yes
7883	fi
7884      done
7885      IFS=$lt_save_ifs
7886      ;;
7887    esac
7888else
7889  enable_shared=yes
7890fi
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900  # Check whether --enable-static was given.
7901if test "${enable_static+set}" = set; then :
7902  enableval=$enable_static; p=${PACKAGE-default}
7903    case $enableval in
7904    yes) enable_static=yes ;;
7905    no) enable_static=no ;;
7906    *)
7907     enable_static=no
7908      # Look at the argument we got.  We use all the common list separators.
7909      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7910      for pkg in $enableval; do
7911	IFS=$lt_save_ifs
7912	if test "X$pkg" = "X$p"; then
7913	  enable_static=yes
7914	fi
7915      done
7916      IFS=$lt_save_ifs
7917      ;;
7918    esac
7919else
7920  enable_static=yes
7921fi
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932# Check whether --with-pic was given.
7933if test "${with_pic+set}" = set; then :
7934  withval=$with_pic; lt_p=${PACKAGE-default}
7935    case $withval in
7936    yes|no) pic_mode=$withval ;;
7937    *)
7938      pic_mode=default
7939      # Look at the argument we got.  We use all the common list separators.
7940      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7941      for lt_pkg in $withval; do
7942	IFS=$lt_save_ifs
7943	if test "X$lt_pkg" = "X$lt_p"; then
7944	  pic_mode=yes
7945	fi
7946      done
7947      IFS=$lt_save_ifs
7948      ;;
7949    esac
7950else
7951  pic_mode=default
7952fi
7953
7954
7955
7956
7957
7958
7959
7960
7961  # Check whether --enable-fast-install was given.
7962if test "${enable_fast_install+set}" = set; then :
7963  enableval=$enable_fast_install; p=${PACKAGE-default}
7964    case $enableval in
7965    yes) enable_fast_install=yes ;;
7966    no) enable_fast_install=no ;;
7967    *)
7968      enable_fast_install=no
7969      # Look at the argument we got.  We use all the common list separators.
7970      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7971      for pkg in $enableval; do
7972	IFS=$lt_save_ifs
7973	if test "X$pkg" = "X$p"; then
7974	  enable_fast_install=yes
7975	fi
7976      done
7977      IFS=$lt_save_ifs
7978      ;;
7979    esac
7980else
7981  enable_fast_install=yes
7982fi
7983
7984
7985
7986
7987
7988
7989
7990
7991  shared_archive_member_spec=
7992case $host,$enable_shared in
7993power*-*-aix[5-9]*,yes)
7994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7995$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7996
7997# Check whether --with-aix-soname was given.
7998if test "${with_aix_soname+set}" = set; then :
7999  withval=$with_aix_soname; case $withval in
8000    aix|svr4|both)
8001      ;;
8002    *)
8003      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8004      ;;
8005    esac
8006    lt_cv_with_aix_soname=$with_aix_soname
8007else
8008  if ${lt_cv_with_aix_soname+:} false; then :
8009  $as_echo_n "(cached) " >&6
8010else
8011  lt_cv_with_aix_soname=aix
8012fi
8013
8014    with_aix_soname=$lt_cv_with_aix_soname
8015fi
8016
8017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8018$as_echo "$with_aix_soname" >&6; }
8019  if test aix != "$with_aix_soname"; then
8020    # For the AIX way of multilib, we name the shared archive member
8021    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8022    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8023    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8024    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8025    if test 64 = "${OBJECT_MODE-32}"; then
8026      shared_archive_member_spec=shr_64
8027    else
8028      shared_archive_member_spec=shr
8029    fi
8030  fi
8031  ;;
8032*)
8033  with_aix_soname=aix
8034  ;;
8035esac
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046# This can be used to rebuild libtool when needed
8047LIBTOOL_DEPS=$ltmain
8048
8049# Always use our own libtool.
8050LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081test -z "$LN_S" && LN_S="ln -s"
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096if test -n "${ZSH_VERSION+set}"; then
8097   setopt NO_GLOB_SUBST
8098fi
8099
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8101$as_echo_n "checking for objdir... " >&6; }
8102if ${lt_cv_objdir+:} false; then :
8103  $as_echo_n "(cached) " >&6
8104else
8105  rm -f .libs 2>/dev/null
8106mkdir .libs 2>/dev/null
8107if test -d .libs; then
8108  lt_cv_objdir=.libs
8109else
8110  # MS-DOS does not allow filenames that begin with a dot.
8111  lt_cv_objdir=_libs
8112fi
8113rmdir .libs 2>/dev/null
8114fi
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8116$as_echo "$lt_cv_objdir" >&6; }
8117objdir=$lt_cv_objdir
8118
8119
8120
8121
8122
8123cat >>confdefs.h <<_ACEOF
8124#define LT_OBJDIR "$lt_cv_objdir/"
8125_ACEOF
8126
8127
8128
8129
8130case $host_os in
8131aix3*)
8132  # AIX sometimes has problems with the GCC collect2 program.  For some
8133  # reason, if we set the COLLECT_NAMES environment variable, the problems
8134  # vanish in a puff of smoke.
8135  if test set != "${COLLECT_NAMES+set}"; then
8136    COLLECT_NAMES=
8137    export COLLECT_NAMES
8138  fi
8139  ;;
8140esac
8141
8142# Global variables:
8143ofile=libtool
8144can_build_shared=yes
8145
8146# All known linkers require a '.a' archive for static linking (except MSVC,
8147# which needs '.lib').
8148libext=a
8149
8150with_gnu_ld=$lt_cv_prog_gnu_ld
8151
8152old_CC=$CC
8153old_CFLAGS=$CFLAGS
8154
8155# Set sane defaults for various variables
8156test -z "$CC" && CC=cc
8157test -z "$LTCC" && LTCC=$CC
8158test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8159test -z "$LD" && LD=ld
8160test -z "$ac_objext" && ac_objext=o
8161
8162func_cc_basename $compiler
8163cc_basename=$func_cc_basename_result
8164
8165
8166# Only perform the check for file, if the check method requires it
8167test -z "$MAGIC_CMD" && MAGIC_CMD=file
8168case $deplibs_check_method in
8169file_magic*)
8170  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8171    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8172$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8173if ${lt_cv_path_MAGIC_CMD+:} false; then :
8174  $as_echo_n "(cached) " >&6
8175else
8176  case $MAGIC_CMD in
8177[\\/*] |  ?:[\\/]*)
8178  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8179  ;;
8180*)
8181  lt_save_MAGIC_CMD=$MAGIC_CMD
8182  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8183  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8184  for ac_dir in $ac_dummy; do
8185    IFS=$lt_save_ifs
8186    test -z "$ac_dir" && ac_dir=.
8187    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8188      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8189      if test -n "$file_magic_test_file"; then
8190	case $deplibs_check_method in
8191	"file_magic "*)
8192	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8193	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8194	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8195	    $EGREP "$file_magic_regex" > /dev/null; then
8196	    :
8197	  else
8198	    cat <<_LT_EOF 1>&2
8199
8200*** Warning: the command libtool uses to detect shared libraries,
8201*** $file_magic_cmd, produces output that libtool cannot recognize.
8202*** The result is that libtool may fail to recognize shared libraries
8203*** as such.  This will affect the creation of libtool libraries that
8204*** depend on shared libraries, but programs linked with such libtool
8205*** libraries will work regardless of this problem.  Nevertheless, you
8206*** may want to report the problem to your system manager and/or to
8207*** [email protected]
8208
8209_LT_EOF
8210	  fi ;;
8211	esac
8212      fi
8213      break
8214    fi
8215  done
8216  IFS=$lt_save_ifs
8217  MAGIC_CMD=$lt_save_MAGIC_CMD
8218  ;;
8219esac
8220fi
8221
8222MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8223if test -n "$MAGIC_CMD"; then
8224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8225$as_echo "$MAGIC_CMD" >&6; }
8226else
8227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228$as_echo "no" >&6; }
8229fi
8230
8231
8232
8233
8234
8235if test -z "$lt_cv_path_MAGIC_CMD"; then
8236  if test -n "$ac_tool_prefix"; then
8237    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8238$as_echo_n "checking for file... " >&6; }
8239if ${lt_cv_path_MAGIC_CMD+:} false; then :
8240  $as_echo_n "(cached) " >&6
8241else
8242  case $MAGIC_CMD in
8243[\\/*] |  ?:[\\/]*)
8244  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8245  ;;
8246*)
8247  lt_save_MAGIC_CMD=$MAGIC_CMD
8248  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8249  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8250  for ac_dir in $ac_dummy; do
8251    IFS=$lt_save_ifs
8252    test -z "$ac_dir" && ac_dir=.
8253    if test -f "$ac_dir/file"; then
8254      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8255      if test -n "$file_magic_test_file"; then
8256	case $deplibs_check_method in
8257	"file_magic "*)
8258	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8259	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8260	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8261	    $EGREP "$file_magic_regex" > /dev/null; then
8262	    :
8263	  else
8264	    cat <<_LT_EOF 1>&2
8265
8266*** Warning: the command libtool uses to detect shared libraries,
8267*** $file_magic_cmd, produces output that libtool cannot recognize.
8268*** The result is that libtool may fail to recognize shared libraries
8269*** as such.  This will affect the creation of libtool libraries that
8270*** depend on shared libraries, but programs linked with such libtool
8271*** libraries will work regardless of this problem.  Nevertheless, you
8272*** may want to report the problem to your system manager and/or to
8273*** [email protected]
8274
8275_LT_EOF
8276	  fi ;;
8277	esac
8278      fi
8279      break
8280    fi
8281  done
8282  IFS=$lt_save_ifs
8283  MAGIC_CMD=$lt_save_MAGIC_CMD
8284  ;;
8285esac
8286fi
8287
8288MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8289if test -n "$MAGIC_CMD"; then
8290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8291$as_echo "$MAGIC_CMD" >&6; }
8292else
8293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294$as_echo "no" >&6; }
8295fi
8296
8297
8298  else
8299    MAGIC_CMD=:
8300  fi
8301fi
8302
8303  fi
8304  ;;
8305esac
8306
8307# Use C for the default configuration in the libtool script
8308
8309lt_save_CC=$CC
8310ac_ext=c
8311ac_cpp='$CPP $CPPFLAGS'
8312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8314ac_compiler_gnu=$ac_cv_c_compiler_gnu
8315
8316
8317# Source file extension for C test sources.
8318ac_ext=c
8319
8320# Object file extension for compiled C test sources.
8321objext=o
8322objext=$objext
8323
8324# Code to be used in simple compile tests
8325lt_simple_compile_test_code="int some_variable = 0;"
8326
8327# Code to be used in simple link tests
8328lt_simple_link_test_code='int main(){return(0);}'
8329
8330
8331
8332
8333
8334
8335
8336# If no C compiler was specified, use CC.
8337LTCC=${LTCC-"$CC"}
8338
8339# If no C compiler flags were specified, use CFLAGS.
8340LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8341
8342# Allow CC to be a program name with arguments.
8343compiler=$CC
8344
8345# Save the default compiler, since it gets overwritten when the other
8346# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8347compiler_DEFAULT=$CC
8348
8349# save warnings/boilerplate of simple test code
8350ac_outfile=conftest.$ac_objext
8351echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8352eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8353_lt_compiler_boilerplate=`cat conftest.err`
8354$RM conftest*
8355
8356ac_outfile=conftest.$ac_objext
8357echo "$lt_simple_link_test_code" >conftest.$ac_ext
8358eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8359_lt_linker_boilerplate=`cat conftest.err`
8360$RM -r conftest*
8361
8362
8363## CAVEAT EMPTOR:
8364## There is no encapsulation within the following macros, do not change
8365## the running order or otherwise move them around unless you know exactly
8366## what you are doing...
8367if test -n "$compiler"; then
8368
8369lt_prog_compiler_no_builtin_flag=
8370
8371if test yes = "$GCC"; then
8372  case $cc_basename in
8373  nvcc*)
8374    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8375  *)
8376    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8377  esac
8378
8379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8380$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8381if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8382  $as_echo_n "(cached) " >&6
8383else
8384  lt_cv_prog_compiler_rtti_exceptions=no
8385   ac_outfile=conftest.$ac_objext
8386   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8387   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8388   # Insert the option either (1) after the last *FLAGS variable, or
8389   # (2) before a word containing "conftest.", or (3) at the end.
8390   # Note that $ac_compile itself does not contain backslashes and begins
8391   # with a dollar sign (not a hyphen), so the echo should work correctly.
8392   # The option is referenced via a variable to avoid confusing sed.
8393   lt_compile=`echo "$ac_compile" | $SED \
8394   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8395   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8396   -e 's:$: $lt_compiler_flag:'`
8397   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8398   (eval "$lt_compile" 2>conftest.err)
8399   ac_status=$?
8400   cat conftest.err >&5
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   if (exit $ac_status) && test -s "$ac_outfile"; then
8403     # The compiler can only warn and ignore the option if not recognized
8404     # So say no if there are warnings other than the usual output.
8405     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8406     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8407     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8408       lt_cv_prog_compiler_rtti_exceptions=yes
8409     fi
8410   fi
8411   $RM conftest*
8412
8413fi
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8415$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8416
8417if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8418    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8419else
8420    :
8421fi
8422
8423fi
8424
8425
8426
8427
8428
8429
8430  lt_prog_compiler_wl=
8431lt_prog_compiler_pic=
8432lt_prog_compiler_static=
8433
8434
8435  if test yes = "$GCC"; then
8436    lt_prog_compiler_wl='-Wl,'
8437    lt_prog_compiler_static='-static'
8438
8439    case $host_os in
8440      aix*)
8441      # All AIX code is PIC.
8442      if test ia64 = "$host_cpu"; then
8443	# AIX 5 now supports IA64 processor
8444	lt_prog_compiler_static='-Bstatic'
8445      fi
8446      lt_prog_compiler_pic='-fPIC'
8447      ;;
8448
8449    amigaos*)
8450      case $host_cpu in
8451      powerpc)
8452            # see comment about AmigaOS4 .so support
8453            lt_prog_compiler_pic='-fPIC'
8454        ;;
8455      m68k)
8456            # FIXME: we need at least 68020 code to build shared libraries, but
8457            # adding the '-m68020' flag to GCC prevents building anything better,
8458            # like '-m68040'.
8459            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8460        ;;
8461      esac
8462      ;;
8463
8464    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8465      # PIC is the default for these OSes.
8466      ;;
8467
8468    mingw* | cygwin* | pw32* | os2* | cegcc*)
8469      # This hack is so that the source file can tell whether it is being
8470      # built for inclusion in a dll (and should export symbols for example).
8471      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8472      # (--disable-auto-import) libraries
8473      lt_prog_compiler_pic='-DDLL_EXPORT'
8474      case $host_os in
8475      os2*)
8476	lt_prog_compiler_static='$wl-static'
8477	;;
8478      esac
8479      ;;
8480
8481    darwin* | rhapsody*)
8482      # PIC is the default on this platform
8483      # Common symbols not allowed in MH_DYLIB files
8484      lt_prog_compiler_pic='-fno-common'
8485      ;;
8486
8487    haiku*)
8488      # PIC is the default for Haiku.
8489      # The "-static" flag exists, but is broken.
8490      lt_prog_compiler_static=
8491      ;;
8492
8493    hpux*)
8494      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8495      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8496      # sets the default TLS model and affects inlining.
8497      case $host_cpu in
8498      hppa*64*)
8499	# +Z the default
8500	;;
8501      *)
8502	lt_prog_compiler_pic='-fPIC'
8503	;;
8504      esac
8505      ;;
8506
8507    interix[3-9]*)
8508      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8509      # Instead, we relocate shared libraries at runtime.
8510      ;;
8511
8512    msdosdjgpp*)
8513      # Just because we use GCC doesn't mean we suddenly get shared libraries
8514      # on systems that don't support them.
8515      lt_prog_compiler_can_build_shared=no
8516      enable_shared=no
8517      ;;
8518
8519    *nto* | *qnx*)
8520      # QNX uses GNU C++, but need to define -shared option too, otherwise
8521      # it will coredump.
8522      lt_prog_compiler_pic='-fPIC -shared'
8523      ;;
8524
8525    sysv4*MP*)
8526      if test -d /usr/nec; then
8527	lt_prog_compiler_pic=-Kconform_pic
8528      fi
8529      ;;
8530
8531    *)
8532      lt_prog_compiler_pic='-fPIC'
8533      ;;
8534    esac
8535
8536    case $cc_basename in
8537    nvcc*) # Cuda Compiler Driver 2.2
8538      lt_prog_compiler_wl='-Xlinker '
8539      if test -n "$lt_prog_compiler_pic"; then
8540        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8541      fi
8542      ;;
8543    esac
8544  else
8545    # PORTME Check for flag to pass linker flags through the system compiler.
8546    case $host_os in
8547    aix*)
8548      lt_prog_compiler_wl='-Wl,'
8549      if test ia64 = "$host_cpu"; then
8550	# AIX 5 now supports IA64 processor
8551	lt_prog_compiler_static='-Bstatic'
8552      else
8553	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8554      fi
8555      ;;
8556
8557    darwin* | rhapsody*)
8558      # PIC is the default on this platform
8559      # Common symbols not allowed in MH_DYLIB files
8560      lt_prog_compiler_pic='-fno-common'
8561      case $cc_basename in
8562      nagfor*)
8563        # NAG Fortran compiler
8564        lt_prog_compiler_wl='-Wl,-Wl,,'
8565        lt_prog_compiler_pic='-PIC'
8566        lt_prog_compiler_static='-Bstatic'
8567        ;;
8568      esac
8569      ;;
8570
8571    mingw* | cygwin* | pw32* | os2* | cegcc*)
8572      # This hack is so that the source file can tell whether it is being
8573      # built for inclusion in a dll (and should export symbols for example).
8574      lt_prog_compiler_pic='-DDLL_EXPORT'
8575      case $host_os in
8576      os2*)
8577	lt_prog_compiler_static='$wl-static'
8578	;;
8579      esac
8580      ;;
8581
8582    hpux9* | hpux10* | hpux11*)
8583      lt_prog_compiler_wl='-Wl,'
8584      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8585      # not for PA HP-UX.
8586      case $host_cpu in
8587      hppa*64*|ia64*)
8588	# +Z the default
8589	;;
8590      *)
8591	lt_prog_compiler_pic='+Z'
8592	;;
8593      esac
8594      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8595      lt_prog_compiler_static='$wl-a ${wl}archive'
8596      ;;
8597
8598    irix5* | irix6* | nonstopux*)
8599      lt_prog_compiler_wl='-Wl,'
8600      # PIC (with -KPIC) is the default.
8601      lt_prog_compiler_static='-non_shared'
8602      ;;
8603
8604    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8605      case $cc_basename in
8606      # old Intel for x86_64, which still supported -KPIC.
8607      ecc*)
8608	lt_prog_compiler_wl='-Wl,'
8609	lt_prog_compiler_pic='-KPIC'
8610	lt_prog_compiler_static='-static'
8611        ;;
8612      # icc used to be incompatible with GCC.
8613      # ICC 10 doesn't accept -KPIC any more.
8614      icc* | ifort*)
8615	lt_prog_compiler_wl='-Wl,'
8616	lt_prog_compiler_pic='-fPIC'
8617	lt_prog_compiler_static='-static'
8618        ;;
8619      # Lahey Fortran 8.1.
8620      lf95*)
8621	lt_prog_compiler_wl='-Wl,'
8622	lt_prog_compiler_pic='--shared'
8623	lt_prog_compiler_static='--static'
8624	;;
8625      nagfor*)
8626	# NAG Fortran compiler
8627	lt_prog_compiler_wl='-Wl,-Wl,,'
8628	lt_prog_compiler_pic='-PIC'
8629	lt_prog_compiler_static='-Bstatic'
8630	;;
8631      tcc*)
8632	# Fabrice Bellard et al's Tiny C Compiler
8633	lt_prog_compiler_wl='-Wl,'
8634	lt_prog_compiler_pic='-fPIC'
8635	lt_prog_compiler_static='-static'
8636	;;
8637      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8638        # Portland Group compilers (*not* the Pentium gcc compiler,
8639	# which looks to be a dead project)
8640	lt_prog_compiler_wl='-Wl,'
8641	lt_prog_compiler_pic='-fpic'
8642	lt_prog_compiler_static='-Bstatic'
8643        ;;
8644      ccc*)
8645        lt_prog_compiler_wl='-Wl,'
8646        # All Alpha code is PIC.
8647        lt_prog_compiler_static='-non_shared'
8648        ;;
8649      xl* | bgxl* | bgf* | mpixl*)
8650	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8651	lt_prog_compiler_wl='-Wl,'
8652	lt_prog_compiler_pic='-qpic'
8653	lt_prog_compiler_static='-qstaticlink'
8654	;;
8655      *)
8656	case `$CC -V 2>&1 | sed 5q` in
8657	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8658	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8659	  lt_prog_compiler_pic='-KPIC'
8660	  lt_prog_compiler_static='-Bstatic'
8661	  lt_prog_compiler_wl=''
8662	  ;;
8663	*Sun\ F* | *Sun*Fortran*)
8664	  lt_prog_compiler_pic='-KPIC'
8665	  lt_prog_compiler_static='-Bstatic'
8666	  lt_prog_compiler_wl='-Qoption ld '
8667	  ;;
8668	*Sun\ C*)
8669	  # Sun C 5.9
8670	  lt_prog_compiler_pic='-KPIC'
8671	  lt_prog_compiler_static='-Bstatic'
8672	  lt_prog_compiler_wl='-Wl,'
8673	  ;;
8674        *Intel*\ [CF]*Compiler*)
8675	  lt_prog_compiler_wl='-Wl,'
8676	  lt_prog_compiler_pic='-fPIC'
8677	  lt_prog_compiler_static='-static'
8678	  ;;
8679	*Portland\ Group*)
8680	  lt_prog_compiler_wl='-Wl,'
8681	  lt_prog_compiler_pic='-fpic'
8682	  lt_prog_compiler_static='-Bstatic'
8683	  ;;
8684	esac
8685	;;
8686      esac
8687      ;;
8688
8689    newsos6)
8690      lt_prog_compiler_pic='-KPIC'
8691      lt_prog_compiler_static='-Bstatic'
8692      ;;
8693
8694    *nto* | *qnx*)
8695      # QNX uses GNU C++, but need to define -shared option too, otherwise
8696      # it will coredump.
8697      lt_prog_compiler_pic='-fPIC -shared'
8698      ;;
8699
8700    osf3* | osf4* | osf5*)
8701      lt_prog_compiler_wl='-Wl,'
8702      # All OSF/1 code is PIC.
8703      lt_prog_compiler_static='-non_shared'
8704      ;;
8705
8706    rdos*)
8707      lt_prog_compiler_static='-non_shared'
8708      ;;
8709
8710    solaris*)
8711      lt_prog_compiler_pic='-KPIC'
8712      lt_prog_compiler_static='-Bstatic'
8713      case $cc_basename in
8714      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8715	lt_prog_compiler_wl='-Qoption ld ';;
8716      *)
8717	lt_prog_compiler_wl='-Wl,';;
8718      esac
8719      ;;
8720
8721    sunos4*)
8722      lt_prog_compiler_wl='-Qoption ld '
8723      lt_prog_compiler_pic='-PIC'
8724      lt_prog_compiler_static='-Bstatic'
8725      ;;
8726
8727    sysv4 | sysv4.2uw2* | sysv4.3*)
8728      lt_prog_compiler_wl='-Wl,'
8729      lt_prog_compiler_pic='-KPIC'
8730      lt_prog_compiler_static='-Bstatic'
8731      ;;
8732
8733    sysv4*MP*)
8734      if test -d /usr/nec; then
8735	lt_prog_compiler_pic='-Kconform_pic'
8736	lt_prog_compiler_static='-Bstatic'
8737      fi
8738      ;;
8739
8740    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8741      lt_prog_compiler_wl='-Wl,'
8742      lt_prog_compiler_pic='-KPIC'
8743      lt_prog_compiler_static='-Bstatic'
8744      ;;
8745
8746    unicos*)
8747      lt_prog_compiler_wl='-Wl,'
8748      lt_prog_compiler_can_build_shared=no
8749      ;;
8750
8751    uts4*)
8752      lt_prog_compiler_pic='-pic'
8753      lt_prog_compiler_static='-Bstatic'
8754      ;;
8755
8756    *)
8757      lt_prog_compiler_can_build_shared=no
8758      ;;
8759    esac
8760  fi
8761
8762case $host_os in
8763  # For platforms that do not support PIC, -DPIC is meaningless:
8764  *djgpp*)
8765    lt_prog_compiler_pic=
8766    ;;
8767  *)
8768    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8769    ;;
8770esac
8771
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8773$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8774if ${lt_cv_prog_compiler_pic+:} false; then :
8775  $as_echo_n "(cached) " >&6
8776else
8777  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8778fi
8779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8780$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8781lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8782
8783#
8784# Check to make sure the PIC flag actually works.
8785#
8786if test -n "$lt_prog_compiler_pic"; then
8787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8788$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8789if ${lt_cv_prog_compiler_pic_works+:} false; then :
8790  $as_echo_n "(cached) " >&6
8791else
8792  lt_cv_prog_compiler_pic_works=no
8793   ac_outfile=conftest.$ac_objext
8794   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8795   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8796   # Insert the option either (1) after the last *FLAGS variable, or
8797   # (2) before a word containing "conftest.", or (3) at the end.
8798   # Note that $ac_compile itself does not contain backslashes and begins
8799   # with a dollar sign (not a hyphen), so the echo should work correctly.
8800   # The option is referenced via a variable to avoid confusing sed.
8801   lt_compile=`echo "$ac_compile" | $SED \
8802   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8803   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8804   -e 's:$: $lt_compiler_flag:'`
8805   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8806   (eval "$lt_compile" 2>conftest.err)
8807   ac_status=$?
8808   cat conftest.err >&5
8809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810   if (exit $ac_status) && test -s "$ac_outfile"; then
8811     # The compiler can only warn and ignore the option if not recognized
8812     # So say no if there are warnings other than the usual output.
8813     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8814     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8815     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8816       lt_cv_prog_compiler_pic_works=yes
8817     fi
8818   fi
8819   $RM conftest*
8820
8821fi
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8823$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8824
8825if test yes = "$lt_cv_prog_compiler_pic_works"; then
8826    case $lt_prog_compiler_pic in
8827     "" | " "*) ;;
8828     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8829     esac
8830else
8831    lt_prog_compiler_pic=
8832     lt_prog_compiler_can_build_shared=no
8833fi
8834
8835fi
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847#
8848# Check to make sure the static flag actually works.
8849#
8850wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8852$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8853if ${lt_cv_prog_compiler_static_works+:} false; then :
8854  $as_echo_n "(cached) " >&6
8855else
8856  lt_cv_prog_compiler_static_works=no
8857   save_LDFLAGS=$LDFLAGS
8858   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8859   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8860   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8861     # The linker can only warn and ignore the option if not recognized
8862     # So say no if there are warnings
8863     if test -s conftest.err; then
8864       # Append any errors to the config.log.
8865       cat conftest.err 1>&5
8866       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8867       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8868       if diff conftest.exp conftest.er2 >/dev/null; then
8869         lt_cv_prog_compiler_static_works=yes
8870       fi
8871     else
8872       lt_cv_prog_compiler_static_works=yes
8873     fi
8874   fi
8875   $RM -r conftest*
8876   LDFLAGS=$save_LDFLAGS
8877
8878fi
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8880$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8881
8882if test yes = "$lt_cv_prog_compiler_static_works"; then
8883    :
8884else
8885    lt_prog_compiler_static=
8886fi
8887
8888
8889
8890
8891
8892
8893
8894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8895$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8896if ${lt_cv_prog_compiler_c_o+:} false; then :
8897  $as_echo_n "(cached) " >&6
8898else
8899  lt_cv_prog_compiler_c_o=no
8900   $RM -r conftest 2>/dev/null
8901   mkdir conftest
8902   cd conftest
8903   mkdir out
8904   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8905
8906   lt_compiler_flag="-o out/conftest2.$ac_objext"
8907   # Insert the option either (1) after the last *FLAGS variable, or
8908   # (2) before a word containing "conftest.", or (3) at the end.
8909   # Note that $ac_compile itself does not contain backslashes and begins
8910   # with a dollar sign (not a hyphen), so the echo should work correctly.
8911   lt_compile=`echo "$ac_compile" | $SED \
8912   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8913   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8914   -e 's:$: $lt_compiler_flag:'`
8915   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8916   (eval "$lt_compile" 2>out/conftest.err)
8917   ac_status=$?
8918   cat out/conftest.err >&5
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8921   then
8922     # The compiler can only warn and ignore the option if not recognized
8923     # So say no if there are warnings
8924     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8925     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8926     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8927       lt_cv_prog_compiler_c_o=yes
8928     fi
8929   fi
8930   chmod u+w . 2>&5
8931   $RM conftest*
8932   # SGI C++ compiler will create directory out/ii_files/ for
8933   # template instantiation
8934   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8935   $RM out/* && rmdir out
8936   cd ..
8937   $RM -r conftest
8938   $RM conftest*
8939
8940fi
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8942$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8943
8944
8945
8946
8947
8948
8949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8950$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8951if ${lt_cv_prog_compiler_c_o+:} false; then :
8952  $as_echo_n "(cached) " >&6
8953else
8954  lt_cv_prog_compiler_c_o=no
8955   $RM -r conftest 2>/dev/null
8956   mkdir conftest
8957   cd conftest
8958   mkdir out
8959   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8960
8961   lt_compiler_flag="-o out/conftest2.$ac_objext"
8962   # Insert the option either (1) after the last *FLAGS variable, or
8963   # (2) before a word containing "conftest.", or (3) at the end.
8964   # Note that $ac_compile itself does not contain backslashes and begins
8965   # with a dollar sign (not a hyphen), so the echo should work correctly.
8966   lt_compile=`echo "$ac_compile" | $SED \
8967   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8968   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8969   -e 's:$: $lt_compiler_flag:'`
8970   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8971   (eval "$lt_compile" 2>out/conftest.err)
8972   ac_status=$?
8973   cat out/conftest.err >&5
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8976   then
8977     # The compiler can only warn and ignore the option if not recognized
8978     # So say no if there are warnings
8979     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8980     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8981     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8982       lt_cv_prog_compiler_c_o=yes
8983     fi
8984   fi
8985   chmod u+w . 2>&5
8986   $RM conftest*
8987   # SGI C++ compiler will create directory out/ii_files/ for
8988   # template instantiation
8989   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8990   $RM out/* && rmdir out
8991   cd ..
8992   $RM -r conftest
8993   $RM conftest*
8994
8995fi
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8997$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8998
8999
9000
9001
9002hard_links=nottested
9003if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9004  # do not overwrite the value of need_locks provided by the user
9005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9006$as_echo_n "checking if we can lock with hard links... " >&6; }
9007  hard_links=yes
9008  $RM conftest*
9009  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9010  touch conftest.a
9011  ln conftest.a conftest.b 2>&5 || hard_links=no
9012  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9014$as_echo "$hard_links" >&6; }
9015  if test no = "$hard_links"; then
9016    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9017$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9018    need_locks=warn
9019  fi
9020else
9021  need_locks=no
9022fi
9023
9024
9025
9026
9027
9028
9029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9030$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9031
9032  runpath_var=
9033  allow_undefined_flag=
9034  always_export_symbols=no
9035  archive_cmds=
9036  archive_expsym_cmds=
9037  compiler_needs_object=no
9038  enable_shared_with_static_runtimes=no
9039  export_dynamic_flag_spec=
9040  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9041  hardcode_automatic=no
9042  hardcode_direct=no
9043  hardcode_direct_absolute=no
9044  hardcode_libdir_flag_spec=
9045  hardcode_libdir_separator=
9046  hardcode_minus_L=no
9047  hardcode_shlibpath_var=unsupported
9048  inherit_rpath=no
9049  link_all_deplibs=unknown
9050  module_cmds=
9051  module_expsym_cmds=
9052  old_archive_from_new_cmds=
9053  old_archive_from_expsyms_cmds=
9054  thread_safe_flag_spec=
9055  whole_archive_flag_spec=
9056  # include_expsyms should be a list of space-separated symbols to be *always*
9057  # included in the symbol list
9058  include_expsyms=
9059  # exclude_expsyms can be an extended regexp of symbols to exclude
9060  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9061  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9062  # as well as any symbol that contains 'd'.
9063  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9064  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9065  # platforms (ab)use it in PIC code, but their linkers get confused if
9066  # the symbol is explicitly referenced.  Since portable code cannot
9067  # rely on this symbol name, it's probably fine to never include it in
9068  # preloaded symbol tables.
9069  # Exclude shared library initialization/finalization symbols.
9070  extract_expsyms_cmds=
9071
9072  case $host_os in
9073  cygwin* | mingw* | pw32* | cegcc*)
9074    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9075    # When not using gcc, we currently assume that we are using
9076    # Microsoft Visual C++.
9077    if test yes != "$GCC"; then
9078      with_gnu_ld=no
9079    fi
9080    ;;
9081  interix*)
9082    # we just hope/assume this is gcc and not c89 (= MSVC++)
9083    with_gnu_ld=yes
9084    ;;
9085  openbsd* | bitrig*)
9086    with_gnu_ld=no
9087    ;;
9088  linux* | k*bsd*-gnu | gnu*)
9089    link_all_deplibs=no
9090    ;;
9091  esac
9092
9093  ld_shlibs=yes
9094
9095  # On some targets, GNU ld is compatible enough with the native linker
9096  # that we're better off using the native interface for both.
9097  lt_use_gnu_ld_interface=no
9098  if test yes = "$with_gnu_ld"; then
9099    case $host_os in
9100      aix*)
9101	# The AIX port of GNU ld has always aspired to compatibility
9102	# with the native linker.  However, as the warning in the GNU ld
9103	# block says, versions before 2.19.5* couldn't really create working
9104	# shared libraries, regardless of the interface used.
9105	case `$LD -v 2>&1` in
9106	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9107	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9108	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9109	  *)
9110	    lt_use_gnu_ld_interface=yes
9111	    ;;
9112	esac
9113	;;
9114      *)
9115	lt_use_gnu_ld_interface=yes
9116	;;
9117    esac
9118  fi
9119
9120  if test yes = "$lt_use_gnu_ld_interface"; then
9121    # If archive_cmds runs LD, not CC, wlarc should be empty
9122    wlarc='$wl'
9123
9124    # Set some defaults for GNU ld with shared library support. These
9125    # are reset later if shared libraries are not supported. Putting them
9126    # here allows them to be overridden if necessary.
9127    runpath_var=LD_RUN_PATH
9128    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9129    export_dynamic_flag_spec='$wl--export-dynamic'
9130    # ancient GNU ld didn't support --whole-archive et. al.
9131    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9132      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9133    else
9134      whole_archive_flag_spec=
9135    fi
9136    supports_anon_versioning=no
9137    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9138      *GNU\ gold*) supports_anon_versioning=yes ;;
9139      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9140      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9141      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9142      *\ 2.11.*) ;; # other 2.11 versions
9143      *) supports_anon_versioning=yes ;;
9144    esac
9145
9146    # See if GNU ld supports shared libraries.
9147    case $host_os in
9148    aix[3-9]*)
9149      # On AIX/PPC, the GNU linker is very broken
9150      if test ia64 != "$host_cpu"; then
9151	ld_shlibs=no
9152	cat <<_LT_EOF 1>&2
9153
9154*** Warning: the GNU linker, at least up to release 2.19, is reported
9155*** to be unable to reliably create shared libraries on AIX.
9156*** Therefore, libtool is disabling shared libraries support.  If you
9157*** really care for shared libraries, you may want to install binutils
9158*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9159*** You will then need to restart the configuration process.
9160
9161_LT_EOF
9162      fi
9163      ;;
9164
9165    amigaos*)
9166      case $host_cpu in
9167      powerpc)
9168            # see comment about AmigaOS4 .so support
9169            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9170            archive_expsym_cmds=''
9171        ;;
9172      m68k)
9173            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)'
9174            hardcode_libdir_flag_spec='-L$libdir'
9175            hardcode_minus_L=yes
9176        ;;
9177      esac
9178      ;;
9179
9180    beos*)
9181      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9182	allow_undefined_flag=unsupported
9183	# Joseph Beckenbach <[email protected]> says some releases of gcc
9184	# support --undefined.  This deserves some investigation.  FIXME
9185	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9186      else
9187	ld_shlibs=no
9188      fi
9189      ;;
9190
9191    cygwin* | mingw* | pw32* | cegcc*)
9192      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9193      # as there is no search path for DLLs.
9194      hardcode_libdir_flag_spec='-L$libdir'
9195      export_dynamic_flag_spec='$wl--export-all-symbols'
9196      allow_undefined_flag=unsupported
9197      always_export_symbols=no
9198      enable_shared_with_static_runtimes=yes
9199      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'
9200      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9201
9202      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9203        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9204	# If the export-symbols file already is a .def file, use it as
9205	# is; otherwise, prepend EXPORTS...
9206	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9207          cp $export_symbols $output_objdir/$soname.def;
9208        else
9209          echo EXPORTS > $output_objdir/$soname.def;
9210          cat $export_symbols >> $output_objdir/$soname.def;
9211        fi~
9212        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9213      else
9214	ld_shlibs=no
9215      fi
9216      ;;
9217
9218    haiku*)
9219      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9220      link_all_deplibs=yes
9221      ;;
9222
9223    os2*)
9224      hardcode_libdir_flag_spec='-L$libdir'
9225      hardcode_minus_L=yes
9226      allow_undefined_flag=unsupported
9227      shrext_cmds=.dll
9228      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9229	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9230	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9231	$ECHO EXPORTS >> $output_objdir/$libname.def~
9232	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9233	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9234	emximp -o $lib $output_objdir/$libname.def'
9235      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9236	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9237	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9238	$ECHO EXPORTS >> $output_objdir/$libname.def~
9239	prefix_cmds="$SED"~
9240	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9241	  prefix_cmds="$prefix_cmds -e 1d";
9242	fi~
9243	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9244	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9245	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9246	emximp -o $lib $output_objdir/$libname.def'
9247      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9248      enable_shared_with_static_runtimes=yes
9249      ;;
9250
9251    interix[3-9]*)
9252      hardcode_direct=no
9253      hardcode_shlibpath_var=no
9254      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9255      export_dynamic_flag_spec='$wl-E'
9256      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9257      # Instead, shared libraries are loaded at an image base (0x10000000 by
9258      # default) and relocated if they conflict, which is a slow very memory
9259      # consuming and fragmenting process.  To avoid this, we pick a random,
9260      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9261      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9262      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9263      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'
9264      ;;
9265
9266    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9267      tmp_diet=no
9268      if test linux-dietlibc = "$host_os"; then
9269	case $cc_basename in
9270	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9271	esac
9272      fi
9273      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9274	 && test no = "$tmp_diet"
9275      then
9276	tmp_addflag=' $pic_flag'
9277	tmp_sharedflag='-shared'
9278	case $cc_basename,$host_cpu in
9279        pgcc*)				# Portland Group C compiler
9280	  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'
9281	  tmp_addflag=' $pic_flag'
9282	  ;;
9283	pgf77* | pgf90* | pgf95* | pgfortran*)
9284					# Portland Group f77 and f90 compilers
9285	  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'
9286	  tmp_addflag=' $pic_flag -Mnomain' ;;
9287	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9288	  tmp_addflag=' -i_dynamic' ;;
9289	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9290	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9291	ifc* | ifort*)			# Intel Fortran compiler
9292	  tmp_addflag=' -nofor_main' ;;
9293	lf95*)				# Lahey Fortran 8.1
9294	  whole_archive_flag_spec=
9295	  tmp_sharedflag='--shared' ;;
9296        nagfor*)                        # NAGFOR 5.3
9297          tmp_sharedflag='-Wl,-shared' ;;
9298	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9299	  tmp_sharedflag='-qmkshrobj'
9300	  tmp_addflag= ;;
9301	nvcc*)	# Cuda Compiler Driver 2.2
9302	  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'
9303	  compiler_needs_object=yes
9304	  ;;
9305	esac
9306	case `$CC -V 2>&1 | sed 5q` in
9307	*Sun\ C*)			# Sun C 5.9
9308	  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'
9309	  compiler_needs_object=yes
9310	  tmp_sharedflag='-G' ;;
9311	*Sun\ F*)			# Sun Fortran 8.3
9312	  tmp_sharedflag='-G' ;;
9313	esac
9314	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9315
9316        if test yes = "$supports_anon_versioning"; then
9317          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9318            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9319            echo "local: *; };" >> $output_objdir/$libname.ver~
9320            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9321        fi
9322
9323	case $cc_basename in
9324	tcc*)
9325	  export_dynamic_flag_spec='-rdynamic'
9326	  ;;
9327	xlf* | bgf* | bgxlf* | mpixlf*)
9328	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9329	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9330	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9331	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9332	  if test yes = "$supports_anon_versioning"; then
9333	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9334              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9335              echo "local: *; };" >> $output_objdir/$libname.ver~
9336              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9337	  fi
9338	  ;;
9339	esac
9340      else
9341        ld_shlibs=no
9342      fi
9343      ;;
9344
9345    netbsd* | netbsdelf*-gnu)
9346      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9347	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9348	wlarc=
9349      else
9350	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9351	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9352      fi
9353      ;;
9354
9355    solaris*)
9356      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9357	ld_shlibs=no
9358	cat <<_LT_EOF 1>&2
9359
9360*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9361*** create shared libraries on Solaris systems.  Therefore, libtool
9362*** is disabling shared libraries support.  We urge you to upgrade GNU
9363*** binutils to release 2.9.1 or newer.  Another option is to modify
9364*** your PATH or compiler configuration so that the native linker is
9365*** used, and then restart.
9366
9367_LT_EOF
9368      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9369	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9370	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9371      else
9372	ld_shlibs=no
9373      fi
9374      ;;
9375
9376    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9377      case `$LD -v 2>&1` in
9378        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9379	ld_shlibs=no
9380	cat <<_LT_EOF 1>&2
9381
9382*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9383*** reliably create shared libraries on SCO systems.  Therefore, libtool
9384*** is disabling shared libraries support.  We urge you to upgrade GNU
9385*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9386*** your PATH or compiler configuration so that the native linker is
9387*** used, and then restart.
9388
9389_LT_EOF
9390	;;
9391	*)
9392	  # For security reasons, it is highly recommended that you always
9393	  # use absolute paths for naming shared libraries, and exclude the
9394	  # DT_RUNPATH tag from executables and libraries.  But doing so
9395	  # requires that you compile everything twice, which is a pain.
9396	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9397	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9398	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9399	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9400	  else
9401	    ld_shlibs=no
9402	  fi
9403	;;
9404      esac
9405      ;;
9406
9407    sunos4*)
9408      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9409      wlarc=
9410      hardcode_direct=yes
9411      hardcode_shlibpath_var=no
9412      ;;
9413
9414    *)
9415      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9416	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9417	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9418      else
9419	ld_shlibs=no
9420      fi
9421      ;;
9422    esac
9423
9424    if test no = "$ld_shlibs"; then
9425      runpath_var=
9426      hardcode_libdir_flag_spec=
9427      export_dynamic_flag_spec=
9428      whole_archive_flag_spec=
9429    fi
9430  else
9431    # PORTME fill in a description of your system's linker (not GNU ld)
9432    case $host_os in
9433    aix3*)
9434      allow_undefined_flag=unsupported
9435      always_export_symbols=yes
9436      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'
9437      # Note: this linker hardcodes the directories in LIBPATH if there
9438      # are no directories specified by -L.
9439      hardcode_minus_L=yes
9440      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9441	# Neither direct hardcoding nor static linking is supported with a
9442	# broken collect2.
9443	hardcode_direct=unsupported
9444      fi
9445      ;;
9446
9447    aix[4-9]*)
9448      if test ia64 = "$host_cpu"; then
9449	# On IA64, the linker does run time linking by default, so we don't
9450	# have to do anything special.
9451	aix_use_runtimelinking=no
9452	exp_sym_flag='-Bexport'
9453	no_entry_flag=
9454      else
9455	# If we're using GNU nm, then we don't want the "-C" option.
9456	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9457	# Without the "-l" option, or with the "-B" option, AIX nm treats
9458	# weak defined symbols like other global defined symbols, whereas
9459	# GNU nm marks them as "W".
9460	# While the 'weak' keyword is ignored in the Export File, we need
9461	# it in the Import File for the 'aix-soname' feature, so we have
9462	# to replace the "-B" option with "-P" for AIX nm.
9463	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9464	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9465	else
9466	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9467	fi
9468	aix_use_runtimelinking=no
9469
9470	# Test if we are trying to use run time linking or normal
9471	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9472	# have runtime linking enabled, and use it for executables.
9473	# For shared libraries, we enable/disable runtime linking
9474	# depending on the kind of the shared library created -
9475	# when "with_aix_soname,aix_use_runtimelinking" is:
9476	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9477	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9478	#            lib.a           static archive
9479	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9480	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9481	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9482	#            lib.a(lib.so.V) shared, rtl:no
9483	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9484	#            lib.a           static archive
9485	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9486	  for ld_flag in $LDFLAGS; do
9487	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9488	    aix_use_runtimelinking=yes
9489	    break
9490	  fi
9491	  done
9492	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9493	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9494	    # so we don't have lib.a shared libs to link our executables.
9495	    # We have to force runtime linking in this case.
9496	    aix_use_runtimelinking=yes
9497	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9498	  fi
9499	  ;;
9500	esac
9501
9502	exp_sym_flag='-bexport'
9503	no_entry_flag='-bnoentry'
9504      fi
9505
9506      # When large executables or shared objects are built, AIX ld can
9507      # have problems creating the table of contents.  If linking a library
9508      # or program results in "error TOC overflow" add -mminimal-toc to
9509      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9510      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9511
9512      archive_cmds=''
9513      hardcode_direct=yes
9514      hardcode_direct_absolute=yes
9515      hardcode_libdir_separator=':'
9516      link_all_deplibs=yes
9517      file_list_spec='$wl-f,'
9518      case $with_aix_soname,$aix_use_runtimelinking in
9519      aix,*) ;; # traditional, no import file
9520      svr4,* | *,yes) # use import file
9521	# The Import File defines what to hardcode.
9522	hardcode_direct=no
9523	hardcode_direct_absolute=no
9524	;;
9525      esac
9526
9527      if test yes = "$GCC"; then
9528	case $host_os in aix4.[012]|aix4.[012].*)
9529	# We only want to do this on AIX 4.2 and lower, the check
9530	# below for broken collect2 doesn't work under 4.3+
9531	  collect2name=`$CC -print-prog-name=collect2`
9532	  if test -f "$collect2name" &&
9533	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9534	  then
9535	  # We have reworked collect2
9536	  :
9537	  else
9538	  # We have old collect2
9539	  hardcode_direct=unsupported
9540	  # It fails to find uninstalled libraries when the uninstalled
9541	  # path is not listed in the libpath.  Setting hardcode_minus_L
9542	  # to unsupported forces relinking
9543	  hardcode_minus_L=yes
9544	  hardcode_libdir_flag_spec='-L$libdir'
9545	  hardcode_libdir_separator=
9546	  fi
9547	  ;;
9548	esac
9549	shared_flag='-shared'
9550	if test yes = "$aix_use_runtimelinking"; then
9551	  shared_flag="$shared_flag "'$wl-G'
9552	fi
9553	# Need to ensure runtime linking is disabled for the traditional
9554	# shared library, or the linker may eventually find shared libraries
9555	# /with/ Import File - we do not want to mix them.
9556	shared_flag_aix='-shared'
9557	shared_flag_svr4='-shared $wl-G'
9558      else
9559	# not using gcc
9560	if test ia64 = "$host_cpu"; then
9561	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9562	# chokes on -Wl,-G. The following line is correct:
9563	  shared_flag='-G'
9564	else
9565	  if test yes = "$aix_use_runtimelinking"; then
9566	    shared_flag='$wl-G'
9567	  else
9568	    shared_flag='$wl-bM:SRE'
9569	  fi
9570	  shared_flag_aix='$wl-bM:SRE'
9571	  shared_flag_svr4='$wl-G'
9572	fi
9573      fi
9574
9575      export_dynamic_flag_spec='$wl-bexpall'
9576      # It seems that -bexpall does not export symbols beginning with
9577      # underscore (_), so it is better to generate a list of symbols to export.
9578      always_export_symbols=yes
9579      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9580	# Warning - without using the other runtime loading flags (-brtl),
9581	# -berok will link without error, but may produce a broken library.
9582	allow_undefined_flag='-berok'
9583        # Determine the default libpath from the value encoded in an
9584        # empty executable.
9585        if test set = "${lt_cv_aix_libpath+set}"; then
9586  aix_libpath=$lt_cv_aix_libpath
9587else
9588  if ${lt_cv_aix_libpath_+:} false; then :
9589  $as_echo_n "(cached) " >&6
9590else
9591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592/* end confdefs.h.  */
9593
9594int
9595main ()
9596{
9597
9598  ;
9599  return 0;
9600}
9601_ACEOF
9602if ac_fn_c_try_link "$LINENO"; then :
9603
9604  lt_aix_libpath_sed='
9605      /Import File Strings/,/^$/ {
9606	  /^0/ {
9607	      s/^0  *\([^ ]*\) *$/\1/
9608	      p
9609	  }
9610      }'
9611  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9612  # Check for a 64-bit object if we didn't find anything.
9613  if test -z "$lt_cv_aix_libpath_"; then
9614    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9615  fi
9616fi
9617rm -f core conftest.err conftest.$ac_objext \
9618    conftest$ac_exeext conftest.$ac_ext
9619  if test -z "$lt_cv_aix_libpath_"; then
9620    lt_cv_aix_libpath_=/usr/lib:/lib
9621  fi
9622
9623fi
9624
9625  aix_libpath=$lt_cv_aix_libpath_
9626fi
9627
9628        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9629        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9630      else
9631	if test ia64 = "$host_cpu"; then
9632	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9633	  allow_undefined_flag="-z nodefs"
9634	  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"
9635	else
9636	 # Determine the default libpath from the value encoded in an
9637	 # empty executable.
9638	 if test set = "${lt_cv_aix_libpath+set}"; then
9639  aix_libpath=$lt_cv_aix_libpath
9640else
9641  if ${lt_cv_aix_libpath_+:} false; then :
9642  $as_echo_n "(cached) " >&6
9643else
9644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645/* end confdefs.h.  */
9646
9647int
9648main ()
9649{
9650
9651  ;
9652  return 0;
9653}
9654_ACEOF
9655if ac_fn_c_try_link "$LINENO"; then :
9656
9657  lt_aix_libpath_sed='
9658      /Import File Strings/,/^$/ {
9659	  /^0/ {
9660	      s/^0  *\([^ ]*\) *$/\1/
9661	      p
9662	  }
9663      }'
9664  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9665  # Check for a 64-bit object if we didn't find anything.
9666  if test -z "$lt_cv_aix_libpath_"; then
9667    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9668  fi
9669fi
9670rm -f core conftest.err conftest.$ac_objext \
9671    conftest$ac_exeext conftest.$ac_ext
9672  if test -z "$lt_cv_aix_libpath_"; then
9673    lt_cv_aix_libpath_=/usr/lib:/lib
9674  fi
9675
9676fi
9677
9678  aix_libpath=$lt_cv_aix_libpath_
9679fi
9680
9681	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9682	  # Warning - without using the other run time loading flags,
9683	  # -berok will link without error, but may produce a broken library.
9684	  no_undefined_flag=' $wl-bernotok'
9685	  allow_undefined_flag=' $wl-berok'
9686	  if test yes = "$with_gnu_ld"; then
9687	    # We only use this code for GNU lds that support --whole-archive.
9688	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9689	  else
9690	    # Exported symbols can be pulled into shared objects from archives
9691	    whole_archive_flag_spec='$convenience'
9692	  fi
9693	  archive_cmds_need_lc=yes
9694	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9695	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9696	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9697	  if test svr4 != "$with_aix_soname"; then
9698	    # This is similar to how AIX traditionally builds its shared libraries.
9699	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9700	  fi
9701	  if test aix != "$with_aix_soname"; then
9702	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9703	  else
9704	    # used by -dlpreopen to get the symbols
9705	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9706	  fi
9707	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9708	fi
9709      fi
9710      ;;
9711
9712    amigaos*)
9713      case $host_cpu in
9714      powerpc)
9715            # see comment about AmigaOS4 .so support
9716            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9717            archive_expsym_cmds=''
9718        ;;
9719      m68k)
9720            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)'
9721            hardcode_libdir_flag_spec='-L$libdir'
9722            hardcode_minus_L=yes
9723        ;;
9724      esac
9725      ;;
9726
9727    bsdi[45]*)
9728      export_dynamic_flag_spec=-rdynamic
9729      ;;
9730
9731    cygwin* | mingw* | pw32* | cegcc*)
9732      # When not using gcc, we currently assume that we are using
9733      # Microsoft Visual C++.
9734      # hardcode_libdir_flag_spec is actually meaningless, as there is
9735      # no search path for DLLs.
9736      case $cc_basename in
9737      cl*)
9738	# Native MSVC
9739	hardcode_libdir_flag_spec=' '
9740	allow_undefined_flag=unsupported
9741	always_export_symbols=yes
9742	file_list_spec='@'
9743	# Tell ltmain to make .lib files, not .a files.
9744	libext=lib
9745	# Tell ltmain to make .dll files, not .so files.
9746	shrext_cmds=.dll
9747	# FIXME: Setting linknames here is a bad hack.
9748	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9749	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9750            cp "$export_symbols" "$output_objdir/$soname.def";
9751            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9752          else
9753            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9754          fi~
9755          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9756          linknames='
9757	# The linker will not automatically build a static lib if we build a DLL.
9758	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9759	enable_shared_with_static_runtimes=yes
9760	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9761	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9762	# Don't use ranlib
9763	old_postinstall_cmds='chmod 644 $oldlib'
9764	postlink_cmds='lt_outputfile="@OUTPUT@"~
9765          lt_tool_outputfile="@TOOL_OUTPUT@"~
9766          case $lt_outputfile in
9767            *.exe|*.EXE) ;;
9768            *)
9769              lt_outputfile=$lt_outputfile.exe
9770              lt_tool_outputfile=$lt_tool_outputfile.exe
9771              ;;
9772          esac~
9773          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9774            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9775            $RM "$lt_outputfile.manifest";
9776          fi'
9777	;;
9778      *)
9779	# Assume MSVC wrapper
9780	hardcode_libdir_flag_spec=' '
9781	allow_undefined_flag=unsupported
9782	# Tell ltmain to make .lib files, not .a files.
9783	libext=lib
9784	# Tell ltmain to make .dll files, not .so files.
9785	shrext_cmds=.dll
9786	# FIXME: Setting linknames here is a bad hack.
9787	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9788	# The linker will automatically build a .lib file if we build a DLL.
9789	old_archive_from_new_cmds='true'
9790	# FIXME: Should let the user specify the lib program.
9791	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9792	enable_shared_with_static_runtimes=yes
9793	;;
9794      esac
9795      ;;
9796
9797    darwin* | rhapsody*)
9798
9799
9800  archive_cmds_need_lc=no
9801  hardcode_direct=no
9802  hardcode_automatic=yes
9803  hardcode_shlibpath_var=unsupported
9804  if test yes = "$lt_cv_ld_force_load"; then
9805    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\"`'
9806
9807  else
9808    whole_archive_flag_spec=''
9809  fi
9810  link_all_deplibs=yes
9811  allow_undefined_flag=$_lt_dar_allow_undefined
9812  case $cc_basename in
9813     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9814     *) _lt_dar_can_shared=$GCC ;;
9815  esac
9816  if test yes = "$_lt_dar_can_shared"; then
9817    output_verbose_link_cmd=func_echo_all
9818    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9819    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9820    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"
9821    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"
9822
9823  else
9824  ld_shlibs=no
9825  fi
9826
9827      ;;
9828
9829    dgux*)
9830      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9831      hardcode_libdir_flag_spec='-L$libdir'
9832      hardcode_shlibpath_var=no
9833      ;;
9834
9835    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9836    # support.  Future versions do this automatically, but an explicit c++rt0.o
9837    # does not break anything, and helps significantly (at the cost of a little
9838    # extra space).
9839    freebsd2.2*)
9840      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9841      hardcode_libdir_flag_spec='-R$libdir'
9842      hardcode_direct=yes
9843      hardcode_shlibpath_var=no
9844      ;;
9845
9846    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9847    freebsd2.*)
9848      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9849      hardcode_direct=yes
9850      hardcode_minus_L=yes
9851      hardcode_shlibpath_var=no
9852      ;;
9853
9854    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9855    freebsd* | dragonfly*)
9856      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9857      hardcode_libdir_flag_spec='-R$libdir'
9858      hardcode_direct=yes
9859      hardcode_shlibpath_var=no
9860      ;;
9861
9862    hpux9*)
9863      if test yes = "$GCC"; then
9864	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9865      else
9866	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9867      fi
9868      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9869      hardcode_libdir_separator=:
9870      hardcode_direct=yes
9871
9872      # hardcode_minus_L: Not really in the search PATH,
9873      # but as the default location of the library.
9874      hardcode_minus_L=yes
9875      export_dynamic_flag_spec='$wl-E'
9876      ;;
9877
9878    hpux10*)
9879      if test yes,no = "$GCC,$with_gnu_ld"; then
9880	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9881      else
9882	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9883      fi
9884      if test no = "$with_gnu_ld"; then
9885	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9886	hardcode_libdir_separator=:
9887	hardcode_direct=yes
9888	hardcode_direct_absolute=yes
9889	export_dynamic_flag_spec='$wl-E'
9890	# hardcode_minus_L: Not really in the search PATH,
9891	# but as the default location of the library.
9892	hardcode_minus_L=yes
9893      fi
9894      ;;
9895
9896    hpux11*)
9897      if test yes,no = "$GCC,$with_gnu_ld"; then
9898	case $host_cpu in
9899	hppa*64*)
9900	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9901	  ;;
9902	ia64*)
9903	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9904	  ;;
9905	*)
9906	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9907	  ;;
9908	esac
9909      else
9910	case $host_cpu in
9911	hppa*64*)
9912	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9913	  ;;
9914	ia64*)
9915	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9916	  ;;
9917	*)
9918
9919	  # Older versions of the 11.00 compiler do not understand -b yet
9920	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9921	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9922$as_echo_n "checking if $CC understands -b... " >&6; }
9923if ${lt_cv_prog_compiler__b+:} false; then :
9924  $as_echo_n "(cached) " >&6
9925else
9926  lt_cv_prog_compiler__b=no
9927   save_LDFLAGS=$LDFLAGS
9928   LDFLAGS="$LDFLAGS -b"
9929   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9930   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9931     # The linker can only warn and ignore the option if not recognized
9932     # So say no if there are warnings
9933     if test -s conftest.err; then
9934       # Append any errors to the config.log.
9935       cat conftest.err 1>&5
9936       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9937       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9938       if diff conftest.exp conftest.er2 >/dev/null; then
9939         lt_cv_prog_compiler__b=yes
9940       fi
9941     else
9942       lt_cv_prog_compiler__b=yes
9943     fi
9944   fi
9945   $RM -r conftest*
9946   LDFLAGS=$save_LDFLAGS
9947
9948fi
9949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9950$as_echo "$lt_cv_prog_compiler__b" >&6; }
9951
9952if test yes = "$lt_cv_prog_compiler__b"; then
9953    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9954else
9955    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9956fi
9957
9958	  ;;
9959	esac
9960      fi
9961      if test no = "$with_gnu_ld"; then
9962	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9963	hardcode_libdir_separator=:
9964
9965	case $host_cpu in
9966	hppa*64*|ia64*)
9967	  hardcode_direct=no
9968	  hardcode_shlibpath_var=no
9969	  ;;
9970	*)
9971	  hardcode_direct=yes
9972	  hardcode_direct_absolute=yes
9973	  export_dynamic_flag_spec='$wl-E'
9974
9975	  # hardcode_minus_L: Not really in the search PATH,
9976	  # but as the default location of the library.
9977	  hardcode_minus_L=yes
9978	  ;;
9979	esac
9980      fi
9981      ;;
9982
9983    irix5* | irix6* | nonstopux*)
9984      if test yes = "$GCC"; then
9985	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'
9986	# Try to use the -exported_symbol ld option, if it does not
9987	# work, assume that -exports_file does not work either and
9988	# implicitly export all symbols.
9989	# This should be the same for all languages, so no per-tag cache variable.
9990	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9991$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9992if ${lt_cv_irix_exported_symbol+:} false; then :
9993  $as_echo_n "(cached) " >&6
9994else
9995  save_LDFLAGS=$LDFLAGS
9996	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9997	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998/* end confdefs.h.  */
9999int foo (void) { return 0; }
10000_ACEOF
10001if ac_fn_c_try_link "$LINENO"; then :
10002  lt_cv_irix_exported_symbol=yes
10003else
10004  lt_cv_irix_exported_symbol=no
10005fi
10006rm -f core conftest.err conftest.$ac_objext \
10007    conftest$ac_exeext conftest.$ac_ext
10008           LDFLAGS=$save_LDFLAGS
10009fi
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10011$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10012	if test yes = "$lt_cv_irix_exported_symbol"; then
10013          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'
10014	fi
10015	link_all_deplibs=no
10016      else
10017	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'
10018	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'
10019      fi
10020      archive_cmds_need_lc='no'
10021      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10022      hardcode_libdir_separator=:
10023      inherit_rpath=yes
10024      link_all_deplibs=yes
10025      ;;
10026
10027    linux*)
10028      case $cc_basename in
10029      tcc*)
10030	# Fabrice Bellard et al's Tiny C Compiler
10031	ld_shlibs=yes
10032	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10033	;;
10034      esac
10035      ;;
10036
10037    netbsd* | netbsdelf*-gnu)
10038      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10039	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10040      else
10041	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10042      fi
10043      hardcode_libdir_flag_spec='-R$libdir'
10044      hardcode_direct=yes
10045      hardcode_shlibpath_var=no
10046      ;;
10047
10048    newsos6)
10049      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10050      hardcode_direct=yes
10051      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10052      hardcode_libdir_separator=:
10053      hardcode_shlibpath_var=no
10054      ;;
10055
10056    *nto* | *qnx*)
10057      ;;
10058
10059    openbsd* | bitrig*)
10060      if test -f /usr/libexec/ld.so; then
10061	hardcode_direct=yes
10062	hardcode_shlibpath_var=no
10063	hardcode_direct_absolute=yes
10064	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10065	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10066	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10067	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10068	  export_dynamic_flag_spec='$wl-E'
10069	else
10070	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10071	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10072	fi
10073      else
10074	ld_shlibs=no
10075      fi
10076      ;;
10077
10078    os2*)
10079      hardcode_libdir_flag_spec='-L$libdir'
10080      hardcode_minus_L=yes
10081      allow_undefined_flag=unsupported
10082      shrext_cmds=.dll
10083      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10084	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10085	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10086	$ECHO EXPORTS >> $output_objdir/$libname.def~
10087	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10088	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10089	emximp -o $lib $output_objdir/$libname.def'
10090      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10091	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10092	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10093	$ECHO EXPORTS >> $output_objdir/$libname.def~
10094	prefix_cmds="$SED"~
10095	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10096	  prefix_cmds="$prefix_cmds -e 1d";
10097	fi~
10098	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10099	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10100	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10101	emximp -o $lib $output_objdir/$libname.def'
10102      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10103      enable_shared_with_static_runtimes=yes
10104      ;;
10105
10106    osf3*)
10107      if test yes = "$GCC"; then
10108	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10109	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'
10110      else
10111	allow_undefined_flag=' -expect_unresolved \*'
10112	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'
10113      fi
10114      archive_cmds_need_lc='no'
10115      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10116      hardcode_libdir_separator=:
10117      ;;
10118
10119    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10120      if test yes = "$GCC"; then
10121	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10122	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'
10123	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10124      else
10125	allow_undefined_flag=' -expect_unresolved \*'
10126	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'
10127	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~
10128          $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'
10129
10130	# Both c and cxx compiler support -rpath directly
10131	hardcode_libdir_flag_spec='-rpath $libdir'
10132      fi
10133      archive_cmds_need_lc='no'
10134      hardcode_libdir_separator=:
10135      ;;
10136
10137    solaris*)
10138      no_undefined_flag=' -z defs'
10139      if test yes = "$GCC"; then
10140	wlarc='$wl'
10141	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10142	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10143          $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'
10144      else
10145	case `$CC -V 2>&1` in
10146	*"Compilers 5.0"*)
10147	  wlarc=''
10148	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10150            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10151	  ;;
10152	*)
10153	  wlarc='$wl'
10154	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10155	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10156            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10157	  ;;
10158	esac
10159      fi
10160      hardcode_libdir_flag_spec='-R$libdir'
10161      hardcode_shlibpath_var=no
10162      case $host_os in
10163      solaris2.[0-5] | solaris2.[0-5].*) ;;
10164      *)
10165	# The compiler driver will combine and reorder linker options,
10166	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10167	# but is careful enough not to reorder.
10168	# Supported since Solaris 2.6 (maybe 2.5.1?)
10169	if test yes = "$GCC"; then
10170	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10171	else
10172	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10173	fi
10174	;;
10175      esac
10176      link_all_deplibs=yes
10177      ;;
10178
10179    sunos4*)
10180      if test sequent = "$host_vendor"; then
10181	# Use $CC to link under sequent, because it throws in some extra .o
10182	# files that make .init and .fini sections work.
10183	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10184      else
10185	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10186      fi
10187      hardcode_libdir_flag_spec='-L$libdir'
10188      hardcode_direct=yes
10189      hardcode_minus_L=yes
10190      hardcode_shlibpath_var=no
10191      ;;
10192
10193    sysv4)
10194      case $host_vendor in
10195	sni)
10196	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197	  hardcode_direct=yes # is this really true???
10198	;;
10199	siemens)
10200	  ## LD is ld it makes a PLAMLIB
10201	  ## CC just makes a GrossModule.
10202	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10203	  reload_cmds='$CC -r -o $output$reload_objs'
10204	  hardcode_direct=no
10205        ;;
10206	motorola)
10207	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10209	;;
10210      esac
10211      runpath_var='LD_RUN_PATH'
10212      hardcode_shlibpath_var=no
10213      ;;
10214
10215    sysv4.3*)
10216      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217      hardcode_shlibpath_var=no
10218      export_dynamic_flag_spec='-Bexport'
10219      ;;
10220
10221    sysv4*MP*)
10222      if test -d /usr/nec; then
10223	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224	hardcode_shlibpath_var=no
10225	runpath_var=LD_RUN_PATH
10226	hardcode_runpath_var=yes
10227	ld_shlibs=yes
10228      fi
10229      ;;
10230
10231    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10232      no_undefined_flag='$wl-z,text'
10233      archive_cmds_need_lc=no
10234      hardcode_shlibpath_var=no
10235      runpath_var='LD_RUN_PATH'
10236
10237      if test yes = "$GCC"; then
10238	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240      else
10241	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243      fi
10244      ;;
10245
10246    sysv5* | sco3.2v5* | sco5v6*)
10247      # Note: We CANNOT use -z defs as we might desire, because we do not
10248      # link with -lc, and that would cause any symbols used from libc to
10249      # always be unresolved, which means just about no library would
10250      # ever link correctly.  If we're not using GNU ld we use -z text
10251      # though, which does catch some bad symbols but isn't as heavy-handed
10252      # as -z defs.
10253      no_undefined_flag='$wl-z,text'
10254      allow_undefined_flag='$wl-z,nodefs'
10255      archive_cmds_need_lc=no
10256      hardcode_shlibpath_var=no
10257      hardcode_libdir_flag_spec='$wl-R,$libdir'
10258      hardcode_libdir_separator=':'
10259      link_all_deplibs=yes
10260      export_dynamic_flag_spec='$wl-Bexport'
10261      runpath_var='LD_RUN_PATH'
10262
10263      if test yes = "$GCC"; then
10264	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266      else
10267	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10268	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269      fi
10270      ;;
10271
10272    uts4*)
10273      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10274      hardcode_libdir_flag_spec='-L$libdir'
10275      hardcode_shlibpath_var=no
10276      ;;
10277
10278    *)
10279      ld_shlibs=no
10280      ;;
10281    esac
10282
10283    if test sni = "$host_vendor"; then
10284      case $host in
10285      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10286	export_dynamic_flag_spec='$wl-Blargedynsym'
10287	;;
10288      esac
10289    fi
10290  fi
10291
10292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10293$as_echo "$ld_shlibs" >&6; }
10294test no = "$ld_shlibs" && can_build_shared=no
10295
10296with_gnu_ld=$with_gnu_ld
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312#
10313# Do we need to explicitly link libc?
10314#
10315case "x$archive_cmds_need_lc" in
10316x|xyes)
10317  # Assume -lc should be added
10318  archive_cmds_need_lc=yes
10319
10320  if test yes,yes = "$GCC,$enable_shared"; then
10321    case $archive_cmds in
10322    *'~'*)
10323      # FIXME: we may have to deal with multi-command sequences.
10324      ;;
10325    '$CC '*)
10326      # Test whether the compiler implicitly links with -lc since on some
10327      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10328      # to ld, don't add -lc before -lgcc.
10329      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10330$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10331if ${lt_cv_archive_cmds_need_lc+:} false; then :
10332  $as_echo_n "(cached) " >&6
10333else
10334  $RM conftest*
10335	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10336
10337	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10338  (eval $ac_compile) 2>&5
10339  ac_status=$?
10340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10341  test $ac_status = 0; } 2>conftest.err; then
10342	  soname=conftest
10343	  lib=conftest
10344	  libobjs=conftest.$ac_objext
10345	  deplibs=
10346	  wl=$lt_prog_compiler_wl
10347	  pic_flag=$lt_prog_compiler_pic
10348	  compiler_flags=-v
10349	  linker_flags=-v
10350	  verstring=
10351	  output_objdir=.
10352	  libname=conftest
10353	  lt_save_allow_undefined_flag=$allow_undefined_flag
10354	  allow_undefined_flag=
10355	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10356  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10357  ac_status=$?
10358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10359  test $ac_status = 0; }
10360	  then
10361	    lt_cv_archive_cmds_need_lc=no
10362	  else
10363	    lt_cv_archive_cmds_need_lc=yes
10364	  fi
10365	  allow_undefined_flag=$lt_save_allow_undefined_flag
10366	else
10367	  cat conftest.err 1>&5
10368	fi
10369	$RM conftest*
10370
10371fi
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10373$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10374      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10375      ;;
10376    esac
10377  fi
10378  ;;
10379esac
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
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10533$as_echo_n "checking dynamic linker characteristics... " >&6; }
10534
10535if test yes = "$GCC"; then
10536  case $host_os in
10537    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10538    *) lt_awk_arg='/^libraries:/' ;;
10539  esac
10540  case $host_os in
10541    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10542    *) lt_sed_strip_eq='s|=/|/|g' ;;
10543  esac
10544  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10545  case $lt_search_path_spec in
10546  *\;*)
10547    # if the path contains ";" then we assume it to be the separator
10548    # otherwise default to the standard path separator (i.e. ":") - it is
10549    # assumed that no part of a normal pathname contains ";" but that should
10550    # okay in the real world where ";" in dirpaths is itself problematic.
10551    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10552    ;;
10553  *)
10554    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10555    ;;
10556  esac
10557  # Ok, now we have the path, separated by spaces, we can step through it
10558  # and add multilib dir if necessary...
10559  lt_tmp_lt_search_path_spec=
10560  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10561  # ...but if some path component already ends with the multilib dir we assume
10562  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10563  case "$lt_multi_os_dir; $lt_search_path_spec " in
10564  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10565    lt_multi_os_dir=
10566    ;;
10567  esac
10568  for lt_sys_path in $lt_search_path_spec; do
10569    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10570      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10571    elif test -n "$lt_multi_os_dir"; then
10572      test -d "$lt_sys_path" && \
10573	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10574    fi
10575  done
10576  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10577BEGIN {RS = " "; FS = "/|\n";} {
10578  lt_foo = "";
10579  lt_count = 0;
10580  for (lt_i = NF; lt_i > 0; lt_i--) {
10581    if ($lt_i != "" && $lt_i != ".") {
10582      if ($lt_i == "..") {
10583        lt_count++;
10584      } else {
10585        if (lt_count == 0) {
10586          lt_foo = "/" $lt_i lt_foo;
10587        } else {
10588          lt_count--;
10589        }
10590      }
10591    }
10592  }
10593  if (lt_foo != "") { lt_freq[lt_foo]++; }
10594  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10595}'`
10596  # AWK program above erroneously prepends '/' to C:/dos/paths
10597  # for these hosts.
10598  case $host_os in
10599    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10600      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10601  esac
10602  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10603else
10604  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10605fi
10606library_names_spec=
10607libname_spec='lib$name'
10608soname_spec=
10609shrext_cmds=.so
10610postinstall_cmds=
10611postuninstall_cmds=
10612finish_cmds=
10613finish_eval=
10614shlibpath_var=
10615shlibpath_overrides_runpath=unknown
10616version_type=none
10617dynamic_linker="$host_os ld.so"
10618sys_lib_dlsearch_path_spec="/lib /usr/lib"
10619need_lib_prefix=unknown
10620hardcode_into_libs=no
10621
10622# when you set need_version to no, make sure it does not cause -set_version
10623# flags to be left without arguments
10624need_version=unknown
10625
10626
10627
10628case $host_os in
10629aix3*)
10630  version_type=linux # correct to gnu/linux during the next big refactor
10631  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10632  shlibpath_var=LIBPATH
10633
10634  # AIX 3 has no versioning support, so we append a major version to the name.
10635  soname_spec='$libname$release$shared_ext$major'
10636  ;;
10637
10638aix[4-9]*)
10639  version_type=linux # correct to gnu/linux during the next big refactor
10640  need_lib_prefix=no
10641  need_version=no
10642  hardcode_into_libs=yes
10643  if test ia64 = "$host_cpu"; then
10644    # AIX 5 supports IA64
10645    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10646    shlibpath_var=LD_LIBRARY_PATH
10647  else
10648    # With GCC up to 2.95.x, collect2 would create an import file
10649    # for dependence libraries.  The import file would start with
10650    # the line '#! .'.  This would cause the generated library to
10651    # depend on '.', always an invalid library.  This was fixed in
10652    # development snapshots of GCC prior to 3.0.
10653    case $host_os in
10654      aix4 | aix4.[01] | aix4.[01].*)
10655      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10656	   echo ' yes '
10657	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10658	:
10659      else
10660	can_build_shared=no
10661      fi
10662      ;;
10663    esac
10664    # Using Import Files as archive members, it is possible to support
10665    # filename-based versioning of shared library archives on AIX. While
10666    # this would work for both with and without runtime linking, it will
10667    # prevent static linking of such archives. So we do filename-based
10668    # shared library versioning with .so extension only, which is used
10669    # when both runtime linking and shared linking is enabled.
10670    # Unfortunately, runtime linking may impact performance, so we do
10671    # not want this to be the default eventually. Also, we use the
10672    # versioned .so libs for executables only if there is the -brtl
10673    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10674    # To allow for filename-based versioning support, we need to create
10675    # libNAME.so.V as an archive file, containing:
10676    # *) an Import File, referring to the versioned filename of the
10677    #    archive as well as the shared archive member, telling the
10678    #    bitwidth (32 or 64) of that shared object, and providing the
10679    #    list of exported symbols of that shared object, eventually
10680    #    decorated with the 'weak' keyword
10681    # *) the shared object with the F_LOADONLY flag set, to really avoid
10682    #    it being seen by the linker.
10683    # At run time we better use the real file rather than another symlink,
10684    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10685
10686    case $with_aix_soname,$aix_use_runtimelinking in
10687    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10688    # soname into executable. Probably we can add versioning support to
10689    # collect2, so additional links can be useful in future.
10690    aix,yes) # traditional libtool
10691      dynamic_linker='AIX unversionable lib.so'
10692      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10693      # instead of lib<name>.a to let people know that these are not
10694      # typical AIX shared libraries.
10695      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10696      ;;
10697    aix,no) # traditional AIX only
10698      dynamic_linker='AIX lib.a(lib.so.V)'
10699      # We preserve .a as extension for shared libraries through AIX4.2
10700      # and later when we are not doing run time linking.
10701      library_names_spec='$libname$release.a $libname.a'
10702      soname_spec='$libname$release$shared_ext$major'
10703      ;;
10704    svr4,*) # full svr4 only
10705      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10706      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10707      # We do not specify a path in Import Files, so LIBPATH fires.
10708      shlibpath_overrides_runpath=yes
10709      ;;
10710    *,yes) # both, prefer svr4
10711      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10712      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10713      # unpreferred sharedlib libNAME.a needs extra handling
10714      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10715      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10716      # We do not specify a path in Import Files, so LIBPATH fires.
10717      shlibpath_overrides_runpath=yes
10718      ;;
10719    *,no) # both, prefer aix
10720      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10721      library_names_spec='$libname$release.a $libname.a'
10722      soname_spec='$libname$release$shared_ext$major'
10723      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10724      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10725      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10726      ;;
10727    esac
10728    shlibpath_var=LIBPATH
10729  fi
10730  ;;
10731
10732amigaos*)
10733  case $host_cpu in
10734  powerpc)
10735    # Since July 2007 AmigaOS4 officially supports .so libraries.
10736    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10737    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10738    ;;
10739  m68k)
10740    library_names_spec='$libname.ixlibrary $libname.a'
10741    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10742    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10743    ;;
10744  esac
10745  ;;
10746
10747beos*)
10748  library_names_spec='$libname$shared_ext'
10749  dynamic_linker="$host_os ld.so"
10750  shlibpath_var=LIBRARY_PATH
10751  ;;
10752
10753bsdi[45]*)
10754  version_type=linux # correct to gnu/linux during the next big refactor
10755  need_version=no
10756  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10757  soname_spec='$libname$release$shared_ext$major'
10758  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10759  shlibpath_var=LD_LIBRARY_PATH
10760  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10761  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10762  # the default ld.so.conf also contains /usr/contrib/lib and
10763  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10764  # libtool to hard-code these into programs
10765  ;;
10766
10767cygwin* | mingw* | pw32* | cegcc*)
10768  version_type=windows
10769  shrext_cmds=.dll
10770  need_version=no
10771  need_lib_prefix=no
10772
10773  case $GCC,$cc_basename in
10774  yes,*)
10775    # gcc
10776    library_names_spec='$libname.dll.a'
10777    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10778    postinstall_cmds='base_file=`basename \$file`~
10779      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10780      dldir=$destdir/`dirname \$dlpath`~
10781      test -d \$dldir || mkdir -p \$dldir~
10782      $install_prog $dir/$dlname \$dldir/$dlname~
10783      chmod a+x \$dldir/$dlname~
10784      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10785        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10786      fi'
10787    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10788      dlpath=$dir/\$dldll~
10789       $RM \$dlpath'
10790    shlibpath_overrides_runpath=yes
10791
10792    case $host_os in
10793    cygwin*)
10794      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10795      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10796
10797      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10798      ;;
10799    mingw* | cegcc*)
10800      # MinGW DLLs use traditional 'lib' prefix
10801      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10802      ;;
10803    pw32*)
10804      # pw32 DLLs use 'pw' prefix rather than 'lib'
10805      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10806      ;;
10807    esac
10808    dynamic_linker='Win32 ld.exe'
10809    ;;
10810
10811  *,cl*)
10812    # Native MSVC
10813    libname_spec='$name'
10814    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10815    library_names_spec='$libname.dll.lib'
10816
10817    case $build_os in
10818    mingw*)
10819      sys_lib_search_path_spec=
10820      lt_save_ifs=$IFS
10821      IFS=';'
10822      for lt_path in $LIB
10823      do
10824        IFS=$lt_save_ifs
10825        # Let DOS variable expansion print the short 8.3 style file name.
10826        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10827        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10828      done
10829      IFS=$lt_save_ifs
10830      # Convert to MSYS style.
10831      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10832      ;;
10833    cygwin*)
10834      # Convert to unix form, then to dos form, then back to unix form
10835      # but this time dos style (no spaces!) so that the unix form looks
10836      # like /cygdrive/c/PROGRA~1:/cygdr...
10837      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10838      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10839      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10840      ;;
10841    *)
10842      sys_lib_search_path_spec=$LIB
10843      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10844        # It is most probably a Windows format PATH.
10845        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10846      else
10847        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10848      fi
10849      # FIXME: find the short name or the path components, as spaces are
10850      # common. (e.g. "Program Files" -> "PROGRA~1")
10851      ;;
10852    esac
10853
10854    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10855    postinstall_cmds='base_file=`basename \$file`~
10856      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10857      dldir=$destdir/`dirname \$dlpath`~
10858      test -d \$dldir || mkdir -p \$dldir~
10859      $install_prog $dir/$dlname \$dldir/$dlname'
10860    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10861      dlpath=$dir/\$dldll~
10862       $RM \$dlpath'
10863    shlibpath_overrides_runpath=yes
10864    dynamic_linker='Win32 link.exe'
10865    ;;
10866
10867  *)
10868    # Assume MSVC wrapper
10869    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10870    dynamic_linker='Win32 ld.exe'
10871    ;;
10872  esac
10873  # FIXME: first we should search . and the directory the executable is in
10874  shlibpath_var=PATH
10875  ;;
10876
10877darwin* | rhapsody*)
10878  dynamic_linker="$host_os dyld"
10879  version_type=darwin
10880  need_lib_prefix=no
10881  need_version=no
10882  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10883  soname_spec='$libname$release$major$shared_ext'
10884  shlibpath_overrides_runpath=yes
10885  shlibpath_var=DYLD_LIBRARY_PATH
10886  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10887
10888  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10889  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10890  ;;
10891
10892dgux*)
10893  version_type=linux # correct to gnu/linux during the next big refactor
10894  need_lib_prefix=no
10895  need_version=no
10896  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10897  soname_spec='$libname$release$shared_ext$major'
10898  shlibpath_var=LD_LIBRARY_PATH
10899  ;;
10900
10901freebsd* | dragonfly*)
10902  # DragonFly does not have aout.  When/if they implement a new
10903  # versioning mechanism, adjust this.
10904  if test -x /usr/bin/objformat; then
10905    objformat=`/usr/bin/objformat`
10906  else
10907    case $host_os in
10908    freebsd[23].*) objformat=aout ;;
10909    *) objformat=elf ;;
10910    esac
10911  fi
10912  version_type=freebsd-$objformat
10913  case $version_type in
10914    freebsd-elf*)
10915      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10916      soname_spec='$libname$release$shared_ext$major'
10917      need_version=no
10918      need_lib_prefix=no
10919      ;;
10920    freebsd-*)
10921      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10922      need_version=yes
10923      ;;
10924  esac
10925  shlibpath_var=LD_LIBRARY_PATH
10926  case $host_os in
10927  freebsd2.*)
10928    shlibpath_overrides_runpath=yes
10929    ;;
10930  freebsd3.[01]* | freebsdelf3.[01]*)
10931    shlibpath_overrides_runpath=yes
10932    hardcode_into_libs=yes
10933    ;;
10934  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10935  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10936    shlibpath_overrides_runpath=no
10937    hardcode_into_libs=yes
10938    ;;
10939  *) # from 4.6 on, and DragonFly
10940    shlibpath_overrides_runpath=yes
10941    hardcode_into_libs=yes
10942    ;;
10943  esac
10944  ;;
10945
10946haiku*)
10947  version_type=linux # correct to gnu/linux during the next big refactor
10948  need_lib_prefix=no
10949  need_version=no
10950  dynamic_linker="$host_os runtime_loader"
10951  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10952  soname_spec='$libname$release$shared_ext$major'
10953  shlibpath_var=LIBRARY_PATH
10954  shlibpath_overrides_runpath=no
10955  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10956  hardcode_into_libs=yes
10957  ;;
10958
10959hpux9* | hpux10* | hpux11*)
10960  # Give a soname corresponding to the major version so that dld.sl refuses to
10961  # link against other versions.
10962  version_type=sunos
10963  need_lib_prefix=no
10964  need_version=no
10965  case $host_cpu in
10966  ia64*)
10967    shrext_cmds='.so'
10968    hardcode_into_libs=yes
10969    dynamic_linker="$host_os dld.so"
10970    shlibpath_var=LD_LIBRARY_PATH
10971    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10972    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10973    soname_spec='$libname$release$shared_ext$major'
10974    if test 32 = "$HPUX_IA64_MODE"; then
10975      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10976      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10977    else
10978      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10979      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10980    fi
10981    ;;
10982  hppa*64*)
10983    shrext_cmds='.sl'
10984    hardcode_into_libs=yes
10985    dynamic_linker="$host_os dld.sl"
10986    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10987    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10988    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10989    soname_spec='$libname$release$shared_ext$major'
10990    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10991    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10992    ;;
10993  *)
10994    shrext_cmds='.sl'
10995    dynamic_linker="$host_os dld.sl"
10996    shlibpath_var=SHLIB_PATH
10997    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10998    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10999    soname_spec='$libname$release$shared_ext$major'
11000    ;;
11001  esac
11002  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11003  postinstall_cmds='chmod 555 $lib'
11004  # or fails outright, so override atomically:
11005  install_override_mode=555
11006  ;;
11007
11008interix[3-9]*)
11009  version_type=linux # correct to gnu/linux during the next big refactor
11010  need_lib_prefix=no
11011  need_version=no
11012  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11013  soname_spec='$libname$release$shared_ext$major'
11014  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11015  shlibpath_var=LD_LIBRARY_PATH
11016  shlibpath_overrides_runpath=no
11017  hardcode_into_libs=yes
11018  ;;
11019
11020irix5* | irix6* | nonstopux*)
11021  case $host_os in
11022    nonstopux*) version_type=nonstopux ;;
11023    *)
11024	if test yes = "$lt_cv_prog_gnu_ld"; then
11025		version_type=linux # correct to gnu/linux during the next big refactor
11026	else
11027		version_type=irix
11028	fi ;;
11029  esac
11030  need_lib_prefix=no
11031  need_version=no
11032  soname_spec='$libname$release$shared_ext$major'
11033  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11034  case $host_os in
11035  irix5* | nonstopux*)
11036    libsuff= shlibsuff=
11037    ;;
11038  *)
11039    case $LD in # libtool.m4 will add one of these switches to LD
11040    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11041      libsuff= shlibsuff= libmagic=32-bit;;
11042    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11043      libsuff=32 shlibsuff=N32 libmagic=N32;;
11044    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11045      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11046    *) libsuff= shlibsuff= libmagic=never-match;;
11047    esac
11048    ;;
11049  esac
11050  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11051  shlibpath_overrides_runpath=no
11052  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11053  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11054  hardcode_into_libs=yes
11055  ;;
11056
11057# No shared lib support for Linux oldld, aout, or coff.
11058linux*oldld* | linux*aout* | linux*coff*)
11059  dynamic_linker=no
11060  ;;
11061
11062linux*android*)
11063  version_type=none # Android doesn't support versioned libraries.
11064  need_lib_prefix=no
11065  need_version=no
11066  library_names_spec='$libname$release$shared_ext'
11067  soname_spec='$libname$release$shared_ext'
11068  finish_cmds=
11069  shlibpath_var=LD_LIBRARY_PATH
11070  shlibpath_overrides_runpath=yes
11071
11072  # This implies no fast_install, which is unacceptable.
11073  # Some rework will be needed to allow for fast_install
11074  # before this can be enabled.
11075  hardcode_into_libs=yes
11076
11077  dynamic_linker='Android linker'
11078  # Don't embed -rpath directories since the linker doesn't support them.
11079  hardcode_libdir_flag_spec='-L$libdir'
11080  ;;
11081
11082# This must be glibc/ELF.
11083linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11084  version_type=linux # correct to gnu/linux during the next big refactor
11085  need_lib_prefix=no
11086  need_version=no
11087  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11088  soname_spec='$libname$release$shared_ext$major'
11089  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11090  shlibpath_var=LD_LIBRARY_PATH
11091  shlibpath_overrides_runpath=no
11092
11093  # Some binutils ld are patched to set DT_RUNPATH
11094  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11095  $as_echo_n "(cached) " >&6
11096else
11097  lt_cv_shlibpath_overrides_runpath=no
11098    save_LDFLAGS=$LDFLAGS
11099    save_libdir=$libdir
11100    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11101	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11102    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103/* end confdefs.h.  */
11104
11105int
11106main ()
11107{
11108
11109  ;
11110  return 0;
11111}
11112_ACEOF
11113if ac_fn_c_try_link "$LINENO"; then :
11114  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11115  lt_cv_shlibpath_overrides_runpath=yes
11116fi
11117fi
11118rm -f core conftest.err conftest.$ac_objext \
11119    conftest$ac_exeext conftest.$ac_ext
11120    LDFLAGS=$save_LDFLAGS
11121    libdir=$save_libdir
11122
11123fi
11124
11125  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11126
11127  # This implies no fast_install, which is unacceptable.
11128  # Some rework will be needed to allow for fast_install
11129  # before this can be enabled.
11130  hardcode_into_libs=yes
11131
11132  # Ideally, we could use ldconfig to report *all* directores which are
11133  # searched for libraries, however this is still not possible.  Aside from not
11134  # being certain /sbin/ldconfig is available, command
11135  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11136  # even though it is searched at run-time.  Try to do the best guess by
11137  # appending ld.so.conf contents (and includes) to the search path.
11138  if test -f /etc/ld.so.conf; then
11139    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' ' '`
11140    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11141  fi
11142
11143  # We used to test for /lib/ld.so.1 and disable shared libraries on
11144  # powerpc, because MkLinux only supported shared libraries with the
11145  # GNU dynamic linker.  Since this was broken with cross compilers,
11146  # most powerpc-linux boxes support dynamic linking these days and
11147  # people can always --disable-shared, the test was removed, and we
11148  # assume the GNU/Linux dynamic linker is in use.
11149  dynamic_linker='GNU/Linux ld.so'
11150  ;;
11151
11152netbsdelf*-gnu)
11153  version_type=linux
11154  need_lib_prefix=no
11155  need_version=no
11156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11157  soname_spec='${libname}${release}${shared_ext}$major'
11158  shlibpath_var=LD_LIBRARY_PATH
11159  shlibpath_overrides_runpath=no
11160  hardcode_into_libs=yes
11161  dynamic_linker='NetBSD ld.elf_so'
11162  ;;
11163
11164netbsd*)
11165  version_type=sunos
11166  need_lib_prefix=no
11167  need_version=no
11168  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11169    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11170    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11171    dynamic_linker='NetBSD (a.out) ld.so'
11172  else
11173    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11174    soname_spec='$libname$release$shared_ext$major'
11175    dynamic_linker='NetBSD ld.elf_so'
11176  fi
11177  shlibpath_var=LD_LIBRARY_PATH
11178  shlibpath_overrides_runpath=yes
11179  hardcode_into_libs=yes
11180  ;;
11181
11182newsos6)
11183  version_type=linux # correct to gnu/linux during the next big refactor
11184  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11185  shlibpath_var=LD_LIBRARY_PATH
11186  shlibpath_overrides_runpath=yes
11187  ;;
11188
11189*nto* | *qnx*)
11190  version_type=qnx
11191  need_lib_prefix=no
11192  need_version=no
11193  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11194  soname_spec='$libname$release$shared_ext$major'
11195  shlibpath_var=LD_LIBRARY_PATH
11196  shlibpath_overrides_runpath=no
11197  hardcode_into_libs=yes
11198  dynamic_linker='ldqnx.so'
11199  ;;
11200
11201openbsd* | bitrig*)
11202  version_type=sunos
11203  sys_lib_dlsearch_path_spec=/usr/lib
11204  need_lib_prefix=no
11205  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11206    need_version=no
11207  else
11208    need_version=yes
11209  fi
11210  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11211  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11212  shlibpath_var=LD_LIBRARY_PATH
11213  shlibpath_overrides_runpath=yes
11214  ;;
11215
11216os2*)
11217  libname_spec='$name'
11218  version_type=windows
11219  shrext_cmds=.dll
11220  need_version=no
11221  need_lib_prefix=no
11222  # OS/2 can only load a DLL with a base name of 8 characters or less.
11223  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11224    v=$($ECHO $release$versuffix | tr -d .-);
11225    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11226    $ECHO $n$v`$shared_ext'
11227  library_names_spec='${libname}_dll.$libext'
11228  dynamic_linker='OS/2 ld.exe'
11229  shlibpath_var=BEGINLIBPATH
11230  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11231  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11232  postinstall_cmds='base_file=`basename \$file`~
11233    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11234    dldir=$destdir/`dirname \$dlpath`~
11235    test -d \$dldir || mkdir -p \$dldir~
11236    $install_prog $dir/$dlname \$dldir/$dlname~
11237    chmod a+x \$dldir/$dlname~
11238    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11239      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11240    fi'
11241  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11242    dlpath=$dir/\$dldll~
11243    $RM \$dlpath'
11244  ;;
11245
11246osf3* | osf4* | osf5*)
11247  version_type=osf
11248  need_lib_prefix=no
11249  need_version=no
11250  soname_spec='$libname$release$shared_ext$major'
11251  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11252  shlibpath_var=LD_LIBRARY_PATH
11253  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11254  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11255  ;;
11256
11257rdos*)
11258  dynamic_linker=no
11259  ;;
11260
11261solaris*)
11262  version_type=linux # correct to gnu/linux during the next big refactor
11263  need_lib_prefix=no
11264  need_version=no
11265  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11266  soname_spec='$libname$release$shared_ext$major'
11267  shlibpath_var=LD_LIBRARY_PATH
11268  shlibpath_overrides_runpath=yes
11269  hardcode_into_libs=yes
11270  # ldd complains unless libraries are executable
11271  postinstall_cmds='chmod +x $lib'
11272  ;;
11273
11274sunos4*)
11275  version_type=sunos
11276  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11277  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11278  shlibpath_var=LD_LIBRARY_PATH
11279  shlibpath_overrides_runpath=yes
11280  if test yes = "$with_gnu_ld"; then
11281    need_lib_prefix=no
11282  fi
11283  need_version=yes
11284  ;;
11285
11286sysv4 | sysv4.3*)
11287  version_type=linux # correct to gnu/linux during the next big refactor
11288  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11289  soname_spec='$libname$release$shared_ext$major'
11290  shlibpath_var=LD_LIBRARY_PATH
11291  case $host_vendor in
11292    sni)
11293      shlibpath_overrides_runpath=no
11294      need_lib_prefix=no
11295      runpath_var=LD_RUN_PATH
11296      ;;
11297    siemens)
11298      need_lib_prefix=no
11299      ;;
11300    motorola)
11301      need_lib_prefix=no
11302      need_version=no
11303      shlibpath_overrides_runpath=no
11304      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11305      ;;
11306  esac
11307  ;;
11308
11309sysv4*MP*)
11310  if test -d /usr/nec; then
11311    version_type=linux # correct to gnu/linux during the next big refactor
11312    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11313    soname_spec='$libname$shared_ext.$major'
11314    shlibpath_var=LD_LIBRARY_PATH
11315  fi
11316  ;;
11317
11318sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11319  version_type=sco
11320  need_lib_prefix=no
11321  need_version=no
11322  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11323  soname_spec='$libname$release$shared_ext$major'
11324  shlibpath_var=LD_LIBRARY_PATH
11325  shlibpath_overrides_runpath=yes
11326  hardcode_into_libs=yes
11327  if test yes = "$with_gnu_ld"; then
11328    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11329  else
11330    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11331    case $host_os in
11332      sco3.2v5*)
11333        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11334	;;
11335    esac
11336  fi
11337  sys_lib_dlsearch_path_spec='/usr/lib'
11338  ;;
11339
11340tpf*)
11341  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11342  version_type=linux # correct to gnu/linux during the next big refactor
11343  need_lib_prefix=no
11344  need_version=no
11345  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11346  shlibpath_var=LD_LIBRARY_PATH
11347  shlibpath_overrides_runpath=no
11348  hardcode_into_libs=yes
11349  ;;
11350
11351uts4*)
11352  version_type=linux # correct to gnu/linux during the next big refactor
11353  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11354  soname_spec='$libname$release$shared_ext$major'
11355  shlibpath_var=LD_LIBRARY_PATH
11356  ;;
11357
11358*)
11359  dynamic_linker=no
11360  ;;
11361esac
11362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11363$as_echo "$dynamic_linker" >&6; }
11364test no = "$dynamic_linker" && can_build_shared=no
11365
11366variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11367if test yes = "$GCC"; then
11368  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11369fi
11370
11371if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11372  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11373fi
11374
11375if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11376  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11377fi
11378
11379# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11380configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11381
11382# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11383func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11384
11385# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11386configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11485$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11486hardcode_action=
11487if test -n "$hardcode_libdir_flag_spec" ||
11488   test -n "$runpath_var" ||
11489   test yes = "$hardcode_automatic"; then
11490
11491  # We can hardcode non-existent directories.
11492  if test no != "$hardcode_direct" &&
11493     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11494     # have to relink, otherwise we might link with an installed library
11495     # when we should be linking with a yet-to-be-installed one
11496     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11497     test no != "$hardcode_minus_L"; then
11498    # Linking always hardcodes the temporary library directory.
11499    hardcode_action=relink
11500  else
11501    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11502    hardcode_action=immediate
11503  fi
11504else
11505  # We cannot hardcode anything, or else we can only hardcode existing
11506  # directories.
11507  hardcode_action=unsupported
11508fi
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11510$as_echo "$hardcode_action" >&6; }
11511
11512if test relink = "$hardcode_action" ||
11513   test yes = "$inherit_rpath"; then
11514  # Fast installation is not supported
11515  enable_fast_install=no
11516elif test yes = "$shlibpath_overrides_runpath" ||
11517     test no = "$enable_shared"; then
11518  # Fast installation is not necessary
11519  enable_fast_install=needless
11520fi
11521
11522
11523
11524
11525
11526
11527  if test yes != "$enable_dlopen"; then
11528  enable_dlopen=unknown
11529  enable_dlopen_self=unknown
11530  enable_dlopen_self_static=unknown
11531else
11532  lt_cv_dlopen=no
11533  lt_cv_dlopen_libs=
11534
11535  case $host_os in
11536  beos*)
11537    lt_cv_dlopen=load_add_on
11538    lt_cv_dlopen_libs=
11539    lt_cv_dlopen_self=yes
11540    ;;
11541
11542  mingw* | pw32* | cegcc*)
11543    lt_cv_dlopen=LoadLibrary
11544    lt_cv_dlopen_libs=
11545    ;;
11546
11547  cygwin*)
11548    lt_cv_dlopen=dlopen
11549    lt_cv_dlopen_libs=
11550    ;;
11551
11552  darwin*)
11553    # if libdl is installed we need to link against it
11554    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11555$as_echo_n "checking for dlopen in -ldl... " >&6; }
11556if ${ac_cv_lib_dl_dlopen+:} false; then :
11557  $as_echo_n "(cached) " >&6
11558else
11559  ac_check_lib_save_LIBS=$LIBS
11560LIBS="-ldl  $LIBS"
11561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562/* end confdefs.h.  */
11563
11564/* Override any GCC internal prototype to avoid an error.
11565   Use char because int might match the return type of a GCC
11566   builtin and then its argument prototype would still apply.  */
11567#ifdef __cplusplus
11568extern "C"
11569#endif
11570char dlopen ();
11571int
11572main ()
11573{
11574return dlopen ();
11575  ;
11576  return 0;
11577}
11578_ACEOF
11579if ac_fn_c_try_link "$LINENO"; then :
11580  ac_cv_lib_dl_dlopen=yes
11581else
11582  ac_cv_lib_dl_dlopen=no
11583fi
11584rm -f core conftest.err conftest.$ac_objext \
11585    conftest$ac_exeext conftest.$ac_ext
11586LIBS=$ac_check_lib_save_LIBS
11587fi
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11589$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11590if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11591  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11592else
11593
11594    lt_cv_dlopen=dyld
11595    lt_cv_dlopen_libs=
11596    lt_cv_dlopen_self=yes
11597
11598fi
11599
11600    ;;
11601
11602  tpf*)
11603    # Don't try to run any link tests for TPF.  We know it's impossible
11604    # because TPF is a cross-compiler, and we know how we open DSOs.
11605    lt_cv_dlopen=dlopen
11606    lt_cv_dlopen_libs=
11607    lt_cv_dlopen_self=no
11608    ;;
11609
11610  *)
11611    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11612if test "x$ac_cv_func_shl_load" = xyes; then :
11613  lt_cv_dlopen=shl_load
11614else
11615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11616$as_echo_n "checking for shl_load in -ldld... " >&6; }
11617if ${ac_cv_lib_dld_shl_load+:} false; then :
11618  $as_echo_n "(cached) " >&6
11619else
11620  ac_check_lib_save_LIBS=$LIBS
11621LIBS="-ldld  $LIBS"
11622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623/* end confdefs.h.  */
11624
11625/* Override any GCC internal prototype to avoid an error.
11626   Use char because int might match the return type of a GCC
11627   builtin and then its argument prototype would still apply.  */
11628#ifdef __cplusplus
11629extern "C"
11630#endif
11631char shl_load ();
11632int
11633main ()
11634{
11635return shl_load ();
11636  ;
11637  return 0;
11638}
11639_ACEOF
11640if ac_fn_c_try_link "$LINENO"; then :
11641  ac_cv_lib_dld_shl_load=yes
11642else
11643  ac_cv_lib_dld_shl_load=no
11644fi
11645rm -f core conftest.err conftest.$ac_objext \
11646    conftest$ac_exeext conftest.$ac_ext
11647LIBS=$ac_check_lib_save_LIBS
11648fi
11649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11650$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11651if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11652  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11653else
11654  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11655if test "x$ac_cv_func_dlopen" = xyes; then :
11656  lt_cv_dlopen=dlopen
11657else
11658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11659$as_echo_n "checking for dlopen in -ldl... " >&6; }
11660if ${ac_cv_lib_dl_dlopen+:} false; then :
11661  $as_echo_n "(cached) " >&6
11662else
11663  ac_check_lib_save_LIBS=$LIBS
11664LIBS="-ldl  $LIBS"
11665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666/* end confdefs.h.  */
11667
11668/* Override any GCC internal prototype to avoid an error.
11669   Use char because int might match the return type of a GCC
11670   builtin and then its argument prototype would still apply.  */
11671#ifdef __cplusplus
11672extern "C"
11673#endif
11674char dlopen ();
11675int
11676main ()
11677{
11678return dlopen ();
11679  ;
11680  return 0;
11681}
11682_ACEOF
11683if ac_fn_c_try_link "$LINENO"; then :
11684  ac_cv_lib_dl_dlopen=yes
11685else
11686  ac_cv_lib_dl_dlopen=no
11687fi
11688rm -f core conftest.err conftest.$ac_objext \
11689    conftest$ac_exeext conftest.$ac_ext
11690LIBS=$ac_check_lib_save_LIBS
11691fi
11692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11693$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11694if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11695  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11696else
11697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11698$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11699if ${ac_cv_lib_svld_dlopen+:} false; then :
11700  $as_echo_n "(cached) " >&6
11701else
11702  ac_check_lib_save_LIBS=$LIBS
11703LIBS="-lsvld  $LIBS"
11704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11705/* end confdefs.h.  */
11706
11707/* Override any GCC internal prototype to avoid an error.
11708   Use char because int might match the return type of a GCC
11709   builtin and then its argument prototype would still apply.  */
11710#ifdef __cplusplus
11711extern "C"
11712#endif
11713char dlopen ();
11714int
11715main ()
11716{
11717return dlopen ();
11718  ;
11719  return 0;
11720}
11721_ACEOF
11722if ac_fn_c_try_link "$LINENO"; then :
11723  ac_cv_lib_svld_dlopen=yes
11724else
11725  ac_cv_lib_svld_dlopen=no
11726fi
11727rm -f core conftest.err conftest.$ac_objext \
11728    conftest$ac_exeext conftest.$ac_ext
11729LIBS=$ac_check_lib_save_LIBS
11730fi
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11732$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11733if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11734  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11735else
11736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11737$as_echo_n "checking for dld_link in -ldld... " >&6; }
11738if ${ac_cv_lib_dld_dld_link+:} false; then :
11739  $as_echo_n "(cached) " >&6
11740else
11741  ac_check_lib_save_LIBS=$LIBS
11742LIBS="-ldld  $LIBS"
11743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744/* end confdefs.h.  */
11745
11746/* Override any GCC internal prototype to avoid an error.
11747   Use char because int might match the return type of a GCC
11748   builtin and then its argument prototype would still apply.  */
11749#ifdef __cplusplus
11750extern "C"
11751#endif
11752char dld_link ();
11753int
11754main ()
11755{
11756return dld_link ();
11757  ;
11758  return 0;
11759}
11760_ACEOF
11761if ac_fn_c_try_link "$LINENO"; then :
11762  ac_cv_lib_dld_dld_link=yes
11763else
11764  ac_cv_lib_dld_dld_link=no
11765fi
11766rm -f core conftest.err conftest.$ac_objext \
11767    conftest$ac_exeext conftest.$ac_ext
11768LIBS=$ac_check_lib_save_LIBS
11769fi
11770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11771$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11772if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11773  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11774fi
11775
11776
11777fi
11778
11779
11780fi
11781
11782
11783fi
11784
11785
11786fi
11787
11788
11789fi
11790
11791    ;;
11792  esac
11793
11794  if test no = "$lt_cv_dlopen"; then
11795    enable_dlopen=no
11796  else
11797    enable_dlopen=yes
11798  fi
11799
11800  case $lt_cv_dlopen in
11801  dlopen)
11802    save_CPPFLAGS=$CPPFLAGS
11803    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11804
11805    save_LDFLAGS=$LDFLAGS
11806    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11807
11808    save_LIBS=$LIBS
11809    LIBS="$lt_cv_dlopen_libs $LIBS"
11810
11811    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11812$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11813if ${lt_cv_dlopen_self+:} false; then :
11814  $as_echo_n "(cached) " >&6
11815else
11816  	  if test yes = "$cross_compiling"; then :
11817  lt_cv_dlopen_self=cross
11818else
11819  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11820  lt_status=$lt_dlunknown
11821  cat > conftest.$ac_ext <<_LT_EOF
11822#line $LINENO "configure"
11823#include "confdefs.h"
11824
11825#if HAVE_DLFCN_H
11826#include <dlfcn.h>
11827#endif
11828
11829#include <stdio.h>
11830
11831#ifdef RTLD_GLOBAL
11832#  define LT_DLGLOBAL		RTLD_GLOBAL
11833#else
11834#  ifdef DL_GLOBAL
11835#    define LT_DLGLOBAL		DL_GLOBAL
11836#  else
11837#    define LT_DLGLOBAL		0
11838#  endif
11839#endif
11840
11841/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11842   find out it does not work in some platform. */
11843#ifndef LT_DLLAZY_OR_NOW
11844#  ifdef RTLD_LAZY
11845#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11846#  else
11847#    ifdef DL_LAZY
11848#      define LT_DLLAZY_OR_NOW		DL_LAZY
11849#    else
11850#      ifdef RTLD_NOW
11851#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11852#      else
11853#        ifdef DL_NOW
11854#          define LT_DLLAZY_OR_NOW	DL_NOW
11855#        else
11856#          define LT_DLLAZY_OR_NOW	0
11857#        endif
11858#      endif
11859#    endif
11860#  endif
11861#endif
11862
11863/* When -fvisibility=hidden is used, assume the code has been annotated
11864   correspondingly for the symbols needed.  */
11865#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11866int fnord () __attribute__((visibility("default")));
11867#endif
11868
11869int fnord () { return 42; }
11870int main ()
11871{
11872  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11873  int status = $lt_dlunknown;
11874
11875  if (self)
11876    {
11877      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11878      else
11879        {
11880	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11881          else puts (dlerror ());
11882	}
11883      /* dlclose (self); */
11884    }
11885  else
11886    puts (dlerror ());
11887
11888  return status;
11889}
11890_LT_EOF
11891  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11892  (eval $ac_link) 2>&5
11893  ac_status=$?
11894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11895  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11896    (./conftest; exit; ) >&5 2>/dev/null
11897    lt_status=$?
11898    case x$lt_status in
11899      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11900      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11901      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11902    esac
11903  else :
11904    # compilation failed
11905    lt_cv_dlopen_self=no
11906  fi
11907fi
11908rm -fr conftest*
11909
11910
11911fi
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11913$as_echo "$lt_cv_dlopen_self" >&6; }
11914
11915    if test yes = "$lt_cv_dlopen_self"; then
11916      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11917      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11918$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11919if ${lt_cv_dlopen_self_static+:} false; then :
11920  $as_echo_n "(cached) " >&6
11921else
11922  	  if test yes = "$cross_compiling"; then :
11923  lt_cv_dlopen_self_static=cross
11924else
11925  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11926  lt_status=$lt_dlunknown
11927  cat > conftest.$ac_ext <<_LT_EOF
11928#line $LINENO "configure"
11929#include "confdefs.h"
11930
11931#if HAVE_DLFCN_H
11932#include <dlfcn.h>
11933#endif
11934
11935#include <stdio.h>
11936
11937#ifdef RTLD_GLOBAL
11938#  define LT_DLGLOBAL		RTLD_GLOBAL
11939#else
11940#  ifdef DL_GLOBAL
11941#    define LT_DLGLOBAL		DL_GLOBAL
11942#  else
11943#    define LT_DLGLOBAL		0
11944#  endif
11945#endif
11946
11947/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11948   find out it does not work in some platform. */
11949#ifndef LT_DLLAZY_OR_NOW
11950#  ifdef RTLD_LAZY
11951#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11952#  else
11953#    ifdef DL_LAZY
11954#      define LT_DLLAZY_OR_NOW		DL_LAZY
11955#    else
11956#      ifdef RTLD_NOW
11957#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11958#      else
11959#        ifdef DL_NOW
11960#          define LT_DLLAZY_OR_NOW	DL_NOW
11961#        else
11962#          define LT_DLLAZY_OR_NOW	0
11963#        endif
11964#      endif
11965#    endif
11966#  endif
11967#endif
11968
11969/* When -fvisibility=hidden is used, assume the code has been annotated
11970   correspondingly for the symbols needed.  */
11971#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11972int fnord () __attribute__((visibility("default")));
11973#endif
11974
11975int fnord () { return 42; }
11976int main ()
11977{
11978  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11979  int status = $lt_dlunknown;
11980
11981  if (self)
11982    {
11983      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11984      else
11985        {
11986	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11987          else puts (dlerror ());
11988	}
11989      /* dlclose (self); */
11990    }
11991  else
11992    puts (dlerror ());
11993
11994  return status;
11995}
11996_LT_EOF
11997  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11998  (eval $ac_link) 2>&5
11999  ac_status=$?
12000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12001  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12002    (./conftest; exit; ) >&5 2>/dev/null
12003    lt_status=$?
12004    case x$lt_status in
12005      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12006      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12007      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12008    esac
12009  else :
12010    # compilation failed
12011    lt_cv_dlopen_self_static=no
12012  fi
12013fi
12014rm -fr conftest*
12015
12016
12017fi
12018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12019$as_echo "$lt_cv_dlopen_self_static" >&6; }
12020    fi
12021
12022    CPPFLAGS=$save_CPPFLAGS
12023    LDFLAGS=$save_LDFLAGS
12024    LIBS=$save_LIBS
12025    ;;
12026  esac
12027
12028  case $lt_cv_dlopen_self in
12029  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12030  *) enable_dlopen_self=unknown ;;
12031  esac
12032
12033  case $lt_cv_dlopen_self_static in
12034  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12035  *) enable_dlopen_self_static=unknown ;;
12036  esac
12037fi
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055striplib=
12056old_striplib=
12057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12058$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12059if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12060  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12061  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12063$as_echo "yes" >&6; }
12064else
12065# FIXME - insert some real tests, host_os isn't really good enough
12066  case $host_os in
12067  darwin*)
12068    if test -n "$STRIP"; then
12069      striplib="$STRIP -x"
12070      old_striplib="$STRIP -S"
12071      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12072$as_echo "yes" >&6; }
12073    else
12074      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075$as_echo "no" >&6; }
12076    fi
12077    ;;
12078  *)
12079    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080$as_echo "no" >&6; }
12081    ;;
12082  esac
12083fi
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096  # Report what library types will actually be built
12097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12098$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12100$as_echo "$can_build_shared" >&6; }
12101
12102  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12103$as_echo_n "checking whether to build shared libraries... " >&6; }
12104  test no = "$can_build_shared" && enable_shared=no
12105
12106  # On AIX, shared libraries and static libraries use the same namespace, and
12107  # are all built from PIC.
12108  case $host_os in
12109  aix3*)
12110    test yes = "$enable_shared" && enable_static=no
12111    if test -n "$RANLIB"; then
12112      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12113      postinstall_cmds='$RANLIB $lib'
12114    fi
12115    ;;
12116
12117  aix[4-9]*)
12118    if test ia64 != "$host_cpu"; then
12119      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12120      yes,aix,yes) ;;			# shared object as lib.so file only
12121      yes,svr4,*) ;;			# shared object as lib.so archive member only
12122      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12123      esac
12124    fi
12125    ;;
12126  esac
12127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12128$as_echo "$enable_shared" >&6; }
12129
12130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12131$as_echo_n "checking whether to build static libraries... " >&6; }
12132  # Make sure either enable_shared or enable_static is yes.
12133  test yes = "$enable_shared" || enable_static=yes
12134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12135$as_echo "$enable_static" >&6; }
12136
12137
12138
12139
12140fi
12141ac_ext=c
12142ac_cpp='$CPP $CPPFLAGS'
12143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12145ac_compiler_gnu=$ac_cv_c_compiler_gnu
12146
12147CC=$lt_save_CC
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163        ac_config_commands="$ac_config_commands libtool"
12164
12165
12166
12167
12168# Only expand once:
12169
12170
12171
12172
12173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install the Potrace library" >&5
12174$as_echo_n "checking whether to install the Potrace library... " >&6; }
12175if test "$with_libpotrace" = yes; then
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12177$as_echo "yes" >&6; }
12178 INSTLIBS="libpotrace.la"
12179 INSTHEADERS="potracelib.h"
12180else
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182$as_echo "no" >&6; }
12183fi
12184
12185
12186
12187
12188
12189if test "$GCC" = "yes"; then
12190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc has bug number 12243" >&5
12191$as_echo_n "checking whether gcc has bug number 12243... " >&6; }
12192
12193$as_echo "#define HAVE_GCC_LOOP_BUG /**/" >>confdefs.h
12194
12195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
12196$as_echo "maybe" >&6; }
12197fi
12198
12199
12200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use zlib" >&5
12201$as_echo_n "checking whether to use zlib... " >&6; }
12202# Check whether --enable-zlib was given.
12203if test "${enable_zlib+set}" = set; then :
12204  enableval=$enable_zlib;
12205fi
12206
12207if test "$enable_zlib" != no; then
12208
12209$as_echo "#define HAVE_ZLIB /**/" >>confdefs.h
12210
12211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12212$as_echo "yes" >&6; }
12213else
12214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215$as_echo "no" >&6; }
12216fi
12217
12218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to default to metric units" >&5
12219$as_echo_n "checking whether to default to metric units... " >&6; }
12220# Check whether --enable-metric was given.
12221if test "${enable_metric+set}" = set; then :
12222  enableval=$enable_metric;
12223fi
12224
12225if test "$enable_metric" = yes; then
12226
12227$as_echo "#define USE_METRIC /**/" >>confdefs.h
12228
12229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12230$as_echo "yes" >&6; }
12231else
12232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233$as_echo "no" >&6; }
12234fi
12235
12236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to default to a4 paper size" >&5
12237$as_echo_n "checking whether to default to a4 paper size... " >&6; }
12238# Check whether --enable-a4 was given.
12239if test "${enable_a4+set}" = set; then :
12240  enableval=$enable_a4;
12241fi
12242
12243if test "$enable_a4" = yes; then
12244
12245$as_echo "#define USE_A4 /**/" >>confdefs.h
12246
12247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12248$as_echo "yes" >&6; }
12249else
12250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251$as_echo "no" >&6; }
12252fi
12253
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the simplified progress bar" >&5
12255$as_echo_n "checking whether to use the simplified progress bar... " >&6; }
12256# Check whether --enable-dumb-tty was given.
12257if test "${enable_dumb_tty+set}" = set; then :
12258  enableval=$enable_dumb_tty;
12259fi
12260
12261dumb_tty="$enable_dumb_tty"
12262if test -z "$dumb_tty"; then
12263
12264   if test "$host_os" = "mingw32"; then
12265      dumb_tty="yes"
12266   fi
12267fi
12268if test "$dumb_tty" = "yes"; then
12269
12270$as_echo "#define DUMB_TTY /**/" >>confdefs.h
12271
12272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12273$as_echo "yes" >&6; }
12274else
12275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276$as_echo "no" >&6; }
12277fi
12278
12279
12280USERPREFIX="$prefix"
12281if test "$USERPREFIX" = "NONE"; then
12282   USERPREFIX="$ac_default_prefix"
12283fi
12284
12285
12286if test "$enable_zlib" != no; then
12287  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12288if test "x$ac_cv_header_zlib_h" = xyes; then :
12289  true
12290else
12291  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib.h not found in standard location.
12292Trying again with -I$USERPREFIX/include" >&5
12293$as_echo "$as_me: WARNING: zlib.h not found in standard location.
12294Trying again with -I$USERPREFIX/include" >&2;}
12295    CPPFLAGS="$CPPFLAGS -I$USERPREFIX/include"
12296        unset ac_cv_header_zlib_h
12297    ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12298if test "x$ac_cv_header_zlib_h" = xyes; then :
12299  true
12300else
12301  as_fn_error $? "cannot find zlib.h.
12302Rerun ./configure with CPPFLAGS=-I<include dir> if you have the header
12303file in a non-standard directory, or with --disable-zlib to disable
12304support for PostScript level 3 compression." "$LINENO" 5
12305
12306fi
12307
12308
12309
12310fi
12311
12312
12313fi
12314
12315ac_fn_c_check_decl "$LINENO" "M_PI" "ac_cv_have_decl_M_PI" "#include <math.h>
12316"
12317if test "x$ac_cv_have_decl_M_PI" = xyes; then :
12318
12319else
12320
12321$as_echo "#define M_PI 3.14159265358979323846" >>confdefs.h
12322
12323fi
12324
12325
12326
12327if test "$enable_zlib" != no; then
12328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
12329$as_echo_n "checking for deflate in -lz... " >&6; }
12330if ${ac_cv_lib_z_deflate+:} false; then :
12331  $as_echo_n "(cached) " >&6
12332else
12333  ac_check_lib_save_LIBS=$LIBS
12334LIBS="-lz  $LIBS"
12335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336/* end confdefs.h.  */
12337
12338/* Override any GCC internal prototype to avoid an error.
12339   Use char because int might match the return type of a GCC
12340   builtin and then its argument prototype would still apply.  */
12341#ifdef __cplusplus
12342extern "C"
12343#endif
12344char deflate ();
12345int
12346main ()
12347{
12348return deflate ();
12349  ;
12350  return 0;
12351}
12352_ACEOF
12353if ac_fn_c_try_link "$LINENO"; then :
12354  ac_cv_lib_z_deflate=yes
12355else
12356  ac_cv_lib_z_deflate=no
12357fi
12358rm -f core conftest.err conftest.$ac_objext \
12359    conftest$ac_exeext conftest.$ac_ext
12360LIBS=$ac_check_lib_save_LIBS
12361fi
12362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
12363$as_echo "$ac_cv_lib_z_deflate" >&6; }
12364if test "x$ac_cv_lib_z_deflate" = xyes; then :
12365  EXTRA_LIBS="$EXTRA_LIBS -lz"
12366else
12367  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libz library not found in standard location.
12368Trying again with -L$USERPREFIX/lib" >&5
12369$as_echo "$as_me: WARNING: libz library not found in standard location.
12370Trying again with -L$USERPREFIX/lib" >&2;}
12371    LDFLAGS="$LDFLAGS -L$USERPREFIX/lib"
12372        unset ac_cv_lib_z_deflate
12373    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
12374$as_echo_n "checking for deflate in -lz... " >&6; }
12375if ${ac_cv_lib_z_deflate+:} false; then :
12376  $as_echo_n "(cached) " >&6
12377else
12378  ac_check_lib_save_LIBS=$LIBS
12379LIBS="-lz  $LIBS"
12380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381/* end confdefs.h.  */
12382
12383/* Override any GCC internal prototype to avoid an error.
12384   Use char because int might match the return type of a GCC
12385   builtin and then its argument prototype would still apply.  */
12386#ifdef __cplusplus
12387extern "C"
12388#endif
12389char deflate ();
12390int
12391main ()
12392{
12393return deflate ();
12394  ;
12395  return 0;
12396}
12397_ACEOF
12398if ac_fn_c_try_link "$LINENO"; then :
12399  ac_cv_lib_z_deflate=yes
12400else
12401  ac_cv_lib_z_deflate=no
12402fi
12403rm -f core conftest.err conftest.$ac_objext \
12404    conftest$ac_exeext conftest.$ac_ext
12405LIBS=$ac_check_lib_save_LIBS
12406fi
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
12408$as_echo "$ac_cv_lib_z_deflate" >&6; }
12409if test "x$ac_cv_lib_z_deflate" = xyes; then :
12410  EXTRA_LIBS="$EXTRA_LIBS -lz"
12411else
12412  as_fn_error $? "cannot find the libz library (-lz).
12413Rerun ./configure with LDFLAGS=-L<lib dir> if you have the library in
12414a non-standard directory, or with --disable-zlib to disable support
12415for PostScript level 3 compression." "$LINENO" 5
12416
12417fi
12418
12419
12420fi
12421
12422fi
12423
12424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
12425$as_echo_n "checking for floor in -lm... " >&6; }
12426if ${ac_cv_lib_m_floor+:} false; then :
12427  $as_echo_n "(cached) " >&6
12428else
12429  ac_check_lib_save_LIBS=$LIBS
12430LIBS="-lm  $LIBS"
12431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432/* end confdefs.h.  */
12433
12434/* Override any GCC internal prototype to avoid an error.
12435   Use char because int might match the return type of a GCC
12436   builtin and then its argument prototype would still apply.  */
12437#ifdef __cplusplus
12438extern "C"
12439#endif
12440char floor ();
12441int
12442main ()
12443{
12444return floor ();
12445  ;
12446  return 0;
12447}
12448_ACEOF
12449if ac_fn_c_try_link "$LINENO"; then :
12450  ac_cv_lib_m_floor=yes
12451else
12452  ac_cv_lib_m_floor=no
12453fi
12454rm -f core conftest.err conftest.$ac_objext \
12455    conftest$ac_exeext conftest.$ac_ext
12456LIBS=$ac_check_lib_save_LIBS
12457fi
12458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
12459$as_echo "$ac_cv_lib_m_floor" >&6; }
12460if test "x$ac_cv_lib_m_floor" = xyes; then :
12461  true
12462else
12463  as_fn_error $? "cannot find the m library (-lm)" "$LINENO" 5
12464fi
12465
12466
12467
12468ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
12469if test "x$ac_cv_func_getopt_long" = xyes; then :
12470  have_getopt_long=yes
12471else
12472  have_getopt_long=no
12473fi
12474
12475if test "$have_getopt_long" = "yes"; then
12476      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt_long reorders its arguments" >&5
12477$as_echo_n "checking whether getopt_long reorders its arguments... " >&6; }
12478   if test "$cross_compiling" = yes; then :
12479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe (cross-compiling)" >&5
12480$as_echo "maybe (cross-compiling)" >&6; }
12481   have_getopt_long=no
12482else
12483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484/* end confdefs.h.  */
12485 #include <getopt.h>
12486      static struct option longopts[] = {
12487        {"help", 0, 0, 'h'},
12488	{0, 0, 0, 0}
12489      };
12490
12491int
12492main ()
12493{
12494 int ac = 3;
12495      char *av[] = { "main", "file", "-h" };
12496      return 'h' == getopt_long(ac, av, "h", longopts, (int *)0) ? 0 : 1;
12497
12498  ;
12499  return 0;
12500}
12501_ACEOF
12502if ac_fn_c_try_run "$LINENO"; then :
12503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12504$as_echo "yes" >&6; }
12505else
12506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12507$as_echo "no" >&6; }
12508   have_getopt_long=no
12509fi
12510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12511  conftest.$ac_objext conftest.beam conftest.$ac_ext
12512fi
12513
12514fi
12515if test "$have_getopt_long" != "yes"; then
12516   EXTRA_OBJS="$EXTRA_OBJS getopt.o getopt1.o"
12517fi
12518
12519ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
12520if test "x$ac_cv_func_strcasecmp" = xyes; then :
12521
12522else
12523  ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
12524if test "x$ac_cv_func_stricmp" = xyes; then :
12525
12526cat >>confdefs.h <<_ACEOF
12527#define strcasecmp stricmp
12528_ACEOF
12529
12530else
12531  as_fn_error $? "cannot find a replacement for strcasecmp" "$LINENO" 5
12532
12533fi
12534
12535
12536fi
12537
12538ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
12539if test "x$ac_cv_func_strncasecmp" = xyes; then :
12540
12541else
12542  ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
12543if test "x$ac_cv_func_strnicmp" = xyes; then :
12544
12545cat >>confdefs.h <<_ACEOF
12546#define strncasecmp strnicmp
12547_ACEOF
12548
12549else
12550  as_fn_error $? "cannot find a replacement for strncasecmp" "$LINENO" 5
12551
12552fi
12553
12554
12555fi
12556
12557
12558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel 386" >&5
12559$as_echo_n "checking for Intel 386... " >&6; }
12560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12561/* end confdefs.h.  */
12562
12563int
12564main ()
12565{
12566int x;
12567  asm("bsf %1,%0\njnz 0f\nmovl $32,%0\n0:":"=r"(x):"r"(x));
12568  return x; /* need this so that -O2 does not optimize the asm away */
12569
12570  ;
12571  return 0;
12572}
12573_ACEOF
12574if ac_fn_c_try_compile "$LINENO"; then :
12575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12576$as_echo "yes" >&6; }
12577
12578$as_echo "#define HAVE_I386 /**/" >>confdefs.h
12579
12580
12581else
12582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583$as_echo "no" >&6; }
12584fi
12585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12586
12587
12588
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12590$as_echo_n "checking for inline... " >&6; }
12591if ${ac_cv_c_inline+:} false; then :
12592  $as_echo_n "(cached) " >&6
12593else
12594  ac_cv_c_inline=no
12595for ac_kw in inline __inline__ __inline; do
12596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597/* end confdefs.h.  */
12598#ifndef __cplusplus
12599typedef int foo_t;
12600static $ac_kw foo_t static_foo () {return 0; }
12601$ac_kw foo_t foo () {return 0; }
12602#endif
12603
12604_ACEOF
12605if ac_fn_c_try_compile "$LINENO"; then :
12606  ac_cv_c_inline=$ac_kw
12607fi
12608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609  test "$ac_cv_c_inline" != no && break
12610done
12611
12612fi
12613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12614$as_echo "$ac_cv_c_inline" >&6; }
12615
12616case $ac_cv_c_inline in
12617  inline | yes) ;;
12618  *)
12619    case $ac_cv_c_inline in
12620      no) ac_val=;;
12621      *) ac_val=$ac_cv_c_inline;;
12622    esac
12623    cat >>confdefs.h <<_ACEOF
12624#ifndef __cplusplus
12625#define inline $ac_val
12626#endif
12627_ACEOF
12628    ;;
12629esac
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile check/Makefile doc/potrace.1 doc/mkbitmap.1"
12641
12642cat >confcache <<\_ACEOF
12643# This file is a shell script that caches the results of configure
12644# tests run on this system so they can be shared between configure
12645# scripts and configure runs, see configure's option --config-cache.
12646# It is not useful on other systems.  If it contains results you don't
12647# want to keep, you may remove or edit it.
12648#
12649# config.status only pays attention to the cache file if you give it
12650# the --recheck option to rerun configure.
12651#
12652# `ac_cv_env_foo' variables (set or unset) will be overridden when
12653# loading this file, other *unset* `ac_cv_foo' will be assigned the
12654# following values.
12655
12656_ACEOF
12657
12658# The following way of writing the cache mishandles newlines in values,
12659# but we know of no workaround that is simple, portable, and efficient.
12660# So, we kill variables containing newlines.
12661# Ultrix sh set writes to stderr and can't be redirected directly,
12662# and sets the high bit in the cache file unless we assign to the vars.
12663(
12664  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12665    eval ac_val=\$$ac_var
12666    case $ac_val in #(
12667    *${as_nl}*)
12668      case $ac_var in #(
12669      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12670$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12671      esac
12672      case $ac_var in #(
12673      _ | IFS | as_nl) ;; #(
12674      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12675      *) { eval $ac_var=; unset $ac_var;} ;;
12676      esac ;;
12677    esac
12678  done
12679
12680  (set) 2>&1 |
12681    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12682    *${as_nl}ac_space=\ *)
12683      # `set' does not quote correctly, so add quotes: double-quote
12684      # substitution turns \\\\ into \\, and sed turns \\ into \.
12685      sed -n \
12686	"s/'/'\\\\''/g;
12687	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12688      ;; #(
12689    *)
12690      # `set' quotes correctly as required by POSIX, so do not add quotes.
12691      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12692      ;;
12693    esac |
12694    sort
12695) |
12696  sed '
12697     /^ac_cv_env_/b end
12698     t clear
12699     :clear
12700     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12701     t end
12702     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12703     :end' >>confcache
12704if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12705  if test -w "$cache_file"; then
12706    if test "x$cache_file" != "x/dev/null"; then
12707      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12708$as_echo "$as_me: updating cache $cache_file" >&6;}
12709      if test ! -f "$cache_file" || test -h "$cache_file"; then
12710	cat confcache >"$cache_file"
12711      else
12712        case $cache_file in #(
12713        */* | ?:*)
12714	  mv -f confcache "$cache_file"$$ &&
12715	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12716        *)
12717	  mv -f confcache "$cache_file" ;;
12718	esac
12719      fi
12720    fi
12721  else
12722    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12723$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12724  fi
12725fi
12726rm -f confcache
12727
12728test "x$prefix" = xNONE && prefix=$ac_default_prefix
12729# Let make expand exec_prefix.
12730test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12731
12732DEFS=-DHAVE_CONFIG_H
12733
12734ac_libobjs=
12735ac_ltlibobjs=
12736U=
12737for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12738  # 1. Remove the extension, and $U if already installed.
12739  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12740  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12741  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12742  #    will be set to the directory where LIBOBJS objects are built.
12743  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12744  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12745done
12746LIBOBJS=$ac_libobjs
12747
12748LTLIBOBJS=$ac_ltlibobjs
12749
12750
12751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12752$as_echo_n "checking that generated files are newer than configure... " >&6; }
12753   if test -n "$am_sleep_pid"; then
12754     # Hide warnings about reused PIDs.
12755     wait $am_sleep_pid 2>/dev/null
12756   fi
12757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12758$as_echo "done" >&6; }
12759 if test -n "$EXEEXT"; then
12760  am__EXEEXT_TRUE=
12761  am__EXEEXT_FALSE='#'
12762else
12763  am__EXEEXT_TRUE='#'
12764  am__EXEEXT_FALSE=
12765fi
12766
12767if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12768  as_fn_error $? "conditional \"AMDEP\" was never defined.
12769Usually this means the macro was only invoked conditionally." "$LINENO" 5
12770fi
12771if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12772  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12773Usually this means the macro was only invoked conditionally." "$LINENO" 5
12774fi
12775
12776: "${CONFIG_STATUS=./config.status}"
12777ac_write_fail=0
12778ac_clean_files_save=$ac_clean_files
12779ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12780{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12781$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12782as_write_fail=0
12783cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12784#! $SHELL
12785# Generated by $as_me.
12786# Run this file to recreate the current configuration.
12787# Compiler output produced by configure, useful for debugging
12788# configure, is in config.log if it exists.
12789
12790debug=false
12791ac_cs_recheck=false
12792ac_cs_silent=false
12793
12794SHELL=\${CONFIG_SHELL-$SHELL}
12795export SHELL
12796_ASEOF
12797cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12798## -------------------- ##
12799## M4sh Initialization. ##
12800## -------------------- ##
12801
12802# Be more Bourne compatible
12803DUALCASE=1; export DUALCASE # for MKS sh
12804if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12805  emulate sh
12806  NULLCMD=:
12807  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12808  # is contrary to our usage.  Disable this feature.
12809  alias -g '${1+"$@"}'='"$@"'
12810  setopt NO_GLOB_SUBST
12811else
12812  case `(set -o) 2>/dev/null` in #(
12813  *posix*) :
12814    set -o posix ;; #(
12815  *) :
12816     ;;
12817esac
12818fi
12819
12820
12821as_nl='
12822'
12823export as_nl
12824# Printing a long string crashes Solaris 7 /usr/bin/printf.
12825as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12826as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12827as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12828# Prefer a ksh shell builtin over an external printf program on Solaris,
12829# but without wasting forks for bash or zsh.
12830if test -z "$BASH_VERSION$ZSH_VERSION" \
12831    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12832  as_echo='print -r --'
12833  as_echo_n='print -rn --'
12834elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12835  as_echo='printf %s\n'
12836  as_echo_n='printf %s'
12837else
12838  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12839    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12840    as_echo_n='/usr/ucb/echo -n'
12841  else
12842    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12843    as_echo_n_body='eval
12844      arg=$1;
12845      case $arg in #(
12846      *"$as_nl"*)
12847	expr "X$arg" : "X\\(.*\\)$as_nl";
12848	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12849      esac;
12850      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12851    '
12852    export as_echo_n_body
12853    as_echo_n='sh -c $as_echo_n_body as_echo'
12854  fi
12855  export as_echo_body
12856  as_echo='sh -c $as_echo_body as_echo'
12857fi
12858
12859# The user is always right.
12860if test "${PATH_SEPARATOR+set}" != set; then
12861  PATH_SEPARATOR=:
12862  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12863    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12864      PATH_SEPARATOR=';'
12865  }
12866fi
12867
12868
12869# IFS
12870# We need space, tab and new line, in precisely that order.  Quoting is
12871# there to prevent editors from complaining about space-tab.
12872# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12873# splitting by setting IFS to empty value.)
12874IFS=" ""	$as_nl"
12875
12876# Find who we are.  Look in the path if we contain no directory separator.
12877as_myself=
12878case $0 in #((
12879  *[\\/]* ) as_myself=$0 ;;
12880  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881for as_dir in $PATH
12882do
12883  IFS=$as_save_IFS
12884  test -z "$as_dir" && as_dir=.
12885    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12886  done
12887IFS=$as_save_IFS
12888
12889     ;;
12890esac
12891# We did not find ourselves, most probably we were run as `sh COMMAND'
12892# in which case we are not to be found in the path.
12893if test "x$as_myself" = x; then
12894  as_myself=$0
12895fi
12896if test ! -f "$as_myself"; then
12897  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12898  exit 1
12899fi
12900
12901# Unset variables that we do not need and which cause bugs (e.g. in
12902# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12903# suppresses any "Segmentation fault" message there.  '((' could
12904# trigger a bug in pdksh 5.2.14.
12905for as_var in BASH_ENV ENV MAIL MAILPATH
12906do eval test x\${$as_var+set} = xset \
12907  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12908done
12909PS1='$ '
12910PS2='> '
12911PS4='+ '
12912
12913# NLS nuisances.
12914LC_ALL=C
12915export LC_ALL
12916LANGUAGE=C
12917export LANGUAGE
12918
12919# CDPATH.
12920(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12921
12922
12923# as_fn_error STATUS ERROR [LINENO LOG_FD]
12924# ----------------------------------------
12925# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12926# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12927# script with STATUS, using 1 if that was 0.
12928as_fn_error ()
12929{
12930  as_status=$1; test $as_status -eq 0 && as_status=1
12931  if test "$4"; then
12932    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12933    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12934  fi
12935  $as_echo "$as_me: error: $2" >&2
12936  as_fn_exit $as_status
12937} # as_fn_error
12938
12939
12940# as_fn_set_status STATUS
12941# -----------------------
12942# Set $? to STATUS, without forking.
12943as_fn_set_status ()
12944{
12945  return $1
12946} # as_fn_set_status
12947
12948# as_fn_exit STATUS
12949# -----------------
12950# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12951as_fn_exit ()
12952{
12953  set +e
12954  as_fn_set_status $1
12955  exit $1
12956} # as_fn_exit
12957
12958# as_fn_unset VAR
12959# ---------------
12960# Portably unset VAR.
12961as_fn_unset ()
12962{
12963  { eval $1=; unset $1;}
12964}
12965as_unset=as_fn_unset
12966# as_fn_append VAR VALUE
12967# ----------------------
12968# Append the text in VALUE to the end of the definition contained in VAR. Take
12969# advantage of any shell optimizations that allow amortized linear growth over
12970# repeated appends, instead of the typical quadratic growth present in naive
12971# implementations.
12972if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12973  eval 'as_fn_append ()
12974  {
12975    eval $1+=\$2
12976  }'
12977else
12978  as_fn_append ()
12979  {
12980    eval $1=\$$1\$2
12981  }
12982fi # as_fn_append
12983
12984# as_fn_arith ARG...
12985# ------------------
12986# Perform arithmetic evaluation on the ARGs, and store the result in the
12987# global $as_val. Take advantage of shells that can avoid forks. The arguments
12988# must be portable across $(()) and expr.
12989if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12990  eval 'as_fn_arith ()
12991  {
12992    as_val=$(( $* ))
12993  }'
12994else
12995  as_fn_arith ()
12996  {
12997    as_val=`expr "$@" || test $? -eq 1`
12998  }
12999fi # as_fn_arith
13000
13001
13002if expr a : '\(a\)' >/dev/null 2>&1 &&
13003   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13004  as_expr=expr
13005else
13006  as_expr=false
13007fi
13008
13009if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13010  as_basename=basename
13011else
13012  as_basename=false
13013fi
13014
13015if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13016  as_dirname=dirname
13017else
13018  as_dirname=false
13019fi
13020
13021as_me=`$as_basename -- "$0" ||
13022$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13023	 X"$0" : 'X\(//\)$' \| \
13024	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13025$as_echo X/"$0" |
13026    sed '/^.*\/\([^/][^/]*\)\/*$/{
13027	    s//\1/
13028	    q
13029	  }
13030	  /^X\/\(\/\/\)$/{
13031	    s//\1/
13032	    q
13033	  }
13034	  /^X\/\(\/\).*/{
13035	    s//\1/
13036	    q
13037	  }
13038	  s/.*/./; q'`
13039
13040# Avoid depending upon Character Ranges.
13041as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13042as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13043as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13044as_cr_digits='0123456789'
13045as_cr_alnum=$as_cr_Letters$as_cr_digits
13046
13047ECHO_C= ECHO_N= ECHO_T=
13048case `echo -n x` in #(((((
13049-n*)
13050  case `echo 'xy\c'` in
13051  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13052  xy)  ECHO_C='\c';;
13053  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13054       ECHO_T='	';;
13055  esac;;
13056*)
13057  ECHO_N='-n';;
13058esac
13059
13060rm -f conf$$ conf$$.exe conf$$.file
13061if test -d conf$$.dir; then
13062  rm -f conf$$.dir/conf$$.file
13063else
13064  rm -f conf$$.dir
13065  mkdir conf$$.dir 2>/dev/null
13066fi
13067if (echo >conf$$.file) 2>/dev/null; then
13068  if ln -s conf$$.file conf$$ 2>/dev/null; then
13069    as_ln_s='ln -s'
13070    # ... but there are two gotchas:
13071    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13072    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13073    # In both cases, we have to default to `cp -pR'.
13074    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13075      as_ln_s='cp -pR'
13076  elif ln conf$$.file conf$$ 2>/dev/null; then
13077    as_ln_s=ln
13078  else
13079    as_ln_s='cp -pR'
13080  fi
13081else
13082  as_ln_s='cp -pR'
13083fi
13084rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13085rmdir conf$$.dir 2>/dev/null
13086
13087
13088# as_fn_mkdir_p
13089# -------------
13090# Create "$as_dir" as a directory, including parents if necessary.
13091as_fn_mkdir_p ()
13092{
13093
13094  case $as_dir in #(
13095  -*) as_dir=./$as_dir;;
13096  esac
13097  test -d "$as_dir" || eval $as_mkdir_p || {
13098    as_dirs=
13099    while :; do
13100      case $as_dir in #(
13101      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13102      *) as_qdir=$as_dir;;
13103      esac
13104      as_dirs="'$as_qdir' $as_dirs"
13105      as_dir=`$as_dirname -- "$as_dir" ||
13106$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13107	 X"$as_dir" : 'X\(//\)[^/]' \| \
13108	 X"$as_dir" : 'X\(//\)$' \| \
13109	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13110$as_echo X"$as_dir" |
13111    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13112	    s//\1/
13113	    q
13114	  }
13115	  /^X\(\/\/\)[^/].*/{
13116	    s//\1/
13117	    q
13118	  }
13119	  /^X\(\/\/\)$/{
13120	    s//\1/
13121	    q
13122	  }
13123	  /^X\(\/\).*/{
13124	    s//\1/
13125	    q
13126	  }
13127	  s/.*/./; q'`
13128      test -d "$as_dir" && break
13129    done
13130    test -z "$as_dirs" || eval "mkdir $as_dirs"
13131  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13132
13133
13134} # as_fn_mkdir_p
13135if mkdir -p . 2>/dev/null; then
13136  as_mkdir_p='mkdir -p "$as_dir"'
13137else
13138  test -d ./-p && rmdir ./-p
13139  as_mkdir_p=false
13140fi
13141
13142
13143# as_fn_executable_p FILE
13144# -----------------------
13145# Test if FILE is an executable regular file.
13146as_fn_executable_p ()
13147{
13148  test -f "$1" && test -x "$1"
13149} # as_fn_executable_p
13150as_test_x='test -x'
13151as_executable_p=as_fn_executable_p
13152
13153# Sed expression to map a string onto a valid CPP name.
13154as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13155
13156# Sed expression to map a string onto a valid variable name.
13157as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13158
13159
13160exec 6>&1
13161## ----------------------------------- ##
13162## Main body of $CONFIG_STATUS script. ##
13163## ----------------------------------- ##
13164_ASEOF
13165test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13166
13167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13168# Save the log message, to keep $0 and so on meaningful, and to
13169# report actual input values of CONFIG_FILES etc. instead of their
13170# values after options handling.
13171ac_log="
13172This file was extended by potrace $as_me 1.14, which was
13173generated by GNU Autoconf 2.69.  Invocation command line was
13174
13175  CONFIG_FILES    = $CONFIG_FILES
13176  CONFIG_HEADERS  = $CONFIG_HEADERS
13177  CONFIG_LINKS    = $CONFIG_LINKS
13178  CONFIG_COMMANDS = $CONFIG_COMMANDS
13179  $ $0 $@
13180
13181on `(hostname || uname -n) 2>/dev/null | sed 1q`
13182"
13183
13184_ACEOF
13185
13186case $ac_config_files in *"
13187"*) set x $ac_config_files; shift; ac_config_files=$*;;
13188esac
13189
13190case $ac_config_headers in *"
13191"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13192esac
13193
13194
13195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13196# Files that config.status was made for.
13197config_files="$ac_config_files"
13198config_headers="$ac_config_headers"
13199config_commands="$ac_config_commands"
13200
13201_ACEOF
13202
13203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13204ac_cs_usage="\
13205\`$as_me' instantiates files and other configuration actions
13206from templates according to the current configuration.  Unless the files
13207and actions are specified as TAGs, all are instantiated by default.
13208
13209Usage: $0 [OPTION]... [TAG]...
13210
13211  -h, --help       print this help, then exit
13212  -V, --version    print version number and configuration settings, then exit
13213      --config     print configuration, then exit
13214  -q, --quiet, --silent
13215                   do not print progress messages
13216  -d, --debug      don't remove temporary files
13217      --recheck    update $as_me by reconfiguring in the same conditions
13218      --file=FILE[:TEMPLATE]
13219                   instantiate the configuration file FILE
13220      --header=FILE[:TEMPLATE]
13221                   instantiate the configuration header FILE
13222
13223Configuration files:
13224$config_files
13225
13226Configuration headers:
13227$config_headers
13228
13229Configuration commands:
13230$config_commands
13231
13232Report bugs to <selinger at users.sourceforge.net>."
13233
13234_ACEOF
13235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13236ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13237ac_cs_version="\\
13238potrace config.status 1.14
13239configured by $0, generated by GNU Autoconf 2.69,
13240  with options \\"\$ac_cs_config\\"
13241
13242Copyright (C) 2012 Free Software Foundation, Inc.
13243This config.status script is free software; the Free Software Foundation
13244gives unlimited permission to copy, distribute and modify it."
13245
13246ac_pwd='$ac_pwd'
13247srcdir='$srcdir'
13248INSTALL='$INSTALL'
13249MKDIR_P='$MKDIR_P'
13250AWK='$AWK'
13251test -n "\$AWK" || AWK=awk
13252_ACEOF
13253
13254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13255# The default lists apply if the user does not specify any file.
13256ac_need_defaults=:
13257while test $# != 0
13258do
13259  case $1 in
13260  --*=?*)
13261    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13262    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13263    ac_shift=:
13264    ;;
13265  --*=)
13266    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13267    ac_optarg=
13268    ac_shift=:
13269    ;;
13270  *)
13271    ac_option=$1
13272    ac_optarg=$2
13273    ac_shift=shift
13274    ;;
13275  esac
13276
13277  case $ac_option in
13278  # Handling of the options.
13279  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13280    ac_cs_recheck=: ;;
13281  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13282    $as_echo "$ac_cs_version"; exit ;;
13283  --config | --confi | --conf | --con | --co | --c )
13284    $as_echo "$ac_cs_config"; exit ;;
13285  --debug | --debu | --deb | --de | --d | -d )
13286    debug=: ;;
13287  --file | --fil | --fi | --f )
13288    $ac_shift
13289    case $ac_optarg in
13290    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13291    '') as_fn_error $? "missing file argument" ;;
13292    esac
13293    as_fn_append CONFIG_FILES " '$ac_optarg'"
13294    ac_need_defaults=false;;
13295  --header | --heade | --head | --hea )
13296    $ac_shift
13297    case $ac_optarg in
13298    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13299    esac
13300    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13301    ac_need_defaults=false;;
13302  --he | --h)
13303    # Conflict between --help and --header
13304    as_fn_error $? "ambiguous option: \`$1'
13305Try \`$0 --help' for more information.";;
13306  --help | --hel | -h )
13307    $as_echo "$ac_cs_usage"; exit ;;
13308  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13309  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13310    ac_cs_silent=: ;;
13311
13312  # This is an error.
13313  -*) as_fn_error $? "unrecognized option: \`$1'
13314Try \`$0 --help' for more information." ;;
13315
13316  *) as_fn_append ac_config_targets " $1"
13317     ac_need_defaults=false ;;
13318
13319  esac
13320  shift
13321done
13322
13323ac_configure_extra_args=
13324
13325if $ac_cs_silent; then
13326  exec 6>/dev/null
13327  ac_configure_extra_args="$ac_configure_extra_args --silent"
13328fi
13329
13330_ACEOF
13331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13332if \$ac_cs_recheck; then
13333  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13334  shift
13335  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13336  CONFIG_SHELL='$SHELL'
13337  export CONFIG_SHELL
13338  exec "\$@"
13339fi
13340
13341_ACEOF
13342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13343exec 5>>config.log
13344{
13345  echo
13346  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13347## Running $as_me. ##
13348_ASBOX
13349  $as_echo "$ac_log"
13350} >&5
13351
13352_ACEOF
13353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13354#
13355# INIT-COMMANDS
13356#
13357AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13358
13359
13360# The HP-UX ksh and POSIX shell print the target directory to stdout
13361# if CDPATH is set.
13362(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13363
13364sed_quote_subst='$sed_quote_subst'
13365double_quote_subst='$double_quote_subst'
13366delay_variable_subst='$delay_variable_subst'
13367AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13368DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13369OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13370macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13371macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13372enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13373enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13374pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13375enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13376shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13377SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13378ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13379PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13380host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13381host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13382host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13383build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13384build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13385build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13386SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13387Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13388GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13389EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13390FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13391LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13392NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13393LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13394max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13395ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13396exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13397lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13398lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13399lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13400lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13401lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13402reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13403reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13404deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13405file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13406file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13407want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13408sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13409AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13410AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13411archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13412STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13413RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13414old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13415old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13416old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13417lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13418CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13419CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13420compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13421GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13422lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13423lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13424lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13425lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13426lt_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"`'
13427lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13428nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13429lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13430lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13431objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13432MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13433lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13434lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13435lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13436lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13437lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13438need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13439MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13440DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13441NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13442LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13443OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13444OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13445libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13446shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13447extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13448archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13449enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13450export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13451whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13452compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13453old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13454old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13455archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13456archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13457module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13458module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13459with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13460allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13461no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13462hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13463hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13464hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13465hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13466hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13467hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13468hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13469inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13470link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13471always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13472export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13473exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13474include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13475prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13476postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13477file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13478variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13479need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13480need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13481version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13482runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13483shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13484shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13485libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13486library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13487soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13488install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13489postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13490postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13491finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13492finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13493hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13494sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13495configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13496configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13497hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13498enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13499enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13500enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13501old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13502striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13503
13504LTCC='$LTCC'
13505LTCFLAGS='$LTCFLAGS'
13506compiler='$compiler_DEFAULT'
13507
13508# A function that is used when there is no print builtin or printf.
13509func_fallback_echo ()
13510{
13511  eval 'cat <<_LTECHO_EOF
13512\$1
13513_LTECHO_EOF'
13514}
13515
13516# Quote evaled strings.
13517for var in AS \
13518DLLTOOL \
13519OBJDUMP \
13520SHELL \
13521ECHO \
13522PATH_SEPARATOR \
13523SED \
13524GREP \
13525EGREP \
13526FGREP \
13527LD \
13528NM \
13529LN_S \
13530lt_SP2NL \
13531lt_NL2SP \
13532reload_flag \
13533deplibs_check_method \
13534file_magic_cmd \
13535file_magic_glob \
13536want_nocaseglob \
13537sharedlib_from_linklib_cmd \
13538AR \
13539AR_FLAGS \
13540archiver_list_spec \
13541STRIP \
13542RANLIB \
13543CC \
13544CFLAGS \
13545compiler \
13546lt_cv_sys_global_symbol_pipe \
13547lt_cv_sys_global_symbol_to_cdecl \
13548lt_cv_sys_global_symbol_to_import \
13549lt_cv_sys_global_symbol_to_c_name_address \
13550lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13551lt_cv_nm_interface \
13552nm_file_list_spec \
13553lt_cv_truncate_bin \
13554lt_prog_compiler_no_builtin_flag \
13555lt_prog_compiler_pic \
13556lt_prog_compiler_wl \
13557lt_prog_compiler_static \
13558lt_cv_prog_compiler_c_o \
13559need_locks \
13560MANIFEST_TOOL \
13561DSYMUTIL \
13562NMEDIT \
13563LIPO \
13564OTOOL \
13565OTOOL64 \
13566shrext_cmds \
13567export_dynamic_flag_spec \
13568whole_archive_flag_spec \
13569compiler_needs_object \
13570with_gnu_ld \
13571allow_undefined_flag \
13572no_undefined_flag \
13573hardcode_libdir_flag_spec \
13574hardcode_libdir_separator \
13575exclude_expsyms \
13576include_expsyms \
13577file_list_spec \
13578variables_saved_for_relink \
13579libname_spec \
13580library_names_spec \
13581soname_spec \
13582install_override_mode \
13583finish_eval \
13584old_striplib \
13585striplib; do
13586    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13587    *[\\\\\\\`\\"\\\$]*)
13588      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13589      ;;
13590    *)
13591      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13592      ;;
13593    esac
13594done
13595
13596# Double-quote double-evaled strings.
13597for var in reload_cmds \
13598old_postinstall_cmds \
13599old_postuninstall_cmds \
13600old_archive_cmds \
13601extract_expsyms_cmds \
13602old_archive_from_new_cmds \
13603old_archive_from_expsyms_cmds \
13604archive_cmds \
13605archive_expsym_cmds \
13606module_cmds \
13607module_expsym_cmds \
13608export_symbols_cmds \
13609prelink_cmds \
13610postlink_cmds \
13611postinstall_cmds \
13612postuninstall_cmds \
13613finish_cmds \
13614sys_lib_search_path_spec \
13615configure_time_dlsearch_path \
13616configure_time_lt_sys_library_path; do
13617    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13618    *[\\\\\\\`\\"\\\$]*)
13619      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13620      ;;
13621    *)
13622      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13623      ;;
13624    esac
13625done
13626
13627ac_aux_dir='$ac_aux_dir'
13628
13629# See if we are running on zsh, and set the options that allow our
13630# commands through without removal of \ escapes INIT.
13631if test -n "\${ZSH_VERSION+set}"; then
13632   setopt NO_GLOB_SUBST
13633fi
13634
13635
13636    PACKAGE='$PACKAGE'
13637    VERSION='$VERSION'
13638    RM='$RM'
13639    ofile='$ofile'
13640
13641
13642
13643
13644_ACEOF
13645
13646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13647
13648# Handling of arguments.
13649for ac_config_target in $ac_config_targets
13650do
13651  case $ac_config_target in
13652    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13653    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13654    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13655    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13656    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13657    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13658    "check/Makefile") CONFIG_FILES="$CONFIG_FILES check/Makefile" ;;
13659    "doc/potrace.1") CONFIG_FILES="$CONFIG_FILES doc/potrace.1" ;;
13660    "doc/mkbitmap.1") CONFIG_FILES="$CONFIG_FILES doc/mkbitmap.1" ;;
13661
13662  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13663  esac
13664done
13665
13666
13667# If the user did not use the arguments to specify the items to instantiate,
13668# then the envvar interface is used.  Set only those that are not.
13669# We use the long form for the default assignment because of an extremely
13670# bizarre bug on SunOS 4.1.3.
13671if $ac_need_defaults; then
13672  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13673  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13674  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13675fi
13676
13677# Have a temporary directory for convenience.  Make it in the build tree
13678# simply because there is no reason against having it here, and in addition,
13679# creating and moving files from /tmp can sometimes cause problems.
13680# Hook for its removal unless debugging.
13681# Note that there is a small window in which the directory will not be cleaned:
13682# after its creation but before its name has been assigned to `$tmp'.
13683$debug ||
13684{
13685  tmp= ac_tmp=
13686  trap 'exit_status=$?
13687  : "${ac_tmp:=$tmp}"
13688  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13689' 0
13690  trap 'as_fn_exit 1' 1 2 13 15
13691}
13692# Create a (secure) tmp directory for tmp files.
13693
13694{
13695  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13696  test -d "$tmp"
13697}  ||
13698{
13699  tmp=./conf$$-$RANDOM
13700  (umask 077 && mkdir "$tmp")
13701} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13702ac_tmp=$tmp
13703
13704# Set up the scripts for CONFIG_FILES section.
13705# No need to generate them if there are no CONFIG_FILES.
13706# This happens for instance with `./config.status config.h'.
13707if test -n "$CONFIG_FILES"; then
13708
13709
13710ac_cr=`echo X | tr X '\015'`
13711# On cygwin, bash can eat \r inside `` if the user requested igncr.
13712# But we know of no other shell where ac_cr would be empty at this
13713# point, so we can use a bashism as a fallback.
13714if test "x$ac_cr" = x; then
13715  eval ac_cr=\$\'\\r\'
13716fi
13717ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13718if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13719  ac_cs_awk_cr='\\r'
13720else
13721  ac_cs_awk_cr=$ac_cr
13722fi
13723
13724echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13725_ACEOF
13726
13727
13728{
13729  echo "cat >conf$$subs.awk <<_ACEOF" &&
13730  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13731  echo "_ACEOF"
13732} >conf$$subs.sh ||
13733  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13734ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13735ac_delim='%!_!# '
13736for ac_last_try in false false false false false :; do
13737  . ./conf$$subs.sh ||
13738    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13739
13740  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13741  if test $ac_delim_n = $ac_delim_num; then
13742    break
13743  elif $ac_last_try; then
13744    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13745  else
13746    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13747  fi
13748done
13749rm -f conf$$subs.sh
13750
13751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13752cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13753_ACEOF
13754sed -n '
13755h
13756s/^/S["/; s/!.*/"]=/
13757p
13758g
13759s/^[^!]*!//
13760:repl
13761t repl
13762s/'"$ac_delim"'$//
13763t delim
13764:nl
13765h
13766s/\(.\{148\}\)..*/\1/
13767t more1
13768s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13769p
13770n
13771b repl
13772:more1
13773s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13774p
13775g
13776s/.\{148\}//
13777t nl
13778:delim
13779h
13780s/\(.\{148\}\)..*/\1/
13781t more2
13782s/["\\]/\\&/g; s/^/"/; s/$/"/
13783p
13784b
13785:more2
13786s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13787p
13788g
13789s/.\{148\}//
13790t delim
13791' <conf$$subs.awk | sed '
13792/^[^""]/{
13793  N
13794  s/\n//
13795}
13796' >>$CONFIG_STATUS || ac_write_fail=1
13797rm -f conf$$subs.awk
13798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13799_ACAWK
13800cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13801  for (key in S) S_is_set[key] = 1
13802  FS = ""
13803
13804}
13805{
13806  line = $ 0
13807  nfields = split(line, field, "@")
13808  substed = 0
13809  len = length(field[1])
13810  for (i = 2; i < nfields; i++) {
13811    key = field[i]
13812    keylen = length(key)
13813    if (S_is_set[key]) {
13814      value = S[key]
13815      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13816      len += length(value) + length(field[++i])
13817      substed = 1
13818    } else
13819      len += 1 + keylen
13820  }
13821
13822  print line
13823}
13824
13825_ACAWK
13826_ACEOF
13827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13828if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13829  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13830else
13831  cat
13832fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13833  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13834_ACEOF
13835
13836# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13837# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13838# trailing colons and then remove the whole line if VPATH becomes empty
13839# (actually we leave an empty line to preserve line numbers).
13840if test "x$srcdir" = x.; then
13841  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13842h
13843s///
13844s/^/:/
13845s/[	 ]*$/:/
13846s/:\$(srcdir):/:/g
13847s/:\${srcdir}:/:/g
13848s/:@srcdir@:/:/g
13849s/^:*//
13850s/:*$//
13851x
13852s/\(=[	 ]*\).*/\1/
13853G
13854s/\n//
13855s/^[^=]*=[	 ]*$//
13856}'
13857fi
13858
13859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13860fi # test -n "$CONFIG_FILES"
13861
13862# Set up the scripts for CONFIG_HEADERS section.
13863# No need to generate them if there are no CONFIG_HEADERS.
13864# This happens for instance with `./config.status Makefile'.
13865if test -n "$CONFIG_HEADERS"; then
13866cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13867BEGIN {
13868_ACEOF
13869
13870# Transform confdefs.h into an awk script `defines.awk', embedded as
13871# here-document in config.status, that substitutes the proper values into
13872# config.h.in to produce config.h.
13873
13874# Create a delimiter string that does not exist in confdefs.h, to ease
13875# handling of long lines.
13876ac_delim='%!_!# '
13877for ac_last_try in false false :; do
13878  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13879  if test -z "$ac_tt"; then
13880    break
13881  elif $ac_last_try; then
13882    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13883  else
13884    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13885  fi
13886done
13887
13888# For the awk script, D is an array of macro values keyed by name,
13889# likewise P contains macro parameters if any.  Preserve backslash
13890# newline sequences.
13891
13892ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13893sed -n '
13894s/.\{148\}/&'"$ac_delim"'/g
13895t rset
13896:rset
13897s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13898t def
13899d
13900:def
13901s/\\$//
13902t bsnl
13903s/["\\]/\\&/g
13904s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13905D["\1"]=" \3"/p
13906s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13907d
13908:bsnl
13909s/["\\]/\\&/g
13910s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13911D["\1"]=" \3\\\\\\n"\\/p
13912t cont
13913s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13914t cont
13915d
13916:cont
13917n
13918s/.\{148\}/&'"$ac_delim"'/g
13919t clear
13920:clear
13921s/\\$//
13922t bsnlc
13923s/["\\]/\\&/g; s/^/"/; s/$/"/p
13924d
13925:bsnlc
13926s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13927b cont
13928' <confdefs.h | sed '
13929s/'"$ac_delim"'/"\\\
13930"/g' >>$CONFIG_STATUS || ac_write_fail=1
13931
13932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13933  for (key in D) D_is_set[key] = 1
13934  FS = ""
13935}
13936/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13937  line = \$ 0
13938  split(line, arg, " ")
13939  if (arg[1] == "#") {
13940    defundef = arg[2]
13941    mac1 = arg[3]
13942  } else {
13943    defundef = substr(arg[1], 2)
13944    mac1 = arg[2]
13945  }
13946  split(mac1, mac2, "(") #)
13947  macro = mac2[1]
13948  prefix = substr(line, 1, index(line, defundef) - 1)
13949  if (D_is_set[macro]) {
13950    # Preserve the white space surrounding the "#".
13951    print prefix "define", macro P[macro] D[macro]
13952    next
13953  } else {
13954    # Replace #undef with comments.  This is necessary, for example,
13955    # in the case of _POSIX_SOURCE, which is predefined and required
13956    # on some systems where configure will not decide to define it.
13957    if (defundef == "undef") {
13958      print "/*", prefix defundef, macro, "*/"
13959      next
13960    }
13961  }
13962}
13963{ print }
13964_ACAWK
13965_ACEOF
13966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13967  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13968fi # test -n "$CONFIG_HEADERS"
13969
13970
13971eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13972shift
13973for ac_tag
13974do
13975  case $ac_tag in
13976  :[FHLC]) ac_mode=$ac_tag; continue;;
13977  esac
13978  case $ac_mode$ac_tag in
13979  :[FHL]*:*);;
13980  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13981  :[FH]-) ac_tag=-:-;;
13982  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13983  esac
13984  ac_save_IFS=$IFS
13985  IFS=:
13986  set x $ac_tag
13987  IFS=$ac_save_IFS
13988  shift
13989  ac_file=$1
13990  shift
13991
13992  case $ac_mode in
13993  :L) ac_source=$1;;
13994  :[FH])
13995    ac_file_inputs=
13996    for ac_f
13997    do
13998      case $ac_f in
13999      -) ac_f="$ac_tmp/stdin";;
14000      *) # Look for the file first in the build tree, then in the source tree
14001	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14002	 # because $ac_f cannot contain `:'.
14003	 test -f "$ac_f" ||
14004	   case $ac_f in
14005	   [\\/$]*) false;;
14006	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14007	   esac ||
14008	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14009      esac
14010      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14011      as_fn_append ac_file_inputs " '$ac_f'"
14012    done
14013
14014    # Let's still pretend it is `configure' which instantiates (i.e., don't
14015    # use $as_me), people would be surprised to read:
14016    #    /* config.h.  Generated by config.status.  */
14017    configure_input='Generated from '`
14018	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14019	`' by configure.'
14020    if test x"$ac_file" != x-; then
14021      configure_input="$ac_file.  $configure_input"
14022      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14023$as_echo "$as_me: creating $ac_file" >&6;}
14024    fi
14025    # Neutralize special characters interpreted by sed in replacement strings.
14026    case $configure_input in #(
14027    *\&* | *\|* | *\\* )
14028       ac_sed_conf_input=`$as_echo "$configure_input" |
14029       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14030    *) ac_sed_conf_input=$configure_input;;
14031    esac
14032
14033    case $ac_tag in
14034    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14035      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14036    esac
14037    ;;
14038  esac
14039
14040  ac_dir=`$as_dirname -- "$ac_file" ||
14041$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14042	 X"$ac_file" : 'X\(//\)[^/]' \| \
14043	 X"$ac_file" : 'X\(//\)$' \| \
14044	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14045$as_echo X"$ac_file" |
14046    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14047	    s//\1/
14048	    q
14049	  }
14050	  /^X\(\/\/\)[^/].*/{
14051	    s//\1/
14052	    q
14053	  }
14054	  /^X\(\/\/\)$/{
14055	    s//\1/
14056	    q
14057	  }
14058	  /^X\(\/\).*/{
14059	    s//\1/
14060	    q
14061	  }
14062	  s/.*/./; q'`
14063  as_dir="$ac_dir"; as_fn_mkdir_p
14064  ac_builddir=.
14065
14066case "$ac_dir" in
14067.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14068*)
14069  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14070  # A ".." for each directory in $ac_dir_suffix.
14071  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14072  case $ac_top_builddir_sub in
14073  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14074  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14075  esac ;;
14076esac
14077ac_abs_top_builddir=$ac_pwd
14078ac_abs_builddir=$ac_pwd$ac_dir_suffix
14079# for backward compatibility:
14080ac_top_builddir=$ac_top_build_prefix
14081
14082case $srcdir in
14083  .)  # We are building in place.
14084    ac_srcdir=.
14085    ac_top_srcdir=$ac_top_builddir_sub
14086    ac_abs_top_srcdir=$ac_pwd ;;
14087  [\\/]* | ?:[\\/]* )  # Absolute name.
14088    ac_srcdir=$srcdir$ac_dir_suffix;
14089    ac_top_srcdir=$srcdir
14090    ac_abs_top_srcdir=$srcdir ;;
14091  *) # Relative name.
14092    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14093    ac_top_srcdir=$ac_top_build_prefix$srcdir
14094    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14095esac
14096ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14097
14098
14099  case $ac_mode in
14100  :F)
14101  #
14102  # CONFIG_FILE
14103  #
14104
14105  case $INSTALL in
14106  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14107  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14108  esac
14109  ac_MKDIR_P=$MKDIR_P
14110  case $MKDIR_P in
14111  [\\/$]* | ?:[\\/]* ) ;;
14112  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14113  esac
14114_ACEOF
14115
14116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14117# If the template does not know about datarootdir, expand it.
14118# FIXME: This hack should be removed a few years after 2.60.
14119ac_datarootdir_hack=; ac_datarootdir_seen=
14120ac_sed_dataroot='
14121/datarootdir/ {
14122  p
14123  q
14124}
14125/@datadir@/p
14126/@docdir@/p
14127/@infodir@/p
14128/@localedir@/p
14129/@mandir@/p'
14130case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14131*datarootdir*) ac_datarootdir_seen=yes;;
14132*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14133  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14134$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14135_ACEOF
14136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14137  ac_datarootdir_hack='
14138  s&@datadir@&$datadir&g
14139  s&@docdir@&$docdir&g
14140  s&@infodir@&$infodir&g
14141  s&@localedir@&$localedir&g
14142  s&@mandir@&$mandir&g
14143  s&\\\${datarootdir}&$datarootdir&g' ;;
14144esac
14145_ACEOF
14146
14147# Neutralize VPATH when `$srcdir' = `.'.
14148# Shell code in configure.ac might set extrasub.
14149# FIXME: do we really want to maintain this feature?
14150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14151ac_sed_extra="$ac_vpsub
14152$extrasub
14153_ACEOF
14154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14155:t
14156/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14157s|@configure_input@|$ac_sed_conf_input|;t t
14158s&@top_builddir@&$ac_top_builddir_sub&;t t
14159s&@top_build_prefix@&$ac_top_build_prefix&;t t
14160s&@srcdir@&$ac_srcdir&;t t
14161s&@abs_srcdir@&$ac_abs_srcdir&;t t
14162s&@top_srcdir@&$ac_top_srcdir&;t t
14163s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14164s&@builddir@&$ac_builddir&;t t
14165s&@abs_builddir@&$ac_abs_builddir&;t t
14166s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14167s&@INSTALL@&$ac_INSTALL&;t t
14168s&@MKDIR_P@&$ac_MKDIR_P&;t t
14169$ac_datarootdir_hack
14170"
14171eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14172  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14173
14174test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14175  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14176  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14177      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14178  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14179which seems to be undefined.  Please make sure it is defined" >&5
14180$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14181which seems to be undefined.  Please make sure it is defined" >&2;}
14182
14183  rm -f "$ac_tmp/stdin"
14184  case $ac_file in
14185  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14186  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14187  esac \
14188  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14189 ;;
14190  :H)
14191  #
14192  # CONFIG_HEADER
14193  #
14194  if test x"$ac_file" != x-; then
14195    {
14196      $as_echo "/* $configure_input  */" \
14197      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14198    } >"$ac_tmp/config.h" \
14199      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14200    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14201      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14202$as_echo "$as_me: $ac_file is unchanged" >&6;}
14203    else
14204      rm -f "$ac_file"
14205      mv "$ac_tmp/config.h" "$ac_file" \
14206	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14207    fi
14208  else
14209    $as_echo "/* $configure_input  */" \
14210      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14211      || as_fn_error $? "could not create -" "$LINENO" 5
14212  fi
14213# Compute "$ac_file"'s index in $config_headers.
14214_am_arg="$ac_file"
14215_am_stamp_count=1
14216for _am_header in $config_headers :; do
14217  case $_am_header in
14218    $_am_arg | $_am_arg:* )
14219      break ;;
14220    * )
14221      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14222  esac
14223done
14224echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14225$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14226	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14227	 X"$_am_arg" : 'X\(//\)$' \| \
14228	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14229$as_echo X"$_am_arg" |
14230    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14231	    s//\1/
14232	    q
14233	  }
14234	  /^X\(\/\/\)[^/].*/{
14235	    s//\1/
14236	    q
14237	  }
14238	  /^X\(\/\/\)$/{
14239	    s//\1/
14240	    q
14241	  }
14242	  /^X\(\/\).*/{
14243	    s//\1/
14244	    q
14245	  }
14246	  s/.*/./; q'`/stamp-h$_am_stamp_count
14247 ;;
14248
14249  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14250$as_echo "$as_me: executing $ac_file commands" >&6;}
14251 ;;
14252  esac
14253
14254
14255  case $ac_file$ac_mode in
14256    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14257  # Older Autoconf quotes --file arguments for eval, but not when files
14258  # are listed without --file.  Let's play safe and only enable the eval
14259  # if we detect the quoting.
14260  case $CONFIG_FILES in
14261  *\'*) eval set x "$CONFIG_FILES" ;;
14262  *)   set x $CONFIG_FILES ;;
14263  esac
14264  shift
14265  for mf
14266  do
14267    # Strip MF so we end up with the name of the file.
14268    mf=`echo "$mf" | sed -e 's/:.*$//'`
14269    # Check whether this is an Automake generated Makefile or not.
14270    # We used to match only the files named 'Makefile.in', but
14271    # some people rename them; so instead we look at the file content.
14272    # Grep'ing the first line is not enough: some people post-process
14273    # each Makefile.in and add a new line on top of each file to say so.
14274    # Grep'ing the whole file is not good either: AIX grep has a line
14275    # limit of 2048, but all sed's we know have understand at least 4000.
14276    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14277      dirpart=`$as_dirname -- "$mf" ||
14278$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14279	 X"$mf" : 'X\(//\)[^/]' \| \
14280	 X"$mf" : 'X\(//\)$' \| \
14281	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14282$as_echo X"$mf" |
14283    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14284	    s//\1/
14285	    q
14286	  }
14287	  /^X\(\/\/\)[^/].*/{
14288	    s//\1/
14289	    q
14290	  }
14291	  /^X\(\/\/\)$/{
14292	    s//\1/
14293	    q
14294	  }
14295	  /^X\(\/\).*/{
14296	    s//\1/
14297	    q
14298	  }
14299	  s/.*/./; q'`
14300    else
14301      continue
14302    fi
14303    # Extract the definition of DEPDIR, am__include, and am__quote
14304    # from the Makefile without running 'make'.
14305    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14306    test -z "$DEPDIR" && continue
14307    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14308    test -z "$am__include" && continue
14309    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14310    # Find all dependency output files, they are included files with
14311    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14312    # simplest approach to changing $(DEPDIR) to its actual value in the
14313    # expansion.
14314    for file in `sed -n "
14315      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14316	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14317      # Make sure the directory exists.
14318      test -f "$dirpart/$file" && continue
14319      fdir=`$as_dirname -- "$file" ||
14320$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14321	 X"$file" : 'X\(//\)[^/]' \| \
14322	 X"$file" : 'X\(//\)$' \| \
14323	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14324$as_echo X"$file" |
14325    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14326	    s//\1/
14327	    q
14328	  }
14329	  /^X\(\/\/\)[^/].*/{
14330	    s//\1/
14331	    q
14332	  }
14333	  /^X\(\/\/\)$/{
14334	    s//\1/
14335	    q
14336	  }
14337	  /^X\(\/\).*/{
14338	    s//\1/
14339	    q
14340	  }
14341	  s/.*/./; q'`
14342      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14343      # echo "creating $dirpart/$file"
14344      echo '# dummy' > "$dirpart/$file"
14345    done
14346  done
14347}
14348 ;;
14349    "libtool":C)
14350
14351    # See if we are running on zsh, and set the options that allow our
14352    # commands through without removal of \ escapes.
14353    if test -n "${ZSH_VERSION+set}"; then
14354      setopt NO_GLOB_SUBST
14355    fi
14356
14357    cfgfile=${ofile}T
14358    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14359    $RM "$cfgfile"
14360
14361    cat <<_LT_EOF >> "$cfgfile"
14362#! $SHELL
14363# Generated automatically by $as_me ($PACKAGE) $VERSION
14364# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14365
14366# Provide generalized library-building support services.
14367# Written by Gordon Matzigkeit, 1996
14368
14369# Copyright (C) 2014 Free Software Foundation, Inc.
14370# This is free software; see the source for copying conditions.  There is NO
14371# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14372
14373# GNU Libtool is free software; you can redistribute it and/or modify
14374# it under the terms of the GNU General Public License as published by
14375# the Free Software Foundation; either version 2 of of the License, or
14376# (at your option) any later version.
14377#
14378# As a special exception to the GNU General Public License, if you
14379# distribute this file as part of a program or library that is built
14380# using GNU Libtool, you may include this file under the  same
14381# distribution terms that you use for the rest of that program.
14382#
14383# GNU Libtool is distributed in the hope that it will be useful, but
14384# WITHOUT ANY WARRANTY; without even the implied warranty of
14385# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14386# GNU General Public License for more details.
14387#
14388# You should have received a copy of the GNU General Public License
14389# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14390
14391
14392# The names of the tagged configurations supported by this script.
14393available_tags=''
14394
14395# Configured defaults for sys_lib_dlsearch_path munging.
14396: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14397
14398# ### BEGIN LIBTOOL CONFIG
14399
14400# Assembler program.
14401AS=$lt_AS
14402
14403# DLL creation program.
14404DLLTOOL=$lt_DLLTOOL
14405
14406# Object dumper program.
14407OBJDUMP=$lt_OBJDUMP
14408
14409# Which release of libtool.m4 was used?
14410macro_version=$macro_version
14411macro_revision=$macro_revision
14412
14413# Whether or not to build shared libraries.
14414build_libtool_libs=$enable_shared
14415
14416# Whether or not to build static libraries.
14417build_old_libs=$enable_static
14418
14419# What type of objects to build.
14420pic_mode=$pic_mode
14421
14422# Whether or not to optimize for fast installation.
14423fast_install=$enable_fast_install
14424
14425# Shared archive member basename,for filename based shared library versioning on AIX.
14426shared_archive_member_spec=$shared_archive_member_spec
14427
14428# Shell to use when invoking shell scripts.
14429SHELL=$lt_SHELL
14430
14431# An echo program that protects backslashes.
14432ECHO=$lt_ECHO
14433
14434# The PATH separator for the build system.
14435PATH_SEPARATOR=$lt_PATH_SEPARATOR
14436
14437# The host system.
14438host_alias=$host_alias
14439host=$host
14440host_os=$host_os
14441
14442# The build system.
14443build_alias=$build_alias
14444build=$build
14445build_os=$build_os
14446
14447# A sed program that does not truncate output.
14448SED=$lt_SED
14449
14450# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14451Xsed="\$SED -e 1s/^X//"
14452
14453# A grep program that handles long lines.
14454GREP=$lt_GREP
14455
14456# An ERE matcher.
14457EGREP=$lt_EGREP
14458
14459# A literal string matcher.
14460FGREP=$lt_FGREP
14461
14462# A BSD- or MS-compatible name lister.
14463NM=$lt_NM
14464
14465# Whether we need soft or hard links.
14466LN_S=$lt_LN_S
14467
14468# What is the maximum length of a command?
14469max_cmd_len=$max_cmd_len
14470
14471# Object file suffix (normally "o").
14472objext=$ac_objext
14473
14474# Executable file suffix (normally "").
14475exeext=$exeext
14476
14477# whether the shell understands "unset".
14478lt_unset=$lt_unset
14479
14480# turn spaces into newlines.
14481SP2NL=$lt_lt_SP2NL
14482
14483# turn newlines into spaces.
14484NL2SP=$lt_lt_NL2SP
14485
14486# convert \$build file names to \$host format.
14487to_host_file_cmd=$lt_cv_to_host_file_cmd
14488
14489# convert \$build files to toolchain format.
14490to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14491
14492# Method to check whether dependent libraries are shared objects.
14493deplibs_check_method=$lt_deplibs_check_method
14494
14495# Command to use when deplibs_check_method = "file_magic".
14496file_magic_cmd=$lt_file_magic_cmd
14497
14498# How to find potential files when deplibs_check_method = "file_magic".
14499file_magic_glob=$lt_file_magic_glob
14500
14501# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14502want_nocaseglob=$lt_want_nocaseglob
14503
14504# Command to associate shared and link libraries.
14505sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14506
14507# The archiver.
14508AR=$lt_AR
14509
14510# Flags to create an archive.
14511AR_FLAGS=$lt_AR_FLAGS
14512
14513# How to feed a file listing to the archiver.
14514archiver_list_spec=$lt_archiver_list_spec
14515
14516# A symbol stripping program.
14517STRIP=$lt_STRIP
14518
14519# Commands used to install an old-style archive.
14520RANLIB=$lt_RANLIB
14521old_postinstall_cmds=$lt_old_postinstall_cmds
14522old_postuninstall_cmds=$lt_old_postuninstall_cmds
14523
14524# Whether to use a lock for old archive extraction.
14525lock_old_archive_extraction=$lock_old_archive_extraction
14526
14527# A C compiler.
14528LTCC=$lt_CC
14529
14530# LTCC compiler flags.
14531LTCFLAGS=$lt_CFLAGS
14532
14533# Take the output of nm and produce a listing of raw symbols and C names.
14534global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14535
14536# Transform the output of nm in a proper C declaration.
14537global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14538
14539# Transform the output of nm into a list of symbols to manually relocate.
14540global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14541
14542# Transform the output of nm in a C name address pair.
14543global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14544
14545# Transform the output of nm in a C name address pair when lib prefix is needed.
14546global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14547
14548# The name lister interface.
14549nm_interface=$lt_lt_cv_nm_interface
14550
14551# Specify filename containing input files for \$NM.
14552nm_file_list_spec=$lt_nm_file_list_spec
14553
14554# The root where to search for dependent libraries,and where our libraries should be installed.
14555lt_sysroot=$lt_sysroot
14556
14557# Command to truncate a binary pipe.
14558lt_truncate_bin=$lt_lt_cv_truncate_bin
14559
14560# The name of the directory that contains temporary libtool files.
14561objdir=$objdir
14562
14563# Used to examine libraries when file_magic_cmd begins with "file".
14564MAGIC_CMD=$MAGIC_CMD
14565
14566# Must we lock files when doing compilation?
14567need_locks=$lt_need_locks
14568
14569# Manifest tool.
14570MANIFEST_TOOL=$lt_MANIFEST_TOOL
14571
14572# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14573DSYMUTIL=$lt_DSYMUTIL
14574
14575# Tool to change global to local symbols on Mac OS X.
14576NMEDIT=$lt_NMEDIT
14577
14578# Tool to manipulate fat objects and archives on Mac OS X.
14579LIPO=$lt_LIPO
14580
14581# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14582OTOOL=$lt_OTOOL
14583
14584# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14585OTOOL64=$lt_OTOOL64
14586
14587# Old archive suffix (normally "a").
14588libext=$libext
14589
14590# Shared library suffix (normally ".so").
14591shrext_cmds=$lt_shrext_cmds
14592
14593# The commands to extract the exported symbol list from a shared archive.
14594extract_expsyms_cmds=$lt_extract_expsyms_cmds
14595
14596# Variables whose values should be saved in libtool wrapper scripts and
14597# restored at link time.
14598variables_saved_for_relink=$lt_variables_saved_for_relink
14599
14600# Do we need the "lib" prefix for modules?
14601need_lib_prefix=$need_lib_prefix
14602
14603# Do we need a version for libraries?
14604need_version=$need_version
14605
14606# Library versioning type.
14607version_type=$version_type
14608
14609# Shared library runtime path variable.
14610runpath_var=$runpath_var
14611
14612# Shared library path variable.
14613shlibpath_var=$shlibpath_var
14614
14615# Is shlibpath searched before the hard-coded library search path?
14616shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14617
14618# Format of library name prefix.
14619libname_spec=$lt_libname_spec
14620
14621# List of archive names.  First name is the real one, the rest are links.
14622# The last name is the one that the linker finds with -lNAME
14623library_names_spec=$lt_library_names_spec
14624
14625# The coded name of the library, if different from the real name.
14626soname_spec=$lt_soname_spec
14627
14628# Permission mode override for installation of shared libraries.
14629install_override_mode=$lt_install_override_mode
14630
14631# Command to use after installation of a shared archive.
14632postinstall_cmds=$lt_postinstall_cmds
14633
14634# Command to use after uninstallation of a shared archive.
14635postuninstall_cmds=$lt_postuninstall_cmds
14636
14637# Commands used to finish a libtool library installation in a directory.
14638finish_cmds=$lt_finish_cmds
14639
14640# As "finish_cmds", except a single script fragment to be evaled but
14641# not shown.
14642finish_eval=$lt_finish_eval
14643
14644# Whether we should hardcode library paths into libraries.
14645hardcode_into_libs=$hardcode_into_libs
14646
14647# Compile-time system search path for libraries.
14648sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14649
14650# Detected run-time system search path for libraries.
14651sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14652
14653# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14654configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14655
14656# Whether dlopen is supported.
14657dlopen_support=$enable_dlopen
14658
14659# Whether dlopen of programs is supported.
14660dlopen_self=$enable_dlopen_self
14661
14662# Whether dlopen of statically linked programs is supported.
14663dlopen_self_static=$enable_dlopen_self_static
14664
14665# Commands to strip libraries.
14666old_striplib=$lt_old_striplib
14667striplib=$lt_striplib
14668
14669
14670# The linker used to build libraries.
14671LD=$lt_LD
14672
14673# How to create reloadable object files.
14674reload_flag=$lt_reload_flag
14675reload_cmds=$lt_reload_cmds
14676
14677# Commands used to build an old-style archive.
14678old_archive_cmds=$lt_old_archive_cmds
14679
14680# A language specific compiler.
14681CC=$lt_compiler
14682
14683# Is the compiler the GNU compiler?
14684with_gcc=$GCC
14685
14686# Compiler flag to turn off builtin functions.
14687no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14688
14689# Additional compiler flags for building library objects.
14690pic_flag=$lt_lt_prog_compiler_pic
14691
14692# How to pass a linker flag through the compiler.
14693wl=$lt_lt_prog_compiler_wl
14694
14695# Compiler flag to prevent dynamic linking.
14696link_static_flag=$lt_lt_prog_compiler_static
14697
14698# Does compiler simultaneously support -c and -o options?
14699compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14700
14701# Whether or not to add -lc for building shared libraries.
14702build_libtool_need_lc=$archive_cmds_need_lc
14703
14704# Whether or not to disallow shared libs when runtime libs are static.
14705allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14706
14707# Compiler flag to allow reflexive dlopens.
14708export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14709
14710# Compiler flag to generate shared objects directly from archives.
14711whole_archive_flag_spec=$lt_whole_archive_flag_spec
14712
14713# Whether the compiler copes with passing no objects directly.
14714compiler_needs_object=$lt_compiler_needs_object
14715
14716# Create an old-style archive from a shared archive.
14717old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14718
14719# Create a temporary old-style archive to link instead of a shared archive.
14720old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14721
14722# Commands used to build a shared archive.
14723archive_cmds=$lt_archive_cmds
14724archive_expsym_cmds=$lt_archive_expsym_cmds
14725
14726# Commands used to build a loadable module if different from building
14727# a shared archive.
14728module_cmds=$lt_module_cmds
14729module_expsym_cmds=$lt_module_expsym_cmds
14730
14731# Whether we are building with GNU ld or not.
14732with_gnu_ld=$lt_with_gnu_ld
14733
14734# Flag that allows shared libraries with undefined symbols to be built.
14735allow_undefined_flag=$lt_allow_undefined_flag
14736
14737# Flag that enforces no undefined symbols.
14738no_undefined_flag=$lt_no_undefined_flag
14739
14740# Flag to hardcode \$libdir into a binary during linking.
14741# This must work even if \$libdir does not exist
14742hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14743
14744# Whether we need a single "-rpath" flag with a separated argument.
14745hardcode_libdir_separator=$lt_hardcode_libdir_separator
14746
14747# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14748# DIR into the resulting binary.
14749hardcode_direct=$hardcode_direct
14750
14751# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14752# DIR into the resulting binary and the resulting library dependency is
14753# "absolute",i.e impossible to change by setting \$shlibpath_var if the
14754# library is relocated.
14755hardcode_direct_absolute=$hardcode_direct_absolute
14756
14757# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14758# into the resulting binary.
14759hardcode_minus_L=$hardcode_minus_L
14760
14761# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14762# into the resulting binary.
14763hardcode_shlibpath_var=$hardcode_shlibpath_var
14764
14765# Set to "yes" if building a shared library automatically hardcodes DIR
14766# into the library and all subsequent libraries and executables linked
14767# against it.
14768hardcode_automatic=$hardcode_automatic
14769
14770# Set to yes if linker adds runtime paths of dependent libraries
14771# to runtime path list.
14772inherit_rpath=$inherit_rpath
14773
14774# Whether libtool must link a program against all its dependency libraries.
14775link_all_deplibs=$link_all_deplibs
14776
14777# Set to "yes" if exported symbols are required.
14778always_export_symbols=$always_export_symbols
14779
14780# The commands to list exported symbols.
14781export_symbols_cmds=$lt_export_symbols_cmds
14782
14783# Symbols that should not be listed in the preloaded symbols.
14784exclude_expsyms=$lt_exclude_expsyms
14785
14786# Symbols that must always be exported.
14787include_expsyms=$lt_include_expsyms
14788
14789# Commands necessary for linking programs (against libraries) with templates.
14790prelink_cmds=$lt_prelink_cmds
14791
14792# Commands necessary for finishing linking programs.
14793postlink_cmds=$lt_postlink_cmds
14794
14795# Specify filename containing input files.
14796file_list_spec=$lt_file_list_spec
14797
14798# How to hardcode a shared library path into an executable.
14799hardcode_action=$hardcode_action
14800
14801# ### END LIBTOOL CONFIG
14802
14803_LT_EOF
14804
14805    cat <<'_LT_EOF' >> "$cfgfile"
14806
14807# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14808
14809# func_munge_path_list VARIABLE PATH
14810# -----------------------------------
14811# VARIABLE is name of variable containing _space_ separated list of
14812# directories to be munged by the contents of PATH, which is string
14813# having a format:
14814# "DIR[:DIR]:"
14815#       string "DIR[ DIR]" will be prepended to VARIABLE
14816# ":DIR[:DIR]"
14817#       string "DIR[ DIR]" will be appended to VARIABLE
14818# "DIRP[:DIRP]::[DIRA:]DIRA"
14819#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14820#       "DIRA[ DIRA]" will be appended to VARIABLE
14821# "DIR[:DIR]"
14822#       VARIABLE will be replaced by "DIR[ DIR]"
14823func_munge_path_list ()
14824{
14825    case x$2 in
14826    x)
14827        ;;
14828    *:)
14829        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14830        ;;
14831    x:*)
14832        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14833        ;;
14834    *::*)
14835        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14836        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14837        ;;
14838    *)
14839        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14840        ;;
14841    esac
14842}
14843
14844
14845# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
14846func_cc_basename ()
14847{
14848    for cc_temp in $*""; do
14849      case $cc_temp in
14850        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14851        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14852        \-*) ;;
14853        *) break;;
14854      esac
14855    done
14856    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14857}
14858
14859
14860# ### END FUNCTIONS SHARED WITH CONFIGURE
14861
14862_LT_EOF
14863
14864  case $host_os in
14865  aix3*)
14866    cat <<\_LT_EOF >> "$cfgfile"
14867# AIX sometimes has problems with the GCC collect2 program.  For some
14868# reason, if we set the COLLECT_NAMES environment variable, the problems
14869# vanish in a puff of smoke.
14870if test set != "${COLLECT_NAMES+set}"; then
14871  COLLECT_NAMES=
14872  export COLLECT_NAMES
14873fi
14874_LT_EOF
14875    ;;
14876  esac
14877
14878
14879ltmain=$ac_aux_dir/ltmain.sh
14880
14881
14882  # We use sed instead of cat because bash on DJGPP gets confused if
14883  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14884  # text mode, it properly converts lines to CR/LF.  This bash problem
14885  # is reportedly fixed, but why not run on old versions too?
14886  sed '$q' "$ltmain" >> "$cfgfile" \
14887     || (rm -f "$cfgfile"; exit 1)
14888
14889   mv -f "$cfgfile" "$ofile" ||
14890    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14891  chmod +x "$ofile"
14892
14893 ;;
14894
14895  esac
14896done # for ac_tag
14897
14898
14899as_fn_exit 0
14900_ACEOF
14901ac_clean_files=$ac_clean_files_save
14902
14903test $ac_write_fail = 0 ||
14904  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14905
14906
14907# configure is writing to config.log, and then calls config.status.
14908# config.status does its own redirection, appending to config.log.
14909# Unfortunately, on DOS this fails, as config.log is still kept open
14910# by configure, so config.status won't be able to write to it; its
14911# output is simply discarded.  So we exec the FD to /dev/null,
14912# effectively closing config.log, so it can be properly (re)opened and
14913# appended to by config.status.  When coming back to configure, we
14914# need to make the FD available again.
14915if test "$no_create" != yes; then
14916  ac_cs_success=:
14917  ac_config_status_args=
14918  test "$silent" = yes &&
14919    ac_config_status_args="$ac_config_status_args --quiet"
14920  exec 5>/dev/null
14921  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14922  exec 5>>config.log
14923  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14924  # would make configure fail if this is the last instruction.
14925  $ac_cs_success || as_fn_exit 1
14926fi
14927if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14928  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14929$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14930fi
14931
14932