1e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#! /bin/sh
2e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Guess values for system-dependent variables and create Makefiles.
3e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Generated by GNU Autoconf 2.63 for libusb-compat 0.1.3.
4e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
5e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# This configure script is free software; the Free Software Foundation
8e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# gives unlimited permission to copy, distribute and modify it.
9e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## --------------------- ##
10e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## M4sh Initialization.  ##
11e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## --------------------- ##
12e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Be more Bourne compatible
14e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevDUALCASE=1; export DUALCASE # for MKS sh
15e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  emulate sh
17e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  NULLCMD=:
18e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # is contrary to our usage.  Disable this feature.
20e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  alias -g '${1+"$@"}'='"$@"'
21e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  setopt NO_GLOB_SUBST
22e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
23e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case `(set -o) 2>/dev/null` in
24e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *posix*) set -o posix ;;
25e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
26e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
27e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
28e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
29e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
30e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
31e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
32e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# PATH needs CR
33e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Avoid depending upon Character Ranges.
34e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_cr_letters='abcdefghijklmnopqrstuvwxyz'
35e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_cr_Letters=$as_cr_letters$as_cr_LETTERS
37e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_cr_digits='0123456789'
38e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_cr_alnum=$as_cr_Letters$as_cr_digits
39e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
40e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_nl='
41e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev'
42e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexport as_nl
43e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Printing a long string crashes Solaris 7 /usr/bin/printf.
44e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_echo='printf %s\n'
49e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_echo_n='printf %s'
50e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
51e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_echo_n='/usr/ucb/echo -n'
54e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
55e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_echo_n_body='eval
57e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      arg=$1;
58e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $arg in
59e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *"$as_nl"*)
60e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	expr "X$arg" : "X\\(.*\\)$as_nl";
61e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac;
63e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    '
65e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    export as_echo_n_body
66e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_echo_n='sh -c $as_echo_n_body as_echo'
67e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
68e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  export as_echo_body
69e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_echo='sh -c $as_echo_body as_echo'
70e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
71e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
72e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The user is always right.
73e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${PATH_SEPARATOR+set}" != set; then
74e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  PATH_SEPARATOR=:
75e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      PATH_SEPARATOR=';'
78e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  }
79e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
80e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
81e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Support unset when possible.
82e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_unset=unset
84e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
85e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_unset=false
86e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
87e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
88e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
89e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# IFS
90e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# We need space, tab and new line, in precisely that order.  Quoting is
91e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# there to prevent editors from complaining about space-tab.
92e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# splitting by setting IFS to empty value.)
94e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=" ""	$as_nl"
95e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
96e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Find who we are.  Look in the path if we contain no directory separator.
97e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $0 in
98e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *[\\/]* ) as_myself=$0 ;;
99e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
101e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
102e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
103e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
104e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
106e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
107e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
108e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     ;;
109e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
110e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# We did not find ourselves, most probably we were run as `sh COMMAND'
111e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# in which case we are not to be found in the path.
112e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "x$as_myself" = x; then
113e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_myself=$0
114e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
115e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test ! -f "$as_myself"; then
116e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { (exit 1); exit 1; }
118e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
119e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
120e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Work around bugs in pre-3.0 UWIN ksh.
121e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_var in ENV MAIL MAILPATH
122e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
124e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPS1='$ '
125e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPS2='> '
126e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPS4='+ '
127e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
128e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# NLS nuisances.
129e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLC_ALL=C
130e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexport LC_ALL
131e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLANGUAGE=C
132e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexport LANGUAGE
133e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
134e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Required to use basename.
135e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif expr a : '\(a\)' >/dev/null 2>&1 &&
136e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_expr=expr
138e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
139e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_expr=false
140e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
141e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
142e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_basename=basename
144e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
145e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_basename=false
146e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
147e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
148e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
149e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Name of the executable.
150e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_me=`$as_basename -- "$0" ||
151e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$0" : 'X\(//\)$' \| \
153e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo X/"$0" |
155e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sed '/^.*\/\([^/][^/]*\)\/*$/{
156e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
157e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
158e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
159e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\/\(\/\/\)$/{
160e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
161e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
162e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
163e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\/\(\/\).*/{
164e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
165e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
166e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
167e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  s/.*/./; q'`
168e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
169e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# CDPATH.
170e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_unset CDPATH
171e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
172e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
173e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "x$CONFIG_SHELL" = x; then
174e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if (eval ":") 2>/dev/null; then
175e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_have_required=yes
176e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
177e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_have_required=no
178e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
179e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
180e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test $as_have_required = yes &&	 (eval ":
181e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev(as_func_return () {
182e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit \$1)
183e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
184e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_func_success () {
185e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_func_return 0
186e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
187e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_func_failure () {
188e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_func_return 1
189e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
190e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_func_ret_success () {
191e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0
192e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
193e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_func_ret_failure () {
194e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 1
195e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
196e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
197e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexitcode=0
198e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif as_func_success; then
199e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
200e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
201e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exitcode=1
202e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo as_func_success failed.
203e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
204e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
205e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif as_func_failure; then
206e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exitcode=1
207e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo as_func_failure succeeded.
208e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
209e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
210e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif as_func_ret_success; then
211e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
212e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
213e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exitcode=1
214e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo as_func_ret_success failed.
215e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
216e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
217e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif as_func_ret_failure; then
218e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exitcode=1
219e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo as_func_ret_failure succeeded.
220e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
221e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
222e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
224e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
225e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exitcode=1
226e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo positional parameters were not saved.
227e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
228e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
229e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest \$exitcode = 0) || { (exit 1); exit 1; }
230e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
231e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev(
232e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_lineno_1=\$LINENO
233e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_lineno_2=\$LINENO
234e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev") 2> /dev/null; then
237e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
238e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
239e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_candidate_shells=
240e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
243e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
244e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
245e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $as_dir in
246e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 /*)
247e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   for as_base in sh bash ksh sh5; do
248e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   done;;
250e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       esac
251e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
252e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
253e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
254e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
255e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      for as_shell in $as_candidate_shells $SHELL; do
256e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 # Try only shells that exist, to save several forks.
257e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  emulate sh
261e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  NULLCMD=:
262e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # is contrary to our usage.  Disable this feature.
264e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  alias -g '${1+"$@"}'='"$@"'
265e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  setopt NO_GLOB_SUBST
266e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
267e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case `(set -o) 2>/dev/null` in
268e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *posix*) set -o posix ;;
269e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
270e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
271e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
272e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
273e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
274e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev:
275e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ASEOF
276e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}; then
277e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  CONFIG_SHELL=$as_shell
278e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	       as_have_required=yes
279e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  emulate sh
282e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  NULLCMD=:
283e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # is contrary to our usage.  Disable this feature.
285e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  alias -g '${1+"$@"}'='"$@"'
286e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  setopt NO_GLOB_SUBST
287e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
288e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case `(set -o) 2>/dev/null` in
289e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *posix*) set -o posix ;;
290e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
291e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
292e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
293e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
294e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
295e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev:
296e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev(as_func_return () {
297e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $1)
298e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
299e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_func_success () {
300e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_func_return 0
301e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
302e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_func_failure () {
303e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_func_return 1
304e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
305e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_func_ret_success () {
306e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0
307e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
308e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_func_ret_failure () {
309e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 1
310e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
311e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
312e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexitcode=0
313e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif as_func_success; then
314e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
315e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
316e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exitcode=1
317e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo as_func_success failed.
318e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
319e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
320e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif as_func_failure; then
321e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exitcode=1
322e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo as_func_failure succeeded.
323e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
324e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
325e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif as_func_ret_success; then
326e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
327e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
328e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exitcode=1
329e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo as_func_ret_success failed.
330e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
331e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
332e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif as_func_ret_failure; then
333e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exitcode=1
334e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo as_func_ret_failure succeeded.
335e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
336e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
337e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif ( set x; as_func_ret_success y && test x = "$1" ); then
338e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
339e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
340e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exitcode=1
341e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo positional parameters were not saved.
342e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
343e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
344e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest $exitcode = 0) || { (exit 1); exit 1; }
345e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
346e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev(
347e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_lineno_1=$LINENO
348e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_lineno_2=$LINENO
349e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "x$as_lineno_1" != "x$as_lineno_2" &&
350e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
352e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ASEOF
353e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}; then
354e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  break
355e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
356e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
357e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
358e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
359e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      done
360e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
361e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "x$CONFIG_SHELL" != x; then
362e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for as_var in BASH_ENV ENV
363e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	done
365e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	export CONFIG_SHELL
366e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
368e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
369e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
370e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test $as_have_required = no; then
371e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo This script requires a shell more modern than all the
372e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      echo shells that I found on your system.  Please install a
373e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      echo modern shell, or manually run the script under such a
374e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      echo shell if you do have one.
375e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { (exit 1); exit 1; }
376e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
377e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
378e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
379e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
380e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
381e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
382e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
383e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
384e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
385e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev(eval "as_func_return () {
386e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit \$1)
387e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
388e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_func_success () {
389e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_func_return 0
390e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
391e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_func_failure () {
392e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_func_return 1
393e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
394e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_func_ret_success () {
395e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0
396e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
397e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_func_ret_failure () {
398e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 1
399e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
400e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
401e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexitcode=0
402e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif as_func_success; then
403e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
404e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
405e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exitcode=1
406e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo as_func_success failed.
407e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
408e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
409e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif as_func_failure; then
410e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exitcode=1
411e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo as_func_failure succeeded.
412e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
413e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
414e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif as_func_ret_success; then
415e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
416e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
417e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exitcode=1
418e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo as_func_ret_success failed.
419e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
420e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
421e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif as_func_ret_failure; then
422e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exitcode=1
423e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo as_func_ret_failure succeeded.
424e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
425e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
426e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
428e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
429e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exitcode=1
430e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo positional parameters were not saved.
431e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
432e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
433e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest \$exitcode = 0") || {
434e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo No shell found that supports shell functions.
435e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo Please tell bug-autoconf@gnu.org about your system,
436e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo including any error possibly output before this message.
437e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo This can help us improve future autoconf versions.
438e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo Configuration will now proceed without shell functions.
439e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
440e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
441e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
442e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
443e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_lineno_1=$LINENO
444e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_lineno_2=$LINENO
445e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "x$as_lineno_1" != "x$as_lineno_2" &&
446e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
448e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # uniformly replaced by the line number.  The first 'sed' inserts a
450e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # line-number line after each line using $LINENO; the second 'sed'
451e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # does the real work.  The second script uses 'N' to pair each
452e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # line-number line with the line containing $LINENO, and appends
453e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # trailing '-' during substitution so that $LINENO is not a special
454e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # case at line end.
455e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # E. McMahon (1931-1989) for sed's syntax.  :-)
458e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sed -n '
459e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    p
460e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    /[$]LINENO/=
461e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ' <$as_myself |
462e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sed '
463e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      s/[$]LINENO.*/&-/
464e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      t lineno
465e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      b
466e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      :lineno
467e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      N
468e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      :loop
469e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      t loop
471e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      s/-\n.*//
472e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ' >$as_me.lineno &&
473e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  chmod +x "$as_me.lineno" ||
474e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
476e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
477e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Don't try to exec as it changes $[0], causing all sort of problems
478e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # (the dirname of $[0] is not the place where we might find the
479e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # original and so on.  Autoconf is especially sensitive to this).
480e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  . "./$as_me.lineno"
481e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Exit status is that of the last command.
482e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exit
483e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
484e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
485e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
486e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_dirname=dirname
488e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
489e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_dirname=false
490e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
491e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
492e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevECHO_C= ECHO_N= ECHO_T=
493e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase `echo -n x` in
494e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev-n*)
495e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case `echo 'x\c'` in
496e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)   ECHO_C='\c';;
498e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac;;
499e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*)
500e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ECHO_N='-n';;
501e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
502e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif expr a : '\(a\)' >/dev/null 2>&1 &&
503e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_expr=expr
505e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
506e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_expr=false
507e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
508e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
509e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conf$$ conf$$.exe conf$$.file
510e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -d conf$$.dir; then
511e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conf$$.dir/conf$$.file
512e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
513e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conf$$.dir
514e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  mkdir conf$$.dir 2>/dev/null
515e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
516e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif (echo >conf$$.file) 2>/dev/null; then
517e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if ln -s conf$$.file conf$$ 2>/dev/null; then
518e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_ln_s='ln -s'
519e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # ... but there are two gotchas:
520e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # In both cases, we have to default to `cp -p'.
523e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      as_ln_s='cp -p'
525e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  elif ln conf$$.file conf$$ 2>/dev/null; then
526e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_ln_s=ln
527e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
528e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_ln_s='cp -p'
529e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
530e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
531e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_ln_s='cp -p'
532e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
533e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrmdir conf$$.dir 2>/dev/null
535e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
536e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif mkdir -p . 2>/dev/null; then
537e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_mkdir_p=:
538e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
539e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -d ./-p && rmdir ./-p
540e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_mkdir_p=false
541e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
542e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
543e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -x / >/dev/null 2>&1; then
544e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_test_x='test -x'
545e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
546e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if ls -dL / >/dev/null 2>&1; then
547e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_ls_L_option=L
548e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
549e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_ls_L_option=
550e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
551e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_test_x='
552e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    eval sh -c '\''
553e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test -d "$1"; then
554e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	test -d "$1/.";
555e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
556e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case $1 in
557e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	-*)set "./$1";;
558e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac;
559e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	???[sx]*):;;*)false;;esac;fi
561e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    '\'' sh
562e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  '
563e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
564e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_executable_p=$as_test_x
565e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
566e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Sed expression to map a string onto a valid CPP name.
567e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
569e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Sed expression to map a string onto a valid variable name.
570e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
572e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
573e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
574e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
575e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check that we are running under the correct shell.
576e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSHELL=${CONFIG_SHELL-/bin/sh}
577e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
578e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase X$lt_ECHO in
579e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevX*--fallback-echo)
580e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Remove one level of quotation (which was required for Make).
581e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
583e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
584e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
585e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevECHO=${lt_ECHO-echo}
586e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "X$1" = X--no-reexec; then
587e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Discard the --no-reexec flag, and continue.
588e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shift
589e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelif test "X$1" = X--fallback-echo; then
590e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Avoid inline document here, it may be left over
591e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
592e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Yippee, $ECHO works!
594e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
595e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
596e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Restart under the correct shell.
597e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exec $SHELL "$0" --no-reexec ${1+"$@"}
598e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
599e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
600e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "X$1" = X--fallback-echo; then
601e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # used as fallback echo
602e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shift
603e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat <<_LT_EOF
604e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$*
605e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
606e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exit 0
607e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
608e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
609e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The HP-UX ksh and POSIX shell print the target directory to stdout
610e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# if CDPATH is set.
611e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
613e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$lt_ECHO"; then
614e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "X${echo_test_string+set}" != Xset; then
615e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # find a string as large as possible, as long as the shell can cope with it
616e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      then
621e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        break
622e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
623e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    done
624e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
625e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
626e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     test "X$echo_testing_string" = "X$echo_test_string"; then
629e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    :
630e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
631e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # The Solaris, AIX, and Digital Unix default echo programs unquote
632e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # backslashes.  This makes it impossible to quote backslashes using
633e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    #   echo "$something" | sed 's/\\/\\\\/g'
634e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    #
635e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # So, first we look for a working echo in the user's PATH.
636e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
637e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    for dir in $PATH /usr/ucb; do
639e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      IFS="$lt_save_ifs"
640e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev         test "X$echo_testing_string" = "X$echo_test_string"; then
644e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        ECHO="$dir/echo"
645e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        break
646e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
647e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    done
648e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    IFS="$lt_save_ifs"
649e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
650e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test "X$ECHO" = Xecho; then
651e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # We didn't find a better echo, so look for alternatives.
652e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev         test "X$echo_testing_string" = "X$echo_test_string"; then
655e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        # This shell has a builtin print -r that does the trick.
656e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        ECHO='print -r'
657e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   test "X$CONFIG_SHELL" != X/bin/ksh; then
659e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        # If we have ksh, try running configure again with it.
660e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        export ORIGINAL_CONFIG_SHELL
662e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        CONFIG_SHELL=/bin/ksh
663e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        export CONFIG_SHELL
664e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
666e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        # Try using printf.
667e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        ECHO='printf %s\n'
668e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   test "X$echo_testing_string" = "X$echo_test_string"; then
671e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # Cool, printf works
672e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  :
673e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	     test "X$echo_testing_string" = 'X\t' &&
675e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	     test "X$echo_testing_string" = "X$echo_test_string"; then
677e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  export CONFIG_SHELL
679e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  SHELL="$CONFIG_SHELL"
680e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  export SHELL
681e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
682e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	     test "X$echo_testing_string" = 'X\t' &&
684e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	     test "X$echo_testing_string" = "X$echo_test_string"; then
686e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
687e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        else
688e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # maybe with a smaller string...
689e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  prev=:
690e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
691e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    then
694e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	      break
695e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    fi
696e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    prev="$cmd"
697e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  done
698e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
699e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  if test "$prev" != 'sed 50q "$0"'; then
700e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    echo_test_string=`eval $prev`
701e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    export echo_test_string
702e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  else
704e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    # Oops.  We lost completely, so just stick with echo.
705e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    ECHO=echo
706e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  fi
707e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        fi
708e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
709e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
710e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
711e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
712e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
713e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Copy echo and quote the copy suitably for passing to libtool from
714e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# the Makefile, instead of quoting the original, which is used later.
715e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_ECHO=$ECHO
716e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
719e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
720e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
721e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
722e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
723e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexec 7<&0 </dev/null 6>&1
724e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
725e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Name of the host.
726e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# so uname gets run too.
728e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
730e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
731e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Initializations.
732e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
733e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_default_prefix=/usr/local
734e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_clean_files=
735e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_config_libobj_dir=.
736e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBOBJS=
737e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcross_compiling=no
738e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsubdirs=
739e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevMFLAGS=
740e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevMAKEFLAGS=
741e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSHELL=${CONFIG_SHELL-/bin/sh}
742e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
743e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Identity of this package.
744e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPACKAGE_NAME='libusb-compat'
745e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPACKAGE_TARNAME='libusb-compat'
746e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPACKAGE_VERSION='0.1.3'
747e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPACKAGE_STRING='libusb-compat 0.1.3'
748e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPACKAGE_BUGREPORT=''
749e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
750e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_unique_file="libusb/core.c"
751e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Factoring default headers for most tests.
752e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_includes_default="\
753e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <stdio.h>
754e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef HAVE_SYS_TYPES_H
755e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# include <sys/types.h>
756e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
757e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef HAVE_SYS_STAT_H
758e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# include <sys/stat.h>
759e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
760e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef STDC_HEADERS
761e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# include <stdlib.h>
762e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# include <stddef.h>
763e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#else
764e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# ifdef HAVE_STDLIB_H
765e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#  include <stdlib.h>
766e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# endif
767e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
768e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef HAVE_STRING_H
769e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#  include <memory.h>
771e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# endif
772e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# include <string.h>
773e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
774e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef HAVE_STRINGS_H
775e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# include <strings.h>
776e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
777e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef HAVE_INTTYPES_H
778e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# include <inttypes.h>
779e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
780e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef HAVE_STDINT_H
781e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# include <stdint.h>
782e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
783e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef HAVE_UNISTD_H
784e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# include <unistd.h>
785e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif"
786e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
787e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_subst_vars='LTLIBOBJS
788e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBOBJS
789e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAM_CFLAGS
790e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevBUILD_EXAMPLES_FALSE
791e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevBUILD_EXAMPLES_TRUE
792e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBUSB_1_0_LIBS
793e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBUSB_1_0_CFLAGS
794e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPKG_CONFIG
795e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBUSB01_VERSION
796e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLT_AGE
797e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLT_REVISION
798e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLT_MAJOR
799e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCPP
800e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOTOOL64
801e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOTOOL
802e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIPO
803e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevNMEDIT
804e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevDSYMUTIL
805e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_ECHO
806e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevRANLIB
807e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAR
808e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOBJDUMP
809e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLN_S
810e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevNM
811e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ct_DUMPBIN
812e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevDUMPBIN
813e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLD
814e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevFGREP
815e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevEGREP
816e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevGREP
817e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSED
818e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhost_os
819e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhost_vendor
820e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhost_cpu
821e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhost
822e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild_os
823e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild_vendor
824e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild_cpu
825e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild
826e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBTOOL
827e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevam__fastdepCC_FALSE
828e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevam__fastdepCC_TRUE
829e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCCDEPMODE
830e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAMDEPBACKSLASH
831e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAMDEP_FALSE
832e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAMDEP_TRUE
833e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevam__quote
834e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevam__include
835e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevDEPDIR
836e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOBJEXT
837e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevEXEEXT
838e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ct_CC
839e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCPPFLAGS
840e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLDFLAGS
841e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCFLAGS
842e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCC
843e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevam__untar
844e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevam__tar
845e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAMTAR
846e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevam__leading_dot
847e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSET_MAKE
848e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAWK
849e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmkdir_p
850e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevMKDIR_P
851e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevINSTALL_STRIP_PROGRAM
852e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSTRIP
853e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevinstall_sh
854e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevMAKEINFO
855e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAUTOHEADER
856e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAUTOMAKE
857e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAUTOCONF
858e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevACLOCAL
859e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevVERSION
860e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPACKAGE
861e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCYGPATH_W
862e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevam__isrc
863e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevINSTALL_DATA
864e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevINSTALL_SCRIPT
865e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevINSTALL_PROGRAM
866e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtarget_alias
867e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhost_alias
868e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild_alias
869e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBS
870e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevECHO_T
871e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevECHO_N
872e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevECHO_C
873e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevDEFS
874e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmandir
875e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlocaledir
876e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlibdir
877e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpsdir
878e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpdfdir
879e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdvidir
880e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhtmldir
881e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevinfodir
882e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdocdir
883e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevoldincludedir
884e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevincludedir
885e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlocalstatedir
886e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsharedstatedir
887e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsysconfdir
888e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdatadir
889e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdatarootdir
890e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlibexecdir
891e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsbindir
892e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbindir
893e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevprogram_transform_name
894e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevprefix
895e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexec_prefix
896e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPACKAGE_BUGREPORT
897e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPACKAGE_STRING
898e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPACKAGE_VERSION
899e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPACKAGE_TARNAME
900e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPACKAGE_NAME
901e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPATH_SEPARATOR
902e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSHELL'
903e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_subst_files=''
904e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_user_opts='
905e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevenable_option_checking
906e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevenable_dependency_tracking
907e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevenable_shared
908e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevenable_static
909e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevwith_pic
910e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevenable_fast_install
911e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevwith_gnu_ld
912e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevenable_libtool_lock
913e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevenable_log
914e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevenable_debug_log
915e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevenable_examples_build
916e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev'
917e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_precious_vars='build_alias
918e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhost_alias
919e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtarget_alias
920e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCC
921e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCFLAGS
922e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLDFLAGS
923e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBS
924e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCPPFLAGS
925e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCPP
926e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPKG_CONFIG
927e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBUSB_1_0_CFLAGS
928e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBUSB_1_0_LIBS'
929e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
930e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
931e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Initialize some variables set by options.
932e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_init_help=
933e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_init_version=false
934e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_unrecognized_opts=
935e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_unrecognized_sep=
936e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The variables have the same names as the options, with
937e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# dashes changed to underlines.
938e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcache_file=/dev/null
939e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexec_prefix=NONE
940e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevno_create=
941e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevno_recursion=
942e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevprefix=NONE
943e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevprogram_prefix=NONE
944e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevprogram_suffix=NONE
945e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevprogram_transform_name=s,x,x,
946e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsilent=
947e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsite=
948e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsrcdir=
949e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevverbose=
950e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevx_includes=NONE
951e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevx_libraries=NONE
952e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
953e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Installation directory options.
954e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# These are left unexpanded so users can "make install exec_prefix=/foo"
955e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# and all the variables that are supposed to be based on exec_prefix
956e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# by default will actually change.
957e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Use braces instead of parens because sh, perl, etc. also accept them.
958e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# (The list follows the same order as the GNU Coding Standards.)
959e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbindir='${exec_prefix}/bin'
960e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsbindir='${exec_prefix}/sbin'
961e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlibexecdir='${exec_prefix}/libexec'
962e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdatarootdir='${prefix}/share'
963e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdatadir='${datarootdir}'
964e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsysconfdir='${prefix}/etc'
965e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsharedstatedir='${prefix}/com'
966e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlocalstatedir='${prefix}/var'
967e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevincludedir='${prefix}/include'
968e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevoldincludedir='/usr/include'
969e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevinfodir='${datarootdir}/info'
971e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhtmldir='${docdir}'
972e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdvidir='${docdir}'
973e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpdfdir='${docdir}'
974e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpsdir='${docdir}'
975e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlibdir='${exec_prefix}/lib'
976e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlocaledir='${datarootdir}/locale'
977e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmandir='${datarootdir}/man'
978e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
979e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_prev=
980e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_dashdash=
981e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_option
982e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
983e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # If the previous option needs an argument, assign it.
984e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_prev"; then
985e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    eval $ac_prev=\$ac_option
986e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=
987e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    continue
988e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
989e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
990e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_option in
991e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)	ac_optarg=yes ;;
993e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
994e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
995e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Accept the important Cygnus configure options, so we can diagnose typos.
996e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
997e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_dashdash$ac_option in
998e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --)
999e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_dashdash=yes ;;
1000e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1001e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=bindir ;;
1003e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    bindir=$ac_optarg ;;
1005e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1006e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -build | --build | --buil | --bui | --bu)
1007e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=build_alias ;;
1008e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    build_alias=$ac_optarg ;;
1010e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1011e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -cache-file | --cache-file | --cache-fil | --cache-fi \
1012e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=cache_file ;;
1014e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cache_file=$ac_optarg ;;
1017e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1018e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --config-cache | -C)
1019e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cache_file=config.cache ;;
1020e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1021e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -datadir | --datadir | --datadi | --datad)
1022e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=datadir ;;
1023e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    datadir=$ac_optarg ;;
1025e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1026e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --dataroo | --dataro | --datar)
1028e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=datarootdir ;;
1029e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    datarootdir=$ac_optarg ;;
1032e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1033e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -disable-* | --disable-*)
1034e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Reject names that are not valid shell variable names.
1036e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1038e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
1039e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_useropt_orig=$ac_useropt
1040e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $ac_user_opts in
1042e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *"
1043e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"enable_$ac_useropt"
1044e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"*) ;;
1045e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1046e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 ac_unrecognized_sep=', ';;
1047e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
1048e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    eval enable_$ac_useropt=no ;;
1049e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1050e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -docdir | --docdir | --docdi | --doc | --do)
1051e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=docdir ;;
1052e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1053e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    docdir=$ac_optarg ;;
1054e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1055e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1056e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=dvidir ;;
1057e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1058e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    dvidir=$ac_optarg ;;
1059e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1060e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -enable-* | --enable-*)
1061e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1062e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Reject names that are not valid shell variable names.
1063e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1065e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
1066e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_useropt_orig=$ac_useropt
1067e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $ac_user_opts in
1069e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *"
1070e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"enable_$ac_useropt"
1071e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"*) ;;
1072e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1073e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 ac_unrecognized_sep=', ';;
1074e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
1075e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    eval enable_$ac_useropt=\$ac_optarg ;;
1076e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1077e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1078e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1079e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --exec | --exe | --ex)
1080e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=exec_prefix ;;
1081e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1082e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1083e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --exec=* | --exe=* | --ex=*)
1084e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    exec_prefix=$ac_optarg ;;
1085e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1086e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -gas | --gas | --ga | --g)
1087e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Obsolete; use --with-gas.
1088e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    with_gas=yes ;;
1089e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1090e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -help | --help | --hel | --he | -h)
1091e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_init_help=long ;;
1092e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1093e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_init_help=recursive ;;
1094e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1095e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_init_help=short ;;
1096e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1097e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -host | --host | --hos | --ho)
1098e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=host_alias ;;
1099e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -host=* | --host=* | --hos=* | --ho=*)
1100e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    host_alias=$ac_optarg ;;
1101e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1102e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1103e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=htmldir ;;
1104e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1105e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --ht=*)
1106e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    htmldir=$ac_optarg ;;
1107e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1108e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -includedir | --includedir | --includedi | --included | --include \
1109e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --includ | --inclu | --incl | --inc)
1110e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=includedir ;;
1111e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1112e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --includ=* | --inclu=* | --incl=* | --inc=*)
1113e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    includedir=$ac_optarg ;;
1114e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1115e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -infodir | --infodir | --infodi | --infod | --info | --inf)
1116e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=infodir ;;
1117e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1118e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    infodir=$ac_optarg ;;
1119e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1120e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -libdir | --libdir | --libdi | --libd)
1121e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=libdir ;;
1122e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1123e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    libdir=$ac_optarg ;;
1124e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1125e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1126e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --libexe | --libex | --libe)
1127e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=libexecdir ;;
1128e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1129e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --libexe=* | --libex=* | --libe=*)
1130e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    libexecdir=$ac_optarg ;;
1131e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1132e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -localedir | --localedir | --localedi | --localed | --locale)
1133e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=localedir ;;
1134e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1135e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    localedir=$ac_optarg ;;
1136e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1137e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -localstatedir | --localstatedir | --localstatedi | --localstated \
1138e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --localstate | --localstat | --localsta | --localst | --locals)
1139e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=localstatedir ;;
1140e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1141e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1142e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    localstatedir=$ac_optarg ;;
1143e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1144e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1145e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=mandir ;;
1146e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1147e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    mandir=$ac_optarg ;;
1148e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1149e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -nfp | --nfp | --nf)
1150e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Obsolete; use --without-fp.
1151e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    with_fp=no ;;
1152e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1153e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1154e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --no-cr | --no-c | -n)
1155e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    no_create=yes ;;
1156e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1157e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1158e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1159e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    no_recursion=yes ;;
1160e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1161e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1162e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1163e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --oldin | --oldi | --old | --ol | --o)
1164e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=oldincludedir ;;
1165e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1166e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1167e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1168e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    oldincludedir=$ac_optarg ;;
1169e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1170e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1171e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=prefix ;;
1172e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1173e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    prefix=$ac_optarg ;;
1174e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1175e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1176e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --program-pre | --program-pr | --program-p)
1177e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=program_prefix ;;
1178e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1179e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1180e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    program_prefix=$ac_optarg ;;
1181e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1182e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1183e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --program-suf | --program-su | --program-s)
1184e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=program_suffix ;;
1185e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1186e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1187e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    program_suffix=$ac_optarg ;;
1188e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1189e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -program-transform-name | --program-transform-name \
1190e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --program-transform-nam | --program-transform-na \
1191e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --program-transform-n | --program-transform- \
1192e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --program-transform | --program-transfor \
1193e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --program-transfo | --program-transf \
1194e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --program-trans | --program-tran \
1195e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --progr-tra | --program-tr | --program-t)
1196e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=program_transform_name ;;
1197e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -program-transform-name=* | --program-transform-name=* \
1198e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --program-transform-nam=* | --program-transform-na=* \
1199e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --program-transform-n=* | --program-transform-=* \
1200e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --program-transform=* | --program-transfor=* \
1201e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --program-transfo=* | --program-transf=* \
1202e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --program-trans=* | --program-tran=* \
1203e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --progr-tra=* | --program-tr=* | --program-t=*)
1204e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    program_transform_name=$ac_optarg ;;
1205e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1206e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1207e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=pdfdir ;;
1208e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1209e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    pdfdir=$ac_optarg ;;
1210e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1211e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -psdir | --psdir | --psdi | --psd | --ps)
1212e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=psdir ;;
1213e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1214e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    psdir=$ac_optarg ;;
1215e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1216e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | -silent | --silent | --silen | --sile | --sil)
1218e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    silent=yes ;;
1219e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1220e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1221e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=sbindir ;;
1222e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1223e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --sbi=* | --sb=*)
1224e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sbindir=$ac_optarg ;;
1225e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1226e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1227e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1228e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --sharedst | --shareds | --shared | --share | --shar \
1229e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --sha | --sh)
1230e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=sharedstatedir ;;
1231e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1232e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1233e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1234e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --sha=* | --sh=*)
1235e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sharedstatedir=$ac_optarg ;;
1236e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1237e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -site | --site | --sit)
1238e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=site ;;
1239e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -site=* | --site=* | --sit=*)
1240e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    site=$ac_optarg ;;
1241e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1242e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1243e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=srcdir ;;
1244e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1245e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    srcdir=$ac_optarg ;;
1246e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1247e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1248e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --syscon | --sysco | --sysc | --sys | --sy)
1249e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=sysconfdir ;;
1250e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1251e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1252e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sysconfdir=$ac_optarg ;;
1253e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1254e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -target | --target | --targe | --targ | --tar | --ta | --t)
1255e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=target_alias ;;
1256e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1257e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    target_alias=$ac_optarg ;;
1258e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1259e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1260e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    verbose=yes ;;
1261e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1262e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -version | --version | --versio | --versi | --vers | -V)
1263e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_init_version=: ;;
1264e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1265e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -with-* | --with-*)
1266e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1267e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Reject names that are not valid shell variable names.
1268e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1270e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
1271e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_useropt_orig=$ac_useropt
1272e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $ac_user_opts in
1274e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *"
1275e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"with_$ac_useropt"
1276e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"*) ;;
1277e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1278e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 ac_unrecognized_sep=', ';;
1279e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
1280e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    eval with_$ac_useropt=\$ac_optarg ;;
1281e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1282e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -without-* | --without-*)
1283e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Reject names that are not valid shell variable names.
1285e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1287e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
1288e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_useropt_orig=$ac_useropt
1289e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $ac_user_opts in
1291e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *"
1292e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"with_$ac_useropt"
1293e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"*) ;;
1294e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1295e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 ac_unrecognized_sep=', ';;
1296e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
1297e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    eval with_$ac_useropt=no ;;
1298e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1299e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --x)
1300e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Obsolete; use --with-x.
1301e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    with_x=yes ;;
1302e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1303e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --x-incl | --x-inc | --x-in | --x-i)
1305e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=x_includes ;;
1306e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    x_includes=$ac_optarg ;;
1309e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1310e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prev=x_libraries ;;
1313e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    x_libraries=$ac_optarg ;;
1316e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1317e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1318e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevTry \`$0 --help' for more information." >&2
1319e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
1320e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
1321e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1322e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *=*)
1323e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Reject names that are not valid shell variable names.
1325e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1326e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1327e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
1328e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    eval $ac_envvar=\$ac_optarg
1329e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    export $ac_envvar ;;
1330e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1331e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
1332e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # FIXME: should be removed in autoconf 3.0.
1333e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1337e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
1338e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1339e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
1340e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
1341e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1342e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_prev"; then
1343e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1345e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
1346e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
1347e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1348e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_unrecognized_opts"; then
1349e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $enable_option_checking in
1350e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    no) ;;
1351e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1352e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; } ;;
1353e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
1355e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
1356e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1357e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check all directory arguments for consistency.
1358e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		datadir sysconfdir sharedstatedir localstatedir includedir \
1360e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		libdir localedir mandir
1362e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
1363e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  eval ac_val=\$$ac_var
1364e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Remove trailing slashes.
1365e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_val in
1366e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    */ )
1367e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      eval $ac_var=\$ac_val;;
1369e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
1370e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Be sure to have absolute directory names.
1371e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_val in
1372e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    [\\/$]* | ?:[\\/]* )  continue;;
1373e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
1375e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1376e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
1377e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
1378e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1379e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# There might be people who depend on the old broken behavior: `$host'
1380e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# used to hold the argument of --host etc.
1381e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# FIXME: To remove some day.
1382e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild=$build_alias
1383e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhost=$host_alias
1384e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtarget=$target_alias
1385e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1386e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# FIXME: To remove some day.
1387e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "x$host_alias" != x; then
1388e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$build_alias" = x; then
1389e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cross_compiling=maybe
1390e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1391e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    If a cross compiler is detected then cross compile mode will be used." >&2
1392e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  elif test "x$build_alias" != "x$host_alias"; then
1393e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cross_compiling=yes
1394e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
1395e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
1396e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1397e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_tool_prefix=
1398e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1399e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1400e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest "$silent" = yes && exec 6>/dev/null
1401e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1402e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1403e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_pwd=`pwd` && test -n "$ac_pwd" &&
1404e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ls_di=`ls -di .` &&
1405e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1406e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1407e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
1408e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1409e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1410e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
1411e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1412e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1413e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Find the source files, if location was not specified.
1414e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$srcdir"; then
1415e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_srcdir_defaulted=yes
1416e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Try the directory containing this script, then the parent directory.
1417e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_confdir=`$as_dirname -- "$as_myself" ||
1418e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$as_myself" : 'X\(//\)[^/]' \| \
1420e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$as_myself" : 'X\(//\)$' \| \
1421e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo X"$as_myself" |
1423e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
1425e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
1426e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
1427e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\/\)[^/].*/{
1428e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
1429e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
1430e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
1431e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\/\)$/{
1432e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
1433e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
1434e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
1435e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\).*/{
1436e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
1437e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
1438e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
1439e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  s/.*/./; q'`
1440e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  srcdir=$ac_confdir
1441e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test ! -r "$srcdir/$ac_unique_file"; then
1442e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    srcdir=..
1443e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
1444e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
1445e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_srcdir_defaulted=no
1446e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
1447e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test ! -r "$srcdir/$ac_unique_file"; then
1448e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1450e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
1451e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
1452e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_abs_confdir=`(
1454e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1455e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
1456e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	pwd)`
1457e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# When building in place, set srcdir=.
1458e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$ac_abs_confdir" = "$ac_pwd"; then
1459e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  srcdir=.
1460e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
1461e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Remove unnecessary trailing slashes from srcdir.
1462e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Double slashes in file names in object file debugging info
1463e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# mess up M-x gdb in Emacs.
1464e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $srcdir in
1465e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
1467e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_var in $ac_precious_vars; do
1468e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  eval ac_env_${ac_var}_value=\$${ac_var}
1470e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
1473e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1474e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
1475e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Report the --help message.
1476e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
1477e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$ac_init_help" = "long"; then
1478e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Omit some internal or obsolete options to make the list less imposing.
1479e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # This message is too long to be a string in the A/UX 3.1 sh.
1480e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat <<_ACEOF
1481e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev\`configure' configures libusb-compat 0.1.3 to adapt to many kinds of systems.
1482e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1483e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevUsage: $0 [OPTION]... [VAR=VALUE]...
1484e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1485e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1486e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevVAR=VALUE.  See below for descriptions of some of the useful variables.
1487e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1488e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevDefaults for the options are specified in brackets.
1489e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1490e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevConfiguration:
1491e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -h, --help              display this help and exit
1492e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      --help=short        display options specific to this package
1493e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      --help=recursive    display the short help of all the included packages
1494e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -V, --version           display version information and exit
1495e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -q, --quiet, --silent   do not print \`checking...' messages
1496e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      --cache-file=FILE   cache test results in FILE [disabled]
1497e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -C, --config-cache      alias for \`--cache-file=config.cache'
1498e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -n, --no-create         do not create output files
1499e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1500e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1501e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevInstallation directories:
1502e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --prefix=PREFIX         install architecture-independent files in PREFIX
1503e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev                          [$ac_default_prefix]
1504e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1505e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev                          [PREFIX]
1506e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1507e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevBy default, \`make install' will install all the files in
1508e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1509e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor instance \`--prefix=\$HOME'.
1511e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1512e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevFor better control, use the options below.
1513e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1514e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevFine tuning of the installation directories:
1515e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --bindir=DIR            user executables [EPREFIX/bin]
1516e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1517e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --libexecdir=DIR        program executables [EPREFIX/libexec]
1518e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1519e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1520e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1521e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --libdir=DIR            object code libraries [EPREFIX/lib]
1522e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --includedir=DIR        C header files [PREFIX/include]
1523e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1524e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1525e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1526e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --infodir=DIR           info documentation [DATAROOTDIR/info]
1527e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1528e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --mandir=DIR            man documentation [DATAROOTDIR/man]
1529e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --docdir=DIR            documentation root [DATAROOTDIR/doc/libusb-compat]
1530e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --htmldir=DIR           html documentation [DOCDIR]
1531e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --dvidir=DIR            dvi documentation [DOCDIR]
1532e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --pdfdir=DIR            pdf documentation [DOCDIR]
1533e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --psdir=DIR             ps documentation [DOCDIR]
1534e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
1535e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1536e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat <<\_ACEOF
1537e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1538e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevProgram names:
1539e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --program-prefix=PREFIX            prepend PREFIX to installed program names
1540e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --program-suffix=SUFFIX            append SUFFIX to installed program names
1541e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1542e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1543e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSystem types:
1544e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --build=BUILD     configure for building on BUILD [guessed]
1545e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1546e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
1547e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
1548e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1549e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_init_help"; then
1550e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_init_help in
1551e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     short | recursive ) echo "Configuration of libusb-compat 0.1.3:";;
1552e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   esac
1553e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat <<\_ACEOF
1554e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1555e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOptional Features:
1556e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --disable-option-checking  ignore unrecognized --enable/--with options
1557e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1558e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1559e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --disable-dependency-tracking  speeds up one-time build
1560e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --enable-dependency-tracking   do not reject slow dependency extractors
1561e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --enable-shared[=PKGS]  build shared libraries [default=yes]
1562e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --enable-static[=PKGS]  build static libraries [default=yes]
1563e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --enable-fast-install[=PKGS]
1564e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev                          optimize for fast installation [default=yes]
1565e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --disable-libtool-lock  avoid locking (might break parallel builds)
1566e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --disable-log           disable all logging
1567e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --enable-debug-log      enable debug logging (default n)
1568e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --enable-examples-build build example applications (default n)
1569e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1570e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOptional Packages:
1571e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1572e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1573e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --with-pic              try to use only PIC/non-PIC objects [default=use
1574e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev                          both]
1575e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1576e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1577e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSome influential environment variables:
1578e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  CC          C compiler command
1579e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  CFLAGS      C compiler flags
1580e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1581e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev              nonstandard directory <lib dir>
1582e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  LIBS        libraries to pass to the linker, e.g. -l<library>
1583e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1584e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev              you have headers in a nonstandard directory <include dir>
1585e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  CPP         C preprocessor
1586e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  PKG_CONFIG  path to pkg-config utility
1587e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  LIBUSB_1_0_CFLAGS
1588e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev              C compiler flags for LIBUSB_1_0, overriding pkg-config
1589e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  LIBUSB_1_0_LIBS
1590e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev              linker flags for LIBUSB_1_0, overriding pkg-config
1591e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1592e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevUse these variables to override the choices made by `configure' or to help
1593e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevit to find libraries and programs with nonstandard names/locations.
1594e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1595e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
1596e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_status=$?
1597e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
1598e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1599e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$ac_init_help" = "recursive"; then
1600e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # If there are subdirs, report their specific --help.
1601e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test -d "$ac_dir" ||
1603e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      continue
1605e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_builddir=.
1606e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1607e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "$ac_dir" in
1608e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*)
1610e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # A ".." for each directory in $ac_dir_suffix.
1612e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_top_builddir_sub in
1614e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac ;;
1617e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
1618e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_abs_top_builddir=$ac_pwd
1619e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_abs_builddir=$ac_pwd$ac_dir_suffix
1620e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# for backward compatibility:
1621e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_top_builddir=$ac_top_build_prefix
1622e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1623e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $srcdir in
1624e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  .)  # We are building in place.
1625e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_srcdir=.
1626e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_top_srcdir=$ac_top_builddir_sub
1627e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_abs_top_srcdir=$ac_pwd ;;
1628e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  [\\/]* | ?:[\\/]* )  # Absolute name.
1629e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_srcdir=$srcdir$ac_dir_suffix;
1630e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_top_srcdir=$srcdir
1631e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_abs_top_srcdir=$srcdir ;;
1632e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) # Relative name.
1633e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_top_srcdir=$ac_top_build_prefix$srcdir
1635e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
1637e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1639e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cd "$ac_dir" || { ac_status=$?; continue; }
1640e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Check for guested configure.
1641e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -f "$ac_srcdir/configure.gnu"; then
1642e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      echo &&
1643e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    elif test -f "$ac_srcdir/configure"; then
1645e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      echo &&
1646e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      $SHELL "$ac_srcdir/configure" --help=recursive
1647e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    else
1648e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi || ac_status=$?
1650e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cd "$ac_pwd" || { ac_status=$?; break; }
1651e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
1652e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
1653e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1654e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -n "$ac_init_help" && exit $ac_status
1655e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif $ac_init_version; then
1656e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat <<\_ACEOF
1657e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlibusb-compat configure 0.1.3
1658e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevgenerated by GNU Autoconf 2.63
1659e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1660e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1661e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1662e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevThis configure script is free software; the Free Software Foundation
1663e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevgives unlimited permission to copy, distribute and modify it.
1664e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
1665e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exit
1666e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
1667e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >config.log <<_ACEOF
1668e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevThis file contains any messages produced by compilers while
1669e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrunning configure, to aid debugging if configure makes a mistake.
1670e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1671e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIt was created by libusb-compat $as_me 0.1.3, which was
1672e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevgenerated by GNU Autoconf 2.63.  Invocation command line was
1673e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1674e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $ $0 $@
1675e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1676e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
1677e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexec 5>>config.log
1678e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
1679e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat <<_ASUNAME
1680e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## --------- ##
1681e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## Platform. ##
1682e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## --------- ##
1683e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1684e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1685e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevuname -m = `(uname -m) 2>/dev/null || echo unknown`
1686e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevuname -r = `(uname -r) 2>/dev/null || echo unknown`
1687e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevuname -s = `(uname -s) 2>/dev/null || echo unknown`
1688e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevuname -v = `(uname -v) 2>/dev/null || echo unknown`
1689e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1690e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1691e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1692e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1693e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1694e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1695e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1696e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1697e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1698e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1699e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1700e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1701e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ASUNAME
1702e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1703e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
1705e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
1706e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
1707e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
1708e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "PATH: $as_dir"
1709e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
1710e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
1711e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1712e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev} >&5
1713e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1714e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >&5 <<_ACEOF
1715e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1716e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1717e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## ----------- ##
1718e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## Core tests. ##
1719e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## ----------- ##
1720e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1721e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
1722e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1723e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1724e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Keep a trace of the command line.
1725e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Strip out --no-create and --no-recursion so they do not pile up.
1726e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Strip out --silent because we don't want to record it for future runs.
1727e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Also quote any args containing shell meta-characters.
1728e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Make two passes to allow for proper duplicate-argument suppression.
1729e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_configure_args=
1730e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_configure_args0=
1731e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_configure_args1=
1732e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_must_keep_next=false
1733e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_pass in 1 2
1734e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
1735e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_arg
1736e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  do
1737e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $ac_arg in
1738e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1739e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1740e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    | -silent | --silent | --silen | --sile | --sil)
1741e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      continue ;;
1742e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *\'*)
1743e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1744e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
1745e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $ac_pass in
1746e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1747e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    2)
1748e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1749e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test $ac_must_keep_next = true; then
1750e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ac_must_keep_next=false # Got value, back to normal.
1751e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
1752e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case $ac_arg in
1753e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  *=* | --config-cache | -C | -disable-* | --disable-* \
1754e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1755e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1756e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  | -with-* | --with-* | -without-* | --without-* | --x)
1757e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    case "$ac_configure_args0 " in
1758e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1759e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    esac
1760e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    ;;
1761e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  -* ) ac_must_keep_next=true ;;
1762e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
1763e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
1764e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_configure_args="$ac_configure_args '$ac_arg'"
1765e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
1766e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
1767e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
1768e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
1769e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1770e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1771e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1772e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# When interrupted or exit'd, cleanup temporary files, and complete
1773e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# config.log.  We remove comments because anyway the quotes in there
1774e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# would cause problems or look ugly.
1775e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# WARNING: Use '\'' to represent an apostrophe within the trap.
1776e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1777e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtrap 'exit_status=$?
1778e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Save into config.log some information that might help in debugging.
1779e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  {
1780e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    echo
1781e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1782e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cat <<\_ASBOX
1783e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## ---------------- ##
1784e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## Cache variables. ##
1785e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## ---------------- ##
1786e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ASBOX
1787e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    echo
1788e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # The following way of writing the cache mishandles newlines in values,
1789e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev(
1790e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1791e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    eval ac_val=\$$ac_var
1792e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $ac_val in #(
1793e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *${as_nl}*)
1794e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $ac_var in #(
1795e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1796e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1797e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
1798e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $ac_var in #(
1799e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      _ | IFS | as_nl) ;; #(
1800e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1801e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *) $as_unset $ac_var ;;
1802e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac ;;
1803e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
1804e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
1805e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (set) 2>&1 |
1806e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1807e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *${as_nl}ac_space=\ *)
1808e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      sed -n \
1809e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	"s/'\''/'\''\\\\'\'''\''/g;
1810e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1811e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;; #(
1812e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)
1813e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1814e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
1815e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac |
1816e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sort
1817e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev)
1818e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    echo
1819e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1820e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cat <<\_ASBOX
1821e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## ----------------- ##
1822e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## Output variables. ##
1823e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## ----------------- ##
1824e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ASBOX
1825e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    echo
1826e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    for ac_var in $ac_subst_vars
1827e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    do
1828e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      eval ac_val=\$$ac_var
1829e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $ac_val in
1830e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1831e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
1832e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      $as_echo "$ac_var='\''$ac_val'\''"
1833e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    done | sort
1834e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    echo
1835e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1836e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -n "$ac_subst_files"; then
1837e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      cat <<\_ASBOX
1838e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## ------------------- ##
1839e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## File substitutions. ##
1840e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## ------------------- ##
1841e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ASBOX
1842e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      echo
1843e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      for ac_var in $ac_subst_files
1844e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      do
1845e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	eval ac_val=\$$ac_var
1846e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case $ac_val in
1847e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1848e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
1849e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	$as_echo "$ac_var='\''$ac_val'\''"
1850e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      done | sort
1851e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      echo
1852e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
1853e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1854e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -s confdefs.h; then
1855e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      cat <<\_ASBOX
1856e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## ----------- ##
1857e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## confdefs.h. ##
1858e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## ----------- ##
1859e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ASBOX
1860e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      echo
1861e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      cat confdefs.h
1862e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      echo
1863e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
1864e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test "$ac_signal" != 0 &&
1865e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      $as_echo "$as_me: caught signal $ac_signal"
1866e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me: exit $exit_status"
1867e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  } >&5
1868e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f core *.core core.conftest.* &&
1869e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1870e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    exit $exit_status
1871e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev' 0
1872e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_signal in 1 2 13 15; do
1873e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1874e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
1875e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_signal=0
1876e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1877e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# confdefs.h avoids OS command line length limits that DEFS can exceed.
1878e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f -r conftest* confdefs.h
1879e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1880e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Predefined preprocessor variables.
1881e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1882e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>confdefs.h <<_ACEOF
1883e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define PACKAGE_NAME "$PACKAGE_NAME"
1884e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
1885e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1886e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1887e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>confdefs.h <<_ACEOF
1888e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1889e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
1890e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1891e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1892e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>confdefs.h <<_ACEOF
1893e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define PACKAGE_VERSION "$PACKAGE_VERSION"
1894e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
1895e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1896e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1897e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>confdefs.h <<_ACEOF
1898e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define PACKAGE_STRING "$PACKAGE_STRING"
1899e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
1900e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1901e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1902e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>confdefs.h <<_ACEOF
1903e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1904e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
1905e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1906e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1907e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Let the site file select an alternate cache file if it wants to.
1908e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Prefer an explicitly selected file to automatically selected ones.
1909e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_site_file1=NONE
1910e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_site_file2=NONE
1911e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$CONFIG_SITE"; then
1912e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_site_file1=$CONFIG_SITE
1913e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelif test "x$prefix" != xNONE; then
1914e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_site_file1=$prefix/share/config.site
1915e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_site_file2=$prefix/etc/config.site
1916e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
1917e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_site_file1=$ac_default_prefix/share/config.site
1918e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_site_file2=$ac_default_prefix/etc/config.site
1919e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
1920e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
1921e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
1922e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "x$ac_site_file" = xNONE && continue
1923e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -r "$ac_site_file"; then
1924e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1925e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1926e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sed 's/^/| /' "$ac_site_file" >&5
1927e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    . "$ac_site_file"
1928e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
1929e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
1930e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1931e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -r "$cache_file"; then
1932e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Some versions of bash will fail to source /dev/null (special
1933e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # files actually), so we avoid doing that.
1934e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -f "$cache_file"; then
1935e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1936e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: loading cache $cache_file" >&6;}
1937e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $cache_file in
1938e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1939e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *)                      . "./$cache_file";;
1940e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
1941e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
1942e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
1943e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1944e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: creating cache $cache_file" >&6;}
1945e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  >$cache_file
1946e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
1947e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
1948e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check that the precious variables saved in the cache have kept the same
1949e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# value.
1950e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cache_corrupted=false
1951e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_var in $ac_precious_vars; do
1952e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1953e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  eval ac_new_set=\$ac_env_${ac_var}_set
1954e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1955e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  eval ac_new_val=\$ac_env_${ac_var}_value
1956e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_old_set,$ac_new_set in
1957e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    set,)
1958e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1959e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1960e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_cache_corrupted=: ;;
1961e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ,set)
1962e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1963e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1964e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_cache_corrupted=: ;;
1965e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ,);;
1966e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)
1967e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "x$ac_old_val" != "x$ac_new_val"; then
1968e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# differences in whitespace do not lead to failure.
1969e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ac_old_val_w=`echo x $ac_old_val`
1970e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ac_new_val_w=`echo x $ac_new_val`
1971e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1972e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1973e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1974e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ac_cache_corrupted=:
1975e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	else
1976e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1977e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1978e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  eval $ac_var=\$ac_old_val
1979e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi
1980e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1981e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1982e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1983e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1984e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi;;
1985e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
1986e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Pass precious variables to config.status.
1987e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$ac_new_set" = set; then
1988e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $ac_new_val in
1989e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1990e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *) ac_arg=$ac_var=$ac_new_val ;;
1991e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
1992e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case " $ac_configure_args " in
1993e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1994e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1995e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
1996e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
1997e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
1998e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif $ac_cache_corrupted; then
1999e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2000e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2001e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2002e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2003e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2004e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2005e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
2006e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2007e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2008e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2009e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2010e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2011e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2012e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2013e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2014e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2015e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2016e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2017e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2018e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2019e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2020e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2021e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2022e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2023e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2024e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2025e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2026e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2027e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2028e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2029e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2030e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2031e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2032e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ext=c
2033e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cpp='$CPP $CPPFLAGS'
2034e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compiler_gnu=$ac_cv_c_compiler_gnu
2037e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2038e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2039e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevam__api_version='1.10'
2040e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2041e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_aux_dir=
2042e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2043e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -f "$ac_dir/install-sh"; then
2044e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_aux_dir=$ac_dir
2045e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_install_sh="$ac_aux_dir/install-sh -c"
2046e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break
2047e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  elif test -f "$ac_dir/install.sh"; then
2048e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_aux_dir=$ac_dir
2049e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_install_sh="$ac_aux_dir/install.sh -c"
2050e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break
2051e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  elif test -f "$ac_dir/shtool"; then
2052e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_aux_dir=$ac_dir
2053e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_install_sh="$ac_aux_dir/shtool install -c"
2054e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break
2055e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2056e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2057e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$ac_aux_dir"; then
2058e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2059e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2060e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
2061e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2062e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2063e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# These three variables are undocumented and unsupported,
2064e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# and are intended to be withdrawn in a future Autoconf release.
2065e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# They can cause serious problems if a builder's source tree is in a directory
2066e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# whose full name contains unusual characters.
2067e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2068e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2069e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2070e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2071e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2072e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Find a good install program.  We prefer a C program (faster),
2073e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# so one script is as good as another.  But avoid the broken or
2074e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# incompatible versions:
2075e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# SysV /etc/install, /usr/sbin/install
2076e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# SunOS /usr/etc/install
2077e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# IRIX /sbin/install
2078e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# AIX /bin/install
2079e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# AmigaOS /C/install, which installs bootblocks on floppy discs
2080e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2081e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2082e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2083e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# OS/2's system install, which has a completely different semantic
2084e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# ./install, which can be erroneously created by make from ./install.sh.
2085e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Reject install programs that cannot install multiple files.
2086e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2087e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for a BSD-compatible install... " >&6; }
2088e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$INSTALL"; then
2089e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_path_install+set}" = set; then
2090e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
2091e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2092e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
2094e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
2095e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
2096e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
2097e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Account for people who put trailing slashes in PATH elements.
2098e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $as_dir/ in
2099e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ./ | .// | /cC/* | \
2100e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2101e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2102e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  /usr/ucb/* ) ;;
2103e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
2104e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # OSF1 and SCO ODT 3.0 have their own names for install.
2105e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Don't use installbsd from OSF since it installs stuff as root
2106e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # by default.
2107e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    for ac_prog in ginstall scoinst install; do
2108e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      for ac_exec_ext in '' $ac_executable_extensions; do
2109e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2110e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  if test $ac_prog = install &&
2111e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2112e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    # AIX install.  It has an incompatible calling convention.
2113e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    :
2114e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  elif test $ac_prog = install &&
2115e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2116e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    # program-specific install script used by HP pwplus--don't use.
2117e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    :
2118e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  else
2119e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    rm -rf conftest.one conftest.two conftest.dir
2120e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    echo one > conftest.one
2121e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    echo two > conftest.two
2122e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    mkdir conftest.dir
2123e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2124e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	      test -s conftest.one && test -s conftest.two &&
2125e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	      test -s conftest.dir/conftest.one &&
2126e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	      test -s conftest.dir/conftest.two
2127e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    then
2128e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2129e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	      break 3
2130e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    fi
2131e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  fi
2132e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi
2133e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      done
2134e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    done
2135e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
2136e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
2137e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2138e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2139e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
2140e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2141e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -rf conftest.one conftest.two conftest.dir
2142e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2143e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2144e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "${ac_cv_path_install+set}" = set; then
2145e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    INSTALL=$ac_cv_path_install
2146e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
2147e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # As a last resort, use the slow shell script.  Don't cache a
2148e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # value for INSTALL within a source directory, because that will
2149e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # break other packages using the cache if that directory is
2150e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # removed, or if the value is a relative name.
2151e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    INSTALL=$ac_install_sh
2152e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2153e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2154e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2155e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$INSTALL" >&6; }
2156e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2157e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2158e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# It thinks the first close brace ends the variable substitution.
2159e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2160e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2161e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2162e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2163e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2164e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2165e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2166e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether build environment is sane... " >&6; }
2167e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Just in case
2168e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsleep 1
2169e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevecho timestamp > conftest.file
2170e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Do `set' in a subshell so we don't clobber the current shell's
2171e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# arguments.  Must try -L first in case configure is actually a
2172e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# symlink; some systems play weird games with the mod time of symlinks
2173e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# (eg FreeBSD returns the mod time of the symlink's containing
2174e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# directory).
2175e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif (
2176e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2177e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   if test "$*" = "X"; then
2178e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # -L didn't work.
2179e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      set X `ls -t $srcdir/configure conftest.file`
2180e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   fi
2181e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   rm -f conftest.file
2182e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   if test "$*" != "X $srcdir/configure conftest.file" \
2183e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      && test "$*" != "X conftest.file $srcdir/configure"; then
2184e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2185e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # If neither matched, then we have a broken ls.  This can happen
2186e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # if, for instance, CONFIG_SHELL is bash and it inherits a
2187e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # broken ls alias from the environment.  This has actually
2188e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # happened.  Such a system could not be considered "sane".
2189e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2190e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevalias in your environment" >&5
2191e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2192e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevalias in your environment" >&2;}
2193e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
2194e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   fi
2195e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2196e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   test "$2" = conftest.file
2197e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   )
2198e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevthen
2199e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # Ok.
2200e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   :
2201e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2202e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2203e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCheck your system clock" >&5
2204e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: newly created file is older than distributed files!
2205e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCheck your system clock" >&2;}
2206e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
2207e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2208e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: yes" >&5
2209e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "yes" >&6; }
2210e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest "$program_prefix" != NONE &&
2211e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2212e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Use a double $ so make ignores it.
2213e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest "$program_suffix" != NONE &&
2214e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2215e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Double any \ or $.
2216e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# By default was `s,x,x', remove it if useless.
2217e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2218e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2219e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2220e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# expand $ac_aux_dir to an absolute path
2221e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevam_aux_dir=`cd $ac_aux_dir && pwd`
2222e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2223e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2224e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Use eval to expand $SHELL
2225e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif eval "$MISSING --run true"; then
2226e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  am_missing_run="$MISSING --run "
2227e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2228e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  am_missing_run=
2229e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2230e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2231e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2232e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2233e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2234e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2235e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$MKDIR_P"; then
2236e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "${ac_cv_path_mkdir+set}" = set; then
2237e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
2238e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2239e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2241e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
2242e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
2243e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
2244e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_prog in mkdir gmkdir; do
2245e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 for ac_exec_ext in '' $ac_executable_extensions; do
2246e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2247e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2248e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	     'mkdir (GNU coreutils) '* | \
2249e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	     'mkdir (coreutils) '* | \
2250e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	     'mkdir (fileutils) '4.1*)
2251e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2252e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	       break 3;;
2253e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   esac
2254e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 done
2255e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       done
2256e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2257e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
2258e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2259e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2260e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2261e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "${ac_cv_path_mkdir+set}" = set; then
2262e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    MKDIR_P="$ac_cv_path_mkdir -p"
2263e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
2264e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # As a last resort, use the slow shell script.  Don't cache a
2265e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # value for MKDIR_P within a source directory, because that will
2266e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # break other packages using the cache if that directory is
2267e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # removed, or if the value is a relative name.
2268e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test -d ./--version && rmdir ./--version
2269e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    MKDIR_P="$ac_install_sh -d"
2270e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2271e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2272e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2273e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$MKDIR_P" >&6; }
2274e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2275e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmkdir_p="$MKDIR_P"
2276e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $mkdir_p in
2277e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  [\\/$]* | ?:[\\/]*) ;;
2278e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2279e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
2280e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2281e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_prog in gawk mawk nawk awk
2282e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
2283e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "$ac_prog", so it can be a program name with args.
2284e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy $ac_prog; ac_word=$2
2285e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2286e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
2287e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_AWK+set}" = set; then
2288e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
2289e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2290e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$AWK"; then
2291e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2292e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2293e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
2295e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
2296e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
2297e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
2298e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
2299e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_AWK="$ac_prog"
2301e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
2303e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2304e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2305e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2306e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
2307e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2308e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2309e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2310e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAWK=$ac_cv_prog_AWK
2311e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$AWK"; then
2312e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2313e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$AWK" >&6; }
2314e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2315e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
2316e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
2317e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2318e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2319e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2320e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -n "$AWK" && break
2321e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2322e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2323e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2324e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2325e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset x ${MAKE-make}
2326e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2327e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2328e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
2329e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2330e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.make <<\_ACEOF
2331e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSHELL = /bin/sh
2332e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevall:
2333e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	@echo '@@@%%%=$(MAKE)=@@@%%%'
2334e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
2335e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2336e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2337e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *@@@%%%=?*=@@@%%%*)
2338e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    eval ac_cv_prog_make_${ac_make}_set=yes;;
2339e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
2340e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    eval ac_cv_prog_make_${ac_make}_set=no;;
2341e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
2342e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.make
2343e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2344e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2345e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: yes" >&5
2346e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "yes" >&6; }
2347e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  SET_MAKE=
2348e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2349e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
2350e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
2351e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  SET_MAKE="MAKE=${MAKE-make}"
2352e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2353e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2354e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -rf .tst 2>/dev/null
2355e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmkdir .tst 2>/dev/null
2356e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -d .tst; then
2357e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  am__leading_dot=.
2358e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2359e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  am__leading_dot=_
2360e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2361e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrmdir .tst 2>/dev/null
2362e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2363e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "`cd $srcdir && pwd`" != "`pwd`"; then
2364e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2365e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # is not polluted with repeated "-I."
2366e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  am__isrc=' -I$(srcdir)'
2367e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # test to see if srcdir already configured
2368e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -f $srcdir/config.status; then
2369e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2370e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2371e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
2372e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2373e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2374e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2375e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# test whether we have cygpath
2376e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$CYGPATH_W"; then
2377e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if (cygpath --version) >/dev/null 2>/dev/null; then
2378e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    CYGPATH_W='cygpath -w'
2379e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
2380e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    CYGPATH_W=echo
2381e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2382e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2383e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2384e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2385e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Define the identity of the package.
2386e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev PACKAGE='libusb-compat'
2387e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev VERSION='0.1.3'
2388e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2389e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2390e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>confdefs.h <<_ACEOF
2391e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define PACKAGE "$PACKAGE"
2392e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
2393e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2394e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2395e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>confdefs.h <<_ACEOF
2396e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define VERSION "$VERSION"
2397e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
2398e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2399e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Some tools Automake needs.
2400e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2401e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2402e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2403e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2404e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2405e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2406e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2407e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2408e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2409e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2410e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2411e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2412e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2413e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2414e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2415e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevinstall_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2416e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2417e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Installed binaries are usually stripped using `strip' when the user
2418e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# run `make install-strip'.  However `strip' might not be the right
2419e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# tool to use in cross-compilation environments, therefore Automake
2420e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# will honor the `STRIP' environment variable to overrule this program.
2421e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$cross_compiling" != no; then
2422e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_tool_prefix"; then
2423e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2424e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy ${ac_tool_prefix}strip; ac_word=$2
2425e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2426e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
2427e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_STRIP+set}" = set; then
2428e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
2429e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2430e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$STRIP"; then
2431e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2432e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2433e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
2435e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
2436e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
2437e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
2438e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
2439e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2441e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
2443e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2444e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2445e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2446e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
2447e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2448e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2449e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2450e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSTRIP=$ac_cv_prog_STRIP
2451e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$STRIP"; then
2452e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2453e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$STRIP" >&6; }
2454e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2455e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
2456e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
2457e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2458e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2459e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2460e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2461e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$ac_cv_prog_STRIP"; then
2462e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_ct_STRIP=$STRIP
2463e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "strip", so it can be a program name with args.
2464e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy strip; ac_word=$2
2465e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2466e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
2467e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2468e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
2469e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2470e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_ct_STRIP"; then
2471e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2472e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2473e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
2475e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
2476e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
2477e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
2478e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
2479e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_ac_ct_STRIP="strip"
2481e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
2483e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2484e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2485e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2486e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
2487e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2488e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2489e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2490e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2491e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_ct_STRIP"; then
2492e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2493e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_ct_STRIP" >&6; }
2494e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2495e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
2496e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
2497e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2498e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2499e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$ac_ct_STRIP" = x; then
2500e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    STRIP=":"
2501e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
2502e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $cross_compiling:$ac_tool_warned in
2503e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevyes:)
2504e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2505e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2506e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_tool_warned=yes ;;
2507e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
2508e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    STRIP=$ac_ct_STRIP
2509e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2510e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2511e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  STRIP="$ac_cv_prog_STRIP"
2512e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2513e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2514e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2515e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2516e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2517e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# We need awk for the "check" target.  The system "awk" is bad on
2518e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# some platforms.
2519e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Always define AMTAR for backward compatibility.
2520e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2521e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAMTAR=${AMTAR-"${am_missing_run}tar"}
2522e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2523e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2524e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2525e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2526e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2527e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2528e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2529e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2530e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_config_headers="$ac_config_headers config.h"
2531e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2532e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2533e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2534e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2535e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ext=c
2536e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cpp='$CPP $CPPFLAGS'
2537e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compiler_gnu=$ac_cv_c_compiler_gnu
2540e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_tool_prefix"; then
2541e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2542e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy ${ac_tool_prefix}gcc; ac_word=$2
2543e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2544e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
2545e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_CC+set}" = set; then
2546e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
2547e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2548e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$CC"; then
2549e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_CC="$CC" # Let the user override the test.
2550e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2551e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
2553e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
2554e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
2555e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
2556e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
2557e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2559e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
2561e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2562e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2563e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2564e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
2565e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2566e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2567e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2568e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCC=$ac_cv_prog_CC
2569e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$CC"; then
2570e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2571e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$CC" >&6; }
2572e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2573e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
2574e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
2575e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2576e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2577e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2578e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2579e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$ac_cv_prog_CC"; then
2580e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_ct_CC=$CC
2581e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "gcc", so it can be a program name with args.
2582e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy gcc; ac_word=$2
2583e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2584e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
2585e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2586e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
2587e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2588e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_ct_CC"; then
2589e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2590e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2591e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
2593e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
2594e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
2595e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
2596e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
2597e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_ac_ct_CC="gcc"
2599e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
2601e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2602e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2603e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2604e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
2605e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2606e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2607e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2608e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ct_CC=$ac_cv_prog_ac_ct_CC
2609e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_ct_CC"; then
2610e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2611e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_ct_CC" >&6; }
2612e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2613e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
2614e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
2615e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2616e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2617e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$ac_ct_CC" = x; then
2618e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    CC=""
2619e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
2620e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $cross_compiling:$ac_tool_warned in
2621e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevyes:)
2622e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2623e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2624e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_tool_warned=yes ;;
2625e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
2626e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    CC=$ac_ct_CC
2627e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2628e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2629e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  CC="$ac_cv_prog_CC"
2630e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2631e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2632e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$CC"; then
2633e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev          if test -n "$ac_tool_prefix"; then
2634e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2635e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy ${ac_tool_prefix}cc; ac_word=$2
2636e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2637e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
2638e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_CC+set}" = set; then
2639e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
2640e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2641e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$CC"; then
2642e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_CC="$CC" # Let the user override the test.
2643e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2644e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
2646e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
2647e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
2648e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
2649e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
2650e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_CC="${ac_tool_prefix}cc"
2652e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
2654e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2655e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2656e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2657e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
2658e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2659e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2660e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2661e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCC=$ac_cv_prog_CC
2662e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$CC"; then
2663e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2664e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$CC" >&6; }
2665e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2666e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
2667e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
2668e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2669e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2670e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2671e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2672e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2673e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$CC"; then
2674e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "cc", so it can be a program name with args.
2675e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy cc; ac_word=$2
2676e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2677e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
2678e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_CC+set}" = set; then
2679e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
2680e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2681e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$CC"; then
2682e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_CC="$CC" # Let the user override the test.
2683e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2684e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_prog_rejected=no
2685e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
2687e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
2688e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
2689e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
2690e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
2691e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2693e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       ac_prog_rejected=yes
2694e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       continue
2695e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     fi
2696e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_CC="cc"
2697e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
2699e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2700e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2701e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2702e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
2703e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2704e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test $ac_prog_rejected = yes; then
2705e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # We found a bogon in the path, so make sure we never use it.
2706e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  set dummy $ac_cv_prog_CC
2707e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shift
2708e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test $# != 0; then
2709e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # We chose a different compiler from the bogus one.
2710e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # However, it has the same basename, so the bogon will be chosen
2711e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # first if we set CC to just the basename; use the full file name.
2712e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shift
2713e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2714e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2715e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2716e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2717e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2718e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCC=$ac_cv_prog_CC
2719e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$CC"; then
2720e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2721e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$CC" >&6; }
2722e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2723e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
2724e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
2725e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2726e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2727e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2728e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2729e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$CC"; then
2730e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_tool_prefix"; then
2731e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_prog in cl.exe
2732e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  do
2733e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2734e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2735e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2736e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
2737e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_CC+set}" = set; then
2738e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
2739e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2740e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$CC"; then
2741e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_CC="$CC" # Let the user override the test.
2742e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2743e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
2745e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
2746e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
2747e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
2748e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
2749e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2751e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
2753e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2754e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2755e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2756e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
2757e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2758e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2759e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2760e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCC=$ac_cv_prog_CC
2761e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$CC"; then
2762e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2763e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$CC" >&6; }
2764e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2765e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
2766e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
2767e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2768e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2769e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2770e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test -n "$CC" && break
2771e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
2772e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2773e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$CC"; then
2774e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_ct_CC=$CC
2775e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_prog in cl.exe
2776e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
2777e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "$ac_prog", so it can be a program name with args.
2778e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy $ac_prog; ac_word=$2
2779e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2780e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
2781e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2782e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
2783e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2784e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_ct_CC"; then
2785e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2786e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2787e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
2789e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
2790e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
2791e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
2792e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
2793e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_ac_ct_CC="$ac_prog"
2795e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
2797e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2798e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2799e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2800e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
2801e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2802e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2803e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2804e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ct_CC=$ac_cv_prog_ac_ct_CC
2805e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_ct_CC"; then
2806e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2807e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_ct_CC" >&6; }
2808e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2809e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
2810e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
2811e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2812e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2813e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2814e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -n "$ac_ct_CC" && break
2815e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2816e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2817e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$ac_ct_CC" = x; then
2818e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    CC=""
2819e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
2820e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $cross_compiling:$ac_tool_warned in
2821e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevyes:)
2822e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2823e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2824e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_tool_warned=yes ;;
2825e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
2826e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    CC=$ac_ct_CC
2827e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
2828e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2829e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2830e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2831e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2832e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2833e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2834e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2835e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2836e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee \`config.log' for more details." >&5
2837e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2838e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee \`config.log' for more details." >&2;}
2839e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }; }
2840e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2841e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Provide some information about the compiler.
2842e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2843e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset X $ac_compile
2844e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compiler=$2
2845e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ (ac_try="$ac_compiler --version >&5"
2846e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
2847e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
2849e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
2850e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2851e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
2852e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_compiler --version >&5") 2>&5
2853e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
2854e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); }
2856e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ (ac_try="$ac_compiler -v >&5"
2857e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
2858e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
2860e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
2861e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2862e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
2863e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_compiler -v >&5") 2>&5
2864e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
2865e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); }
2867e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ (ac_try="$ac_compiler -V >&5"
2868e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
2869e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
2871e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
2872e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2873e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
2874e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_compiler -V >&5") 2>&5
2875e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
2876e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); }
2878e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2879e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >conftest.$ac_ext <<_ACEOF
2880e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
2881e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
2882e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
2883e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
2884e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
2885e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2886e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
2887e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
2888e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
2889e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2890e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
2891e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
2892e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
2893e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
2894e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_clean_files_save=$ac_clean_files
2895e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2896e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Try to create an executable without -o first, disregard a.out.
2897e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# It will help us diagnose broken compilers, and finding out an intuition
2898e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# of exeext.
2899e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2900e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for C compiler default output file name... " >&6; }
2901e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2902e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2903e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The possible output files:
2904e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2905e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2906e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_rmfiles=
2907e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_file in $ac_files
2908e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
2909e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_file in
2910e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2911e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2912e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
2913e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2914e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f $ac_rmfiles
2915e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2916e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_link_default"
2917e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
2918e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
2920e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
2921e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2922e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
2923e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_link_default") 2>&5
2924e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
2925e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); }; then
2927e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2928e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2929e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2930e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# so that the user can short-circuit this test for compilers unknown to
2931e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Autoconf.
2932e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_file in $ac_files ''
2933e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
2934e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -f "$ac_file" || continue
2935e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_file in
2936e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2937e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
2938e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    [ab].out )
2939e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# We found the default executable, but exeext='' is most
2940e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# certainly right.
2941e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	break;;
2942e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *.* )
2943e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2944e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	then :; else
2945e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2946e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi
2947e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# We set ac_cv_exeext here because the later test for it is not
2948e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# safe: cross compilers may not add the suffix if given an `-o'
2949e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# argument, so we may need to know it at that point already.
2950e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# Even if this section looks crufty: it has the advantage of
2951e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# actually working.
2952e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	break;;
2953e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    * )
2954e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	break;;
2955e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
2956e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
2957e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest "$ac_cv_exeext" = no && ac_cv_exeext=
2958e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2959e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
2960e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_file=''
2961e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2962e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2963e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2964e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_file" >&6; }
2965e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$ac_file"; then
2966e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
2967e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
2968e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2969e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2970e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2972e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee \`config.log' for more details." >&5
2973e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: C compiler cannot create executables
2974e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee \`config.log' for more details." >&2;}
2975e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 77); exit 77; }; }; }
2976e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
2977e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2978e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_exeext=$ac_cv_exeext
2979e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
2980e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check that the compiler produces executables we can run.  If not, either
2981e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# the compiler is broken, or we cross compile.
2982e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2983e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether the C compiler works... " >&6; }
2984e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2985e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# If not cross compiling, check that we can run a simple program.
2986e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$cross_compiling" != yes; then
2987e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { ac_try='./$ac_file'
2988e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { (case "(($ac_try" in
2989e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
2991e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
2992e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2993e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
2994e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_try") 2>&5
2995e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
2996e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); }; }; then
2998e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cross_compiling=no
2999e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
3000e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test "$cross_compiling" = maybe; then
3001e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	cross_compiling=yes
3002e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    else
3003e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3004e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3005e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3006e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIf you meant to cross compile, use \`--host'.
3007e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee \`config.log' for more details." >&5
3008e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: cannot run C compiled programs.
3009e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIf you meant to cross compile, use \`--host'.
3010e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee \`config.log' for more details." >&2;}
3011e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }; }
3012e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
3013e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
3014e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3015e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: yes" >&5
3016e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "yes" >&6; }
3017e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3018e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3019e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_clean_files=$ac_clean_files_save
3020e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check that the compiler produces executables we can run.  If not, either
3021e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# the compiler is broken, or we cross compile.
3022e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3023e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether we are cross compiling... " >&6; }
3024e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3025e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$cross_compiling" >&6; }
3026e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3027e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3028e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for suffix of executables... " >&6; }
3029e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_link"
3030e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
3031e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
3033e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
3034e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3035e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
3036e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_link") 2>&5
3037e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
3038e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); }; then
3040e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3041e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3042e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# work properly (i.e., refer to `conftest.exe'), while it won't with
3043e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# `rm'.
3044e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_file in conftest.exe conftest conftest.*; do
3045e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -f "$ac_file" || continue
3046e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_file in
3047e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3048e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3049e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  break;;
3050e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    * ) break;;
3051e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
3052e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
3053e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3054e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3055e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3057e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee \`config.log' for more details." >&5
3058e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3059e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee \`config.log' for more details." >&2;}
3060e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }; }
3061e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3062e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3063e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest$ac_cv_exeext
3064e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3065e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_exeext" >&6; }
3066e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3067e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_ext
3068e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevEXEEXT=$ac_cv_exeext
3069e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_exeext=$EXEEXT
3070e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3071e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for suffix of object files... " >&6; }
3072e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_objext+set}" = set; then
3073e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
3074e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3075e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.$ac_ext <<_ACEOF
3076e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
3077e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
3078e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
3079e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
3080e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
3081e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3082e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
3083e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
3084e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
3085e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3086e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
3087e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
3088e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
3089e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
3090e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.o conftest.obj
3091e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_compile"
3092e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
3093e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
3095e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
3096e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3097e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
3098e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_compile") 2>&5
3099e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
3100e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); }; then
3102e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_file in conftest.o conftest.obj conftest.*; do
3103e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -f "$ac_file" || continue;
3104e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_file in
3105e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3106e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3107e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       break;;
3108e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
3109e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
3110e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3111e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
3112e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
3113e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3114e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3115e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3117e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee \`config.log' for more details." >&5
3118e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3119e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee \`config.log' for more details." >&2;}
3120e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }; }
3121e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3122e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3123e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_cv_objext conftest.$ac_ext
3124e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3125e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3126e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_objext" >&6; }
3127e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOBJEXT=$ac_cv_objext
3128e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_objext=$OBJEXT
3129e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3130e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3131e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_c_compiler_gnu+set}" = set; then
3132e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
3133e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3134e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.$ac_ext <<_ACEOF
3135e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
3136e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
3137e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
3138e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
3139e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
3140e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3141e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
3142e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
3143e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
3144e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifndef __GNUC__
3145e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       choke me
3146e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
3147e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3148e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
3149e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
3150e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
3151e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
3152e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext
3153e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_compile"
3154e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
3155e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
3157e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
3158e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3159e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
3160e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_compile") 2>conftest.er1
3161e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
3162e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
3163e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
3164e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
3165e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
3167e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
3168e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
3169e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest.$ac_objext; then
3170e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_compiler_gnu=yes
3171e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3172e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
3173e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
3174e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3175e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ac_compiler_gnu=no
3176e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3177e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3178e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cv_c_compiler_gnu=$ac_compiler_gnu
3180e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3181e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3182e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3183e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3184e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test $ac_compiler_gnu = yes; then
3185e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  GCC=yes
3186e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3187e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  GCC=
3188e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3189e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_test_CFLAGS=${CFLAGS+set}
3190e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_save_CFLAGS=$CFLAGS
3191e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3192e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether $CC accepts -g... " >&6; }
3193e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_cc_g+set}" = set; then
3194e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
3195e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3196e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_save_c_werror_flag=$ac_c_werror_flag
3197e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   ac_c_werror_flag=yes
3198e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   ac_cv_prog_cc_g=no
3199e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   CFLAGS="-g"
3200e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   cat >conftest.$ac_ext <<_ACEOF
3201e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
3202e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
3203e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
3204e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
3205e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
3206e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3207e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
3208e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
3209e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
3210e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3211e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
3212e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
3213e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
3214e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
3215e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext
3216e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_compile"
3217e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
3218e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
3220e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
3221e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3222e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
3223e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_compile") 2>conftest.er1
3224e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
3225e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
3226e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
3227e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
3228e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
3230e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
3231e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
3232e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest.$ac_objext; then
3233e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_cc_g=yes
3234e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3235e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
3236e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
3237e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3238e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	CFLAGS=""
3239e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      cat >conftest.$ac_ext <<_ACEOF
3240e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
3241e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
3242e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
3243e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
3244e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
3245e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3246e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
3247e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
3248e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
3249e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3250e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
3251e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
3252e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
3253e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
3254e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext
3255e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_compile"
3256e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
3257e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
3259e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
3260e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3261e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
3262e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_compile") 2>conftest.er1
3263e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
3264e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
3265e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
3266e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
3267e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
3269e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
3270e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
3271e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest.$ac_objext; then
3272e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
3273e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3274e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
3275e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
3276e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3277e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ac_c_werror_flag=$ac_save_c_werror_flag
3278e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 CFLAGS="-g"
3279e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 cat >conftest.$ac_ext <<_ACEOF
3280e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
3281e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
3282e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
3283e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
3284e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
3285e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3286e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
3287e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
3288e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
3289e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3290e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
3291e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
3292e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
3293e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
3294e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext
3295e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_compile"
3296e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
3297e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
3299e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
3300e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3301e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
3302e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_compile") 2>conftest.er1
3303e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
3304e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
3305e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
3306e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
3307e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
3309e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
3310e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
3311e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest.$ac_objext; then
3312e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_cc_g=yes
3313e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3314e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
3315e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
3316e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3317e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3318e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3319e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3320e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3321e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3322e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3323e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3325e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3326e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   ac_c_werror_flag=$ac_save_c_werror_flag
3328e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3329e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3330e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_prog_cc_g" >&6; }
3331e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$ac_test_CFLAGS" = set; then
3332e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  CFLAGS=$ac_save_CFLAGS
3333e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelif test $ac_cv_prog_cc_g = yes; then
3334e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$GCC" = yes; then
3335e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    CFLAGS="-g -O2"
3336e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
3337e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    CFLAGS="-g"
3338e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
3339e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3340e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$GCC" = yes; then
3341e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    CFLAGS="-O2"
3342e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
3343e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    CFLAGS=
3344e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
3345e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3346e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3347e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3348e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_cc_c89+set}" = set; then
3349e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
3350e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3351e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_cc_c89=no
3352e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_save_CC=$CC
3353e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >conftest.$ac_ext <<_ACEOF
3354e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
3355e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
3356e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
3357e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
3358e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
3359e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <stdarg.h>
3360e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <stdio.h>
3361e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <sys/types.h>
3362e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <sys/stat.h>
3363e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3364e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevstruct buf { int x; };
3365e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevFILE * (*rcsopen) (struct buf *, struct stat *, int);
3366e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevstatic char *e (p, i)
3367e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     char **p;
3368e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     int i;
3369e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
3370e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return p[i];
3371e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
3372e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevstatic char *f (char * (*g) (char **, int), char **p, ...)
3373e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
3374e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  char *s;
3375e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  va_list v;
3376e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  va_start (v,p);
3377e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  s = g (p, va_arg (v,int));
3378e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  va_end (v);
3379e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return s;
3380e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
3381e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3382e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3383e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   function prototypes and stuff, but not '\xHH' hex character constants.
3384e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   These don't provoke an error unfortunately, instead are silently treated
3385e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   as 'x'.  The following induces an error, until -std is added to get
3386e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3387e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   array size at least.  It's necessary to write '\x00'==0 to get something
3388e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   that's true only with -std.  */
3389e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3390e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3391e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3392e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   inside strings and character constants.  */
3393e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define FOO(x) 'x'
3394e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3395e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3396e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint test (int i, double x);
3397e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevstruct s1 {int (*f) (int a);};
3398e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevstruct s2 {int (*f) (double a);};
3399e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3400e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint argc;
3401e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevchar **argv;
3402e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
3403e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
3404e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
3405e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3406e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
3407e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
3408e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
3409e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
3410e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3411e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3412e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
3413e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  CC="$ac_save_CC $ac_arg"
3414e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.$ac_objext
3415e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_compile"
3416e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
3417e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
3419e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
3420e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3421e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
3422e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_compile") 2>conftest.er1
3423e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
3424e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
3425e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
3426e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
3427e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
3429e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
3430e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
3431e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest.$ac_objext; then
3432e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_cc_c89=$ac_arg
3433e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3434e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
3435e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
3436e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3437e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3438e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3439e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3440e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext
3441e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "x$ac_cv_prog_cc_c89" != "xno" && break
3442e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
3443e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_ext
3444e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCC=$ac_save_CC
3445e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3446e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3447e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# AC_CACHE_VAL
3448e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "x$ac_cv_prog_cc_c89" in
3449e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  x)
3450e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3451e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "none needed" >&6; } ;;
3452e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  xno)
3453e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3454e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "unsupported" >&6; } ;;
3455e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
3456e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    CC="$CC $ac_cv_prog_cc_c89"
3457e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3458e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3459e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
3460e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3461e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3462e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ext=c
3463e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cpp='$CPP $CPPFLAGS'
3464e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compiler_gnu=$ac_cv_c_compiler_gnu
3467e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevDEPDIR="${am__leading_dot}deps"
3468e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3469e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_config_commands="$ac_config_commands depfiles"
3470e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3471e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3472e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevam_make=${MAKE-make}
3473e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat > confinc << 'END'
3474e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevam__doit:
3475e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	@echo done
3476e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev.PHONY: am__doit
3477e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevEND
3478e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# If we don't find an include directive, just comment out the code.
3479e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3480e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for style of include used by $am_make... " >&6; }
3481e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevam__include="#"
3482e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevam__quote=
3483e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_am_result=none
3484e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# First try GNU make style include.
3485e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevecho "include confinc" > confmf
3486e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# We grep out `Entering directory' and `Leaving directory'
3487e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# messages which can occur if `w' ends up in MAKEFLAGS.
3488e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# In particular we don't look at `^make:' because GNU make might
3489e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# be invoked under some other name (usually "gmake"), in which
3490e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# case it prints its new name instead of `make'.
3491e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3492e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   am__include=include
3493e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   am__quote=
3494e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   _am_result=GNU
3495e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3496e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Now try BSD make style include.
3497e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$am__include" = "#"; then
3498e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   echo '.include "confinc"' > confmf
3499e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3500e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      am__include=.include
3501e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      am__quote="\""
3502e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      _am_result=BSD
3503e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   fi
3504e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3505e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3506e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3507e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3508e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$_am_result" >&6; }
3509e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f confinc confmf
3510e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3511e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check whether --enable-dependency-tracking was given.
3512e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${enable_dependency_tracking+set}" = set; then
3513e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enableval=$enable_dependency_tracking;
3514e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3515e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3516e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "x$enable_dependency_tracking" != xno; then
3517e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  am_depcomp="$ac_aux_dir/depcomp"
3518e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  AMDEPBACKSLASH='\'
3519e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3520e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev if test "x$enable_dependency_tracking" != xno; then
3521e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  AMDEP_TRUE=
3522e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  AMDEP_FALSE='#'
3523e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3524e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  AMDEP_TRUE='#'
3525e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  AMDEP_FALSE=
3526e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3527e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3528e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3529e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3530e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdepcc="$CC"   am_compiler_list=
3531e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3532e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3533e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking dependency style of $depcc... " >&6; }
3534e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3535e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
3536e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3537e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3538e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # We make a subdir and do the tests there.  Otherwise we can end up
3539e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # making bogus files that we don't know about and never remove.  For
3540e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # instance it was reported that on HP-UX the gcc test will end up
3541e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # making a dummy file named `D' -- because `-MD' means `put the output
3542e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # in D'.
3543e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  mkdir conftest.dir
3544e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Copy depcomp to subdir because otherwise we won't find it if we're
3545e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # using a relative directory.
3546e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cp "$am_depcomp" conftest.dir
3547e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cd conftest.dir
3548e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # We will build objects and dependencies in a subdirectory because
3549e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # it helps to detect inapplicable dependency modes.  For instance
3550e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # both Tru64's cc and ICC support -MD to output dependencies as a
3551e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # side effect of compilation, but ICC will put the dependencies in
3552e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # the current directory while Tru64 will put them in the object
3553e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # directory.
3554e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  mkdir sub
3555e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3556e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  am_cv_CC_dependencies_compiler_type=none
3557e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$am_compiler_list" = ""; then
3558e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3559e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
3560e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for depmode in $am_compiler_list; do
3561e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Setup a source with many dependencies, because some compilers
3562e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # like to wrap large dependency lists on column 80 (with \), and
3563e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # we should not choose a depcomp mode which is confused by this.
3564e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    #
3565e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # We need to recreate these files for each test, as the compiler may
3566e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # overwrite some of them when testing with obscure command lines.
3567e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # This happens at least with the AIX C compiler.
3568e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    : > sub/conftest.c
3569e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    for i in 1 2 3 4 5 6; do
3570e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3571e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3572e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Solaris 8's {/usr,}/bin/sh.
3573e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      touch sub/conftst$i.h
3574e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    done
3575e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3576e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3577e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $depmode in
3578e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    nosideeffect)
3579e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # after this tag, mechanisms are not by side-effect, so they'll
3580e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # only be used when explicitly requested
3581e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "x$enable_dependency_tracking" = xyes; then
3582e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	continue
3583e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
3584e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	break
3585e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
3586e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
3587e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    none) break ;;
3588e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
3589e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3590e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # mode.  It turns out that the SunPro C++ compiler does not properly
3591e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # handle `-M -o', and we need to detect this.
3592e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if depmode=$depmode \
3593e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3594e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3595e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3596e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev         >/dev/null 2>conftest.err &&
3597e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3598e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3599e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3600e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3601e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # icc doesn't choke on unknown options, it will just issue warnings
3602e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # or remarks (even with -Werror).  So we grep stderr for any message
3603e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # that says an option was ignored or not supported.
3604e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # When given -MP, icc 7.0 and 7.1 complain thusly:
3605e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      #   icc: Command line warning: ignoring option '-M'; no argument required
3606e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # The diagnosis changed in icc 8.0:
3607e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      #   icc: Command line remark: option '-MP' not supported
3608e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if (grep 'ignoring option' conftest.err ||
3609e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3610e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        am_cv_CC_dependencies_compiler_type=$depmode
3611e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        break
3612e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
3613e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
3614e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
3615e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3616e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cd ..
3617e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -rf conftest.dir
3618e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3619e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  am_cv_CC_dependencies_compiler_type=none
3620e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3621e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3622e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3623e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3624e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3625e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3626e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3627e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev if
3628e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "x$enable_dependency_tracking" != xno \
3629e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3630e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  am__fastdepCC_TRUE=
3631e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  am__fastdepCC_FALSE='#'
3632e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3633e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  am__fastdepCC_TRUE='#'
3634e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  am__fastdepCC_FALSE=
3635e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3636e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3637e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3638e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase `pwd` in
3639e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\ * | *\	*)
3640e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3641e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3642e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
3643e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3644e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3645e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3646e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmacro_version='2.2.6'
3647e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmacro_revision='1.3012'
3648e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3649e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3650e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3651e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3652e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3653e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3654e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3655e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3656e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3657e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3658e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3659e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3660e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3661e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevltmain="$ac_aux_dir/ltmain.sh"
3662e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3663e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Make sure we can run config.sub.
3664e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3665e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3666e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3667e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
3668e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3669e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3670e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking build system type... " >&6; }
3671e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_build+set}" = set; then
3672e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
3673e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3674e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_build_alias=$build_alias
3675e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest "x$ac_build_alias" = x &&
3676e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3677e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest "x$ac_build_alias" = x &&
3678e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3679e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3680e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
3681e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3682e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3683e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3684e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
3685e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3686e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3687e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3688e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_build" >&6; }
3689e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $ac_cv_build in
3690e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*-*-*) ;;
3691e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3692e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3693e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; };;
3694e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
3695e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild=$ac_cv_build
3696e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_save_IFS=$IFS; IFS='-'
3697e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset x $ac_cv_build
3698e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevshift
3699e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild_cpu=$1
3700e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild_vendor=$2
3701e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevshift; shift
3702e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Remember, the first character of IFS is used to create $*,
3703e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# except with old shells:
3704e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild_os=$*
3705e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$ac_save_IFS
3706e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3707e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3708e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3709e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3710e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking host system type... " >&6; }
3711e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_host+set}" = set; then
3712e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
3713e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3714e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$host_alias" = x; then
3715e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_host=$ac_cv_build
3716e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3717e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3718e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3719e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3720e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
3721e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3722e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3723e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3724e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3725e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_host" >&6; }
3726e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $ac_cv_host in
3727e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*-*-*) ;;
3728e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3729e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3730e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; };;
3731e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
3732e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhost=$ac_cv_host
3733e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_save_IFS=$IFS; IFS='-'
3734e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset x $ac_cv_host
3735e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevshift
3736e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhost_cpu=$1
3737e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhost_vendor=$2
3738e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevshift; shift
3739e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Remember, the first character of IFS is used to create $*,
3740e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# except with old shells:
3741e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhost_os=$*
3742e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$ac_save_IFS
3743e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3744e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3745e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3746e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3747e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3748e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_path_SED+set}" = set; then
3749e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
3750e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3751e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3752e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     for ac_i in 1 2 3 4 5 6 7; do
3753e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       ac_script="$ac_script$as_nl$ac_script"
3754e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     done
3755e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3756e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     $as_unset ac_script || ac_script=
3757e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     if test -z "$SED"; then
3758e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_path_SED_found=false
3759e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Loop through the user's path and test for each of PROGNAME-LIST
3760e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
3762e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
3763e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
3764e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
3765e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_prog in sed gsed; do
3766e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    for ac_exec_ext in '' $ac_executable_extensions; do
3767e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3768e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3769e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check for GNU ac_path_SED and select it if it is found.
3770e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Check for GNU $ac_path_SED
3771e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase `"$ac_path_SED" --version 2>&1` in
3772e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*GNU*)
3773e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3774e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*)
3775e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_count=0
3776e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n 0123456789 >"conftest.in"
3777e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  while :
3778e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  do
3779e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cat "conftest.in" "conftest.in" >"conftest.tmp"
3780e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    mv "conftest.tmp" "conftest.in"
3781e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cp "conftest.in" "conftest.nl"
3782e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo '' >> "conftest.nl"
3783e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3784e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3785e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_count=`expr $ac_count + 1`
3786e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test $ac_count -gt ${ac_path_SED_max-0}; then
3787e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Best one so far, save it but keep looking for a better one
3788e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_cv_path_SED="$ac_path_SED"
3789e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_path_SED_max=$ac_count
3790e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
3791e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # 10*(2^10) chars as input seems more than enough
3792e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test $ac_count -gt 10 && break
3793e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
3794e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3795e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
3796e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3797e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      $ac_path_SED_found && break 3
3798e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    done
3799e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
3800e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
3801e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
3802e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -z "$ac_cv_path_SED"; then
3803e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3804e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3805e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
3806e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
3807e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3808e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_path_SED=$SED
3809e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3810e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3811e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3812e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3813e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_path_SED" >&6; }
3814e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev SED="$ac_cv_path_SED"
3815e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.sed
3816e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3817e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$SED" && SED=sed
3818e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevXsed="$SED -e 1s/^X//"
3819e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3820e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3821e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3822e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3823e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3824e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3825e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3826e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3827e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3828e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3829e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3830e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3831e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3832e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_path_GREP+set}" = set; then
3833e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
3834e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3835e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -z "$GREP"; then
3836e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_path_GREP_found=false
3837e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Loop through the user's path and test for each of PROGNAME-LIST
3838e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3840e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
3841e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
3842e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
3843e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_prog in grep ggrep; do
3844e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    for ac_exec_ext in '' $ac_executable_extensions; do
3845e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3846e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3847e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check for GNU ac_path_GREP and select it if it is found.
3848e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Check for GNU $ac_path_GREP
3849e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase `"$ac_path_GREP" --version 2>&1` in
3850e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*GNU*)
3851e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3852e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*)
3853e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_count=0
3854e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n 0123456789 >"conftest.in"
3855e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  while :
3856e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  do
3857e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cat "conftest.in" "conftest.in" >"conftest.tmp"
3858e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    mv "conftest.tmp" "conftest.in"
3859e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cp "conftest.in" "conftest.nl"
3860e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo 'GREP' >> "conftest.nl"
3861e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3862e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3863e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_count=`expr $ac_count + 1`
3864e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3865e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Best one so far, save it but keep looking for a better one
3866e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_cv_path_GREP="$ac_path_GREP"
3867e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_path_GREP_max=$ac_count
3868e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
3869e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # 10*(2^10) chars as input seems more than enough
3870e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test $ac_count -gt 10 && break
3871e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
3872e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3873e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
3874e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3875e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      $ac_path_GREP_found && break 3
3876e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    done
3877e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
3878e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
3879e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
3880e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -z "$ac_cv_path_GREP"; then
3881e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3882e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3883e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
3884e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
3885e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3886e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_path_GREP=$GREP
3887e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3888e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3889e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3890e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3891e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_path_GREP" >&6; }
3892e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev GREP="$ac_cv_path_GREP"
3893e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3894e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3895e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3896e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for egrep... " >&6; }
3897e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_path_EGREP+set}" = set; then
3898e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
3899e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3900e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3901e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   then ac_cv_path_EGREP="$GREP -E"
3902e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   else
3903e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     if test -z "$EGREP"; then
3904e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_path_EGREP_found=false
3905e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Loop through the user's path and test for each of PROGNAME-LIST
3906e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3908e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
3909e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
3910e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
3911e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_prog in egrep; do
3912e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    for ac_exec_ext in '' $ac_executable_extensions; do
3913e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3914e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3915e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check for GNU ac_path_EGREP and select it if it is found.
3916e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Check for GNU $ac_path_EGREP
3917e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase `"$ac_path_EGREP" --version 2>&1` in
3918e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*GNU*)
3919e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3920e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*)
3921e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_count=0
3922e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n 0123456789 >"conftest.in"
3923e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  while :
3924e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  do
3925e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cat "conftest.in" "conftest.in" >"conftest.tmp"
3926e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    mv "conftest.tmp" "conftest.in"
3927e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cp "conftest.in" "conftest.nl"
3928e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo 'EGREP' >> "conftest.nl"
3929e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3930e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3931e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_count=`expr $ac_count + 1`
3932e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3933e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Best one so far, save it but keep looking for a better one
3934e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_cv_path_EGREP="$ac_path_EGREP"
3935e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_path_EGREP_max=$ac_count
3936e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
3937e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # 10*(2^10) chars as input seems more than enough
3938e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test $ac_count -gt 10 && break
3939e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
3940e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3941e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
3942e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3943e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      $ac_path_EGREP_found && break 3
3944e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    done
3945e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
3946e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
3947e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
3948e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -z "$ac_cv_path_EGREP"; then
3949e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3950e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3951e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
3952e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
3953e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3954e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_path_EGREP=$EGREP
3955e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3956e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3957e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   fi
3958e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
3959e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3960e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_path_EGREP" >&6; }
3961e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev EGREP="$ac_cv_path_EGREP"
3962e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3963e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
3964e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3965e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for fgrep... " >&6; }
3966e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_path_FGREP+set}" = set; then
3967e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
3968e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
3969e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3970e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   then ac_cv_path_FGREP="$GREP -F"
3971e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   else
3972e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     if test -z "$FGREP"; then
3973e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_path_FGREP_found=false
3974e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Loop through the user's path and test for each of PROGNAME-LIST
3975e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3977e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
3978e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
3979e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
3980e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_prog in fgrep; do
3981e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    for ac_exec_ext in '' $ac_executable_extensions; do
3982e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3983e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3984e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check for GNU ac_path_FGREP and select it if it is found.
3985e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Check for GNU $ac_path_FGREP
3986e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase `"$ac_path_FGREP" --version 2>&1` in
3987e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*GNU*)
3988e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3989e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*)
3990e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_count=0
3991e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n 0123456789 >"conftest.in"
3992e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  while :
3993e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  do
3994e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cat "conftest.in" "conftest.in" >"conftest.tmp"
3995e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    mv "conftest.tmp" "conftest.in"
3996e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cp "conftest.in" "conftest.nl"
3997e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo 'FGREP' >> "conftest.nl"
3998e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4000e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_count=`expr $ac_count + 1`
4001e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4002e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Best one so far, save it but keep looking for a better one
4003e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_cv_path_FGREP="$ac_path_FGREP"
4004e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_path_FGREP_max=$ac_count
4005e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
4006e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # 10*(2^10) chars as input seems more than enough
4007e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test $ac_count -gt 10 && break
4008e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
4009e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
4011e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4012e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      $ac_path_FGREP_found && break 3
4013e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    done
4014e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
4015e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
4016e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
4017e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -z "$ac_cv_path_FGREP"; then
4018e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4019e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4020e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
4021e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
4022e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4023e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_path_FGREP=$FGREP
4024e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4025e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4026e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   fi
4027e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4028e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4029e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_path_FGREP" >&6; }
4030e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev FGREP="$ac_cv_path_FGREP"
4031e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4032e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4033e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$GREP" && GREP=grep
4034e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4035e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4036e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4037e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4038e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4039e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4040e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4041e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4042e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4043e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4044e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4045e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4046e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4047e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4048e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4049e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4050e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4051e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4052e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4053e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check whether --with-gnu-ld was given.
4054e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${with_gnu_ld+set}" = set; then
4055e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4056e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4057e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  with_gnu_ld=no
4058e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4059e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4060e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_prog=ld
4061e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$GCC" = yes; then
4062e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Check if gcc -print-prog-name=ld gives a path.
4063e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4064e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for ld used by $CC... " >&6; }
4065e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host in
4066e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *-*-mingw*)
4067e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # gcc leaves a trailing carriage return which upsets mingw
4068e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4069e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
4070e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4071e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
4072e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_prog in
4073e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Accept absolute paths.
4074e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    [\\/]* | ?:[\\/]*)
4075e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      re_direlt='/[^/][^/]*/\.\./'
4076e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Canonicalize the pathname of ld
4077e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4078e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4079e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4080e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      done
4081e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      test -z "$LD" && LD="$ac_prog"
4082e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
4083e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  "")
4084e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # If it fails, then pretend we aren't using GCC.
4085e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_prog=ld
4086e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4087e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
4088e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # If it is relative, then search for the first ld in PATH.
4089e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    with_gnu_ld=unknown
4090e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4091e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
4092e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelif test "$with_gnu_ld" = yes; then
4093e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4094e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for GNU ld... " >&6; }
4095e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4096e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4097e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for non-GNU ld... " >&6; }
4098e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4099e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_path_LD+set}" = set; then
4100e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
4101e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4102e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -z "$LD"; then
4103e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4104e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_dir in $PATH; do
4105e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    IFS="$lt_save_ifs"
4106e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test -z "$ac_dir" && ac_dir=.
4107e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4108e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_cv_path_LD="$ac_dir/$ac_prog"
4109e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Check to see if the program is GNU ld.  I'd rather use --version,
4110e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # but apparently some variants of GNU ld only accept -v.
4111e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Break only if it was the GNU/non-GNU ld that we prefer.
4112e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4113e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *GNU* | *'with BFD'*)
4114e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	test "$with_gnu_ld" != no && break
4115e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
4116e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *)
4117e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	test "$with_gnu_ld" != yes && break
4118e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
4119e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
4120e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
4121e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
4122e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS="$lt_save_ifs"
4123e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4124e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4125e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4126e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4127e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4128e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLD="$lt_cv_path_LD"
4129e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$LD"; then
4130e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4131e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$LD" >&6; }
4132e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4133e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
4134e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
4135e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4136e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4137e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4138e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
4139e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4140e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4141e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_prog_gnu_ld+set}" = set; then
4142e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
4143e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4144e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4145e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase `$LD -v 2>&1 </dev/null` in
4146e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*GNU* | *'with BFD'*)
4147e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_prog_gnu_ld=yes
4148e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4149e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*)
4150e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_prog_gnu_ld=no
4151e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4152e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
4153e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4154e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4155e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4156e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevwith_gnu_ld=$lt_cv_prog_gnu_ld
4157e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4158e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4159e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4160e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4161e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4162e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4163e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4164e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4165e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4166e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4167e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4168e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_path_NM+set}" = set; then
4169e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
4170e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4171e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$NM"; then
4172e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Let the user override the test.
4173e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_path_NM="$NM"
4174e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4175e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_nm_to_check="${ac_tool_prefix}nm"
4176e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4177e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_nm_to_check="$lt_nm_to_check nm"
4178e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
4179e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for lt_tmp_nm in $lt_nm_to_check; do
4180e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4181e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4182e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      IFS="$lt_save_ifs"
4183e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      test -z "$ac_dir" && ac_dir=.
4184e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      tmp_nm="$ac_dir/$lt_tmp_nm"
4185e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4186e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# Check to see if the nm accepts a BSD-compat flag.
4187e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4188e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	#   nm: unknown option "B" ignored
4189e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# Tru64's nm complains that /dev/null is an invalid object file
4190e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4191e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*/dev/null* | *'Invalid file or object type'*)
4192e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  lt_cv_path_NM="$tmp_nm -B"
4193e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  break
4194e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
4195e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*)
4196e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4197e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  */dev/null*)
4198e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    lt_cv_path_NM="$tmp_nm -p"
4199e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    break
4200e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    ;;
4201e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  *)
4202e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4203e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    continue # so that we can try to find one that supports BSD flags
4204e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    ;;
4205e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  esac
4206e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
4207e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
4208e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
4209e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    done
4210e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    IFS="$lt_save_ifs"
4211e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
4212e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  : ${lt_cv_path_NM=no}
4213e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4214e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4215e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4216e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_cv_path_NM" >&6; }
4217e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$lt_cv_path_NM" != "no"; then
4218e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  NM="$lt_cv_path_NM"
4219e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4220e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Didn't find any BSD compatible name lister, look for dumpbin.
4221e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_tool_prefix"; then
4222e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4223e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  do
4224e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4225e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy $ac_tool_prefix$ac_prog; ac_word=$2
4226e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4227e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
4228e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_DUMPBIN+set}" = set; then
4229e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
4230e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4231e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$DUMPBIN"; then
4232e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4233e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4234e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
4236e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
4237e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
4238e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
4239e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
4240e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4242e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4243e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
4244e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
4245e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
4246e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
4247e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
4248e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4249e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4250e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4251e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevDUMPBIN=$ac_cv_prog_DUMPBIN
4252e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$DUMPBIN"; then
4253e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4254e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$DUMPBIN" >&6; }
4255e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4256e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
4257e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
4258e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4259e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4260e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4261e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test -n "$DUMPBIN" && break
4262e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
4263e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4264e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$DUMPBIN"; then
4265e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_ct_DUMPBIN=$DUMPBIN
4266e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4267e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
4268e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "$ac_prog", so it can be a program name with args.
4269e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy $ac_prog; ac_word=$2
4270e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4271e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
4272e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4273e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
4274e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4275e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_ct_DUMPBIN"; then
4276e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4277e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4278e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
4280e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
4281e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
4282e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
4283e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
4284e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4285e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4286e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
4288e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
4289e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
4290e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
4291e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
4292e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4293e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4294e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4295e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4296e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_ct_DUMPBIN"; then
4297e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4298e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_ct_DUMPBIN" >&6; }
4299e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4300e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
4301e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
4302e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4303e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4304e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4305e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -n "$ac_ct_DUMPBIN" && break
4306e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
4307e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4308e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$ac_ct_DUMPBIN" = x; then
4309e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    DUMPBIN=":"
4310e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
4311e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $cross_compiling:$ac_tool_warned in
4312e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevyes:)
4313e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4314e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4315e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_tool_warned=yes ;;
4316e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
4317e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    DUMPBIN=$ac_ct_DUMPBIN
4318e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
4319e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4320e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4321e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4322e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$DUMPBIN" != ":"; then
4323e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    NM="$DUMPBIN"
4324e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
4325e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4326e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$NM" && NM=nm
4327e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4328e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4329e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4330e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4331e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4332e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4333e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4334e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4335e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_nm_interface+set}" = set; then
4336e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
4337e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4338e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_nm_interface="BSD nm"
4339e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo "int some_variable = 0;" > conftest.$ac_ext
4340e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval echo "\"\$as_me:4340: $ac_compile\"" >&5)
4341e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_compile" 2>conftest.err)
4342e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
4343e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval echo "\"\$as_me:4343: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4344e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4345e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
4346e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval echo "\"\$as_me:4346: output\"" >&5)
4347e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.out >&5
4348e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4349e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_nm_interface="MS dumpbin"
4350e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
4351e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest*
4352e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4353e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4354e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_cv_nm_interface" >&6; }
4355e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4356e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4357e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether ln -s works... " >&6; }
4358e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLN_S=$as_ln_s
4359e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$LN_S" = "ln -s"; then
4360e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: yes" >&5
4361e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "yes" >&6; }
4362e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4363e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4364e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no, using $LN_S" >&6; }
4365e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4366e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4367e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# find the maximum length of command line arguments
4368e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4369e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4370e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_sys_max_cmd_len+set}" = set; then
4371e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
4372e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4373e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    i=0
4374e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  teststring="ABCD"
4375e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4376e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $build_os in
4377e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  msdosdjgpp*)
4378e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # On DJGPP, this test can blow up pretty badly due to problems in libc
4379e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # (any single argument exceeding 2000 bytes causes a buffer overrun
4380e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # during glob expansion).  Even if it were fixed, the result of this
4381e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # check would be larger than it should be.
4382e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4383e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4384e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4385e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  gnu*)
4386e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Under GNU Hurd, this test is not required because there is
4387e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # no limit to the length of command line arguments.
4388e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Libtool will interpret -1 as no limit whatsoever
4389e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_sys_max_cmd_len=-1;
4390e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4391e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4392e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cygwin* | mingw* | cegcc*)
4393e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # On Win9x/ME, this test blows up -- it succeeds, but takes
4394e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # about 5 minutes as the teststring grows exponentially.
4395e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Worse, since 9x/ME are not pre-emptively multitasking,
4396e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # you end up with a "frozen" computer, even though with patience
4397e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # the test eventually succeeds (with a max line length of 256k).
4398e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Instead, let's just punt: use the minimum linelength reported by
4399e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # all of the supported platforms: 8192 (on NT/2K/XP).
4400e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_sys_max_cmd_len=8192;
4401e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4402e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4403e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  amigaos*)
4404e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # On AmigaOS with pdksh, this test takes hours, literally.
4405e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # So we just punt and use a minimum line length of 8192.
4406e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_sys_max_cmd_len=8192;
4407e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4408e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4409e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4410e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # This has been around since 386BSD, at least.  Likely further.
4411e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -x /sbin/sysctl; then
4412e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4413e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    elif test -x /usr/sbin/sysctl; then
4414e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4415e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    else
4416e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4417e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
4418e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # And add a safety zone
4419e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4420e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4421e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4422e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4423e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  interix*)
4424e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4425e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_sys_max_cmd_len=196608
4426e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4427e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4428e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  osf*)
4429e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4430e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4431e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # nice to cause kernel panics so lets avoid the loop below.
4432e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # First set a reasonable default.
4433e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_sys_max_cmd_len=16384
4434e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    #
4435e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -x /sbin/sysconfig; then
4436e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4437e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4438e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
4439e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
4440e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4441e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sco3.2v5*)
4442e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_sys_max_cmd_len=102400
4443e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4444e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sysv5* | sco5v6* | sysv4.2uw2*)
4445e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4446e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -n "$kargmax"; then
4447e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4448e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    else
4449e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_cv_sys_max_cmd_len=32768
4450e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
4451e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4452e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
4453e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4454e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -n "$lt_cv_sys_max_cmd_len"; then
4455e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4456e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4457e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    else
4458e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Make teststring a little bigger before we do anything with it.
4459e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # a 1K string should be a reasonable start.
4460e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      for i in 1 2 3 4 5 6 7 8 ; do
4461e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        teststring=$teststring$teststring
4462e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      done
4463e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4464e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # If test is not a shell built-in, we'll probably end up computing a
4465e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # maximum length that is only half of the actual maximum length, but
4466e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # we can't tell.
4467e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4468e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4469e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	      test $i != 17 # 1/2 MB should be enough
4470e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      do
4471e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        i=`expr $i + 1`
4472e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        teststring=$teststring$teststring
4473e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      done
4474e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Only check the string length outside the loop.
4475e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4476e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      teststring=
4477e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Add a significant safety factor because C++ compilers can tack on
4478e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # massive amounts of additional arguments before passing them to the
4479e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # linker.  It appears as though 1/2 is a usable value.
4480e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4481e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
4482e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4483e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
4484e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4485e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4486e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4487e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n $lt_cv_sys_max_cmd_len ; then
4488e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4489e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4490e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4491e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: none" >&5
4492e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "none" >&6; }
4493e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4494e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmax_cmd_len=$lt_cv_sys_max_cmd_len
4495e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4496e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4497e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4498e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4499e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4500e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4501e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev: ${CP="cp -f"}
4502e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev: ${MV="mv -f"}
4503e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev: ${RM="rm -f"}
4504e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4505e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4506e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4507e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Try some XSI features
4508e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevxsi_shell=no
4509e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev( _lt_dummy="a/b/c"
4510e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4511e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      = c,a/b,, \
4512e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    && eval 'test $(( 1 + 1 )) -eq 2 \
4513e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4514e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  && xsi_shell=yes
4515e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4516e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$xsi_shell" >&6; }
4517e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4518e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4519e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4520e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4521e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_shell_append=no
4522e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4523e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    >/dev/null 2>&1 \
4524e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  && lt_shell_append=yes
4525e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4526e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_shell_append" >&6; }
4527e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4528e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4529e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4530e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_unset=unset
4531e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4532e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_unset=false
4533e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4534e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4535e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4536e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4537e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4538e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4539e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# test EBCDIC or ASCII
4540e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase `echo X|tr X '\101'` in
4541e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev A) # ASCII based system
4542e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4543e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_SP2NL='tr \040 \012'
4544e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_NL2SP='tr \015\012 \040\040'
4545e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4546e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev *) # EBCDIC based system
4547e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_SP2NL='tr \100 \n'
4548e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_NL2SP='tr \r\n \100\100'
4549e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4550e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
4551e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4552e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4553e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4554e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4555e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4556e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4557e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4558e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4559e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4560e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4561e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $LD option to reload object files... " >&6; }
4562e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_ld_reload_flag+set}" = set; then
4563e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
4564e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4565e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_ld_reload_flag='-r'
4566e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4567e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4568e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_cv_ld_reload_flag" >&6; }
4569e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevreload_flag=$lt_cv_ld_reload_flag
4570e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $reload_flag in
4571e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"" | " "*) ;;
4572e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*) reload_flag=" $reload_flag" ;;
4573e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
4574e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevreload_cmds='$LD$reload_flag -o $output$reload_objs'
4575e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $host_os in
4576e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  darwin*)
4577e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test "$GCC" = yes; then
4578e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4579e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    else
4580e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4581e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
4582e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4583e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
4584e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4585e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4586e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4587e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4588e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4589e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4590e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4591e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4592e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4593e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_tool_prefix"; then
4594e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4595e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy ${ac_tool_prefix}objdump; ac_word=$2
4596e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4597e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
4598e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_OBJDUMP+set}" = set; then
4599e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
4600e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4601e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$OBJDUMP"; then
4602e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4603e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4604e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
4606e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
4607e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
4608e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
4609e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
4610e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4612e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
4614e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
4615e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
4616e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
4617e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
4618e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4619e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4620e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4621e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOBJDUMP=$ac_cv_prog_OBJDUMP
4622e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$OBJDUMP"; then
4623e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4624e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$OBJDUMP" >&6; }
4625e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4626e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
4627e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
4628e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4629e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4630e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4631e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4632e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$ac_cv_prog_OBJDUMP"; then
4633e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_ct_OBJDUMP=$OBJDUMP
4634e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "objdump", so it can be a program name with args.
4635e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy objdump; ac_word=$2
4636e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4637e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
4638e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4639e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
4640e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4641e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_ct_OBJDUMP"; then
4642e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4643e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4644e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
4646e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
4647e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
4648e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
4649e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
4650e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4651e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4652e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
4654e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
4655e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
4656e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
4657e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
4658e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4659e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4660e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4661e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4662e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_ct_OBJDUMP"; then
4663e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4664e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_ct_OBJDUMP" >&6; }
4665e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4666e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
4667e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
4668e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4669e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4670e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$ac_ct_OBJDUMP" = x; then
4671e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    OBJDUMP="false"
4672e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
4673e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $cross_compiling:$ac_tool_warned in
4674e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevyes:)
4675e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4676e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4677e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_tool_warned=yes ;;
4678e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
4679e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    OBJDUMP=$ac_ct_OBJDUMP
4680e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
4681e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4682e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  OBJDUMP="$ac_cv_prog_OBJDUMP"
4683e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4684e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4685e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$OBJDUMP" && OBJDUMP=objdump
4686e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4687e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4688e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4689e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4690e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4691e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4692e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4693e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4694e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4695e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4696e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4697e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_deplibs_check_method+set}" = set; then
4698e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
4699e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4700e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_file_magic_cmd='$MAGIC_CMD'
4701e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_cv_file_magic_test_file=
4702e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_cv_deplibs_check_method='unknown'
4703e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Need to set the preceding variable on all platforms that support
4704e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# interlibrary dependencies.
4705e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# 'none' -- dependencies not supported.
4706e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# `unknown' -- same as none, but documents that we really don't know.
4707e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# 'pass_all' -- all dependencies passed with no checks.
4708e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# 'test_compile' -- check by making test program.
4709e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# 'file_magic [[regex]]' -- check by looking for files in library path
4710e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# which responds to the $file_magic_cmd with a given extended regex.
4711e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# If you have `file' or equivalent on your system and you're not sure
4712e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# whether `pass_all' will *always* work, you probably want this one.
4713e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4714e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $host_os in
4715e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevaix[4-9]*)
4716e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_deplibs_check_method=pass_all
4717e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4718e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4719e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbeos*)
4720e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_deplibs_check_method=pass_all
4721e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4722e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4723e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbsdi[45]*)
4724e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4725e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_file_magic_cmd='/usr/bin/file -L'
4726e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_file_magic_test_file=/shlib/libc.so
4727e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4728e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4729e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcygwin*)
4730e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # func_win32_libid is a shell function defined in ltmain.sh
4731e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4732e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_file_magic_cmd='func_win32_libid'
4733e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4734e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4735e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmingw* | pw32*)
4736e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Base MSYS/MinGW do not provide the 'file' command needed by
4737e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4738e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # unless we find 'file', for example because we are cross-compiling.
4739e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if ( file / ) >/dev/null 2>&1; then
4740e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4741e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_file_magic_cmd='func_win32_libid'
4742e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
4743e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4744e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_file_magic_cmd='$OBJDUMP -f'
4745e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
4746e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4747e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4748e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcegcc)
4749e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # use the weaker test based on 'objdump'. See mingw*.
4750e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4751e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_file_magic_cmd='$OBJDUMP -f'
4752e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4753e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4754e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdarwin* | rhapsody*)
4755e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_deplibs_check_method=pass_all
4756e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4757e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4758e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfreebsd* | dragonfly*)
4759e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4760e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $host_cpu in
4761e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    i*86 )
4762e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Not sure whether the presence of OpenBSD here was a mistake.
4763e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Let's accept both of them until this is cleared up.
4764e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4765e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_cv_file_magic_cmd=/usr/bin/file
4766e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4767e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
4768e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
4769e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
4770e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_deplibs_check_method=pass_all
4771e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
4772e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4773e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4774e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevgnu*)
4775e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_deplibs_check_method=pass_all
4776e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4777e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4778e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhpux10.20* | hpux11*)
4779e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_file_magic_cmd=/usr/bin/file
4780e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_cpu in
4781e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ia64*)
4782e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4783e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4784e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4785e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hppa*64*)
4786e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4787e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4788e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4789e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
4790e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4791e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4792e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4793e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
4794e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4795e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4796e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevinterix[3-9]*)
4797e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4798e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4799e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4800e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4801e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevirix5* | irix6* | nonstopux*)
4802e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $LD in
4803e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *-32|*"-32 ") libmagic=32-bit;;
4804e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *-n32|*"-n32 ") libmagic=N32;;
4805e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *-64|*"-64 ") libmagic=64-bit;;
4806e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) libmagic=never-match;;
4807e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
4808e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_deplibs_check_method=pass_all
4809e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4810e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4811e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# This must be Linux ELF.
4812e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlinux* | k*bsd*-gnu)
4813e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_deplibs_check_method=pass_all
4814e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4815e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4816e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevnetbsd*)
4817e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4818e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4819e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
4820e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4821e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
4822e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4823e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4824e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevnewos6*)
4825e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4826e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_file_magic_cmd=/usr/bin/file
4827e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4828e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4829e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4830e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*nto* | *qnx*)
4831e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_deplibs_check_method=pass_all
4832e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4833e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4834e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevopenbsd*)
4835e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4836e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4837e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
4838e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4839e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
4840e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4841e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4842e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevosf3* | osf4* | osf5*)
4843e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_deplibs_check_method=pass_all
4844e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4845e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4846e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrdos*)
4847e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_deplibs_check_method=pass_all
4848e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4849e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4850e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsolaris*)
4851e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_deplibs_check_method=pass_all
4852e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4853e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4854e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4855e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_deplibs_check_method=pass_all
4856e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4857e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4858e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsysv4 | sysv4.3*)
4859e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_vendor in
4860e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  motorola)
4861e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    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]'
4862e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4863e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4864e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ncr)
4865e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_deplibs_check_method=pass_all
4866e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4867e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sequent)
4868e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_file_magic_cmd='/bin/file'
4869e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4870e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4871e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sni)
4872e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_file_magic_cmd='/bin/file'
4873e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4874e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_file_magic_test_file=/lib/libc.so
4875e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4876e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  siemens)
4877e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_deplibs_check_method=pass_all
4878e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4879e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  pc)
4880e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_deplibs_check_method=pass_all
4881e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
4882e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
4883e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4884e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4885e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtpf*)
4886e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_deplibs_check_method=pass_all
4887e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
4888e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
4889e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4890e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4891e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4892e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_cv_deplibs_check_method" >&6; }
4893e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfile_magic_cmd=$lt_cv_file_magic_cmd
4894e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdeplibs_check_method=$lt_cv_deplibs_check_method
4895e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$deplibs_check_method" && deplibs_check_method=unknown
4896e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4897e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4898e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4899e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4900e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4901e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4902e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4903e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4904e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4905e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4906e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4907e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4908e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_tool_prefix"; then
4909e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4910e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy ${ac_tool_prefix}ar; ac_word=$2
4911e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4912e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
4913e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_AR+set}" = set; then
4914e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
4915e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4916e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$AR"; then
4917e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_AR="$AR" # Let the user override the test.
4918e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4919e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
4921e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
4922e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
4923e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
4924e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
4925e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_AR="${ac_tool_prefix}ar"
4927e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
4929e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
4930e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
4931e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
4932e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
4933e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4934e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4935e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4936e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAR=$ac_cv_prog_AR
4937e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$AR"; then
4938e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $AR" >&5
4939e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$AR" >&6; }
4940e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4941e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
4942e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
4943e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4944e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4945e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4946e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4947e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$ac_cv_prog_AR"; then
4948e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_ct_AR=$AR
4949e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "ar", so it can be a program name with args.
4950e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy ar; ac_word=$2
4951e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4952e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
4953e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4954e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
4955e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4956e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_ct_AR"; then
4957e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4958e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4959e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
4961e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
4962e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
4963e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
4964e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
4965e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4966e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_ac_ct_AR="ar"
4967e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4968e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
4969e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
4970e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
4971e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
4972e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
4973e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4974e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4975e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4976e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ct_AR=$ac_cv_prog_ac_ct_AR
4977e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_ct_AR"; then
4978e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4979e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_ct_AR" >&6; }
4980e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4981e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
4982e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
4983e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4984e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
4985e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$ac_ct_AR" = x; then
4986e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    AR="false"
4987e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
4988e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $cross_compiling:$ac_tool_warned in
4989e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevyes:)
4990e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4991e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4992e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_tool_warned=yes ;;
4993e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
4994e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    AR=$ac_ct_AR
4995e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
4996e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
4997e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  AR="$ac_cv_prog_AR"
4998e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
4999e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5000e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$AR" && AR=ar
5001e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$AR_FLAGS" && AR_FLAGS=cru
5002e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5003e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5004e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5005e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5006e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5007e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5008e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5009e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5010e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5011e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5012e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5013e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_tool_prefix"; then
5014e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5015e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy ${ac_tool_prefix}strip; ac_word=$2
5016e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5017e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
5018e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_STRIP+set}" = set; then
5019e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
5020e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5021e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$STRIP"; then
5022e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5023e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5024e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
5026e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
5027e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
5028e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
5029e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
5030e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5032e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
5034e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5035e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5036e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5037e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
5038e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5039e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5040e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5041e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSTRIP=$ac_cv_prog_STRIP
5042e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$STRIP"; then
5043e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5044e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$STRIP" >&6; }
5045e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5046e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
5047e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
5048e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5049e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5050e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5051e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5052e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$ac_cv_prog_STRIP"; then
5053e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_ct_STRIP=$STRIP
5054e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "strip", so it can be a program name with args.
5055e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy strip; ac_word=$2
5056e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5057e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
5058e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5059e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
5060e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5061e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_ct_STRIP"; then
5062e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5063e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5064e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
5066e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
5067e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
5068e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
5069e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
5070e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_ac_ct_STRIP="strip"
5072e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
5074e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5075e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5076e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5077e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
5078e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5079e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5080e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5081e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5082e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_ct_STRIP"; then
5083e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5084e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_ct_STRIP" >&6; }
5085e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5086e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
5087e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
5088e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5089e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5090e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$ac_ct_STRIP" = x; then
5091e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    STRIP=":"
5092e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
5093e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $cross_compiling:$ac_tool_warned in
5094e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevyes:)
5095e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5096e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5097e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_tool_warned=yes ;;
5098e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
5099e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    STRIP=$ac_ct_STRIP
5100e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5101e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5102e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  STRIP="$ac_cv_prog_STRIP"
5103e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5104e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5105e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$STRIP" && STRIP=:
5106e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5107e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5108e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5109e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5110e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5111e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5112e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_tool_prefix"; then
5113e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5114e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy ${ac_tool_prefix}ranlib; ac_word=$2
5115e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5116e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
5117e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_RANLIB+set}" = set; then
5118e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
5119e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5120e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$RANLIB"; then
5121e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5122e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5123e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
5125e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
5126e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
5127e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
5128e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
5129e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5131e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
5133e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5134e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5135e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5136e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
5137e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5138e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5139e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5140e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevRANLIB=$ac_cv_prog_RANLIB
5141e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$RANLIB"; then
5142e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5143e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$RANLIB" >&6; }
5144e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5145e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
5146e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
5147e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5148e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5149e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5150e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5151e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$ac_cv_prog_RANLIB"; then
5152e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_ct_RANLIB=$RANLIB
5153e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "ranlib", so it can be a program name with args.
5154e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy ranlib; ac_word=$2
5155e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5156e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
5157e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5158e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
5159e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5160e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_ct_RANLIB"; then
5161e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5162e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5163e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
5165e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
5166e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
5167e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
5168e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
5169e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_ac_ct_RANLIB="ranlib"
5171e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
5173e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5174e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5175e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5176e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
5177e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5178e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5179e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5180e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5181e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_ct_RANLIB"; then
5182e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5183e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_ct_RANLIB" >&6; }
5184e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5185e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
5186e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
5187e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5188e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5189e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$ac_ct_RANLIB" = x; then
5190e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    RANLIB=":"
5191e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
5192e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $cross_compiling:$ac_tool_warned in
5193e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevyes:)
5194e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5195e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5196e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_tool_warned=yes ;;
5197e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
5198e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    RANLIB=$ac_ct_RANLIB
5199e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5200e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5201e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  RANLIB="$ac_cv_prog_RANLIB"
5202e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5203e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5204e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$RANLIB" && RANLIB=:
5205e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5206e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5207e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5208e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5209e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5210e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5211e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Determine commands to create old-style static archives.
5212e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5213e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_postinstall_cmds='chmod 644 $oldlib'
5214e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_postuninstall_cmds=
5215e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5216e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$RANLIB"; then
5217e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_os in
5218e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  openbsd*)
5219e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5220e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
5221e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
5222e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5223e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
5224e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
5225e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5226e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5227e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5228e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5229e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5230e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5231e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5232e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5233e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5234e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5235e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5236e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5237e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5238e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5239e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5240e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5241e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5242e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5243e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5244e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5245e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5246e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5247e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5248e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5249e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5250e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5251e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5252e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5253e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5254e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5255e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5256e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5257e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5258e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5259e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5260e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5261e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# If no C compiler was specified, use CC.
5262e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLTCC=${LTCC-"$CC"}
5263e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5264e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# If no C compiler flags were specified, use CFLAGS.
5265e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5266e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5267e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Allow CC to be a program name with arguments.
5268e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcompiler=$CC
5269e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5270e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5271e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check for command to grab the raw symbol name followed by C symbol from nm.
5272e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5273e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5274e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5275e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
5276e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5277e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5278e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# These are sane defaults that work on at least a few old systems.
5279e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5280e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5281e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Character class describing NM global symbol codes.
5282e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsymcode='[BCDEGRST]'
5283e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5284e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Regexp to match symbols that can be accessed directly from C.
5285e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5286e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5287e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Define system-specific variables.
5288e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $host_os in
5289e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevaix*)
5290e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  symcode='[BCDT]'
5291e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
5292e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcygwin* | mingw* | pw32* | cegcc*)
5293e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  symcode='[ABCDGISTW]'
5294e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
5295e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhpux*)
5296e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$host_cpu" = ia64; then
5297e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    symcode='[ABCDEGRST]'
5298e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5299e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
5300e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevirix* | nonstopux*)
5301e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  symcode='[BCDEGRST]'
5302e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
5303e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevosf*)
5304e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  symcode='[BCDEGQRST]'
5305e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
5306e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsolaris*)
5307e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  symcode='[BDRT]'
5308e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
5309e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsco3.2v5*)
5310e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  symcode='[DT]'
5311e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
5312e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsysv4.2uw2*)
5313e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  symcode='[DT]'
5314e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
5315e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsysv5* | sco5v6* | unixware* | OpenUNIX*)
5316e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  symcode='[ABDT]'
5317e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
5318e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsysv4)
5319e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  symcode='[DFNSTU]'
5320e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
5321e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
5322e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5323e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# If we're using GNU nm, then use its standard symbol codes.
5324e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase `$NM -V 2>&1` in
5325e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*GNU* | *'with BFD'*)
5326e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  symcode='[ABCDGIRSTW]' ;;
5327e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
5328e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5329e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Transform an extracted symbol line into a proper C declaration.
5330e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Some systems (esp. on ia64) link data and code symbols differently,
5331e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# so use this general approach.
5332e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5333e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5334e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Transform an extracted symbol line into symbol name and symbol address
5335e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5336e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5337e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5338e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Handle CRLF in mingw tool chain
5339e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevopt_cr=
5340e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $build_os in
5341e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmingw*)
5342e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5343e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
5344e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
5345e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5346e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Try without a prefix underscore, then with it.
5347e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_symprfx in "" "_"; do
5348e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5349e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5350e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  symxfrm="\\1 $ac_symprfx\\2 \\2"
5351e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5352e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Write the raw and C identifiers.
5353e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5354e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Fake it for dumpbin and say T for any non-static function
5355e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # and D for any global variable.
5356e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Also find C++ and __fastcall symbols from MSVC++,
5357e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # which start with @ or ?.
5358e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_sys_global_symbol_pipe="$AWK '"\
5359e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"     {last_section=section; section=\$ 3};"\
5360e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5361e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"     \$ 0!~/External *\|/{next};"\
5362e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5363e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"     {if(hide[section]) next};"\
5364e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5365e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5366e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5367e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5368e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"     ' prfx=^$ac_symprfx"
5369e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
5370e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5371e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5372e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5373e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Check to see that the pipe works correctly.
5374e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  pipe_works=no
5375e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5376e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest*
5377e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat > conftest.$ac_ext <<_LT_EOF
5378e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef __cplusplus
5379e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevextern "C" {
5380e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
5381e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevchar nm_test_var;
5382e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevvoid nm_test_func(void);
5383e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevvoid nm_test_func(void){}
5384e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef __cplusplus
5385e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
5386e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
5387e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint main(){nm_test_var='a';nm_test_func();return(0);}
5388e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
5389e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5390e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5391e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval $ac_compile) 2>&5
5392e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
5393e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); }; then
5395e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Now try to grab the symbols.
5396e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    nlist=conftest.nm
5397e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5398e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5399e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
5400e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && test -s "$nlist"; then
5402e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Try sorting and uniquifying the output.
5403e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if sort "$nlist" | uniq > "$nlist"T; then
5404e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	mv -f "$nlist"T "$nlist"
5405e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
5406e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	rm -f "$nlist"T
5407e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
5408e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5409e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Make sure that we snagged all the symbols we need.
5410e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5411e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5412e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  cat <<_LT_EOF > conftest.$ac_ext
5413e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef __cplusplus
5414e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevextern "C" {
5415e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
5416e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5417e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
5418e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # Now generate the symbol file.
5419e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5420e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5421e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  cat <<_LT_EOF >> conftest.$ac_ext
5422e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5423e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* The mapping between symbol names and symbols.  */
5424e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevconst struct {
5425e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  const char *name;
5426e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  void       *address;
5427e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
5428e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt__PROGRAM__LTX_preloaded_symbols[] =
5429e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
5430e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { "@PROGRAM@", (void *) 0 },
5431e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
5432e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5433e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  cat <<\_LT_EOF >> conftest.$ac_ext
5434e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  {0, (void *) 0}
5435e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev};
5436e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5437e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* This works around a problem in FreeBSD linker */
5438e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef FREEBSD_WORKAROUND
5439e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevstatic const void *lt_preloaded_setup() {
5440e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return lt__PROGRAM__LTX_preloaded_symbols;
5441e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
5442e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
5443e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5444e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef __cplusplus
5445e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
5446e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
5447e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
5448e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # Now try linking the two files.
5449e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  mv conftest.$ac_objext conftstm.$ac_objext
5450e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  lt_save_LIBS="$LIBS"
5451e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  lt_save_CFLAGS="$CFLAGS"
5452e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  LIBS="conftstm.$ac_objext"
5453e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5454e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5455e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval $ac_link) 2>&5
5456e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
5457e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5459e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    pipe_works=yes
5460e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  fi
5461e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  LIBS="$lt_save_LIBS"
5462e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  CFLAGS="$lt_save_CFLAGS"
5463e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	else
5464e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  echo "cannot find nm_test_func in $nlist" >&5
5465e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi
5466e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
5467e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	echo "cannot find nm_test_var in $nlist" >&5
5468e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
5469e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    else
5470e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5471e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
5472e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
5473e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    echo "$progname: failed program was:" >&5
5474e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cat conftest.$ac_ext >&5
5475e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5476e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -rf conftest* conftst*
5477e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5478e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Do not use the global_symbol_pipe unless it works.
5479e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$pipe_works" = yes; then
5480e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break
5481e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
5482e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_sys_global_symbol_pipe=
5483e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5484e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5485e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5486e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5487e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5488e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$lt_cv_sys_global_symbol_pipe"; then
5489e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_sys_global_symbol_to_cdecl=
5490e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5491e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5492e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: failed" >&5
5493e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "failed" >&6; }
5494e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5495e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: ok" >&5
5496e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "ok" >&6; }
5497e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5498e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5499e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5500e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5501e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5502e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5503e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5504e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5505e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5506e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5507e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5508e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5509e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5510e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5511e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5512e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5513e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5514e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5515e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5516e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5517e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5518e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5519e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5520e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5521e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check whether --enable-libtool-lock was given.
5522e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${enable_libtool_lock+set}" = set; then
5523e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enableval=$enable_libtool_lock;
5524e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5525e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5526e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5527e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5528e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Some flags need to be propagated to the compiler or linker for good
5529e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# libtool support.
5530e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $host in
5531e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevia64-*-hpux*)
5532e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Find out which ABI we are using.
5533e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo 'int i;' > conftest.$ac_ext
5534e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval $ac_compile) 2>&5
5536e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
5537e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); }; then
5539e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case `/usr/bin/file conftest.$ac_objext` in
5540e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *ELF-32*)
5541e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	HPUX_IA64_MODE="32"
5542e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
5543e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *ELF-64*)
5544e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	HPUX_IA64_MODE="64"
5545e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
5546e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
5547e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5548e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -rf conftest*
5549e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
5550e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*-*-irix6*)
5551e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Find out which ABI we are using.
5552e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo '#line 5552 "configure"' > conftest.$ac_ext
5553e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5554e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval $ac_compile) 2>&5
5555e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
5556e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); }; then
5558e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test "$lt_cv_prog_gnu_ld" = yes; then
5559e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case `/usr/bin/file conftest.$ac_objext` in
5560e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*32-bit*)
5561e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  LD="${LD-ld} -melf32bsmip"
5562e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
5563e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*N32*)
5564e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  LD="${LD-ld} -melf32bmipn32"
5565e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
5566e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*64-bit*)
5567e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  LD="${LD-ld} -melf64bmip"
5568e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
5569e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
5570e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    else
5571e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case `/usr/bin/file conftest.$ac_objext` in
5572e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*32-bit*)
5573e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  LD="${LD-ld} -32"
5574e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
5575e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*N32*)
5576e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  LD="${LD-ld} -n32"
5577e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
5578e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*64-bit*)
5579e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  LD="${LD-ld} -64"
5580e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
5581e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
5582e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
5583e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5584e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -rf conftest*
5585e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
5586e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5587e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5588e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5589e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Find out which ABI we are using.
5590e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo 'int i;' > conftest.$ac_ext
5591e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval $ac_compile) 2>&5
5593e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
5594e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); }; then
5596e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case `/usr/bin/file conftest.o` in
5597e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *32-bit*)
5598e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case $host in
5599e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  x86_64-*kfreebsd*-gnu)
5600e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    LD="${LD-ld} -m elf_i386_fbsd"
5601e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    ;;
5602e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  x86_64-*linux*)
5603e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    LD="${LD-ld} -m elf_i386"
5604e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    ;;
5605e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ppc64-*linux*|powerpc64-*linux*)
5606e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    LD="${LD-ld} -m elf32ppclinux"
5607e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    ;;
5608e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  s390x-*linux*)
5609e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    LD="${LD-ld} -m elf_s390"
5610e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    ;;
5611e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  sparc64-*linux*)
5612e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    LD="${LD-ld} -m elf32_sparc"
5613e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    ;;
5614e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
5615e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
5616e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *64-bit*)
5617e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case $host in
5618e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  x86_64-*kfreebsd*-gnu)
5619e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    LD="${LD-ld} -m elf_x86_64_fbsd"
5620e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    ;;
5621e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  x86_64-*linux*)
5622e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    LD="${LD-ld} -m elf_x86_64"
5623e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    ;;
5624e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ppc*-*linux*|powerpc*-*linux*)
5625e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    LD="${LD-ld} -m elf64ppc"
5626e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    ;;
5627e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  s390*-*linux*|s390*-*tpf*)
5628e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    LD="${LD-ld} -m elf64_s390"
5629e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    ;;
5630e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  sparc*-*linux*)
5631e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    LD="${LD-ld} -m elf64_sparc"
5632e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    ;;
5633e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
5634e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
5635e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
5636e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5637e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -rf conftest*
5638e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
5639e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5640e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*-*-sco3.2v5*)
5641e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5642e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  SAVE_CFLAGS="$CFLAGS"
5643e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  CFLAGS="$CFLAGS -belf"
5644e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5645e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5646e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_cc_needs_belf+set}" = set; then
5647e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
5648e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5649e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_ext=c
5650e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cpp='$CPP $CPPFLAGS'
5651e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compiler_gnu=$ac_cv_c_compiler_gnu
5654e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5655e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     cat >conftest.$ac_ext <<_ACEOF
5656e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
5657e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
5658e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
5659e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
5660e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
5661e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5662e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
5663e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
5664e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
5665e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5666e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
5667e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
5668e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
5669e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
5670e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext conftest$ac_exeext
5671e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_link"
5672e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
5673e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
5675e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
5676e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5677e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
5678e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_link") 2>conftest.er1
5679e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
5680e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
5681e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
5682e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
5683e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
5685e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
5686e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
5687e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest$ac_exeext && {
5688e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test "$cross_compiling" = yes ||
5689e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 $as_test_x conftest$ac_exeext
5690e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       }; then
5691e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_cc_needs_belf=yes
5692e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5693e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
5694e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
5695e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5696e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_cv_cc_needs_belf=no
5697e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5698e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5699e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -rf conftest.dSYM
5700e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5701e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      conftest$ac_exeext conftest.$ac_ext
5702e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     ac_ext=c
5703e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cpp='$CPP $CPPFLAGS'
5704e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5705e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5706e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compiler_gnu=$ac_cv_c_compiler_gnu
5707e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5708e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5709e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5710e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_cv_cc_needs_belf" >&6; }
5711e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5712e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5713e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    CFLAGS="$SAVE_CFLAGS"
5714e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5715e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
5716e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsparc*-*solaris*)
5717e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Find out which ABI we are using.
5718e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo 'int i;' > conftest.$ac_ext
5719e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5720e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval $ac_compile) 2>&5
5721e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
5722e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); }; then
5724e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case `/usr/bin/file conftest.o` in
5725e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *64-bit*)
5726e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $lt_cv_prog_gnu_ld in
5727e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5728e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *)
5729e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5730e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  LD="${LD-ld} -64"
5731e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi
5732e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
5733e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
5734e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
5735e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
5736e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5737e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -rf conftest*
5738e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
5739e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
5740e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5741e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevneed_locks="$enable_libtool_lock"
5742e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5743e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5744e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_os in
5745e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    rhapsody* | darwin*)
5746e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -n "$ac_tool_prefix"; then
5747e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5748e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5749e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5750e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
5751e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5752e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
5753e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5754e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$DSYMUTIL"; then
5755e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5756e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5757e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
5759e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
5760e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
5761e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
5762e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
5763e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5764e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5765e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
5767e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5768e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5769e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5770e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
5771e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5772e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5773e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5774e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevDSYMUTIL=$ac_cv_prog_DSYMUTIL
5775e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$DSYMUTIL"; then
5776e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5777e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$DSYMUTIL" >&6; }
5778e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5779e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
5780e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
5781e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5782e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5783e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5784e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5785e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$ac_cv_prog_DSYMUTIL"; then
5786e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_ct_DSYMUTIL=$DSYMUTIL
5787e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "dsymutil", so it can be a program name with args.
5788e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy dsymutil; ac_word=$2
5789e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5790e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
5791e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5792e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
5793e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5794e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_ct_DSYMUTIL"; then
5795e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5796e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5797e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
5799e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
5800e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
5801e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
5802e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
5803e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5804e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5805e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
5807e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5808e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5809e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5810e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
5811e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5812e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5813e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5814e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5815e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_ct_DSYMUTIL"; then
5816e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5817e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_ct_DSYMUTIL" >&6; }
5818e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5819e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
5820e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
5821e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5822e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5823e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$ac_ct_DSYMUTIL" = x; then
5824e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    DSYMUTIL=":"
5825e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
5826e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $cross_compiling:$ac_tool_warned in
5827e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevyes:)
5828e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5829e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5830e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_tool_warned=yes ;;
5831e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
5832e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    DSYMUTIL=$ac_ct_DSYMUTIL
5833e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5834e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5835e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5836e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5837e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5838e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -n "$ac_tool_prefix"; then
5839e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5840e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy ${ac_tool_prefix}nmedit; ac_word=$2
5841e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5842e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
5843e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_NMEDIT+set}" = set; then
5844e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
5845e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5846e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$NMEDIT"; then
5847e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5848e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5849e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
5851e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
5852e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
5853e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
5854e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
5855e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5856e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5857e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5858e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
5859e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5860e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5861e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5862e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
5863e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5864e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5865e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5866e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevNMEDIT=$ac_cv_prog_NMEDIT
5867e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$NMEDIT"; then
5868e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5869e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$NMEDIT" >&6; }
5870e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5871e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
5872e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
5873e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5874e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5875e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5876e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5877e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$ac_cv_prog_NMEDIT"; then
5878e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_ct_NMEDIT=$NMEDIT
5879e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "nmedit", so it can be a program name with args.
5880e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy nmedit; ac_word=$2
5881e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5882e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
5883e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5884e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
5885e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5886e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_ct_NMEDIT"; then
5887e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5888e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5889e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
5891e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
5892e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
5893e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
5894e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
5895e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5896e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5897e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5898e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
5899e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5900e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5901e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5902e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
5903e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5904e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5905e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5906e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5907e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_ct_NMEDIT"; then
5908e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5909e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_ct_NMEDIT" >&6; }
5910e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5911e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
5912e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
5913e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5914e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5915e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$ac_ct_NMEDIT" = x; then
5916e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    NMEDIT=":"
5917e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
5918e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $cross_compiling:$ac_tool_warned in
5919e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevyes:)
5920e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5921e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5922e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_tool_warned=yes ;;
5923e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
5924e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    NMEDIT=$ac_ct_NMEDIT
5925e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5926e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5927e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  NMEDIT="$ac_cv_prog_NMEDIT"
5928e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5929e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5930e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -n "$ac_tool_prefix"; then
5931e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5932e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy ${ac_tool_prefix}lipo; ac_word=$2
5933e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5934e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
5935e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_LIPO+set}" = set; then
5936e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
5937e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5938e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$LIPO"; then
5939e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5940e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5941e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
5943e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
5944e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
5945e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
5946e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
5947e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5948e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5949e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
5951e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5952e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5953e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5954e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
5955e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5956e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5957e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5958e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIPO=$ac_cv_prog_LIPO
5959e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$LIPO"; then
5960e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5961e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$LIPO" >&6; }
5962e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5963e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
5964e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
5965e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5966e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5967e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5968e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5969e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$ac_cv_prog_LIPO"; then
5970e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_ct_LIPO=$LIPO
5971e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "lipo", so it can be a program name with args.
5972e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy lipo; ac_word=$2
5973e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5974e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
5975e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5976e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
5977e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5978e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_ct_LIPO"; then
5979e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5980e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
5981e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
5983e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
5984e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
5985e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
5986e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
5987e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5988e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_ac_ct_LIPO="lipo"
5989e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
5991e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
5992e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5993e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
5994e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
5995e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
5996e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5997e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
5998e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5999e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_ct_LIPO"; then
6000e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6001e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_ct_LIPO" >&6; }
6002e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6003e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
6004e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
6005e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6006e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6007e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$ac_ct_LIPO" = x; then
6008e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    LIPO=":"
6009e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
6010e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $cross_compiling:$ac_tool_warned in
6011e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevyes:)
6012e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6013e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6014e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_tool_warned=yes ;;
6015e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
6016e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    LIPO=$ac_ct_LIPO
6017e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
6018e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6019e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  LIPO="$ac_cv_prog_LIPO"
6020e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6021e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6022e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -n "$ac_tool_prefix"; then
6023e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6024e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy ${ac_tool_prefix}otool; ac_word=$2
6025e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6026e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
6027e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_OTOOL+set}" = set; then
6028e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
6029e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6030e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$OTOOL"; then
6031e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6032e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6033e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
6035e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
6036e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
6037e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
6038e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
6039e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6041e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6042e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
6043e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
6044e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
6045e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
6046e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
6047e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6048e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6049e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6050e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOTOOL=$ac_cv_prog_OTOOL
6051e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$OTOOL"; then
6052e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6053e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$OTOOL" >&6; }
6054e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6055e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
6056e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
6057e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6058e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6059e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6060e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6061e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$ac_cv_prog_OTOOL"; then
6062e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_ct_OTOOL=$OTOOL
6063e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "otool", so it can be a program name with args.
6064e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy otool; ac_word=$2
6065e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6066e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
6067e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6068e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
6069e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6070e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_ct_OTOOL"; then
6071e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6072e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6073e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
6075e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
6076e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
6077e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
6078e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
6079e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6080e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_ac_ct_OTOOL="otool"
6081e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6082e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
6083e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
6084e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
6085e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
6086e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
6087e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6088e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6089e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6090e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6091e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_ct_OTOOL"; then
6092e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6093e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_ct_OTOOL" >&6; }
6094e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6095e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
6096e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
6097e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6098e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6099e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$ac_ct_OTOOL" = x; then
6100e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    OTOOL=":"
6101e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
6102e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $cross_compiling:$ac_tool_warned in
6103e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevyes:)
6104e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6105e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6106e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_tool_warned=yes ;;
6107e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
6108e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    OTOOL=$ac_ct_OTOOL
6109e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
6110e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6111e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  OTOOL="$ac_cv_prog_OTOOL"
6112e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6113e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6114e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -n "$ac_tool_prefix"; then
6115e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6116e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy ${ac_tool_prefix}otool64; ac_word=$2
6117e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6118e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
6119e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_OTOOL64+set}" = set; then
6120e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
6121e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6122e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$OTOOL64"; then
6123e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6124e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6125e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
6127e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
6128e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
6129e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
6130e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
6131e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6132e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6133e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6134e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
6135e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
6136e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
6137e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
6138e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
6139e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6140e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6141e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6142e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOTOOL64=$ac_cv_prog_OTOOL64
6143e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$OTOOL64"; then
6144e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6145e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$OTOOL64" >&6; }
6146e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6147e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
6148e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
6149e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6150e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6151e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6152e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6153e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$ac_cv_prog_OTOOL64"; then
6154e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_ct_OTOOL64=$OTOOL64
6155e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "otool64", so it can be a program name with args.
6156e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy otool64; ac_word=$2
6157e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6158e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
6159e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6160e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
6161e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6162e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_ct_OTOOL64"; then
6163e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6164e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6165e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
6167e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
6168e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
6169e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
6170e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
6171e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6172e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_ac_ct_OTOOL64="otool64"
6173e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6174e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
6175e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
6176e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
6177e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
6178e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
6179e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6180e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6181e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6182e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6183e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_ct_OTOOL64"; then
6184e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6185e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_ct_OTOOL64" >&6; }
6186e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6187e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
6188e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
6189e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6190e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6191e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$ac_ct_OTOOL64" = x; then
6192e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    OTOOL64=":"
6193e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
6194e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $cross_compiling:$ac_tool_warned in
6195e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevyes:)
6196e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6197e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6198e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_tool_warned=yes ;;
6199e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
6200e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    OTOOL64=$ac_ct_OTOOL64
6201e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
6202e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6203e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  OTOOL64="$ac_cv_prog_OTOOL64"
6204e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6205e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6206e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6207e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6208e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6209e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6210e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6211e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6212e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6213e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6214e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6215e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6216e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6217e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6218e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6219e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6220e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6221e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6222e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6223e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6224e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6225e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6226e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6227e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6228e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6229e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6230e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6231e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6232e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6233e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for -single_module linker flag... " >&6; }
6234e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_apple_cc_single_mod+set}" = set; then
6235e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
6236e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6237e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_apple_cc_single_mod=no
6238e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test -z "${LT_MULTI_MODULE}"; then
6239e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# By default we will add the -single_module flag. You can override
6240e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# by either setting the environment variable LT_MULTI_MODULE
6241e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# non-empty at configure time, or by adding -multi_module to the
6242e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# link flags.
6243e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	rm -rf libconftest.dylib*
6244e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	echo "int foo(void){return 1;}" > conftest.c
6245e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6246e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev-dynamiclib -Wl,-single_module conftest.c" >&5
6247e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6248e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6249e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        _lt_result=$?
6250e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6251e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  lt_cv_apple_cc_single_mod=yes
6252e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	else
6253e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  cat conftest.err >&5
6254e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi
6255e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	rm -rf libconftest.dylib*
6256e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	rm -f conftest.*
6257e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
6258e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6259e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6260e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6261e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6262e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6263e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6264e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
6265e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6266e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_ld_exported_symbols_list=no
6267e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      save_LDFLAGS=$LDFLAGS
6268e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      echo "_main" > conftest.sym
6269e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6270e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      cat >conftest.$ac_ext <<_ACEOF
6271e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
6272e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6273e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
6274e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
6275e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
6276e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6277e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
6278e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
6279e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
6280e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6281e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
6282e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
6283e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
6284e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6285e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext conftest$ac_exeext
6286e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_link"
6287e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
6288e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
6290e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
6291e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6292e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
6293e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_link") 2>conftest.er1
6294e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
6295e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
6296e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
6297e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
6298e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
6300e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
6301e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
6302e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest$ac_exeext && {
6303e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test "$cross_compiling" = yes ||
6304e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 $as_test_x conftest$ac_exeext
6305e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       }; then
6306e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_ld_exported_symbols_list=yes
6307e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6308e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
6309e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
6310e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6311e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_cv_ld_exported_symbols_list=no
6312e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6313e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6314e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -rf conftest.dSYM
6315e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6316e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      conftest$ac_exeext conftest.$ac_ext
6317e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	LDFLAGS="$save_LDFLAGS"
6318e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6319e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6320e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6321e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6322e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $host_os in
6323e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    rhapsody* | darwin1.[012])
6324e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6325e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    darwin1.*)
6326e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6327e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    darwin*) # darwin 5.x on
6328e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # if running on 10.5 or later, the deployment target defaults
6329e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # to the OS version, if on x86, and 10.4, the deployment
6330e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # target defaults to 10.4. Don't you love it?
6331e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6332e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6333e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6334e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	10.[012]*)
6335e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6336e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	10.*)
6337e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6338e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
6339e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
6340e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
6341e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6342e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      _lt_dar_single_mod='$single_module'
6343e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
6344e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6345e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6346e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    else
6347e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6348e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
6349e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test "$DSYMUTIL" != ":"; then
6350e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      _lt_dsymutil='~$DSYMUTIL $lib || :'
6351e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    else
6352e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      _lt_dsymutil=
6353e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
6354e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
6355e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
6356e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6357e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ext=c
6358e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cpp='$CPP $CPPFLAGS'
6359e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6360e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6361e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compiler_gnu=$ac_cv_c_compiler_gnu
6362e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6363e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking how to run the C preprocessor... " >&6; }
6364e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# On Suns, sometimes $CPP names a directory.
6365e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$CPP" && test -d "$CPP"; then
6366e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  CPP=
6367e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6368e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$CPP"; then
6369e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "${ac_cv_prog_CPP+set}" = set; then
6370e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
6371e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6372e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Double quotes because CPP needs to be expanded
6373e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6374e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    do
6375e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_preproc_ok=false
6376e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_c_preproc_warn_flag in '' yes
6377e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
6378e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Use a header file that comes with gcc, so configuring glibc
6379e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # with a fresh cross-compiler works.
6380e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6381e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # <limits.h> exists even on freestanding compilers.
6382e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # On the NeXT, cc -E runs the code through the compiler's parser,
6383e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # not just through cpp. "Syntax error" is here to catch this case.
6384e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.$ac_ext <<_ACEOF
6385e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
6386e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6387e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
6388e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
6389e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
6390e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef __STDC__
6391e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# include <limits.h>
6392e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#else
6393e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# include <assert.h>
6394e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
6395e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		     Syntax error
6396e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6397e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_cpp conftest.$ac_ext"
6398e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
6399e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
6401e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
6402e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6403e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
6404e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6405e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
6406e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
6407e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
6408e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
6409e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } >/dev/null && {
6411e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6412e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
6413e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       }; then
6414e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
6415e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6416e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
6417e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
6418e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6419e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Broken: fails on valid input.
6420e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcontinue
6421e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6422e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6423e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.err conftest.$ac_ext
6424e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6425e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # OK, works on sane cases.  Now check whether nonexistent headers
6426e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # can be detected and how.
6427e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.$ac_ext <<_ACEOF
6428e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
6429e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6430e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
6431e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
6432e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
6433e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <ac_nonexistent.h>
6434e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6435e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_cpp conftest.$ac_ext"
6436e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
6437e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6438e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
6439e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
6440e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6441e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
6442e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6443e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
6444e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
6445e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
6446e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
6447e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } >/dev/null && {
6449e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6450e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
6451e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       }; then
6452e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Broken: success on invalid input.
6453e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcontinue
6454e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6455e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
6456e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
6457e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6458e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Passes both tests.
6459e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_preproc_ok=:
6460e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbreak
6461e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6462e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6463e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.err conftest.$ac_ext
6464e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6465e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
6466e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6467e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.err conftest.$ac_ext
6468e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif $ac_preproc_ok; then
6469e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  break
6470e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6471e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6472e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    done
6473e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_prog_CPP=$CPP
6474e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6475e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6476e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  CPP=$ac_cv_prog_CPP
6477e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6478e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_prog_CPP=$CPP
6479e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6480e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6481e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$CPP" >&6; }
6482e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_preproc_ok=false
6483e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_c_preproc_warn_flag in '' yes
6484e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
6485e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Use a header file that comes with gcc, so configuring glibc
6486e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # with a fresh cross-compiler works.
6487e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6488e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # <limits.h> exists even on freestanding compilers.
6489e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # On the NeXT, cc -E runs the code through the compiler's parser,
6490e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # not just through cpp. "Syntax error" is here to catch this case.
6491e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.$ac_ext <<_ACEOF
6492e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
6493e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6494e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
6495e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
6496e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
6497e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef __STDC__
6498e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# include <limits.h>
6499e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#else
6500e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# include <assert.h>
6501e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
6502e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		     Syntax error
6503e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6504e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_cpp conftest.$ac_ext"
6505e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
6506e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6507e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
6508e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
6509e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6510e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
6511e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6512e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
6513e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
6514e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
6515e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
6516e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } >/dev/null && {
6518e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6519e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
6520e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       }; then
6521e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
6522e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6523e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
6524e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
6525e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6526e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Broken: fails on valid input.
6527e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcontinue
6528e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6529e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6530e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.err conftest.$ac_ext
6531e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6532e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # OK, works on sane cases.  Now check whether nonexistent headers
6533e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # can be detected and how.
6534e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.$ac_ext <<_ACEOF
6535e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
6536e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6537e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
6538e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
6539e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
6540e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <ac_nonexistent.h>
6541e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6542e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_cpp conftest.$ac_ext"
6543e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
6544e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
6546e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
6547e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6548e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
6549e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6550e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
6551e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
6552e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
6553e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
6554e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } >/dev/null && {
6556e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6557e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
6558e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       }; then
6559e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Broken: success on invalid input.
6560e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcontinue
6561e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6562e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
6563e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
6564e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6565e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Passes both tests.
6566e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_preproc_ok=:
6567e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbreak
6568e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6569e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6570e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.err conftest.$ac_ext
6571e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6572e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
6573e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6574e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.err conftest.$ac_ext
6575e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif $ac_preproc_ok; then
6576e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
6577e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6578e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6579e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6580e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6581e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee \`config.log' for more details." >&5
6582e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6583e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee \`config.log' for more details." >&2;}
6584e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }; }
6585e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6586e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6587e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ext=c
6588e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cpp='$CPP $CPPFLAGS'
6589e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6590e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6591e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compiler_gnu=$ac_cv_c_compiler_gnu
6592e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6593e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6594e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6595e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for ANSI C header files... " >&6; }
6596e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_header_stdc+set}" = set; then
6597e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
6598e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6599e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.$ac_ext <<_ACEOF
6600e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
6601e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6602e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
6603e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
6604e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
6605e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <stdlib.h>
6606e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <stdarg.h>
6607e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <string.h>
6608e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <float.h>
6609e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6610e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
6611e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
6612e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
6613e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6614e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
6615e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
6616e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
6617e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6618e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext
6619e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_compile"
6620e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
6621e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
6623e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
6624e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6625e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
6626e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_compile") 2>conftest.er1
6627e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
6628e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
6629e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
6630e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
6631e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
6633e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
6634e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
6635e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest.$ac_objext; then
6636e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_header_stdc=yes
6637e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6638e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
6639e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
6640e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6641e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ac_cv_header_stdc=no
6642e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6643e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6644e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6646e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test $ac_cv_header_stdc = yes; then
6647e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6648e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.$ac_ext <<_ACEOF
6649e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
6650e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6651e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
6652e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
6653e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
6654e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <string.h>
6655e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6656e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6657e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6658e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $EGREP "memchr" >/dev/null 2>&1; then
6659e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
6660e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6661e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_header_stdc=no
6662e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6663e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest*
6664e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6665e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6666e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6667e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test $ac_cv_header_stdc = yes; then
6668e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6669e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.$ac_ext <<_ACEOF
6670e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
6671e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6672e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
6673e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
6674e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
6675e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <stdlib.h>
6676e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6677e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6678e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6679e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $EGREP "free" >/dev/null 2>&1; then
6680e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
6681e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6682e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_header_stdc=no
6683e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6684e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest*
6685e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6686e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6687e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6688e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test $ac_cv_header_stdc = yes; then
6689e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6690e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$cross_compiling" = yes; then
6691e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
6692e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6693e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.$ac_ext <<_ACEOF
6694e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
6695e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6696e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
6697e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
6698e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
6699e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <ctype.h>
6700e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <stdlib.h>
6701e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#if ((' ' & 0x0FF) == 0x020)
6702e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6703e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6704e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#else
6705e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# define ISLOWER(c) \
6706e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		   (('a' <= (c) && (c) <= 'i') \
6707e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		     || ('j' <= (c) && (c) <= 'r') \
6708e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		     || ('s' <= (c) && (c) <= 'z'))
6709e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6710e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
6711e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6712e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6713e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
6714e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
6715e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
6716e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  int i;
6717e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for (i = 0; i < 256; i++)
6718e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if (XOR (islower (i), ISLOWER (i))
6719e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	|| toupper (i) != TOUPPER (i))
6720e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      return 2;
6721e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
6722e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
6723e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6724e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest$ac_exeext
6725e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_link"
6726e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
6727e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6728e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
6729e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
6730e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6731e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
6732e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_link") 2>&5
6733e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
6734e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6736e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { (case "(($ac_try" in
6737e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
6739e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
6740e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6741e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
6742e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_try") 2>&5
6743e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
6744e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); }; }; then
6746e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :
6747e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6748e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: program exited with status $ac_status" >&5
6749e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: failed program was:" >&5
6750e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
6751e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6752e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev( exit $ac_status )
6753e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cv_header_stdc=no
6754e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6755e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -rf conftest.dSYM
6756e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6757e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6758e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6759e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6760e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6761e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6762e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6763e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_header_stdc" >&6; }
6764e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test $ac_cv_header_stdc = yes; then
6765e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6766e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>confdefs.h <<\_ACEOF
6767e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define STDC_HEADERS 1
6768e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6769e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6770e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6771e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6772e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6773e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6774e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6775e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6776e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6777e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6778e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6779e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6780e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6781e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6782e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6783e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		  inttypes.h stdint.h unistd.h
6784e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
6785e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6786e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6787e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_header... " >&6; }
6788e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6789e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
6790e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6791e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.$ac_ext <<_ACEOF
6792e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
6793e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6794e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
6795e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
6796e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
6797e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$ac_includes_default
6798e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6799e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <$ac_header>
6800e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6801e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext
6802e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_compile"
6803e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
6804e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
6806e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
6807e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6808e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
6809e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_compile") 2>conftest.er1
6810e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
6811e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
6812e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
6813e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
6814e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
6816e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
6817e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
6818e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest.$ac_objext; then
6819e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  eval "$as_ac_Header=yes"
6820e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6821e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
6822e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
6823e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6824e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	eval "$as_ac_Header=no"
6825e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6826e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6827e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6828e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6829e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_res=`eval 'as_val=${'$as_ac_Header'}
6830e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		 $as_echo "$as_val"'`
6831e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6832e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_res" >&6; }
6833e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_val=`eval 'as_val=${'$as_ac_Header'}
6834e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		 $as_echo "$as_val"'`
6835e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   if test "x$as_val" = x""yes; then
6836e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >>confdefs.h <<_ACEOF
6837e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6838e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6839e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6840e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6841e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6842e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
6843e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6844e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6845e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6846e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_header in dlfcn.h
6847e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
6848e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6849e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6850e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_header... " >&6; }
6851e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6852e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
6853e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6854e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.$ac_ext <<_ACEOF
6855e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
6856e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6857e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
6858e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
6859e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
6860e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$ac_includes_default
6861e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6862e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <$ac_header>
6863e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6864e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext
6865e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_compile"
6866e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
6867e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6868e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
6869e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
6870e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6871e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
6872e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_compile") 2>conftest.er1
6873e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
6874e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
6875e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
6876e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
6877e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
6879e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
6880e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
6881e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest.$ac_objext; then
6882e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  eval "$as_ac_Header=yes"
6883e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6884e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
6885e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
6886e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6887e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	eval "$as_ac_Header=no"
6888e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6889e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6890e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6892e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_res=`eval 'as_val=${'$as_ac_Header'}
6893e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		 $as_echo "$as_val"'`
6894e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6895e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_res" >&6; }
6896e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_val=`eval 'as_val=${'$as_ac_Header'}
6897e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		 $as_echo "$as_val"'`
6898e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   if test "x$as_val" = x""yes; then
6899e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >>confdefs.h <<_ACEOF
6900e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6901e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
6902e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6903e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6904e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6905e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
6906e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6907e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6908e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6909e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Set options
6910e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6911e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6912e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6913e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        enable_dlopen=no
6914e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6915e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6916e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enable_win32_dll=no
6917e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6918e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6919e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            # Check whether --enable-shared was given.
6920e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${enable_shared+set}" = set; then
6921e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enableval=$enable_shared; p=${PACKAGE-default}
6922e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $enableval in
6923e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    yes) enable_shared=yes ;;
6924e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    no) enable_shared=no ;;
6925e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)
6926e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      enable_shared=no
6927e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Look at the argument we got.  We use all the common list separators.
6928e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6929e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      for pkg in $enableval; do
6930e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	IFS="$lt_save_ifs"
6931e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	if test "X$pkg" = "X$p"; then
6932e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  enable_shared=yes
6933e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi
6934e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      done
6935e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      IFS="$lt_save_ifs"
6936e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
6937e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
6938e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6939e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enable_shared=yes
6940e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6941e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6942e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6943e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6944e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6945e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6946e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6947e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6948e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6949e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6950e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Check whether --enable-static was given.
6951e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${enable_static+set}" = set; then
6952e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enableval=$enable_static; p=${PACKAGE-default}
6953e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $enableval in
6954e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    yes) enable_static=yes ;;
6955e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    no) enable_static=no ;;
6956e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)
6957e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     enable_static=no
6958e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Look at the argument we got.  We use all the common list separators.
6959e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6960e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      for pkg in $enableval; do
6961e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	IFS="$lt_save_ifs"
6962e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	if test "X$pkg" = "X$p"; then
6963e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  enable_static=yes
6964e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi
6965e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      done
6966e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      IFS="$lt_save_ifs"
6967e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
6968e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
6969e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6970e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enable_static=yes
6971e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6972e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6973e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6974e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6975e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6976e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6977e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6978e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6979e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6980e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6981e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6982e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check whether --with-pic was given.
6983e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${with_pic+set}" = set; then
6984e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  withval=$with_pic; pic_mode="$withval"
6985e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
6986e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  pic_mode=default
6987e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
6988e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6989e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6990e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$pic_mode" && pic_mode=default
6991e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6992e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6993e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6994e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6995e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6996e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6997e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
6998e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Check whether --enable-fast-install was given.
6999e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${enable_fast_install+set}" = set; then
7000e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enableval=$enable_fast_install; p=${PACKAGE-default}
7001e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $enableval in
7002e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    yes) enable_fast_install=yes ;;
7003e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    no) enable_fast_install=no ;;
7004e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)
7005e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      enable_fast_install=no
7006e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Look at the argument we got.  We use all the common list separators.
7007e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7008e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      for pkg in $enableval; do
7009e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	IFS="$lt_save_ifs"
7010e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	if test "X$pkg" = "X$p"; then
7011e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  enable_fast_install=yes
7012e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi
7013e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      done
7014e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      IFS="$lt_save_ifs"
7015e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7016e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
7017e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
7018e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enable_fast_install=yes
7019e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7020e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7021e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7022e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7023e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7024e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7025e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7026e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7027e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7028e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7029e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7030e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7031e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# This can be used to rebuild libtool when needed
7032e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBTOOL_DEPS="$ltmain"
7033e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7034e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Always use our own libtool.
7035e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBTOOL='$(SHELL) $(top_builddir)/libtool'
7036e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7037e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7038e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7039e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7040e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7041e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7042e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7043e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7044e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7045e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7046e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7047e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7048e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7049e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7050e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7051e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7052e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7053e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7054e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7055e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7056e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7057e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7058e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7059e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7060e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7061e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$LN_S" && LN_S="ln -s"
7062e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7063e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7064e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7065e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7066e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7067e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7068e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7069e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7070e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7071e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7072e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7073e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7074e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7075e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7076e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "${ZSH_VERSION+set}" ; then
7077e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   setopt NO_GLOB_SUBST
7078e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7079e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7080e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7081e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for objdir... " >&6; }
7082e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_objdir+set}" = set; then
7083e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
7084e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
7085e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f .libs 2>/dev/null
7086e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmkdir .libs 2>/dev/null
7087e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -d .libs; then
7088e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_objdir=.libs
7089e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
7090e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # MS-DOS does not allow filenames that begin with a dot.
7091e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_objdir=_libs
7092e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7093e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrmdir .libs 2>/dev/null
7094e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7095e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7096e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_cv_objdir" >&6; }
7097e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevobjdir=$lt_cv_objdir
7098e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7099e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7100e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7101e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7102e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7103e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>confdefs.h <<_ACEOF
7104e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define LT_OBJDIR "$lt_cv_objdir/"
7105e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
7106e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7107e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7108e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7109e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7110e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7111e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7112e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7113e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7114e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7115e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7116e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7117e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7118e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7119e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7120e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7121e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7122e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7123e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $host_os in
7124e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevaix3*)
7125e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # AIX sometimes has problems with the GCC collect2 program.  For some
7126e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # reason, if we set the COLLECT_NAMES environment variable, the problems
7127e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # vanish in a puff of smoke.
7128e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "X${COLLECT_NAMES+set}" != Xset; then
7129e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    COLLECT_NAMES=
7130e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    export COLLECT_NAMES
7131e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
7132e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
7133e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
7134e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7135e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Sed substitution that helps us do robust quoting.  It backslashifies
7136e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# metacharacters that are still active within double-quoted strings.
7137e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7138e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7139e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Same as above, but do not quote variable references.
7140e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdouble_quote_subst='s/\(["`\\]\)/\\\1/g'
7141e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7142e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Sed substitution to delay expansion of an escaped shell variable in a
7143e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# double_quote_subst'ed string.
7144e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7145e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7146e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Sed substitution to delay expansion of an escaped single quote.
7147e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7148e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7149e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Sed substitution to avoid accidental globbing in evaled expressions
7150e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevno_glob_subst='s/\*/\\\*/g'
7151e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7152e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Global variables:
7153e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevofile=libtool
7154e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcan_build_shared=yes
7155e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7156e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# All known linkers require a `.a' archive for static linking (except MSVC,
7157e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# which needs '.lib').
7158e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlibext=a
7159e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7160e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevwith_gnu_ld="$lt_cv_prog_gnu_ld"
7161e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7162e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_CC="$CC"
7163e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_CFLAGS="$CFLAGS"
7164e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7165e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Set sane defaults for various variables
7166e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$CC" && CC=cc
7167e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$LTCC" && LTCC=$CC
7168e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7169e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$LD" && LD=ld
7170e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$ac_objext" && ac_objext=o
7171e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7172e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor cc_temp in $compiler""; do
7173e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $cc_temp in
7174e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7175e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7176e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    \-*) ;;
7177e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *) break;;
7178e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
7179e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
7180e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7181e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7182e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7183e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Only perform the check for file, if the check method requires it
7184e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$MAGIC_CMD" && MAGIC_CMD=file
7185e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $deplibs_check_method in
7186e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfile_magic*)
7187e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7188e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7189e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7190e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7191e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
7192e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
7193e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $MAGIC_CMD in
7194e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev[\\/*] |  ?:[\\/]*)
7195e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7196e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
7197e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*)
7198e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_save_MAGIC_CMD="$MAGIC_CMD"
7199e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7200e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7201e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_dir in $ac_dummy; do
7202e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    IFS="$lt_save_ifs"
7203e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test -z "$ac_dir" && ac_dir=.
7204e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -f $ac_dir/${ac_tool_prefix}file; then
7205e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7206e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test -n "$file_magic_test_file"; then
7207e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case $deplibs_check_method in
7208e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	"file_magic "*)
7209e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7210e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7211e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7212e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    $EGREP "$file_magic_regex" > /dev/null; then
7213e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    :
7214e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  else
7215e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    cat <<_LT_EOF 1>&2
7216e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7217e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** Warning: the command libtool uses to detect shared libraries,
7218e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** $file_magic_cmd, produces output that libtool cannot recognize.
7219e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** The result is that libtool may fail to recognize shared libraries
7220e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** as such.  This will affect the creation of libtool libraries that
7221e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** depend on shared libraries, but programs linked with such libtool
7222e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** libraries will work regardless of this problem.  Nevertheless, you
7223e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** may want to report the problem to your system manager and/or to
7224e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** bug-libtool@gnu.org
7225e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7226e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
7227e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  fi ;;
7228e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
7229e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
7230e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      break
7231e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
7232e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
7233e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS="$lt_save_ifs"
7234e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  MAGIC_CMD="$lt_save_MAGIC_CMD"
7235e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
7236e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
7237e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7238e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7239e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7240e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$MAGIC_CMD"; then
7241e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7242e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$MAGIC_CMD" >&6; }
7243e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
7244e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
7245e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
7246e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7247e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7248e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7249e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7250e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7251e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7252e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$lt_cv_path_MAGIC_CMD"; then
7253e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -n "$ac_tool_prefix"; then
7254e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me:$LINENO: checking for file" >&5
7255e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for file... " >&6; }
7256e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7257e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
7258e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
7259e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $MAGIC_CMD in
7260e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev[\\/*] |  ?:[\\/]*)
7261e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7262e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
7263e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*)
7264e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_save_MAGIC_CMD="$MAGIC_CMD"
7265e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7266e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7267e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_dir in $ac_dummy; do
7268e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    IFS="$lt_save_ifs"
7269e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test -z "$ac_dir" && ac_dir=.
7270e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -f $ac_dir/file; then
7271e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7272e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test -n "$file_magic_test_file"; then
7273e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case $deplibs_check_method in
7274e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	"file_magic "*)
7275e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7276e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7277e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7278e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    $EGREP "$file_magic_regex" > /dev/null; then
7279e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    :
7280e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  else
7281e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    cat <<_LT_EOF 1>&2
7282e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7283e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** Warning: the command libtool uses to detect shared libraries,
7284e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** $file_magic_cmd, produces output that libtool cannot recognize.
7285e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** The result is that libtool may fail to recognize shared libraries
7286e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** as such.  This will affect the creation of libtool libraries that
7287e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** depend on shared libraries, but programs linked with such libtool
7288e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** libraries will work regardless of this problem.  Nevertheless, you
7289e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** may want to report the problem to your system manager and/or to
7290e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** bug-libtool@gnu.org
7291e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7292e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
7293e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  fi ;;
7294e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
7295e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
7296e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      break
7297e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
7298e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
7299e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS="$lt_save_ifs"
7300e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  MAGIC_CMD="$lt_save_MAGIC_CMD"
7301e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
7302e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
7303e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7304e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7305e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7306e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$MAGIC_CMD"; then
7307e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7308e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$MAGIC_CMD" >&6; }
7309e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
7310e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
7311e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
7312e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7313e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7314e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7315e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
7316e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    MAGIC_CMD=:
7317e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
7318e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7319e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7320e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
7321e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
7322e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
7323e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7324e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Use C for the default configuration in the libtool script
7325e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7326e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_save_CC="$CC"
7327e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ext=c
7328e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cpp='$CPP $CPPFLAGS'
7329e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7330e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7331e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compiler_gnu=$ac_cv_c_compiler_gnu
7332e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7333e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7334e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Source file extension for C test sources.
7335e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ext=c
7336e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7337e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Object file extension for compiled C test sources.
7338e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevobjext=o
7339e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevobjext=$objext
7340e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7341e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Code to be used in simple compile tests
7342e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_simple_compile_test_code="int some_variable = 0;"
7343e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7344e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Code to be used in simple link tests
7345e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_simple_link_test_code='int main(){return(0);}'
7346e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7347e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7348e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7349e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7350e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7351e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7352e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7353e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# If no C compiler was specified, use CC.
7354e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLTCC=${LTCC-"$CC"}
7355e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7356e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# If no C compiler flags were specified, use CFLAGS.
7357e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7358e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7359e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Allow CC to be a program name with arguments.
7360e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcompiler=$CC
7361e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7362e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Save the default compiler, since it gets overwritten when the other
7363e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7364e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcompiler_DEFAULT=$CC
7365e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7366e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# save warnings/boilerplate of simple test code
7367e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_outfile=conftest.$ac_objext
7368e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevecho "$lt_simple_compile_test_code" >conftest.$ac_ext
7369e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7370e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_lt_compiler_boilerplate=`cat conftest.err`
7371e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$RM conftest*
7372e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7373e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_outfile=conftest.$ac_objext
7374e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevecho "$lt_simple_link_test_code" >conftest.$ac_ext
7375e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7376e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_lt_linker_boilerplate=`cat conftest.err`
7377e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$RM -r conftest*
7378e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7379e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7380e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## CAVEAT EMPTOR:
7381e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## There is no encapsulation within the following macros, do not change
7382e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## the running order or otherwise move them around unless you know exactly
7383e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## what you are doing...
7384e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$compiler"; then
7385e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7386e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_prog_compiler_no_builtin_flag=
7387e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7388e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$GCC" = yes; then
7389e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7390e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7391e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7392e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7393e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7394e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
7395e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
7396e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_prog_compiler_rtti_exceptions=no
7397e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   ac_outfile=conftest.$ac_objext
7398e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7399e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   lt_compiler_flag="-fno-rtti -fno-exceptions"
7400e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # Insert the option either (1) after the last *FLAGS variable, or
7401e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # (2) before a word containing "conftest.", or (3) at the end.
7402e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # Note that $ac_compile itself does not contain backslashes and begins
7403e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # with a dollar sign (not a hyphen), so the echo should work correctly.
7404e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # The option is referenced via a variable to avoid confusing sed.
7405e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   lt_compile=`echo "$ac_compile" | $SED \
7406e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7407e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7408e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   -e 's:$: $lt_compiler_flag:'`
7409e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   (eval echo "\"\$as_me:7409: $lt_compile\"" >&5)
7410e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   (eval "$lt_compile" 2>conftest.err)
7411e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   ac_status=$?
7412e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   cat conftest.err >&5
7413e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   echo "$as_me:7413: \$? = $ac_status" >&5
7414e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   if (exit $ac_status) && test -s "$ac_outfile"; then
7415e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     # The compiler can only warn and ignore the option if not recognized
7416e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     # So say no if there are warnings other than the usual output.
7417e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7418e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7419e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7420e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       lt_cv_prog_compiler_rtti_exceptions=yes
7421e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     fi
7422e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   fi
7423e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   $RM conftest*
7424e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7425e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7426e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7427e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7428e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7429e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7430e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7431e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
7432e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    :
7433e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7434e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7435e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7436e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7437e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7438e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7439e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7440e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7441e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7442e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_prog_compiler_wl=
7443e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_prog_compiler_pic=
7444e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_prog_compiler_static=
7445e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7446e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7447e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7448e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7449e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$GCC" = yes; then
7450e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_prog_compiler_wl='-Wl,'
7451e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_prog_compiler_static='-static'
7452e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7453e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $host_os in
7454e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      aix*)
7455e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # All AIX code is PIC.
7456e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$host_cpu" = ia64; then
7457e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# AIX 5 now supports IA64 processor
7458e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_static='-Bstatic'
7459e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
7460e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7461e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7462e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    amigaos*)
7463e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $host_cpu in
7464e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      powerpc)
7465e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            # see comment about AmigaOS4 .so support
7466e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            lt_prog_compiler_pic='-fPIC'
7467e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        ;;
7468e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      m68k)
7469e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            # FIXME: we need at least 68020 code to build shared libraries, but
7470e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            # adding the `-m68020' flag to GCC prevents building anything better,
7471e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            # like `-m68040'.
7472e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7473e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        ;;
7474e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
7475e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7476e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7477e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7478e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # PIC is the default for these OSes.
7479e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7480e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7481e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    mingw* | cygwin* | pw32* | os2* | cegcc*)
7482e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # This hack is so that the source file can tell whether it is being
7483e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # built for inclusion in a dll (and should export symbols for example).
7484e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7485e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # (--disable-auto-import) libraries
7486e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_pic='-DDLL_EXPORT'
7487e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7488e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7489e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    darwin* | rhapsody*)
7490e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # PIC is the default on this platform
7491e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Common symbols not allowed in MH_DYLIB files
7492e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_pic='-fno-common'
7493e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7494e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7495e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    hpux*)
7496e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7497e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7498e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # sets the default TLS model and affects inlining.
7499e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $host_cpu in
7500e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hppa*64*)
7501e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# +Z the default
7502e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
7503e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *)
7504e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_pic='-fPIC'
7505e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
7506e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
7507e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7508e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7509e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    interix[3-9]*)
7510e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7511e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Instead, we relocate shared libraries at runtime.
7512e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7513e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7514e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    msdosdjgpp*)
7515e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Just because we use GCC doesn't mean we suddenly get shared libraries
7516e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # on systems that don't support them.
7517e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_can_build_shared=no
7518e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      enable_shared=no
7519e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7520e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7521e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *nto* | *qnx*)
7522e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # QNX uses GNU C++, but need to define -shared option too, otherwise
7523e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # it will coredump.
7524e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_pic='-fPIC -shared'
7525e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7526e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7527e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sysv4*MP*)
7528e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test -d /usr/nec; then
7529e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_pic=-Kconform_pic
7530e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
7531e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7532e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7533e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)
7534e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_pic='-fPIC'
7535e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7536e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
7537e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
7538e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # PORTME Check for flag to pass linker flags through the system compiler.
7539e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $host_os in
7540e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    aix*)
7541e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_wl='-Wl,'
7542e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$host_cpu" = ia64; then
7543e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# AIX 5 now supports IA64 processor
7544e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_static='-Bstatic'
7545e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
7546e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7547e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
7548e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7549e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7550e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    mingw* | cygwin* | pw32* | os2* | cegcc*)
7551e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # This hack is so that the source file can tell whether it is being
7552e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # built for inclusion in a dll (and should export symbols for example).
7553e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_pic='-DDLL_EXPORT'
7554e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7555e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7556e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    hpux9* | hpux10* | hpux11*)
7557e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_wl='-Wl,'
7558e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7559e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # not for PA HP-UX.
7560e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $host_cpu in
7561e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hppa*64*|ia64*)
7562e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# +Z the default
7563e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
7564e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *)
7565e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_pic='+Z'
7566e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
7567e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
7568e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7569e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_static='${wl}-a ${wl}archive'
7570e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7571e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7572e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    irix5* | irix6* | nonstopux*)
7573e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_wl='-Wl,'
7574e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # PIC (with -KPIC) is the default.
7575e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_static='-non_shared'
7576e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7577e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7578e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    linux* | k*bsd*-gnu)
7579e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $cc_basename in
7580e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # old Intel for x86_64 which still supported -KPIC.
7581e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ecc*)
7582e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_wl='-Wl,'
7583e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_pic='-KPIC'
7584e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_static='-static'
7585e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        ;;
7586e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # icc used to be incompatible with GCC.
7587e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # ICC 10 doesn't accept -KPIC any more.
7588e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      icc* | ifort*)
7589e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_wl='-Wl,'
7590e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_pic='-fPIC'
7591e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_static='-static'
7592e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        ;;
7593e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Lahey Fortran 8.1.
7594e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lf95*)
7595e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_wl='-Wl,'
7596e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_pic='--shared'
7597e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_static='--static'
7598e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
7599e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      pgcc* | pgf77* | pgf90* | pgf95*)
7600e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        # Portland Group compilers (*not* the Pentium gcc compiler,
7601e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# which looks to be a dead project)
7602e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_wl='-Wl,'
7603e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_pic='-fpic'
7604e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_static='-Bstatic'
7605e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        ;;
7606e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ccc*)
7607e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        lt_prog_compiler_wl='-Wl,'
7608e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        # All Alpha code is PIC.
7609e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        lt_prog_compiler_static='-non_shared'
7610e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        ;;
7611e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      xl*)
7612e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# IBM XL C 8.0/Fortran 10.1 on PPC
7613e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_wl='-Wl,'
7614e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_pic='-qpic'
7615e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_static='-qstaticlink'
7616e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
7617e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *)
7618e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case `$CC -V 2>&1 | sed 5q` in
7619e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*Sun\ C*)
7620e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # Sun C 5.9
7621e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  lt_prog_compiler_pic='-KPIC'
7622e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  lt_prog_compiler_static='-Bstatic'
7623e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  lt_prog_compiler_wl='-Wl,'
7624e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
7625e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*Sun\ F*)
7626e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7627e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  lt_prog_compiler_pic='-KPIC'
7628e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  lt_prog_compiler_static='-Bstatic'
7629e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  lt_prog_compiler_wl=''
7630e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
7631e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
7632e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
7633e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
7634e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7635e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7636e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    newsos6)
7637e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_pic='-KPIC'
7638e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_static='-Bstatic'
7639e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7640e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7641e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *nto* | *qnx*)
7642e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # QNX uses GNU C++, but need to define -shared option too, otherwise
7643e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # it will coredump.
7644e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_pic='-fPIC -shared'
7645e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7646e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7647e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    osf3* | osf4* | osf5*)
7648e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_wl='-Wl,'
7649e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # All OSF/1 code is PIC.
7650e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_static='-non_shared'
7651e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7652e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7653e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    rdos*)
7654e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_static='-non_shared'
7655e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7656e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7657e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    solaris*)
7658e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_pic='-KPIC'
7659e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_static='-Bstatic'
7660e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $cc_basename in
7661e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      f77* | f90* | f95*)
7662e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_wl='-Qoption ld ';;
7663e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *)
7664e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_wl='-Wl,';;
7665e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
7666e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7667e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7668e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sunos4*)
7669e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_wl='-Qoption ld '
7670e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_pic='-PIC'
7671e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_static='-Bstatic'
7672e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7673e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7674e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sysv4 | sysv4.2uw2* | sysv4.3*)
7675e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_wl='-Wl,'
7676e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_pic='-KPIC'
7677e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_static='-Bstatic'
7678e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7679e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7680e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sysv4*MP*)
7681e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test -d /usr/nec ;then
7682e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_pic='-Kconform_pic'
7683e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_prog_compiler_static='-Bstatic'
7684e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
7685e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7686e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7687e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7688e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_wl='-Wl,'
7689e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_pic='-KPIC'
7690e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_static='-Bstatic'
7691e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7692e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7693e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    unicos*)
7694e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_wl='-Wl,'
7695e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_can_build_shared=no
7696e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7697e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7698e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    uts4*)
7699e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_pic='-pic'
7700e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_static='-Bstatic'
7701e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7702e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7703e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)
7704e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_prog_compiler_can_build_shared=no
7705e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
7706e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
7707e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
7708e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7709e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $host_os in
7710e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # For platforms which do not support PIC, -DPIC is meaningless:
7711e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *djgpp*)
7712e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_prog_compiler_pic=
7713e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
7714e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
7715e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7716e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
7717e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
7718e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7719e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_prog_compiler_pic" >&6; }
7720e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7721e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7722e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7723e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7724e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7725e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7726e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
7727e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check to make sure the PIC flag actually works.
7728e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
7729e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$lt_prog_compiler_pic"; then
7730e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7731e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7732e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7733e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
7734e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
7735e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_prog_compiler_pic_works=no
7736e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   ac_outfile=conftest.$ac_objext
7737e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7738e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7739e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # Insert the option either (1) after the last *FLAGS variable, or
7740e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # (2) before a word containing "conftest.", or (3) at the end.
7741e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # Note that $ac_compile itself does not contain backslashes and begins
7742e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # with a dollar sign (not a hyphen), so the echo should work correctly.
7743e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # The option is referenced via a variable to avoid confusing sed.
7744e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   lt_compile=`echo "$ac_compile" | $SED \
7745e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7746e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7747e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   -e 's:$: $lt_compiler_flag:'`
7748e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   (eval echo "\"\$as_me:7748: $lt_compile\"" >&5)
7749e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   (eval "$lt_compile" 2>conftest.err)
7750e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   ac_status=$?
7751e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   cat conftest.err >&5
7752e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   echo "$as_me:7752: \$? = $ac_status" >&5
7753e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   if (exit $ac_status) && test -s "$ac_outfile"; then
7754e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     # The compiler can only warn and ignore the option if not recognized
7755e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     # So say no if there are warnings other than the usual output.
7756e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7757e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7758e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7759e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       lt_cv_prog_compiler_pic_works=yes
7760e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     fi
7761e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   fi
7762e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   $RM conftest*
7763e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7764e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7765e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7766e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7767e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7768e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7769e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $lt_prog_compiler_pic in
7770e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     "" | " "*) ;;
7771e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7772e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     esac
7773e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
7774e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_prog_compiler_pic=
7775e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     lt_prog_compiler_can_build_shared=no
7776e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7777e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7778e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7779e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7780e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7781e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7782e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7783e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7784e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7785e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
7786e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check to make sure the static flag actually works.
7787e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
7788e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7789e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7790e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7791e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_prog_compiler_static_works+set}" = set; then
7792e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
7793e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
7794e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_prog_compiler_static_works=no
7795e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   save_LDFLAGS="$LDFLAGS"
7796e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7797e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7798e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7799e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     # The linker can only warn and ignore the option if not recognized
7800e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     # So say no if there are warnings
7801e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     if test -s conftest.err; then
7802e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       # Append any errors to the config.log.
7803e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       cat conftest.err 1>&5
7804e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7805e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7806e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       if diff conftest.exp conftest.er2 >/dev/null; then
7807e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev         lt_cv_prog_compiler_static_works=yes
7808e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       fi
7809e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     else
7810e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       lt_cv_prog_compiler_static_works=yes
7811e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     fi
7812e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   fi
7813e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   $RM -r conftest*
7814e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   LDFLAGS="$save_LDFLAGS"
7815e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7816e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7817e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7818e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7819e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7820e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test x"$lt_cv_prog_compiler_static_works" = xyes; then
7821e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    :
7822e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
7823e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_prog_compiler_static=
7824e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7825e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7826e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7827e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7828e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7829e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7830e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7831e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7832e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7833e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7834e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_prog_compiler_c_o+set}" = set; then
7835e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
7836e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
7837e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_prog_compiler_c_o=no
7838e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   $RM -r conftest 2>/dev/null
7839e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   mkdir conftest
7840e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   cd conftest
7841e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   mkdir out
7842e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7843e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7844e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   lt_compiler_flag="-o out/conftest2.$ac_objext"
7845e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # Insert the option either (1) after the last *FLAGS variable, or
7846e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # (2) before a word containing "conftest.", or (3) at the end.
7847e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # Note that $ac_compile itself does not contain backslashes and begins
7848e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # with a dollar sign (not a hyphen), so the echo should work correctly.
7849e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   lt_compile=`echo "$ac_compile" | $SED \
7850e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7851e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7852e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   -e 's:$: $lt_compiler_flag:'`
7853e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   (eval echo "\"\$as_me:7853: $lt_compile\"" >&5)
7854e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   (eval "$lt_compile" 2>out/conftest.err)
7855e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   ac_status=$?
7856e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   cat out/conftest.err >&5
7857e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   echo "$as_me:7857: \$? = $ac_status" >&5
7858e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7859e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   then
7860e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     # The compiler can only warn and ignore the option if not recognized
7861e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     # So say no if there are warnings
7862e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7863e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7864e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7865e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       lt_cv_prog_compiler_c_o=yes
7866e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     fi
7867e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   fi
7868e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   chmod u+w . 2>&5
7869e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   $RM conftest*
7870e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # SGI C++ compiler will create directory out/ii_files/ for
7871e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # template instantiation
7872e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7873e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   $RM out/* && rmdir out
7874e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   cd ..
7875e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   $RM -r conftest
7876e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   $RM conftest*
7877e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7878e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7879e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7880e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7881e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7882e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7883e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7884e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7885e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7886e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7887e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7888e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7889e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_prog_compiler_c_o+set}" = set; then
7890e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
7891e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
7892e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_prog_compiler_c_o=no
7893e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   $RM -r conftest 2>/dev/null
7894e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   mkdir conftest
7895e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   cd conftest
7896e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   mkdir out
7897e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7898e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7899e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   lt_compiler_flag="-o out/conftest2.$ac_objext"
7900e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # Insert the option either (1) after the last *FLAGS variable, or
7901e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # (2) before a word containing "conftest.", or (3) at the end.
7902e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # Note that $ac_compile itself does not contain backslashes and begins
7903e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # with a dollar sign (not a hyphen), so the echo should work correctly.
7904e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   lt_compile=`echo "$ac_compile" | $SED \
7905e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7906e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7907e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   -e 's:$: $lt_compiler_flag:'`
7908e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   (eval echo "\"\$as_me:7908: $lt_compile\"" >&5)
7909e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   (eval "$lt_compile" 2>out/conftest.err)
7910e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   ac_status=$?
7911e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   cat out/conftest.err >&5
7912e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   echo "$as_me:7912: \$? = $ac_status" >&5
7913e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7914e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   then
7915e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     # The compiler can only warn and ignore the option if not recognized
7916e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     # So say no if there are warnings
7917e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7918e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7919e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7920e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       lt_cv_prog_compiler_c_o=yes
7921e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     fi
7922e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   fi
7923e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   chmod u+w . 2>&5
7924e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   $RM conftest*
7925e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # SGI C++ compiler will create directory out/ii_files/ for
7926e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # template instantiation
7927e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7928e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   $RM out/* && rmdir out
7929e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   cd ..
7930e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   $RM -r conftest
7931e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   $RM conftest*
7932e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7933e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7934e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7935e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7936e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7937e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7938e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7939e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7940e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhard_links="nottested"
7941e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7942e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # do not overwrite the value of need_locks provided by the user
7943e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7944e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking if we can lock with hard links... " >&6; }
7945e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hard_links=yes
7946e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $RM conftest*
7947e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7948e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  touch conftest.a
7949e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ln conftest.a conftest.b 2>&5 || hard_links=no
7950e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7951e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7952e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$hard_links" >&6; }
7953e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$hard_links" = no; then
7954e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7955e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7956e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    need_locks=warn
7957e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
7958e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
7959e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_locks=no
7960e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
7961e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7962e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7963e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7964e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7965e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7966e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7967e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7968e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7969e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
7970e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  runpath_var=
7971e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  allow_undefined_flag=
7972e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  always_export_symbols=no
7973e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  archive_cmds=
7974e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  archive_expsym_cmds=
7975e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  compiler_needs_object=no
7976e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enable_shared_with_static_runtimes=no
7977e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  export_dynamic_flag_spec=
7978e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7979e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_automatic=no
7980e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_direct=no
7981e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_direct_absolute=no
7982e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_libdir_flag_spec=
7983e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_libdir_flag_spec_ld=
7984e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_libdir_separator=
7985e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_minus_L=no
7986e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_shlibpath_var=unsupported
7987e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  inherit_rpath=no
7988e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  link_all_deplibs=unknown
7989e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  module_cmds=
7990e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  module_expsym_cmds=
7991e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  old_archive_from_new_cmds=
7992e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  old_archive_from_expsyms_cmds=
7993e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  thread_safe_flag_spec=
7994e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  whole_archive_flag_spec=
7995e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # include_expsyms should be a list of space-separated symbols to be *always*
7996e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # included in the symbol list
7997e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  include_expsyms=
7998e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # exclude_expsyms can be an extended regexp of symbols to exclude
7999e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8000e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8001e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # as well as any symbol that contains `d'.
8002e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8003e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8004e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # platforms (ab)use it in PIC code, but their linkers get confused if
8005e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # the symbol is explicitly referenced.  Since portable code cannot
8006e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # rely on this symbol name, it's probably fine to never include it in
8007e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # preloaded symbol tables.
8008e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Exclude shared library initialization/finalization symbols.
8009e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  extract_expsyms_cmds=
8010e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8011e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_os in
8012e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cygwin* | mingw* | pw32* | cegcc*)
8013e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8014e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # When not using gcc, we currently assume that we are using
8015e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Microsoft Visual C++.
8016e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test "$GCC" != yes; then
8017e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      with_gnu_ld=no
8018e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
8019e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
8020e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  interix*)
8021e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # we just hope/assume this is gcc and not c89 (= MSVC++)
8022e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    with_gnu_ld=yes
8023e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
8024e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  openbsd*)
8025e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    with_gnu_ld=no
8026e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
8027e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
8028e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8029e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ld_shlibs=yes
8030e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$with_gnu_ld" = yes; then
8031e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # If archive_cmds runs LD, not CC, wlarc should be empty
8032e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    wlarc='${wl}'
8033e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8034e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Set some defaults for GNU ld with shared library support. These
8035e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # are reset later if shared libraries are not supported. Putting them
8036e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # here allows them to be overridden if necessary.
8037e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    runpath_var=LD_RUN_PATH
8038e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8039e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    export_dynamic_flag_spec='${wl}--export-dynamic'
8040e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # ancient GNU ld didn't support --whole-archive et. al.
8041e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8042e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8043e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    else
8044e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      whole_archive_flag_spec=
8045e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
8046e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    supports_anon_versioning=no
8047e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case `$LD -v 2>&1` in
8048e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8049e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8050e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8051e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *\ 2.11.*) ;; # other 2.11 versions
8052e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *) supports_anon_versioning=yes ;;
8053e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
8054e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8055e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # See if GNU ld supports shared libraries.
8056e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $host_os in
8057e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    aix[3-9]*)
8058e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # On AIX/PPC, the GNU linker is very broken
8059e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$host_cpu" != ia64; then
8060e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ld_shlibs=no
8061e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	cat <<_LT_EOF 1>&2
8062e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8063e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8064e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** to be unable to reliably create shared libraries on AIX.
8065e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** Therefore, libtool is disabling shared libraries support.  If you
8066e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** really care for shared libraries, you may want to modify your PATH
8067e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** so that a non-GNU linker is found, and then restart.
8068e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8069e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
8070e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8071e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8072e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8073e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    amigaos*)
8074e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $host_cpu in
8075e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      powerpc)
8076e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            # see comment about AmigaOS4 .so support
8077e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8078e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            archive_expsym_cmds=''
8079e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        ;;
8080e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      m68k)
8081e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            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)'
8082e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            hardcode_libdir_flag_spec='-L$libdir'
8083e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            hardcode_minus_L=yes
8084e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        ;;
8085e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
8086e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8087e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8088e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    beos*)
8089e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8090e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	allow_undefined_flag=unsupported
8091e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8092e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# support --undefined.  This deserves some investigation.  FIXME
8093e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8094e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8095e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ld_shlibs=no
8096e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8097e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8098e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8099e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cygwin* | mingw* | pw32* | cegcc*)
8100e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8101e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # as there is no search path for DLLs.
8102e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_flag_spec='-L$libdir'
8103e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      allow_undefined_flag=unsupported
8104e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      always_export_symbols=no
8105e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      enable_shared_with_static_runtimes=yes
8106e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8107e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8108e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8109e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8110e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# If the export-symbols file already is a .def file (1st line
8111e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# is EXPORTS), use it as is; otherwise, prepend...
8112e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8113e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  cp $export_symbols $output_objdir/$soname.def;
8114e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	else
8115e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  echo EXPORTS > $output_objdir/$soname.def;
8116e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  cat $export_symbols >> $output_objdir/$soname.def;
8117e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi~
8118e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8119e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8120e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ld_shlibs=no
8121e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8122e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8123e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8124e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    interix[3-9]*)
8125e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_direct=no
8126e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_shlibpath_var=no
8127e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8128e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      export_dynamic_flag_spec='${wl}-E'
8129e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8130e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Instead, shared libraries are loaded at an image base (0x10000000 by
8131e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # default) and relocated if they conflict, which is a slow very memory
8132e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # consuming and fragmenting process.  To avoid this, we pick a random,
8133e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8134e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8135e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8136e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      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'
8137e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8138e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8139e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    gnu* | linux* | tpf* | k*bsd*-gnu)
8140e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      tmp_diet=no
8141e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$host_os" = linux-dietlibc; then
8142e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case $cc_basename in
8143e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8144e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
8145e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8146e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8147e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 && test "$tmp_diet" = no
8148e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      then
8149e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	tmp_addflag=
8150e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	tmp_sharedflag='-shared'
8151e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case $cc_basename,$host_cpu in
8152e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        pgcc*)				# Portland Group C compiler
8153e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8154e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  tmp_addflag=' $pic_flag'
8155e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
8156e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8157e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8158e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  tmp_addflag=' $pic_flag -Mnomain' ;;
8159e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8160e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  tmp_addflag=' -i_dynamic' ;;
8161e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8162e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8163e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ifc* | ifort*)			# Intel Fortran compiler
8164e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  tmp_addflag=' -nofor_main' ;;
8165e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lf95*)				# Lahey Fortran 8.1
8166e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  whole_archive_flag_spec=
8167e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  tmp_sharedflag='--shared' ;;
8168e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8169e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  tmp_sharedflag='-qmkshrobj'
8170e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  tmp_addflag= ;;
8171e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
8172e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case `$CC -V 2>&1 | sed 5q` in
8173e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*Sun\ C*)			# Sun C 5.9
8174e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8175e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  compiler_needs_object=yes
8176e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  tmp_sharedflag='-G' ;;
8177e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*Sun\ F*)			# Sun Fortran 8.3
8178e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  tmp_sharedflag='-G' ;;
8179e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
8180e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8181e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8182e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        if test "x$supports_anon_versioning" = xyes; then
8183e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8184e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8185e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    echo "local: *; };" >> $output_objdir/$libname.ver~
8186e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8187e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        fi
8188e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8189e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case $cc_basename in
8190e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	xlf*)
8191e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8192e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8193e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  hardcode_libdir_flag_spec=
8194e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8195e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8196e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  if test "x$supports_anon_versioning" = xyes; then
8197e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8198e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8199e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	      echo "local: *; };" >> $output_objdir/$libname.ver~
8200e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8201e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  fi
8202e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
8203e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
8204e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8205e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        ld_shlibs=no
8206e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8207e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8208e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8209e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    netbsd*)
8210e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8211e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8212e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	wlarc=
8213e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8214e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8215e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8216e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8217e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8218e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8219e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    solaris*)
8220e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8221e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ld_shlibs=no
8222e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	cat <<_LT_EOF 1>&2
8223e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8224e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8225e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** create shared libraries on Solaris systems.  Therefore, libtool
8226e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** is disabling shared libraries support.  We urge you to upgrade GNU
8227e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** binutils to release 2.9.1 or newer.  Another option is to modify
8228e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** your PATH or compiler configuration so that the native linker is
8229e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** used, and then restart.
8230e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8231e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
8232e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8233e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8234e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8235e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8236e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ld_shlibs=no
8237e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8238e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8239e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8240e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8241e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case `$LD -v 2>&1` in
8242e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8243e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ld_shlibs=no
8244e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	cat <<_LT_EOF 1>&2
8245e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8246e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8247e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** reliably create shared libraries on SCO systems.  Therefore, libtool
8248e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** is disabling shared libraries support.  We urge you to upgrade GNU
8249e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8250e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** your PATH or compiler configuration so that the native linker is
8251e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*** used, and then restart.
8252e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8253e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
8254e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
8255e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*)
8256e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # For security reasons, it is highly recommended that you always
8257e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # use absolute paths for naming shared libraries, and exclude the
8258e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # DT_RUNPATH tag from executables and libraries.  But doing so
8259e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # requires that you compile everything twice, which is a pain.
8260e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8261e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8262e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8263e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8264e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  else
8265e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    ld_shlibs=no
8266e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  fi
8267e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
8268e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
8269e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8270e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8271e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sunos4*)
8272e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8273e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      wlarc=
8274e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_direct=yes
8275e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_shlibpath_var=no
8276e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8277e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8278e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)
8279e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8280e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8281e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8282e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8283e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ld_shlibs=no
8284e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8285e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8286e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
8287e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8288e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test "$ld_shlibs" = no; then
8289e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      runpath_var=
8290e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_flag_spec=
8291e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      export_dynamic_flag_spec=
8292e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      whole_archive_flag_spec=
8293e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
8294e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
8295e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # PORTME fill in a description of your system's linker (not GNU ld)
8296e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $host_os in
8297e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    aix3*)
8298e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      allow_undefined_flag=unsupported
8299e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      always_export_symbols=yes
8300e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      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'
8301e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Note: this linker hardcodes the directories in LIBPATH if there
8302e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # are no directories specified by -L.
8303e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_minus_L=yes
8304e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8305e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# Neither direct hardcoding nor static linking is supported with a
8306e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# broken collect2.
8307e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hardcode_direct=unsupported
8308e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8309e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8310e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8311e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    aix[4-9]*)
8312e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$host_cpu" = ia64; then
8313e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# On IA64, the linker does run time linking by default, so we don't
8314e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# have to do anything special.
8315e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	aix_use_runtimelinking=no
8316e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	exp_sym_flag='-Bexport'
8317e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	no_entry_flag=""
8318e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8319e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# If we're using GNU nm, then we don't want the "-C" option.
8320e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8321e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8322e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8323e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	else
8324e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8325e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi
8326e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	aix_use_runtimelinking=no
8327e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8328e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# Test if we are trying to use run time linking or normal
8329e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8330e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# need to do runtime linking.
8331e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8332e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  for ld_flag in $LDFLAGS; do
8333e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8334e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    aix_use_runtimelinking=yes
8335e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    break
8336e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  fi
8337e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  done
8338e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
8339e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
8340e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8341e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	exp_sym_flag='-bexport'
8342e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	no_entry_flag='-bnoentry'
8343e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8344e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8345e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # When large executables or shared objects are built, AIX ld can
8346e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # have problems creating the table of contents.  If linking a library
8347e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # or program results in "error TOC overflow" add -mminimal-toc to
8348e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8349e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8350e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8351e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds=''
8352e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_direct=yes
8353e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_direct_absolute=yes
8354e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_separator=':'
8355e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      link_all_deplibs=yes
8356e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      file_list_spec='${wl}-f,'
8357e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8358e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$GCC" = yes; then
8359e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case $host_os in aix4.[012]|aix4.[012].*)
8360e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# We only want to do this on AIX 4.2 and lower, the check
8361e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# below for broken collect2 doesn't work under 4.3+
8362e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  collect2name=`${CC} -print-prog-name=collect2`
8363e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  if test -f "$collect2name" &&
8364e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8365e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  then
8366e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # We have reworked collect2
8367e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  :
8368e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  else
8369e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # We have old collect2
8370e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  hardcode_direct=unsupported
8371e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # It fails to find uninstalled libraries when the uninstalled
8372e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # path is not listed in the libpath.  Setting hardcode_minus_L
8373e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # to unsupported forces relinking
8374e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  hardcode_minus_L=yes
8375e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  hardcode_libdir_flag_spec='-L$libdir'
8376e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  hardcode_libdir_separator=
8377e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  fi
8378e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
8379e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
8380e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	shared_flag='-shared'
8381e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	if test "$aix_use_runtimelinking" = yes; then
8382e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  shared_flag="$shared_flag "'${wl}-G'
8383e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi
8384e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8385e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# not using gcc
8386e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	if test "$host_cpu" = ia64; then
8387e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8388e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# chokes on -Wl,-G. The following line is correct:
8389e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  shared_flag='-G'
8390e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	else
8391e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  if test "$aix_use_runtimelinking" = yes; then
8392e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    shared_flag='${wl}-G'
8393e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  else
8394e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    shared_flag='${wl}-bM:SRE'
8395e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  fi
8396e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi
8397e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8398e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8399e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      export_dynamic_flag_spec='${wl}-bexpall'
8400e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # It seems that -bexpall does not export symbols beginning with
8401e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # underscore (_), so it is better to generate a list of symbols to export.
8402e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      always_export_symbols=yes
8403e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$aix_use_runtimelinking" = yes; then
8404e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# Warning - without using the other runtime loading flags (-brtl),
8405e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# -berok will link without error, but may produce a broken library.
8406e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	allow_undefined_flag='-berok'
8407e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        # Determine the default libpath from the value encoded in an
8408e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        # empty executable.
8409e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        cat >conftest.$ac_ext <<_ACEOF
8410e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
8411e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
8412e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
8413e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
8414e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
8415e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8416e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
8417e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
8418e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
8419e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8420e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
8421e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
8422e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
8423e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
8424e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext conftest$ac_exeext
8425e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_link"
8426e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
8427e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
8429e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
8430e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8431e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
8432e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_link") 2>conftest.er1
8433e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
8434e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
8435e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
8436e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
8437e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
8439e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
8440e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
8441e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest$ac_exeext && {
8442e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test "$cross_compiling" = yes ||
8443e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 $as_test_x conftest$ac_exeext
8444e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       }; then
8445e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8446e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_aix_libpath_sed='
8447e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    /Import File Strings/,/^$/ {
8448e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	/^0/ {
8449e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s/^0  *\(.*\)$/\1/
8450e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    p
8451e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	}
8452e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    }'
8453e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8454e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check for a 64-bit object if we didn't find anything.
8455e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$aix_libpath"; then
8456e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8457e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
8458e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
8459e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
8460e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
8461e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8462e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8463e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
8464e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8465e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -rf conftest.dSYM
8466e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8467e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      conftest$ac_exeext conftest.$ac_ext
8468e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8469e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8470e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8471e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8472e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8473e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	if test "$host_cpu" = ia64; then
8474e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8475e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  allow_undefined_flag="-z nodefs"
8476e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  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"
8477e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	else
8478e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 # Determine the default libpath from the value encoded in an
8479e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 # empty executable.
8480e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 cat >conftest.$ac_ext <<_ACEOF
8481e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
8482e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
8483e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
8484e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
8485e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
8486e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8487e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
8488e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
8489e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
8490e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8491e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
8492e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
8493e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
8494e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
8495e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext conftest$ac_exeext
8496e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_link"
8497e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
8498e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
8500e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
8501e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8502e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
8503e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_link") 2>conftest.er1
8504e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
8505e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
8506e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
8507e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
8508e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
8510e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
8511e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
8512e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest$ac_exeext && {
8513e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test "$cross_compiling" = yes ||
8514e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 $as_test_x conftest$ac_exeext
8515e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       }; then
8516e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8517e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_aix_libpath_sed='
8518e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    /Import File Strings/,/^$/ {
8519e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	/^0/ {
8520e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s/^0  *\(.*\)$/\1/
8521e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    p
8522e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	}
8523e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    }'
8524e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8525e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check for a 64-bit object if we didn't find anything.
8526e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$aix_libpath"; then
8527e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8528e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
8529e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
8530e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
8531e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
8532e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8533e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8534e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
8535e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8536e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -rf conftest.dSYM
8537e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8538e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      conftest$ac_exeext conftest.$ac_ext
8539e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8540e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8541e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8542e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # Warning - without using the other run time loading flags,
8543e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # -berok will link without error, but may produce a broken library.
8544e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  no_undefined_flag=' ${wl}-bernotok'
8545e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  allow_undefined_flag=' ${wl}-berok'
8546e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # Exported symbols can be pulled into shared objects from archives
8547e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  whole_archive_flag_spec='$convenience'
8548e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_cmds_need_lc=yes
8549e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # This is similar to how AIX traditionally builds its shared libraries.
8550e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8551e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi
8552e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8553e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8554e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8555e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    amigaos*)
8556e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $host_cpu in
8557e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      powerpc)
8558e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            # see comment about AmigaOS4 .so support
8559e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8560e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            archive_expsym_cmds=''
8561e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        ;;
8562e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      m68k)
8563e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            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)'
8564e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            hardcode_libdir_flag_spec='-L$libdir'
8565e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev            hardcode_minus_L=yes
8566e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        ;;
8567e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
8568e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8569e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8570e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    bsdi[45]*)
8571e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      export_dynamic_flag_spec=-rdynamic
8572e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8573e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8574e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cygwin* | mingw* | pw32* | cegcc*)
8575e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # When not using gcc, we currently assume that we are using
8576e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Microsoft Visual C++.
8577e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # hardcode_libdir_flag_spec is actually meaningless, as there is
8578e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # no search path for DLLs.
8579e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_flag_spec=' '
8580e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      allow_undefined_flag=unsupported
8581e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Tell ltmain to make .lib files, not .a files.
8582e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      libext=lib
8583e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Tell ltmain to make .dll files, not .so files.
8584e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      shrext_cmds=".dll"
8585e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # FIXME: Setting linknames here is a bad hack.
8586e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8587e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # The linker will automatically build a .lib file if we build a DLL.
8588e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      old_archive_from_new_cmds='true'
8589e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # FIXME: Should let the user specify the lib program.
8590e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8591e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fix_srcfile_path='`cygpath -w "$srcfile"`'
8592e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      enable_shared_with_static_runtimes=yes
8593e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8594e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8595e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    darwin* | rhapsody*)
8596e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8597e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8598e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  archive_cmds_need_lc=no
8599e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_direct=no
8600e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_automatic=yes
8601e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_shlibpath_var=unsupported
8602e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  whole_archive_flag_spec=''
8603e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  link_all_deplibs=yes
8604e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  allow_undefined_flag="$_lt_dar_allow_undefined"
8605e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $cc_basename in
8606e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     ifort*) _lt_dar_can_shared=yes ;;
8607e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     *) _lt_dar_can_shared=$GCC ;;
8608e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
8609e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$_lt_dar_can_shared" = "yes"; then
8610e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    output_verbose_link_cmd=echo
8611e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8612e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8613e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    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}"
8614e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    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}"
8615e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8616e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
8617e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ld_shlibs=no
8618e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
8619e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8620e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8621e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8622e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    dgux*)
8623e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8624e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_flag_spec='-L$libdir'
8625e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_shlibpath_var=no
8626e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8627e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8628e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    freebsd1*)
8629e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ld_shlibs=no
8630e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8631e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8632e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8633e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # support.  Future versions do this automatically, but an explicit c++rt0.o
8634e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # does not break anything, and helps significantly (at the cost of a little
8635e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # extra space).
8636e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    freebsd2.2*)
8637e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8638e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_flag_spec='-R$libdir'
8639e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_direct=yes
8640e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_shlibpath_var=no
8641e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8642e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8643e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8644e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    freebsd2*)
8645e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8646e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_direct=yes
8647e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_minus_L=yes
8648e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_shlibpath_var=no
8649e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8650e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8651e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8652e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    freebsd* | dragonfly*)
8653e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8654e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_flag_spec='-R$libdir'
8655e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_direct=yes
8656e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_shlibpath_var=no
8657e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8658e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8659e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    hpux9*)
8660e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$GCC" = yes; then
8661e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8662e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8663e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8664e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8665e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8666e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_separator=:
8667e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_direct=yes
8668e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8669e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # hardcode_minus_L: Not really in the search PATH,
8670e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # but as the default location of the library.
8671e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_minus_L=yes
8672e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      export_dynamic_flag_spec='${wl}-E'
8673e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8674e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8675e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    hpux10*)
8676e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8677e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8678e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8679e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8680e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8681e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$with_gnu_ld" = no; then
8682e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8683e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hardcode_libdir_flag_spec_ld='+b $libdir'
8684e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hardcode_libdir_separator=:
8685e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hardcode_direct=yes
8686e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hardcode_direct_absolute=yes
8687e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	export_dynamic_flag_spec='${wl}-E'
8688e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# hardcode_minus_L: Not really in the search PATH,
8689e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# but as the default location of the library.
8690e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hardcode_minus_L=yes
8691e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8692e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8693e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8694e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    hpux11*)
8695e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8696e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case $host_cpu in
8697e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hppa*64*)
8698e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8699e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
8700e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ia64*)
8701e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8702e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
8703e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*)
8704e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8705e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
8706e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
8707e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8708e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case $host_cpu in
8709e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hppa*64*)
8710e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8711e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
8712e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ia64*)
8713e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8714e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
8715e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*)
8716e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8717e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
8718e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
8719e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8720e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$with_gnu_ld" = no; then
8721e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8722e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hardcode_libdir_separator=:
8723e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8724e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case $host_cpu in
8725e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hppa*64*|ia64*)
8726e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  hardcode_direct=no
8727e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  hardcode_shlibpath_var=no
8728e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
8729e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*)
8730e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  hardcode_direct=yes
8731e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  hardcode_direct_absolute=yes
8732e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  export_dynamic_flag_spec='${wl}-E'
8733e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8734e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # hardcode_minus_L: Not really in the search PATH,
8735e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  # but as the default location of the library.
8736e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  hardcode_minus_L=yes
8737e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
8738e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
8739e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8740e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8741e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8742e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    irix5* | irix6* | nonstopux*)
8743e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$GCC" = yes; then
8744e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8745e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# Try to use the -exported_symbol ld option, if it does not
8746e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# work, assume that -exports_file does not work either and
8747e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# implicitly export all symbols.
8748e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        save_LDFLAGS="$LDFLAGS"
8749e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8750e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        cat >conftest.$ac_ext <<_ACEOF
8751e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint foo(void) {}
8752e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
8753e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext conftest$ac_exeext
8754e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_link"
8755e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
8756e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
8758e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
8759e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8760e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
8761e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_link") 2>conftest.er1
8762e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
8763e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
8764e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
8765e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
8766e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
8768e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
8769e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
8770e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest$ac_exeext && {
8771e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test "$cross_compiling" = yes ||
8772e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 $as_test_x conftest$ac_exeext
8773e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       }; then
8774e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8775e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8776e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
8777e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
8778e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
8779e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8780e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8781e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
8782e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8783e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -rf conftest.dSYM
8784e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8785e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      conftest$ac_exeext conftest.$ac_ext
8786e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        LDFLAGS="$save_LDFLAGS"
8787e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8788e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8789e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8790e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8791e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds_need_lc='no'
8792e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_separator=:
8794e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      inherit_rpath=yes
8795e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      link_all_deplibs=yes
8796e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8797e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8798e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    netbsd*)
8799e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8800e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8801e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8802e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8803e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8804e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_flag_spec='-R$libdir'
8805e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_direct=yes
8806e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_shlibpath_var=no
8807e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8808e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8809e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    newsos6)
8810e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8811e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_direct=yes
8812e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8813e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_separator=:
8814e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_shlibpath_var=no
8815e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8816e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8817e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *nto* | *qnx*)
8818e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8819e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8820e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    openbsd*)
8821e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test -f /usr/libexec/ld.so; then
8822e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hardcode_direct=yes
8823e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hardcode_shlibpath_var=no
8824e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hardcode_direct_absolute=yes
8825e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8826e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8827e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8828e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8829e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  export_dynamic_flag_spec='${wl}-E'
8830e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	else
8831e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  case $host_os in
8832e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8833e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8834e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	     hardcode_libdir_flag_spec='-R$libdir'
8835e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	     ;;
8836e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   *)
8837e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8838e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8839e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	     ;;
8840e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  esac
8841e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi
8842e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8843e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ld_shlibs=no
8844e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8845e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8846e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8847e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    os2*)
8848e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_flag_spec='-L$libdir'
8849e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_minus_L=yes
8850e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      allow_undefined_flag=unsupported
8851e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8852e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8853e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8854e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8855e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    osf3*)
8856e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$GCC" = yes; then
8857e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8858e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8859e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8860e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	allow_undefined_flag=' -expect_unresolved \*'
8861e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8862e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8863e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds_need_lc='no'
8864e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8865e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_separator=:
8866e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8867e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8868e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8869e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$GCC" = yes; then
8870e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8871e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8872e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8873e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8874e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	allow_undefined_flag=' -expect_unresolved \*'
8875e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8876e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	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~
8877e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8878e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8879e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# Both c and cxx compiler support -rpath directly
8880e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hardcode_libdir_flag_spec='-rpath $libdir'
8881e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8882e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds_need_lc='no'
8883e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_separator=:
8884e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8885e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8886e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    solaris*)
8887e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      no_undefined_flag=' -z defs'
8888e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$GCC" = yes; then
8889e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	wlarc='${wl}'
8890e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8891e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8892e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8893e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8894e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case `$CC -V 2>&1` in
8895e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*"Compilers 5.0"*)
8896e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  wlarc=''
8897e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8899e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8900e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
8901e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	*)
8902e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  wlarc='${wl}'
8903e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8904e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8905e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8906e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ;;
8907e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac
8908e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8909e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_flag_spec='-R$libdir'
8910e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_shlibpath_var=no
8911e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $host_os in
8912e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      solaris2.[0-5] | solaris2.[0-5].*) ;;
8913e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *)
8914e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# The compiler driver will combine and reorder linker options,
8915e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8916e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# but is careful enough not to reorder.
8917e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# Supported since Solaris 2.6 (maybe 2.5.1?)
8918e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	if test "$GCC" = yes; then
8919e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8920e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	else
8921e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8922e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi
8923e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
8924e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
8925e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      link_all_deplibs=yes
8926e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8927e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8928e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sunos4*)
8929e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "x$host_vendor" = xsequent; then
8930e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# Use $CC to link under sequent, because it throws in some extra .o
8931e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# files that make .init and .fini sections work.
8932e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8933e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8934e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8935e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8936e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_flag_spec='-L$libdir'
8937e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_direct=yes
8938e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_minus_L=yes
8939e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_shlibpath_var=no
8940e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8941e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8942e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sysv4)
8943e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $host_vendor in
8944e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	sni)
8945e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8946e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  hardcode_direct=yes # is this really true???
8947e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
8948e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	siemens)
8949e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ## LD is ld it makes a PLAMLIB
8950e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  ## CC just makes a GrossModule.
8951e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8952e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  reload_cmds='$CC -r -o $output$reload_objs'
8953e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  hardcode_direct=no
8954e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        ;;
8955e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	motorola)
8956e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8957e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8958e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
8959e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
8960e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      runpath_var='LD_RUN_PATH'
8961e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_shlibpath_var=no
8962e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8963e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8964e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sysv4.3*)
8965e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8966e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_shlibpath_var=no
8967e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      export_dynamic_flag_spec='-Bexport'
8968e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8969e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8970e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sysv4*MP*)
8971e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test -d /usr/nec; then
8972e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8973e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hardcode_shlibpath_var=no
8974e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	runpath_var=LD_RUN_PATH
8975e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	hardcode_runpath_var=yes
8976e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ld_shlibs=yes
8977e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8978e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8979e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8980e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8981e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      no_undefined_flag='${wl}-z,text'
8982e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds_need_lc=no
8983e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_shlibpath_var=no
8984e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      runpath_var='LD_RUN_PATH'
8985e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8986e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$GCC" = yes; then
8987e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8988e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8989e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
8990e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8991e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8992e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
8993e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
8994e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
8995e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sysv5* | sco3.2v5* | sco5v6*)
8996e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Note: We can NOT use -z defs as we might desire, because we do not
8997e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # link with -lc, and that would cause any symbols used from libc to
8998e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # always be unresolved, which means just about no library would
8999e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # ever link correctly.  If we're not using GNU ld we use -z text
9000e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # though, which does catch some bad symbols but isn't as heavy-handed
9001e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # as -z defs.
9002e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      no_undefined_flag='${wl}-z,text'
9003e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      allow_undefined_flag='${wl}-z,nodefs'
9004e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds_need_lc=no
9005e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_shlibpath_var=no
9006e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9007e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_separator=':'
9008e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      link_all_deplibs=yes
9009e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      export_dynamic_flag_spec='${wl}-Bexport'
9010e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      runpath_var='LD_RUN_PATH'
9011e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9012e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test "$GCC" = yes; then
9013e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9014e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9015e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
9016e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9017e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9018e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
9019e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
9020e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9021e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    uts4*)
9022e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9023e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_libdir_flag_spec='-L$libdir'
9024e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      hardcode_shlibpath_var=no
9025e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
9026e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9027e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)
9028e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ld_shlibs=no
9029e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
9030e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
9031e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9032e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test x$host_vendor = xsni; then
9033e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $host in
9034e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9035e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	export_dynamic_flag_spec='${wl}-Blargedynsym'
9036e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
9037e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
9038e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
9039e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
9040e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9041e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9042e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ld_shlibs" >&6; }
9043e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest "$ld_shlibs" = no && can_build_shared=no
9044e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9045e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevwith_gnu_ld=$with_gnu_ld
9046e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9047e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9048e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9049e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9050e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9051e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9052e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9053e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9054e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9055e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9056e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9057e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9058e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9059e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9060e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9061e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
9062e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Do we need to explicitly link libc?
9063e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
9064e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "x$archive_cmds_need_lc" in
9065e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevx|xyes)
9066e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Assume -lc should be added
9067e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  archive_cmds_need_lc=yes
9068e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9069e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$enable_shared" = yes && test "$GCC" = yes; then
9070e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $archive_cmds in
9071e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *'~'*)
9072e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # FIXME: we may have to deal with multi-command sequences.
9073e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
9074e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    '$CC '*)
9075e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Test whether the compiler implicitly links with -lc since on some
9076e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9077e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # to ld, don't add -lc before -lgcc.
9078e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9079e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9080e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      $RM conftest*
9081e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9082e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9083e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9084e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval $ac_compile) 2>&5
9085e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
9086e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } 2>conftest.err; then
9088e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        soname=conftest
9089e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        lib=conftest
9090e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        libobjs=conftest.$ac_objext
9091e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        deplibs=
9092e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        wl=$lt_prog_compiler_wl
9093e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	pic_flag=$lt_prog_compiler_pic
9094e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        compiler_flags=-v
9095e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        linker_flags=-v
9096e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        verstring=
9097e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        output_objdir=.
9098e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        libname=conftest
9099e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        lt_save_allow_undefined_flag=$allow_undefined_flag
9100e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        allow_undefined_flag=
9101e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9102e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9103e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
9104e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); }
9106e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        then
9107e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_cmds_need_lc=no
9108e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        else
9109e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  archive_cmds_need_lc=yes
9110e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        fi
9111e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        allow_undefined_flag=$lt_save_allow_undefined_flag
9112e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
9113e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        cat conftest.err 1>&5
9114e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
9115e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      $RM conftest*
9116e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9117e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$archive_cmds_need_lc" >&6; }
9118e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
9119e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
9120e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
9121e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9122e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
9123e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9124e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9125e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9126e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9127e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9128e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9129e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9130e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9131e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9132e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9133e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9134e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9135e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9136e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9137e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9138e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9139e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9140e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9141e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9142e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9143e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9144e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9145e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9146e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9147e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9148e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9149e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9150e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9151e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9152e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9153e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9154e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9155e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9156e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9157e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9158e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9159e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9160e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9161e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9162e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9163e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9164e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9165e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9166e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9167e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9168e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9169e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9170e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9171e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9172e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9173e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9174e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9175e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9176e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9177e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9178e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9179e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9180e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9181e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9182e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9183e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9184e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9185e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9186e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9187e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9188e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9189e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9190e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9191e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9192e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9193e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9194e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9195e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9196e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9197e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9198e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9199e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9200e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9201e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9202e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9203e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9204e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9205e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9206e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9207e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9208e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9209e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9210e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9211e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9212e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9213e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9214e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9215e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9216e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9217e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9218e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9219e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9220e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9221e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9222e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9223e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9224e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9225e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9226e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9227e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9228e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9229e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9230e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9231e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9232e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9233e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9234e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9235e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9236e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9237e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9238e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9239e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9240e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9241e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9242e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9243e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9244e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9245e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9246e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9247e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9248e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9249e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9250e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9251e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9252e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9253e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9254e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9255e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9256e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9257e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9258e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9259e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9260e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9261e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9262e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9263e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9264e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9265e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9266e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9267e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9268e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9269e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9270e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9271e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9272e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9273e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9274e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9275e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9276e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9277e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9278e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9279e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9280e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9281e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking dynamic linker characteristics... " >&6; }
9282e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9283e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$GCC" = yes; then
9284e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_os in
9285e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9286e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *) lt_awk_arg="/^libraries:/" ;;
9287e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
9288e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9289e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9290e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # if the path contains ";" then we assume it to be the separator
9291e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # otherwise default to the standard path separator (i.e. ":") - it is
9292e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # assumed that no part of a normal pathname contains ";" but that should
9293e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # okay in the real world where ";" in dirpaths is itself problematic.
9294e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9295e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
9296e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9297e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
9298e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Ok, now we have the path, separated by spaces, we can step through it
9299e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # and add multilib dir if necessary.
9300e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_tmp_lt_search_path_spec=
9301e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9302e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for lt_sys_path in $lt_search_path_spec; do
9303e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9304e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9305e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    else
9306e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      test -d "$lt_sys_path" && \
9307e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9308e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
9309e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
9310e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9311e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevBEGIN {RS=" "; FS="/|\n";} {
9312e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_foo="";
9313e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_count=0;
9314e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for (lt_i = NF; lt_i > 0; lt_i--) {
9315e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if ($lt_i != "" && $lt_i != ".") {
9316e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if ($lt_i == "..") {
9317e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        lt_count++;
9318e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      } else {
9319e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        if (lt_count == 0) {
9320e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev          lt_foo="/" $lt_i lt_foo;
9321e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        } else {
9322e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev          lt_count--;
9323e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        }
9324e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      }
9325e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    }
9326e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  }
9327e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if (lt_foo != "") { lt_freq[lt_foo]++; }
9328e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9329e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}'`
9330e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9331e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
9332e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9333e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
9334e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlibrary_names_spec=
9335e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlibname_spec='lib$name'
9336e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsoname_spec=
9337e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevshrext_cmds=".so"
9338e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpostinstall_cmds=
9339e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpostuninstall_cmds=
9340e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfinish_cmds=
9341e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfinish_eval=
9342e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevshlibpath_var=
9343e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevshlibpath_overrides_runpath=unknown
9344e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevversion_type=none
9345e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdynamic_linker="$host_os ld.so"
9346e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsys_lib_dlsearch_path_spec="/lib /usr/lib"
9347e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevneed_lib_prefix=unknown
9348e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_into_libs=no
9349e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9350e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# when you set need_version to no, make sure it does not cause -set_version
9351e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# flags to be left without arguments
9352e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevneed_version=unknown
9353e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9354e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $host_os in
9355e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevaix3*)
9356e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=linux
9357e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9358e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LIBPATH
9359e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9360e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # AIX 3 has no versioning support, so we append a major version to the name.
9361e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  soname_spec='${libname}${release}${shared_ext}$major'
9362e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9363e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9364e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevaix[4-9]*)
9365e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=linux
9366e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_lib_prefix=no
9367e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_version=no
9368e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_into_libs=yes
9369e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$host_cpu" = ia64; then
9370e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # AIX 5 supports IA64
9371e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9372e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shlibpath_var=LD_LIBRARY_PATH
9373e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
9374e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # With GCC up to 2.95.x, collect2 would create an import file
9375e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # for dependence libraries.  The import file would start with
9376e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # the line `#! .'.  This would cause the generated library to
9377e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # depend on `.', always an invalid library.  This was fixed in
9378e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # development snapshots of GCC prior to 3.0.
9379e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $host_os in
9380e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      aix4 | aix4.[01] | aix4.[01].*)
9381e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9382e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   echo ' yes '
9383e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9384e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	:
9385e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
9386e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	can_build_shared=no
9387e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
9388e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
9389e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
9390e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9391e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # soname into executable. Probably we can add versioning support to
9392e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # collect2, so additional links can be useful in future.
9393e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test "$aix_use_runtimelinking" = yes; then
9394e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9395e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # instead of lib<name>.a to let people know that these are not
9396e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # typical AIX shared libraries.
9397e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9398e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    else
9399e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # We preserve .a as extension for shared libraries through AIX4.2
9400e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # and later when we are not doing run time linking.
9401e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      library_names_spec='${libname}${release}.a $libname.a'
9402e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      soname_spec='${libname}${release}${shared_ext}$major'
9403e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
9404e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shlibpath_var=LIBPATH
9405e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
9406e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9407e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9408e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevamigaos*)
9409e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_cpu in
9410e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  powerpc)
9411e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Since July 2007 AmigaOS4 officially supports .so libraries.
9412e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9413e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9414e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
9415e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  m68k)
9416e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    library_names_spec='$libname.ixlibrary $libname.a'
9417e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9418e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9419e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
9420e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
9421e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9422e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9423e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbeos*)
9424e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${shared_ext}'
9425e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  dynamic_linker="$host_os ld.so"
9426e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LIBRARY_PATH
9427e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9428e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9429e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbsdi[45]*)
9430e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=linux
9431e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_version=no
9432e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  soname_spec='${libname}${release}${shared_ext}$major'
9434e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9435e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY_PATH
9436e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9437e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9438e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # the default ld.so.conf also contains /usr/contrib/lib and
9439e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9440e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # libtool to hard-code these into programs
9441e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9442e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9443e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcygwin* | mingw* | pw32* | cegcc*)
9444e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=windows
9445e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shrext_cmds=".dll"
9446e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_version=no
9447e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_lib_prefix=no
9448e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9449e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $GCC,$host_os in
9450e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9451e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    library_names_spec='$libname.dll.a'
9452e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9453e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    postinstall_cmds='base_file=`basename \${file}`~
9454e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9455e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      dldir=$destdir/`dirname \$dlpath`~
9456e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      test -d \$dldir || mkdir -p \$dldir~
9457e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      $install_prog $dir/$dlname \$dldir/$dlname~
9458e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      chmod a+x \$dldir/$dlname~
9459e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9460e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9461e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi'
9462e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9463e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      dlpath=$dir/\$dldll~
9464e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       $RM \$dlpath'
9465e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shlibpath_overrides_runpath=yes
9466e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9467e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $host_os in
9468e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cygwin*)
9469e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9470e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9471e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9472e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
9473e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    mingw* | cegcc*)
9474e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # MinGW DLLs use traditional 'lib' prefix
9475e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9476e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9477e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9478e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        # It is most probably a Windows format PATH printed by
9479e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9480e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        # path with ; separators, and with drive letters. We can handle the
9481e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        # drive letters (cygwin fileutils understands them), so leave them,
9482e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        # especially as we might pass files found there to a mingw objdump,
9483e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        # which wouldn't understand a cygwinified path. Ahh.
9484e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9485e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
9486e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9487e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
9488e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
9489e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    pw32*)
9490e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # pw32 DLLs use 'pw' prefix rather than 'lib'
9491e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9492e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
9493e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
9494e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
9495e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9496e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
9497e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9498e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
9499e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
9500e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  dynamic_linker='Win32 ld.exe'
9501e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # FIXME: first we should search . and the directory the executable is in
9502e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=PATH
9503e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9504e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9505e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdarwin* | rhapsody*)
9506e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  dynamic_linker="$host_os dyld"
9507e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=darwin
9508e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_lib_prefix=no
9509e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_version=no
9510e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9511e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  soname_spec='${libname}${release}${major}$shared_ext'
9512e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_overrides_runpath=yes
9513e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=DYLD_LIBRARY_PATH
9514e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9515e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9516e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9517e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9518e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9519e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9520e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdgux*)
9521e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=linux
9522e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_lib_prefix=no
9523e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_version=no
9524e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9525e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  soname_spec='${libname}${release}${shared_ext}$major'
9526e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY_PATH
9527e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9528e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9529e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfreebsd1*)
9530e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  dynamic_linker=no
9531e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9532e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9533e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfreebsd* | dragonfly*)
9534e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # DragonFly does not have aout.  When/if they implement a new
9535e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # versioning mechanism, adjust this.
9536e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -x /usr/bin/objformat; then
9537e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    objformat=`/usr/bin/objformat`
9538e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
9539e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $host_os in
9540e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    freebsd[123]*) objformat=aout ;;
9541e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *) objformat=elf ;;
9542e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
9543e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
9544e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Handle Gentoo/FreeBSD as it was Linux
9545e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_vendor in
9546e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    gentoo)
9547e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      version_type=linux ;;
9548e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)
9549e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      version_type=freebsd-$objformat ;;
9550e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
9551e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9552e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $version_type in
9553e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    freebsd-elf*)
9554e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9555e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      need_version=no
9556e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      need_lib_prefix=no
9557e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
9558e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    freebsd-*)
9559e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9560e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      need_version=yes
9561e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
9562e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    linux)
9563e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9564e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      soname_spec='${libname}${release}${shared_ext}$major'
9565e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      need_lib_prefix=no
9566e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      need_version=no
9567e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
9568e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
9569e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY_PATH
9570e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_os in
9571e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  freebsd2*)
9572e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shlibpath_overrides_runpath=yes
9573e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
9574e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  freebsd3.[01]* | freebsdelf3.[01]*)
9575e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shlibpath_overrides_runpath=yes
9576e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    hardcode_into_libs=yes
9577e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
9578e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9579e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9580e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shlibpath_overrides_runpath=no
9581e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    hardcode_into_libs=yes
9582e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
9583e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) # from 4.6 on, and DragonFly
9584e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shlibpath_overrides_runpath=yes
9585e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    hardcode_into_libs=yes
9586e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
9587e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
9588e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9589e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9590e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevgnu*)
9591e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=linux
9592e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_lib_prefix=no
9593e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_version=no
9594e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9595e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  soname_spec='${libname}${release}${shared_ext}$major'
9596e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY_PATH
9597e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_into_libs=yes
9598e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9599e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9600e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhpux9* | hpux10* | hpux11*)
9601e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Give a soname corresponding to the major version so that dld.sl refuses to
9602e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # link against other versions.
9603e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=sunos
9604e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_lib_prefix=no
9605e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_version=no
9606e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_cpu in
9607e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ia64*)
9608e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shrext_cmds='.so'
9609e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    hardcode_into_libs=yes
9610e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    dynamic_linker="$host_os dld.so"
9611e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shlibpath_var=LD_LIBRARY_PATH
9612e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9613e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    soname_spec='${libname}${release}${shared_ext}$major'
9615e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test "X$HPUX_IA64_MODE" = X32; then
9616e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9617e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    else
9618e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9619e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
9620e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9621e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
9622e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hppa*64*)
9623e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shrext_cmds='.sl'
9624e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    hardcode_into_libs=yes
9625e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    dynamic_linker="$host_os dld.sl"
9626e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9627e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9628e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9629e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    soname_spec='${libname}${release}${shared_ext}$major'
9630e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9631e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9632e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
9633e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
9634e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shrext_cmds='.sl'
9635e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    dynamic_linker="$host_os dld.sl"
9636e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shlibpath_var=SHLIB_PATH
9637e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9638e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9639e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    soname_spec='${libname}${release}${shared_ext}$major'
9640e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
9641e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
9642e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9643e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  postinstall_cmds='chmod 555 $lib'
9644e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9645e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9646e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevinterix[3-9]*)
9647e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=linux
9648e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_lib_prefix=no
9649e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_version=no
9650e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9651e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  soname_spec='${libname}${release}${shared_ext}$major'
9652e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9653e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY_PATH
9654e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_overrides_runpath=no
9655e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_into_libs=yes
9656e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9657e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9658e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevirix5* | irix6* | nonstopux*)
9659e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_os in
9660e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    nonstopux*) version_type=nonstopux ;;
9661e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)
9662e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	if test "$lt_cv_prog_gnu_ld" = yes; then
9663e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		version_type=linux
9664e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	else
9665e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		version_type=irix
9666e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi ;;
9667e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
9668e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_lib_prefix=no
9669e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_version=no
9670e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  soname_spec='${libname}${release}${shared_ext}$major'
9671e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9672e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_os in
9673e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  irix5* | nonstopux*)
9674e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    libsuff= shlibsuff=
9675e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
9676e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
9677e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $LD in # libtool.m4 will add one of these switches to LD
9678e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9679e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      libsuff= shlibsuff= libmagic=32-bit;;
9680e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9681e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      libsuff=32 shlibsuff=N32 libmagic=N32;;
9682e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9683e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9684e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *) libsuff= shlibsuff= libmagic=never-match;;
9685e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
9686e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
9687e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
9688e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9689e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_overrides_runpath=no
9690e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9691e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9692e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_into_libs=yes
9693e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9694e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9695e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# No shared lib support for Linux oldld, aout, or coff.
9696e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlinux*oldld* | linux*aout* | linux*coff*)
9697e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  dynamic_linker=no
9698e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9699e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9700e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# This must be Linux ELF.
9701e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlinux* | k*bsd*-gnu)
9702e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=linux
9703e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_lib_prefix=no
9704e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_version=no
9705e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  soname_spec='${libname}${release}${shared_ext}$major'
9707e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9708e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY_PATH
9709e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_overrides_runpath=no
9710e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Some binutils ld are patched to set DT_RUNPATH
9711e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  save_LDFLAGS=$LDFLAGS
9712e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  save_libdir=$libdir
9713e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9714e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9715e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.$ac_ext <<_ACEOF
9716e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
9717e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
9718e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
9719e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
9720e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
9721e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9722e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
9723e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
9724e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
9725e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9726e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
9727e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
9728e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
9729e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
9730e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext conftest$ac_exeext
9731e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_link"
9732e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
9733e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
9735e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
9736e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9737e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
9738e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_link") 2>conftest.er1
9739e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
9740e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
9741e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
9742e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
9743e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
9745e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
9746e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
9747e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest$ac_exeext && {
9748e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test "$cross_compiling" = yes ||
9749e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 $as_test_x conftest$ac_exeext
9750e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       }; then
9751e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9752e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_overrides_runpath=yes
9753e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
9754e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9755e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
9756e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
9757e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
9758e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9759e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9760e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
9761e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9762e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -rf conftest.dSYM
9763e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9764e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      conftest$ac_exeext conftest.$ac_ext
9765e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  LDFLAGS=$save_LDFLAGS
9766e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  libdir=$save_libdir
9767e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9768e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # This implies no fast_install, which is unacceptable.
9769e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Some rework will be needed to allow for fast_install
9770e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # before this can be enabled.
9771e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_into_libs=yes
9772e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9773e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Append ld.so.conf contents to the search path
9774e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -f /etc/ld.so.conf; then
9775e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    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;/^$/d' | tr '\n' ' '`
9776e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9777e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
9778e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9779e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # We used to test for /lib/ld.so.1 and disable shared libraries on
9780e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # powerpc, because MkLinux only supported shared libraries with the
9781e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # GNU dynamic linker.  Since this was broken with cross compilers,
9782e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # most powerpc-linux boxes support dynamic linking these days and
9783e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # people can always --disable-shared, the test was removed, and we
9784e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # assume the GNU/Linux dynamic linker is in use.
9785e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  dynamic_linker='GNU/Linux ld.so'
9786e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9787e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9788e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevnetbsd*)
9789e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=sunos
9790e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_lib_prefix=no
9791e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_version=no
9792e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9793e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9794e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9795e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    dynamic_linker='NetBSD (a.out) ld.so'
9796e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
9797e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9798e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    soname_spec='${libname}${release}${shared_ext}$major'
9799e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    dynamic_linker='NetBSD ld.elf_so'
9800e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
9801e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY_PATH
9802e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_overrides_runpath=yes
9803e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_into_libs=yes
9804e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9805e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9806e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevnewsos6)
9807e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=linux
9808e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9809e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY_PATH
9810e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_overrides_runpath=yes
9811e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9812e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9813e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*nto* | *qnx*)
9814e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=qnx
9815e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_lib_prefix=no
9816e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_version=no
9817e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  soname_spec='${libname}${release}${shared_ext}$major'
9819e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY_PATH
9820e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_overrides_runpath=no
9821e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_into_libs=yes
9822e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  dynamic_linker='ldqnx.so'
9823e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9824e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9825e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevopenbsd*)
9826e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=sunos
9827e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sys_lib_dlsearch_path_spec="/usr/lib"
9828e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_lib_prefix=no
9829e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9830e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_os in
9831e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9832e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)				need_version=no  ;;
9833e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
9834e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9835e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9836e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY_PATH
9837e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9838e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $host_os in
9839e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      openbsd2.[89] | openbsd2.[89].*)
9840e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	shlibpath_overrides_runpath=no
9841e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
9842e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *)
9843e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	shlibpath_overrides_runpath=yes
9844e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
9845e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
9846e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
9847e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shlibpath_overrides_runpath=yes
9848e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
9849e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9850e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9851e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevos2*)
9852e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  libname_spec='$name'
9853e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shrext_cmds=".dll"
9854e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_lib_prefix=no
9855e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='$libname${shared_ext} $libname.a'
9856e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  dynamic_linker='OS/2 ld.exe'
9857e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LIBPATH
9858e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9859e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9860e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevosf3* | osf4* | osf5*)
9861e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=osf
9862e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_lib_prefix=no
9863e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_version=no
9864e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  soname_spec='${libname}${release}${shared_ext}$major'
9865e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY_PATH
9867e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9868e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9869e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9870e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9871e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrdos*)
9872e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  dynamic_linker=no
9873e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9874e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9875e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsolaris*)
9876e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=linux
9877e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_lib_prefix=no
9878e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_version=no
9879e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  soname_spec='${libname}${release}${shared_ext}$major'
9881e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY_PATH
9882e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_overrides_runpath=yes
9883e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_into_libs=yes
9884e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # ldd complains unless libraries are executable
9885e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  postinstall_cmds='chmod +x $lib'
9886e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9887e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9888e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsunos4*)
9889e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=sunos
9890e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9891e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9892e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY_PATH
9893e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_overrides_runpath=yes
9894e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$with_gnu_ld" = yes; then
9895e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    need_lib_prefix=no
9896e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
9897e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_version=yes
9898e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9899e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9900e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsysv4 | sysv4.3*)
9901e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=linux
9902e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  soname_spec='${libname}${release}${shared_ext}$major'
9904e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY_PATH
9905e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_vendor in
9906e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sni)
9907e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      shlibpath_overrides_runpath=no
9908e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      need_lib_prefix=no
9909e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      runpath_var=LD_RUN_PATH
9910e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
9911e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    siemens)
9912e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      need_lib_prefix=no
9913e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
9914e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    motorola)
9915e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      need_lib_prefix=no
9916e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      need_version=no
9917e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      shlibpath_overrides_runpath=no
9918e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9919e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
9920e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
9921e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9922e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9923e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsysv4*MP*)
9924e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -d /usr/nec ;then
9925e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    version_type=linux
9926e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9927e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    soname_spec='$libname${shared_ext}.$major'
9928e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    shlibpath_var=LD_LIBRARY_PATH
9929e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
9930e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9931e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9932e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9933e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=freebsd-elf
9934e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_lib_prefix=no
9935e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_version=no
9936e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9937e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  soname_spec='${libname}${release}${shared_ext}$major'
9938e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY_PATH
9939e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_overrides_runpath=yes
9940e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_into_libs=yes
9941e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$with_gnu_ld" = yes; then
9942e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9943e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
9944e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9945e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $host_os in
9946e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      sco3.2v5*)
9947e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9948e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	;;
9949e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
9950e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
9951e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sys_lib_dlsearch_path_spec='/usr/lib'
9952e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9953e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9954e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtpf*)
9955e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9956e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=linux
9957e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_lib_prefix=no
9958e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  need_version=no
9959e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9960e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY_PATH
9961e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_overrides_runpath=no
9962e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_into_libs=yes
9963e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9964e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9965e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevuts4*)
9966e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  version_type=linux
9967e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9968e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  soname_spec='${libname}${release}${shared_ext}$major'
9969e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shlibpath_var=LD_LIBRARY_PATH
9970e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9971e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9972e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*)
9973e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  dynamic_linker=no
9974e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
9975e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
9976e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9977e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$dynamic_linker" >&6; }
9978e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest "$dynamic_linker" = no && can_build_shared=no
9979e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9980e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9981e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$GCC" = yes; then
9982e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9983e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
9984e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9985e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9986e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9987e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
9988e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9989e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9990e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
9991e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9992e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9993e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9994e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9995e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9996e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9997e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9998e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
9999e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10000e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10001e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10002e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10003e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10004e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10005e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10006e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10007e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10008e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10009e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10010e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10011e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10012e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10013e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10014e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10015e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10016e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10017e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10018e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10019e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10020e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10021e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10022e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10023e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10024e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10025e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10026e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10027e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10028e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10029e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10030e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10031e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10032e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10033e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10034e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10035e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10036e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10037e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10038e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10039e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10040e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10041e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10042e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10043e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10044e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10045e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10046e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10047e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10048e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10049e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10050e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10051e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10052e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10053e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10054e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10055e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10056e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10057e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10058e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10059e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10060e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10061e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10062e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10063e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10064e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10065e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10066e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10067e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10068e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10069e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10070e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10071e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10072e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10073e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10074e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10075e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10076e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10077e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10078e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10079e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10080e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_action=
10081e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$hardcode_libdir_flag_spec" ||
10082e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   test -n "$runpath_var" ||
10083e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   test "X$hardcode_automatic" = "Xyes" ; then
10084e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10085e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # We can hardcode non-existent directories.
10086e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "$hardcode_direct" != no &&
10087e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10088e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     # have to relink, otherwise we might link with an installed library
10089e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     # when we should be linking with a yet-to-be-installed one
10090e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10091e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     test "$hardcode_minus_L" != no; then
10092e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Linking always hardcodes the temporary library directory.
10093e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    hardcode_action=relink
10094e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
10095e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10096e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    hardcode_action=immediate
10097e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
10098e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10099e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # We cannot hardcode anything, or else we can only hardcode existing
10100e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # directories.
10101e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  hardcode_action=unsupported
10102e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10103e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10104e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$hardcode_action" >&6; }
10105e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10106e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$hardcode_action" = relink ||
10107e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   test "$inherit_rpath" = yes; then
10108e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Fast installation is not supported
10109e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enable_fast_install=no
10110e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelif test "$shlibpath_overrides_runpath" = yes ||
10111e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     test "$enable_shared" = no; then
10112e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Fast installation is not necessary
10113e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enable_fast_install=needless
10114e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10115e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10116e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10117e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10118e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10119e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10120e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10121e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$enable_dlopen" != xyes; then
10122e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enable_dlopen=unknown
10123e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enable_dlopen_self=unknown
10124e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enable_dlopen_self_static=unknown
10125e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10126e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_dlopen=no
10127e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_dlopen_libs=
10128e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10129e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_os in
10130e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  beos*)
10131e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_dlopen="load_add_on"
10132e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_dlopen_libs=
10133e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_dlopen_self=yes
10134e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
10135e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10136e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  mingw* | pw32* | cegcc*)
10137e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_dlopen="LoadLibrary"
10138e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_dlopen_libs=
10139e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
10140e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10141e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cygwin*)
10142e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_dlopen="dlopen"
10143e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_dlopen_libs=
10144e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
10145e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10146e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  darwin*)
10147e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # if libdl is installed we need to link against it
10148e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10149e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for dlopen in -ldl... " >&6; }
10150e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_lib_dl_dlopen+set}" = set; then
10151e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
10152e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10153e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_check_lib_save_LIBS=$LIBS
10154e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBS="-ldl  $LIBS"
10155e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >conftest.$ac_ext <<_ACEOF
10156e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
10157e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
10158e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
10159e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
10160e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
10161e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10162e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* Override any GCC internal prototype to avoid an error.
10163e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   Use char because int might match the return type of a GCC
10164e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   builtin and then its argument prototype would still apply.  */
10165e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef __cplusplus
10166e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevextern "C"
10167e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
10168e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevchar dlopen ();
10169e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
10170e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
10171e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
10172e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevreturn dlopen ();
10173e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
10174e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
10175e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
10176e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
10177e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext conftest$ac_exeext
10178e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_link"
10179e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
10180e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
10182e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
10183e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10184e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
10185e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_link") 2>conftest.er1
10186e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
10187e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
10188e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
10189e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
10190e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
10192e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
10193e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
10194e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest$ac_exeext && {
10195e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test "$cross_compiling" = yes ||
10196e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 $as_test_x conftest$ac_exeext
10197e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       }; then
10198e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_lib_dl_dlopen=yes
10199e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10200e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
10201e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
10202e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10203e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ac_cv_lib_dl_dlopen=no
10204e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10205e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10206e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -rf conftest.dSYM
10207e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10208e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      conftest$ac_exeext conftest.$ac_ext
10209e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBS=$ac_check_lib_save_LIBS
10210e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10211e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10212e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10213e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10214e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10215e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10216e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10217e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_dlopen="dyld"
10218e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_dlopen_libs=
10219e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_dlopen_self=yes
10220e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10221e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10222e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10223e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
10224e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10225e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
10226e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10227e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for shl_load... " >&6; }
10228e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_func_shl_load+set}" = set; then
10229e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
10230e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10231e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.$ac_ext <<_ACEOF
10232e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
10233e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
10234e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
10235e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
10236e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
10237e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10238e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10239e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define shl_load innocuous_shl_load
10240e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10241e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* System header to define __stub macros and hopefully few prototypes,
10242e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    which can conflict with char shl_load (); below.
10243e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10244e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    <limits.h> exists even on freestanding compilers.  */
10245e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10246e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef __STDC__
10247e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# include <limits.h>
10248e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#else
10249e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# include <assert.h>
10250e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
10251e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10252e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#undef shl_load
10253e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10254e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* Override any GCC internal prototype to avoid an error.
10255e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   Use char because int might match the return type of a GCC
10256e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   builtin and then its argument prototype would still apply.  */
10257e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef __cplusplus
10258e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevextern "C"
10259e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
10260e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevchar shl_load ();
10261e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* The GNU C library defines this for functions which it implements
10262e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    to always fail with ENOSYS.  Some functions are actually named
10263e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    something starting with __ and the normal name is an alias.  */
10264e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#if defined __stub_shl_load || defined __stub___shl_load
10265e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevchoke me
10266e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
10267e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10268e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
10269e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
10270e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
10271e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevreturn shl_load ();
10272e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
10273e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
10274e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
10275e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
10276e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext conftest$ac_exeext
10277e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_link"
10278e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
10279e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
10281e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
10282e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10283e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
10284e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_link") 2>conftest.er1
10285e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
10286e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
10287e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
10288e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
10289e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
10291e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
10292e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
10293e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest$ac_exeext && {
10294e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test "$cross_compiling" = yes ||
10295e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 $as_test_x conftest$ac_exeext
10296e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       }; then
10297e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_func_shl_load=yes
10298e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10299e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
10300e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
10301e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10302e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ac_cv_func_shl_load=no
10303e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10304e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10305e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -rf conftest.dSYM
10306e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10307e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      conftest$ac_exeext conftest.$ac_ext
10308e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10309e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10310e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_func_shl_load" >&6; }
10311e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "x$ac_cv_func_shl_load" = x""yes; then
10312e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_dlopen="shl_load"
10313e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10314e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10315e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for shl_load in -ldld... " >&6; }
10316e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_lib_dld_shl_load+set}" = set; then
10317e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
10318e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10319e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_check_lib_save_LIBS=$LIBS
10320e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBS="-ldld  $LIBS"
10321e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >conftest.$ac_ext <<_ACEOF
10322e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
10323e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
10324e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
10325e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
10326e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
10327e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10328e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* Override any GCC internal prototype to avoid an error.
10329e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   Use char because int might match the return type of a GCC
10330e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   builtin and then its argument prototype would still apply.  */
10331e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef __cplusplus
10332e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevextern "C"
10333e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
10334e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevchar shl_load ();
10335e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
10336e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
10337e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
10338e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevreturn shl_load ();
10339e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
10340e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
10341e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
10342e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
10343e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext conftest$ac_exeext
10344e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_link"
10345e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
10346e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
10348e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
10349e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10350e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
10351e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_link") 2>conftest.er1
10352e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
10353e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
10354e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
10355e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
10356e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
10358e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
10359e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
10360e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest$ac_exeext && {
10361e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test "$cross_compiling" = yes ||
10362e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 $as_test_x conftest$ac_exeext
10363e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       }; then
10364e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_lib_dld_shl_load=yes
10365e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10366e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
10367e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
10368e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10369e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ac_cv_lib_dld_shl_load=no
10370e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10371e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10372e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -rf conftest.dSYM
10373e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10374e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      conftest$ac_exeext conftest.$ac_ext
10375e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBS=$ac_check_lib_save_LIBS
10376e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10377e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10378e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10379e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10380e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10381e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10382e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10383e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for dlopen... " >&6; }
10384e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_func_dlopen+set}" = set; then
10385e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
10386e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10387e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.$ac_ext <<_ACEOF
10388e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
10389e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
10390e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
10391e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
10392e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
10393e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10394e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10395e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define dlopen innocuous_dlopen
10396e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10397e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* System header to define __stub macros and hopefully few prototypes,
10398e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    which can conflict with char dlopen (); below.
10399e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10400e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    <limits.h> exists even on freestanding compilers.  */
10401e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10402e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef __STDC__
10403e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# include <limits.h>
10404e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#else
10405e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# include <assert.h>
10406e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
10407e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10408e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#undef dlopen
10409e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10410e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* Override any GCC internal prototype to avoid an error.
10411e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   Use char because int might match the return type of a GCC
10412e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   builtin and then its argument prototype would still apply.  */
10413e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef __cplusplus
10414e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevextern "C"
10415e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
10416e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevchar dlopen ();
10417e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* The GNU C library defines this for functions which it implements
10418e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    to always fail with ENOSYS.  Some functions are actually named
10419e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    something starting with __ and the normal name is an alias.  */
10420e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#if defined __stub_dlopen || defined __stub___dlopen
10421e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevchoke me
10422e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
10423e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10424e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
10425e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
10426e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
10427e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevreturn dlopen ();
10428e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
10429e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
10430e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
10431e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
10432e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext conftest$ac_exeext
10433e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_link"
10434e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
10435e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
10437e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
10438e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10439e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
10440e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_link") 2>conftest.er1
10441e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
10442e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
10443e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
10444e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
10445e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
10447e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
10448e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
10449e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest$ac_exeext && {
10450e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test "$cross_compiling" = yes ||
10451e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 $as_test_x conftest$ac_exeext
10452e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       }; then
10453e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_func_dlopen=yes
10454e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10455e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
10456e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
10457e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10458e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ac_cv_func_dlopen=no
10459e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10460e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10461e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -rf conftest.dSYM
10462e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10463e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      conftest$ac_exeext conftest.$ac_ext
10464e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10465e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10466e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_func_dlopen" >&6; }
10467e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "x$ac_cv_func_dlopen" = x""yes; then
10468e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_dlopen="dlopen"
10469e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10470e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10471e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for dlopen in -ldl... " >&6; }
10472e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_lib_dl_dlopen+set}" = set; then
10473e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
10474e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10475e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_check_lib_save_LIBS=$LIBS
10476e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBS="-ldl  $LIBS"
10477e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >conftest.$ac_ext <<_ACEOF
10478e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
10479e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
10480e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
10481e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
10482e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
10483e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10484e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* Override any GCC internal prototype to avoid an error.
10485e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   Use char because int might match the return type of a GCC
10486e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   builtin and then its argument prototype would still apply.  */
10487e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef __cplusplus
10488e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevextern "C"
10489e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
10490e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevchar dlopen ();
10491e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
10492e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
10493e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
10494e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevreturn dlopen ();
10495e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
10496e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
10497e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
10498e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
10499e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext conftest$ac_exeext
10500e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_link"
10501e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
10502e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
10504e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
10505e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10506e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
10507e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_link") 2>conftest.er1
10508e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
10509e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
10510e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
10511e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
10512e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
10514e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
10515e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
10516e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest$ac_exeext && {
10517e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test "$cross_compiling" = yes ||
10518e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 $as_test_x conftest$ac_exeext
10519e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       }; then
10520e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_lib_dl_dlopen=yes
10521e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10522e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
10523e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
10524e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10525e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ac_cv_lib_dl_dlopen=no
10526e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10527e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10528e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -rf conftest.dSYM
10529e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10530e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      conftest$ac_exeext conftest.$ac_ext
10531e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBS=$ac_check_lib_save_LIBS
10532e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10533e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10534e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10535e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10536e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10537e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10538e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10539e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10540e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_lib_svld_dlopen+set}" = set; then
10541e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
10542e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10543e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_check_lib_save_LIBS=$LIBS
10544e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBS="-lsvld  $LIBS"
10545e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >conftest.$ac_ext <<_ACEOF
10546e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
10547e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
10548e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
10549e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
10550e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
10551e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10552e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* Override any GCC internal prototype to avoid an error.
10553e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   Use char because int might match the return type of a GCC
10554e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   builtin and then its argument prototype would still apply.  */
10555e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef __cplusplus
10556e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevextern "C"
10557e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
10558e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevchar dlopen ();
10559e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
10560e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
10561e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
10562e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevreturn dlopen ();
10563e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
10564e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
10565e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
10566e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
10567e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext conftest$ac_exeext
10568e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_link"
10569e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
10570e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
10572e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
10573e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10574e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
10575e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_link") 2>conftest.er1
10576e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
10577e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
10578e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
10579e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
10580e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
10582e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
10583e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
10584e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest$ac_exeext && {
10585e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test "$cross_compiling" = yes ||
10586e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 $as_test_x conftest$ac_exeext
10587e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       }; then
10588e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_lib_svld_dlopen=yes
10589e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10590e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
10591e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
10592e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10593e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ac_cv_lib_svld_dlopen=no
10594e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10595e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10596e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -rf conftest.dSYM
10597e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10598e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      conftest$ac_exeext conftest.$ac_ext
10599e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBS=$ac_check_lib_save_LIBS
10600e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10601e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10602e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10603e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10604e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10605e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10606e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10607e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for dld_link in -ldld... " >&6; }
10608e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_lib_dld_dld_link+set}" = set; then
10609e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
10610e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10611e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_check_lib_save_LIBS=$LIBS
10612e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBS="-ldld  $LIBS"
10613e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >conftest.$ac_ext <<_ACEOF
10614e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
10615e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
10616e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
10617e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
10618e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
10619e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10620e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* Override any GCC internal prototype to avoid an error.
10621e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   Use char because int might match the return type of a GCC
10622e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   builtin and then its argument prototype would still apply.  */
10623e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef __cplusplus
10624e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevextern "C"
10625e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
10626e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevchar dld_link ();
10627e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
10628e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
10629e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
10630e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevreturn dld_link ();
10631e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
10632e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
10633e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
10634e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
10635e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext conftest$ac_exeext
10636e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_link"
10637e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
10638e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
10640e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
10641e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10642e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
10643e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_link") 2>conftest.er1
10644e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
10645e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
10646e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
10647e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
10648e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
10650e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
10651e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
10652e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest$ac_exeext && {
10653e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test "$cross_compiling" = yes ||
10654e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 $as_test_x conftest$ac_exeext
10655e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       }; then
10656e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_lib_dld_dld_link=yes
10657e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10658e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
10659e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
10660e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10661e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	ac_cv_lib_dld_dld_link=no
10662e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10663e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10664e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -rf conftest.dSYM
10665e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10666e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      conftest$ac_exeext conftest.$ac_ext
10667e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBS=$ac_check_lib_save_LIBS
10668e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10669e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10670e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10671e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10672e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10673e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10674e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10675e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10676e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10677e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10678e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10679e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10680e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10681e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10682e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10683e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10684e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10685e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10686e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10687e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10688e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10689e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10690e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
10691e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
10692e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10693e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$lt_cv_dlopen" != xno; then
10694e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    enable_dlopen=yes
10695e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
10696e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    enable_dlopen=no
10697e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
10698e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10699e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $lt_cv_dlopen in
10700e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  dlopen)
10701e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    save_CPPFLAGS="$CPPFLAGS"
10702e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10703e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10704e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    save_LDFLAGS="$LDFLAGS"
10705e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10706e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10707e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    save_LIBS="$LIBS"
10708e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    LIBS="$lt_cv_dlopen_libs $LIBS"
10709e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10710e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10711e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10712e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_dlopen_self+set}" = set; then
10713e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
10714e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10715e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  	  if test "$cross_compiling" = yes; then :
10716e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_dlopen_self=cross
10717e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10718e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10719e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_status=$lt_dlunknown
10720e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat > conftest.$ac_ext <<_LT_EOF
10721e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#line 10721 "configure"
10722e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include "confdefs.h"
10723e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10724e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#if HAVE_DLFCN_H
10725e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <dlfcn.h>
10726e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
10727e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10728e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <stdio.h>
10729e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10730e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef RTLD_GLOBAL
10731e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#  define LT_DLGLOBAL		RTLD_GLOBAL
10732e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#else
10733e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#  ifdef DL_GLOBAL
10734e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#    define LT_DLGLOBAL		DL_GLOBAL
10735e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#  else
10736e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#    define LT_DLGLOBAL		0
10737e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#  endif
10738e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
10739e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10740e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10741e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   find out it does not work in some platform. */
10742e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifndef LT_DLLAZY_OR_NOW
10743e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#  ifdef RTLD_LAZY
10744e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10745e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#  else
10746e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#    ifdef DL_LAZY
10747e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#      define LT_DLLAZY_OR_NOW		DL_LAZY
10748e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#    else
10749e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#      ifdef RTLD_NOW
10750e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10751e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#      else
10752e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#        ifdef DL_NOW
10753e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#          define LT_DLLAZY_OR_NOW	DL_NOW
10754e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#        else
10755e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#          define LT_DLLAZY_OR_NOW	0
10756e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#        endif
10757e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#      endif
10758e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#    endif
10759e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#  endif
10760e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
10761e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10762e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevvoid fnord() { int i=42;}
10763e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint main ()
10764e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
10765e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10766e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  int status = $lt_dlunknown;
10767e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10768e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if (self)
10769e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    {
10770e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10771e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10772e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      /* dlclose (self); */
10773e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    }
10774e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
10775e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    puts (dlerror ());
10776e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10777e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return status;
10778e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
10779e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
10780e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10781e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval $ac_link) 2>&5
10782e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
10783e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10785e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    (./conftest; exit; ) >&5 2>/dev/null
10786e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_status=$?
10787e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case x$lt_status in
10788e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10789e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10790e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10791e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
10792e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else :
10793e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # compilation failed
10794e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_dlopen_self=no
10795e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
10796e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10797e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -fr conftest*
10798e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10799e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10800e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10801e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10802e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_cv_dlopen_self" >&6; }
10803e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10804e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test "x$lt_cv_dlopen_self" = xyes; then
10805e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10806e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10807e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10808e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${lt_cv_dlopen_self_static+set}" = set; then
10809e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
10810e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10811e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  	  if test "$cross_compiling" = yes; then :
10812e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_cv_dlopen_self_static=cross
10813e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10814e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10815e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  lt_status=$lt_dlunknown
10816e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat > conftest.$ac_ext <<_LT_EOF
10817e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#line 10817 "configure"
10818e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include "confdefs.h"
10819e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10820e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#if HAVE_DLFCN_H
10821e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <dlfcn.h>
10822e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
10823e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10824e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#include <stdio.h>
10825e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10826e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifdef RTLD_GLOBAL
10827e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#  define LT_DLGLOBAL		RTLD_GLOBAL
10828e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#else
10829e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#  ifdef DL_GLOBAL
10830e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#    define LT_DLGLOBAL		DL_GLOBAL
10831e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#  else
10832e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#    define LT_DLGLOBAL		0
10833e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#  endif
10834e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
10835e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10836e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10837e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   find out it does not work in some platform. */
10838e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifndef LT_DLLAZY_OR_NOW
10839e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#  ifdef RTLD_LAZY
10840e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10841e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#  else
10842e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#    ifdef DL_LAZY
10843e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#      define LT_DLLAZY_OR_NOW		DL_LAZY
10844e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#    else
10845e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#      ifdef RTLD_NOW
10846e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10847e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#      else
10848e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#        ifdef DL_NOW
10849e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#          define LT_DLLAZY_OR_NOW	DL_NOW
10850e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#        else
10851e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#          define LT_DLLAZY_OR_NOW	0
10852e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#        endif
10853e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#      endif
10854e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#    endif
10855e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#  endif
10856e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
10857e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10858e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevvoid fnord() { int i=42;}
10859e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint main ()
10860e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
10861e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10862e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  int status = $lt_dlunknown;
10863e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10864e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if (self)
10865e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    {
10866e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10867e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10868e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      /* dlclose (self); */
10869e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    }
10870e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
10871e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    puts (dlerror ());
10872e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10873e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return status;
10874e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
10875e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
10876e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10877e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval $ac_link) 2>&5
10878e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
10879e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10881e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    (./conftest; exit; ) >&5 2>/dev/null
10882e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_status=$?
10883e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case x$lt_status in
10884e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10885e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10886e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10887e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
10888e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else :
10889e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # compilation failed
10890e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    lt_cv_dlopen_self_static=no
10891e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
10892e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10893e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -fr conftest*
10894e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10895e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10896e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10897e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10898e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$lt_cv_dlopen_self_static" >&6; }
10899e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
10900e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10901e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    CPPFLAGS="$save_CPPFLAGS"
10902e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    LDFLAGS="$save_LDFLAGS"
10903e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    LIBS="$save_LIBS"
10904e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
10905e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
10906e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10907e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $lt_cv_dlopen_self in
10908e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10909e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) enable_dlopen_self=unknown ;;
10910e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
10911e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10912e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $lt_cv_dlopen_self_static in
10913e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10914e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) enable_dlopen_self_static=unknown ;;
10915e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
10916e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10917e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10918e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10919e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10920e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10921e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10922e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10923e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10924e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10925e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10926e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10927e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10928e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10929e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10930e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10931e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10932e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10933e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10934e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevstriplib=
10935e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_striplib=
10936e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10937e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10938e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10939e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10940e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10941e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: yes" >&5
10942e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "yes" >&6; }
10943e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
10944e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# FIXME - insert some real tests, host_os isn't really good enough
10945e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_os in
10946e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  darwin*)
10947e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -n "$STRIP" ; then
10948e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      striplib="$STRIP -x"
10949e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      old_striplib="$STRIP -S"
10950e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { $as_echo "$as_me:$LINENO: result: yes" >&5
10951e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "yes" >&6; }
10952e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    else
10953e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { $as_echo "$as_me:$LINENO: result: no" >&5
10954e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
10955e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
10956e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
10957e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
10958e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me:$LINENO: result: no" >&5
10959e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
10960e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
10961e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
10962e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
10963e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10964e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10965e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10966e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10967e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10968e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10969e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10970e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10971e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10972e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10973e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10974e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10975e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Report which library types will actually be built
10976e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10977e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10978e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10979e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$can_build_shared" >&6; }
10980e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10981e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10982e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether to build shared libraries... " >&6; }
10983e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "$can_build_shared" = "no" && enable_shared=no
10984e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10985e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # On AIX, shared libraries and static libraries use the same namespace, and
10986e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # are all built from PIC.
10987e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_os in
10988e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  aix3*)
10989e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test "$enable_shared" = yes && enable_static=no
10990e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -n "$RANLIB"; then
10991e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10992e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      postinstall_cmds='$RANLIB $lib'
10993e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
10994e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
10995e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
10996e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  aix[4-9]*)
10997e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10998e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      test "$enable_shared" = yes && enable_static=no
10999e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
11000e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
11001e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
11002e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11003e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$enable_shared" >&6; }
11004e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11005e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11006e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether to build static libraries... " >&6; }
11007e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Make sure either enable_shared or enable_static is yes.
11008e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "$enable_shared" = yes || enable_static=yes
11009e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11010e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$enable_static" >&6; }
11011e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11012e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11013e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11014e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11015e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11016e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ext=c
11017e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cpp='$CPP $CPPFLAGS'
11018e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11019e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11020e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_compiler_gnu=$ac_cv_c_compiler_gnu
11021e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11022e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCC="$lt_save_CC"
11023e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11024e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11025e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11026e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11027e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11028e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11029e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11030e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11031e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11032e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11033e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11034e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11035e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11036e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        ac_config_commands="$ac_config_commands libtool"
11037e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11038e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11039e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11040e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11041e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Only expand once:
11042e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11043e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11044e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for inline" >&5
11045e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for inline... " >&6; }
11046e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_c_inline+set}" = set; then
11047e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
11048e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11049e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_c_inline=no
11050e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_kw in inline __inline__ __inline; do
11051e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.$ac_ext <<_ACEOF
11052e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
11053e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
11054e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
11055e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
11056e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
11057e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifndef __cplusplus
11058e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtypedef int foo_t;
11059e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevstatic $ac_kw foo_t static_foo () {return 0; }
11060e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$ac_kw foo_t foo () {return 0; }
11061e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
11062e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11063e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
11064e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext
11065e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_compile"
11066e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
11067e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
11069e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
11070e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11071e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
11072e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_compile") 2>conftest.er1
11073e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
11074e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
11075e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
11076e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
11077e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
11079e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
11080e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
11081e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest.$ac_objext; then
11082e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_c_inline=$ac_kw
11083e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11084e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
11085e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
11086e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11087e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11088e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11089e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11090e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11091e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "$ac_cv_c_inline" != no && break
11092e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
11093e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11094e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11095e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11096e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_cv_c_inline" >&6; }
11097e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11098e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11099e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $ac_cv_c_inline in
11100e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  inline | yes) ;;
11101e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
11102e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $ac_cv_c_inline in
11103e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      no) ac_val=;;
11104e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *) ac_val=$ac_cv_c_inline;;
11105e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
11106e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cat >>confdefs.h <<_ACEOF
11107e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#ifndef __cplusplus
11108e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define inline $ac_val
11109e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#endif
11110e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
11111e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
11112e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
11113e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11114e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "x$CC" != xcc; then
11115e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
11116e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11117e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11118e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
11119e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11120e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11121e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy $CC; ac_cc=`$as_echo "$2" |
11122e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11123e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
11124e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
11125e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11126e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat >conftest.$ac_ext <<_ACEOF
11127e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
11128e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
11129e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
11130e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
11131e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
11132e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11133e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
11134e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
11135e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
11136e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11137e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
11138e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
11139e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
11140e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
11141e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Make sure it works both with $CC and with simple cc.
11142e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# We do the test twice because some compilers refuse to overwrite an
11143e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# existing .o file with -o, though they will create one.
11144e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11145e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest2.*
11146e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (case "(($ac_try" in
11147e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
11149e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
11150e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11151e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
11152e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_try") 2>&5
11153e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
11154e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } &&
11156e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   test -f conftest2.$ac_objext && { (case "(($ac_try" in
11157e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
11159e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
11160e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11161e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
11162e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_try") 2>&5
11163e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
11164e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); };
11166e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevthen
11167e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11168e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$CC" != xcc; then
11169e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Test first that cc exists at all.
11170e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if { ac_try='cc -c conftest.$ac_ext >&5'
11171e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { (case "(($ac_try" in
11172e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
11174e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
11175e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11176e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
11177e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_try") 2>&5
11178e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
11179e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); }; }; then
11181e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11182e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      rm -f conftest2.*
11183e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if { (case "(($ac_try" in
11184e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
11186e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
11187e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11188e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
11189e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_try") 2>&5
11190e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
11191e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } &&
11193e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11194e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
11196e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
11197e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11198e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
11199e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_try") 2>&5
11200e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
11201e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); };
11203e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      then
11204e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# cc works too.
11205e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	:
11206e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
11207e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# cc exists but doesn't like -o.
11208e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	eval ac_cv_prog_cc_${ac_cc}_c_o=no
11209e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      fi
11210e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
11211e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
11212e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11213e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11214e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11215e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest*
11216e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11217e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11218e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11219e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: yes" >&5
11220e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "yes" >&6; }
11221e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11222e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
11223e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
11224e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11225e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>confdefs.h <<\_ACEOF
11226e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define NO_MINUS_C_MINUS_O 1
11227e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
11228e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11229e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11230e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11231e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# FIXME: we rely on the cache variable name because
11232e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# there is no other way.
11233e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy $CC
11234e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevam_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11235e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11236e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$am_t" != yes; then
11237e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # Losing compiler, so override with the script.
11238e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # FIXME: It is wrong to rewrite CC.
11239e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # But if we don't then we get into trouble of one sort or another.
11240e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # A longer-term fix would be to have automake use am__CC in this case,
11241e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11242e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   CC="$am_aux_dir/compile $CC"
11243e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11244e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11245e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11246e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11247e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Library versioning
11248e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLT_MAJOR="8"
11249e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLT_REVISION="4"
11250e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLT_AGE="4"
11251e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11252e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11253e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11254e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11255e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The libusb-0.1 version we pretend to be
11256e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBUSB01_VERSION="0.1.12"
11257e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11258e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11259e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11260e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11261e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11262e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	if test -n "$ac_tool_prefix"; then
11263e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11264e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11265e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11266e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
11267e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11268e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
11269e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11270e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $PKG_CONFIG in
11271e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  [\\/]* | ?:[\\/]*)
11272e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11273e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
11274e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
11275e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11276e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
11277e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
11278e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
11279e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
11280e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
11281e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11282e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11283e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11284e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
11285e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
11286e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
11287e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
11288e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
11289e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11290e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
11291e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
11292e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11293e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPKG_CONFIG=$ac_cv_path_PKG_CONFIG
11294e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$PKG_CONFIG"; then
11295e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11296e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$PKG_CONFIG" >&6; }
11297e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11298e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
11299e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
11300e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11301e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11302e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11303e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11304e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "$ac_cv_path_PKG_CONFIG"; then
11305e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_pt_PKG_CONFIG=$PKG_CONFIG
11306e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the first word of "pkg-config", so it can be a program name with args.
11307e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevset dummy pkg-config; ac_word=$2
11308e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11309e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for $ac_word... " >&6; }
11310e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11311e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo_n "(cached) " >&6
11312e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11313e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_pt_PKG_CONFIG in
11314e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  [\\/]* | ?:[\\/]*)
11315e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11316e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
11317e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
11318e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11319e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
11320e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
11321e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
11322e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
11323e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_exec_ext in '' $ac_executable_extensions; do
11324e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11325e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11326e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11327e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break 2
11328e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
11329e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
11330e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
11331e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
11332e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11333e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
11334e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
11335e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11336e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11337e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_pt_PKG_CONFIG"; then
11338e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11339e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11340e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11341e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: result: no" >&5
11342e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
11343e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11344e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11345e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "x$ac_pt_PKG_CONFIG" = x; then
11346e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    PKG_CONFIG=""
11347e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
11348e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $cross_compiling:$ac_tool_warned in
11349e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevyes:)
11350e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11351e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11352e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_tool_warned=yes ;;
11353e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
11354e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    PKG_CONFIG=$ac_pt_PKG_CONFIG
11355e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
11356e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11357e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11358e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11359e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11360e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11361e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$PKG_CONFIG"; then
11362e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	_pkg_min_version=0.9.0
11363e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11364e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11365e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11366e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		{ $as_echo "$as_me:$LINENO: result: yes" >&5
11367e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "yes" >&6; }
11368e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	else
11369e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		{ $as_echo "$as_me:$LINENO: result: no" >&5
11370e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "no" >&6; }
11371e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev		PKG_CONFIG=""
11372e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	fi
11373e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11374e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11375e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11376e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpkg_failed=no
11377e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: checking for LIBUSB_1_0" >&5
11378e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo_n "checking for LIBUSB_1_0... " >&6; }
11379e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11380e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$LIBUSB_1_0_CFLAGS"; then
11381e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    pkg_cv_LIBUSB_1_0_CFLAGS="$LIBUSB_1_0_CFLAGS"
11382e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev elif test -n "$PKG_CONFIG"; then
11383e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -n "$PKG_CONFIG" && \
11384e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 0.9.1\"") >&5
11385e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 0.9.1") 2>&5
11386e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
11387e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); }; then
11389e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  pkg_cv_LIBUSB_1_0_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 0.9.1" 2>/dev/null`
11390e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11391e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  pkg_failed=yes
11392e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11393e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev else
11394e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    pkg_failed=untried
11395e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11396e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$LIBUSB_1_0_LIBS"; then
11397e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    pkg_cv_LIBUSB_1_0_LIBS="$LIBUSB_1_0_LIBS"
11398e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev elif test -n "$PKG_CONFIG"; then
11399e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -n "$PKG_CONFIG" && \
11400e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 0.9.1\"") >&5
11401e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 0.9.1") 2>&5
11402e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
11403e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); }; then
11405e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  pkg_cv_LIBUSB_1_0_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 0.9.1" 2>/dev/null`
11406e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11407e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  pkg_failed=yes
11408e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11409e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev else
11410e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    pkg_failed=untried
11411e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11412e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11413e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11414e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11415e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test $pkg_failed = yes; then
11416e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11417e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11418e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        _pkg_short_errors_supported=yes
11419e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11420e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        _pkg_short_errors_supported=no
11421e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11422e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        if test $_pkg_short_errors_supported = yes; then
11423e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	        LIBUSB_1_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0 >= 0.9.1" 2>&1`
11424e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        else
11425e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	        LIBUSB_1_0_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0 >= 0.9.1" 2>&1`
11426e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        fi
11427e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	# Put the nasty error message in config.log where it belongs
11428e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	echo "$LIBUSB_1_0_PKG_ERRORS" >&5
11429e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11430e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libusb-1.0 >= 0.9.1) were not met:
11431e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11432e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$LIBUSB_1_0_PKG_ERRORS
11433e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11434e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevConsider adjusting the PKG_CONFIG_PATH environment variable if you
11435e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevinstalled software in a non-standard prefix.
11436e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11437e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAlternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
11438e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevand LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
11439e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee the pkg-config man page for more details.
11440e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev" >&5
11441e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: Package requirements (libusb-1.0 >= 0.9.1) were not met:
11442e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11443e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$LIBUSB_1_0_PKG_ERRORS
11444e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11445e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevConsider adjusting the PKG_CONFIG_PATH environment variable if you
11446e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevinstalled software in a non-standard prefix.
11447e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11448e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAlternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
11449e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevand LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
11450e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee the pkg-config man page for more details.
11451e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev" >&2;}
11452e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
11453e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelif test $pkg_failed = untried; then
11454e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11455e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11456e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
11457e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevis in your PATH or set the PKG_CONFIG environment variable to the full
11458e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpath to pkg-config.
11459e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11460e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAlternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
11461e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevand LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
11462e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee the pkg-config man page for more details.
11463e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11464e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
11465e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee \`config.log' for more details." >&5
11466e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
11467e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevis in your PATH or set the PKG_CONFIG environment variable to the full
11468e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpath to pkg-config.
11469e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11470e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAlternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
11471e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevand LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
11472e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee the pkg-config man page for more details.
11473e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11474e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
11475e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSee \`config.log' for more details." >&2;}
11476e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }; }
11477e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11478e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	LIBUSB_1_0_CFLAGS=$pkg_cv_LIBUSB_1_0_CFLAGS
11479e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	LIBUSB_1_0_LIBS=$pkg_cv_LIBUSB_1_0_LIBS
11480e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev        { $as_echo "$as_me:$LINENO: result: yes" >&5
11481e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "yes" >&6; }
11482e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	:
11483e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11484e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11485e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11486e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11487e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Message logging
11488e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check whether --enable-log was given.
11489e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${enable_log+set}" = set; then
11490e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enableval=$enable_log; log_enabled=$enableval
11491e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11492e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  log_enabled='yes'
11493e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11494e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11495e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "x$log_enabled" != "xno"; then
11496e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11497e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>confdefs.h <<\_ACEOF
11498e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define ENABLE_LOGGING 1
11499e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
11500e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11501e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11502e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11503e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check whether --enable-debug-log was given.
11504e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${enable_debug_log+set}" = set; then
11505e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enableval=$enable_debug_log; debug_log_enabled=$enableval
11506e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11507e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  debug_log_enabled='no'
11508e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11509e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11510e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "x$debug_log_enabled" != "xno"; then
11511e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11512e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>confdefs.h <<\_ACEOF
11513e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define ENABLE_DEBUG_LOGGING 1
11514e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
11515e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11516e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11517e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11518e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Examples build
11519e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Check whether --enable-examples-build was given.
11520e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${enable_examples_build+set}" = set; then
11521e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  enableval=$enable_examples_build; build_examples=$enableval
11522e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11523e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  build_examples='no'
11524e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11525e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11526e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev if test "x$build_examples" != "xno"; then
11527e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  BUILD_EXAMPLES_TRUE=
11528e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  BUILD_EXAMPLES_FALSE='#'
11529e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11530e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  BUILD_EXAMPLES_TRUE='#'
11531e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  BUILD_EXAMPLES_FALSE=
11532e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11533e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11534e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11535e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Restore gnu89 inline semantics on gcc 4.3 and newer
11536e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsaved_cflags="$CFLAGS"
11537e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCFLAGS="$CFLAGS -fgnu89-inline"
11538e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >conftest.$ac_ext <<_ACEOF
11539e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* confdefs.h.  */
11540e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
11541e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat confdefs.h >>conftest.$ac_ext
11542e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>conftest.$ac_ext <<_ACEOF
11543e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/* end confdefs.h.  */
11544e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11545e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevint
11546e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmain ()
11547e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
11548e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11549e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;
11550e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  return 0;
11551e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
11552e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
11553e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conftest.$ac_objext
11554e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif { (ac_try="$ac_compile"
11555e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "(($ac_try" in
11556e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_try_echo=$ac_try;;
11558e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
11559e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11560e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$ac_try_echo") >&5
11561e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (eval "$ac_compile") 2>conftest.er1
11562e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_status=$?
11563e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  grep -v '^ *+' conftest.er1 >conftest.err
11564e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conftest.er1
11565e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat conftest.err >&5
11566e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (exit $ac_status); } && {
11568e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -z "$ac_c_werror_flag" ||
11569e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test ! -s conftest.err
11570e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       } && test -s conftest.$ac_objext; then
11571e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  inline_cflags="-fgnu89-inline"
11572e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11573e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_me: failed program was:" >&5
11574e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed 's/^/| /' conftest.$ac_ext >&5
11575e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11576e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	inline_cflags=""
11577e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11578e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11579e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11580e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCFLAGS="$saved_cflags"
11581e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11582e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11583e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>confdefs.h <<\_ACEOF
11584e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#define API_EXPORTED __attribute__((visibility("default")))
11585e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
11586e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11587e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAM_CFLAGS="-std=gnu99 $inline_cflags -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow"
11588e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11589e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11590e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_config_files="$ac_config_files libusb.pc libusb-config Makefile libusb/Makefile examples/Makefile"
11591e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11592e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_config_commands="$ac_config_commands default"
11593e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11594e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11595e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >confcache <<\_ACEOF
11596e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# This file is a shell script that caches the results of configure
11597e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# tests run on this system so they can be shared between configure
11598e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# scripts and configure runs, see configure's option --config-cache.
11599e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# It is not useful on other systems.  If it contains results you don't
11600e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# want to keep, you may remove or edit it.
11601e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
11602e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# config.status only pays attention to the cache file if you give it
11603e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# the --recheck option to rerun configure.
11604e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
11605e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# `ac_cv_env_foo' variables (set or unset) will be overridden when
11606e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# loading this file, other *unset* `ac_cv_foo' will be assigned the
11607e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# following values.
11608e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11609e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
11610e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11611e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The following way of writing the cache mishandles newlines in values,
11612e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# but we know of no workaround that is simple, portable, and efficient.
11613e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# So, we kill variables containing newlines.
11614e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Ultrix sh set writes to stderr and can't be redirected directly,
11615e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# and sets the high bit in the cache file unless we assign to the vars.
11616e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev(
11617e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11618e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    eval ac_val=\$$ac_var
11619e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $ac_val in #(
11620e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *${as_nl}*)
11621e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $ac_var in #(
11622e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11623e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11624e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
11625e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $ac_var in #(
11626e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      _ | IFS | as_nl) ;; #(
11627e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11628e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *) $as_unset $ac_var ;;
11629e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac ;;
11630e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
11631e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
11632e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11633e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (set) 2>&1 |
11634e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11635e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *${as_nl}ac_space=\ *)
11636e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # `set' does not quote correctly, so add quotes (double-quote
11637e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # substitution turns \\\\ into \\, and sed turns \\ into \).
11638e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      sed -n \
11639e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	"s/'/'\\\\''/g;
11640e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11641e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;; #(
11642e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)
11643e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      # `set' quotes correctly as required by POSIX, so do not add quotes.
11644e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11645e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
11646e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac |
11647e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sort
11648e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev) |
11649e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sed '
11650e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     /^ac_cv_env_/b end
11651e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     t clear
11652e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     :clear
11653e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11654e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     t end
11655e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11656e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     :end' >>confcache
11657e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11658e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -w "$cache_file"; then
11659e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test "x$cache_file" != "x/dev/null" &&
11660e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11661e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: updating cache $cache_file" >&6;}
11662e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cat confcache >$cache_file
11663e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
11664e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11665e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11666e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
11667e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11668e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f confcache
11669e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11670e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest "x$prefix" = xNONE && prefix=$ac_default_prefix
11671e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Let make expand exec_prefix.
11672e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11673e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11674e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevDEFS=-DHAVE_CONFIG_H
11675e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11676e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_libobjs=
11677e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_ltlibobjs=
11678e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11679e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # 1. Remove the extension, and $U if already installed.
11680e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11681e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11682e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11683e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  #    will be set to the directory where LIBOBJS objects are built.
11684e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11685e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11686e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
11687e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIBOBJS=$ac_libobjs
11688e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11689e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLTLIBOBJS=$ac_ltlibobjs
11690e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11691e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11692e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11693e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11694e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevUsually this means the macro was only invoked conditionally." >&5
11695e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11696e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevUsually this means the macro was only invoked conditionally." >&2;}
11697e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
11698e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11699e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11700e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11701e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevUsually this means the macro was only invoked conditionally." >&5
11702e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11703e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevUsually this means the macro was only invoked conditionally." >&2;}
11704e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
11705e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11706e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
11707e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_EXAMPLES\" was never defined.
11708e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevUsually this means the macro was only invoked conditionally." >&5
11709e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: conditional \"BUILD_EXAMPLES\" was never defined.
11710e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevUsually this means the macro was only invoked conditionally." >&2;}
11711e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
11712e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11713e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11714e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev: ${CONFIG_STATUS=./config.status}
11715e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_write_fail=0
11716e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_clean_files_save=$ac_clean_files
11717e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_clean_files="$ac_clean_files $CONFIG_STATUS"
11718e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11719e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11720e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11721e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#! $SHELL
11722e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Generated by $as_me.
11723e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Run this file to recreate the current configuration.
11724e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Compiler output produced by configure, useful for debugging
11725e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# configure, is in config.log if it exists.
11726e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11727e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdebug=false
11728e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cs_recheck=false
11729e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cs_silent=false
11730e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSHELL=\${CONFIG_SHELL-$SHELL}
11731e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
11732e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11733e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11734e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## --------------------- ##
11735e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## M4sh Initialization.  ##
11736e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## --------------------- ##
11737e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11738e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Be more Bourne compatible
11739e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevDUALCASE=1; export DUALCASE # for MKS sh
11740e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11741e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  emulate sh
11742e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  NULLCMD=:
11743e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11744e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # is contrary to our usage.  Disable this feature.
11745e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  alias -g '${1+"$@"}'='"$@"'
11746e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  setopt NO_GLOB_SUBST
11747e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11748e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case `(set -o) 2>/dev/null` in
11749e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *posix*) set -o posix ;;
11750e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
11751e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11752e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11753e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11754e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11755e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11756e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11757e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# PATH needs CR
11758e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Avoid depending upon Character Ranges.
11759e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_cr_letters='abcdefghijklmnopqrstuvwxyz'
11760e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11761e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_cr_Letters=$as_cr_letters$as_cr_LETTERS
11762e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_cr_digits='0123456789'
11763e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_cr_alnum=$as_cr_Letters$as_cr_digits
11764e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11765e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_nl='
11766e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev'
11767e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexport as_nl
11768e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Printing a long string crashes Solaris 7 /usr/bin/printf.
11769e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11770e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11771e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11772e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11773e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_echo='printf %s\n'
11774e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_echo_n='printf %s'
11775e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11776e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11777e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11778e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_echo_n='/usr/ucb/echo -n'
11779e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
11780e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11781e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_echo_n_body='eval
11782e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      arg=$1;
11783e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $arg in
11784e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *"$as_nl"*)
11785e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	expr "X$arg" : "X\\(.*\\)$as_nl";
11786e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11787e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac;
11788e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11789e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    '
11790e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    export as_echo_n_body
11791e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_echo_n='sh -c $as_echo_n_body as_echo'
11792e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
11793e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  export as_echo_body
11794e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_echo='sh -c $as_echo_body as_echo'
11795e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11796e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11797e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The user is always right.
11798e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "${PATH_SEPARATOR+set}" != set; then
11799e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  PATH_SEPARATOR=:
11800e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11801e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11802e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      PATH_SEPARATOR=';'
11803e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  }
11804e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11805e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11806e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Support unset when possible.
11807e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11808e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_unset=unset
11809e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11810e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_unset=false
11811e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11812e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11813e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11814e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# IFS
11815e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# We need space, tab and new line, in precisely that order.  Quoting is
11816e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# there to prevent editors from complaining about space-tab.
11817e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11818e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# splitting by setting IFS to empty value.)
11819e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=" ""	$as_nl"
11820e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11821e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Find who we are.  Look in the path if we contain no directory separator.
11822e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $0 in
11823e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *[\\/]* ) as_myself=$0 ;;
11824e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_dir in $PATH
11826e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
11827e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$as_save_IFS
11828e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$as_dir" && as_dir=.
11829e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11830e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
11831e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevIFS=$as_save_IFS
11832e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11833e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     ;;
11834e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
11835e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# We did not find ourselves, most probably we were run as `sh COMMAND'
11836e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# in which case we are not to be found in the path.
11837e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "x$as_myself" = x; then
11838e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_myself=$0
11839e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11840e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test ! -f "$as_myself"; then
11841e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11842e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { (exit 1); exit 1; }
11843e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11844e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11845e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Work around bugs in pre-3.0 UWIN ksh.
11846e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor as_var in ENV MAIL MAILPATH
11847e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11848e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
11849e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPS1='$ '
11850e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPS2='> '
11851e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevPS4='+ '
11852e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11853e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# NLS nuisances.
11854e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLC_ALL=C
11855e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexport LC_ALL
11856e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLANGUAGE=C
11857e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexport LANGUAGE
11858e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11859e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Required to use basename.
11860e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif expr a : '\(a\)' >/dev/null 2>&1 &&
11861e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11862e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_expr=expr
11863e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11864e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_expr=false
11865e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11866e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11867e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11868e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_basename=basename
11869e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11870e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_basename=false
11871e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11872e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11873e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11874e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Name of the executable.
11875e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_me=`$as_basename -- "$0" ||
11876e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11877e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$0" : 'X\(//\)$' \| \
11878e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11879e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo X/"$0" |
11880e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sed '/^.*\/\([^/][^/]*\)\/*$/{
11881e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
11882e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
11883e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
11884e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\/\(\/\/\)$/{
11885e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
11886e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
11887e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
11888e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\/\(\/\).*/{
11889e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
11890e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
11891e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
11892e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  s/.*/./; q'`
11893e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11894e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# CDPATH.
11895e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_unset CDPATH
11896e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11897e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11898e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11899e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_lineno_1=$LINENO
11900e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_lineno_2=$LINENO
11901e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "x$as_lineno_1" != "x$as_lineno_2" &&
11902e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11903e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11904e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11905e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # uniformly replaced by the line number.  The first 'sed' inserts a
11906e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # line-number line after each line using $LINENO; the second 'sed'
11907e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # does the real work.  The second script uses 'N' to pair each
11908e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # line-number line with the line containing $LINENO, and appends
11909e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # trailing '-' during substitution so that $LINENO is not a special
11910e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # case at line end.
11911e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11912e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # scripts with optimization help from Paolo Bonzini.  Blame Lee
11913e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # E. McMahon (1931-1989) for sed's syntax.  :-)
11914e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sed -n '
11915e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    p
11916e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    /[$]LINENO/=
11917e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ' <$as_myself |
11918e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sed '
11919e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      s/[$]LINENO.*/&-/
11920e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      t lineno
11921e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      b
11922e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      :lineno
11923e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      N
11924e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      :loop
11925e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11926e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      t loop
11927e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      s/-\n.*//
11928e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ' >$as_me.lineno &&
11929e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  chmod +x "$as_me.lineno" ||
11930e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11931e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
11932e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11933e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Don't try to exec as it changes $[0], causing all sort of problems
11934e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # (the dirname of $[0] is not the place where we might find the
11935e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # original and so on.  Autoconf is especially sensitive to this).
11936e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  . "./$as_me.lineno"
11937e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Exit status is that of the last command.
11938e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exit
11939e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
11940e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11941e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11942e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11943e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_dirname=dirname
11944e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11945e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_dirname=false
11946e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11947e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11948e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevECHO_C= ECHO_N= ECHO_T=
11949e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase `echo -n x` in
11950e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev-n*)
11951e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case `echo 'x\c'` in
11952e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11953e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)   ECHO_C='\c';;
11954e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac;;
11955e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*)
11956e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ECHO_N='-n';;
11957e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
11958e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif expr a : '\(a\)' >/dev/null 2>&1 &&
11959e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11960e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_expr=expr
11961e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11962e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_expr=false
11963e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11964e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11965e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conf$$ conf$$.exe conf$$.file
11966e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -d conf$$.dir; then
11967e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conf$$.dir/conf$$.file
11968e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11969e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f conf$$.dir
11970e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  mkdir conf$$.dir 2>/dev/null
11971e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11972e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif (echo >conf$$.file) 2>/dev/null; then
11973e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if ln -s conf$$.file conf$$ 2>/dev/null; then
11974e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_ln_s='ln -s'
11975e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # ... but there are two gotchas:
11976e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11977e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11978e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # In both cases, we have to default to `cp -p'.
11979e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11980e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      as_ln_s='cp -p'
11981e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  elif ln conf$$.file conf$$ 2>/dev/null; then
11982e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_ln_s=ln
11983e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
11984e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_ln_s='cp -p'
11985e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
11986e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11987e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_ln_s='cp -p'
11988e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11989e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11990e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrmdir conf$$.dir 2>/dev/null
11991e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11992e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif mkdir -p . 2>/dev/null; then
11993e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_mkdir_p=:
11994e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
11995e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -d ./-p && rmdir ./-p
11996e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_mkdir_p=false
11997e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
11998e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
11999e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -x / >/dev/null 2>&1; then
12000e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_test_x='test -x'
12001e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
12002e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if ls -dL / >/dev/null 2>&1; then
12003e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_ls_L_option=L
12004e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
12005e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_ls_L_option=
12006e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
12007e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  as_test_x='
12008e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    eval sh -c '\''
12009e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      if test -d "$1"; then
12010e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	test -d "$1/.";
12011e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      else
12012e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case $1 in
12013e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	-*)set "./$1";;
12014e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	esac;
12015e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12016e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	???[sx]*):;;*)false;;esac;fi
12017e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    '\'' sh
12018e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  '
12019e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
12020e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_executable_p=$as_test_x
12021e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12022e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Sed expression to map a string onto a valid CPP name.
12023e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12024e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12025e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Sed expression to map a string onto a valid variable name.
12026e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12027e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12028e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12029e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexec 6>&1
12030e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12031e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Save the log message, to keep $[0] and so on meaningful, and to
12032e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# report actual input values of CONFIG_FILES etc. instead of their
12033e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# values after options handling.
12034e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_log="
12035e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevThis file was extended by libusb-compat $as_me 0.1.3, which was
12036e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevgenerated by GNU Autoconf 2.63.  Invocation command line was
12037e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12038e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  CONFIG_FILES    = $CONFIG_FILES
12039e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  CONFIG_HEADERS  = $CONFIG_HEADERS
12040e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  CONFIG_LINKS    = $CONFIG_LINKS
12041e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  CONFIG_COMMANDS = $CONFIG_COMMANDS
12042e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $ $0 $@
12043e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12044e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevon `(hostname || uname -n) 2>/dev/null | sed 1q`
12045e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"
12046e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12047e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
12048e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12049e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $ac_config_files in *"
12050e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"*) set x $ac_config_files; shift; ac_config_files=$*;;
12051e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
12052e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12053e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $ac_config_headers in *"
12054e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12055e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
12056e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12057e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12058e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12059e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Files that config.status was made for.
12060e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevconfig_files="$ac_config_files"
12061e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevconfig_headers="$ac_config_headers"
12062e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevconfig_commands="$ac_config_commands"
12063e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12064e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
12065e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12066e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12067e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cs_usage="\
12068e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev\`$as_me' instantiates files from templates according to the
12069e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcurrent configuration.
12070e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12071e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevUsage: $0 [OPTION]... [FILE]...
12072e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12073e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -h, --help       print this help, then exit
12074e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -V, --version    print version number and configuration settings, then exit
12075e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -q, --quiet, --silent
12076e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev                   do not print progress messages
12077e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -d, --debug      don't remove temporary files
12078e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      --recheck    update $as_me by reconfiguring in the same conditions
12079e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      --file=FILE[:TEMPLATE]
12080e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev                   instantiate the configuration file FILE
12081e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      --header=FILE[:TEMPLATE]
12082e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev                   instantiate the configuration header FILE
12083e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12084e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevConfiguration files:
12085e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$config_files
12086e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12087e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevConfiguration headers:
12088e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$config_headers
12089e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12090e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevConfiguration commands:
12091e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$config_commands
12092e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12093e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevReport bugs to <bug-autoconf@gnu.org>."
12094e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12095e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
12096e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12097e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cs_version="\\
12098e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlibusb-compat config.status 0.1.3
12099e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevconfigured by $0, generated by GNU Autoconf 2.63,
12100e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12101e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12102e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCopyright (C) 2008 Free Software Foundation, Inc.
12103e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevThis config.status script is free software; the Free Software Foundation
12104e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevgives unlimited permission to copy, distribute and modify it."
12105e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12106e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_pwd='$ac_pwd'
12107e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsrcdir='$srcdir'
12108e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevINSTALL='$INSTALL'
12109e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevMKDIR_P='$MKDIR_P'
12110e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAWK='$AWK'
12111e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -n "\$AWK" || AWK=awk
12112e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
12113e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12114e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12115e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The default lists apply if the user does not specify any file.
12116e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_need_defaults=:
12117e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevwhile test $# != 0
12118e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
12119e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $1 in
12120e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --*=*)
12121e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12122e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12123e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_shift=:
12124e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
12125e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
12126e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_option=$1
12127e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_optarg=$2
12128e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_shift=shift
12129e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
12130e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
12131e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12132e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_option in
12133e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Handling of the options.
12134e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12135e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cs_recheck=: ;;
12136e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12137e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$ac_cs_version"; exit ;;
12138e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --debug | --debu | --deb | --de | --d | -d )
12139e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    debug=: ;;
12140e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --file | --fil | --fi | --f )
12141e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $ac_shift
12142e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $ac_optarg in
12143e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12144e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
12145e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12146e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_need_defaults=false;;
12147e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --header | --heade | --head | --hea )
12148e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $ac_shift
12149e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $ac_optarg in
12150e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12151e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
12152e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12153e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_need_defaults=false;;
12154e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --he | --h)
12155e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Conflict between --help and --header
12156e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { $as_echo "$as_me: error: ambiguous option: $1
12157e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevTry \`$0 --help' for more information." >&2
12158e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; };;
12159e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  --help | --hel | -h )
12160e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "$ac_cs_usage"; exit ;;
12161e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12162e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12163e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_cs_silent=: ;;
12164e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12165e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # This is an error.
12166e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -*) { $as_echo "$as_me: error: unrecognized option: $1
12167e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevTry \`$0 --help' for more information." >&2
12168e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; } ;;
12169e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12170e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_config_targets="$ac_config_targets $1"
12171e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev     ac_need_defaults=false ;;
12172e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12173e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
12174e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shift
12175e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
12176e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12177e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_configure_extra_args=
12178e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12179e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif $ac_cs_silent; then
12180e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exec 6>/dev/null
12181e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_configure_extra_args="$ac_configure_extra_args --silent"
12182e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
12183e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12184e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
12185e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12186e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif \$ac_cs_recheck; then
12187e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12188e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shift
12189e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12190e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  CONFIG_SHELL='$SHELL'
12191e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  export CONFIG_SHELL
12192e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exec "\$@"
12193e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
12194e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12195e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
12196e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12197e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexec 5>>config.log
12198e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
12199e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo
12200e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12201e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev## Running $as_me. ##
12202e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ASBOX
12203e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $as_echo "$ac_log"
12204e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev} >&5
12205e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12206e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
12207e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12208e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
12209e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# INIT-COMMANDS
12210e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
12211e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12212e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12213e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12214e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The HP-UX ksh and POSIX shell print the target directory to stdout
12215e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# if CDPATH is set.
12216e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12217e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12218e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed_quote_subst='$sed_quote_subst'
12219e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdouble_quote_subst='$double_quote_subst'
12220e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdelay_variable_subst='$delay_variable_subst'
12221e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmacro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12222e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmacro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12223e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevenable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12224e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevenable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12225e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12226e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevenable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12227e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhost_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12228e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhost='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12229e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhost_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12230e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12231e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12232e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12233e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12234e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevXsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12235e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevGREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12236e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevEGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12237e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevFGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12238e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12239e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevNM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12240e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12241e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmax_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12242e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12243e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12244e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12245e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12246e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12247e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevreload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12248e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevreload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12249e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12250e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdeplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12251e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfile_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12252e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12253e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12254e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSTRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12255e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevRANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12256e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12257e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12258e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12259e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12260e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12261e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcompiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12262e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevGCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12263e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12264e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12265e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12266e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12267e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevobjdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12268e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12269e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12270e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevMAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12271e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12272e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12273e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12274e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12275e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12276e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevneed_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12277e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevDSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12278e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevNMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12279e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12280e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12281e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12282e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlibext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12283e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevshrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12284e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevextract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12285e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevarchive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12286e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevenable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12287e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexport_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12288e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevwhole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12289e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcompiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12290e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12291e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12292e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevarchive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12293e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevarchive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12294e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmodule_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12295e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmodule_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12296e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevwith_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12297e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevallow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12298e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevno_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12299e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12300e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12301e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12302e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12303e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12304e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12305e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12306e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12307e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevinherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12308e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlink_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12309e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12310e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevalways_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12311e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexport_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12312e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12313e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevinclude_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12314e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevprelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12315e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfile_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12316e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevvariables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12317e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevneed_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12318e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevneed_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12319e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevversion_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12320e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrunpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12321e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevshlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12322e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevshlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12323e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlibname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12324e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlibrary_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12325e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsoname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12326e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpostinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12327e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpostuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12328e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfinish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12329e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfinish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12330e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12331e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12332e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12333e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12334e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevenable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12335e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevenable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12336e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevenable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12337e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12338e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevstriplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12339e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12340e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLTCC='$LTCC'
12341e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLTCFLAGS='$LTCFLAGS'
12342e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcompiler='$compiler_DEFAULT'
12343e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12344e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Quote evaled strings.
12345e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor var in SED \
12346e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevGREP \
12347e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevEGREP \
12348e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevFGREP \
12349e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLD \
12350e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevNM \
12351e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLN_S \
12352e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_SP2NL \
12353e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_NL2SP \
12354e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevreload_flag \
12355e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOBJDUMP \
12356e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdeplibs_check_method \
12357e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfile_magic_cmd \
12358e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAR \
12359e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAR_FLAGS \
12360e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSTRIP \
12361e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevRANLIB \
12362e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCC \
12363e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCFLAGS \
12364e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcompiler \
12365e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_cv_sys_global_symbol_pipe \
12366e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_cv_sys_global_symbol_to_cdecl \
12367e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_cv_sys_global_symbol_to_c_name_address \
12368e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12369e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSHELL \
12370e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevECHO \
12371e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_prog_compiler_no_builtin_flag \
12372e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_prog_compiler_wl \
12373e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_prog_compiler_pic \
12374e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_prog_compiler_static \
12375e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_cv_prog_compiler_c_o \
12376e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevneed_locks \
12377e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevDSYMUTIL \
12378e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevNMEDIT \
12379e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIPO \
12380e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOTOOL \
12381e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOTOOL64 \
12382e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevshrext_cmds \
12383e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexport_dynamic_flag_spec \
12384e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevwhole_archive_flag_spec \
12385e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcompiler_needs_object \
12386e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevwith_gnu_ld \
12387e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevallow_undefined_flag \
12388e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevno_undefined_flag \
12389e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_libdir_flag_spec \
12390e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_libdir_flag_spec_ld \
12391e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_libdir_separator \
12392e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfix_srcfile_path \
12393e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexclude_expsyms \
12394e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevinclude_expsyms \
12395e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfile_list_spec \
12396e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevvariables_saved_for_relink \
12397e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlibname_spec \
12398e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlibrary_names_spec \
12399e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsoname_spec \
12400e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfinish_eval \
12401e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_striplib \
12402e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevstriplib; do
12403e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12404e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *[\\\\\\\`\\"\\\$]*)
12405e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12406e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
12407e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)
12408e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12409e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
12410e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
12411e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
12412e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12413e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Double-quote double-evaled strings.
12414e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor var in reload_cmds \
12415e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_postinstall_cmds \
12416e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_postuninstall_cmds \
12417e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_archive_cmds \
12418e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevextract_expsyms_cmds \
12419e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_archive_from_new_cmds \
12420e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_archive_from_expsyms_cmds \
12421e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevarchive_cmds \
12422e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevarchive_expsym_cmds \
12423e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmodule_cmds \
12424e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmodule_expsym_cmds \
12425e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexport_symbols_cmds \
12426e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevprelink_cmds \
12427e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpostinstall_cmds \
12428e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpostuninstall_cmds \
12429e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfinish_cmds \
12430e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsys_lib_search_path_spec \
12431e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsys_lib_dlsearch_path_spec; do
12432e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12433e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *[\\\\\\\`\\"\\\$]*)
12434e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12435e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
12436e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)
12437e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12438e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ;;
12439e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
12440e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
12441e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12442e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Fix-up fallback echo if it was mangled by the above quoting rules.
12443e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase \$lt_ECHO in
12444e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12445e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ;;
12446e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
12447e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12448e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_aux_dir='$ac_aux_dir'
12449e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevxsi_shell='$xsi_shell'
12450e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_shell_append='$lt_shell_append'
12451e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12452e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# See if we are running on zsh, and set the options which allow our
12453e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# commands through without removal of \ escapes INIT.
12454e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "\${ZSH_VERSION+set}" ; then
12455e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   setopt NO_GLOB_SUBST
12456e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
12457e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12458e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12459e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    PACKAGE='$PACKAGE'
12460e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    VERSION='$VERSION'
12461e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    TIMESTAMP='$TIMESTAMP'
12462e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    RM='$RM'
12463e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ofile='$ofile'
12464e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12465e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12466e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12467e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12468e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12469e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
12470e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12471e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12472e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12473e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Handling of arguments.
12474e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_config_target in $ac_config_targets
12475e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
12476e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_config_target in
12477e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12478e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12479e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12480e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    "libusb.pc") CONFIG_FILES="$CONFIG_FILES libusb.pc" ;;
12481e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    "libusb-config") CONFIG_FILES="$CONFIG_FILES libusb-config" ;;
12482e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12483e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    "libusb/Makefile") CONFIG_FILES="$CONFIG_FILES libusb/Makefile" ;;
12484e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
12485e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12486e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12487e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12488e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12489e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; };;
12490e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
12491e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
12492e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12493e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12494e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# If the user did not use the arguments to specify the items to instantiate,
12495e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# then the envvar interface is used.  Set only those that are not.
12496e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# We use the long form for the default assignment because of an extremely
12497e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# bizarre bug on SunOS 4.1.3.
12498e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif $ac_need_defaults; then
12499e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12500e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12501e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12502e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
12503e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12504e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Have a temporary directory for convenience.  Make it in the build tree
12505e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# simply because there is no reason against having it here, and in addition,
12506e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# creating and moving files from /tmp can sometimes cause problems.
12507e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Hook for its removal unless debugging.
12508e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Note that there is a small window in which the directory will not be cleaned:
12509e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# after its creation but before its name has been assigned to `$tmp'.
12510e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$debug ||
12511e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
12512e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  tmp=
12513e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  trap 'exit_status=$?
12514e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12515e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev' 0
12516e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  trap '{ (exit 1); exit 1; }' 1 2 13 15
12517e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
12518e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Create a (secure) tmp directory for tmp files.
12519e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12520e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
12521e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12522e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -n "$tmp" && test -d "$tmp"
12523e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}  ||
12524e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
12525e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  tmp=./conf$$-$RANDOM
12526e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  (umask 077 && mkdir "$tmp")
12527e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev} ||
12528e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
12529e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   $as_echo "$as_me: cannot create a temporary directory in ." >&2
12530e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }
12531e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
12532e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12533e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Set up the scripts for CONFIG_FILES section.
12534e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# No need to generate them if there are no CONFIG_FILES.
12535e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# This happens for instance with `./config.status config.h'.
12536e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$CONFIG_FILES"; then
12537e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12538e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12539e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cr='
12540e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev'
12541e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12542e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12543e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cs_awk_cr='\\r'
12544e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
12545e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cs_awk_cr=$ac_cr
12546e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
12547e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12548e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevecho 'BEGIN {' >"$tmp/subs1.awk" &&
12549e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
12550e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12551e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12552e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
12553e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo "cat >conf$$subs.awk <<_ACEOF" &&
12554e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12555e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  echo "_ACEOF"
12556e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev} >conf$$subs.sh ||
12557e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12558e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12559e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
12560e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12561e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_delim='%!_!# '
12562e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_last_try in false false false false false :; do
12563e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  . ./conf$$subs.sh ||
12564e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12565e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12566e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
12567e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12568e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12569e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test $ac_delim_n = $ac_delim_num; then
12570e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break
12571e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  elif $ac_last_try; then
12572e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12573e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12574e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
12575e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
12576e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12577e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
12578e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
12579e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conf$$subs.sh
12580e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12581e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12582e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12583e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
12584e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed -n '
12585e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevh
12586e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/^/S["/; s/!.*/"]=/
12587e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevp
12588e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevg
12589e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/^[^!]*!//
12590e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev:repl
12591e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevt repl
12592e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/'"$ac_delim"'$//
12593e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevt delim
12594e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev:nl
12595e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevh
12596e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/\(.\{148\}\).*/\1/
12597e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevt more1
12598e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12599e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevp
12600e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevn
12601e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevb repl
12602e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev:more1
12603e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12604e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevp
12605e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevg
12606e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/.\{148\}//
12607e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevt nl
12608e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev:delim
12609e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevh
12610e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/\(.\{148\}\).*/\1/
12611e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevt more2
12612e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/["\\]/\\&/g; s/^/"/; s/$/"/
12613e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevp
12614e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevb
12615e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev:more2
12616e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12617e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevp
12618e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevg
12619e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/.\{148\}//
12620e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevt delim
12621e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev' <conf$$subs.awk | sed '
12622e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/^[^""]/{
12623e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  N
12624e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  s/\n//
12625e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
12626e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev' >>$CONFIG_STATUS || ac_write_fail=1
12627e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrm -f conf$$subs.awk
12628e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12629e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACAWK
12630e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>"\$tmp/subs1.awk" <<_ACAWK &&
12631e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for (key in S) S_is_set[key] = 1
12632e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  FS = ""
12633e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12634e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
12635e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
12636e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  line = $ 0
12637e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  nfields = split(line, field, "@")
12638e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  substed = 0
12639e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  len = length(field[1])
12640e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for (i = 2; i < nfields; i++) {
12641e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    key = field[i]
12642e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    keylen = length(key)
12643e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if (S_is_set[key]) {
12644e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      value = S[key]
12645e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12646e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      len += length(value) + length(field[++i])
12647e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      substed = 1
12648e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    } else
12649e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      len += 1 + keylen
12650e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  }
12651e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12652e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  print line
12653e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
12654e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12655e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACAWK
12656e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
12657e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12658e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12659e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12660e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevelse
12661e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  cat
12662e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12663e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12664e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: could not setup config files machinery" >&2;}
12665e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
12666e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
12667e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12668e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# VPATH may cause trouble with some makes, so we remove $(srcdir),
12669e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12670e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# trailing colons and then remove the whole line if VPATH becomes empty
12671e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# (actually we leave an empty line to preserve line numbers).
12672e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "x$srcdir" = x.; then
12673e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12674e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/:*\$(srcdir):*/:/
12675e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/:*\${srcdir}:*/:/
12676e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/:*@srcdir@:*/:/
12677e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/^\([^=]*=[	 ]*\):*/\1/
12678e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/:*$//
12679e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/^[^=]*=[	 ]*$//
12680e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}'
12681e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
12682e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12683e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12684e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi # test -n "$CONFIG_FILES"
12685e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12686e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Set up the scripts for CONFIG_HEADERS section.
12687e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# No need to generate them if there are no CONFIG_HEADERS.
12688e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# This happens for instance with `./config.status Makefile'.
12689e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$CONFIG_HEADERS"; then
12690e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >"$tmp/defines.awk" <<\_ACAWK ||
12691e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevBEGIN {
12692e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
12693e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12694e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Transform confdefs.h into an awk script `defines.awk', embedded as
12695e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# here-document in config.status, that substitutes the proper values into
12696e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# config.h.in to produce config.h.
12697e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12698e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Create a delimiter string that does not exist in confdefs.h, to ease
12699e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# handling of long lines.
12700e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_delim='%!_!# '
12701e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_last_try in false false :; do
12702e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12703e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test -z "$ac_t"; then
12704e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    break
12705e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  elif $ac_last_try; then
12706e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12707e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12708e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
12709e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
12710e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12711e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
12712e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
12713e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12714e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# For the awk script, D is an array of macro values keyed by name,
12715e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# likewise P contains macro parameters if any.  Preserve backslash
12716e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# newline sequences.
12717e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12718e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12719e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsed -n '
12720e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/.\{148\}/&'"$ac_delim"'/g
12721e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevt rset
12722e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev:rset
12723e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12724e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevt def
12725e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevd
12726e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev:def
12727e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/\\$//
12728e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevt bsnl
12729e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/["\\]/\\&/g
12730e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12731e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevD["\1"]=" \3"/p
12732e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12733e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevd
12734e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev:bsnl
12735e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/["\\]/\\&/g
12736e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12737e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevD["\1"]=" \3\\\\\\n"\\/p
12738e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevt cont
12739e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12740e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevt cont
12741e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevd
12742e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev:cont
12743e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevn
12744e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/.\{148\}/&'"$ac_delim"'/g
12745e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevt clear
12746e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev:clear
12747e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/\\$//
12748e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevt bsnlc
12749e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/["\\]/\\&/g; s/^/"/; s/$/"/p
12750e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevd
12751e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev:bsnlc
12752e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12753e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevb cont
12754e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev' <confdefs.h | sed '
12755e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs/'"$ac_delim"'/"\\\
12756e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"/g' >>$CONFIG_STATUS || ac_write_fail=1
12757e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12758e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12759e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for (key in D) D_is_set[key] = 1
12760e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  FS = ""
12761e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
12762e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12763e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  line = \$ 0
12764e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  split(line, arg, " ")
12765e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if (arg[1] == "#") {
12766e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    defundef = arg[2]
12767e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    mac1 = arg[3]
12768e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  } else {
12769e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    defundef = substr(arg[1], 2)
12770e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    mac1 = arg[2]
12771e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  }
12772e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  split(mac1, mac2, "(") #)
12773e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  macro = mac2[1]
12774e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  prefix = substr(line, 1, index(line, defundef) - 1)
12775e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if (D_is_set[macro]) {
12776e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Preserve the white space surrounding the "#".
12777e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    print prefix "define", macro P[macro] D[macro]
12778e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    next
12779e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  } else {
12780e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Replace #undef with comments.  This is necessary, for example,
12781e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # in the case of _POSIX_SOURCE, which is predefined and required
12782e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # on some systems where configure will not decide to define it.
12783e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if (defundef == "undef") {
12784e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      print "/*", prefix defundef, macro, "*/"
12785e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      next
12786e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    }
12787e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  }
12788e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
12789e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ print }
12790e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACAWK
12791e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
12792e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12793e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12794e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12795e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
12796e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi # test -n "$CONFIG_HEADERS"
12797e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12798e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12799e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12800e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevshift
12801e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor ac_tag
12802e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
12803e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_tag in
12804e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :[FHLC]) ac_mode=$ac_tag; continue;;
12805e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
12806e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_mode$ac_tag in
12807e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :[FHL]*:*);;
12808e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
12809e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
12810e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; };;
12811e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :[FH]-) ac_tag=-:-;;
12812e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12813e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
12814e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_save_IFS=$IFS
12815e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=:
12816e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  set x $ac_tag
12817e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  IFS=$ac_save_IFS
12818e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shift
12819e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_file=$1
12820e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  shift
12821e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12822e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_mode in
12823e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :L) ac_source=$1;;
12824e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :[FH])
12825e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_file_inputs=
12826e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    for ac_f
12827e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    do
12828e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $ac_f in
12829e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      -) ac_f="$tmp/stdin";;
12830e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *) # Look for the file first in the build tree, then in the source tree
12831e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12832e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 # because $ac_f cannot contain `:'.
12833e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 test -f "$ac_f" ||
12834e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   case $ac_f in
12835e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   [\\/$]*) false;;
12836e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12837e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   esac ||
12838e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12839e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12840e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; };;
12841e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
12842e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12843e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      ac_file_inputs="$ac_file_inputs '$ac_f'"
12844e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    done
12845e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12846e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Let's still pretend it is `configure' which instantiates (i.e., don't
12847e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # use $as_me), people would be surprised to read:
12848e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    #    /* config.h.  Generated by config.status.  */
12849e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    configure_input='Generated from '`
12850e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12851e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	`' by configure.'
12852e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test x"$ac_file" != x-; then
12853e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      configure_input="$ac_file.  $configure_input"
12854e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12855e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: creating $ac_file" >&6;}
12856e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
12857e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Neutralize special characters interpreted by sed in replacement strings.
12858e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $configure_input in #(
12859e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *\&* | *\|* | *\\* )
12860e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       ac_sed_conf_input=`$as_echo "$configure_input" |
12861e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12862e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *) ac_sed_conf_input=$configure_input;;
12863e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
12864e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12865e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    case $ac_tag in
12866e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *:-:* | *:-) cat >"$tmp/stdin" \
12867e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12868e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: could not create $ac_file" >&2;}
12869e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; } ;;
12870e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    esac
12871e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
12872e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
12873e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12874e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_dir=`$as_dirname -- "$ac_file" ||
12875e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12876e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$ac_file" : 'X\(//\)[^/]' \| \
12877e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$ac_file" : 'X\(//\)$' \| \
12878e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12879e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo X"$ac_file" |
12880e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12881e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
12882e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
12883e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
12884e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\/\)[^/].*/{
12885e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
12886e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
12887e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
12888e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\/\)$/{
12889e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
12890e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
12891e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
12892e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\).*/{
12893e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
12894e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
12895e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
12896e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  s/.*/./; q'`
12897e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { as_dir="$ac_dir"
12898e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $as_dir in #(
12899e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -*) as_dir=./$as_dir;;
12900e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
12901e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12902e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_dirs=
12903e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    while :; do
12904e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $as_dir in #(
12905e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12906e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *) as_qdir=$as_dir;;
12907e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
12908e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      as_dirs="'$as_qdir' $as_dirs"
12909e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      as_dir=`$as_dirname -- "$as_dir" ||
12910e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12911e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$as_dir" : 'X\(//\)[^/]' \| \
12912e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$as_dir" : 'X\(//\)$' \| \
12913e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12914e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo X"$as_dir" |
12915e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12916e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
12917e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
12918e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
12919e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\/\)[^/].*/{
12920e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
12921e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
12922e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
12923e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\/\)$/{
12924e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
12925e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
12926e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
12927e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\).*/{
12928e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
12929e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
12930e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
12931e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  s/.*/./; q'`
12932e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      test -d "$as_dir" && break
12933e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    done
12934e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test -z "$as_dirs" || eval "mkdir $as_dirs"
12935e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12936e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12937e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }; }
12938e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_builddir=.
12939e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12940e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase "$ac_dir" in
12941e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12942e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*)
12943e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12944e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # A ".." for each directory in $ac_dir_suffix.
12945e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12946e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_top_builddir_sub in
12947e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12948e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12949e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac ;;
12950e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
12951e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_abs_top_builddir=$ac_pwd
12952e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_abs_builddir=$ac_pwd$ac_dir_suffix
12953e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# for backward compatibility:
12954e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_top_builddir=$ac_top_build_prefix
12955e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12956e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $srcdir in
12957e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  .)  # We are building in place.
12958e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_srcdir=.
12959e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_top_srcdir=$ac_top_builddir_sub
12960e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_abs_top_srcdir=$ac_pwd ;;
12961e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  [\\/]* | ?:[\\/]* )  # Absolute name.
12962e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_srcdir=$srcdir$ac_dir_suffix;
12963e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_top_srcdir=$srcdir
12964e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_abs_top_srcdir=$srcdir ;;
12965e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) # Relative name.
12966e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12967e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_top_srcdir=$ac_top_build_prefix$srcdir
12968e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12969e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
12970e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12971e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12972e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12973e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_mode in
12974e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :F)
12975e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  #
12976e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # CONFIG_FILE
12977e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  #
12978e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12979e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $INSTALL in
12980e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12981e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12982e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
12983e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_MKDIR_P=$MKDIR_P
12984e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $MKDIR_P in
12985e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  [\\/$]* | ?:[\\/]* ) ;;
12986e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12987e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
12988e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
12989e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12990e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12991e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# If the template does not know about datarootdir, expand it.
12992e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# FIXME: This hack should be removed a few years after 2.60.
12993e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_datarootdir_hack=; ac_datarootdir_seen=
12994e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
12995e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_sed_dataroot='
12996e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/datarootdir/ {
12997e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  p
12998e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  q
12999e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13000e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/@datadir@/p
13001e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/@docdir@/p
13002e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/@infodir@/p
13003e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/@localedir@/p
13004e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/@mandir@/p
13005e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev'
13006e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13007e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*datarootdir*) ac_datarootdir_seen=yes;;
13008e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13009e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13010e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13011e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
13012e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13013e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_datarootdir_hack='
13014e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  s&@datadir@&$datadir&g
13015e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  s&@docdir@&$docdir&g
13016e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  s&@infodir@&$infodir&g
13017e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  s&@localedir@&$localedir&g
13018e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  s&@mandir@&$mandir&g
13019e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    s&\\\${datarootdir}&$datarootdir&g' ;;
13020e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
13021e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
13022e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13023e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Neutralize VPATH when `$srcdir' = `.'.
13024e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Shell code in configure.ac might set extrasub.
13025e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# FIXME: do we really want to maintain this feature?
13026e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13027e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_sed_extra="$ac_vpsub
13028e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$extrasub
13029e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
13030e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13031e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev:t
13032e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13033e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs|@configure_input@|$ac_sed_conf_input|;t t
13034e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs&@top_builddir@&$ac_top_builddir_sub&;t t
13035e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs&@top_build_prefix@&$ac_top_build_prefix&;t t
13036e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs&@srcdir@&$ac_srcdir&;t t
13037e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs&@abs_srcdir@&$ac_abs_srcdir&;t t
13038e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs&@top_srcdir@&$ac_top_srcdir&;t t
13039e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13040e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs&@builddir@&$ac_builddir&;t t
13041e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs&@abs_builddir@&$ac_abs_builddir&;t t
13042e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13043e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs&@INSTALL@&$ac_INSTALL&;t t
13044e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevs&@MKDIR_P@&$ac_MKDIR_P&;t t
13045e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$ac_datarootdir_hack
13046e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev"
13047e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulisheveval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13048e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13049e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: could not create $ac_file" >&2;}
13050e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
13051e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13052e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13053e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13054e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13055e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13056e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevwhich seems to be undefined.  Please make sure it is defined." >&5
13057e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13058e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevwhich seems to be undefined.  Please make sure it is defined." >&2;}
13059e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13060e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  rm -f "$tmp/stdin"
13061e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_file in
13062e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -) cat "$tmp/out" && rm -f "$tmp/out";;
13063e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13064e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac \
13065e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13066e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: could not create $ac_file" >&2;}
13067e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
13068e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev ;;
13069e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :H)
13070e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  #
13071e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # CONFIG_HEADER
13072e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  #
13073e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test x"$ac_file" != x-; then
13074e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    {
13075e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      $as_echo "/* $configure_input  */" \
13076e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13077e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    } >"$tmp/config.h" \
13078e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13079e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: could not create $ac_file" >&2;}
13080e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
13081e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13082e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13083e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: $ac_file is unchanged" >&6;}
13084e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    else
13085e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      rm -f "$ac_file"
13086e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      mv "$tmp/config.h" "$ac_file" \
13087e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13088e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: could not create $ac_file" >&2;}
13089e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
13090e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
13091e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
13092e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $as_echo "/* $configure_input  */" \
13093e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13094e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13095e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: could not create -" >&2;}
13096e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
13097e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
13098e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Compute "$ac_file"'s index in $config_headers.
13099e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_am_arg="$ac_file"
13100e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_am_stamp_count=1
13101e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor _am_header in $config_headers :; do
13102e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $_am_header in
13103e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $_am_arg | $_am_arg:* )
13104e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      break ;;
13105e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    * )
13106e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13107e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
13108e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
13109e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13110e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13111e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13112e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$_am_arg" : 'X\(//\)$' \| \
13113e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13114e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo X"$_am_arg" |
13115e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13116e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
13117e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
13118e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
13119e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\/\)[^/].*/{
13120e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
13121e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
13122e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
13123e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\/\)$/{
13124e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
13125e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
13126e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
13127e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\).*/{
13128e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
13129e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
13130e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
13131e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  s/.*/./; q'`/stamp-h$_am_stamp_count
13132e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev ;;
13133e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13134e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13135e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: executing $ac_file commands" >&6;}
13136e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev ;;
13137e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
13138e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13139e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13140e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $ac_file$ac_mode in
13141e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
13142e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# are listed without --file.  Let's play safe and only enable the eval
13143e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# if we detect the quoting.
13144e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $CONFIG_FILES in
13145e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*\'*) eval set x "$CONFIG_FILES" ;;
13146e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev*)   set x $CONFIG_FILES ;;
13147e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
13148e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevshift
13149e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfor mf
13150e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdo
13151e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Strip MF so we end up with the name of the file.
13152e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  mf=`echo "$mf" | sed -e 's/:.*$//'`
13153e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Check whether this is an Automake generated Makefile or not.
13154e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # We used to match only the files named `Makefile.in', but
13155e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # some people rename them; so instead we look at the file content.
13156e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Grep'ing the first line is not enough: some people post-process
13157e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # each Makefile.in and add a new line on top of each file to say so.
13158e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Grep'ing the whole file is not good either: AIX grep has a line
13159e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # limit of 2048, but all sed's we know have understand at least 4000.
13160e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13161e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    dirpart=`$as_dirname -- "$mf" ||
13162e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13163e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$mf" : 'X\(//\)[^/]' \| \
13164e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$mf" : 'X\(//\)$' \| \
13165e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13166e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo X"$mf" |
13167e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13168e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
13169e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
13170e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
13171e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\/\)[^/].*/{
13172e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
13173e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
13174e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
13175e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\/\)$/{
13176e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
13177e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
13178e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
13179e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\).*/{
13180e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
13181e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
13182e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
13183e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  s/.*/./; q'`
13184e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
13185e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    continue
13186e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
13187e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract the definition of DEPDIR, am__include, and am__quote
13188e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # from the Makefile without running `make'.
13189e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13190e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "$DEPDIR" && continue
13191e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  am__include=`sed -n 's/^am__include = //p' < "$mf"`
13192e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -z "am__include" && continue
13193e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13194e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # When using ansi2knr, U may be empty or an underscore; expand it
13195e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  U=`sed -n 's/^U = //p' < "$mf"`
13196e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Find all dependency output files, they are included files with
13197e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # $(DEPDIR) in their names.  We invoke sed twice because it is the
13198e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # simplest approach to changing $(DEPDIR) to its actual value in the
13199e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # expansion.
13200e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  for file in `sed -n "
13201e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13202e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13203e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # Make sure the directory exists.
13204e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test -f "$dirpart/$file" && continue
13205e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fdir=`$as_dirname -- "$file" ||
13206e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13207e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$file" : 'X\(//\)[^/]' \| \
13208e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$file" : 'X\(//\)$' \| \
13209e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13210e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo X"$file" |
13211e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13212e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
13213e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
13214e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
13215e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\/\)[^/].*/{
13216e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
13217e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
13218e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
13219e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\/\)$/{
13220e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
13221e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
13222e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
13223e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\).*/{
13224e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
13225e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
13226e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
13227e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  s/.*/./; q'`
13228e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    { as_dir=$dirpart/$fdir
13229e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $as_dir in #(
13230e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  -*) as_dir=./$as_dir;;
13231e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
13232e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13233e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    as_dirs=
13234e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    while :; do
13235e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      case $as_dir in #(
13236e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13237e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      *) as_qdir=$as_dir;;
13238e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      esac
13239e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      as_dirs="'$as_qdir' $as_dirs"
13240e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      as_dir=`$as_dirname -- "$as_dir" ||
13241e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13242e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$as_dir" : 'X\(//\)[^/]' \| \
13243e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$as_dir" : 'X\(//\)$' \| \
13244e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13245e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo X"$as_dir" |
13246e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13247e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
13248e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
13249e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
13250e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\/\)[^/].*/{
13251e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
13252e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
13253e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
13254e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\/\)$/{
13255e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
13256e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
13257e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
13258e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  /^X\(\/\).*/{
13259e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    s//\1/
13260e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	    q
13261e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  }
13262e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev	  s/.*/./; q'`
13263e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      test -d "$as_dir" && break
13264e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    done
13265e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    test -z "$as_dirs" || eval "mkdir $as_dirs"
13266e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13267e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13268e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }; }
13269e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # echo "creating $dirpart/$file"
13270e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    echo '# dummy' > "$dirpart/$file"
13271e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  done
13272e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone
13273e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev ;;
13274e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    "libtool":C)
13275e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13276e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # See if we are running on zsh, and set the options which allow our
13277e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    # commands through without removal of \ escapes.
13278e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    if test -n "${ZSH_VERSION+set}" ; then
13279e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev      setopt NO_GLOB_SUBST
13280e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    fi
13281e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13282e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cfgfile="${ofile}T"
13283e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13284e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    $RM "$cfgfile"
13285e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13286e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cat <<_LT_EOF >> "$cfgfile"
13287e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#! $SHELL
13288e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13289e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13290e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13291e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13292e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13293e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
13294e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13295e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#                 2006, 2007, 2008 Free Software Foundation, Inc.
13296e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#   Written by Gordon Matzigkeit, 1996
13297e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
13298e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#   This file is part of GNU Libtool.
13299e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
13300e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# GNU Libtool is free software; you can redistribute it and/or
13301e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# modify it under the terms of the GNU General Public License as
13302e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# published by the Free Software Foundation; either version 2 of
13303e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# the License, or (at your option) any later version.
13304e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
13305e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# As a special exception to the GNU General Public License,
13306e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# if you distribute this file as part of a program or library that
13307e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# is built using GNU Libtool, you may include this file under the
13308e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# same distribution terms that you use for the rest of that program.
13309e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
13310e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# GNU Libtool is distributed in the hope that it will be useful,
13311e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# but WITHOUT ANY WARRANTY; without even the implied warranty of
13312e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13313e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# GNU General Public License for more details.
13314e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#
13315e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# You should have received a copy of the GNU General Public License
13316e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# along with GNU Libtool; see the file COPYING.  If not, a copy
13317e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13318e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# obtained by writing to the Free Software Foundation, Inc.,
13319e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13320e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13321e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13322e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The names of the tagged configurations supported by this script.
13323e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevavailable_tags=""
13324e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13325e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# ### BEGIN LIBTOOL CONFIG
13326e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13327e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Which release of libtool.m4 was used?
13328e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmacro_version=$macro_version
13329e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmacro_revision=$macro_revision
13330e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13331e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Whether or not to build shared libraries.
13332e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild_libtool_libs=$enable_shared
13333e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13334e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Whether or not to build static libraries.
13335e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild_old_libs=$enable_static
13336e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13337e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# What type of objects to build.
13338e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpic_mode=$pic_mode
13339e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13340e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Whether or not to optimize for fast installation.
13341e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfast_install=$enable_fast_install
13342e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13343e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The host system.
13344e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhost_alias=$host_alias
13345e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhost=$host
13346e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhost_os=$host_os
13347e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13348e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The build system.
13349e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild_alias=$build_alias
13350e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild=$build
13351e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild_os=$build_os
13352e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13353e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# A sed program that does not truncate output.
13354e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSED=$lt_SED
13355e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13356e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13357e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevXsed="\$SED -e 1s/^X//"
13358e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13359e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# A grep program that handles long lines.
13360e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevGREP=$lt_GREP
13361e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13362e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# An ERE matcher.
13363e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevEGREP=$lt_EGREP
13364e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13365e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# A literal string matcher.
13366e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevFGREP=$lt_FGREP
13367e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13368e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# A BSD- or MS-compatible name lister.
13369e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevNM=$lt_NM
13370e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13371e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Whether we need soft or hard links.
13372e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLN_S=$lt_LN_S
13373e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13374e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# What is the maximum length of a command?
13375e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmax_cmd_len=$max_cmd_len
13376e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13377e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Object file suffix (normally "o").
13378e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevobjext=$ac_objext
13379e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13380e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Executable file suffix (normally "").
13381e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexeext=$exeext
13382e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13383e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# whether the shell understands "unset".
13384e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlt_unset=$lt_unset
13385e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13386e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# turn spaces into newlines.
13387e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSP2NL=$lt_lt_SP2NL
13388e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13389e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# turn newlines into spaces.
13390e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevNL2SP=$lt_lt_NL2SP
13391e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13392e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# How to create reloadable object files.
13393e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevreload_flag=$lt_reload_flag
13394e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevreload_cmds=$lt_reload_cmds
13395e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13396e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# An object symbol dumper.
13397e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOBJDUMP=$lt_OBJDUMP
13398e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13399e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Method to check whether dependent libraries are shared objects.
13400e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdeplibs_check_method=$lt_deplibs_check_method
13401e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13402e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Command to use when deplibs_check_method == "file_magic".
13403e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfile_magic_cmd=$lt_file_magic_cmd
13404e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13405e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The archiver.
13406e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAR=$lt_AR
13407e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevAR_FLAGS=$lt_AR_FLAGS
13408e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13409e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# A symbol stripping program.
13410e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSTRIP=$lt_STRIP
13411e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13412e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Commands used to install an old-style archive.
13413e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevRANLIB=$lt_RANLIB
13414e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_postinstall_cmds=$lt_old_postinstall_cmds
13415e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_postuninstall_cmds=$lt_old_postuninstall_cmds
13416e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13417e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# A C compiler.
13418e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLTCC=$lt_CC
13419e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13420e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# LTCC compiler flags.
13421e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLTCFLAGS=$lt_CFLAGS
13422e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13423e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Take the output of nm and produce a listing of raw symbols and C names.
13424e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13425e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13426e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Transform the output of nm in a proper C declaration.
13427e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13428e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13429e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Transform the output of nm in a C name address pair.
13430e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13431e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13432e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Transform the output of nm in a C name address pair when lib prefix is needed.
13433e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13434e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13435e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The name of the directory that contains temporary libtool files.
13436e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevobjdir=$objdir
13437e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13438e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Shell to use when invoking shell scripts.
13439e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevSHELL=$lt_SHELL
13440e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13441e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# An echo program that does not interpret backslashes.
13442e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevECHO=$lt_ECHO
13443e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13444e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Used to examine libraries when file_magic_cmd begins with "file".
13445e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevMAGIC_CMD=$MAGIC_CMD
13446e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13447e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Must we lock files when doing compilation?
13448e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevneed_locks=$lt_need_locks
13449e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13450e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13451e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevDSYMUTIL=$lt_DSYMUTIL
13452e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13453e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Tool to change global to local symbols on Mac OS X.
13454e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevNMEDIT=$lt_NMEDIT
13455e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13456e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Tool to manipulate fat objects and archives on Mac OS X.
13457e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLIPO=$lt_LIPO
13458e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13459e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13460e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOTOOL=$lt_OTOOL
13461e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13462e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13463e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevOTOOL64=$lt_OTOOL64
13464e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13465e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Old archive suffix (normally "a").
13466e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlibext=$libext
13467e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13468e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Shared library suffix (normally ".so").
13469e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevshrext_cmds=$lt_shrext_cmds
13470e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13471e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The commands to extract the exported symbol list from a shared archive.
13472e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevextract_expsyms_cmds=$lt_extract_expsyms_cmds
13473e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13474e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Variables whose values should be saved in libtool wrapper scripts and
13475e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# restored at link time.
13476e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevvariables_saved_for_relink=$lt_variables_saved_for_relink
13477e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13478e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Do we need the "lib" prefix for modules?
13479e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevneed_lib_prefix=$need_lib_prefix
13480e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13481e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Do we need a version for libraries?
13482e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevneed_version=$need_version
13483e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13484e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Library versioning type.
13485e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevversion_type=$version_type
13486e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13487e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Shared library runtime path variable.
13488e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevrunpath_var=$runpath_var
13489e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13490e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Shared library path variable.
13491e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevshlibpath_var=$shlibpath_var
13492e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13493e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Is shlibpath searched before the hard-coded library search path?
13494e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevshlibpath_overrides_runpath=$shlibpath_overrides_runpath
13495e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13496e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Format of library name prefix.
13497e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlibname_spec=$lt_libname_spec
13498e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13499e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# List of archive names.  First name is the real one, the rest are links.
13500e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The last name is the one that the linker finds with -lNAME
13501e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlibrary_names_spec=$lt_library_names_spec
13502e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13503e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The coded name of the library, if different from the real name.
13504e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsoname_spec=$lt_soname_spec
13505e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13506e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Command to use after installation of a shared archive.
13507e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpostinstall_cmds=$lt_postinstall_cmds
13508e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13509e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Command to use after uninstallation of a shared archive.
13510e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpostuninstall_cmds=$lt_postuninstall_cmds
13511e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13512e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Commands used to finish a libtool library installation in a directory.
13513e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfinish_cmds=$lt_finish_cmds
13514e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13515e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# As "finish_cmds", except a single script fragment to be evaled but
13516e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# not shown.
13517e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfinish_eval=$lt_finish_eval
13518e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13519e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Whether we should hardcode library paths into libraries.
13520e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_into_libs=$hardcode_into_libs
13521e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13522e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Compile-time system search path for libraries.
13523e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13524e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13525e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Run-time system search path for libraries.
13526e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13527e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13528e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Whether dlopen is supported.
13529e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdlopen_support=$enable_dlopen
13530e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13531e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Whether dlopen of programs is supported.
13532e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdlopen_self=$enable_dlopen_self
13533e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13534e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Whether dlopen of statically linked programs is supported.
13535e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdlopen_self_static=$enable_dlopen_self_static
13536e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13537e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Commands to strip libraries.
13538e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_striplib=$lt_old_striplib
13539e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevstriplib=$lt_striplib
13540e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13541e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13542e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The linker used to build libraries.
13543e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevLD=$lt_LD
13544e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13545e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Commands used to build an old-style archive.
13546e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_archive_cmds=$lt_old_archive_cmds
13547e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13548e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# A language specific compiler.
13549e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor GoulishevCC=$lt_compiler
13550e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13551e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Is the compiler the GNU compiler?
13552e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevwith_gcc=$GCC
13553e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13554e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Compiler flag to turn off builtin functions.
13555e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13556e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13557e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# How to pass a linker flag through the compiler.
13558e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevwl=$lt_lt_prog_compiler_wl
13559e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13560e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Additional compiler flags for building library objects.
13561e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevpic_flag=$lt_lt_prog_compiler_pic
13562e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13563e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Compiler flag to prevent dynamic linking.
13564e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlink_static_flag=$lt_lt_prog_compiler_static
13565e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13566e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Does compiler simultaneously support -c and -o options?
13567e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcompiler_c_o=$lt_lt_cv_prog_compiler_c_o
13568e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13569e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Whether or not to add -lc for building shared libraries.
13570e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevbuild_libtool_need_lc=$archive_cmds_need_lc
13571e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13572e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Whether or not to disallow shared libs when runtime libs are static.
13573e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13574e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13575e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Compiler flag to allow reflexive dlopens.
13576e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13577e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13578e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Compiler flag to generate shared objects directly from archives.
13579e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevwhole_archive_flag_spec=$lt_whole_archive_flag_spec
13580e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13581e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Whether the compiler copes with passing no objects directly.
13582e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcompiler_needs_object=$lt_compiler_needs_object
13583e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13584e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Create an old-style archive from a shared archive.
13585e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13586e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13587e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Create a temporary old-style archive to link instead of a shared archive.
13588e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13589e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13590e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Commands used to build a shared archive.
13591e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevarchive_cmds=$lt_archive_cmds
13592e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevarchive_expsym_cmds=$lt_archive_expsym_cmds
13593e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13594e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Commands used to build a loadable module if different from building
13595e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# a shared archive.
13596e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmodule_cmds=$lt_module_cmds
13597e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmodule_expsym_cmds=$lt_module_expsym_cmds
13598e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13599e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Whether we are building with GNU ld or not.
13600e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevwith_gnu_ld=$lt_with_gnu_ld
13601e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13602e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Flag that allows shared libraries with undefined symbols to be built.
13603e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevallow_undefined_flag=$lt_allow_undefined_flag
13604e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13605e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Flag that enforces no undefined symbols.
13606e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevno_undefined_flag=$lt_no_undefined_flag
13607e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13608e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Flag to hardcode \$libdir into a binary during linking.
13609e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# This must work even if \$libdir does not exist
13610e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13611e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13612e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# If ld is used when linking, flag to hardcode \$libdir into a binary
13613e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# during linking.  This must work even if \$libdir does not exist.
13614e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13615e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13616e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Whether we need a single "-rpath" flag with a separated argument.
13617e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_libdir_separator=$lt_hardcode_libdir_separator
13618e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13619e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13620e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# DIR into the resulting binary.
13621e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_direct=$hardcode_direct
13622e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13623e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13624e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# DIR into the resulting binary and the resulting library dependency is
13625e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13626e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# library is relocated.
13627e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_direct_absolute=$hardcode_direct_absolute
13628e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13629e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13630e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# into the resulting binary.
13631e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_minus_L=$hardcode_minus_L
13632e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13633e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13634e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# into the resulting binary.
13635e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_shlibpath_var=$hardcode_shlibpath_var
13636e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13637e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Set to "yes" if building a shared library automatically hardcodes DIR
13638e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# into the library and all subsequent libraries and executables linked
13639e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# against it.
13640e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_automatic=$hardcode_automatic
13641e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13642e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Set to yes if linker adds runtime paths of dependent libraries
13643e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# to runtime path list.
13644e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevinherit_rpath=$inherit_rpath
13645e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13646e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Whether libtool must link a program against all its dependency libraries.
13647e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevlink_all_deplibs=$link_all_deplibs
13648e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13649e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Fix the shell variable \$srcfile for the compiler.
13650e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfix_srcfile_path=$lt_fix_srcfile_path
13651e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13652e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Set to "yes" if exported symbols are required.
13653e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevalways_export_symbols=$always_export_symbols
13654e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13655e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# The commands to list exported symbols.
13656e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexport_symbols_cmds=$lt_export_symbols_cmds
13657e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13658e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Symbols that should not be listed in the preloaded symbols.
13659e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevexclude_expsyms=$lt_exclude_expsyms
13660e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13661e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Symbols that must always be exported.
13662e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevinclude_expsyms=$lt_include_expsyms
13663e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13664e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Commands necessary for linking programs (against libraries) with templates.
13665e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevprelink_cmds=$lt_prelink_cmds
13666e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13667e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Specify filename containing input files.
13668e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfile_list_spec=$lt_file_list_spec
13669e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13670e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# How to hardcode a shared library path into an executable.
13671e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevhardcode_action=$hardcode_action
13672e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13673e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# ### END LIBTOOL CONFIG
13674e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13675e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
13676e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13677e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $host_os in
13678e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  aix3*)
13679e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cat <<\_LT_EOF >> "$cfgfile"
13680e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# AIX sometimes has problems with the GCC collect2 program.  For some
13681e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# reason, if we set the COLLECT_NAMES environment variable, the problems
13682e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# vanish in a puff of smoke.
13683e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "X${COLLECT_NAMES+set}" != Xset; then
13684e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  COLLECT_NAMES=
13685e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  export COLLECT_NAMES
13686e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
13687e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
13688e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
13689e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
13690e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13691e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13692e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevltmain="$ac_aux_dir/ltmain.sh"
13693e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13694e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13695e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # We use sed instead of cat because bash on DJGPP gets confused if
13696e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13697e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # text mode, it properly converts lines to CR/LF.  This bash problem
13698e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # is reportedly fixed, but why not run on old versions too?
13699e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13700e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    || (rm -f "$cfgfile"; exit 1)
13701e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13702e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case $xsi_shell in
13703e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  yes)
13704e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cat << \_LT_EOF >> "$cfgfile"
13705e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13706e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_dirname file append nondir_replacement
13707e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13708e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# otherwise set result to NONDIR_REPLACEMENT.
13709e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_dirname ()
13710e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13711e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case ${1} in
13712e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    */*) func_dirname_result="${1%/*}${2}" ;;
13713e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *  ) func_dirname_result="${3}" ;;
13714e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
13715e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13716e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13717e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_basename file
13718e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_basename ()
13719e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13720e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_basename_result="${1##*/}"
13721e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13722e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13723e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_dirname_and_basename file append nondir_replacement
13724e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# perform func_basename and func_dirname in a single function
13725e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# call:
13726e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#   dirname:  Compute the dirname of FILE.  If nonempty,
13727e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#             add APPEND to the result, otherwise set result
13728e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#             to NONDIR_REPLACEMENT.
13729e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#             value returned in "$func_dirname_result"
13730e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#   basename: Compute filename of FILE.
13731e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev#             value retuned in "$func_basename_result"
13732e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Implementation must be kept synchronized with func_dirname
13733e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# and func_basename. For efficiency, we do not delegate to
13734e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# those functions but instead duplicate the functionality here.
13735e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_dirname_and_basename ()
13736e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13737e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case ${1} in
13738e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    */*) func_dirname_result="${1%/*}${2}" ;;
13739e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *  ) func_dirname_result="${3}" ;;
13740e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
13741e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_basename_result="${1##*/}"
13742e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13743e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13744e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_stripname prefix suffix name
13745e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# strip PREFIX and SUFFIX off of NAME.
13746e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# PREFIX and SUFFIX must not contain globbing or regex special
13747e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# characters, hashes, percent signs, but SUFFIX may contain a leading
13748e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# dot (in which case that matches only a dot).
13749e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_stripname ()
13750e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13751e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13752e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # positional parameters, so assign one to ordinary parameter first.
13753e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_stripname_result=${3}
13754e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_stripname_result=${func_stripname_result#"${1}"}
13755e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_stripname_result=${func_stripname_result%"${2}"}
13756e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13757e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13758e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_opt_split
13759e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_opt_split ()
13760e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13761e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_opt_split_opt=${1%%=*}
13762e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_opt_split_arg=${1#*=}
13763e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13764e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13765e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_lo2o object
13766e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_lo2o ()
13767e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13768e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case ${1} in
13769e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13770e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)    func_lo2o_result=${1} ;;
13771e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
13772e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13773e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13774e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_xform libobj-or-source
13775e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_xform ()
13776e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13777e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_xform_result=${1%.*}.lo
13778e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13779e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13780e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_arith arithmetic-term...
13781e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_arith ()
13782e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13783e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_arith_result=$(( $* ))
13784e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13785e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13786e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_len string
13787e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# STRING may not start with a hyphen.
13788e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_len ()
13789e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13790e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_len_result=${#1}
13791e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13792e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13793e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
13794e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
13795e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *) # Bourne compatible functions.
13796e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cat << \_LT_EOF >> "$cfgfile"
13797e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13798e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_dirname file append nondir_replacement
13799e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13800e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# otherwise set result to NONDIR_REPLACEMENT.
13801e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_dirname ()
13802e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13803e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Extract subdirectory from the argument.
13804e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13805e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  if test "X$func_dirname_result" = "X${1}"; then
13806e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    func_dirname_result="${3}"
13807e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  else
13808e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    func_dirname_result="$func_dirname_result${2}"
13809e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  fi
13810e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13811e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13812e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_basename file
13813e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_basename ()
13814e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13815e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13816e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13817e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13818e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13819e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_stripname prefix suffix name
13820e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# strip PREFIX and SUFFIX off of NAME.
13821e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# PREFIX and SUFFIX must not contain globbing or regex special
13822e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# characters, hashes, percent signs, but SUFFIX may contain a leading
13823e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# dot (in which case that matches only a dot).
13824e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_strip_suffix prefix name
13825e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_stripname ()
13826e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13827e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  case ${2} in
13828e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    .*) func_stripname_result=`$ECHO "X${3}" \
13829e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13830e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    *)  func_stripname_result=`$ECHO "X${3}" \
13831e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13832e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
13833e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13834e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13835e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# sed scripts:
13836e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmy_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13837e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevmy_sed_long_arg='1s/^-[^=]*=//'
13838e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13839e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_opt_split
13840e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_opt_split ()
13841e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13842e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13843e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13844e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13845e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13846e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_lo2o object
13847e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_lo2o ()
13848e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13849e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13850e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13851e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13852e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_xform libobj-or-source
13853e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_xform ()
13854e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13855e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13856e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13857e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13858e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_arith arithmetic-term...
13859e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_arith ()
13860e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13861e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_arith_result=`expr "$@"`
13862e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13863e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13864e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_len string
13865e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# STRING may not start with a hyphen.
13866e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_len ()
13867e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13868e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13869e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13870e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13871e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
13872e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevesac
13873e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13874e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevcase $lt_shell_append in
13875e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  yes)
13876e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cat << \_LT_EOF >> "$cfgfile"
13877e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13878e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_append var value
13879e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Append VALUE to the end of shell variable VAR.
13880e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_append ()
13881e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13882e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  eval "$1+=\$2"
13883e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13884e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
13885e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
13886e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  *)
13887e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    cat << \_LT_EOF >> "$cfgfile"
13888e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13889e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# func_append var value
13890e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Append VALUE to the end of shell variable VAR.
13891e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfunc_append ()
13892e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{
13893e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  eval "$1=\$$1\$2"
13894e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev}
13895e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13896e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_LT_EOF
13897e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ;;
13898e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
13899e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13900e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13901e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13902e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    || (rm -f "$cfgfile"; exit 1)
13903e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13904e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  mv -f "$cfgfile" "$ofile" ||
13905e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13906e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  chmod +x "$ofile"
13907e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13908e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev ;;
13909e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    "default":C) chmod +x libusb-config ;;
13910e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13911e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  esac
13912e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevdone # for ac_tag
13913e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13914e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13915e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev{ (exit 0); exit 0; }
13916e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev_ACEOF
13917e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevchmod +x $CONFIG_STATUS
13918e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevac_clean_files=$ac_clean_files_save
13919e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13920e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevtest $ac_write_fail = 0 ||
13921e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13922e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13923e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev   { (exit 1); exit 1; }; }
13924e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13925e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13926e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# configure is writing to config.log, and then calls config.status.
13927e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# config.status does its own redirection, appending to config.log.
13928e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# Unfortunately, on DOS this fails, as config.log is still kept open
13929e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# by configure, so config.status won't be able to write to it; its
13930e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# output is simply discarded.  So we exec the FD to /dev/null,
13931e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# effectively closing config.log, so it can be properly (re)opened and
13932e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# appended to by config.status.  When coming back to configure, we
13933e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev# need to make the FD available again.
13934e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test "$no_create" != yes; then
13935e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_cs_success=:
13936e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  ac_config_status_args=
13937e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  test "$silent" = yes &&
13938e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev    ac_config_status_args="$ac_config_status_args --quiet"
13939e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exec 5>/dev/null
13940e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13941e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  exec 5>>config.log
13942e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13943e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  # would make configure fail if this is the last instruction.
13944e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  $ac_cs_success || { (exit 1); exit 1; }
13945e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
13946e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13947e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13948e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13949e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishevfi
13950e9a683104ef3f40d38459c0ca62a2d46f20b0714Yavor Goulishev
13951
13952