adamc@378
|
1 #! /bin/sh
|
adamc@378
|
2 # Guess values for system-dependent variables and create Makefiles.
|
adam@1561
|
3 # Generated by GNU Autoconf 2.68 for urweb 20110917.
|
adamc@1095
|
4 #
|
adamc@378
|
5 #
|
adamc@378
|
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
adam@1315
|
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
|
adam@1315
|
8 # Foundation, Inc.
|
adamc@1095
|
9 #
|
adamc@1095
|
10 #
|
adamc@378
|
11 # This configure script is free software; the Free Software Foundation
|
adamc@378
|
12 # gives unlimited permission to copy, distribute and modify it.
|
adamc@1095
|
13 ## -------------------- ##
|
adamc@1095
|
14 ## M4sh Initialization. ##
|
adamc@1095
|
15 ## -------------------- ##
|
adamc@378
|
16
|
adamc@378
|
17 # Be more Bourne compatible
|
adamc@378
|
18 DUALCASE=1; export DUALCASE # for MKS sh
|
adamc@1095
|
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
adamc@378
|
20 emulate sh
|
adamc@378
|
21 NULLCMD=:
|
adamc@1095
|
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
adamc@378
|
23 # is contrary to our usage. Disable this feature.
|
adamc@378
|
24 alias -g '${1+"$@"}'='"$@"'
|
adamc@378
|
25 setopt NO_GLOB_SUBST
|
adamc@378
|
26 else
|
adamc@1095
|
27 case `(set -o) 2>/dev/null` in #(
|
adamc@1095
|
28 *posix*) :
|
adamc@1095
|
29 set -o posix ;; #(
|
adamc@1095
|
30 *) :
|
adamc@1095
|
31 ;;
|
adamc@378
|
32 esac
|
adamc@378
|
33 fi
|
adamc@378
|
34
|
adamc@378
|
35
|
adamc@1095
|
36 as_nl='
|
adamc@1095
|
37 '
|
adamc@1095
|
38 export as_nl
|
adamc@1095
|
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
adamc@1095
|
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
adamc@1095
|
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
adamc@1095
|
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
adamc@1095
|
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
|
adamc@1095
|
44 # but without wasting forks for bash or zsh.
|
adamc@1095
|
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
|
adamc@1095
|
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
adamc@1095
|
47 as_echo='print -r --'
|
adamc@1095
|
48 as_echo_n='print -rn --'
|
adamc@1095
|
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
adamc@1095
|
50 as_echo='printf %s\n'
|
adamc@1095
|
51 as_echo_n='printf %s'
|
adamc@1095
|
52 else
|
adamc@1095
|
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
adamc@1095
|
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
adamc@1095
|
55 as_echo_n='/usr/ucb/echo -n'
|
adamc@1095
|
56 else
|
adamc@1095
|
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
adamc@1095
|
58 as_echo_n_body='eval
|
adamc@1095
|
59 arg=$1;
|
adamc@1095
|
60 case $arg in #(
|
adamc@1095
|
61 *"$as_nl"*)
|
adamc@1095
|
62 expr "X$arg" : "X\\(.*\\)$as_nl";
|
adamc@1095
|
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
adamc@1095
|
64 esac;
|
adamc@1095
|
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
adamc@1095
|
66 '
|
adamc@1095
|
67 export as_echo_n_body
|
adamc@1095
|
68 as_echo_n='sh -c $as_echo_n_body as_echo'
|
adamc@1095
|
69 fi
|
adamc@1095
|
70 export as_echo_body
|
adamc@1095
|
71 as_echo='sh -c $as_echo_body as_echo'
|
adamc@1095
|
72 fi
|
adamc@378
|
73
|
adamc@378
|
74 # The user is always right.
|
adamc@378
|
75 if test "${PATH_SEPARATOR+set}" != set; then
|
adamc@1095
|
76 PATH_SEPARATOR=:
|
adamc@1095
|
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
adamc@1095
|
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
adamc@1095
|
79 PATH_SEPARATOR=';'
|
adamc@1095
|
80 }
|
adamc@378
|
81 fi
|
adamc@378
|
82
|
adamc@378
|
83
|
adamc@378
|
84 # IFS
|
adamc@378
|
85 # We need space, tab and new line, in precisely that order. Quoting is
|
adamc@378
|
86 # there to prevent editors from complaining about space-tab.
|
adamc@378
|
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
adamc@378
|
88 # splitting by setting IFS to empty value.)
|
adamc@378
|
89 IFS=" "" $as_nl"
|
adamc@378
|
90
|
adamc@378
|
91 # Find who we are. Look in the path if we contain no directory separator.
|
adam@1459
|
92 as_myself=
|
adamc@1095
|
93 case $0 in #((
|
adamc@378
|
94 *[\\/]* ) as_myself=$0 ;;
|
adamc@378
|
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@378
|
96 for as_dir in $PATH
|
adamc@378
|
97 do
|
adamc@378
|
98 IFS=$as_save_IFS
|
adamc@378
|
99 test -z "$as_dir" && as_dir=.
|
adamc@1095
|
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
adamc@1095
|
101 done
|
adamc@378
|
102 IFS=$as_save_IFS
|
adamc@378
|
103
|
adamc@378
|
104 ;;
|
adamc@378
|
105 esac
|
adamc@378
|
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
|
adamc@378
|
107 # in which case we are not to be found in the path.
|
adamc@378
|
108 if test "x$as_myself" = x; then
|
adamc@378
|
109 as_myself=$0
|
adamc@378
|
110 fi
|
adamc@378
|
111 if test ! -f "$as_myself"; then
|
adamc@1095
|
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
adamc@1095
|
113 exit 1
|
adamc@378
|
114 fi
|
adamc@378
|
115
|
adamc@1095
|
116 # Unset variables that we do not need and which cause bugs (e.g. in
|
adamc@1095
|
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
adamc@1095
|
118 # suppresses any "Segmentation fault" message there. '((' could
|
adamc@1095
|
119 # trigger a bug in pdksh 5.2.14.
|
adamc@1095
|
120 for as_var in BASH_ENV ENV MAIL MAILPATH
|
adamc@1095
|
121 do eval test x\${$as_var+set} = xset \
|
adamc@1095
|
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
adamc@378
|
123 done
|
adamc@378
|
124 PS1='$ '
|
adamc@378
|
125 PS2='> '
|
adamc@378
|
126 PS4='+ '
|
adamc@378
|
127
|
adamc@378
|
128 # NLS nuisances.
|
adamc@1095
|
129 LC_ALL=C
|
adamc@1095
|
130 export LC_ALL
|
adamc@1095
|
131 LANGUAGE=C
|
adamc@1095
|
132 export LANGUAGE
|
adamc@1095
|
133
|
adamc@1095
|
134 # CDPATH.
|
adamc@1095
|
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
adamc@1095
|
136
|
adamc@1095
|
137 if test "x$CONFIG_SHELL" = x; then
|
adamc@1095
|
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
adamc@1095
|
139 emulate sh
|
adamc@1095
|
140 NULLCMD=:
|
adamc@1095
|
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
adamc@1095
|
142 # is contrary to our usage. Disable this feature.
|
adamc@1095
|
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
adamc@1095
|
144 setopt NO_GLOB_SUBST
|
adamc@1095
|
145 else
|
adamc@1095
|
146 case \`(set -o) 2>/dev/null\` in #(
|
adamc@1095
|
147 *posix*) :
|
adamc@1095
|
148 set -o posix ;; #(
|
adamc@1095
|
149 *) :
|
adamc@1095
|
150 ;;
|
adamc@1095
|
151 esac
|
adamc@1095
|
152 fi
|
adamc@1095
|
153 "
|
adamc@1095
|
154 as_required="as_fn_return () { (exit \$1); }
|
adamc@1095
|
155 as_fn_success () { as_fn_return 0; }
|
adamc@1095
|
156 as_fn_failure () { as_fn_return 1; }
|
adamc@1095
|
157 as_fn_ret_success () { return 0; }
|
adamc@1095
|
158 as_fn_ret_failure () { return 1; }
|
adamc@1095
|
159
|
adamc@1095
|
160 exitcode=0
|
adamc@1095
|
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
adamc@1095
|
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
adamc@1095
|
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
adamc@1095
|
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
adamc@1095
|
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
adamc@1095
|
166
|
adamc@1095
|
167 else
|
adamc@1095
|
168 exitcode=1; echo positional parameters were not saved.
|
adamc@1095
|
169 fi
|
adamc@1095
|
170 test x\$exitcode = x0 || exit 1"
|
adamc@1095
|
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
adamc@1095
|
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
adamc@1095
|
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
adamc@1132
|
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
adam@1459
|
175 test \$(( 1 + 1 )) = 2 || exit 1
|
adam@1459
|
176
|
adam@1459
|
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
|
adam@1459
|
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
adam@1459
|
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
|
adam@1459
|
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
|
adam@1459
|
181 PATH=/empty FPATH=/empty; export PATH FPATH
|
adam@1459
|
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
|
adam@1459
|
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
|
adamc@1095
|
184 if (eval "$as_required") 2>/dev/null; then :
|
adamc@1095
|
185 as_have_required=yes
|
adamc@1095
|
186 else
|
adamc@1095
|
187 as_have_required=no
|
adamc@1095
|
188 fi
|
adamc@1095
|
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
adamc@1095
|
190
|
adamc@1095
|
191 else
|
adamc@1095
|
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1095
|
193 as_found=false
|
adamc@1095
|
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
adamc@378
|
195 do
|
adamc@1095
|
196 IFS=$as_save_IFS
|
adamc@1095
|
197 test -z "$as_dir" && as_dir=.
|
adamc@1095
|
198 as_found=:
|
adamc@1095
|
199 case $as_dir in #(
|
adamc@1095
|
200 /*)
|
adamc@1095
|
201 for as_base in sh bash ksh sh5; do
|
adamc@1095
|
202 # Try only shells that exist, to save several forks.
|
adamc@1095
|
203 as_shell=$as_dir/$as_base
|
adamc@1095
|
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
adamc@1095
|
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
adamc@1095
|
206 CONFIG_SHELL=$as_shell as_have_required=yes
|
adamc@1095
|
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
adamc@1095
|
208 break 2
|
adamc@1095
|
209 fi
|
adamc@1095
|
210 fi
|
adamc@1095
|
211 done;;
|
adamc@1095
|
212 esac
|
adamc@1095
|
213 as_found=false
|
adamc@1095
|
214 done
|
adamc@1095
|
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
adamc@1095
|
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
adamc@1095
|
217 CONFIG_SHELL=$SHELL as_have_required=yes
|
adamc@1095
|
218 fi; }
|
adamc@1095
|
219 IFS=$as_save_IFS
|
adamc@1095
|
220
|
adamc@1095
|
221
|
adamc@1095
|
222 if test "x$CONFIG_SHELL" != x; then :
|
adamc@1095
|
223 # We cannot yet assume a decent shell, so we have to provide a
|
adamc@1095
|
224 # neutralization value for shells without unset; and this also
|
adamc@1095
|
225 # works around shells that cannot unset nonexistent variables.
|
adam@1459
|
226 # Preserve -v and -x to the replacement shell.
|
adamc@1095
|
227 BASH_ENV=/dev/null
|
adamc@1095
|
228 ENV=/dev/null
|
adamc@1095
|
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
adamc@1095
|
230 export CONFIG_SHELL
|
adam@1459
|
231 case $- in # ((((
|
adam@1459
|
232 *v*x* | *x*v* ) as_opts=-vx ;;
|
adam@1459
|
233 *v* ) as_opts=-v ;;
|
adam@1459
|
234 *x* ) as_opts=-x ;;
|
adam@1459
|
235 * ) as_opts= ;;
|
adam@1459
|
236 esac
|
adam@1459
|
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
|
adamc@1095
|
238 fi
|
adamc@1095
|
239
|
adamc@1095
|
240 if test x$as_have_required = xno; then :
|
adamc@1095
|
241 $as_echo "$0: This script requires a shell more modern than all"
|
adamc@1095
|
242 $as_echo "$0: the shells that I found on your system."
|
adamc@1095
|
243 if test x${ZSH_VERSION+set} = xset ; then
|
adamc@1095
|
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
adamc@1095
|
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
adamc@378
|
246 else
|
adamc@1095
|
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
|
adamc@1095
|
248 $0: including any error possibly output before this
|
adamc@1095
|
249 $0: message. Then install a modern shell, or manually run
|
adamc@1095
|
250 $0: the script under such a shell if you do have one."
|
adamc@378
|
251 fi
|
adamc@1095
|
252 exit 1
|
adamc@1095
|
253 fi
|
adamc@1095
|
254 fi
|
adamc@1095
|
255 fi
|
adamc@1095
|
256 SHELL=${CONFIG_SHELL-/bin/sh}
|
adamc@1095
|
257 export SHELL
|
adamc@1095
|
258 # Unset more variables known to interfere with behavior of common tools.
|
adamc@1095
|
259 CLICOLOR_FORCE= GREP_OPTIONS=
|
adamc@1095
|
260 unset CLICOLOR_FORCE GREP_OPTIONS
|
adamc@378
|
261
|
adamc@1095
|
262 ## --------------------- ##
|
adamc@1095
|
263 ## M4sh Shell Functions. ##
|
adamc@1095
|
264 ## --------------------- ##
|
adamc@1095
|
265 # as_fn_unset VAR
|
adamc@1095
|
266 # ---------------
|
adamc@1095
|
267 # Portably unset VAR.
|
adamc@1095
|
268 as_fn_unset ()
|
adamc@1095
|
269 {
|
adamc@1095
|
270 { eval $1=; unset $1;}
|
adamc@1095
|
271 }
|
adamc@1095
|
272 as_unset=as_fn_unset
|
adamc@1095
|
273
|
adamc@1095
|
274 # as_fn_set_status STATUS
|
adamc@1095
|
275 # -----------------------
|
adamc@1095
|
276 # Set $? to STATUS, without forking.
|
adamc@1095
|
277 as_fn_set_status ()
|
adamc@1095
|
278 {
|
adamc@1095
|
279 return $1
|
adamc@1095
|
280 } # as_fn_set_status
|
adamc@1095
|
281
|
adamc@1095
|
282 # as_fn_exit STATUS
|
adamc@1095
|
283 # -----------------
|
adamc@1095
|
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
adamc@1095
|
285 as_fn_exit ()
|
adamc@1095
|
286 {
|
adamc@1095
|
287 set +e
|
adamc@1095
|
288 as_fn_set_status $1
|
adamc@1095
|
289 exit $1
|
adamc@1095
|
290 } # as_fn_exit
|
adamc@1095
|
291
|
adamc@1095
|
292 # as_fn_mkdir_p
|
adamc@1095
|
293 # -------------
|
adamc@1095
|
294 # Create "$as_dir" as a directory, including parents if necessary.
|
adamc@1095
|
295 as_fn_mkdir_p ()
|
adamc@1095
|
296 {
|
adamc@1095
|
297
|
adamc@1095
|
298 case $as_dir in #(
|
adamc@1095
|
299 -*) as_dir=./$as_dir;;
|
adamc@1095
|
300 esac
|
adamc@1095
|
301 test -d "$as_dir" || eval $as_mkdir_p || {
|
adamc@1095
|
302 as_dirs=
|
adamc@1095
|
303 while :; do
|
adamc@1095
|
304 case $as_dir in #(
|
adamc@1095
|
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
adamc@1095
|
306 *) as_qdir=$as_dir;;
|
adamc@1095
|
307 esac
|
adamc@1095
|
308 as_dirs="'$as_qdir' $as_dirs"
|
adamc@1095
|
309 as_dir=`$as_dirname -- "$as_dir" ||
|
adamc@1095
|
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
adamc@1095
|
311 X"$as_dir" : 'X\(//\)[^/]' \| \
|
adamc@1095
|
312 X"$as_dir" : 'X\(//\)$' \| \
|
adamc@1095
|
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
adamc@1095
|
314 $as_echo X"$as_dir" |
|
adamc@1095
|
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
adamc@1095
|
316 s//\1/
|
adamc@1095
|
317 q
|
adamc@1095
|
318 }
|
adamc@1095
|
319 /^X\(\/\/\)[^/].*/{
|
adamc@1095
|
320 s//\1/
|
adamc@1095
|
321 q
|
adamc@1095
|
322 }
|
adamc@1095
|
323 /^X\(\/\/\)$/{
|
adamc@1095
|
324 s//\1/
|
adamc@1095
|
325 q
|
adamc@1095
|
326 }
|
adamc@1095
|
327 /^X\(\/\).*/{
|
adamc@1095
|
328 s//\1/
|
adamc@1095
|
329 q
|
adamc@1095
|
330 }
|
adamc@1095
|
331 s/.*/./; q'`
|
adamc@1095
|
332 test -d "$as_dir" && break
|
adamc@1095
|
333 done
|
adamc@1095
|
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
|
adam@1315
|
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
adamc@1095
|
336
|
adamc@1095
|
337
|
adamc@1095
|
338 } # as_fn_mkdir_p
|
adamc@1095
|
339 # as_fn_append VAR VALUE
|
adamc@1095
|
340 # ----------------------
|
adamc@1095
|
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
|
adamc@1095
|
342 # advantage of any shell optimizations that allow amortized linear growth over
|
adamc@1095
|
343 # repeated appends, instead of the typical quadratic growth present in naive
|
adamc@1095
|
344 # implementations.
|
adamc@1095
|
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
adamc@1095
|
346 eval 'as_fn_append ()
|
adamc@1095
|
347 {
|
adamc@1095
|
348 eval $1+=\$2
|
adamc@1095
|
349 }'
|
adamc@1095
|
350 else
|
adamc@1095
|
351 as_fn_append ()
|
adamc@1095
|
352 {
|
adamc@1095
|
353 eval $1=\$$1\$2
|
adamc@1095
|
354 }
|
adamc@1095
|
355 fi # as_fn_append
|
adamc@1095
|
356
|
adamc@1095
|
357 # as_fn_arith ARG...
|
adamc@1095
|
358 # ------------------
|
adamc@1095
|
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
|
adamc@1095
|
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
adamc@1095
|
361 # must be portable across $(()) and expr.
|
adamc@1095
|
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
adamc@1095
|
363 eval 'as_fn_arith ()
|
adamc@1095
|
364 {
|
adamc@1095
|
365 as_val=$(( $* ))
|
adamc@1095
|
366 }'
|
adamc@1095
|
367 else
|
adamc@1095
|
368 as_fn_arith ()
|
adamc@1095
|
369 {
|
adamc@1095
|
370 as_val=`expr "$@" || test $? -eq 1`
|
adamc@1095
|
371 }
|
adamc@1095
|
372 fi # as_fn_arith
|
adamc@1095
|
373
|
adamc@1095
|
374
|
adam@1315
|
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
adam@1315
|
376 # ----------------------------------------
|
adamc@1095
|
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
adamc@1095
|
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
adam@1315
|
379 # script with STATUS, using 1 if that was 0.
|
adamc@1095
|
380 as_fn_error ()
|
adamc@1095
|
381 {
|
adam@1315
|
382 as_status=$1; test $as_status -eq 0 && as_status=1
|
adam@1315
|
383 if test "$4"; then
|
adam@1315
|
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
adam@1315
|
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
adam@1315
|
386 fi
|
adam@1315
|
387 $as_echo "$as_me: error: $2" >&2
|
adamc@1095
|
388 as_fn_exit $as_status
|
adamc@1095
|
389 } # as_fn_error
|
adamc@1095
|
390
|
adamc@378
|
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
|
adamc@378
|
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
adamc@378
|
393 as_expr=expr
|
adamc@378
|
394 else
|
adamc@378
|
395 as_expr=false
|
adamc@378
|
396 fi
|
adamc@378
|
397
|
adamc@378
|
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
adamc@378
|
399 as_basename=basename
|
adamc@378
|
400 else
|
adamc@378
|
401 as_basename=false
|
adamc@378
|
402 fi
|
adamc@378
|
403
|
adamc@1095
|
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
adamc@1095
|
405 as_dirname=dirname
|
adamc@1095
|
406 else
|
adamc@1095
|
407 as_dirname=false
|
adamc@1095
|
408 fi
|
adamc@378
|
409
|
adamc@378
|
410 as_me=`$as_basename -- "$0" ||
|
adamc@378
|
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
adamc@378
|
412 X"$0" : 'X\(//\)$' \| \
|
adamc@378
|
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
adamc@1095
|
414 $as_echo X/"$0" |
|
adamc@378
|
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
|
adamc@378
|
416 s//\1/
|
adamc@378
|
417 q
|
adamc@378
|
418 }
|
adamc@378
|
419 /^X\/\(\/\/\)$/{
|
adamc@378
|
420 s//\1/
|
adamc@378
|
421 q
|
adamc@378
|
422 }
|
adamc@378
|
423 /^X\/\(\/\).*/{
|
adamc@378
|
424 s//\1/
|
adamc@378
|
425 q
|
adamc@378
|
426 }
|
adamc@378
|
427 s/.*/./; q'`
|
adamc@378
|
428
|
adamc@1095
|
429 # Avoid depending upon Character Ranges.
|
adamc@1095
|
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
adamc@1095
|
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
adamc@1095
|
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
adamc@1095
|
433 as_cr_digits='0123456789'
|
adamc@1095
|
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
|
adamc@378
|
435
|
adamc@378
|
436
|
adamc@1095
|
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
adamc@1095
|
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
adamc@1095
|
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
adamc@1095
|
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
adamc@1095
|
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
adamc@378
|
442 sed -n '
|
adamc@378
|
443 p
|
adamc@378
|
444 /[$]LINENO/=
|
adamc@378
|
445 ' <$as_myself |
|
adamc@378
|
446 sed '
|
adamc@378
|
447 s/[$]LINENO.*/&-/
|
adamc@378
|
448 t lineno
|
adamc@378
|
449 b
|
adamc@378
|
450 :lineno
|
adamc@378
|
451 N
|
adamc@378
|
452 :loop
|
adamc@378
|
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
adamc@378
|
454 t loop
|
adamc@378
|
455 s/-\n.*//
|
adamc@378
|
456 ' >$as_me.lineno &&
|
adamc@378
|
457 chmod +x "$as_me.lineno" ||
|
adamc@1095
|
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
adamc@378
|
459
|
adamc@378
|
460 # Don't try to exec as it changes $[0], causing all sort of problems
|
adamc@378
|
461 # (the dirname of $[0] is not the place where we might find the
|
adamc@378
|
462 # original and so on. Autoconf is especially sensitive to this).
|
adamc@378
|
463 . "./$as_me.lineno"
|
adamc@378
|
464 # Exit status is that of the last command.
|
adamc@378
|
465 exit
|
adamc@378
|
466 }
|
adamc@378
|
467
|
adamc@378
|
468 ECHO_C= ECHO_N= ECHO_T=
|
adamc@1095
|
469 case `echo -n x` in #(((((
|
adamc@378
|
470 -n*)
|
adamc@1095
|
471 case `echo 'xy\c'` in
|
adamc@378
|
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
adamc@1095
|
473 xy) ECHO_C='\c';;
|
adamc@1095
|
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
adamc@1095
|
475 ECHO_T=' ';;
|
adamc@378
|
476 esac;;
|
adamc@378
|
477 *)
|
adamc@378
|
478 ECHO_N='-n';;
|
adamc@378
|
479 esac
|
adamc@378
|
480
|
adamc@378
|
481 rm -f conf$$ conf$$.exe conf$$.file
|
adamc@378
|
482 if test -d conf$$.dir; then
|
adamc@378
|
483 rm -f conf$$.dir/conf$$.file
|
adamc@378
|
484 else
|
adamc@378
|
485 rm -f conf$$.dir
|
adamc@1095
|
486 mkdir conf$$.dir 2>/dev/null
|
adamc@378
|
487 fi
|
adamc@1095
|
488 if (echo >conf$$.file) 2>/dev/null; then
|
adamc@1095
|
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
|
adamc@1095
|
490 as_ln_s='ln -s'
|
adamc@1095
|
491 # ... but there are two gotchas:
|
adamc@1095
|
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
adamc@1095
|
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
adamc@1095
|
494 # In both cases, we have to default to `cp -p'.
|
adamc@1095
|
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
adamc@1095
|
496 as_ln_s='cp -p'
|
adamc@1095
|
497 elif ln conf$$.file conf$$ 2>/dev/null; then
|
adamc@1095
|
498 as_ln_s=ln
|
adamc@1095
|
499 else
|
adamc@378
|
500 as_ln_s='cp -p'
|
adamc@1095
|
501 fi
|
adamc@378
|
502 else
|
adamc@378
|
503 as_ln_s='cp -p'
|
adamc@378
|
504 fi
|
adamc@378
|
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
adamc@378
|
506 rmdir conf$$.dir 2>/dev/null
|
adamc@378
|
507
|
adamc@378
|
508 if mkdir -p . 2>/dev/null; then
|
adamc@1095
|
509 as_mkdir_p='mkdir -p "$as_dir"'
|
adamc@378
|
510 else
|
adamc@378
|
511 test -d ./-p && rmdir ./-p
|
adamc@378
|
512 as_mkdir_p=false
|
adamc@378
|
513 fi
|
adamc@378
|
514
|
adamc@378
|
515 if test -x / >/dev/null 2>&1; then
|
adamc@378
|
516 as_test_x='test -x'
|
adamc@378
|
517 else
|
adamc@378
|
518 if ls -dL / >/dev/null 2>&1; then
|
adamc@378
|
519 as_ls_L_option=L
|
adamc@378
|
520 else
|
adamc@378
|
521 as_ls_L_option=
|
adamc@378
|
522 fi
|
adamc@378
|
523 as_test_x='
|
adamc@378
|
524 eval sh -c '\''
|
adamc@378
|
525 if test -d "$1"; then
|
adamc@1095
|
526 test -d "$1/.";
|
adamc@378
|
527 else
|
adamc@1095
|
528 case $1 in #(
|
adamc@1095
|
529 -*)set "./$1";;
|
adamc@378
|
530 esac;
|
adamc@1095
|
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
adamc@378
|
532 ???[sx]*):;;*)false;;esac;fi
|
adamc@378
|
533 '\'' sh
|
adamc@378
|
534 '
|
adamc@378
|
535 fi
|
adamc@378
|
536 as_executable_p=$as_test_x
|
adamc@378
|
537
|
adamc@378
|
538 # Sed expression to map a string onto a valid CPP name.
|
adamc@378
|
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
adamc@378
|
540
|
adamc@378
|
541 # Sed expression to map a string onto a valid variable name.
|
adamc@378
|
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
adamc@378
|
543
|
adamc@1132
|
544 SHELL=${CONFIG_SHELL-/bin/sh}
|
adamc@1132
|
545
|
adamc@1132
|
546
|
adamc@1095
|
547 test -n "$DJDIR" || exec 7<&0 </dev/null
|
adamc@1095
|
548 exec 6>&1
|
adamc@378
|
549
|
adamc@378
|
550 # Name of the host.
|
adam@1315
|
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
adamc@378
|
552 # so uname gets run too.
|
adamc@378
|
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
adamc@378
|
554
|
adamc@378
|
555 #
|
adamc@378
|
556 # Initializations.
|
adamc@378
|
557 #
|
adamc@378
|
558 ac_default_prefix=/usr/local
|
adamc@378
|
559 ac_clean_files=
|
adamc@378
|
560 ac_config_libobj_dir=.
|
adamc@378
|
561 LIBOBJS=
|
adamc@378
|
562 cross_compiling=no
|
adamc@378
|
563 subdirs=
|
adamc@378
|
564 MFLAGS=
|
adamc@378
|
565 MAKEFLAGS=
|
adamc@378
|
566
|
adamc@378
|
567 # Identity of this package.
|
adamc@1132
|
568 PACKAGE_NAME='urweb'
|
adamc@1132
|
569 PACKAGE_TARNAME='urweb'
|
adam@1561
|
570 PACKAGE_VERSION='20110917'
|
adam@1561
|
571 PACKAGE_STRING='urweb 20110917'
|
adamc@1132
|
572 PACKAGE_BUGREPORT=''
|
adamc@1132
|
573 PACKAGE_URL=''
|
adamc@1132
|
574
|
adamc@1132
|
575 # Factoring default headers for most tests.
|
adamc@1132
|
576 ac_includes_default="\
|
adamc@1132
|
577 #include <stdio.h>
|
adamc@1132
|
578 #ifdef HAVE_SYS_TYPES_H
|
adamc@1132
|
579 # include <sys/types.h>
|
adamc@1132
|
580 #endif
|
adamc@1132
|
581 #ifdef HAVE_SYS_STAT_H
|
adamc@1132
|
582 # include <sys/stat.h>
|
adamc@1132
|
583 #endif
|
adamc@1132
|
584 #ifdef STDC_HEADERS
|
adamc@1132
|
585 # include <stdlib.h>
|
adamc@1132
|
586 # include <stddef.h>
|
adamc@1132
|
587 #else
|
adamc@1132
|
588 # ifdef HAVE_STDLIB_H
|
adamc@1132
|
589 # include <stdlib.h>
|
adamc@1132
|
590 # endif
|
adamc@1132
|
591 #endif
|
adamc@1132
|
592 #ifdef HAVE_STRING_H
|
adamc@1132
|
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
adamc@1132
|
594 # include <memory.h>
|
adamc@1132
|
595 # endif
|
adamc@1132
|
596 # include <string.h>
|
adamc@1132
|
597 #endif
|
adamc@1132
|
598 #ifdef HAVE_STRINGS_H
|
adamc@1132
|
599 # include <strings.h>
|
adamc@1132
|
600 #endif
|
adamc@1132
|
601 #ifdef HAVE_INTTYPES_H
|
adamc@1132
|
602 # include <inttypes.h>
|
adamc@1132
|
603 #endif
|
adamc@1132
|
604 #ifdef HAVE_STDINT_H
|
adamc@1132
|
605 # include <stdint.h>
|
adamc@1132
|
606 #endif
|
adamc@1132
|
607 #ifdef HAVE_UNISTD_H
|
adamc@1132
|
608 # include <unistd.h>
|
adamc@1132
|
609 #endif"
|
adamc@1132
|
610
|
adamc@1132
|
611 ac_subst_vars='am__EXEEXT_FALSE
|
adamc@1132
|
612 am__EXEEXT_TRUE
|
adamc@1132
|
613 LTLIBOBJS
|
adamc@1095
|
614 LIBOBJS
|
adam@1464
|
615 SQHEADER
|
adam@1464
|
616 MSHEADER
|
adam@1464
|
617 PGHEADER
|
adam@1523
|
618 CCARGS
|
adamc@1095
|
619 SITELISP
|
adamc@1095
|
620 INCLUDE
|
adamc@1095
|
621 LIB
|
adamc@1095
|
622 BIN
|
adam@1441
|
623 USE_EMACS_FALSE
|
adam@1441
|
624 USE_EMACS_TRUE
|
adamc@1165
|
625 MLYACC
|
adamc@1165
|
626 MLLEX
|
adamc@1165
|
627 MLTON
|
adam@1368
|
628 OPENSSL_LDFLAGS
|
adam@1368
|
629 OPENSSL_LIBS
|
adam@1368
|
630 OPENSSL_INCLUDES
|
adam@1368
|
631 PKG_CONFIG
|
adam@1528
|
632 PTHREAD_CFLAGS
|
adam@1528
|
633 PTHREAD_LIBS
|
adam@1528
|
634 PTHREAD_CC
|
adam@1528
|
635 ax_pthread_config
|
adamc@1132
|
636 OTOOL64
|
adamc@1132
|
637 OTOOL
|
adamc@1132
|
638 LIPO
|
adamc@1132
|
639 NMEDIT
|
adamc@1132
|
640 DSYMUTIL
|
adam@1459
|
641 MANIFEST_TOOL
|
adamc@1132
|
642 RANLIB
|
adam@1459
|
643 ac_ct_AR
|
adamc@1132
|
644 AR
|
adam@1459
|
645 DLLTOOL
|
adamc@1132
|
646 OBJDUMP
|
adamc@1132
|
647 LN_S
|
adamc@1132
|
648 NM
|
adamc@1132
|
649 ac_ct_DUMPBIN
|
adamc@1132
|
650 DUMPBIN
|
adamc@1132
|
651 LD
|
adamc@1132
|
652 FGREP
|
adamc@1132
|
653 SED
|
adamc@1132
|
654 host_os
|
adamc@1132
|
655 host_vendor
|
adamc@1132
|
656 host_cpu
|
adamc@1132
|
657 host
|
adamc@1132
|
658 build_os
|
adamc@1132
|
659 build_vendor
|
adamc@1132
|
660 build_cpu
|
adamc@1132
|
661 build
|
adamc@1132
|
662 LIBTOOL
|
adamc@1132
|
663 am__fastdepCC_FALSE
|
adamc@1132
|
664 am__fastdepCC_TRUE
|
adamc@1132
|
665 CCDEPMODE
|
adamc@1132
|
666 AMDEPBACKSLASH
|
adamc@1132
|
667 AMDEP_FALSE
|
adamc@1132
|
668 AMDEP_TRUE
|
adamc@1132
|
669 am__quote
|
adamc@1132
|
670 am__include
|
adamc@1132
|
671 DEPDIR
|
adamc@1132
|
672 am__untar
|
adamc@1132
|
673 am__tar
|
adamc@1132
|
674 AMTAR
|
adamc@1132
|
675 am__leading_dot
|
adamc@1132
|
676 SET_MAKE
|
adamc@1132
|
677 AWK
|
adamc@1132
|
678 mkdir_p
|
adamc@1132
|
679 MKDIR_P
|
adamc@1132
|
680 INSTALL_STRIP_PROGRAM
|
adamc@1132
|
681 STRIP
|
adamc@1132
|
682 install_sh
|
adamc@1132
|
683 MAKEINFO
|
adamc@1132
|
684 AUTOHEADER
|
adamc@1132
|
685 AUTOMAKE
|
adamc@1132
|
686 AUTOCONF
|
adamc@1132
|
687 ACLOCAL
|
adamc@1132
|
688 VERSION
|
adamc@1132
|
689 PACKAGE
|
adamc@1132
|
690 CYGPATH_W
|
adamc@1132
|
691 am__isrc
|
adamc@1132
|
692 INSTALL_DATA
|
adamc@1132
|
693 INSTALL_SCRIPT
|
adamc@1132
|
694 INSTALL_PROGRAM
|
adamc@1149
|
695 EGREP
|
adamc@1149
|
696 GREP
|
adamc@1149
|
697 CPP
|
adamc@1149
|
698 OBJEXT
|
adamc@1149
|
699 EXEEXT
|
adamc@1149
|
700 ac_ct_CC
|
adamc@1149
|
701 CPPFLAGS
|
adamc@1149
|
702 LDFLAGS
|
adamc@1149
|
703 CFLAGS
|
adamc@1149
|
704 CC
|
adamc@1095
|
705 target_alias
|
adamc@1095
|
706 host_alias
|
adamc@1095
|
707 build_alias
|
adamc@1095
|
708 LIBS
|
adamc@1095
|
709 ECHO_T
|
adamc@1095
|
710 ECHO_N
|
adamc@1095
|
711 ECHO_C
|
adamc@1095
|
712 DEFS
|
adamc@1095
|
713 mandir
|
adamc@1095
|
714 localedir
|
adamc@1095
|
715 libdir
|
adamc@1095
|
716 psdir
|
adamc@1095
|
717 pdfdir
|
adamc@1095
|
718 dvidir
|
adamc@1095
|
719 htmldir
|
adamc@1095
|
720 infodir
|
adamc@1095
|
721 docdir
|
adamc@1095
|
722 oldincludedir
|
adamc@1095
|
723 includedir
|
adamc@1095
|
724 localstatedir
|
adamc@1095
|
725 sharedstatedir
|
adamc@1095
|
726 sysconfdir
|
adamc@1095
|
727 datadir
|
adamc@1095
|
728 datarootdir
|
adamc@1095
|
729 libexecdir
|
adamc@1095
|
730 sbindir
|
adamc@1095
|
731 bindir
|
adamc@1095
|
732 program_transform_name
|
adamc@1095
|
733 prefix
|
adamc@1095
|
734 exec_prefix
|
adamc@1095
|
735 PACKAGE_URL
|
adamc@1095
|
736 PACKAGE_BUGREPORT
|
adamc@1095
|
737 PACKAGE_STRING
|
adamc@1095
|
738 PACKAGE_VERSION
|
adamc@1095
|
739 PACKAGE_TARNAME
|
adamc@1095
|
740 PACKAGE_NAME
|
adamc@378
|
741 PATH_SEPARATOR
|
adamc@1095
|
742 SHELL'
|
adamc@378
|
743 ac_subst_files=''
|
adamc@1095
|
744 ac_user_opts='
|
adamc@1095
|
745 enable_option_checking
|
adamc@1132
|
746 enable_dependency_tracking
|
adamc@1132
|
747 enable_shared
|
adamc@1132
|
748 enable_static
|
adamc@1132
|
749 with_pic
|
adamc@1132
|
750 enable_fast_install
|
adamc@1132
|
751 with_gnu_ld
|
adam@1459
|
752 with_sysroot
|
adamc@1132
|
753 enable_libtool_lock
|
adam@1368
|
754 with_openssl
|
adam@1441
|
755 with_emacs
|
adamc@1095
|
756 '
|
adamc@378
|
757 ac_precious_vars='build_alias
|
adamc@378
|
758 host_alias
|
adamc@1132
|
759 target_alias
|
adamc@1132
|
760 CC
|
adamc@1132
|
761 CFLAGS
|
adamc@1132
|
762 LDFLAGS
|
adamc@1132
|
763 LIBS
|
adamc@1132
|
764 CPPFLAGS
|
adamc@1132
|
765 CPP'
|
adamc@378
|
766
|
adamc@378
|
767
|
adamc@378
|
768 # Initialize some variables set by options.
|
adamc@378
|
769 ac_init_help=
|
adamc@378
|
770 ac_init_version=false
|
adamc@1095
|
771 ac_unrecognized_opts=
|
adamc@1095
|
772 ac_unrecognized_sep=
|
adamc@378
|
773 # The variables have the same names as the options, with
|
adamc@378
|
774 # dashes changed to underlines.
|
adamc@378
|
775 cache_file=/dev/null
|
adamc@378
|
776 exec_prefix=NONE
|
adamc@378
|
777 no_create=
|
adamc@378
|
778 no_recursion=
|
adamc@378
|
779 prefix=NONE
|
adamc@378
|
780 program_prefix=NONE
|
adamc@378
|
781 program_suffix=NONE
|
adamc@378
|
782 program_transform_name=s,x,x,
|
adamc@378
|
783 silent=
|
adamc@378
|
784 site=
|
adamc@378
|
785 srcdir=
|
adamc@378
|
786 verbose=
|
adamc@378
|
787 x_includes=NONE
|
adamc@378
|
788 x_libraries=NONE
|
adamc@378
|
789
|
adamc@378
|
790 # Installation directory options.
|
adamc@378
|
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
|
adamc@378
|
792 # and all the variables that are supposed to be based on exec_prefix
|
adamc@378
|
793 # by default will actually change.
|
adamc@378
|
794 # Use braces instead of parens because sh, perl, etc. also accept them.
|
adamc@378
|
795 # (The list follows the same order as the GNU Coding Standards.)
|
adamc@378
|
796 bindir='${exec_prefix}/bin'
|
adamc@378
|
797 sbindir='${exec_prefix}/sbin'
|
adamc@378
|
798 libexecdir='${exec_prefix}/libexec'
|
adamc@378
|
799 datarootdir='${prefix}/share'
|
adamc@378
|
800 datadir='${datarootdir}'
|
adamc@378
|
801 sysconfdir='${prefix}/etc'
|
adamc@378
|
802 sharedstatedir='${prefix}/com'
|
adamc@378
|
803 localstatedir='${prefix}/var'
|
adamc@378
|
804 includedir='${prefix}/include'
|
adamc@378
|
805 oldincludedir='/usr/include'
|
adamc@1132
|
806 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
adamc@378
|
807 infodir='${datarootdir}/info'
|
adamc@378
|
808 htmldir='${docdir}'
|
adamc@378
|
809 dvidir='${docdir}'
|
adamc@378
|
810 pdfdir='${docdir}'
|
adamc@378
|
811 psdir='${docdir}'
|
adamc@378
|
812 libdir='${exec_prefix}/lib'
|
adamc@378
|
813 localedir='${datarootdir}/locale'
|
adamc@378
|
814 mandir='${datarootdir}/man'
|
adamc@378
|
815
|
adamc@378
|
816 ac_prev=
|
adamc@378
|
817 ac_dashdash=
|
adamc@378
|
818 for ac_option
|
adamc@378
|
819 do
|
adamc@378
|
820 # If the previous option needs an argument, assign it.
|
adamc@378
|
821 if test -n "$ac_prev"; then
|
adamc@378
|
822 eval $ac_prev=\$ac_option
|
adamc@378
|
823 ac_prev=
|
adamc@378
|
824 continue
|
adamc@378
|
825 fi
|
adamc@378
|
826
|
adamc@378
|
827 case $ac_option in
|
adam@1315
|
828 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
adam@1315
|
829 *=) ac_optarg= ;;
|
adam@1315
|
830 *) ac_optarg=yes ;;
|
adamc@378
|
831 esac
|
adamc@378
|
832
|
adamc@378
|
833 # Accept the important Cygnus configure options, so we can diagnose typos.
|
adamc@378
|
834
|
adamc@378
|
835 case $ac_dashdash$ac_option in
|
adamc@378
|
836 --)
|
adamc@378
|
837 ac_dashdash=yes ;;
|
adamc@378
|
838
|
adamc@378
|
839 -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
adamc@378
|
840 ac_prev=bindir ;;
|
adamc@378
|
841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
adamc@378
|
842 bindir=$ac_optarg ;;
|
adamc@378
|
843
|
adamc@378
|
844 -build | --build | --buil | --bui | --bu)
|
adamc@378
|
845 ac_prev=build_alias ;;
|
adamc@378
|
846 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
adamc@378
|
847 build_alias=$ac_optarg ;;
|
adamc@378
|
848
|
adamc@378
|
849 -cache-file | --cache-file | --cache-fil | --cache-fi \
|
adamc@378
|
850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
adamc@378
|
851 ac_prev=cache_file ;;
|
adamc@378
|
852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
adamc@378
|
853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
adamc@378
|
854 cache_file=$ac_optarg ;;
|
adamc@378
|
855
|
adamc@378
|
856 --config-cache | -C)
|
adamc@378
|
857 cache_file=config.cache ;;
|
adamc@378
|
858
|
adamc@378
|
859 -datadir | --datadir | --datadi | --datad)
|
adamc@378
|
860 ac_prev=datadir ;;
|
adamc@378
|
861 -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
adamc@378
|
862 datadir=$ac_optarg ;;
|
adamc@378
|
863
|
adamc@378
|
864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
adamc@378
|
865 | --dataroo | --dataro | --datar)
|
adamc@378
|
866 ac_prev=datarootdir ;;
|
adamc@378
|
867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
adamc@378
|
868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
adamc@378
|
869 datarootdir=$ac_optarg ;;
|
adamc@378
|
870
|
adamc@378
|
871 -disable-* | --disable-*)
|
adamc@1095
|
872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
adamc@378
|
873 # Reject names that are not valid shell variable names.
|
adamc@1095
|
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
adam@1315
|
875 as_fn_error $? "invalid feature name: $ac_useropt"
|
adamc@1095
|
876 ac_useropt_orig=$ac_useropt
|
adamc@1095
|
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
adamc@1095
|
878 case $ac_user_opts in
|
adamc@1095
|
879 *"
|
adamc@1095
|
880 "enable_$ac_useropt"
|
adamc@1095
|
881 "*) ;;
|
adamc@1095
|
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
adamc@1095
|
883 ac_unrecognized_sep=', ';;
|
adamc@1095
|
884 esac
|
adamc@1095
|
885 eval enable_$ac_useropt=no ;;
|
adamc@378
|
886
|
adamc@378
|
887 -docdir | --docdir | --docdi | --doc | --do)
|
adamc@378
|
888 ac_prev=docdir ;;
|
adamc@378
|
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
adamc@378
|
890 docdir=$ac_optarg ;;
|
adamc@378
|
891
|
adamc@378
|
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
adamc@378
|
893 ac_prev=dvidir ;;
|
adamc@378
|
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
adamc@378
|
895 dvidir=$ac_optarg ;;
|
adamc@378
|
896
|
adamc@378
|
897 -enable-* | --enable-*)
|
adamc@1095
|
898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
adamc@378
|
899 # Reject names that are not valid shell variable names.
|
adamc@1095
|
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
adam@1315
|
901 as_fn_error $? "invalid feature name: $ac_useropt"
|
adamc@1095
|
902 ac_useropt_orig=$ac_useropt
|
adamc@1095
|
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
adamc@1095
|
904 case $ac_user_opts in
|
adamc@1095
|
905 *"
|
adamc@1095
|
906 "enable_$ac_useropt"
|
adamc@1095
|
907 "*) ;;
|
adamc@1095
|
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
adamc@1095
|
909 ac_unrecognized_sep=', ';;
|
adamc@1095
|
910 esac
|
adamc@1095
|
911 eval enable_$ac_useropt=\$ac_optarg ;;
|
adamc@378
|
912
|
adamc@378
|
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
adamc@378
|
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
adamc@378
|
915 | --exec | --exe | --ex)
|
adamc@378
|
916 ac_prev=exec_prefix ;;
|
adamc@378
|
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
adamc@378
|
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
adamc@378
|
919 | --exec=* | --exe=* | --ex=*)
|
adamc@378
|
920 exec_prefix=$ac_optarg ;;
|
adamc@378
|
921
|
adamc@378
|
922 -gas | --gas | --ga | --g)
|
adamc@378
|
923 # Obsolete; use --with-gas.
|
adamc@378
|
924 with_gas=yes ;;
|
adamc@378
|
925
|
adamc@378
|
926 -help | --help | --hel | --he | -h)
|
adamc@378
|
927 ac_init_help=long ;;
|
adamc@378
|
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
adamc@378
|
929 ac_init_help=recursive ;;
|
adamc@378
|
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
adamc@378
|
931 ac_init_help=short ;;
|
adamc@378
|
932
|
adamc@378
|
933 -host | --host | --hos | --ho)
|
adamc@378
|
934 ac_prev=host_alias ;;
|
adamc@378
|
935 -host=* | --host=* | --hos=* | --ho=*)
|
adamc@378
|
936 host_alias=$ac_optarg ;;
|
adamc@378
|
937
|
adamc@378
|
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
adamc@378
|
939 ac_prev=htmldir ;;
|
adamc@378
|
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
adamc@378
|
941 | --ht=*)
|
adamc@378
|
942 htmldir=$ac_optarg ;;
|
adamc@378
|
943
|
adamc@378
|
944 -includedir | --includedir | --includedi | --included | --include \
|
adamc@378
|
945 | --includ | --inclu | --incl | --inc)
|
adamc@378
|
946 ac_prev=includedir ;;
|
adamc@378
|
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
adamc@378
|
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
|
adamc@378
|
949 includedir=$ac_optarg ;;
|
adamc@378
|
950
|
adamc@378
|
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
|
adamc@378
|
952 ac_prev=infodir ;;
|
adamc@378
|
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
adamc@378
|
954 infodir=$ac_optarg ;;
|
adamc@378
|
955
|
adamc@378
|
956 -libdir | --libdir | --libdi | --libd)
|
adamc@378
|
957 ac_prev=libdir ;;
|
adamc@378
|
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
adamc@378
|
959 libdir=$ac_optarg ;;
|
adamc@378
|
960
|
adamc@378
|
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
adamc@378
|
962 | --libexe | --libex | --libe)
|
adamc@378
|
963 ac_prev=libexecdir ;;
|
adamc@378
|
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
adamc@378
|
965 | --libexe=* | --libex=* | --libe=*)
|
adamc@378
|
966 libexecdir=$ac_optarg ;;
|
adamc@378
|
967
|
adamc@378
|
968 -localedir | --localedir | --localedi | --localed | --locale)
|
adamc@378
|
969 ac_prev=localedir ;;
|
adamc@378
|
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
adamc@378
|
971 localedir=$ac_optarg ;;
|
adamc@378
|
972
|
adamc@378
|
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
|
adamc@378
|
974 | --localstate | --localstat | --localsta | --localst | --locals)
|
adamc@378
|
975 ac_prev=localstatedir ;;
|
adamc@378
|
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
adamc@378
|
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
adamc@378
|
978 localstatedir=$ac_optarg ;;
|
adamc@378
|
979
|
adamc@378
|
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
adamc@378
|
981 ac_prev=mandir ;;
|
adamc@378
|
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
adamc@378
|
983 mandir=$ac_optarg ;;
|
adamc@378
|
984
|
adamc@378
|
985 -nfp | --nfp | --nf)
|
adamc@378
|
986 # Obsolete; use --without-fp.
|
adamc@378
|
987 with_fp=no ;;
|
adamc@378
|
988
|
adamc@378
|
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
adamc@378
|
990 | --no-cr | --no-c | -n)
|
adamc@378
|
991 no_create=yes ;;
|
adamc@378
|
992
|
adamc@378
|
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
adamc@378
|
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
adamc@378
|
995 no_recursion=yes ;;
|
adamc@378
|
996
|
adamc@378
|
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
adamc@378
|
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
adamc@378
|
999 | --oldin | --oldi | --old | --ol | --o)
|
adamc@378
|
1000 ac_prev=oldincludedir ;;
|
adamc@378
|
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
adamc@378
|
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
adamc@378
|
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
adamc@378
|
1004 oldincludedir=$ac_optarg ;;
|
adamc@378
|
1005
|
adamc@378
|
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
adamc@378
|
1007 ac_prev=prefix ;;
|
adamc@378
|
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
adamc@378
|
1009 prefix=$ac_optarg ;;
|
adamc@378
|
1010
|
adamc@378
|
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
adamc@378
|
1012 | --program-pre | --program-pr | --program-p)
|
adamc@378
|
1013 ac_prev=program_prefix ;;
|
adamc@378
|
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
adamc@378
|
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
adamc@378
|
1016 program_prefix=$ac_optarg ;;
|
adamc@378
|
1017
|
adamc@378
|
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
adamc@378
|
1019 | --program-suf | --program-su | --program-s)
|
adamc@378
|
1020 ac_prev=program_suffix ;;
|
adamc@378
|
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
adamc@378
|
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
adamc@378
|
1023 program_suffix=$ac_optarg ;;
|
adamc@378
|
1024
|
adamc@378
|
1025 -program-transform-name | --program-transform-name \
|
adamc@378
|
1026 | --program-transform-nam | --program-transform-na \
|
adamc@378
|
1027 | --program-transform-n | --program-transform- \
|
adamc@378
|
1028 | --program-transform | --program-transfor \
|
adamc@378
|
1029 | --program-transfo | --program-transf \
|
adamc@378
|
1030 | --program-trans | --program-tran \
|
adamc@378
|
1031 | --progr-tra | --program-tr | --program-t)
|
adamc@378
|
1032 ac_prev=program_transform_name ;;
|
adamc@378
|
1033 -program-transform-name=* | --program-transform-name=* \
|
adamc@378
|
1034 | --program-transform-nam=* | --program-transform-na=* \
|
adamc@378
|
1035 | --program-transform-n=* | --program-transform-=* \
|
adamc@378
|
1036 | --program-transform=* | --program-transfor=* \
|
adamc@378
|
1037 | --program-transfo=* | --program-transf=* \
|
adamc@378
|
1038 | --program-trans=* | --program-tran=* \
|
adamc@378
|
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
|
adamc@378
|
1040 program_transform_name=$ac_optarg ;;
|
adamc@378
|
1041
|
adamc@378
|
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
adamc@378
|
1043 ac_prev=pdfdir ;;
|
adamc@378
|
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
adamc@378
|
1045 pdfdir=$ac_optarg ;;
|
adamc@378
|
1046
|
adamc@378
|
1047 -psdir | --psdir | --psdi | --psd | --ps)
|
adamc@378
|
1048 ac_prev=psdir ;;
|
adamc@378
|
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
adamc@378
|
1050 psdir=$ac_optarg ;;
|
adamc@378
|
1051
|
adamc@378
|
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
adamc@378
|
1053 | -silent | --silent | --silen | --sile | --sil)
|
adamc@378
|
1054 silent=yes ;;
|
adamc@378
|
1055
|
adamc@378
|
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
adamc@378
|
1057 ac_prev=sbindir ;;
|
adamc@378
|
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
adamc@378
|
1059 | --sbi=* | --sb=*)
|
adamc@378
|
1060 sbindir=$ac_optarg ;;
|
adamc@378
|
1061
|
adamc@378
|
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
adamc@378
|
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
adamc@378
|
1064 | --sharedst | --shareds | --shared | --share | --shar \
|
adamc@378
|
1065 | --sha | --sh)
|
adamc@378
|
1066 ac_prev=sharedstatedir ;;
|
adamc@378
|
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
adamc@378
|
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
adamc@378
|
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
adamc@378
|
1070 | --sha=* | --sh=*)
|
adamc@378
|
1071 sharedstatedir=$ac_optarg ;;
|
adamc@378
|
1072
|
adamc@378
|
1073 -site | --site | --sit)
|
adamc@378
|
1074 ac_prev=site ;;
|
adamc@378
|
1075 -site=* | --site=* | --sit=*)
|
adamc@378
|
1076 site=$ac_optarg ;;
|
adamc@378
|
1077
|
adamc@378
|
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
adamc@378
|
1079 ac_prev=srcdir ;;
|
adamc@378
|
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
adamc@378
|
1081 srcdir=$ac_optarg ;;
|
adamc@378
|
1082
|
adamc@378
|
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
adamc@378
|
1084 | --syscon | --sysco | --sysc | --sys | --sy)
|
adamc@378
|
1085 ac_prev=sysconfdir ;;
|
adamc@378
|
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
adamc@378
|
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
adamc@378
|
1088 sysconfdir=$ac_optarg ;;
|
adamc@378
|
1089
|
adamc@378
|
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
|
adamc@378
|
1091 ac_prev=target_alias ;;
|
adamc@378
|
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
adamc@378
|
1093 target_alias=$ac_optarg ;;
|
adamc@378
|
1094
|
adamc@378
|
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
adamc@378
|
1096 verbose=yes ;;
|
adamc@378
|
1097
|
adamc@378
|
1098 -version | --version | --versio | --versi | --vers | -V)
|
adamc@378
|
1099 ac_init_version=: ;;
|
adamc@378
|
1100
|
adamc@378
|
1101 -with-* | --with-*)
|
adamc@1095
|
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
adamc@378
|
1103 # Reject names that are not valid shell variable names.
|
adamc@1095
|
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
adam@1315
|
1105 as_fn_error $? "invalid package name: $ac_useropt"
|
adamc@1095
|
1106 ac_useropt_orig=$ac_useropt
|
adamc@1095
|
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
adamc@1095
|
1108 case $ac_user_opts in
|
adamc@1095
|
1109 *"
|
adamc@1095
|
1110 "with_$ac_useropt"
|
adamc@1095
|
1111 "*) ;;
|
adamc@1095
|
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
adamc@1095
|
1113 ac_unrecognized_sep=', ';;
|
adamc@1095
|
1114 esac
|
adamc@1095
|
1115 eval with_$ac_useropt=\$ac_optarg ;;
|
adamc@378
|
1116
|
adamc@378
|
1117 -without-* | --without-*)
|
adamc@1095
|
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
adamc@378
|
1119 # Reject names that are not valid shell variable names.
|
adamc@1095
|
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
adam@1315
|
1121 as_fn_error $? "invalid package name: $ac_useropt"
|
adamc@1095
|
1122 ac_useropt_orig=$ac_useropt
|
adamc@1095
|
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
adamc@1095
|
1124 case $ac_user_opts in
|
adamc@1095
|
1125 *"
|
adamc@1095
|
1126 "with_$ac_useropt"
|
adamc@1095
|
1127 "*) ;;
|
adamc@1095
|
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
adamc@1095
|
1129 ac_unrecognized_sep=', ';;
|
adamc@1095
|
1130 esac
|
adamc@1095
|
1131 eval with_$ac_useropt=no ;;
|
adamc@378
|
1132
|
adamc@378
|
1133 --x)
|
adamc@378
|
1134 # Obsolete; use --with-x.
|
adamc@378
|
1135 with_x=yes ;;
|
adamc@378
|
1136
|
adamc@378
|
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
adamc@378
|
1138 | --x-incl | --x-inc | --x-in | --x-i)
|
adamc@378
|
1139 ac_prev=x_includes ;;
|
adamc@378
|
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
adamc@378
|
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
adamc@378
|
1142 x_includes=$ac_optarg ;;
|
adamc@378
|
1143
|
adamc@378
|
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
adamc@378
|
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
adamc@378
|
1146 ac_prev=x_libraries ;;
|
adamc@378
|
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
adamc@378
|
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
adamc@378
|
1149 x_libraries=$ac_optarg ;;
|
adamc@378
|
1150
|
adam@1315
|
1151 -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
adam@1315
|
1152 Try \`$0 --help' for more information"
|
adamc@378
|
1153 ;;
|
adamc@378
|
1154
|
adamc@378
|
1155 *=*)
|
adamc@378
|
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
adamc@378
|
1157 # Reject names that are not valid shell variable names.
|
adamc@1095
|
1158 case $ac_envvar in #(
|
adamc@1095
|
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
|
adam@1315
|
1160 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
adamc@1095
|
1161 esac
|
adamc@378
|
1162 eval $ac_envvar=\$ac_optarg
|
adamc@378
|
1163 export $ac_envvar ;;
|
adamc@378
|
1164
|
adamc@378
|
1165 *)
|
adamc@378
|
1166 # FIXME: should be removed in autoconf 3.0.
|
adamc@1095
|
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
adamc@378
|
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
adamc@1095
|
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
adam@1459
|
1170 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
adamc@378
|
1171 ;;
|
adamc@378
|
1172
|
adamc@378
|
1173 esac
|
adamc@378
|
1174 done
|
adamc@378
|
1175
|
adamc@378
|
1176 if test -n "$ac_prev"; then
|
adamc@378
|
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
adam@1315
|
1178 as_fn_error $? "missing argument to $ac_option"
|
adamc@378
|
1179 fi
|
adamc@378
|
1180
|
adamc@1095
|
1181 if test -n "$ac_unrecognized_opts"; then
|
adamc@1095
|
1182 case $enable_option_checking in
|
adamc@1095
|
1183 no) ;;
|
adam@1315
|
1184 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
adamc@1095
|
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
adamc@1095
|
1186 esac
|
adamc@1095
|
1187 fi
|
adamc@1095
|
1188
|
adamc@1095
|
1189 # Check all directory arguments for consistency.
|
adamc@378
|
1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
adamc@378
|
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
|
adamc@378
|
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
adamc@378
|
1193 libdir localedir mandir
|
adamc@378
|
1194 do
|
adamc@378
|
1195 eval ac_val=\$$ac_var
|
adamc@1095
|
1196 # Remove trailing slashes.
|
adamc@1095
|
1197 case $ac_val in
|
adamc@1095
|
1198 */ )
|
adamc@1095
|
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
adamc@1095
|
1200 eval $ac_var=\$ac_val;;
|
adamc@1095
|
1201 esac
|
adamc@1095
|
1202 # Be sure to have absolute directory names.
|
adamc@378
|
1203 case $ac_val in
|
adamc@378
|
1204 [\\/$]* | ?:[\\/]* ) continue;;
|
adamc@378
|
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
adamc@378
|
1206 esac
|
adam@1315
|
1207 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
adamc@378
|
1208 done
|
adamc@378
|
1209
|
adamc@378
|
1210 # There might be people who depend on the old broken behavior: `$host'
|
adamc@378
|
1211 # used to hold the argument of --host etc.
|
adamc@378
|
1212 # FIXME: To remove some day.
|
adamc@378
|
1213 build=$build_alias
|
adamc@378
|
1214 host=$host_alias
|
adamc@378
|
1215 target=$target_alias
|
adamc@378
|
1216
|
adamc@378
|
1217 # FIXME: To remove some day.
|
adamc@378
|
1218 if test "x$host_alias" != x; then
|
adamc@378
|
1219 if test "x$build_alias" = x; then
|
adamc@378
|
1220 cross_compiling=maybe
|
adam@1315
|
1221 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
|
adam@1315
|
1222 If a cross compiler is detected then cross compile mode will be used" >&2
|
adamc@378
|
1223 elif test "x$build_alias" != "x$host_alias"; then
|
adamc@378
|
1224 cross_compiling=yes
|
adamc@378
|
1225 fi
|
adamc@378
|
1226 fi
|
adamc@378
|
1227
|
adamc@378
|
1228 ac_tool_prefix=
|
adamc@378
|
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
adamc@378
|
1230
|
adamc@378
|
1231 test "$silent" = yes && exec 6>/dev/null
|
adamc@378
|
1232
|
adamc@378
|
1233
|
adamc@378
|
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
adamc@378
|
1235 ac_ls_di=`ls -di .` &&
|
adamc@378
|
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
adam@1315
|
1237 as_fn_error $? "working directory cannot be determined"
|
adamc@378
|
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
adam@1315
|
1239 as_fn_error $? "pwd does not report name of working directory"
|
adamc@378
|
1240
|
adamc@378
|
1241
|
adamc@378
|
1242 # Find the source files, if location was not specified.
|
adamc@378
|
1243 if test -z "$srcdir"; then
|
adamc@378
|
1244 ac_srcdir_defaulted=yes
|
adamc@378
|
1245 # Try the directory containing this script, then the parent directory.
|
adamc@1095
|
1246 ac_confdir=`$as_dirname -- "$as_myself" ||
|
adamc@1095
|
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
adamc@1095
|
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
|
adamc@1095
|
1249 X"$as_myself" : 'X\(//\)$' \| \
|
adamc@1095
|
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
adamc@1095
|
1251 $as_echo X"$as_myself" |
|
adamc@378
|
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
adamc@378
|
1253 s//\1/
|
adamc@378
|
1254 q
|
adamc@378
|
1255 }
|
adamc@378
|
1256 /^X\(\/\/\)[^/].*/{
|
adamc@378
|
1257 s//\1/
|
adamc@378
|
1258 q
|
adamc@378
|
1259 }
|
adamc@378
|
1260 /^X\(\/\/\)$/{
|
adamc@378
|
1261 s//\1/
|
adamc@378
|
1262 q
|
adamc@378
|
1263 }
|
adamc@378
|
1264 /^X\(\/\).*/{
|
adamc@378
|
1265 s//\1/
|
adamc@378
|
1266 q
|
adamc@378
|
1267 }
|
adamc@378
|
1268 s/.*/./; q'`
|
adamc@378
|
1269 srcdir=$ac_confdir
|
adamc@378
|
1270 if test ! -r "$srcdir/$ac_unique_file"; then
|
adamc@378
|
1271 srcdir=..
|
adamc@378
|
1272 fi
|
adamc@378
|
1273 else
|
adamc@378
|
1274 ac_srcdir_defaulted=no
|
adamc@378
|
1275 fi
|
adamc@378
|
1276 if test ! -r "$srcdir/$ac_unique_file"; then
|
adamc@378
|
1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
adam@1315
|
1278 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
adamc@378
|
1279 fi
|
adamc@378
|
1280 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
adamc@378
|
1281 ac_abs_confdir=`(
|
adam@1315
|
1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
adamc@378
|
1283 pwd)`
|
adamc@378
|
1284 # When building in place, set srcdir=.
|
adamc@378
|
1285 if test "$ac_abs_confdir" = "$ac_pwd"; then
|
adamc@378
|
1286 srcdir=.
|
adamc@378
|
1287 fi
|
adamc@378
|
1288 # Remove unnecessary trailing slashes from srcdir.
|
adamc@378
|
1289 # Double slashes in file names in object file debugging info
|
adamc@378
|
1290 # mess up M-x gdb in Emacs.
|
adamc@378
|
1291 case $srcdir in
|
adamc@378
|
1292 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
adamc@378
|
1293 esac
|
adamc@378
|
1294 for ac_var in $ac_precious_vars; do
|
adamc@378
|
1295 eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
adamc@378
|
1296 eval ac_env_${ac_var}_value=\$${ac_var}
|
adamc@378
|
1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
adamc@378
|
1298 eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
adamc@378
|
1299 done
|
adamc@378
|
1300
|
adamc@378
|
1301 #
|
adamc@378
|
1302 # Report the --help message.
|
adamc@378
|
1303 #
|
adamc@378
|
1304 if test "$ac_init_help" = "long"; then
|
adamc@378
|
1305 # Omit some internal or obsolete options to make the list less imposing.
|
adamc@378
|
1306 # This message is too long to be a string in the A/UX 3.1 sh.
|
adamc@378
|
1307 cat <<_ACEOF
|
adam@1561
|
1308 \`configure' configures urweb 20110917 to adapt to many kinds of systems.
|
adamc@378
|
1309
|
adamc@378
|
1310 Usage: $0 [OPTION]... [VAR=VALUE]...
|
adamc@378
|
1311
|
adamc@378
|
1312 To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
adamc@378
|
1313 VAR=VALUE. See below for descriptions of some of the useful variables.
|
adamc@378
|
1314
|
adamc@378
|
1315 Defaults for the options are specified in brackets.
|
adamc@378
|
1316
|
adamc@378
|
1317 Configuration:
|
adamc@378
|
1318 -h, --help display this help and exit
|
adamc@378
|
1319 --help=short display options specific to this package
|
adamc@378
|
1320 --help=recursive display the short help of all the included packages
|
adamc@378
|
1321 -V, --version display version information and exit
|
adam@1315
|
1322 -q, --quiet, --silent do not print \`checking ...' messages
|
adamc@378
|
1323 --cache-file=FILE cache test results in FILE [disabled]
|
adamc@378
|
1324 -C, --config-cache alias for \`--cache-file=config.cache'
|
adamc@378
|
1325 -n, --no-create do not create output files
|
adamc@378
|
1326 --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
adamc@378
|
1327
|
adamc@378
|
1328 Installation directories:
|
adamc@378
|
1329 --prefix=PREFIX install architecture-independent files in PREFIX
|
adamc@1095
|
1330 [$ac_default_prefix]
|
adamc@378
|
1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
adamc@1095
|
1332 [PREFIX]
|
adamc@378
|
1333
|
adamc@378
|
1334 By default, \`make install' will install all the files in
|
adamc@378
|
1335 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
adamc@378
|
1336 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
adamc@378
|
1337 for instance \`--prefix=\$HOME'.
|
adamc@378
|
1338
|
adamc@378
|
1339 For better control, use the options below.
|
adamc@378
|
1340
|
adamc@378
|
1341 Fine tuning of the installation directories:
|
adamc@1095
|
1342 --bindir=DIR user executables [EPREFIX/bin]
|
adamc@1095
|
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
|
adamc@1095
|
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
|
adamc@1095
|
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
adamc@1095
|
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
adamc@1095
|
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
adamc@1095
|
1348 --libdir=DIR object code libraries [EPREFIX/lib]
|
adamc@1095
|
1349 --includedir=DIR C header files [PREFIX/include]
|
adamc@1095
|
1350 --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
adamc@1095
|
1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
adamc@1095
|
1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
adamc@1095
|
1353 --infodir=DIR info documentation [DATAROOTDIR/info]
|
adamc@1095
|
1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
adamc@1095
|
1355 --mandir=DIR man documentation [DATAROOTDIR/man]
|
adamc@1132
|
1356 --docdir=DIR documentation root [DATAROOTDIR/doc/urweb]
|
adamc@1095
|
1357 --htmldir=DIR html documentation [DOCDIR]
|
adamc@1095
|
1358 --dvidir=DIR dvi documentation [DOCDIR]
|
adamc@1095
|
1359 --pdfdir=DIR pdf documentation [DOCDIR]
|
adamc@1095
|
1360 --psdir=DIR ps documentation [DOCDIR]
|
adamc@378
|
1361 _ACEOF
|
adamc@378
|
1362
|
adamc@378
|
1363 cat <<\_ACEOF
|
adamc@1132
|
1364
|
adamc@1132
|
1365 Program names:
|
adamc@1132
|
1366 --program-prefix=PREFIX prepend PREFIX to installed program names
|
adamc@1132
|
1367 --program-suffix=SUFFIX append SUFFIX to installed program names
|
adamc@1132
|
1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
adamc@1132
|
1369
|
adamc@1132
|
1370 System types:
|
adamc@1132
|
1371 --build=BUILD configure for building on BUILD [guessed]
|
adamc@1132
|
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
adamc@378
|
1373 _ACEOF
|
adamc@378
|
1374 fi
|
adamc@378
|
1375
|
adamc@378
|
1376 if test -n "$ac_init_help"; then
|
adamc@1132
|
1377 case $ac_init_help in
|
adam@1561
|
1378 short | recursive ) echo "Configuration of urweb 20110917:";;
|
adamc@1132
|
1379 esac
|
adamc@378
|
1380 cat <<\_ACEOF
|
adamc@378
|
1381
|
adamc@1132
|
1382 Optional Features:
|
adamc@1132
|
1383 --disable-option-checking ignore unrecognized --enable/--with options
|
adamc@1132
|
1384 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
adamc@1132
|
1385 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
adamc@1132
|
1386 --disable-dependency-tracking speeds up one-time build
|
adamc@1132
|
1387 --enable-dependency-tracking do not reject slow dependency extractors
|
adamc@1132
|
1388 --enable-shared[=PKGS] build shared libraries [default=yes]
|
adamc@1132
|
1389 --enable-static[=PKGS] build static libraries [default=yes]
|
adamc@1132
|
1390 --enable-fast-install[=PKGS]
|
adamc@1132
|
1391 optimize for fast installation [default=yes]
|
adamc@1132
|
1392 --disable-libtool-lock avoid locking (might break parallel builds)
|
adamc@1132
|
1393
|
adamc@1132
|
1394 Optional Packages:
|
adamc@1132
|
1395 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
adamc@1132
|
1396 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
adamc@1132
|
1397 --with-pic try to use only PIC/non-PIC objects [default=use
|
adamc@1132
|
1398 both]
|
adamc@1132
|
1399 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
adam@1459
|
1400 --with-sysroot=DIR Search for dependent libraries within DIR
|
adam@1459
|
1401 (or the compiler's sysroot if not specified).
|
adam@1368
|
1402 --with-openssl=DIR root of the OpenSSL directory
|
adam@1441
|
1403 --without-emacs disable installation of Emacs mode
|
adamc@1132
|
1404
|
adamc@1132
|
1405 Some influential environment variables:
|
adamc@1132
|
1406 CC C compiler command
|
adamc@1132
|
1407 CFLAGS C compiler flags
|
adamc@1132
|
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
adamc@1132
|
1409 nonstandard directory <lib dir>
|
adamc@1132
|
1410 LIBS libraries to pass to the linker, e.g. -l<library>
|
adamc@1132
|
1411 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
adamc@1132
|
1412 you have headers in a nonstandard directory <include dir>
|
adamc@1132
|
1413 CPP C preprocessor
|
adamc@1132
|
1414
|
adamc@1132
|
1415 Use these variables to override the choices made by `configure' or to help
|
adamc@1132
|
1416 it to find libraries and programs with nonstandard names/locations.
|
adamc@1132
|
1417
|
adamc@1095
|
1418 Report bugs to the package provider.
|
adamc@378
|
1419 _ACEOF
|
adamc@378
|
1420 ac_status=$?
|
adamc@378
|
1421 fi
|
adamc@378
|
1422
|
adamc@378
|
1423 if test "$ac_init_help" = "recursive"; then
|
adamc@378
|
1424 # If there are subdirs, report their specific --help.
|
adamc@378
|
1425 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
adamc@1095
|
1426 test -d "$ac_dir" ||
|
adamc@1095
|
1427 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
adamc@1095
|
1428 continue
|
adamc@378
|
1429 ac_builddir=.
|
adamc@378
|
1430
|
adamc@378
|
1431 case "$ac_dir" in
|
adamc@378
|
1432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
adamc@378
|
1433 *)
|
adamc@1095
|
1434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
adamc@378
|
1435 # A ".." for each directory in $ac_dir_suffix.
|
adamc@1095
|
1436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
adamc@378
|
1437 case $ac_top_builddir_sub in
|
adamc@378
|
1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
adamc@378
|
1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
adamc@378
|
1440 esac ;;
|
adamc@378
|
1441 esac
|
adamc@378
|
1442 ac_abs_top_builddir=$ac_pwd
|
adamc@378
|
1443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
adamc@378
|
1444 # for backward compatibility:
|
adamc@378
|
1445 ac_top_builddir=$ac_top_build_prefix
|
adamc@378
|
1446
|
adamc@378
|
1447 case $srcdir in
|
adamc@378
|
1448 .) # We are building in place.
|
adamc@378
|
1449 ac_srcdir=.
|
adamc@378
|
1450 ac_top_srcdir=$ac_top_builddir_sub
|
adamc@378
|
1451 ac_abs_top_srcdir=$ac_pwd ;;
|
adamc@378
|
1452 [\\/]* | ?:[\\/]* ) # Absolute name.
|
adamc@378
|
1453 ac_srcdir=$srcdir$ac_dir_suffix;
|
adamc@378
|
1454 ac_top_srcdir=$srcdir
|
adamc@378
|
1455 ac_abs_top_srcdir=$srcdir ;;
|
adamc@378
|
1456 *) # Relative name.
|
adamc@378
|
1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
adamc@378
|
1458 ac_top_srcdir=$ac_top_build_prefix$srcdir
|
adamc@378
|
1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
adamc@378
|
1460 esac
|
adamc@378
|
1461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
adamc@378
|
1462
|
adamc@378
|
1463 cd "$ac_dir" || { ac_status=$?; continue; }
|
adamc@378
|
1464 # Check for guested configure.
|
adamc@378
|
1465 if test -f "$ac_srcdir/configure.gnu"; then
|
adamc@378
|
1466 echo &&
|
adamc@378
|
1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
adamc@378
|
1468 elif test -f "$ac_srcdir/configure"; then
|
adamc@378
|
1469 echo &&
|
adamc@378
|
1470 $SHELL "$ac_srcdir/configure" --help=recursive
|
adamc@378
|
1471 else
|
adamc@1095
|
1472 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
adamc@378
|
1473 fi || ac_status=$?
|
adamc@378
|
1474 cd "$ac_pwd" || { ac_status=$?; break; }
|
adamc@378
|
1475 done
|
adamc@378
|
1476 fi
|
adamc@378
|
1477
|
adamc@378
|
1478 test -n "$ac_init_help" && exit $ac_status
|
adamc@378
|
1479 if $ac_init_version; then
|
adamc@378
|
1480 cat <<\_ACEOF
|
adam@1561
|
1481 urweb configure 20110917
|
adam@1459
|
1482 generated by GNU Autoconf 2.68
|
adam@1315
|
1483
|
adam@1315
|
1484 Copyright (C) 2010 Free Software Foundation, Inc.
|
adamc@378
|
1485 This configure script is free software; the Free Software Foundation
|
adamc@378
|
1486 gives unlimited permission to copy, distribute and modify it.
|
adamc@378
|
1487 _ACEOF
|
adamc@378
|
1488 exit
|
adamc@378
|
1489 fi
|
adamc@1095
|
1490
|
adamc@1095
|
1491 ## ------------------------ ##
|
adamc@1095
|
1492 ## Autoconf initialization. ##
|
adamc@1095
|
1493 ## ------------------------ ##
|
adamc@1132
|
1494
|
adamc@1132
|
1495 # ac_fn_c_try_compile LINENO
|
adamc@1132
|
1496 # --------------------------
|
adamc@1132
|
1497 # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
adamc@1132
|
1498 ac_fn_c_try_compile ()
|
adamc@1132
|
1499 {
|
adamc@1132
|
1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
adamc@1132
|
1501 rm -f conftest.$ac_objext
|
adamc@1132
|
1502 if { { ac_try="$ac_compile"
|
adamc@1132
|
1503 case "(($ac_try" in
|
adamc@1132
|
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
adamc@1132
|
1505 *) ac_try_echo=$ac_try;;
|
adamc@1132
|
1506 esac
|
adamc@1132
|
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
adamc@1132
|
1508 $as_echo "$ac_try_echo"; } >&5
|
adamc@1132
|
1509 (eval "$ac_compile") 2>conftest.err
|
adamc@1132
|
1510 ac_status=$?
|
adamc@1132
|
1511 if test -s conftest.err; then
|
adamc@1132
|
1512 grep -v '^ *+' conftest.err >conftest.er1
|
adamc@1132
|
1513 cat conftest.er1 >&5
|
adamc@1132
|
1514 mv -f conftest.er1 conftest.err
|
adamc@1132
|
1515 fi
|
adamc@1132
|
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1132
|
1517 test $ac_status = 0; } && {
|
adamc@1132
|
1518 test -z "$ac_c_werror_flag" ||
|
adamc@1132
|
1519 test ! -s conftest.err
|
adamc@1132
|
1520 } && test -s conftest.$ac_objext; then :
|
adamc@1132
|
1521 ac_retval=0
|
adamc@1132
|
1522 else
|
adamc@1132
|
1523 $as_echo "$as_me: failed program was:" >&5
|
adamc@1132
|
1524 sed 's/^/| /' conftest.$ac_ext >&5
|
adamc@1132
|
1525
|
adamc@1132
|
1526 ac_retval=1
|
adamc@1132
|
1527 fi
|
adam@1459
|
1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
adamc@1132
|
1529 as_fn_set_status $ac_retval
|
adamc@1132
|
1530
|
adamc@1132
|
1531 } # ac_fn_c_try_compile
|
adamc@1132
|
1532
|
adamc@1149
|
1533 # ac_fn_c_try_cpp LINENO
|
adamc@1149
|
1534 # ----------------------
|
adamc@1149
|
1535 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
adamc@1149
|
1536 ac_fn_c_try_cpp ()
|
adamc@1149
|
1537 {
|
adamc@1149
|
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
adamc@1149
|
1539 if { { ac_try="$ac_cpp conftest.$ac_ext"
|
adamc@1149
|
1540 case "(($ac_try" in
|
adamc@1149
|
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
adamc@1149
|
1542 *) ac_try_echo=$ac_try;;
|
adamc@1149
|
1543 esac
|
adamc@1149
|
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
adamc@1149
|
1545 $as_echo "$ac_try_echo"; } >&5
|
adamc@1149
|
1546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
adamc@1149
|
1547 ac_status=$?
|
adamc@1149
|
1548 if test -s conftest.err; then
|
adamc@1149
|
1549 grep -v '^ *+' conftest.err >conftest.er1
|
adamc@1149
|
1550 cat conftest.er1 >&5
|
adamc@1149
|
1551 mv -f conftest.er1 conftest.err
|
adamc@1149
|
1552 fi
|
adamc@1149
|
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adam@1315
|
1554 test $ac_status = 0; } > conftest.i && {
|
adamc@1149
|
1555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
adamc@1149
|
1556 test ! -s conftest.err
|
adamc@1149
|
1557 }; then :
|
adamc@1149
|
1558 ac_retval=0
|
adamc@1149
|
1559 else
|
adamc@1149
|
1560 $as_echo "$as_me: failed program was:" >&5
|
adamc@1149
|
1561 sed 's/^/| /' conftest.$ac_ext >&5
|
adamc@1149
|
1562
|
adamc@1149
|
1563 ac_retval=1
|
adamc@1149
|
1564 fi
|
adam@1459
|
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
adamc@1149
|
1566 as_fn_set_status $ac_retval
|
adamc@1149
|
1567
|
adamc@1149
|
1568 } # ac_fn_c_try_cpp
|
adamc@1149
|
1569
|
adamc@1149
|
1570 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
adamc@1149
|
1571 # -------------------------------------------------------
|
adamc@1149
|
1572 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
adamc@1149
|
1573 # the include files in INCLUDES and setting the cache variable VAR
|
adamc@1149
|
1574 # accordingly.
|
adamc@1149
|
1575 ac_fn_c_check_header_mongrel ()
|
adamc@1149
|
1576 {
|
adamc@1149
|
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
adam@1459
|
1578 if eval \${$3+:} false; then :
|
adamc@1149
|
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
adamc@1149
|
1580 $as_echo_n "checking for $2... " >&6; }
|
adam@1459
|
1581 if eval \${$3+:} false; then :
|
adamc@1149
|
1582 $as_echo_n "(cached) " >&6
|
adamc@1149
|
1583 fi
|
adamc@1149
|
1584 eval ac_res=\$$3
|
adamc@1149
|
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
adamc@1149
|
1586 $as_echo "$ac_res" >&6; }
|
adamc@1149
|
1587 else
|
adamc@1149
|
1588 # Is the header compilable?
|
adamc@1149
|
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
adamc@1149
|
1590 $as_echo_n "checking $2 usability... " >&6; }
|
adamc@1149
|
1591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
1592 /* end confdefs.h. */
|
adamc@1149
|
1593 $4
|
adamc@1149
|
1594 #include <$2>
|
adamc@1149
|
1595 _ACEOF
|
adamc@1149
|
1596 if ac_fn_c_try_compile "$LINENO"; then :
|
adamc@1149
|
1597 ac_header_compiler=yes
|
adamc@1149
|
1598 else
|
adamc@1149
|
1599 ac_header_compiler=no
|
adamc@1149
|
1600 fi
|
adamc@1149
|
1601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
adamc@1149
|
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
adamc@1149
|
1603 $as_echo "$ac_header_compiler" >&6; }
|
adamc@1149
|
1604
|
adamc@1149
|
1605 # Is the header present?
|
adamc@1149
|
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
adamc@1149
|
1607 $as_echo_n "checking $2 presence... " >&6; }
|
adamc@1149
|
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
1609 /* end confdefs.h. */
|
adamc@1149
|
1610 #include <$2>
|
adamc@1149
|
1611 _ACEOF
|
adamc@1149
|
1612 if ac_fn_c_try_cpp "$LINENO"; then :
|
adamc@1149
|
1613 ac_header_preproc=yes
|
adamc@1149
|
1614 else
|
adamc@1149
|
1615 ac_header_preproc=no
|
adamc@1149
|
1616 fi
|
adam@1315
|
1617 rm -f conftest.err conftest.i conftest.$ac_ext
|
adamc@1149
|
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
adamc@1149
|
1619 $as_echo "$ac_header_preproc" >&6; }
|
adamc@1149
|
1620
|
adamc@1149
|
1621 # So? What about this header?
|
adamc@1149
|
1622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
adamc@1149
|
1623 yes:no: )
|
adamc@1149
|
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
adamc@1149
|
1625 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
adamc@1149
|
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
adamc@1149
|
1627 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
adamc@1149
|
1628 ;;
|
adamc@1149
|
1629 no:yes:* )
|
adamc@1149
|
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
adamc@1149
|
1631 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
adamc@1149
|
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
adamc@1149
|
1633 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
adamc@1149
|
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
adamc@1149
|
1635 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
adamc@1149
|
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
adamc@1149
|
1637 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
adamc@1149
|
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
adamc@1149
|
1639 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
adamc@1149
|
1640 ;;
|
adamc@1149
|
1641 esac
|
adamc@1149
|
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
adamc@1149
|
1643 $as_echo_n "checking for $2... " >&6; }
|
adam@1459
|
1644 if eval \${$3+:} false; then :
|
adamc@1149
|
1645 $as_echo_n "(cached) " >&6
|
adamc@1149
|
1646 else
|
adamc@1149
|
1647 eval "$3=\$ac_header_compiler"
|
adamc@1149
|
1648 fi
|
adamc@1149
|
1649 eval ac_res=\$$3
|
adamc@1149
|
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
adamc@1149
|
1651 $as_echo "$ac_res" >&6; }
|
adamc@1149
|
1652 fi
|
adam@1459
|
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
adamc@1149
|
1654
|
adamc@1149
|
1655 } # ac_fn_c_check_header_mongrel
|
adamc@1149
|
1656
|
adamc@1149
|
1657 # ac_fn_c_try_run LINENO
|
adamc@1149
|
1658 # ----------------------
|
adamc@1149
|
1659 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
adamc@1149
|
1660 # that executables *can* be run.
|
adamc@1149
|
1661 ac_fn_c_try_run ()
|
adamc@1149
|
1662 {
|
adamc@1149
|
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
adamc@1149
|
1664 if { { ac_try="$ac_link"
|
adamc@1149
|
1665 case "(($ac_try" in
|
adamc@1149
|
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
adamc@1149
|
1667 *) ac_try_echo=$ac_try;;
|
adamc@1149
|
1668 esac
|
adamc@1149
|
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
adamc@1149
|
1670 $as_echo "$ac_try_echo"; } >&5
|
adamc@1149
|
1671 (eval "$ac_link") 2>&5
|
adamc@1149
|
1672 ac_status=$?
|
adamc@1149
|
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1149
|
1674 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
adamc@1149
|
1675 { { case "(($ac_try" in
|
adamc@1149
|
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
adamc@1149
|
1677 *) ac_try_echo=$ac_try;;
|
adamc@1149
|
1678 esac
|
adamc@1149
|
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
adamc@1149
|
1680 $as_echo "$ac_try_echo"; } >&5
|
adamc@1149
|
1681 (eval "$ac_try") 2>&5
|
adamc@1149
|
1682 ac_status=$?
|
adamc@1149
|
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1149
|
1684 test $ac_status = 0; }; }; then :
|
adamc@1149
|
1685 ac_retval=0
|
adamc@1149
|
1686 else
|
adamc@1149
|
1687 $as_echo "$as_me: program exited with status $ac_status" >&5
|
adamc@1149
|
1688 $as_echo "$as_me: failed program was:" >&5
|
adamc@1149
|
1689 sed 's/^/| /' conftest.$ac_ext >&5
|
adamc@1149
|
1690
|
adamc@1149
|
1691 ac_retval=$ac_status
|
adamc@1149
|
1692 fi
|
adamc@1149
|
1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
adam@1459
|
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
adamc@1149
|
1695 as_fn_set_status $ac_retval
|
adamc@1149
|
1696
|
adamc@1149
|
1697 } # ac_fn_c_try_run
|
adamc@1149
|
1698
|
adamc@1149
|
1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
adamc@1149
|
1700 # -------------------------------------------------------
|
adamc@1149
|
1701 # Tests whether HEADER exists and can be compiled using the include files in
|
adamc@1149
|
1702 # INCLUDES, setting the cache variable VAR accordingly.
|
adamc@1149
|
1703 ac_fn_c_check_header_compile ()
|
adamc@1149
|
1704 {
|
adamc@1149
|
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
adamc@1149
|
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
adamc@1149
|
1707 $as_echo_n "checking for $2... " >&6; }
|
adam@1459
|
1708 if eval \${$3+:} false; then :
|
adamc@1149
|
1709 $as_echo_n "(cached) " >&6
|
adamc@1149
|
1710 else
|
adamc@1149
|
1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
1712 /* end confdefs.h. */
|
adamc@1149
|
1713 $4
|
adamc@1149
|
1714 #include <$2>
|
adamc@1149
|
1715 _ACEOF
|
adamc@1149
|
1716 if ac_fn_c_try_compile "$LINENO"; then :
|
adamc@1149
|
1717 eval "$3=yes"
|
adamc@1149
|
1718 else
|
adamc@1149
|
1719 eval "$3=no"
|
adamc@1149
|
1720 fi
|
adamc@1149
|
1721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
adamc@1149
|
1722 fi
|
adamc@1149
|
1723 eval ac_res=\$$3
|
adamc@1149
|
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
adamc@1149
|
1725 $as_echo "$ac_res" >&6; }
|
adam@1459
|
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
adamc@1149
|
1727
|
adamc@1149
|
1728 } # ac_fn_c_check_header_compile
|
adamc@1149
|
1729
|
adamc@1132
|
1730 # ac_fn_c_try_link LINENO
|
adamc@1132
|
1731 # -----------------------
|
adamc@1132
|
1732 # Try to link conftest.$ac_ext, and return whether this succeeded.
|
adamc@1132
|
1733 ac_fn_c_try_link ()
|
adamc@1132
|
1734 {
|
adamc@1132
|
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
adamc@1132
|
1736 rm -f conftest.$ac_objext conftest$ac_exeext
|
adamc@1132
|
1737 if { { ac_try="$ac_link"
|
adamc@1132
|
1738 case "(($ac_try" in
|
adamc@1132
|
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
adamc@1132
|
1740 *) ac_try_echo=$ac_try;;
|
adamc@1132
|
1741 esac
|
adamc@1132
|
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
adamc@1132
|
1743 $as_echo "$ac_try_echo"; } >&5
|
adamc@1132
|
1744 (eval "$ac_link") 2>conftest.err
|
adamc@1132
|
1745 ac_status=$?
|
adamc@1132
|
1746 if test -s conftest.err; then
|
adamc@1132
|
1747 grep -v '^ *+' conftest.err >conftest.er1
|
adamc@1132
|
1748 cat conftest.er1 >&5
|
adamc@1132
|
1749 mv -f conftest.er1 conftest.err
|
adamc@1132
|
1750 fi
|
adamc@1132
|
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1132
|
1752 test $ac_status = 0; } && {
|
adamc@1132
|
1753 test -z "$ac_c_werror_flag" ||
|
adamc@1132
|
1754 test ! -s conftest.err
|
adamc@1132
|
1755 } && test -s conftest$ac_exeext && {
|
adamc@1132
|
1756 test "$cross_compiling" = yes ||
|
adamc@1132
|
1757 $as_test_x conftest$ac_exeext
|
adamc@1132
|
1758 }; then :
|
adamc@1132
|
1759 ac_retval=0
|
adamc@1132
|
1760 else
|
adamc@1132
|
1761 $as_echo "$as_me: failed program was:" >&5
|
adamc@1132
|
1762 sed 's/^/| /' conftest.$ac_ext >&5
|
adamc@1132
|
1763
|
adamc@1132
|
1764 ac_retval=1
|
adamc@1132
|
1765 fi
|
adamc@1132
|
1766 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
adamc@1132
|
1767 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
adamc@1132
|
1768 # interfere with the next link command; also delete a directory that is
|
adamc@1132
|
1769 # left behind by Apple's compiler. We do this before executing the actions.
|
adamc@1132
|
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
adam@1459
|
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
adamc@1132
|
1772 as_fn_set_status $ac_retval
|
adamc@1132
|
1773
|
adamc@1132
|
1774 } # ac_fn_c_try_link
|
adamc@1132
|
1775
|
adamc@1132
|
1776 # ac_fn_c_check_func LINENO FUNC VAR
|
adamc@1132
|
1777 # ----------------------------------
|
adamc@1132
|
1778 # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
adamc@1132
|
1779 ac_fn_c_check_func ()
|
adamc@1132
|
1780 {
|
adamc@1132
|
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
adamc@1132
|
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
adamc@1132
|
1783 $as_echo_n "checking for $2... " >&6; }
|
adam@1459
|
1784 if eval \${$3+:} false; then :
|
adamc@1132
|
1785 $as_echo_n "(cached) " >&6
|
adamc@1132
|
1786 else
|
adamc@1132
|
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1132
|
1788 /* end confdefs.h. */
|
adamc@1132
|
1789 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
adamc@1132
|
1790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
adamc@1132
|
1791 #define $2 innocuous_$2
|
adamc@1132
|
1792
|
adamc@1132
|
1793 /* System header to define __stub macros and hopefully few prototypes,
|
adamc@1132
|
1794 which can conflict with char $2 (); below.
|
adamc@1132
|
1795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
adamc@1132
|
1796 <limits.h> exists even on freestanding compilers. */
|
adamc@1132
|
1797
|
adamc@1132
|
1798 #ifdef __STDC__
|
adamc@1132
|
1799 # include <limits.h>
|
adamc@1132
|
1800 #else
|
adamc@1132
|
1801 # include <assert.h>
|
adamc@1132
|
1802 #endif
|
adamc@1132
|
1803
|
adamc@1132
|
1804 #undef $2
|
adamc@1132
|
1805
|
adamc@1132
|
1806 /* Override any GCC internal prototype to avoid an error.
|
adamc@1132
|
1807 Use char because int might match the return type of a GCC
|
adamc@1132
|
1808 builtin and then its argument prototype would still apply. */
|
adamc@1132
|
1809 #ifdef __cplusplus
|
adamc@1132
|
1810 extern "C"
|
adamc@1132
|
1811 #endif
|
adamc@1132
|
1812 char $2 ();
|
adamc@1132
|
1813 /* The GNU C library defines this for functions which it implements
|
adamc@1132
|
1814 to always fail with ENOSYS. Some functions are actually named
|
adamc@1132
|
1815 something starting with __ and the normal name is an alias. */
|
adamc@1132
|
1816 #if defined __stub_$2 || defined __stub___$2
|
adamc@1132
|
1817 choke me
|
adamc@1132
|
1818 #endif
|
adamc@1132
|
1819
|
adamc@1132
|
1820 int
|
adamc@1132
|
1821 main ()
|
adamc@1132
|
1822 {
|
adamc@1132
|
1823 return $2 ();
|
adamc@1132
|
1824 ;
|
adamc@1132
|
1825 return 0;
|
adamc@1132
|
1826 }
|
adamc@1132
|
1827 _ACEOF
|
adamc@1132
|
1828 if ac_fn_c_try_link "$LINENO"; then :
|
adamc@1132
|
1829 eval "$3=yes"
|
adamc@1132
|
1830 else
|
adamc@1132
|
1831 eval "$3=no"
|
adamc@1132
|
1832 fi
|
adamc@1132
|
1833 rm -f core conftest.err conftest.$ac_objext \
|
adamc@1132
|
1834 conftest$ac_exeext conftest.$ac_ext
|
adamc@1132
|
1835 fi
|
adamc@1132
|
1836 eval ac_res=\$$3
|
adamc@1132
|
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
adamc@1132
|
1838 $as_echo "$ac_res" >&6; }
|
adam@1459
|
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
adamc@1132
|
1840
|
adamc@1132
|
1841 } # ac_fn_c_check_func
|
adamc@378
|
1842 cat >config.log <<_ACEOF
|
adamc@378
|
1843 This file contains any messages produced by compilers while
|
adamc@378
|
1844 running configure, to aid debugging if configure makes a mistake.
|
adamc@378
|
1845
|
adam@1561
|
1846 It was created by urweb $as_me 20110917, which was
|
adam@1459
|
1847 generated by GNU Autoconf 2.68. Invocation command line was
|
adamc@378
|
1848
|
adamc@378
|
1849 $ $0 $@
|
adamc@378
|
1850
|
adamc@378
|
1851 _ACEOF
|
adamc@378
|
1852 exec 5>>config.log
|
adamc@378
|
1853 {
|
adamc@378
|
1854 cat <<_ASUNAME
|
adamc@378
|
1855 ## --------- ##
|
adamc@378
|
1856 ## Platform. ##
|
adamc@378
|
1857 ## --------- ##
|
adamc@378
|
1858
|
adamc@378
|
1859 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
adamc@378
|
1860 uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
adamc@378
|
1861 uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
adamc@378
|
1862 uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
adamc@378
|
1863 uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
adamc@378
|
1864
|
adamc@378
|
1865 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
adamc@378
|
1866 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
adamc@378
|
1867
|
adamc@378
|
1868 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
adamc@378
|
1869 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
adamc@378
|
1870 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
adamc@378
|
1871 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
adamc@378
|
1872 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
adamc@378
|
1873 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
adamc@378
|
1874 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
adamc@378
|
1875
|
adamc@378
|
1876 _ASUNAME
|
adamc@378
|
1877
|
adamc@378
|
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@378
|
1879 for as_dir in $PATH
|
adamc@378
|
1880 do
|
adamc@378
|
1881 IFS=$as_save_IFS
|
adamc@378
|
1882 test -z "$as_dir" && as_dir=.
|
adamc@1095
|
1883 $as_echo "PATH: $as_dir"
|
adamc@1095
|
1884 done
|
adamc@378
|
1885 IFS=$as_save_IFS
|
adamc@378
|
1886
|
adamc@378
|
1887 } >&5
|
adamc@378
|
1888
|
adamc@378
|
1889 cat >&5 <<_ACEOF
|
adamc@378
|
1890
|
adamc@378
|
1891
|
adamc@378
|
1892 ## ----------- ##
|
adamc@378
|
1893 ## Core tests. ##
|
adamc@378
|
1894 ## ----------- ##
|
adamc@378
|
1895
|
adamc@378
|
1896 _ACEOF
|
adamc@378
|
1897
|
adamc@378
|
1898
|
adamc@378
|
1899 # Keep a trace of the command line.
|
adamc@378
|
1900 # Strip out --no-create and --no-recursion so they do not pile up.
|
adamc@378
|
1901 # Strip out --silent because we don't want to record it for future runs.
|
adamc@378
|
1902 # Also quote any args containing shell meta-characters.
|
adamc@378
|
1903 # Make two passes to allow for proper duplicate-argument suppression.
|
adamc@378
|
1904 ac_configure_args=
|
adamc@378
|
1905 ac_configure_args0=
|
adamc@378
|
1906 ac_configure_args1=
|
adamc@378
|
1907 ac_must_keep_next=false
|
adamc@378
|
1908 for ac_pass in 1 2
|
adamc@378
|
1909 do
|
adamc@378
|
1910 for ac_arg
|
adamc@378
|
1911 do
|
adamc@378
|
1912 case $ac_arg in
|
adamc@378
|
1913 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
adamc@378
|
1914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
adamc@378
|
1915 | -silent | --silent | --silen | --sile | --sil)
|
adamc@378
|
1916 continue ;;
|
adamc@378
|
1917 *\'*)
|
adamc@1095
|
1918 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
adamc@378
|
1919 esac
|
adamc@378
|
1920 case $ac_pass in
|
adamc@1095
|
1921 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
adamc@378
|
1922 2)
|
adamc@1095
|
1923 as_fn_append ac_configure_args1 " '$ac_arg'"
|
adamc@378
|
1924 if test $ac_must_keep_next = true; then
|
adamc@378
|
1925 ac_must_keep_next=false # Got value, back to normal.
|
adamc@378
|
1926 else
|
adamc@378
|
1927 case $ac_arg in
|
adamc@378
|
1928 *=* | --config-cache | -C | -disable-* | --disable-* \
|
adamc@378
|
1929 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
adamc@378
|
1930 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
adamc@378
|
1931 | -with-* | --with-* | -without-* | --without-* | --x)
|
adamc@378
|
1932 case "$ac_configure_args0 " in
|
adamc@378
|
1933 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
adamc@378
|
1934 esac
|
adamc@378
|
1935 ;;
|
adamc@378
|
1936 -* ) ac_must_keep_next=true ;;
|
adamc@378
|
1937 esac
|
adamc@378
|
1938 fi
|
adamc@1095
|
1939 as_fn_append ac_configure_args " '$ac_arg'"
|
adamc@378
|
1940 ;;
|
adamc@378
|
1941 esac
|
adamc@378
|
1942 done
|
adamc@378
|
1943 done
|
adamc@1095
|
1944 { ac_configure_args0=; unset ac_configure_args0;}
|
adamc@1095
|
1945 { ac_configure_args1=; unset ac_configure_args1;}
|
adamc@378
|
1946
|
adamc@378
|
1947 # When interrupted or exit'd, cleanup temporary files, and complete
|
adamc@378
|
1948 # config.log. We remove comments because anyway the quotes in there
|
adamc@378
|
1949 # would cause problems or look ugly.
|
adamc@378
|
1950 # WARNING: Use '\'' to represent an apostrophe within the trap.
|
adamc@378
|
1951 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
adamc@378
|
1952 trap 'exit_status=$?
|
adamc@378
|
1953 # Save into config.log some information that might help in debugging.
|
adamc@378
|
1954 {
|
adamc@378
|
1955 echo
|
adamc@378
|
1956
|
adam@1315
|
1957 $as_echo "## ---------------- ##
|
adamc@378
|
1958 ## Cache variables. ##
|
adam@1315
|
1959 ## ---------------- ##"
|
adamc@378
|
1960 echo
|
adamc@378
|
1961 # The following way of writing the cache mishandles newlines in values,
|
adamc@378
|
1962 (
|
adamc@378
|
1963 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
adamc@378
|
1964 eval ac_val=\$$ac_var
|
adamc@378
|
1965 case $ac_val in #(
|
adamc@378
|
1966 *${as_nl}*)
|
adamc@378
|
1967 case $ac_var in #(
|
adamc@1095
|
1968 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
adamc@1095
|
1969 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
adamc@378
|
1970 esac
|
adamc@378
|
1971 case $ac_var in #(
|
adamc@378
|
1972 _ | IFS | as_nl) ;; #(
|
adamc@1095
|
1973 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
adamc@1095
|
1974 *) { eval $ac_var=; unset $ac_var;} ;;
|
adamc@378
|
1975 esac ;;
|
adamc@378
|
1976 esac
|
adamc@378
|
1977 done
|
adamc@378
|
1978 (set) 2>&1 |
|
adamc@378
|
1979 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
adamc@378
|
1980 *${as_nl}ac_space=\ *)
|
adamc@378
|
1981 sed -n \
|
adamc@378
|
1982 "s/'\''/'\''\\\\'\'''\''/g;
|
adamc@378
|
1983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
adamc@378
|
1984 ;; #(
|
adamc@378
|
1985 *)
|
adamc@378
|
1986 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
adamc@378
|
1987 ;;
|
adamc@378
|
1988 esac |
|
adamc@378
|
1989 sort
|
adamc@378
|
1990 )
|
adamc@378
|
1991 echo
|
adamc@378
|
1992
|
adam@1315
|
1993 $as_echo "## ----------------- ##
|
adamc@378
|
1994 ## Output variables. ##
|
adam@1315
|
1995 ## ----------------- ##"
|
adamc@378
|
1996 echo
|
adamc@378
|
1997 for ac_var in $ac_subst_vars
|
adamc@378
|
1998 do
|
adamc@378
|
1999 eval ac_val=\$$ac_var
|
adamc@378
|
2000 case $ac_val in
|
adamc@1095
|
2001 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
adamc@378
|
2002 esac
|
adamc@1095
|
2003 $as_echo "$ac_var='\''$ac_val'\''"
|
adamc@378
|
2004 done | sort
|
adamc@378
|
2005 echo
|
adamc@378
|
2006
|
adamc@378
|
2007 if test -n "$ac_subst_files"; then
|
adam@1315
|
2008 $as_echo "## ------------------- ##
|
adamc@378
|
2009 ## File substitutions. ##
|
adam@1315
|
2010 ## ------------------- ##"
|
adamc@378
|
2011 echo
|
adamc@378
|
2012 for ac_var in $ac_subst_files
|
adamc@378
|
2013 do
|
adamc@378
|
2014 eval ac_val=\$$ac_var
|
adamc@378
|
2015 case $ac_val in
|
adamc@1095
|
2016 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
adamc@378
|
2017 esac
|
adamc@1095
|
2018 $as_echo "$ac_var='\''$ac_val'\''"
|
adamc@378
|
2019 done | sort
|
adamc@378
|
2020 echo
|
adamc@378
|
2021 fi
|
adamc@378
|
2022
|
adamc@378
|
2023 if test -s confdefs.h; then
|
adam@1315
|
2024 $as_echo "## ----------- ##
|
adamc@378
|
2025 ## confdefs.h. ##
|
adam@1315
|
2026 ## ----------- ##"
|
adamc@378
|
2027 echo
|
adamc@378
|
2028 cat confdefs.h
|
adamc@378
|
2029 echo
|
adamc@378
|
2030 fi
|
adamc@378
|
2031 test "$ac_signal" != 0 &&
|
adamc@1095
|
2032 $as_echo "$as_me: caught signal $ac_signal"
|
adamc@1095
|
2033 $as_echo "$as_me: exit $exit_status"
|
adamc@378
|
2034 } >&5
|
adamc@378
|
2035 rm -f core *.core core.conftest.* &&
|
adamc@378
|
2036 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
adamc@378
|
2037 exit $exit_status
|
adamc@378
|
2038 ' 0
|
adamc@378
|
2039 for ac_signal in 1 2 13 15; do
|
adamc@1095
|
2040 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
adamc@378
|
2041 done
|
adamc@378
|
2042 ac_signal=0
|
adamc@378
|
2043
|
adamc@378
|
2044 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
adamc@378
|
2045 rm -f -r conftest* confdefs.h
|
adamc@378
|
2046
|
adamc@1095
|
2047 $as_echo "/* confdefs.h */" > confdefs.h
|
adamc@1095
|
2048
|
adamc@378
|
2049 # Predefined preprocessor variables.
|
adamc@378
|
2050
|
adamc@378
|
2051 cat >>confdefs.h <<_ACEOF
|
adamc@378
|
2052 #define PACKAGE_NAME "$PACKAGE_NAME"
|
adamc@378
|
2053 _ACEOF
|
adamc@378
|
2054
|
adamc@378
|
2055 cat >>confdefs.h <<_ACEOF
|
adamc@378
|
2056 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
adamc@378
|
2057 _ACEOF
|
adamc@378
|
2058
|
adamc@378
|
2059 cat >>confdefs.h <<_ACEOF
|
adamc@378
|
2060 #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
adamc@378
|
2061 _ACEOF
|
adamc@378
|
2062
|
adamc@378
|
2063 cat >>confdefs.h <<_ACEOF
|
adamc@378
|
2064 #define PACKAGE_STRING "$PACKAGE_STRING"
|
adamc@378
|
2065 _ACEOF
|
adamc@378
|
2066
|
adamc@378
|
2067 cat >>confdefs.h <<_ACEOF
|
adamc@378
|
2068 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
adamc@378
|
2069 _ACEOF
|
adamc@378
|
2070
|
adamc@1095
|
2071 cat >>confdefs.h <<_ACEOF
|
adamc@1095
|
2072 #define PACKAGE_URL "$PACKAGE_URL"
|
adamc@1095
|
2073 _ACEOF
|
adamc@1095
|
2074
|
adamc@378
|
2075
|
adamc@378
|
2076 # Let the site file select an alternate cache file if it wants to.
|
adamc@1095
|
2077 # Prefer an explicitly selected file to automatically selected ones.
|
adamc@1095
|
2078 ac_site_file1=NONE
|
adamc@1095
|
2079 ac_site_file2=NONE
|
adamc@378
|
2080 if test -n "$CONFIG_SITE"; then
|
adam@1315
|
2081 # We do not want a PATH search for config.site.
|
adam@1315
|
2082 case $CONFIG_SITE in #((
|
adam@1315
|
2083 -*) ac_site_file1=./$CONFIG_SITE;;
|
adam@1315
|
2084 */*) ac_site_file1=$CONFIG_SITE;;
|
adam@1315
|
2085 *) ac_site_file1=./$CONFIG_SITE;;
|
adam@1315
|
2086 esac
|
adamc@378
|
2087 elif test "x$prefix" != xNONE; then
|
adamc@1095
|
2088 ac_site_file1=$prefix/share/config.site
|
adamc@1095
|
2089 ac_site_file2=$prefix/etc/config.site
|
adamc@378
|
2090 else
|
adamc@1095
|
2091 ac_site_file1=$ac_default_prefix/share/config.site
|
adamc@1095
|
2092 ac_site_file2=$ac_default_prefix/etc/config.site
|
adamc@378
|
2093 fi
|
adamc@1095
|
2094 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
adamc@378
|
2095 do
|
adamc@1095
|
2096 test "x$ac_site_file" = xNONE && continue
|
adamc@1095
|
2097 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
adamc@1095
|
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
adamc@1095
|
2099 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
adamc@378
|
2100 sed 's/^/| /' "$ac_site_file" >&5
|
adam@1315
|
2101 . "$ac_site_file" \
|
adam@1315
|
2102 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
adam@1315
|
2103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
adam@1315
|
2104 as_fn_error $? "failed to load site script $ac_site_file
|
adam@1459
|
2105 See \`config.log' for more details" "$LINENO" 5; }
|
adamc@378
|
2106 fi
|
adamc@378
|
2107 done
|
adamc@378
|
2108
|
adamc@378
|
2109 if test -r "$cache_file"; then
|
adamc@1095
|
2110 # Some versions of bash will fail to source /dev/null (special files
|
adamc@1095
|
2111 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
adamc@1095
|
2112 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
adamc@1095
|
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
adamc@1095
|
2114 $as_echo "$as_me: loading cache $cache_file" >&6;}
|
adamc@378
|
2115 case $cache_file in
|
adamc@378
|
2116 [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
adamc@378
|
2117 *) . "./$cache_file";;
|
adamc@378
|
2118 esac
|
adamc@378
|
2119 fi
|
adamc@378
|
2120 else
|
adamc@1095
|
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
adamc@1095
|
2122 $as_echo "$as_me: creating cache $cache_file" >&6;}
|
adamc@378
|
2123 >$cache_file
|
adamc@378
|
2124 fi
|
adamc@378
|
2125
|
adamc@378
|
2126 # Check that the precious variables saved in the cache have kept the same
|
adamc@378
|
2127 # value.
|
adamc@378
|
2128 ac_cache_corrupted=false
|
adamc@378
|
2129 for ac_var in $ac_precious_vars; do
|
adamc@378
|
2130 eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
adamc@378
|
2131 eval ac_new_set=\$ac_env_${ac_var}_set
|
adamc@378
|
2132 eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
adamc@378
|
2133 eval ac_new_val=\$ac_env_${ac_var}_value
|
adamc@378
|
2134 case $ac_old_set,$ac_new_set in
|
adamc@378
|
2135 set,)
|
adamc@1095
|
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
adamc@1095
|
2137 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
adamc@378
|
2138 ac_cache_corrupted=: ;;
|
adamc@378
|
2139 ,set)
|
adamc@1095
|
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
adamc@1095
|
2141 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
adamc@378
|
2142 ac_cache_corrupted=: ;;
|
adamc@378
|
2143 ,);;
|
adamc@378
|
2144 *)
|
adamc@378
|
2145 if test "x$ac_old_val" != "x$ac_new_val"; then
|
adamc@1095
|
2146 # differences in whitespace do not lead to failure.
|
adamc@1095
|
2147 ac_old_val_w=`echo x $ac_old_val`
|
adamc@1095
|
2148 ac_new_val_w=`echo x $ac_new_val`
|
adamc@1095
|
2149 if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
adamc@1095
|
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
adamc@1095
|
2151 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
adamc@1095
|
2152 ac_cache_corrupted=:
|
adamc@1095
|
2153 else
|
adamc@1095
|
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
adamc@1095
|
2155 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
adamc@1095
|
2156 eval $ac_var=\$ac_old_val
|
adamc@1095
|
2157 fi
|
adamc@1095
|
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
adamc@1095
|
2159 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
adamc@1095
|
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
adamc@1095
|
2161 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
adamc@378
|
2162 fi;;
|
adamc@378
|
2163 esac
|
adamc@378
|
2164 # Pass precious variables to config.status.
|
adamc@378
|
2165 if test "$ac_new_set" = set; then
|
adamc@378
|
2166 case $ac_new_val in
|
adamc@1095
|
2167 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
adamc@378
|
2168 *) ac_arg=$ac_var=$ac_new_val ;;
|
adamc@378
|
2169 esac
|
adamc@378
|
2170 case " $ac_configure_args " in
|
adamc@378
|
2171 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
adamc@1095
|
2172 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
adamc@378
|
2173 esac
|
adamc@378
|
2174 fi
|
adamc@378
|
2175 done
|
adamc@378
|
2176 if $ac_cache_corrupted; then
|
adamc@1095
|
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
adamc@1095
|
2178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
adamc@1095
|
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
adamc@1095
|
2180 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
adam@1315
|
2181 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
adamc@378
|
2182 fi
|
adamc@1095
|
2183 ## -------------------- ##
|
adamc@1095
|
2184 ## Main body of script. ##
|
adamc@1095
|
2185 ## -------------------- ##
|
adamc@378
|
2186
|
adamc@378
|
2187 ac_ext=c
|
adamc@378
|
2188 ac_cpp='$CPP $CPPFLAGS'
|
adamc@378
|
2189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
adamc@378
|
2190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
adamc@378
|
2191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
adamc@378
|
2192
|
adamc@378
|
2193
|
adam@1561
|
2194 WORKING_VERSION=0
|
adamc@1149
|
2195 ac_ext=c
|
adamc@1149
|
2196 ac_cpp='$CPP $CPPFLAGS'
|
adamc@1149
|
2197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
adamc@1149
|
2198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
adamc@1149
|
2199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
adamc@1149
|
2200 if test -n "$ac_tool_prefix"; then
|
adamc@1149
|
2201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
adamc@1149
|
2202 set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
adamc@1149
|
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1149
|
2204 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
2205 if ${ac_cv_prog_CC+:} false; then :
|
adamc@1149
|
2206 $as_echo_n "(cached) " >&6
|
adamc@1149
|
2207 else
|
adamc@1149
|
2208 if test -n "$CC"; then
|
adamc@1149
|
2209 ac_cv_prog_CC="$CC" # Let the user override the test.
|
adamc@1149
|
2210 else
|
adamc@1149
|
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1149
|
2212 for as_dir in $PATH
|
adamc@1149
|
2213 do
|
adamc@1149
|
2214 IFS=$as_save_IFS
|
adamc@1149
|
2215 test -z "$as_dir" && as_dir=.
|
adamc@1149
|
2216 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1149
|
2217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1149
|
2218 ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
adamc@1149
|
2219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1149
|
2220 break 2
|
adamc@1149
|
2221 fi
|
adamc@1149
|
2222 done
|
adamc@1149
|
2223 done
|
adamc@1149
|
2224 IFS=$as_save_IFS
|
adamc@1149
|
2225
|
adamc@1149
|
2226 fi
|
adamc@1149
|
2227 fi
|
adamc@1149
|
2228 CC=$ac_cv_prog_CC
|
adamc@1149
|
2229 if test -n "$CC"; then
|
adamc@1149
|
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
adamc@1149
|
2231 $as_echo "$CC" >&6; }
|
adamc@1149
|
2232 else
|
adamc@1149
|
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1149
|
2234 $as_echo "no" >&6; }
|
adamc@1149
|
2235 fi
|
adamc@1149
|
2236
|
adamc@1149
|
2237
|
adamc@1149
|
2238 fi
|
adamc@1149
|
2239 if test -z "$ac_cv_prog_CC"; then
|
adamc@1149
|
2240 ac_ct_CC=$CC
|
adamc@1149
|
2241 # Extract the first word of "gcc", so it can be a program name with args.
|
adamc@1149
|
2242 set dummy gcc; ac_word=$2
|
adamc@1149
|
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1149
|
2244 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
2245 if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
adamc@1149
|
2246 $as_echo_n "(cached) " >&6
|
adamc@1149
|
2247 else
|
adamc@1149
|
2248 if test -n "$ac_ct_CC"; then
|
adamc@1149
|
2249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
adamc@1149
|
2250 else
|
adamc@1149
|
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1149
|
2252 for as_dir in $PATH
|
adamc@1149
|
2253 do
|
adamc@1149
|
2254 IFS=$as_save_IFS
|
adamc@1149
|
2255 test -z "$as_dir" && as_dir=.
|
adamc@1149
|
2256 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1149
|
2257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1149
|
2258 ac_cv_prog_ac_ct_CC="gcc"
|
adamc@1149
|
2259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1149
|
2260 break 2
|
adamc@1149
|
2261 fi
|
adamc@1149
|
2262 done
|
adamc@1149
|
2263 done
|
adamc@1149
|
2264 IFS=$as_save_IFS
|
adamc@1149
|
2265
|
adamc@1149
|
2266 fi
|
adamc@1149
|
2267 fi
|
adamc@1149
|
2268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
adamc@1149
|
2269 if test -n "$ac_ct_CC"; then
|
adamc@1149
|
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
adamc@1149
|
2271 $as_echo "$ac_ct_CC" >&6; }
|
adamc@1149
|
2272 else
|
adamc@1149
|
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1149
|
2274 $as_echo "no" >&6; }
|
adamc@1149
|
2275 fi
|
adamc@1149
|
2276
|
adamc@1149
|
2277 if test "x$ac_ct_CC" = x; then
|
adamc@1149
|
2278 CC=""
|
adamc@1149
|
2279 else
|
adamc@1149
|
2280 case $cross_compiling:$ac_tool_warned in
|
adamc@1149
|
2281 yes:)
|
adamc@1149
|
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
adamc@1149
|
2283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
adamc@1149
|
2284 ac_tool_warned=yes ;;
|
adamc@1149
|
2285 esac
|
adamc@1149
|
2286 CC=$ac_ct_CC
|
adamc@1149
|
2287 fi
|
adamc@1149
|
2288 else
|
adamc@1149
|
2289 CC="$ac_cv_prog_CC"
|
adamc@1149
|
2290 fi
|
adamc@1149
|
2291
|
adamc@1149
|
2292 if test -z "$CC"; then
|
adamc@1149
|
2293 if test -n "$ac_tool_prefix"; then
|
adamc@1149
|
2294 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
adamc@1149
|
2295 set dummy ${ac_tool_prefix}cc; ac_word=$2
|
adamc@1149
|
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1149
|
2297 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
2298 if ${ac_cv_prog_CC+:} false; then :
|
adamc@1149
|
2299 $as_echo_n "(cached) " >&6
|
adamc@1149
|
2300 else
|
adamc@1149
|
2301 if test -n "$CC"; then
|
adamc@1149
|
2302 ac_cv_prog_CC="$CC" # Let the user override the test.
|
adamc@1149
|
2303 else
|
adamc@1149
|
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1149
|
2305 for as_dir in $PATH
|
adamc@1149
|
2306 do
|
adamc@1149
|
2307 IFS=$as_save_IFS
|
adamc@1149
|
2308 test -z "$as_dir" && as_dir=.
|
adamc@1149
|
2309 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1149
|
2310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1149
|
2311 ac_cv_prog_CC="${ac_tool_prefix}cc"
|
adamc@1149
|
2312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1149
|
2313 break 2
|
adamc@1149
|
2314 fi
|
adamc@1149
|
2315 done
|
adamc@1149
|
2316 done
|
adamc@1149
|
2317 IFS=$as_save_IFS
|
adamc@1149
|
2318
|
adamc@1149
|
2319 fi
|
adamc@1149
|
2320 fi
|
adamc@1149
|
2321 CC=$ac_cv_prog_CC
|
adamc@1149
|
2322 if test -n "$CC"; then
|
adamc@1149
|
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
adamc@1149
|
2324 $as_echo "$CC" >&6; }
|
adamc@1149
|
2325 else
|
adamc@1149
|
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1149
|
2327 $as_echo "no" >&6; }
|
adamc@1149
|
2328 fi
|
adamc@1149
|
2329
|
adamc@1149
|
2330
|
adamc@1149
|
2331 fi
|
adamc@1149
|
2332 fi
|
adamc@1149
|
2333 if test -z "$CC"; then
|
adamc@1149
|
2334 # Extract the first word of "cc", so it can be a program name with args.
|
adamc@1149
|
2335 set dummy cc; ac_word=$2
|
adamc@1149
|
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1149
|
2337 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
2338 if ${ac_cv_prog_CC+:} false; then :
|
adamc@1149
|
2339 $as_echo_n "(cached) " >&6
|
adamc@1149
|
2340 else
|
adamc@1149
|
2341 if test -n "$CC"; then
|
adamc@1149
|
2342 ac_cv_prog_CC="$CC" # Let the user override the test.
|
adamc@1149
|
2343 else
|
adamc@1149
|
2344 ac_prog_rejected=no
|
adamc@1149
|
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1149
|
2346 for as_dir in $PATH
|
adamc@1149
|
2347 do
|
adamc@1149
|
2348 IFS=$as_save_IFS
|
adamc@1149
|
2349 test -z "$as_dir" && as_dir=.
|
adamc@1149
|
2350 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1149
|
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1149
|
2352 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
adamc@1149
|
2353 ac_prog_rejected=yes
|
adamc@1149
|
2354 continue
|
adamc@1149
|
2355 fi
|
adamc@1149
|
2356 ac_cv_prog_CC="cc"
|
adamc@1149
|
2357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1149
|
2358 break 2
|
adamc@1149
|
2359 fi
|
adamc@1149
|
2360 done
|
adamc@1149
|
2361 done
|
adamc@1149
|
2362 IFS=$as_save_IFS
|
adamc@1149
|
2363
|
adamc@1149
|
2364 if test $ac_prog_rejected = yes; then
|
adamc@1149
|
2365 # We found a bogon in the path, so make sure we never use it.
|
adamc@1149
|
2366 set dummy $ac_cv_prog_CC
|
adamc@1149
|
2367 shift
|
adamc@1149
|
2368 if test $# != 0; then
|
adamc@1149
|
2369 # We chose a different compiler from the bogus one.
|
adamc@1149
|
2370 # However, it has the same basename, so the bogon will be chosen
|
adamc@1149
|
2371 # first if we set CC to just the basename; use the full file name.
|
adamc@1149
|
2372 shift
|
adamc@1149
|
2373 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
adamc@1149
|
2374 fi
|
adamc@1149
|
2375 fi
|
adamc@1149
|
2376 fi
|
adamc@1149
|
2377 fi
|
adamc@1149
|
2378 CC=$ac_cv_prog_CC
|
adamc@1149
|
2379 if test -n "$CC"; then
|
adamc@1149
|
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
adamc@1149
|
2381 $as_echo "$CC" >&6; }
|
adamc@1149
|
2382 else
|
adamc@1149
|
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1149
|
2384 $as_echo "no" >&6; }
|
adamc@1149
|
2385 fi
|
adamc@1149
|
2386
|
adamc@1149
|
2387
|
adamc@1149
|
2388 fi
|
adamc@1149
|
2389 if test -z "$CC"; then
|
adamc@1149
|
2390 if test -n "$ac_tool_prefix"; then
|
adamc@1149
|
2391 for ac_prog in cl.exe
|
adamc@1149
|
2392 do
|
adamc@1149
|
2393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
adamc@1149
|
2394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
adamc@1149
|
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1149
|
2396 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
2397 if ${ac_cv_prog_CC+:} false; then :
|
adamc@1149
|
2398 $as_echo_n "(cached) " >&6
|
adamc@1149
|
2399 else
|
adamc@1149
|
2400 if test -n "$CC"; then
|
adamc@1149
|
2401 ac_cv_prog_CC="$CC" # Let the user override the test.
|
adamc@1149
|
2402 else
|
adamc@1149
|
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1149
|
2404 for as_dir in $PATH
|
adamc@1149
|
2405 do
|
adamc@1149
|
2406 IFS=$as_save_IFS
|
adamc@1149
|
2407 test -z "$as_dir" && as_dir=.
|
adamc@1149
|
2408 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1149
|
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1149
|
2410 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
adamc@1149
|
2411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1149
|
2412 break 2
|
adamc@1149
|
2413 fi
|
adamc@1149
|
2414 done
|
adamc@1149
|
2415 done
|
adamc@1149
|
2416 IFS=$as_save_IFS
|
adamc@1149
|
2417
|
adamc@1149
|
2418 fi
|
adamc@1149
|
2419 fi
|
adamc@1149
|
2420 CC=$ac_cv_prog_CC
|
adamc@1149
|
2421 if test -n "$CC"; then
|
adamc@1149
|
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
adamc@1149
|
2423 $as_echo "$CC" >&6; }
|
adamc@1149
|
2424 else
|
adamc@1149
|
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1149
|
2426 $as_echo "no" >&6; }
|
adamc@1149
|
2427 fi
|
adamc@1149
|
2428
|
adamc@1149
|
2429
|
adamc@1149
|
2430 test -n "$CC" && break
|
adamc@1149
|
2431 done
|
adamc@1149
|
2432 fi
|
adamc@1149
|
2433 if test -z "$CC"; then
|
adamc@1149
|
2434 ac_ct_CC=$CC
|
adamc@1149
|
2435 for ac_prog in cl.exe
|
adamc@1149
|
2436 do
|
adamc@1149
|
2437 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
adamc@1149
|
2438 set dummy $ac_prog; ac_word=$2
|
adamc@1149
|
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1149
|
2440 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
2441 if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
adamc@1149
|
2442 $as_echo_n "(cached) " >&6
|
adamc@1149
|
2443 else
|
adamc@1149
|
2444 if test -n "$ac_ct_CC"; then
|
adamc@1149
|
2445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
adamc@1149
|
2446 else
|
adamc@1149
|
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1149
|
2448 for as_dir in $PATH
|
adamc@1149
|
2449 do
|
adamc@1149
|
2450 IFS=$as_save_IFS
|
adamc@1149
|
2451 test -z "$as_dir" && as_dir=.
|
adamc@1149
|
2452 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1149
|
2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1149
|
2454 ac_cv_prog_ac_ct_CC="$ac_prog"
|
adamc@1149
|
2455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1149
|
2456 break 2
|
adamc@1149
|
2457 fi
|
adamc@1149
|
2458 done
|
adamc@1149
|
2459 done
|
adamc@1149
|
2460 IFS=$as_save_IFS
|
adamc@1149
|
2461
|
adamc@1149
|
2462 fi
|
adamc@1149
|
2463 fi
|
adamc@1149
|
2464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
adamc@1149
|
2465 if test -n "$ac_ct_CC"; then
|
adamc@1149
|
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
adamc@1149
|
2467 $as_echo "$ac_ct_CC" >&6; }
|
adamc@1149
|
2468 else
|
adamc@1149
|
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1149
|
2470 $as_echo "no" >&6; }
|
adamc@1149
|
2471 fi
|
adamc@1149
|
2472
|
adamc@1149
|
2473
|
adamc@1149
|
2474 test -n "$ac_ct_CC" && break
|
adamc@1149
|
2475 done
|
adamc@1149
|
2476
|
adamc@1149
|
2477 if test "x$ac_ct_CC" = x; then
|
adamc@1149
|
2478 CC=""
|
adamc@1149
|
2479 else
|
adamc@1149
|
2480 case $cross_compiling:$ac_tool_warned in
|
adamc@1149
|
2481 yes:)
|
adamc@1149
|
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
adamc@1149
|
2483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
adamc@1149
|
2484 ac_tool_warned=yes ;;
|
adamc@1149
|
2485 esac
|
adamc@1149
|
2486 CC=$ac_ct_CC
|
adamc@1149
|
2487 fi
|
adamc@1149
|
2488 fi
|
adamc@1149
|
2489
|
adamc@1149
|
2490 fi
|
adamc@1149
|
2491
|
adamc@1149
|
2492
|
adamc@1149
|
2493 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
adamc@1149
|
2494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
adam@1315
|
2495 as_fn_error $? "no acceptable C compiler found in \$PATH
|
adam@1459
|
2496 See \`config.log' for more details" "$LINENO" 5; }
|
adamc@1149
|
2497
|
adamc@1149
|
2498 # Provide some information about the compiler.
|
adamc@1149
|
2499 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
adamc@1149
|
2500 set X $ac_compile
|
adamc@1149
|
2501 ac_compiler=$2
|
adamc@1149
|
2502 for ac_option in --version -v -V -qversion; do
|
adamc@1149
|
2503 { { ac_try="$ac_compiler $ac_option >&5"
|
adamc@1149
|
2504 case "(($ac_try" in
|
adamc@1149
|
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
adamc@1149
|
2506 *) ac_try_echo=$ac_try;;
|
adamc@1149
|
2507 esac
|
adamc@1149
|
2508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
adamc@1149
|
2509 $as_echo "$ac_try_echo"; } >&5
|
adamc@1149
|
2510 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
adamc@1149
|
2511 ac_status=$?
|
adamc@1149
|
2512 if test -s conftest.err; then
|
adamc@1149
|
2513 sed '10a\
|
adamc@1149
|
2514 ... rest of stderr output deleted ...
|
adamc@1149
|
2515 10q' conftest.err >conftest.er1
|
adamc@1149
|
2516 cat conftest.er1 >&5
|
adamc@1149
|
2517 fi
|
adamc@1149
|
2518 rm -f conftest.er1 conftest.err
|
adamc@1149
|
2519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1149
|
2520 test $ac_status = 0; }
|
adamc@1149
|
2521 done
|
adamc@1149
|
2522
|
adamc@1149
|
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
2524 /* end confdefs.h. */
|
adamc@1149
|
2525
|
adamc@1149
|
2526 int
|
adamc@1149
|
2527 main ()
|
adamc@1149
|
2528 {
|
adamc@1149
|
2529
|
adamc@1149
|
2530 ;
|
adamc@1149
|
2531 return 0;
|
adamc@1149
|
2532 }
|
adamc@1149
|
2533 _ACEOF
|
adamc@1149
|
2534 ac_clean_files_save=$ac_clean_files
|
adamc@1149
|
2535 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
adamc@1149
|
2536 # Try to create an executable without -o first, disregard a.out.
|
adamc@1149
|
2537 # It will help us diagnose broken compilers, and finding out an intuition
|
adamc@1149
|
2538 # of exeext.
|
adamc@1149
|
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
adamc@1149
|
2540 $as_echo_n "checking whether the C compiler works... " >&6; }
|
adamc@1149
|
2541 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
adamc@1149
|
2542
|
adamc@1149
|
2543 # The possible output files:
|
adamc@1149
|
2544 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
adamc@1149
|
2545
|
adamc@1149
|
2546 ac_rmfiles=
|
adamc@1149
|
2547 for ac_file in $ac_files
|
adamc@1149
|
2548 do
|
adamc@1149
|
2549 case $ac_file in
|
adamc@1149
|
2550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
adamc@1149
|
2551 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
adamc@1149
|
2552 esac
|
adamc@1149
|
2553 done
|
adamc@1149
|
2554 rm -f $ac_rmfiles
|
adamc@1149
|
2555
|
adamc@1149
|
2556 if { { ac_try="$ac_link_default"
|
adamc@1149
|
2557 case "(($ac_try" in
|
adamc@1149
|
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
adamc@1149
|
2559 *) ac_try_echo=$ac_try;;
|
adamc@1149
|
2560 esac
|
adamc@1149
|
2561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
adamc@1149
|
2562 $as_echo "$ac_try_echo"; } >&5
|
adamc@1149
|
2563 (eval "$ac_link_default") 2>&5
|
adamc@1149
|
2564 ac_status=$?
|
adamc@1149
|
2565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1149
|
2566 test $ac_status = 0; }; then :
|
adamc@1149
|
2567 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
adamc@1149
|
2568 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
adamc@1149
|
2569 # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
adamc@1149
|
2570 # so that the user can short-circuit this test for compilers unknown to
|
adamc@1149
|
2571 # Autoconf.
|
adamc@1149
|
2572 for ac_file in $ac_files ''
|
adamc@1149
|
2573 do
|
adamc@1149
|
2574 test -f "$ac_file" || continue
|
adamc@1149
|
2575 case $ac_file in
|
adamc@1149
|
2576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
adamc@1149
|
2577 ;;
|
adamc@1149
|
2578 [ab].out )
|
adamc@1149
|
2579 # We found the default executable, but exeext='' is most
|
adamc@1149
|
2580 # certainly right.
|
adamc@1149
|
2581 break;;
|
adamc@1149
|
2582 *.* )
|
adamc@1149
|
2583 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
adamc@1149
|
2584 then :; else
|
adamc@1149
|
2585 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
adamc@1149
|
2586 fi
|
adamc@1149
|
2587 # We set ac_cv_exeext here because the later test for it is not
|
adamc@1149
|
2588 # safe: cross compilers may not add the suffix if given an `-o'
|
adamc@1149
|
2589 # argument, so we may need to know it at that point already.
|
adamc@1149
|
2590 # Even if this section looks crufty: it has the advantage of
|
adamc@1149
|
2591 # actually working.
|
adamc@1149
|
2592 break;;
|
adamc@1149
|
2593 * )
|
adamc@1149
|
2594 break;;
|
adamc@1149
|
2595 esac
|
adamc@1149
|
2596 done
|
adamc@1149
|
2597 test "$ac_cv_exeext" = no && ac_cv_exeext=
|
adamc@1149
|
2598
|
adamc@1149
|
2599 else
|
adamc@1149
|
2600 ac_file=''
|
adamc@1149
|
2601 fi
|
adamc@1149
|
2602 if test -z "$ac_file"; then :
|
adamc@1149
|
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1149
|
2604 $as_echo "no" >&6; }
|
adamc@1149
|
2605 $as_echo "$as_me: failed program was:" >&5
|
adamc@1149
|
2606 sed 's/^/| /' conftest.$ac_ext >&5
|
adamc@1149
|
2607
|
adamc@1149
|
2608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
adamc@1149
|
2609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
adam@1315
|
2610 as_fn_error 77 "C compiler cannot create executables
|
adam@1459
|
2611 See \`config.log' for more details" "$LINENO" 5; }
|
adamc@1149
|
2612 else
|
adamc@1149
|
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
adamc@1149
|
2614 $as_echo "yes" >&6; }
|
adamc@1149
|
2615 fi
|
adamc@1149
|
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
adamc@1149
|
2617 $as_echo_n "checking for C compiler default output file name... " >&6; }
|
adamc@1149
|
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
adamc@1149
|
2619 $as_echo "$ac_file" >&6; }
|
adamc@1149
|
2620 ac_exeext=$ac_cv_exeext
|
adamc@1149
|
2621
|
adamc@1149
|
2622 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
adamc@1149
|
2623 ac_clean_files=$ac_clean_files_save
|
adamc@1149
|
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
adamc@1149
|
2625 $as_echo_n "checking for suffix of executables... " >&6; }
|
adamc@1149
|
2626 if { { ac_try="$ac_link"
|
adamc@1149
|
2627 case "(($ac_try" in
|
adamc@1149
|
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
adamc@1149
|
2629 *) ac_try_echo=$ac_try;;
|
adamc@1149
|
2630 esac
|
adamc@1149
|
2631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
adamc@1149
|
2632 $as_echo "$ac_try_echo"; } >&5
|
adamc@1149
|
2633 (eval "$ac_link") 2>&5
|
adamc@1149
|
2634 ac_status=$?
|
adamc@1149
|
2635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1149
|
2636 test $ac_status = 0; }; then :
|
adamc@1149
|
2637 # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
adamc@1149
|
2638 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
adamc@1149
|
2639 # work properly (i.e., refer to `conftest.exe'), while it won't with
|
adamc@1149
|
2640 # `rm'.
|
adamc@1149
|
2641 for ac_file in conftest.exe conftest conftest.*; do
|
adamc@1149
|
2642 test -f "$ac_file" || continue
|
adamc@1149
|
2643 case $ac_file in
|
adamc@1149
|
2644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
adamc@1149
|
2645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
adamc@1149
|
2646 break;;
|
adamc@1149
|
2647 * ) break;;
|
adamc@1149
|
2648 esac
|
adamc@1149
|
2649 done
|
adamc@1149
|
2650 else
|
adamc@1149
|
2651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
adamc@1149
|
2652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
adam@1315
|
2653 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
adam@1459
|
2654 See \`config.log' for more details" "$LINENO" 5; }
|
adamc@1149
|
2655 fi
|
adamc@1149
|
2656 rm -f conftest conftest$ac_cv_exeext
|
adamc@1149
|
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
adamc@1149
|
2658 $as_echo "$ac_cv_exeext" >&6; }
|
adamc@1149
|
2659
|
adamc@1149
|
2660 rm -f conftest.$ac_ext
|
adamc@1149
|
2661 EXEEXT=$ac_cv_exeext
|
adamc@1149
|
2662 ac_exeext=$EXEEXT
|
adamc@1149
|
2663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
2664 /* end confdefs.h. */
|
adamc@1149
|
2665 #include <stdio.h>
|
adamc@1149
|
2666 int
|
adamc@1149
|
2667 main ()
|
adamc@1149
|
2668 {
|
adamc@1149
|
2669 FILE *f = fopen ("conftest.out", "w");
|
adamc@1149
|
2670 return ferror (f) || fclose (f) != 0;
|
adamc@1149
|
2671
|
adamc@1149
|
2672 ;
|
adamc@1149
|
2673 return 0;
|
adamc@1149
|
2674 }
|
adamc@1149
|
2675 _ACEOF
|
adamc@1149
|
2676 ac_clean_files="$ac_clean_files conftest.out"
|
adamc@1149
|
2677 # Check that the compiler produces executables we can run. If not, either
|
adamc@1149
|
2678 # the compiler is broken, or we cross compile.
|
adamc@1149
|
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
adamc@1149
|
2680 $as_echo_n "checking whether we are cross compiling... " >&6; }
|
adamc@1149
|
2681 if test "$cross_compiling" != yes; then
|
adamc@1149
|
2682 { { ac_try="$ac_link"
|
adamc@1149
|
2683 case "(($ac_try" in
|
adamc@1149
|
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
adamc@1149
|
2685 *) ac_try_echo=$ac_try;;
|
adamc@1149
|
2686 esac
|
adamc@1149
|
2687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
adamc@1149
|
2688 $as_echo "$ac_try_echo"; } >&5
|
adamc@1149
|
2689 (eval "$ac_link") 2>&5
|
adamc@1149
|
2690 ac_status=$?
|
adamc@1149
|
2691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1149
|
2692 test $ac_status = 0; }
|
adamc@1149
|
2693 if { ac_try='./conftest$ac_cv_exeext'
|
adamc@1149
|
2694 { { case "(($ac_try" in
|
adamc@1149
|
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
adamc@1149
|
2696 *) ac_try_echo=$ac_try;;
|
adamc@1149
|
2697 esac
|
adamc@1149
|
2698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
adamc@1149
|
2699 $as_echo "$ac_try_echo"; } >&5
|
adamc@1149
|
2700 (eval "$ac_try") 2>&5
|
adamc@1149
|
2701 ac_status=$?
|
adamc@1149
|
2702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1149
|
2703 test $ac_status = 0; }; }; then
|
adamc@1149
|
2704 cross_compiling=no
|
adamc@1149
|
2705 else
|
adamc@1149
|
2706 if test "$cross_compiling" = maybe; then
|
adamc@1149
|
2707 cross_compiling=yes
|
adamc@1149
|
2708 else
|
adamc@1149
|
2709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
adamc@1149
|
2710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
adam@1315
|
2711 as_fn_error $? "cannot run C compiled programs.
|
adamc@1149
|
2712 If you meant to cross compile, use \`--host'.
|
adam@1459
|
2713 See \`config.log' for more details" "$LINENO" 5; }
|
adamc@1149
|
2714 fi
|
adamc@1149
|
2715 fi
|
adamc@1149
|
2716 fi
|
adamc@1149
|
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
adamc@1149
|
2718 $as_echo "$cross_compiling" >&6; }
|
adamc@1149
|
2719
|
adamc@1149
|
2720 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
adamc@1149
|
2721 ac_clean_files=$ac_clean_files_save
|
adamc@1149
|
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
adamc@1149
|
2723 $as_echo_n "checking for suffix of object files... " >&6; }
|
adam@1459
|
2724 if ${ac_cv_objext+:} false; then :
|
adamc@1149
|
2725 $as_echo_n "(cached) " >&6
|
adamc@1149
|
2726 else
|
adamc@1149
|
2727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
2728 /* end confdefs.h. */
|
adamc@1149
|
2729
|
adamc@1149
|
2730 int
|
adamc@1149
|
2731 main ()
|
adamc@1149
|
2732 {
|
adamc@1149
|
2733
|
adamc@1149
|
2734 ;
|
adamc@1149
|
2735 return 0;
|
adamc@1149
|
2736 }
|
adamc@1149
|
2737 _ACEOF
|
adamc@1149
|
2738 rm -f conftest.o conftest.obj
|
adamc@1149
|
2739 if { { ac_try="$ac_compile"
|
adamc@1149
|
2740 case "(($ac_try" in
|
adamc@1149
|
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
adamc@1149
|
2742 *) ac_try_echo=$ac_try;;
|
adamc@1149
|
2743 esac
|
adamc@1149
|
2744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
adamc@1149
|
2745 $as_echo "$ac_try_echo"; } >&5
|
adamc@1149
|
2746 (eval "$ac_compile") 2>&5
|
adamc@1149
|
2747 ac_status=$?
|
adamc@1149
|
2748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1149
|
2749 test $ac_status = 0; }; then :
|
adamc@1149
|
2750 for ac_file in conftest.o conftest.obj conftest.*; do
|
adamc@1149
|
2751 test -f "$ac_file" || continue;
|
adamc@1149
|
2752 case $ac_file in
|
adamc@1149
|
2753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
adamc@1149
|
2754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
adamc@1149
|
2755 break;;
|
adamc@1149
|
2756 esac
|
adamc@1149
|
2757 done
|
adamc@1149
|
2758 else
|
adamc@1149
|
2759 $as_echo "$as_me: failed program was:" >&5
|
adamc@1149
|
2760 sed 's/^/| /' conftest.$ac_ext >&5
|
adamc@1149
|
2761
|
adamc@1149
|
2762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
adamc@1149
|
2763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
adam@1315
|
2764 as_fn_error $? "cannot compute suffix of object files: cannot compile
|
adam@1459
|
2765 See \`config.log' for more details" "$LINENO" 5; }
|
adamc@1149
|
2766 fi
|
adamc@1149
|
2767 rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
adamc@1149
|
2768 fi
|
adamc@1149
|
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
adamc@1149
|
2770 $as_echo "$ac_cv_objext" >&6; }
|
adamc@1149
|
2771 OBJEXT=$ac_cv_objext
|
adamc@1149
|
2772 ac_objext=$OBJEXT
|
adamc@1149
|
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
adamc@1149
|
2774 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
adam@1459
|
2775 if ${ac_cv_c_compiler_gnu+:} false; then :
|
adamc@1149
|
2776 $as_echo_n "(cached) " >&6
|
adamc@1149
|
2777 else
|
adamc@1149
|
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
2779 /* end confdefs.h. */
|
adamc@1149
|
2780
|
adamc@1149
|
2781 int
|
adamc@1149
|
2782 main ()
|
adamc@1149
|
2783 {
|
adamc@1149
|
2784 #ifndef __GNUC__
|
adamc@1149
|
2785 choke me
|
adamc@1149
|
2786 #endif
|
adamc@1149
|
2787
|
adamc@1149
|
2788 ;
|
adamc@1149
|
2789 return 0;
|
adamc@1149
|
2790 }
|
adamc@1149
|
2791 _ACEOF
|
adamc@1149
|
2792 if ac_fn_c_try_compile "$LINENO"; then :
|
adamc@1149
|
2793 ac_compiler_gnu=yes
|
adamc@1149
|
2794 else
|
adamc@1149
|
2795 ac_compiler_gnu=no
|
adamc@1149
|
2796 fi
|
adamc@1149
|
2797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
adamc@1149
|
2798 ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
adamc@1149
|
2799
|
adamc@1149
|
2800 fi
|
adamc@1149
|
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
adamc@1149
|
2802 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
adamc@1149
|
2803 if test $ac_compiler_gnu = yes; then
|
adamc@1149
|
2804 GCC=yes
|
adamc@1149
|
2805 else
|
adamc@1149
|
2806 GCC=
|
adamc@1149
|
2807 fi
|
adamc@1149
|
2808 ac_test_CFLAGS=${CFLAGS+set}
|
adamc@1149
|
2809 ac_save_CFLAGS=$CFLAGS
|
adamc@1149
|
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
adamc@1149
|
2811 $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
adam@1459
|
2812 if ${ac_cv_prog_cc_g+:} false; then :
|
adamc@1149
|
2813 $as_echo_n "(cached) " >&6
|
adamc@1149
|
2814 else
|
adamc@1149
|
2815 ac_save_c_werror_flag=$ac_c_werror_flag
|
adamc@1149
|
2816 ac_c_werror_flag=yes
|
adamc@1149
|
2817 ac_cv_prog_cc_g=no
|
adamc@1149
|
2818 CFLAGS="-g"
|
adamc@1149
|
2819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
2820 /* end confdefs.h. */
|
adamc@1149
|
2821
|
adamc@1149
|
2822 int
|
adamc@1149
|
2823 main ()
|
adamc@1149
|
2824 {
|
adamc@1149
|
2825
|
adamc@1149
|
2826 ;
|
adamc@1149
|
2827 return 0;
|
adamc@1149
|
2828 }
|
adamc@1149
|
2829 _ACEOF
|
adamc@1149
|
2830 if ac_fn_c_try_compile "$LINENO"; then :
|
adamc@1149
|
2831 ac_cv_prog_cc_g=yes
|
adamc@1149
|
2832 else
|
adamc@1149
|
2833 CFLAGS=""
|
adamc@1149
|
2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
2835 /* end confdefs.h. */
|
adamc@1149
|
2836
|
adamc@1149
|
2837 int
|
adamc@1149
|
2838 main ()
|
adamc@1149
|
2839 {
|
adamc@1149
|
2840
|
adamc@1149
|
2841 ;
|
adamc@1149
|
2842 return 0;
|
adamc@1149
|
2843 }
|
adamc@1149
|
2844 _ACEOF
|
adamc@1149
|
2845 if ac_fn_c_try_compile "$LINENO"; then :
|
adamc@1149
|
2846
|
adamc@1149
|
2847 else
|
adamc@1149
|
2848 ac_c_werror_flag=$ac_save_c_werror_flag
|
adamc@1149
|
2849 CFLAGS="-g"
|
adamc@1149
|
2850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
2851 /* end confdefs.h. */
|
adamc@1149
|
2852
|
adamc@1149
|
2853 int
|
adamc@1149
|
2854 main ()
|
adamc@1149
|
2855 {
|
adamc@1149
|
2856
|
adamc@1149
|
2857 ;
|
adamc@1149
|
2858 return 0;
|
adamc@1149
|
2859 }
|
adamc@1149
|
2860 _ACEOF
|
adamc@1149
|
2861 if ac_fn_c_try_compile "$LINENO"; then :
|
adamc@1149
|
2862 ac_cv_prog_cc_g=yes
|
adamc@1149
|
2863 fi
|
adamc@1149
|
2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
adamc@1149
|
2865 fi
|
adamc@1149
|
2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
adamc@1149
|
2867 fi
|
adamc@1149
|
2868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
adamc@1149
|
2869 ac_c_werror_flag=$ac_save_c_werror_flag
|
adamc@1149
|
2870 fi
|
adamc@1149
|
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
adamc@1149
|
2872 $as_echo "$ac_cv_prog_cc_g" >&6; }
|
adamc@1149
|
2873 if test "$ac_test_CFLAGS" = set; then
|
adamc@1149
|
2874 CFLAGS=$ac_save_CFLAGS
|
adamc@1149
|
2875 elif test $ac_cv_prog_cc_g = yes; then
|
adamc@1149
|
2876 if test "$GCC" = yes; then
|
adamc@1149
|
2877 CFLAGS="-g -O2"
|
adamc@1149
|
2878 else
|
adamc@1149
|
2879 CFLAGS="-g"
|
adamc@1149
|
2880 fi
|
adamc@1149
|
2881 else
|
adamc@1149
|
2882 if test "$GCC" = yes; then
|
adamc@1149
|
2883 CFLAGS="-O2"
|
adamc@1149
|
2884 else
|
adamc@1149
|
2885 CFLAGS=
|
adamc@1149
|
2886 fi
|
adamc@1149
|
2887 fi
|
adamc@1149
|
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
adamc@1149
|
2889 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
adam@1459
|
2890 if ${ac_cv_prog_cc_c89+:} false; then :
|
adamc@1149
|
2891 $as_echo_n "(cached) " >&6
|
adamc@1149
|
2892 else
|
adamc@1149
|
2893 ac_cv_prog_cc_c89=no
|
adamc@1149
|
2894 ac_save_CC=$CC
|
adamc@1149
|
2895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
2896 /* end confdefs.h. */
|
adamc@1149
|
2897 #include <stdarg.h>
|
adamc@1149
|
2898 #include <stdio.h>
|
adamc@1149
|
2899 #include <sys/types.h>
|
adamc@1149
|
2900 #include <sys/stat.h>
|
adamc@1149
|
2901 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
adamc@1149
|
2902 struct buf { int x; };
|
adamc@1149
|
2903 FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
adamc@1149
|
2904 static char *e (p, i)
|
adamc@1149
|
2905 char **p;
|
adamc@1149
|
2906 int i;
|
adamc@1149
|
2907 {
|
adamc@1149
|
2908 return p[i];
|
adamc@1149
|
2909 }
|
adamc@1149
|
2910 static char *f (char * (*g) (char **, int), char **p, ...)
|
adamc@1149
|
2911 {
|
adamc@1149
|
2912 char *s;
|
adamc@1149
|
2913 va_list v;
|
adamc@1149
|
2914 va_start (v,p);
|
adamc@1149
|
2915 s = g (p, va_arg (v,int));
|
adamc@1149
|
2916 va_end (v);
|
adamc@1149
|
2917 return s;
|
adamc@1149
|
2918 }
|
adamc@1149
|
2919
|
adamc@1149
|
2920 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
adamc@1149
|
2921 function prototypes and stuff, but not '\xHH' hex character constants.
|
adamc@1149
|
2922 These don't provoke an error unfortunately, instead are silently treated
|
adamc@1149
|
2923 as 'x'. The following induces an error, until -std is added to get
|
adamc@1149
|
2924 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
adamc@1149
|
2925 array size at least. It's necessary to write '\x00'==0 to get something
|
adamc@1149
|
2926 that's true only with -std. */
|
adamc@1149
|
2927 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
adamc@1149
|
2928
|
adamc@1149
|
2929 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
adamc@1149
|
2930 inside strings and character constants. */
|
adamc@1149
|
2931 #define FOO(x) 'x'
|
adamc@1149
|
2932 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
adamc@1149
|
2933
|
adamc@1149
|
2934 int test (int i, double x);
|
adamc@1149
|
2935 struct s1 {int (*f) (int a);};
|
adamc@1149
|
2936 struct s2 {int (*f) (double a);};
|
adamc@1149
|
2937 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
adamc@1149
|
2938 int argc;
|
adamc@1149
|
2939 char **argv;
|
adamc@1149
|
2940 int
|
adamc@1149
|
2941 main ()
|
adamc@1149
|
2942 {
|
adamc@1149
|
2943 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
adamc@1149
|
2944 ;
|
adamc@1149
|
2945 return 0;
|
adamc@1149
|
2946 }
|
adamc@1149
|
2947 _ACEOF
|
adamc@1149
|
2948 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
adamc@1149
|
2949 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
adamc@1149
|
2950 do
|
adamc@1149
|
2951 CC="$ac_save_CC $ac_arg"
|
adamc@1149
|
2952 if ac_fn_c_try_compile "$LINENO"; then :
|
adamc@1149
|
2953 ac_cv_prog_cc_c89=$ac_arg
|
adamc@1149
|
2954 fi
|
adamc@1149
|
2955 rm -f core conftest.err conftest.$ac_objext
|
adamc@1149
|
2956 test "x$ac_cv_prog_cc_c89" != "xno" && break
|
adamc@1149
|
2957 done
|
adamc@1149
|
2958 rm -f conftest.$ac_ext
|
adamc@1149
|
2959 CC=$ac_save_CC
|
adamc@1149
|
2960
|
adamc@1149
|
2961 fi
|
adamc@1149
|
2962 # AC_CACHE_VAL
|
adamc@1149
|
2963 case "x$ac_cv_prog_cc_c89" in
|
adamc@1149
|
2964 x)
|
adamc@1149
|
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
adamc@1149
|
2966 $as_echo "none needed" >&6; } ;;
|
adamc@1149
|
2967 xno)
|
adamc@1149
|
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
adamc@1149
|
2969 $as_echo "unsupported" >&6; } ;;
|
adamc@1149
|
2970 *)
|
adamc@1149
|
2971 CC="$CC $ac_cv_prog_cc_c89"
|
adamc@1149
|
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
adamc@1149
|
2973 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
adamc@1149
|
2974 esac
|
adamc@1149
|
2975 if test "x$ac_cv_prog_cc_c89" != xno; then :
|
adamc@1149
|
2976
|
adamc@1149
|
2977 fi
|
adamc@1149
|
2978
|
adamc@1149
|
2979 ac_ext=c
|
adamc@1149
|
2980 ac_cpp='$CPP $CPPFLAGS'
|
adamc@1149
|
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
adamc@1149
|
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
adamc@1149
|
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
adamc@1149
|
2984
|
adamc@1149
|
2985
|
adamc@1149
|
2986 ac_ext=c
|
adamc@1149
|
2987 ac_cpp='$CPP $CPPFLAGS'
|
adamc@1149
|
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
adamc@1149
|
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
adamc@1149
|
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
adamc@1149
|
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
adamc@1149
|
2992 $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
adamc@1149
|
2993 # On Suns, sometimes $CPP names a directory.
|
adamc@1149
|
2994 if test -n "$CPP" && test -d "$CPP"; then
|
adamc@1149
|
2995 CPP=
|
adamc@1149
|
2996 fi
|
adamc@1149
|
2997 if test -z "$CPP"; then
|
adam@1459
|
2998 if ${ac_cv_prog_CPP+:} false; then :
|
adamc@1149
|
2999 $as_echo_n "(cached) " >&6
|
adamc@1149
|
3000 else
|
adamc@1149
|
3001 # Double quotes because CPP needs to be expanded
|
adamc@1149
|
3002 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
adamc@1149
|
3003 do
|
adamc@1149
|
3004 ac_preproc_ok=false
|
adamc@1149
|
3005 for ac_c_preproc_warn_flag in '' yes
|
adamc@1149
|
3006 do
|
adamc@1149
|
3007 # Use a header file that comes with gcc, so configuring glibc
|
adamc@1149
|
3008 # with a fresh cross-compiler works.
|
adamc@1149
|
3009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
adamc@1149
|
3010 # <limits.h> exists even on freestanding compilers.
|
adamc@1149
|
3011 # On the NeXT, cc -E runs the code through the compiler's parser,
|
adamc@1149
|
3012 # not just through cpp. "Syntax error" is here to catch this case.
|
adamc@1149
|
3013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
3014 /* end confdefs.h. */
|
adamc@1149
|
3015 #ifdef __STDC__
|
adamc@1149
|
3016 # include <limits.h>
|
adamc@1149
|
3017 #else
|
adamc@1149
|
3018 # include <assert.h>
|
adamc@1149
|
3019 #endif
|
adamc@1149
|
3020 Syntax error
|
adamc@1149
|
3021 _ACEOF
|
adamc@1149
|
3022 if ac_fn_c_try_cpp "$LINENO"; then :
|
adamc@1149
|
3023
|
adamc@1149
|
3024 else
|
adamc@1149
|
3025 # Broken: fails on valid input.
|
adamc@1149
|
3026 continue
|
adamc@1149
|
3027 fi
|
adam@1315
|
3028 rm -f conftest.err conftest.i conftest.$ac_ext
|
adamc@1149
|
3029
|
adamc@1149
|
3030 # OK, works on sane cases. Now check whether nonexistent headers
|
adamc@1149
|
3031 # can be detected and how.
|
adamc@1149
|
3032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
3033 /* end confdefs.h. */
|
adamc@1149
|
3034 #include <ac_nonexistent.h>
|
adamc@1149
|
3035 _ACEOF
|
adamc@1149
|
3036 if ac_fn_c_try_cpp "$LINENO"; then :
|
adamc@1149
|
3037 # Broken: success on invalid input.
|
adamc@1149
|
3038 continue
|
adamc@1149
|
3039 else
|
adamc@1149
|
3040 # Passes both tests.
|
adamc@1149
|
3041 ac_preproc_ok=:
|
adamc@1149
|
3042 break
|
adamc@1149
|
3043 fi
|
adam@1315
|
3044 rm -f conftest.err conftest.i conftest.$ac_ext
|
adamc@1149
|
3045
|
adamc@1149
|
3046 done
|
adamc@1149
|
3047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
adam@1315
|
3048 rm -f conftest.i conftest.err conftest.$ac_ext
|
adamc@1149
|
3049 if $ac_preproc_ok; then :
|
adamc@1149
|
3050 break
|
adamc@1149
|
3051 fi
|
adamc@1149
|
3052
|
adamc@1149
|
3053 done
|
adamc@1149
|
3054 ac_cv_prog_CPP=$CPP
|
adamc@1149
|
3055
|
adamc@1149
|
3056 fi
|
adamc@1149
|
3057 CPP=$ac_cv_prog_CPP
|
adamc@1149
|
3058 else
|
adamc@1149
|
3059 ac_cv_prog_CPP=$CPP
|
adamc@1149
|
3060 fi
|
adamc@1149
|
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
adamc@1149
|
3062 $as_echo "$CPP" >&6; }
|
adamc@1149
|
3063 ac_preproc_ok=false
|
adamc@1149
|
3064 for ac_c_preproc_warn_flag in '' yes
|
adamc@1149
|
3065 do
|
adamc@1149
|
3066 # Use a header file that comes with gcc, so configuring glibc
|
adamc@1149
|
3067 # with a fresh cross-compiler works.
|
adamc@1149
|
3068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
adamc@1149
|
3069 # <limits.h> exists even on freestanding compilers.
|
adamc@1149
|
3070 # On the NeXT, cc -E runs the code through the compiler's parser,
|
adamc@1149
|
3071 # not just through cpp. "Syntax error" is here to catch this case.
|
adamc@1149
|
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
3073 /* end confdefs.h. */
|
adamc@1149
|
3074 #ifdef __STDC__
|
adamc@1149
|
3075 # include <limits.h>
|
adamc@1149
|
3076 #else
|
adamc@1149
|
3077 # include <assert.h>
|
adamc@1149
|
3078 #endif
|
adamc@1149
|
3079 Syntax error
|
adamc@1149
|
3080 _ACEOF
|
adamc@1149
|
3081 if ac_fn_c_try_cpp "$LINENO"; then :
|
adamc@1149
|
3082
|
adamc@1149
|
3083 else
|
adamc@1149
|
3084 # Broken: fails on valid input.
|
adamc@1149
|
3085 continue
|
adamc@1149
|
3086 fi
|
adam@1315
|
3087 rm -f conftest.err conftest.i conftest.$ac_ext
|
adamc@1149
|
3088
|
adamc@1149
|
3089 # OK, works on sane cases. Now check whether nonexistent headers
|
adamc@1149
|
3090 # can be detected and how.
|
adamc@1149
|
3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
3092 /* end confdefs.h. */
|
adamc@1149
|
3093 #include <ac_nonexistent.h>
|
adamc@1149
|
3094 _ACEOF
|
adamc@1149
|
3095 if ac_fn_c_try_cpp "$LINENO"; then :
|
adamc@1149
|
3096 # Broken: success on invalid input.
|
adamc@1149
|
3097 continue
|
adamc@1149
|
3098 else
|
adamc@1149
|
3099 # Passes both tests.
|
adamc@1149
|
3100 ac_preproc_ok=:
|
adamc@1149
|
3101 break
|
adamc@1149
|
3102 fi
|
adam@1315
|
3103 rm -f conftest.err conftest.i conftest.$ac_ext
|
adamc@1149
|
3104
|
adamc@1149
|
3105 done
|
adamc@1149
|
3106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
adam@1315
|
3107 rm -f conftest.i conftest.err conftest.$ac_ext
|
adamc@1149
|
3108 if $ac_preproc_ok; then :
|
adamc@1149
|
3109
|
adamc@1149
|
3110 else
|
adamc@1149
|
3111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
adamc@1149
|
3112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
adam@1315
|
3113 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
adam@1459
|
3114 See \`config.log' for more details" "$LINENO" 5; }
|
adamc@1149
|
3115 fi
|
adamc@1149
|
3116
|
adamc@1149
|
3117 ac_ext=c
|
adamc@1149
|
3118 ac_cpp='$CPP $CPPFLAGS'
|
adamc@1149
|
3119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
adamc@1149
|
3120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
adamc@1149
|
3121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
adamc@1149
|
3122
|
adamc@1149
|
3123
|
adamc@1149
|
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
adamc@1149
|
3125 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
adam@1459
|
3126 if ${ac_cv_path_GREP+:} false; then :
|
adamc@1149
|
3127 $as_echo_n "(cached) " >&6
|
adamc@1149
|
3128 else
|
adamc@1149
|
3129 if test -z "$GREP"; then
|
adamc@1149
|
3130 ac_path_GREP_found=false
|
adamc@1149
|
3131 # Loop through the user's path and test for each of PROGNAME-LIST
|
adamc@1149
|
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1149
|
3133 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
adamc@1149
|
3134 do
|
adamc@1149
|
3135 IFS=$as_save_IFS
|
adamc@1149
|
3136 test -z "$as_dir" && as_dir=.
|
adamc@1149
|
3137 for ac_prog in grep ggrep; do
|
adamc@1149
|
3138 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1149
|
3139 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
adamc@1149
|
3140 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
adamc@1149
|
3141 # Check for GNU ac_path_GREP and select it if it is found.
|
adamc@1149
|
3142 # Check for GNU $ac_path_GREP
|
adamc@1149
|
3143 case `"$ac_path_GREP" --version 2>&1` in
|
adamc@1149
|
3144 *GNU*)
|
adamc@1149
|
3145 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
adamc@1149
|
3146 *)
|
adamc@1149
|
3147 ac_count=0
|
adamc@1149
|
3148 $as_echo_n 0123456789 >"conftest.in"
|
adamc@1149
|
3149 while :
|
adamc@1149
|
3150 do
|
adamc@1149
|
3151 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
adamc@1149
|
3152 mv "conftest.tmp" "conftest.in"
|
adamc@1149
|
3153 cp "conftest.in" "conftest.nl"
|
adamc@1149
|
3154 $as_echo 'GREP' >> "conftest.nl"
|
adamc@1149
|
3155 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
adamc@1149
|
3156 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
adamc@1149
|
3157 as_fn_arith $ac_count + 1 && ac_count=$as_val
|
adamc@1149
|
3158 if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
adamc@1149
|
3159 # Best one so far, save it but keep looking for a better one
|
adamc@1149
|
3160 ac_cv_path_GREP="$ac_path_GREP"
|
adamc@1149
|
3161 ac_path_GREP_max=$ac_count
|
adamc@1149
|
3162 fi
|
adamc@1149
|
3163 # 10*(2^10) chars as input seems more than enough
|
adamc@1149
|
3164 test $ac_count -gt 10 && break
|
adamc@1149
|
3165 done
|
adamc@1149
|
3166 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
adamc@1149
|
3167 esac
|
adamc@1149
|
3168
|
adamc@1149
|
3169 $ac_path_GREP_found && break 3
|
adamc@1149
|
3170 done
|
adamc@1149
|
3171 done
|
adamc@1149
|
3172 done
|
adamc@1149
|
3173 IFS=$as_save_IFS
|
adamc@1149
|
3174 if test -z "$ac_cv_path_GREP"; then
|
adam@1315
|
3175 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
adamc@1149
|
3176 fi
|
adamc@1149
|
3177 else
|
adamc@1149
|
3178 ac_cv_path_GREP=$GREP
|
adamc@1149
|
3179 fi
|
adamc@1149
|
3180
|
adamc@1149
|
3181 fi
|
adamc@1149
|
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
adamc@1149
|
3183 $as_echo "$ac_cv_path_GREP" >&6; }
|
adamc@1149
|
3184 GREP="$ac_cv_path_GREP"
|
adamc@1149
|
3185
|
adamc@1149
|
3186
|
adamc@1149
|
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
adamc@1149
|
3188 $as_echo_n "checking for egrep... " >&6; }
|
adam@1459
|
3189 if ${ac_cv_path_EGREP+:} false; then :
|
adamc@1149
|
3190 $as_echo_n "(cached) " >&6
|
adamc@1149
|
3191 else
|
adamc@1149
|
3192 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
adamc@1149
|
3193 then ac_cv_path_EGREP="$GREP -E"
|
adamc@1149
|
3194 else
|
adamc@1149
|
3195 if test -z "$EGREP"; then
|
adamc@1149
|
3196 ac_path_EGREP_found=false
|
adamc@1149
|
3197 # Loop through the user's path and test for each of PROGNAME-LIST
|
adamc@1149
|
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1149
|
3199 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
adamc@1149
|
3200 do
|
adamc@1149
|
3201 IFS=$as_save_IFS
|
adamc@1149
|
3202 test -z "$as_dir" && as_dir=.
|
adamc@1149
|
3203 for ac_prog in egrep; do
|
adamc@1149
|
3204 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1149
|
3205 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
adamc@1149
|
3206 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
adamc@1149
|
3207 # Check for GNU ac_path_EGREP and select it if it is found.
|
adamc@1149
|
3208 # Check for GNU $ac_path_EGREP
|
adamc@1149
|
3209 case `"$ac_path_EGREP" --version 2>&1` in
|
adamc@1149
|
3210 *GNU*)
|
adamc@1149
|
3211 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
adamc@1149
|
3212 *)
|
adamc@1149
|
3213 ac_count=0
|
adamc@1149
|
3214 $as_echo_n 0123456789 >"conftest.in"
|
adamc@1149
|
3215 while :
|
adamc@1149
|
3216 do
|
adamc@1149
|
3217 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
adamc@1149
|
3218 mv "conftest.tmp" "conftest.in"
|
adamc@1149
|
3219 cp "conftest.in" "conftest.nl"
|
adamc@1149
|
3220 $as_echo 'EGREP' >> "conftest.nl"
|
adamc@1149
|
3221 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
adamc@1149
|
3222 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
adamc@1149
|
3223 as_fn_arith $ac_count + 1 && ac_count=$as_val
|
adamc@1149
|
3224 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
adamc@1149
|
3225 # Best one so far, save it but keep looking for a better one
|
adamc@1149
|
3226 ac_cv_path_EGREP="$ac_path_EGREP"
|
adamc@1149
|
3227 ac_path_EGREP_max=$ac_count
|
adamc@1149
|
3228 fi
|
adamc@1149
|
3229 # 10*(2^10) chars as input seems more than enough
|
adamc@1149
|
3230 test $ac_count -gt 10 && break
|
adamc@1149
|
3231 done
|
adamc@1149
|
3232 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
adamc@1149
|
3233 esac
|
adamc@1149
|
3234
|
adamc@1149
|
3235 $ac_path_EGREP_found && break 3
|
adamc@1149
|
3236 done
|
adamc@1149
|
3237 done
|
adamc@1149
|
3238 done
|
adamc@1149
|
3239 IFS=$as_save_IFS
|
adamc@1149
|
3240 if test -z "$ac_cv_path_EGREP"; then
|
adam@1315
|
3241 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
adamc@1149
|
3242 fi
|
adamc@1149
|
3243 else
|
adamc@1149
|
3244 ac_cv_path_EGREP=$EGREP
|
adamc@1149
|
3245 fi
|
adamc@1149
|
3246
|
adamc@1149
|
3247 fi
|
adamc@1149
|
3248 fi
|
adamc@1149
|
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
adamc@1149
|
3250 $as_echo "$ac_cv_path_EGREP" >&6; }
|
adamc@1149
|
3251 EGREP="$ac_cv_path_EGREP"
|
adamc@1149
|
3252
|
adamc@1149
|
3253
|
adamc@1149
|
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
adamc@1149
|
3255 $as_echo_n "checking for ANSI C header files... " >&6; }
|
adam@1459
|
3256 if ${ac_cv_header_stdc+:} false; then :
|
adamc@1149
|
3257 $as_echo_n "(cached) " >&6
|
adamc@1149
|
3258 else
|
adamc@1149
|
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
3260 /* end confdefs.h. */
|
adamc@1149
|
3261 #include <stdlib.h>
|
adamc@1149
|
3262 #include <stdarg.h>
|
adamc@1149
|
3263 #include <string.h>
|
adamc@1149
|
3264 #include <float.h>
|
adamc@1149
|
3265
|
adamc@1149
|
3266 int
|
adamc@1149
|
3267 main ()
|
adamc@1149
|
3268 {
|
adamc@1149
|
3269
|
adamc@1149
|
3270 ;
|
adamc@1149
|
3271 return 0;
|
adamc@1149
|
3272 }
|
adamc@1149
|
3273 _ACEOF
|
adamc@1149
|
3274 if ac_fn_c_try_compile "$LINENO"; then :
|
adamc@1149
|
3275 ac_cv_header_stdc=yes
|
adamc@1149
|
3276 else
|
adamc@1149
|
3277 ac_cv_header_stdc=no
|
adamc@1149
|
3278 fi
|
adamc@1149
|
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
adamc@1149
|
3280
|
adamc@1149
|
3281 if test $ac_cv_header_stdc = yes; then
|
adamc@1149
|
3282 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
adamc@1149
|
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
3284 /* end confdefs.h. */
|
adamc@1149
|
3285 #include <string.h>
|
adamc@1149
|
3286
|
adamc@1149
|
3287 _ACEOF
|
adamc@1149
|
3288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
adamc@1149
|
3289 $EGREP "memchr" >/dev/null 2>&1; then :
|
adamc@1149
|
3290
|
adamc@1149
|
3291 else
|
adamc@1149
|
3292 ac_cv_header_stdc=no
|
adamc@1149
|
3293 fi
|
adamc@1149
|
3294 rm -f conftest*
|
adamc@1149
|
3295
|
adamc@1149
|
3296 fi
|
adamc@1149
|
3297
|
adamc@1149
|
3298 if test $ac_cv_header_stdc = yes; then
|
adamc@1149
|
3299 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
adamc@1149
|
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
3301 /* end confdefs.h. */
|
adamc@1149
|
3302 #include <stdlib.h>
|
adamc@1149
|
3303
|
adamc@1149
|
3304 _ACEOF
|
adamc@1149
|
3305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
adamc@1149
|
3306 $EGREP "free" >/dev/null 2>&1; then :
|
adamc@1149
|
3307
|
adamc@1149
|
3308 else
|
adamc@1149
|
3309 ac_cv_header_stdc=no
|
adamc@1149
|
3310 fi
|
adamc@1149
|
3311 rm -f conftest*
|
adamc@1149
|
3312
|
adamc@1149
|
3313 fi
|
adamc@1149
|
3314
|
adamc@1149
|
3315 if test $ac_cv_header_stdc = yes; then
|
adamc@1149
|
3316 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
adamc@1149
|
3317 if test "$cross_compiling" = yes; then :
|
adamc@1149
|
3318 :
|
adamc@1149
|
3319 else
|
adamc@1149
|
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
3321 /* end confdefs.h. */
|
adamc@1149
|
3322 #include <ctype.h>
|
adamc@1149
|
3323 #include <stdlib.h>
|
adamc@1149
|
3324 #if ((' ' & 0x0FF) == 0x020)
|
adamc@1149
|
3325 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
adamc@1149
|
3326 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
adamc@1149
|
3327 #else
|
adamc@1149
|
3328 # define ISLOWER(c) \
|
adamc@1149
|
3329 (('a' <= (c) && (c) <= 'i') \
|
adamc@1149
|
3330 || ('j' <= (c) && (c) <= 'r') \
|
adamc@1149
|
3331 || ('s' <= (c) && (c) <= 'z'))
|
adamc@1149
|
3332 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
adamc@1149
|
3333 #endif
|
adamc@1149
|
3334
|
adamc@1149
|
3335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
adamc@1149
|
3336 int
|
adamc@1149
|
3337 main ()
|
adamc@1149
|
3338 {
|
adamc@1149
|
3339 int i;
|
adamc@1149
|
3340 for (i = 0; i < 256; i++)
|
adamc@1149
|
3341 if (XOR (islower (i), ISLOWER (i))
|
adamc@1149
|
3342 || toupper (i) != TOUPPER (i))
|
adamc@1149
|
3343 return 2;
|
adamc@1149
|
3344 return 0;
|
adamc@1149
|
3345 }
|
adamc@1149
|
3346 _ACEOF
|
adamc@1149
|
3347 if ac_fn_c_try_run "$LINENO"; then :
|
adamc@1149
|
3348
|
adamc@1149
|
3349 else
|
adamc@1149
|
3350 ac_cv_header_stdc=no
|
adamc@1149
|
3351 fi
|
adamc@1149
|
3352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
adamc@1149
|
3353 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
adamc@1149
|
3354 fi
|
adamc@1149
|
3355
|
adamc@1149
|
3356 fi
|
adamc@1149
|
3357 fi
|
adamc@1149
|
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
adamc@1149
|
3359 $as_echo "$ac_cv_header_stdc" >&6; }
|
adamc@1149
|
3360 if test $ac_cv_header_stdc = yes; then
|
adamc@1149
|
3361
|
adamc@1149
|
3362 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
adamc@1149
|
3363
|
adamc@1149
|
3364 fi
|
adamc@1149
|
3365
|
adamc@1149
|
3366 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
adamc@1149
|
3367 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
adamc@1149
|
3368 inttypes.h stdint.h unistd.h
|
adamc@1149
|
3369 do :
|
adamc@1149
|
3370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
adamc@1149
|
3371 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
adamc@1149
|
3372 "
|
adam@1315
|
3373 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
adamc@1149
|
3374 cat >>confdefs.h <<_ACEOF
|
adamc@1149
|
3375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
adamc@1149
|
3376 _ACEOF
|
adamc@1149
|
3377
|
adamc@1149
|
3378 fi
|
adamc@1149
|
3379
|
adamc@1149
|
3380 done
|
adamc@1149
|
3381
|
adamc@1149
|
3382
|
adamc@1149
|
3383
|
adamc@1149
|
3384 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
adam@1459
|
3385 if test "x$ac_cv_header_minix_config_h" = xyes; then :
|
adamc@1149
|
3386 MINIX=yes
|
adamc@1149
|
3387 else
|
adamc@1149
|
3388 MINIX=
|
adamc@1149
|
3389 fi
|
adamc@1149
|
3390
|
adamc@1149
|
3391
|
adamc@1149
|
3392 if test "$MINIX" = yes; then
|
adamc@1149
|
3393
|
adamc@1149
|
3394 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
adamc@1149
|
3395
|
adamc@1149
|
3396
|
adamc@1149
|
3397 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
adamc@1149
|
3398
|
adamc@1149
|
3399
|
adamc@1149
|
3400 $as_echo "#define _MINIX 1" >>confdefs.h
|
adamc@1149
|
3401
|
adamc@1149
|
3402 fi
|
adamc@1149
|
3403
|
adamc@1149
|
3404
|
adamc@1149
|
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
adamc@1149
|
3406 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
adam@1459
|
3407 if ${ac_cv_safe_to_define___extensions__+:} false; then :
|
adamc@1149
|
3408 $as_echo_n "(cached) " >&6
|
adamc@1149
|
3409 else
|
adamc@1149
|
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
3411 /* end confdefs.h. */
|
adamc@1149
|
3412
|
adamc@1149
|
3413 # define __EXTENSIONS__ 1
|
adamc@1149
|
3414 $ac_includes_default
|
adamc@1149
|
3415 int
|
adamc@1149
|
3416 main ()
|
adamc@1149
|
3417 {
|
adamc@1149
|
3418
|
adamc@1149
|
3419 ;
|
adamc@1149
|
3420 return 0;
|
adamc@1149
|
3421 }
|
adamc@1149
|
3422 _ACEOF
|
adamc@1149
|
3423 if ac_fn_c_try_compile "$LINENO"; then :
|
adamc@1149
|
3424 ac_cv_safe_to_define___extensions__=yes
|
adamc@1149
|
3425 else
|
adamc@1149
|
3426 ac_cv_safe_to_define___extensions__=no
|
adamc@1149
|
3427 fi
|
adamc@1149
|
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
adamc@1149
|
3429 fi
|
adamc@1149
|
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
adamc@1149
|
3431 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
adamc@1149
|
3432 test $ac_cv_safe_to_define___extensions__ = yes &&
|
adamc@1149
|
3433 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
adamc@1149
|
3434
|
adamc@1149
|
3435 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
adamc@1149
|
3436
|
adamc@1149
|
3437 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
adamc@1149
|
3438
|
adamc@1149
|
3439 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
adamc@1149
|
3440
|
adamc@1149
|
3441 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
adamc@1149
|
3442
|
adamc@1149
|
3443
|
adamc@1132
|
3444 am__api_version='1.11'
|
adamc@1132
|
3445
|
adamc@1132
|
3446 ac_aux_dir=
|
adamc@1132
|
3447 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
adam@1315
|
3448 if test -f "$ac_dir/install-sh"; then
|
adam@1315
|
3449 ac_aux_dir=$ac_dir
|
adam@1315
|
3450 ac_install_sh="$ac_aux_dir/install-sh -c"
|
adam@1315
|
3451 break
|
adam@1315
|
3452 elif test -f "$ac_dir/install.sh"; then
|
adam@1315
|
3453 ac_aux_dir=$ac_dir
|
adam@1315
|
3454 ac_install_sh="$ac_aux_dir/install.sh -c"
|
adam@1315
|
3455 break
|
adam@1315
|
3456 elif test -f "$ac_dir/shtool"; then
|
adam@1315
|
3457 ac_aux_dir=$ac_dir
|
adam@1315
|
3458 ac_install_sh="$ac_aux_dir/shtool install -c"
|
adam@1315
|
3459 break
|
adam@1315
|
3460 fi
|
adamc@1132
|
3461 done
|
adamc@1132
|
3462 if test -z "$ac_aux_dir"; then
|
adam@1315
|
3463 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
adamc@1132
|
3464 fi
|
adamc@1132
|
3465
|
adamc@1132
|
3466 # These three variables are undocumented and unsupported,
|
adamc@1132
|
3467 # and are intended to be withdrawn in a future Autoconf release.
|
adamc@1132
|
3468 # They can cause serious problems if a builder's source tree is in a directory
|
adamc@1132
|
3469 # whose full name contains unusual characters.
|
adamc@1132
|
3470 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
adamc@1132
|
3471 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
adamc@1132
|
3472 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
adamc@1132
|
3473
|
adamc@1132
|
3474
|
adamc@1132
|
3475 # Find a good install program. We prefer a C program (faster),
|
adamc@1132
|
3476 # so one script is as good as another. But avoid the broken or
|
adamc@1132
|
3477 # incompatible versions:
|
adamc@1132
|
3478 # SysV /etc/install, /usr/sbin/install
|
adamc@1132
|
3479 # SunOS /usr/etc/install
|
adamc@1132
|
3480 # IRIX /sbin/install
|
adamc@1132
|
3481 # AIX /bin/install
|
adamc@1132
|
3482 # AmigaOS /C/install, which installs bootblocks on floppy discs
|
adamc@1132
|
3483 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
adamc@1132
|
3484 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
adamc@1132
|
3485 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
adamc@1132
|
3486 # OS/2's system install, which has a completely different semantic
|
adamc@1132
|
3487 # ./install, which can be erroneously created by make from ./install.sh.
|
adamc@1132
|
3488 # Reject install programs that cannot install multiple files.
|
adamc@1132
|
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
adamc@1132
|
3490 $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
adamc@1132
|
3491 if test -z "$INSTALL"; then
|
adam@1459
|
3492 if ${ac_cv_path_install+:} false; then :
|
adamc@1132
|
3493 $as_echo_n "(cached) " >&6
|
adamc@1132
|
3494 else
|
adamc@1132
|
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
3496 for as_dir in $PATH
|
adamc@1132
|
3497 do
|
adamc@1132
|
3498 IFS=$as_save_IFS
|
adamc@1132
|
3499 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
3500 # Account for people who put trailing slashes in PATH elements.
|
adamc@1132
|
3501 case $as_dir/ in #((
|
adamc@1132
|
3502 ./ | .// | /[cC]/* | \
|
adamc@1132
|
3503 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
adamc@1132
|
3504 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
adamc@1132
|
3505 /usr/ucb/* ) ;;
|
adamc@1132
|
3506 *)
|
adamc@1132
|
3507 # OSF1 and SCO ODT 3.0 have their own names for install.
|
adamc@1132
|
3508 # Don't use installbsd from OSF since it installs stuff as root
|
adamc@1132
|
3509 # by default.
|
adamc@1132
|
3510 for ac_prog in ginstall scoinst install; do
|
adamc@1132
|
3511 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
3512 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
adamc@1132
|
3513 if test $ac_prog = install &&
|
adamc@1132
|
3514 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
adamc@1132
|
3515 # AIX install. It has an incompatible calling convention.
|
adamc@1132
|
3516 :
|
adamc@1132
|
3517 elif test $ac_prog = install &&
|
adamc@1132
|
3518 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
adamc@1132
|
3519 # program-specific install script used by HP pwplus--don't use.
|
adamc@1132
|
3520 :
|
adamc@1132
|
3521 else
|
adamc@1132
|
3522 rm -rf conftest.one conftest.two conftest.dir
|
adamc@1132
|
3523 echo one > conftest.one
|
adamc@1132
|
3524 echo two > conftest.two
|
adamc@1132
|
3525 mkdir conftest.dir
|
adamc@1132
|
3526 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
adamc@1132
|
3527 test -s conftest.one && test -s conftest.two &&
|
adamc@1132
|
3528 test -s conftest.dir/conftest.one &&
|
adamc@1132
|
3529 test -s conftest.dir/conftest.two
|
adamc@1132
|
3530 then
|
adamc@1132
|
3531 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
adamc@1132
|
3532 break 3
|
adamc@1132
|
3533 fi
|
adamc@1132
|
3534 fi
|
adamc@1132
|
3535 fi
|
adamc@1132
|
3536 done
|
adamc@1132
|
3537 done
|
adamc@1132
|
3538 ;;
|
adamc@1132
|
3539 esac
|
adamc@1132
|
3540
|
adamc@1132
|
3541 done
|
adamc@1132
|
3542 IFS=$as_save_IFS
|
adamc@1132
|
3543
|
adamc@1132
|
3544 rm -rf conftest.one conftest.two conftest.dir
|
adamc@1132
|
3545
|
adamc@1132
|
3546 fi
|
adamc@1132
|
3547 if test "${ac_cv_path_install+set}" = set; then
|
adamc@1132
|
3548 INSTALL=$ac_cv_path_install
|
adamc@1132
|
3549 else
|
adamc@1132
|
3550 # As a last resort, use the slow shell script. Don't cache a
|
adamc@1132
|
3551 # value for INSTALL within a source directory, because that will
|
adamc@1132
|
3552 # break other packages using the cache if that directory is
|
adamc@1132
|
3553 # removed, or if the value is a relative name.
|
adamc@1132
|
3554 INSTALL=$ac_install_sh
|
adamc@1132
|
3555 fi
|
adamc@1132
|
3556 fi
|
adamc@1132
|
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
adamc@1132
|
3558 $as_echo "$INSTALL" >&6; }
|
adamc@1132
|
3559
|
adamc@1132
|
3560 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
adamc@1132
|
3561 # It thinks the first close brace ends the variable substitution.
|
adamc@1132
|
3562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
adamc@1132
|
3563
|
adamc@1132
|
3564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
adamc@1132
|
3565
|
adamc@1132
|
3566 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
adamc@1132
|
3567
|
adamc@1132
|
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
|
adamc@1132
|
3569 $as_echo_n "checking whether build environment is sane... " >&6; }
|
adamc@1132
|
3570 # Just in case
|
adamc@1132
|
3571 sleep 1
|
adamc@1132
|
3572 echo timestamp > conftest.file
|
adamc@1132
|
3573 # Reject unsafe characters in $srcdir or the absolute working directory
|
adamc@1132
|
3574 # name. Accept space and tab only in the latter.
|
adamc@1132
|
3575 am_lf='
|
adamc@1132
|
3576 '
|
adamc@1132
|
3577 case `pwd` in
|
adamc@1132
|
3578 *[\\\"\#\$\&\'\`$am_lf]*)
|
adam@1459
|
3579 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
|
adamc@1132
|
3580 esac
|
adamc@1132
|
3581 case $srcdir in
|
adamc@1132
|
3582 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
|
adam@1459
|
3583 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
|
adamc@1132
|
3584 esac
|
adamc@1132
|
3585
|
adamc@1132
|
3586 # Do `set' in a subshell so we don't clobber the current shell's
|
adamc@1132
|
3587 # arguments. Must try -L first in case configure is actually a
|
adamc@1132
|
3588 # symlink; some systems play weird games with the mod time of symlinks
|
adamc@1132
|
3589 # (eg FreeBSD returns the mod time of the symlink's containing
|
adamc@1132
|
3590 # directory).
|
adamc@1132
|
3591 if (
|
adamc@1132
|
3592 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
adamc@1132
|
3593 if test "$*" = "X"; then
|
adamc@1132
|
3594 # -L didn't work.
|
adamc@1132
|
3595 set X `ls -t "$srcdir/configure" conftest.file`
|
adamc@1132
|
3596 fi
|
adamc@1132
|
3597 rm -f conftest.file
|
adamc@1132
|
3598 if test "$*" != "X $srcdir/configure conftest.file" \
|
adamc@1132
|
3599 && test "$*" != "X conftest.file $srcdir/configure"; then
|
adamc@1132
|
3600
|
adamc@1132
|
3601 # If neither matched, then we have a broken ls. This can happen
|
adamc@1132
|
3602 # if, for instance, CONFIG_SHELL is bash and it inherits a
|
adamc@1132
|
3603 # broken ls alias from the environment. This has actually
|
adamc@1132
|
3604 # happened. Such a system could not be considered "sane".
|
adam@1315
|
3605 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
|
adamc@1132
|
3606 alias in your environment" "$LINENO" 5
|
adamc@1132
|
3607 fi
|
adamc@1132
|
3608
|
adamc@1132
|
3609 test "$2" = conftest.file
|
adamc@1132
|
3610 )
|
adamc@1132
|
3611 then
|
adamc@1132
|
3612 # Ok.
|
adamc@1132
|
3613 :
|
adamc@1132
|
3614 else
|
adam@1315
|
3615 as_fn_error $? "newly created file is older than distributed files!
|
adamc@1132
|
3616 Check your system clock" "$LINENO" 5
|
adamc@1132
|
3617 fi
|
adamc@1132
|
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
adamc@1132
|
3619 $as_echo "yes" >&6; }
|
adamc@1132
|
3620 test "$program_prefix" != NONE &&
|
adamc@1132
|
3621 program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
adamc@1132
|
3622 # Use a double $ so make ignores it.
|
adamc@1132
|
3623 test "$program_suffix" != NONE &&
|
adamc@1132
|
3624 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
adamc@1132
|
3625 # Double any \ or $.
|
adamc@1132
|
3626 # By default was `s,x,x', remove it if useless.
|
adamc@1132
|
3627 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
adamc@1132
|
3628 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
adamc@1132
|
3629
|
adamc@1132
|
3630 # expand $ac_aux_dir to an absolute path
|
adamc@1132
|
3631 am_aux_dir=`cd $ac_aux_dir && pwd`
|
adamc@1132
|
3632
|
adamc@1132
|
3633 if test x"${MISSING+set}" != xset; then
|
adamc@1132
|
3634 case $am_aux_dir in
|
adamc@1132
|
3635 *\ * | *\ *)
|
adamc@1132
|
3636 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
adamc@1132
|
3637 *)
|
adamc@1132
|
3638 MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
adamc@1132
|
3639 esac
|
adamc@1132
|
3640 fi
|
adamc@1132
|
3641 # Use eval to expand $SHELL
|
adamc@1132
|
3642 if eval "$MISSING --run true"; then
|
adamc@1132
|
3643 am_missing_run="$MISSING --run "
|
adamc@1132
|
3644 else
|
adamc@1132
|
3645 am_missing_run=
|
adamc@1132
|
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
|
adamc@1132
|
3647 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
|
adamc@1132
|
3648 fi
|
adamc@1132
|
3649
|
adamc@1132
|
3650 if test x"${install_sh}" != xset; then
|
adamc@1132
|
3651 case $am_aux_dir in
|
adamc@1132
|
3652 *\ * | *\ *)
|
adamc@1132
|
3653 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
adamc@1132
|
3654 *)
|
adamc@1132
|
3655 install_sh="\${SHELL} $am_aux_dir/install-sh"
|
adamc@1132
|
3656 esac
|
adamc@1132
|
3657 fi
|
adamc@1132
|
3658
|
adamc@1132
|
3659 # Installed binaries are usually stripped using `strip' when the user
|
adamc@1132
|
3660 # run `make install-strip'. However `strip' might not be the right
|
adamc@1132
|
3661 # tool to use in cross-compilation environments, therefore Automake
|
adamc@1132
|
3662 # will honor the `STRIP' environment variable to overrule this program.
|
adamc@1132
|
3663 if test "$cross_compiling" != no; then
|
adamc@1132
|
3664 if test -n "$ac_tool_prefix"; then
|
adamc@1132
|
3665 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
adamc@1132
|
3666 set dummy ${ac_tool_prefix}strip; ac_word=$2
|
adamc@1132
|
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
3668 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
3669 if ${ac_cv_prog_STRIP+:} false; then :
|
adamc@1132
|
3670 $as_echo_n "(cached) " >&6
|
adamc@1132
|
3671 else
|
adamc@1132
|
3672 if test -n "$STRIP"; then
|
adamc@1132
|
3673 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
adamc@1132
|
3674 else
|
adamc@1132
|
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
3676 for as_dir in $PATH
|
adamc@1132
|
3677 do
|
adamc@1132
|
3678 IFS=$as_save_IFS
|
adamc@1132
|
3679 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
3680 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
3681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
3682 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
adamc@1132
|
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
3684 break 2
|
adamc@1132
|
3685 fi
|
adamc@1132
|
3686 done
|
adamc@1132
|
3687 done
|
adamc@1132
|
3688 IFS=$as_save_IFS
|
adamc@1132
|
3689
|
adamc@1132
|
3690 fi
|
adamc@1132
|
3691 fi
|
adamc@1132
|
3692 STRIP=$ac_cv_prog_STRIP
|
adamc@1132
|
3693 if test -n "$STRIP"; then
|
adamc@1132
|
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
adamc@1132
|
3695 $as_echo "$STRIP" >&6; }
|
adamc@1132
|
3696 else
|
adamc@1132
|
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
3698 $as_echo "no" >&6; }
|
adamc@1132
|
3699 fi
|
adamc@1132
|
3700
|
adamc@1132
|
3701
|
adamc@1132
|
3702 fi
|
adamc@1132
|
3703 if test -z "$ac_cv_prog_STRIP"; then
|
adamc@1132
|
3704 ac_ct_STRIP=$STRIP
|
adamc@1132
|
3705 # Extract the first word of "strip", so it can be a program name with args.
|
adamc@1132
|
3706 set dummy strip; ac_word=$2
|
adamc@1132
|
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
3708 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
3709 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
adamc@1132
|
3710 $as_echo_n "(cached) " >&6
|
adamc@1132
|
3711 else
|
adamc@1132
|
3712 if test -n "$ac_ct_STRIP"; then
|
adamc@1132
|
3713 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
adamc@1132
|
3714 else
|
adamc@1132
|
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
3716 for as_dir in $PATH
|
adamc@1132
|
3717 do
|
adamc@1132
|
3718 IFS=$as_save_IFS
|
adamc@1132
|
3719 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
3720 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
3721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
3722 ac_cv_prog_ac_ct_STRIP="strip"
|
adamc@1132
|
3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
3724 break 2
|
adamc@1132
|
3725 fi
|
adamc@1132
|
3726 done
|
adamc@1132
|
3727 done
|
adamc@1132
|
3728 IFS=$as_save_IFS
|
adamc@1132
|
3729
|
adamc@1132
|
3730 fi
|
adamc@1132
|
3731 fi
|
adamc@1132
|
3732 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
adamc@1132
|
3733 if test -n "$ac_ct_STRIP"; then
|
adamc@1132
|
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
adamc@1132
|
3735 $as_echo "$ac_ct_STRIP" >&6; }
|
adamc@1132
|
3736 else
|
adamc@1132
|
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
3738 $as_echo "no" >&6; }
|
adamc@1132
|
3739 fi
|
adamc@1132
|
3740
|
adamc@1132
|
3741 if test "x$ac_ct_STRIP" = x; then
|
adamc@1132
|
3742 STRIP=":"
|
adamc@1132
|
3743 else
|
adamc@1132
|
3744 case $cross_compiling:$ac_tool_warned in
|
adamc@1132
|
3745 yes:)
|
adamc@1132
|
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
adamc@1132
|
3747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
adamc@1132
|
3748 ac_tool_warned=yes ;;
|
adamc@1132
|
3749 esac
|
adamc@1132
|
3750 STRIP=$ac_ct_STRIP
|
adamc@1132
|
3751 fi
|
adamc@1132
|
3752 else
|
adamc@1132
|
3753 STRIP="$ac_cv_prog_STRIP"
|
adamc@1132
|
3754 fi
|
adamc@1132
|
3755
|
adamc@1132
|
3756 fi
|
adamc@1132
|
3757 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
adamc@1132
|
3758
|
adamc@1132
|
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
|
adamc@1132
|
3760 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
|
adamc@1132
|
3761 if test -z "$MKDIR_P"; then
|
adam@1459
|
3762 if ${ac_cv_path_mkdir+:} false; then :
|
adamc@1132
|
3763 $as_echo_n "(cached) " >&6
|
adamc@1132
|
3764 else
|
adamc@1132
|
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
3766 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
|
adamc@1132
|
3767 do
|
adamc@1132
|
3768 IFS=$as_save_IFS
|
adamc@1132
|
3769 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
3770 for ac_prog in mkdir gmkdir; do
|
adamc@1132
|
3771 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
3772 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
|
adamc@1132
|
3773 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
|
adamc@1132
|
3774 'mkdir (GNU coreutils) '* | \
|
adamc@1132
|
3775 'mkdir (coreutils) '* | \
|
adamc@1132
|
3776 'mkdir (fileutils) '4.1*)
|
adamc@1132
|
3777 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
|
adamc@1132
|
3778 break 3;;
|
adamc@1132
|
3779 esac
|
adamc@1132
|
3780 done
|
adamc@1132
|
3781 done
|
adamc@1132
|
3782 done
|
adamc@1132
|
3783 IFS=$as_save_IFS
|
adamc@1132
|
3784
|
adamc@1132
|
3785 fi
|
adamc@1132
|
3786
|
adamc@1132
|
3787 test -d ./--version && rmdir ./--version
|
adamc@1132
|
3788 if test "${ac_cv_path_mkdir+set}" = set; then
|
adamc@1132
|
3789 MKDIR_P="$ac_cv_path_mkdir -p"
|
adamc@1132
|
3790 else
|
adamc@1132
|
3791 # As a last resort, use the slow shell script. Don't cache a
|
adamc@1132
|
3792 # value for MKDIR_P within a source directory, because that will
|
adamc@1132
|
3793 # break other packages using the cache if that directory is
|
adamc@1132
|
3794 # removed, or if the value is a relative name.
|
adamc@1132
|
3795 MKDIR_P="$ac_install_sh -d"
|
adamc@1132
|
3796 fi
|
adamc@1132
|
3797 fi
|
adamc@1132
|
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
|
adamc@1132
|
3799 $as_echo "$MKDIR_P" >&6; }
|
adamc@1132
|
3800
|
adamc@1132
|
3801 mkdir_p="$MKDIR_P"
|
adamc@1132
|
3802 case $mkdir_p in
|
adamc@1132
|
3803 [\\/$]* | ?:[\\/]*) ;;
|
adamc@1132
|
3804 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
|
adamc@1132
|
3805 esac
|
adamc@1132
|
3806
|
adamc@1132
|
3807 for ac_prog in gawk mawk nawk awk
|
adamc@1132
|
3808 do
|
adamc@1132
|
3809 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
adamc@1132
|
3810 set dummy $ac_prog; ac_word=$2
|
adamc@1132
|
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
3812 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
3813 if ${ac_cv_prog_AWK+:} false; then :
|
adamc@1132
|
3814 $as_echo_n "(cached) " >&6
|
adamc@1132
|
3815 else
|
adamc@1132
|
3816 if test -n "$AWK"; then
|
adamc@1132
|
3817 ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
adamc@1132
|
3818 else
|
adamc@1132
|
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
3820 for as_dir in $PATH
|
adamc@1132
|
3821 do
|
adamc@1132
|
3822 IFS=$as_save_IFS
|
adamc@1132
|
3823 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
3824 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
3825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
3826 ac_cv_prog_AWK="$ac_prog"
|
adamc@1132
|
3827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
3828 break 2
|
adamc@1132
|
3829 fi
|
adamc@1132
|
3830 done
|
adamc@1132
|
3831 done
|
adamc@1132
|
3832 IFS=$as_save_IFS
|
adamc@1132
|
3833
|
adamc@1132
|
3834 fi
|
adamc@1132
|
3835 fi
|
adamc@1132
|
3836 AWK=$ac_cv_prog_AWK
|
adamc@1132
|
3837 if test -n "$AWK"; then
|
adamc@1132
|
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
adamc@1132
|
3839 $as_echo "$AWK" >&6; }
|
adamc@1132
|
3840 else
|
adamc@1132
|
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
3842 $as_echo "no" >&6; }
|
adamc@1132
|
3843 fi
|
adamc@1132
|
3844
|
adamc@1132
|
3845
|
adamc@1132
|
3846 test -n "$AWK" && break
|
adamc@1132
|
3847 done
|
adamc@1132
|
3848
|
adamc@1132
|
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
adamc@1132
|
3850 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
adamc@1132
|
3851 set x ${MAKE-make}
|
adamc@1132
|
3852 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
adam@1459
|
3853 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
adamc@1132
|
3854 $as_echo_n "(cached) " >&6
|
adamc@1132
|
3855 else
|
adamc@1132
|
3856 cat >conftest.make <<\_ACEOF
|
adamc@1132
|
3857 SHELL = /bin/sh
|
adamc@1132
|
3858 all:
|
adamc@1132
|
3859 @echo '@@@%%%=$(MAKE)=@@@%%%'
|
adamc@1132
|
3860 _ACEOF
|
adam@1315
|
3861 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
adamc@1132
|
3862 case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
adamc@1132
|
3863 *@@@%%%=?*=@@@%%%*)
|
adamc@1132
|
3864 eval ac_cv_prog_make_${ac_make}_set=yes;;
|
adamc@1132
|
3865 *)
|
adamc@1132
|
3866 eval ac_cv_prog_make_${ac_make}_set=no;;
|
adamc@1132
|
3867 esac
|
adamc@1132
|
3868 rm -f conftest.make
|
adamc@1132
|
3869 fi
|
adamc@1132
|
3870 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
adamc@1132
|
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
adamc@1132
|
3872 $as_echo "yes" >&6; }
|
adamc@1132
|
3873 SET_MAKE=
|
adamc@1132
|
3874 else
|
adamc@1132
|
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
3876 $as_echo "no" >&6; }
|
adamc@1132
|
3877 SET_MAKE="MAKE=${MAKE-make}"
|
adamc@1132
|
3878 fi
|
adamc@1132
|
3879
|
adamc@1132
|
3880 rm -rf .tst 2>/dev/null
|
adamc@1132
|
3881 mkdir .tst 2>/dev/null
|
adamc@1132
|
3882 if test -d .tst; then
|
adamc@1132
|
3883 am__leading_dot=.
|
adamc@1132
|
3884 else
|
adamc@1132
|
3885 am__leading_dot=_
|
adamc@1132
|
3886 fi
|
adamc@1132
|
3887 rmdir .tst 2>/dev/null
|
adamc@1132
|
3888
|
adamc@1132
|
3889 DEPDIR="${am__leading_dot}deps"
|
adamc@1132
|
3890
|
adamc@1132
|
3891 ac_config_commands="$ac_config_commands depfiles"
|
adamc@1132
|
3892
|
adamc@1132
|
3893
|
adamc@1132
|
3894 am_make=${MAKE-make}
|
adamc@1132
|
3895 cat > confinc << 'END'
|
adamc@1132
|
3896 am__doit:
|
adamc@1132
|
3897 @echo this is the am__doit target
|
adamc@1132
|
3898 .PHONY: am__doit
|
adamc@1132
|
3899 END
|
adamc@1132
|
3900 # If we don't find an include directive, just comment out the code.
|
adamc@1132
|
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
|
adamc@1132
|
3902 $as_echo_n "checking for style of include used by $am_make... " >&6; }
|
adamc@1132
|
3903 am__include="#"
|
adamc@1132
|
3904 am__quote=
|
adamc@1132
|
3905 _am_result=none
|
adamc@1132
|
3906 # First try GNU make style include.
|
adamc@1132
|
3907 echo "include confinc" > confmf
|
adamc@1132
|
3908 # Ignore all kinds of additional output from `make'.
|
adamc@1132
|
3909 case `$am_make -s -f confmf 2> /dev/null` in #(
|
adamc@1132
|
3910 *the\ am__doit\ target*)
|
adamc@1132
|
3911 am__include=include
|
adamc@1132
|
3912 am__quote=
|
adamc@1132
|
3913 _am_result=GNU
|
adamc@1132
|
3914 ;;
|
adamc@1132
|
3915 esac
|
adamc@1132
|
3916 # Now try BSD make style include.
|
adamc@1132
|
3917 if test "$am__include" = "#"; then
|
adamc@1132
|
3918 echo '.include "confinc"' > confmf
|
adamc@1132
|
3919 case `$am_make -s -f confmf 2> /dev/null` in #(
|
adamc@1132
|
3920 *the\ am__doit\ target*)
|
adamc@1132
|
3921 am__include=.include
|
adamc@1132
|
3922 am__quote="\""
|
adamc@1132
|
3923 _am_result=BSD
|
adamc@1132
|
3924 ;;
|
adamc@1132
|
3925 esac
|
adamc@1132
|
3926 fi
|
adamc@1132
|
3927
|
adamc@1132
|
3928
|
adamc@1132
|
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
|
adamc@1132
|
3930 $as_echo "$_am_result" >&6; }
|
adamc@1132
|
3931 rm -f confinc confmf
|
adamc@1132
|
3932
|
adamc@1132
|
3933 # Check whether --enable-dependency-tracking was given.
|
adamc@1132
|
3934 if test "${enable_dependency_tracking+set}" = set; then :
|
adamc@1132
|
3935 enableval=$enable_dependency_tracking;
|
adamc@1132
|
3936 fi
|
adamc@1132
|
3937
|
adamc@1132
|
3938 if test "x$enable_dependency_tracking" != xno; then
|
adamc@1132
|
3939 am_depcomp="$ac_aux_dir/depcomp"
|
adamc@1132
|
3940 AMDEPBACKSLASH='\'
|
adamc@1132
|
3941 fi
|
adamc@1132
|
3942 if test "x$enable_dependency_tracking" != xno; then
|
adamc@1132
|
3943 AMDEP_TRUE=
|
adamc@1132
|
3944 AMDEP_FALSE='#'
|
adamc@1132
|
3945 else
|
adamc@1132
|
3946 AMDEP_TRUE='#'
|
adamc@1132
|
3947 AMDEP_FALSE=
|
adamc@1132
|
3948 fi
|
adamc@1132
|
3949
|
adamc@1132
|
3950
|
adamc@1149
|
3951 if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
adamc@1149
|
3952 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
adamc@1149
|
3953 # is not polluted with repeated "-I."
|
adamc@1149
|
3954 am__isrc=' -I$(srcdir)'
|
adamc@1149
|
3955 # test to see if srcdir already configured
|
adamc@1149
|
3956 if test -f $srcdir/config.status; then
|
adam@1315
|
3957 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
|
adamc@1149
|
3958 fi
|
adamc@1149
|
3959 fi
|
adamc@1149
|
3960
|
adamc@1149
|
3961 # test whether we have cygpath
|
adamc@1149
|
3962 if test -z "$CYGPATH_W"; then
|
adamc@1149
|
3963 if (cygpath --version) >/dev/null 2>/dev/null; then
|
adamc@1149
|
3964 CYGPATH_W='cygpath -w'
|
adamc@1149
|
3965 else
|
adamc@1149
|
3966 CYGPATH_W=echo
|
adamc@1149
|
3967 fi
|
adamc@1149
|
3968 fi
|
adamc@1149
|
3969
|
adamc@1149
|
3970
|
adamc@1149
|
3971 # Define the identity of the package.
|
adamc@1149
|
3972 PACKAGE='urweb'
|
adam@1561
|
3973 VERSION='20110917'
|
adamc@1149
|
3974
|
adamc@1149
|
3975
|
adamc@1149
|
3976 # Some tools Automake needs.
|
adamc@1149
|
3977
|
adamc@1149
|
3978 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
adamc@1149
|
3979
|
adamc@1149
|
3980
|
adamc@1149
|
3981 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
adamc@1149
|
3982
|
adamc@1149
|
3983
|
adamc@1149
|
3984 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
adamc@1149
|
3985
|
adamc@1149
|
3986
|
adamc@1149
|
3987 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
adamc@1149
|
3988
|
adamc@1149
|
3989
|
adamc@1149
|
3990 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
adamc@1149
|
3991
|
adamc@1149
|
3992 # We need awk for the "check" target. The system "awk" is bad on
|
adamc@1149
|
3993 # some platforms.
|
adamc@1149
|
3994 # Always define AMTAR for backward compatibility.
|
adamc@1149
|
3995
|
adamc@1149
|
3996 AMTAR=${AMTAR-"${am_missing_run}tar"}
|
adamc@1149
|
3997
|
adamc@1149
|
3998 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
|
adamc@1149
|
3999
|
adamc@1149
|
4000
|
adamc@1149
|
4001
|
adamc@1132
|
4002
|
adamc@1132
|
4003 depcc="$CC" am_compiler_list=
|
adamc@1132
|
4004
|
adamc@1132
|
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
adamc@1132
|
4006 $as_echo_n "checking dependency style of $depcc... " >&6; }
|
adam@1459
|
4007 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
|
adamc@1132
|
4008 $as_echo_n "(cached) " >&6
|
adamc@1132
|
4009 else
|
adamc@1132
|
4010 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
adamc@1132
|
4011 # We make a subdir and do the tests there. Otherwise we can end up
|
adamc@1132
|
4012 # making bogus files that we don't know about and never remove. For
|
adamc@1132
|
4013 # instance it was reported that on HP-UX the gcc test will end up
|
adamc@1132
|
4014 # making a dummy file named `D' -- because `-MD' means `put the output
|
adamc@1132
|
4015 # in D'.
|
adamc@1132
|
4016 mkdir conftest.dir
|
adamc@1132
|
4017 # Copy depcomp to subdir because otherwise we won't find it if we're
|
adamc@1132
|
4018 # using a relative directory.
|
adamc@1132
|
4019 cp "$am_depcomp" conftest.dir
|
adamc@1132
|
4020 cd conftest.dir
|
adamc@1132
|
4021 # We will build objects and dependencies in a subdirectory because
|
adamc@1132
|
4022 # it helps to detect inapplicable dependency modes. For instance
|
adamc@1132
|
4023 # both Tru64's cc and ICC support -MD to output dependencies as a
|
adamc@1132
|
4024 # side effect of compilation, but ICC will put the dependencies in
|
adamc@1132
|
4025 # the current directory while Tru64 will put them in the object
|
adamc@1132
|
4026 # directory.
|
adamc@1132
|
4027 mkdir sub
|
adamc@1132
|
4028
|
adamc@1132
|
4029 am_cv_CC_dependencies_compiler_type=none
|
adamc@1132
|
4030 if test "$am_compiler_list" = ""; then
|
adamc@1132
|
4031 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
adamc@1132
|
4032 fi
|
adamc@1132
|
4033 am__universal=false
|
adamc@1132
|
4034 case " $depcc " in #(
|
adamc@1132
|
4035 *\ -arch\ *\ -arch\ *) am__universal=true ;;
|
adamc@1132
|
4036 esac
|
adamc@1132
|
4037
|
adamc@1132
|
4038 for depmode in $am_compiler_list; do
|
adamc@1132
|
4039 # Setup a source with many dependencies, because some compilers
|
adamc@1132
|
4040 # like to wrap large dependency lists on column 80 (with \), and
|
adamc@1132
|
4041 # we should not choose a depcomp mode which is confused by this.
|
adamc@1132
|
4042 #
|
adamc@1132
|
4043 # We need to recreate these files for each test, as the compiler may
|
adamc@1132
|
4044 # overwrite some of them when testing with obscure command lines.
|
adamc@1132
|
4045 # This happens at least with the AIX C compiler.
|
adamc@1132
|
4046 : > sub/conftest.c
|
adamc@1132
|
4047 for i in 1 2 3 4 5 6; do
|
adamc@1132
|
4048 echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
adamc@1132
|
4049 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
adamc@1132
|
4050 # Solaris 8's {/usr,}/bin/sh.
|
adamc@1132
|
4051 touch sub/conftst$i.h
|
adamc@1132
|
4052 done
|
adamc@1132
|
4053 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
adamc@1132
|
4054
|
adamc@1132
|
4055 # We check with `-c' and `-o' for the sake of the "dashmstdout"
|
adamc@1132
|
4056 # mode. It turns out that the SunPro C++ compiler does not properly
|
adamc@1132
|
4057 # handle `-M -o', and we need to detect this. Also, some Intel
|
adamc@1132
|
4058 # versions had trouble with output in subdirs
|
adamc@1132
|
4059 am__obj=sub/conftest.${OBJEXT-o}
|
adamc@1132
|
4060 am__minus_obj="-o $am__obj"
|
adamc@1132
|
4061 case $depmode in
|
adamc@1132
|
4062 gcc)
|
adamc@1132
|
4063 # This depmode causes a compiler race in universal mode.
|
adamc@1132
|
4064 test "$am__universal" = false || continue
|
adamc@1132
|
4065 ;;
|
adamc@1132
|
4066 nosideeffect)
|
adamc@1132
|
4067 # after this tag, mechanisms are not by side-effect, so they'll
|
adamc@1132
|
4068 # only be used when explicitly requested
|
adamc@1132
|
4069 if test "x$enable_dependency_tracking" = xyes; then
|
adamc@1132
|
4070 continue
|
adamc@1132
|
4071 else
|
adamc@1132
|
4072 break
|
adamc@1132
|
4073 fi
|
adamc@1132
|
4074 ;;
|
adamc@1132
|
4075 msvisualcpp | msvcmsys)
|
adamc@1132
|
4076 # This compiler won't grok `-c -o', but also, the minuso test has
|
adamc@1132
|
4077 # not run yet. These depmodes are late enough in the game, and
|
adamc@1132
|
4078 # so weak that their functioning should not be impacted.
|
adamc@1132
|
4079 am__obj=conftest.${OBJEXT-o}
|
adamc@1132
|
4080 am__minus_obj=
|
adamc@1132
|
4081 ;;
|
adamc@1132
|
4082 none) break ;;
|
adamc@1132
|
4083 esac
|
adamc@1132
|
4084 if depmode=$depmode \
|
adamc@1132
|
4085 source=sub/conftest.c object=$am__obj \
|
adamc@1132
|
4086 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
adamc@1132
|
4087 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
adamc@1132
|
4088 >/dev/null 2>conftest.err &&
|
adamc@1132
|
4089 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
adamc@1132
|
4090 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
adamc@1132
|
4091 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
adamc@1132
|
4092 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
adamc@1132
|
4093 # icc doesn't choke on unknown options, it will just issue warnings
|
adamc@1132
|
4094 # or remarks (even with -Werror). So we grep stderr for any message
|
adamc@1132
|
4095 # that says an option was ignored or not supported.
|
adamc@1132
|
4096 # When given -MP, icc 7.0 and 7.1 complain thusly:
|
adamc@1132
|
4097 # icc: Command line warning: ignoring option '-M'; no argument required
|
adamc@1132
|
4098 # The diagnosis changed in icc 8.0:
|
adamc@1132
|
4099 # icc: Command line remark: option '-MP' not supported
|
adamc@1132
|
4100 if (grep 'ignoring option' conftest.err ||
|
adamc@1132
|
4101 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
adamc@1132
|
4102 am_cv_CC_dependencies_compiler_type=$depmode
|
adamc@1132
|
4103 break
|
adamc@1132
|
4104 fi
|
adamc@1132
|
4105 fi
|
adamc@1132
|
4106 done
|
adamc@1132
|
4107
|
adamc@1132
|
4108 cd ..
|
adamc@1132
|
4109 rm -rf conftest.dir
|
adamc@1132
|
4110 else
|
adamc@1132
|
4111 am_cv_CC_dependencies_compiler_type=none
|
adamc@1132
|
4112 fi
|
adamc@1132
|
4113
|
adamc@1132
|
4114 fi
|
adamc@1132
|
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
|
adamc@1132
|
4116 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
|
adamc@1132
|
4117 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
adamc@1132
|
4118
|
adamc@1132
|
4119 if
|
adamc@1132
|
4120 test "x$enable_dependency_tracking" != xno \
|
adamc@1132
|
4121 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
adamc@1132
|
4122 am__fastdepCC_TRUE=
|
adamc@1132
|
4123 am__fastdepCC_FALSE='#'
|
adamc@1132
|
4124 else
|
adamc@1132
|
4125 am__fastdepCC_TRUE='#'
|
adamc@1132
|
4126 am__fastdepCC_FALSE=
|
adamc@1132
|
4127 fi
|
adamc@1132
|
4128
|
adamc@1132
|
4129
|
adamc@1149
|
4130
|
adamc@1149
|
4131 ac_ext=c
|
adamc@1149
|
4132 ac_cpp='$CPP $CPPFLAGS'
|
adamc@1149
|
4133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
adamc@1149
|
4134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
adamc@1149
|
4135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
adamc@1149
|
4136 if test -n "$ac_tool_prefix"; then
|
adamc@1149
|
4137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
adamc@1149
|
4138 set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
adamc@1149
|
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1149
|
4140 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
4141 if ${ac_cv_prog_CC+:} false; then :
|
adamc@1149
|
4142 $as_echo_n "(cached) " >&6
|
adamc@1149
|
4143 else
|
adamc@1149
|
4144 if test -n "$CC"; then
|
adamc@1149
|
4145 ac_cv_prog_CC="$CC" # Let the user override the test.
|
adamc@1149
|
4146 else
|
adamc@1149
|
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1149
|
4148 for as_dir in $PATH
|
adamc@1149
|
4149 do
|
adamc@1149
|
4150 IFS=$as_save_IFS
|
adamc@1149
|
4151 test -z "$as_dir" && as_dir=.
|
adamc@1149
|
4152 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1149
|
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1149
|
4154 ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
adamc@1149
|
4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1149
|
4156 break 2
|
adamc@1149
|
4157 fi
|
adamc@1149
|
4158 done
|
adamc@1149
|
4159 done
|
adamc@1149
|
4160 IFS=$as_save_IFS
|
adamc@1149
|
4161
|
adamc@1149
|
4162 fi
|
adamc@1149
|
4163 fi
|
adamc@1149
|
4164 CC=$ac_cv_prog_CC
|
adamc@1149
|
4165 if test -n "$CC"; then
|
adamc@1149
|
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
adamc@1149
|
4167 $as_echo "$CC" >&6; }
|
adamc@1149
|
4168 else
|
adamc@1149
|
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1149
|
4170 $as_echo "no" >&6; }
|
adamc@1149
|
4171 fi
|
adamc@1149
|
4172
|
adamc@1149
|
4173
|
adamc@1149
|
4174 fi
|
adamc@1149
|
4175 if test -z "$ac_cv_prog_CC"; then
|
adamc@1149
|
4176 ac_ct_CC=$CC
|
adamc@1149
|
4177 # Extract the first word of "gcc", so it can be a program name with args.
|
adamc@1149
|
4178 set dummy gcc; ac_word=$2
|
adamc@1149
|
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1149
|
4180 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
4181 if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
adamc@1149
|
4182 $as_echo_n "(cached) " >&6
|
adamc@1149
|
4183 else
|
adamc@1149
|
4184 if test -n "$ac_ct_CC"; then
|
adamc@1149
|
4185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
adamc@1149
|
4186 else
|
adamc@1149
|
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1149
|
4188 for as_dir in $PATH
|
adamc@1149
|
4189 do
|
adamc@1149
|
4190 IFS=$as_save_IFS
|
adamc@1149
|
4191 test -z "$as_dir" && as_dir=.
|
adamc@1149
|
4192 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1149
|
4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1149
|
4194 ac_cv_prog_ac_ct_CC="gcc"
|
adamc@1149
|
4195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1149
|
4196 break 2
|
adamc@1149
|
4197 fi
|
adamc@1149
|
4198 done
|
adamc@1149
|
4199 done
|
adamc@1149
|
4200 IFS=$as_save_IFS
|
adamc@1149
|
4201
|
adamc@1149
|
4202 fi
|
adamc@1149
|
4203 fi
|
adamc@1149
|
4204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
adamc@1149
|
4205 if test -n "$ac_ct_CC"; then
|
adamc@1149
|
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
adamc@1149
|
4207 $as_echo "$ac_ct_CC" >&6; }
|
adamc@1149
|
4208 else
|
adamc@1149
|
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1149
|
4210 $as_echo "no" >&6; }
|
adamc@1149
|
4211 fi
|
adamc@1149
|
4212
|
adamc@1149
|
4213 if test "x$ac_ct_CC" = x; then
|
adamc@1149
|
4214 CC=""
|
adamc@1149
|
4215 else
|
adamc@1149
|
4216 case $cross_compiling:$ac_tool_warned in
|
adamc@1149
|
4217 yes:)
|
adamc@1149
|
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
adamc@1149
|
4219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
adamc@1149
|
4220 ac_tool_warned=yes ;;
|
adamc@1149
|
4221 esac
|
adamc@1149
|
4222 CC=$ac_ct_CC
|
adamc@1149
|
4223 fi
|
adamc@1149
|
4224 else
|
adamc@1149
|
4225 CC="$ac_cv_prog_CC"
|
adamc@1149
|
4226 fi
|
adamc@1149
|
4227
|
adamc@1149
|
4228 if test -z "$CC"; then
|
adamc@1149
|
4229 if test -n "$ac_tool_prefix"; then
|
adamc@1149
|
4230 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
adamc@1149
|
4231 set dummy ${ac_tool_prefix}cc; ac_word=$2
|
adamc@1149
|
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1149
|
4233 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
4234 if ${ac_cv_prog_CC+:} false; then :
|
adamc@1149
|
4235 $as_echo_n "(cached) " >&6
|
adamc@1149
|
4236 else
|
adamc@1149
|
4237 if test -n "$CC"; then
|
adamc@1149
|
4238 ac_cv_prog_CC="$CC" # Let the user override the test.
|
adamc@1149
|
4239 else
|
adamc@1149
|
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1149
|
4241 for as_dir in $PATH
|
adamc@1149
|
4242 do
|
adamc@1149
|
4243 IFS=$as_save_IFS
|
adamc@1149
|
4244 test -z "$as_dir" && as_dir=.
|
adamc@1149
|
4245 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1149
|
4246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1149
|
4247 ac_cv_prog_CC="${ac_tool_prefix}cc"
|
adamc@1149
|
4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1149
|
4249 break 2
|
adamc@1149
|
4250 fi
|
adamc@1149
|
4251 done
|
adamc@1149
|
4252 done
|
adamc@1149
|
4253 IFS=$as_save_IFS
|
adamc@1149
|
4254
|
adamc@1149
|
4255 fi
|
adamc@1149
|
4256 fi
|
adamc@1149
|
4257 CC=$ac_cv_prog_CC
|
adamc@1149
|
4258 if test -n "$CC"; then
|
adamc@1149
|
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
adamc@1149
|
4260 $as_echo "$CC" >&6; }
|
adamc@1149
|
4261 else
|
adamc@1149
|
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1149
|
4263 $as_echo "no" >&6; }
|
adamc@1149
|
4264 fi
|
adamc@1149
|
4265
|
adamc@1149
|
4266
|
adamc@1149
|
4267 fi
|
adamc@1149
|
4268 fi
|
adamc@1149
|
4269 if test -z "$CC"; then
|
adamc@1149
|
4270 # Extract the first word of "cc", so it can be a program name with args.
|
adamc@1149
|
4271 set dummy cc; ac_word=$2
|
adamc@1149
|
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1149
|
4273 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
4274 if ${ac_cv_prog_CC+:} false; then :
|
adamc@1149
|
4275 $as_echo_n "(cached) " >&6
|
adamc@1149
|
4276 else
|
adamc@1149
|
4277 if test -n "$CC"; then
|
adamc@1149
|
4278 ac_cv_prog_CC="$CC" # Let the user override the test.
|
adamc@1149
|
4279 else
|
adamc@1149
|
4280 ac_prog_rejected=no
|
adamc@1149
|
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1149
|
4282 for as_dir in $PATH
|
adamc@1149
|
4283 do
|
adamc@1149
|
4284 IFS=$as_save_IFS
|
adamc@1149
|
4285 test -z "$as_dir" && as_dir=.
|
adamc@1149
|
4286 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1149
|
4287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1149
|
4288 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
adamc@1149
|
4289 ac_prog_rejected=yes
|
adamc@1149
|
4290 continue
|
adamc@1149
|
4291 fi
|
adamc@1149
|
4292 ac_cv_prog_CC="cc"
|
adamc@1149
|
4293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1149
|
4294 break 2
|
adamc@1149
|
4295 fi
|
adamc@1149
|
4296 done
|
adamc@1149
|
4297 done
|
adamc@1149
|
4298 IFS=$as_save_IFS
|
adamc@1149
|
4299
|
adamc@1149
|
4300 if test $ac_prog_rejected = yes; then
|
adamc@1149
|
4301 # We found a bogon in the path, so make sure we never use it.
|
adamc@1149
|
4302 set dummy $ac_cv_prog_CC
|
adamc@1149
|
4303 shift
|
adamc@1149
|
4304 if test $# != 0; then
|
adamc@1149
|
4305 # We chose a different compiler from the bogus one.
|
adamc@1149
|
4306 # However, it has the same basename, so the bogon will be chosen
|
adamc@1149
|
4307 # first if we set CC to just the basename; use the full file name.
|
adamc@1149
|
4308 shift
|
adamc@1149
|
4309 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
adamc@1149
|
4310 fi
|
adamc@1149
|
4311 fi
|
adamc@1149
|
4312 fi
|
adamc@1149
|
4313 fi
|
adamc@1149
|
4314 CC=$ac_cv_prog_CC
|
adamc@1149
|
4315 if test -n "$CC"; then
|
adamc@1149
|
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
adamc@1149
|
4317 $as_echo "$CC" >&6; }
|
adamc@1149
|
4318 else
|
adamc@1149
|
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1149
|
4320 $as_echo "no" >&6; }
|
adamc@1149
|
4321 fi
|
adamc@1149
|
4322
|
adamc@1149
|
4323
|
adamc@1149
|
4324 fi
|
adamc@1149
|
4325 if test -z "$CC"; then
|
adamc@1149
|
4326 if test -n "$ac_tool_prefix"; then
|
adamc@1149
|
4327 for ac_prog in cl.exe
|
adamc@1149
|
4328 do
|
adamc@1149
|
4329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
adamc@1149
|
4330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
adamc@1149
|
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1149
|
4332 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
4333 if ${ac_cv_prog_CC+:} false; then :
|
adamc@1149
|
4334 $as_echo_n "(cached) " >&6
|
adamc@1149
|
4335 else
|
adamc@1149
|
4336 if test -n "$CC"; then
|
adamc@1149
|
4337 ac_cv_prog_CC="$CC" # Let the user override the test.
|
adamc@1149
|
4338 else
|
adamc@1149
|
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1149
|
4340 for as_dir in $PATH
|
adamc@1149
|
4341 do
|
adamc@1149
|
4342 IFS=$as_save_IFS
|
adamc@1149
|
4343 test -z "$as_dir" && as_dir=.
|
adamc@1149
|
4344 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1149
|
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1149
|
4346 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
adamc@1149
|
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1149
|
4348 break 2
|
adamc@1149
|
4349 fi
|
adamc@1149
|
4350 done
|
adamc@1149
|
4351 done
|
adamc@1149
|
4352 IFS=$as_save_IFS
|
adamc@1149
|
4353
|
adamc@1149
|
4354 fi
|
adamc@1149
|
4355 fi
|
adamc@1149
|
4356 CC=$ac_cv_prog_CC
|
adamc@1149
|
4357 if test -n "$CC"; then
|
adamc@1149
|
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
adamc@1149
|
4359 $as_echo "$CC" >&6; }
|
adamc@1149
|
4360 else
|
adamc@1149
|
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1149
|
4362 $as_echo "no" >&6; }
|
adamc@1149
|
4363 fi
|
adamc@1149
|
4364
|
adamc@1149
|
4365
|
adamc@1149
|
4366 test -n "$CC" && break
|
adamc@1149
|
4367 done
|
adamc@1149
|
4368 fi
|
adamc@1149
|
4369 if test -z "$CC"; then
|
adamc@1149
|
4370 ac_ct_CC=$CC
|
adamc@1149
|
4371 for ac_prog in cl.exe
|
adamc@1149
|
4372 do
|
adamc@1149
|
4373 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
adamc@1149
|
4374 set dummy $ac_prog; ac_word=$2
|
adamc@1149
|
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1149
|
4376 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
4377 if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
adamc@1149
|
4378 $as_echo_n "(cached) " >&6
|
adamc@1149
|
4379 else
|
adamc@1149
|
4380 if test -n "$ac_ct_CC"; then
|
adamc@1149
|
4381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
adamc@1149
|
4382 else
|
adamc@1149
|
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1149
|
4384 for as_dir in $PATH
|
adamc@1149
|
4385 do
|
adamc@1149
|
4386 IFS=$as_save_IFS
|
adamc@1149
|
4387 test -z "$as_dir" && as_dir=.
|
adamc@1149
|
4388 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1149
|
4389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1149
|
4390 ac_cv_prog_ac_ct_CC="$ac_prog"
|
adamc@1149
|
4391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1149
|
4392 break 2
|
adamc@1149
|
4393 fi
|
adamc@1149
|
4394 done
|
adamc@1149
|
4395 done
|
adamc@1149
|
4396 IFS=$as_save_IFS
|
adamc@1149
|
4397
|
adamc@1149
|
4398 fi
|
adamc@1149
|
4399 fi
|
adamc@1149
|
4400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
adamc@1149
|
4401 if test -n "$ac_ct_CC"; then
|
adamc@1149
|
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
adamc@1149
|
4403 $as_echo "$ac_ct_CC" >&6; }
|
adamc@1149
|
4404 else
|
adamc@1149
|
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1149
|
4406 $as_echo "no" >&6; }
|
adamc@1149
|
4407 fi
|
adamc@1149
|
4408
|
adamc@1149
|
4409
|
adamc@1149
|
4410 test -n "$ac_ct_CC" && break
|
adamc@1149
|
4411 done
|
adamc@1149
|
4412
|
adamc@1149
|
4413 if test "x$ac_ct_CC" = x; then
|
adamc@1149
|
4414 CC=""
|
adamc@1149
|
4415 else
|
adamc@1149
|
4416 case $cross_compiling:$ac_tool_warned in
|
adamc@1149
|
4417 yes:)
|
adamc@1149
|
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
adamc@1149
|
4419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
adamc@1149
|
4420 ac_tool_warned=yes ;;
|
adamc@1149
|
4421 esac
|
adamc@1149
|
4422 CC=$ac_ct_CC
|
adamc@1149
|
4423 fi
|
adamc@1149
|
4424 fi
|
adamc@1149
|
4425
|
adamc@1149
|
4426 fi
|
adamc@1149
|
4427
|
adamc@1149
|
4428
|
adamc@1149
|
4429 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
adamc@1149
|
4430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
adam@1315
|
4431 as_fn_error $? "no acceptable C compiler found in \$PATH
|
adam@1459
|
4432 See \`config.log' for more details" "$LINENO" 5; }
|
adamc@1149
|
4433
|
adamc@1149
|
4434 # Provide some information about the compiler.
|
adamc@1149
|
4435 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
adamc@1149
|
4436 set X $ac_compile
|
adamc@1149
|
4437 ac_compiler=$2
|
adamc@1149
|
4438 for ac_option in --version -v -V -qversion; do
|
adamc@1149
|
4439 { { ac_try="$ac_compiler $ac_option >&5"
|
adamc@1149
|
4440 case "(($ac_try" in
|
adamc@1149
|
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
adamc@1149
|
4442 *) ac_try_echo=$ac_try;;
|
adamc@1149
|
4443 esac
|
adamc@1149
|
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
adamc@1149
|
4445 $as_echo "$ac_try_echo"; } >&5
|
adamc@1149
|
4446 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
adamc@1149
|
4447 ac_status=$?
|
adamc@1149
|
4448 if test -s conftest.err; then
|
adamc@1149
|
4449 sed '10a\
|
adamc@1149
|
4450 ... rest of stderr output deleted ...
|
adamc@1149
|
4451 10q' conftest.err >conftest.er1
|
adamc@1149
|
4452 cat conftest.er1 >&5
|
adamc@1149
|
4453 fi
|
adamc@1149
|
4454 rm -f conftest.er1 conftest.err
|
adamc@1149
|
4455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1149
|
4456 test $ac_status = 0; }
|
adamc@1149
|
4457 done
|
adamc@1149
|
4458
|
adamc@1149
|
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
adamc@1149
|
4460 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
adam@1459
|
4461 if ${ac_cv_c_compiler_gnu+:} false; then :
|
adamc@1149
|
4462 $as_echo_n "(cached) " >&6
|
adamc@1149
|
4463 else
|
adamc@1149
|
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
4465 /* end confdefs.h. */
|
adamc@1149
|
4466
|
adamc@1149
|
4467 int
|
adamc@1149
|
4468 main ()
|
adamc@1149
|
4469 {
|
adamc@1149
|
4470 #ifndef __GNUC__
|
adamc@1149
|
4471 choke me
|
adamc@1149
|
4472 #endif
|
adamc@1149
|
4473
|
adamc@1149
|
4474 ;
|
adamc@1149
|
4475 return 0;
|
adamc@1149
|
4476 }
|
adamc@1149
|
4477 _ACEOF
|
adamc@1149
|
4478 if ac_fn_c_try_compile "$LINENO"; then :
|
adamc@1149
|
4479 ac_compiler_gnu=yes
|
adamc@1149
|
4480 else
|
adamc@1149
|
4481 ac_compiler_gnu=no
|
adamc@1149
|
4482 fi
|
adamc@1149
|
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
adamc@1149
|
4484 ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
adamc@1149
|
4485
|
adamc@1149
|
4486 fi
|
adamc@1149
|
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
adamc@1149
|
4488 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
adamc@1149
|
4489 if test $ac_compiler_gnu = yes; then
|
adamc@1149
|
4490 GCC=yes
|
adamc@1149
|
4491 else
|
adamc@1149
|
4492 GCC=
|
adamc@1149
|
4493 fi
|
adamc@1149
|
4494 ac_test_CFLAGS=${CFLAGS+set}
|
adamc@1149
|
4495 ac_save_CFLAGS=$CFLAGS
|
adamc@1149
|
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
adamc@1149
|
4497 $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
adam@1459
|
4498 if ${ac_cv_prog_cc_g+:} false; then :
|
adamc@1149
|
4499 $as_echo_n "(cached) " >&6
|
adamc@1149
|
4500 else
|
adamc@1149
|
4501 ac_save_c_werror_flag=$ac_c_werror_flag
|
adamc@1149
|
4502 ac_c_werror_flag=yes
|
adamc@1149
|
4503 ac_cv_prog_cc_g=no
|
adamc@1149
|
4504 CFLAGS="-g"
|
adamc@1149
|
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
4506 /* end confdefs.h. */
|
adamc@1149
|
4507
|
adamc@1149
|
4508 int
|
adamc@1149
|
4509 main ()
|
adamc@1149
|
4510 {
|
adamc@1149
|
4511
|
adamc@1149
|
4512 ;
|
adamc@1149
|
4513 return 0;
|
adamc@1149
|
4514 }
|
adamc@1149
|
4515 _ACEOF
|
adamc@1149
|
4516 if ac_fn_c_try_compile "$LINENO"; then :
|
adamc@1149
|
4517 ac_cv_prog_cc_g=yes
|
adamc@1149
|
4518 else
|
adamc@1149
|
4519 CFLAGS=""
|
adamc@1149
|
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
4521 /* end confdefs.h. */
|
adamc@1149
|
4522
|
adamc@1149
|
4523 int
|
adamc@1149
|
4524 main ()
|
adamc@1149
|
4525 {
|
adamc@1149
|
4526
|
adamc@1149
|
4527 ;
|
adamc@1149
|
4528 return 0;
|
adamc@1149
|
4529 }
|
adamc@1149
|
4530 _ACEOF
|
adamc@1149
|
4531 if ac_fn_c_try_compile "$LINENO"; then :
|
adamc@1149
|
4532
|
adamc@1149
|
4533 else
|
adamc@1149
|
4534 ac_c_werror_flag=$ac_save_c_werror_flag
|
adamc@1149
|
4535 CFLAGS="-g"
|
adamc@1149
|
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
4537 /* end confdefs.h. */
|
adamc@1149
|
4538
|
adamc@1149
|
4539 int
|
adamc@1149
|
4540 main ()
|
adamc@1149
|
4541 {
|
adamc@1149
|
4542
|
adamc@1149
|
4543 ;
|
adamc@1149
|
4544 return 0;
|
adamc@1149
|
4545 }
|
adamc@1149
|
4546 _ACEOF
|
adamc@1149
|
4547 if ac_fn_c_try_compile "$LINENO"; then :
|
adamc@1149
|
4548 ac_cv_prog_cc_g=yes
|
adamc@1149
|
4549 fi
|
adamc@1149
|
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
adamc@1149
|
4551 fi
|
adamc@1149
|
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
adamc@1149
|
4553 fi
|
adamc@1149
|
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
adamc@1149
|
4555 ac_c_werror_flag=$ac_save_c_werror_flag
|
adamc@1149
|
4556 fi
|
adamc@1149
|
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
adamc@1149
|
4558 $as_echo "$ac_cv_prog_cc_g" >&6; }
|
adamc@1149
|
4559 if test "$ac_test_CFLAGS" = set; then
|
adamc@1149
|
4560 CFLAGS=$ac_save_CFLAGS
|
adamc@1149
|
4561 elif test $ac_cv_prog_cc_g = yes; then
|
adamc@1149
|
4562 if test "$GCC" = yes; then
|
adamc@1149
|
4563 CFLAGS="-g -O2"
|
adamc@1149
|
4564 else
|
adamc@1149
|
4565 CFLAGS="-g"
|
adamc@1149
|
4566 fi
|
adamc@1149
|
4567 else
|
adamc@1149
|
4568 if test "$GCC" = yes; then
|
adamc@1149
|
4569 CFLAGS="-O2"
|
adamc@1149
|
4570 else
|
adamc@1149
|
4571 CFLAGS=
|
adamc@1149
|
4572 fi
|
adamc@1149
|
4573 fi
|
adamc@1149
|
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
adamc@1149
|
4575 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
adam@1459
|
4576 if ${ac_cv_prog_cc_c89+:} false; then :
|
adamc@1149
|
4577 $as_echo_n "(cached) " >&6
|
adamc@1149
|
4578 else
|
adamc@1149
|
4579 ac_cv_prog_cc_c89=no
|
adamc@1149
|
4580 ac_save_CC=$CC
|
adamc@1149
|
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1149
|
4582 /* end confdefs.h. */
|
adamc@1149
|
4583 #include <stdarg.h>
|
adamc@1149
|
4584 #include <stdio.h>
|
adamc@1149
|
4585 #include <sys/types.h>
|
adamc@1149
|
4586 #include <sys/stat.h>
|
adamc@1149
|
4587 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
adamc@1149
|
4588 struct buf { int x; };
|
adamc@1149
|
4589 FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
adamc@1149
|
4590 static char *e (p, i)
|
adamc@1149
|
4591 char **p;
|
adamc@1149
|
4592 int i;
|
adamc@1149
|
4593 {
|
adamc@1149
|
4594 return p[i];
|
adamc@1149
|
4595 }
|
adamc@1149
|
4596 static char *f (char * (*g) (char **, int), char **p, ...)
|
adamc@1149
|
4597 {
|
adamc@1149
|
4598 char *s;
|
adamc@1149
|
4599 va_list v;
|
adamc@1149
|
4600 va_start (v,p);
|
adamc@1149
|
4601 s = g (p, va_arg (v,int));
|
adamc@1149
|
4602 va_end (v);
|
adamc@1149
|
4603 return s;
|
adamc@1149
|
4604 }
|
adamc@1149
|
4605
|
adamc@1149
|
4606 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
adamc@1149
|
4607 function prototypes and stuff, but not '\xHH' hex character constants.
|
adamc@1149
|
4608 These don't provoke an error unfortunately, instead are silently treated
|
adamc@1149
|
4609 as 'x'. The following induces an error, until -std is added to get
|
adamc@1149
|
4610 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
adamc@1149
|
4611 array size at least. It's necessary to write '\x00'==0 to get something
|
adamc@1149
|
4612 that's true only with -std. */
|
adamc@1149
|
4613 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
adamc@1149
|
4614
|
adamc@1149
|
4615 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
adamc@1149
|
4616 inside strings and character constants. */
|
adamc@1149
|
4617 #define FOO(x) 'x'
|
adamc@1149
|
4618 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
adamc@1149
|
4619
|
adamc@1149
|
4620 int test (int i, double x);
|
adamc@1149
|
4621 struct s1 {int (*f) (int a);};
|
adamc@1149
|
4622 struct s2 {int (*f) (double a);};
|
adamc@1149
|
4623 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
adamc@1149
|
4624 int argc;
|
adamc@1149
|
4625 char **argv;
|
adamc@1149
|
4626 int
|
adamc@1149
|
4627 main ()
|
adamc@1149
|
4628 {
|
adamc@1149
|
4629 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
adamc@1149
|
4630 ;
|
adamc@1149
|
4631 return 0;
|
adamc@1149
|
4632 }
|
adamc@1149
|
4633 _ACEOF
|
adamc@1149
|
4634 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
adamc@1149
|
4635 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
adamc@1149
|
4636 do
|
adamc@1149
|
4637 CC="$ac_save_CC $ac_arg"
|
adamc@1149
|
4638 if ac_fn_c_try_compile "$LINENO"; then :
|
adamc@1149
|
4639 ac_cv_prog_cc_c89=$ac_arg
|
adamc@1149
|
4640 fi
|
adamc@1149
|
4641 rm -f core conftest.err conftest.$ac_objext
|
adamc@1149
|
4642 test "x$ac_cv_prog_cc_c89" != "xno" && break
|
adamc@1149
|
4643 done
|
adamc@1149
|
4644 rm -f conftest.$ac_ext
|
adamc@1149
|
4645 CC=$ac_save_CC
|
adamc@1149
|
4646
|
adamc@1149
|
4647 fi
|
adamc@1149
|
4648 # AC_CACHE_VAL
|
adamc@1149
|
4649 case "x$ac_cv_prog_cc_c89" in
|
adamc@1149
|
4650 x)
|
adamc@1149
|
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
adamc@1149
|
4652 $as_echo "none needed" >&6; } ;;
|
adamc@1149
|
4653 xno)
|
adamc@1149
|
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
adamc@1149
|
4655 $as_echo "unsupported" >&6; } ;;
|
adamc@1149
|
4656 *)
|
adamc@1149
|
4657 CC="$CC $ac_cv_prog_cc_c89"
|
adamc@1149
|
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
adamc@1149
|
4659 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
adamc@1149
|
4660 esac
|
adamc@1149
|
4661 if test "x$ac_cv_prog_cc_c89" != xno; then :
|
adamc@1149
|
4662
|
adamc@1149
|
4663 fi
|
adamc@1149
|
4664
|
adamc@1149
|
4665 ac_ext=c
|
adamc@1149
|
4666 ac_cpp='$CPP $CPPFLAGS'
|
adamc@1149
|
4667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
adamc@1149
|
4668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
adamc@1149
|
4669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
adamc@1149
|
4670
|
adamc@1132
|
4671 case `pwd` in
|
adamc@1132
|
4672 *\ * | *\ *)
|
adamc@1132
|
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
|
adamc@1132
|
4674 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
|
adamc@1132
|
4675 esac
|
adamc@1132
|
4676
|
adamc@1132
|
4677
|
adamc@1132
|
4678
|
adam@1459
|
4679 macro_version='2.4'
|
adam@1459
|
4680 macro_revision='1.3293'
|
adamc@1132
|
4681
|
adamc@1132
|
4682
|
adamc@1132
|
4683
|
adamc@1132
|
4684
|
adamc@1132
|
4685
|
adamc@1132
|
4686
|
adamc@1132
|
4687
|
adamc@1132
|
4688
|
adamc@1132
|
4689
|
adamc@1132
|
4690
|
adamc@1132
|
4691
|
adamc@1132
|
4692
|
adamc@1132
|
4693
|
adamc@1132
|
4694 ltmain="$ac_aux_dir/ltmain.sh"
|
adamc@1132
|
4695
|
adamc@1132
|
4696 # Make sure we can run config.sub.
|
adamc@1132
|
4697 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
adam@1315
|
4698 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
adamc@1132
|
4699
|
adamc@1132
|
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
adamc@1132
|
4701 $as_echo_n "checking build system type... " >&6; }
|
adam@1459
|
4702 if ${ac_cv_build+:} false; then :
|
adamc@1132
|
4703 $as_echo_n "(cached) " >&6
|
adamc@1132
|
4704 else
|
adamc@1132
|
4705 ac_build_alias=$build_alias
|
adamc@1132
|
4706 test "x$ac_build_alias" = x &&
|
adamc@1132
|
4707 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
adamc@1132
|
4708 test "x$ac_build_alias" = x &&
|
adam@1315
|
4709 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
adamc@1132
|
4710 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
adam@1315
|
4711 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
adamc@1132
|
4712
|
adamc@1132
|
4713 fi
|
adamc@1132
|
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
adamc@1132
|
4715 $as_echo "$ac_cv_build" >&6; }
|
adamc@1132
|
4716 case $ac_cv_build in
|
adamc@1132
|
4717 *-*-*) ;;
|
adam@1459
|
4718 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
adamc@1132
|
4719 esac
|
adamc@1132
|
4720 build=$ac_cv_build
|
adamc@1132
|
4721 ac_save_IFS=$IFS; IFS='-'
|
adamc@1132
|
4722 set x $ac_cv_build
|
adamc@1132
|
4723 shift
|
adamc@1132
|
4724 build_cpu=$1
|
adamc@1132
|
4725 build_vendor=$2
|
adamc@1132
|
4726 shift; shift
|
adamc@1132
|
4727 # Remember, the first character of IFS is used to create $*,
|
adamc@1132
|
4728 # except with old shells:
|
adamc@1132
|
4729 build_os=$*
|
adamc@1132
|
4730 IFS=$ac_save_IFS
|
adamc@1132
|
4731 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
adamc@1132
|
4732
|
adamc@1132
|
4733
|
adamc@1132
|
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
adamc@1132
|
4735 $as_echo_n "checking host system type... " >&6; }
|
adam@1459
|
4736 if ${ac_cv_host+:} false; then :
|
adamc@1132
|
4737 $as_echo_n "(cached) " >&6
|
adamc@1132
|
4738 else
|
adamc@1132
|
4739 if test "x$host_alias" = x; then
|
adamc@1132
|
4740 ac_cv_host=$ac_cv_build
|
adamc@1132
|
4741 else
|
adamc@1132
|
4742 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
adam@1315
|
4743 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
adamc@1132
|
4744 fi
|
adamc@1132
|
4745
|
adamc@1132
|
4746 fi
|
adamc@1132
|
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
adamc@1132
|
4748 $as_echo "$ac_cv_host" >&6; }
|
adamc@1132
|
4749 case $ac_cv_host in
|
adamc@1132
|
4750 *-*-*) ;;
|
adam@1459
|
4751 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
adamc@1132
|
4752 esac
|
adamc@1132
|
4753 host=$ac_cv_host
|
adamc@1132
|
4754 ac_save_IFS=$IFS; IFS='-'
|
adamc@1132
|
4755 set x $ac_cv_host
|
adamc@1132
|
4756 shift
|
adamc@1132
|
4757 host_cpu=$1
|
adamc@1132
|
4758 host_vendor=$2
|
adamc@1132
|
4759 shift; shift
|
adamc@1132
|
4760 # Remember, the first character of IFS is used to create $*,
|
adamc@1132
|
4761 # except with old shells:
|
adamc@1132
|
4762 host_os=$*
|
adamc@1132
|
4763 IFS=$ac_save_IFS
|
adamc@1132
|
4764 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
adamc@1132
|
4765
|
adamc@1132
|
4766
|
adam@1459
|
4767 # Backslashify metacharacters that are still active within
|
adam@1459
|
4768 # double-quoted strings.
|
adam@1459
|
4769 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
|
adam@1459
|
4770
|
adam@1459
|
4771 # Same as above, but do not quote variable references.
|
adam@1459
|
4772 double_quote_subst='s/\(["`\\]\)/\\\1/g'
|
adam@1459
|
4773
|
adam@1459
|
4774 # Sed substitution to delay expansion of an escaped shell variable in a
|
adam@1459
|
4775 # double_quote_subst'ed string.
|
adam@1459
|
4776 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
adam@1459
|
4777
|
adam@1459
|
4778 # Sed substitution to delay expansion of an escaped single quote.
|
adam@1459
|
4779 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
adam@1459
|
4780
|
adam@1459
|
4781 # Sed substitution to avoid accidental globbing in evaled expressions
|
adam@1459
|
4782 no_glob_subst='s/\*/\\\*/g'
|
adam@1459
|
4783
|
adam@1459
|
4784 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
adam@1459
|
4785 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
adam@1459
|
4786 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
adam@1459
|
4787
|
adam@1459
|
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
adam@1459
|
4789 $as_echo_n "checking how to print strings... " >&6; }
|
adam@1459
|
4790 # Test print first, because it will be a builtin if present.
|
adam@1459
|
4791 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
adam@1459
|
4792 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
adam@1459
|
4793 ECHO='print -r --'
|
adam@1459
|
4794 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
adam@1459
|
4795 ECHO='printf %s\n'
|
adam@1459
|
4796 else
|
adam@1459
|
4797 # Use this function as a fallback that always works.
|
adam@1459
|
4798 func_fallback_echo ()
|
adam@1459
|
4799 {
|
adam@1459
|
4800 eval 'cat <<_LTECHO_EOF
|
adam@1459
|
4801 $1
|
adam@1459
|
4802 _LTECHO_EOF'
|
adam@1459
|
4803 }
|
adam@1459
|
4804 ECHO='func_fallback_echo'
|
adam@1459
|
4805 fi
|
adam@1459
|
4806
|
adam@1459
|
4807 # func_echo_all arg...
|
adam@1459
|
4808 # Invoke $ECHO with all args, space-separated.
|
adam@1459
|
4809 func_echo_all ()
|
adam@1459
|
4810 {
|
adam@1459
|
4811 $ECHO ""
|
adam@1459
|
4812 }
|
adam@1459
|
4813
|
adam@1459
|
4814 case "$ECHO" in
|
adam@1459
|
4815 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
|
adam@1459
|
4816 $as_echo "printf" >&6; } ;;
|
adam@1459
|
4817 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
|
adam@1459
|
4818 $as_echo "print -r" >&6; } ;;
|
adam@1459
|
4819 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
|
adam@1459
|
4820 $as_echo "cat" >&6; } ;;
|
adam@1459
|
4821 esac
|
adam@1459
|
4822
|
adam@1459
|
4823
|
adam@1459
|
4824
|
adam@1459
|
4825
|
adam@1459
|
4826
|
adam@1459
|
4827
|
adam@1459
|
4828
|
adam@1459
|
4829
|
adam@1459
|
4830
|
adam@1459
|
4831
|
adam@1459
|
4832
|
adam@1459
|
4833
|
adam@1459
|
4834
|
adam@1459
|
4835
|
adamc@1132
|
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
|
adamc@1132
|
4837 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
|
adam@1459
|
4838 if ${ac_cv_path_SED+:} false; then :
|
adamc@1132
|
4839 $as_echo_n "(cached) " >&6
|
adamc@1132
|
4840 else
|
adamc@1132
|
4841 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
|
adamc@1132
|
4842 for ac_i in 1 2 3 4 5 6 7; do
|
adamc@1132
|
4843 ac_script="$ac_script$as_nl$ac_script"
|
adamc@1132
|
4844 done
|
adamc@1132
|
4845 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
|
adamc@1132
|
4846 { ac_script=; unset ac_script;}
|
adamc@1132
|
4847 if test -z "$SED"; then
|
adamc@1132
|
4848 ac_path_SED_found=false
|
adamc@1132
|
4849 # Loop through the user's path and test for each of PROGNAME-LIST
|
adamc@1132
|
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
4851 for as_dir in $PATH
|
adamc@1132
|
4852 do
|
adamc@1132
|
4853 IFS=$as_save_IFS
|
adamc@1132
|
4854 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
4855 for ac_prog in sed gsed; do
|
adamc@1132
|
4856 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
4857 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
|
adamc@1132
|
4858 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
|
adamc@1132
|
4859 # Check for GNU ac_path_SED and select it if it is found.
|
adamc@1132
|
4860 # Check for GNU $ac_path_SED
|
adamc@1132
|
4861 case `"$ac_path_SED" --version 2>&1` in
|
adamc@1132
|
4862 *GNU*)
|
adamc@1132
|
4863 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
|
adamc@1132
|
4864 *)
|
adamc@1132
|
4865 ac_count=0
|
adamc@1132
|
4866 $as_echo_n 0123456789 >"conftest.in"
|
adamc@1132
|
4867 while :
|
adamc@1132
|
4868 do
|
adamc@1132
|
4869 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
adamc@1132
|
4870 mv "conftest.tmp" "conftest.in"
|
adamc@1132
|
4871 cp "conftest.in" "conftest.nl"
|
adamc@1132
|
4872 $as_echo '' >> "conftest.nl"
|
adamc@1132
|
4873 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
adamc@1132
|
4874 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
adamc@1132
|
4875 as_fn_arith $ac_count + 1 && ac_count=$as_val
|
adamc@1132
|
4876 if test $ac_count -gt ${ac_path_SED_max-0}; then
|
adamc@1132
|
4877 # Best one so far, save it but keep looking for a better one
|
adamc@1132
|
4878 ac_cv_path_SED="$ac_path_SED"
|
adamc@1132
|
4879 ac_path_SED_max=$ac_count
|
adamc@1132
|
4880 fi
|
adamc@1132
|
4881 # 10*(2^10) chars as input seems more than enough
|
adamc@1132
|
4882 test $ac_count -gt 10 && break
|
adamc@1132
|
4883 done
|
adamc@1132
|
4884 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
adamc@1132
|
4885 esac
|
adamc@1132
|
4886
|
adamc@1132
|
4887 $ac_path_SED_found && break 3
|
adamc@1132
|
4888 done
|
adamc@1132
|
4889 done
|
adamc@1132
|
4890 done
|
adamc@1132
|
4891 IFS=$as_save_IFS
|
adamc@1132
|
4892 if test -z "$ac_cv_path_SED"; then
|
adam@1315
|
4893 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
|
adamc@1132
|
4894 fi
|
adamc@1132
|
4895 else
|
adamc@1132
|
4896 ac_cv_path_SED=$SED
|
adamc@1132
|
4897 fi
|
adamc@1132
|
4898
|
adamc@1132
|
4899 fi
|
adamc@1132
|
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
|
adamc@1132
|
4901 $as_echo "$ac_cv_path_SED" >&6; }
|
adamc@1132
|
4902 SED="$ac_cv_path_SED"
|
adamc@1132
|
4903 rm -f conftest.sed
|
adamc@1132
|
4904
|
adamc@1132
|
4905 test -z "$SED" && SED=sed
|
adamc@1132
|
4906 Xsed="$SED -e 1s/^X//"
|
adamc@1132
|
4907
|
adamc@1132
|
4908
|
adamc@1132
|
4909
|
adamc@1132
|
4910
|
adamc@1132
|
4911
|
adamc@1132
|
4912
|
adamc@1132
|
4913
|
adamc@1132
|
4914
|
adamc@1132
|
4915
|
adamc@1132
|
4916
|
adamc@1132
|
4917
|
adamc@1132
|
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
|
adamc@1132
|
4919 $as_echo_n "checking for fgrep... " >&6; }
|
adam@1459
|
4920 if ${ac_cv_path_FGREP+:} false; then :
|
adamc@1132
|
4921 $as_echo_n "(cached) " >&6
|
adamc@1132
|
4922 else
|
adamc@1132
|
4923 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
|
adamc@1132
|
4924 then ac_cv_path_FGREP="$GREP -F"
|
adamc@1132
|
4925 else
|
adamc@1132
|
4926 if test -z "$FGREP"; then
|
adamc@1132
|
4927 ac_path_FGREP_found=false
|
adamc@1132
|
4928 # Loop through the user's path and test for each of PROGNAME-LIST
|
adamc@1132
|
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
4930 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
adamc@1132
|
4931 do
|
adamc@1132
|
4932 IFS=$as_save_IFS
|
adamc@1132
|
4933 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
4934 for ac_prog in fgrep; do
|
adamc@1132
|
4935 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
4936 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
|
adamc@1132
|
4937 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
|
adamc@1132
|
4938 # Check for GNU ac_path_FGREP and select it if it is found.
|
adamc@1132
|
4939 # Check for GNU $ac_path_FGREP
|
adamc@1132
|
4940 case `"$ac_path_FGREP" --version 2>&1` in
|
adamc@1132
|
4941 *GNU*)
|
adamc@1132
|
4942 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
|
adamc@1132
|
4943 *)
|
adamc@1132
|
4944 ac_count=0
|
adamc@1132
|
4945 $as_echo_n 0123456789 >"conftest.in"
|
adamc@1132
|
4946 while :
|
adamc@1132
|
4947 do
|
adamc@1132
|
4948 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
adamc@1132
|
4949 mv "conftest.tmp" "conftest.in"
|
adamc@1132
|
4950 cp "conftest.in" "conftest.nl"
|
adamc@1132
|
4951 $as_echo 'FGREP' >> "conftest.nl"
|
adamc@1132
|
4952 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
adamc@1132
|
4953 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
adamc@1132
|
4954 as_fn_arith $ac_count + 1 && ac_count=$as_val
|
adamc@1132
|
4955 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
|
adamc@1132
|
4956 # Best one so far, save it but keep looking for a better one
|
adamc@1132
|
4957 ac_cv_path_FGREP="$ac_path_FGREP"
|
adamc@1132
|
4958 ac_path_FGREP_max=$ac_count
|
adamc@1132
|
4959 fi
|
adamc@1132
|
4960 # 10*(2^10) chars as input seems more than enough
|
adamc@1132
|
4961 test $ac_count -gt 10 && break
|
adamc@1132
|
4962 done
|
adamc@1132
|
4963 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
adamc@1132
|
4964 esac
|
adamc@1132
|
4965
|
adamc@1132
|
4966 $ac_path_FGREP_found && break 3
|
adamc@1132
|
4967 done
|
adamc@1132
|
4968 done
|
adamc@1132
|
4969 done
|
adamc@1132
|
4970 IFS=$as_save_IFS
|
adamc@1132
|
4971 if test -z "$ac_cv_path_FGREP"; then
|
adam@1315
|
4972 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
adamc@1132
|
4973 fi
|
adamc@1132
|
4974 else
|
adamc@1132
|
4975 ac_cv_path_FGREP=$FGREP
|
adamc@1132
|
4976 fi
|
adamc@1132
|
4977
|
adamc@1132
|
4978 fi
|
adamc@1132
|
4979 fi
|
adamc@1132
|
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
|
adamc@1132
|
4981 $as_echo "$ac_cv_path_FGREP" >&6; }
|
adamc@1132
|
4982 FGREP="$ac_cv_path_FGREP"
|
adamc@1132
|
4983
|
adamc@1132
|
4984
|
adamc@1132
|
4985 test -z "$GREP" && GREP=grep
|
adamc@1132
|
4986
|
adamc@1132
|
4987
|
adamc@1132
|
4988
|
adamc@1132
|
4989
|
adamc@1132
|
4990
|
adamc@1132
|
4991
|
adamc@1132
|
4992
|
adamc@1132
|
4993
|
adamc@1132
|
4994
|
adamc@1132
|
4995
|
adamc@1132
|
4996
|
adamc@1132
|
4997
|
adamc@1132
|
4998
|
adamc@1132
|
4999
|
adamc@1132
|
5000
|
adamc@1132
|
5001
|
adamc@1132
|
5002
|
adamc@1132
|
5003
|
adamc@1132
|
5004
|
adamc@1132
|
5005 # Check whether --with-gnu-ld was given.
|
adamc@1132
|
5006 if test "${with_gnu_ld+set}" = set; then :
|
adamc@1132
|
5007 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
|
adamc@1132
|
5008 else
|
adamc@1132
|
5009 with_gnu_ld=no
|
adamc@1132
|
5010 fi
|
adamc@1132
|
5011
|
adamc@1132
|
5012 ac_prog=ld
|
adamc@1132
|
5013 if test "$GCC" = yes; then
|
adamc@1132
|
5014 # Check if gcc -print-prog-name=ld gives a path.
|
adamc@1132
|
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
|
adamc@1132
|
5016 $as_echo_n "checking for ld used by $CC... " >&6; }
|
adamc@1132
|
5017 case $host in
|
adamc@1132
|
5018 *-*-mingw*)
|
adamc@1132
|
5019 # gcc leaves a trailing carriage return which upsets mingw
|
adamc@1132
|
5020 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
adamc@1132
|
5021 *)
|
adamc@1132
|
5022 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
adamc@1132
|
5023 esac
|
adamc@1132
|
5024 case $ac_prog in
|
adamc@1132
|
5025 # Accept absolute paths.
|
adamc@1132
|
5026 [\\/]* | ?:[\\/]*)
|
adamc@1132
|
5027 re_direlt='/[^/][^/]*/\.\./'
|
adamc@1132
|
5028 # Canonicalize the pathname of ld
|
adamc@1132
|
5029 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
adamc@1132
|
5030 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
adamc@1132
|
5031 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
adamc@1132
|
5032 done
|
adamc@1132
|
5033 test -z "$LD" && LD="$ac_prog"
|
adamc@1132
|
5034 ;;
|
adamc@1132
|
5035 "")
|
adamc@1132
|
5036 # If it fails, then pretend we aren't using GCC.
|
adamc@1132
|
5037 ac_prog=ld
|
adamc@1132
|
5038 ;;
|
adamc@1132
|
5039 *)
|
adamc@1132
|
5040 # If it is relative, then search for the first ld in PATH.
|
adamc@1132
|
5041 with_gnu_ld=unknown
|
adamc@1132
|
5042 ;;
|
adamc@1132
|
5043 esac
|
adamc@1132
|
5044 elif test "$with_gnu_ld" = yes; then
|
adamc@1132
|
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
|
adamc@1132
|
5046 $as_echo_n "checking for GNU ld... " >&6; }
|
adamc@1132
|
5047 else
|
adamc@1132
|
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
|
adamc@1132
|
5049 $as_echo_n "checking for non-GNU ld... " >&6; }
|
adamc@1132
|
5050 fi
|
adam@1459
|
5051 if ${lt_cv_path_LD+:} false; then :
|
adamc@1132
|
5052 $as_echo_n "(cached) " >&6
|
adamc@1132
|
5053 else
|
adamc@1132
|
5054 if test -z "$LD"; then
|
adamc@1132
|
5055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
adamc@1132
|
5056 for ac_dir in $PATH; do
|
adamc@1132
|
5057 IFS="$lt_save_ifs"
|
adamc@1132
|
5058 test -z "$ac_dir" && ac_dir=.
|
adamc@1132
|
5059 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
adamc@1132
|
5060 lt_cv_path_LD="$ac_dir/$ac_prog"
|
adamc@1132
|
5061 # Check to see if the program is GNU ld. I'd rather use --version,
|
adamc@1132
|
5062 # but apparently some variants of GNU ld only accept -v.
|
adamc@1132
|
5063 # Break only if it was the GNU/non-GNU ld that we prefer.
|
adamc@1132
|
5064 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
adamc@1132
|
5065 *GNU* | *'with BFD'*)
|
adamc@1132
|
5066 test "$with_gnu_ld" != no && break
|
adamc@1132
|
5067 ;;
|
adamc@1132
|
5068 *)
|
adamc@1132
|
5069 test "$with_gnu_ld" != yes && break
|
adamc@1132
|
5070 ;;
|
adamc@1132
|
5071 esac
|
adamc@1132
|
5072 fi
|
adamc@1132
|
5073 done
|
adamc@1132
|
5074 IFS="$lt_save_ifs"
|
adamc@1132
|
5075 else
|
adamc@1132
|
5076 lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
adamc@1132
|
5077 fi
|
adamc@1132
|
5078 fi
|
adamc@1132
|
5079
|
adamc@1132
|
5080 LD="$lt_cv_path_LD"
|
adamc@1132
|
5081 if test -n "$LD"; then
|
adamc@1132
|
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
|
adamc@1132
|
5083 $as_echo "$LD" >&6; }
|
adamc@1132
|
5084 else
|
adamc@1132
|
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
5086 $as_echo "no" >&6; }
|
adamc@1132
|
5087 fi
|
adam@1315
|
5088 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
|
adamc@1132
|
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
|
adamc@1132
|
5090 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
|
adam@1459
|
5091 if ${lt_cv_prog_gnu_ld+:} false; then :
|
adamc@1132
|
5092 $as_echo_n "(cached) " >&6
|
adamc@1132
|
5093 else
|
adamc@1132
|
5094 # I'd rather use --version here, but apparently some GNU lds only accept -v.
|
adamc@1132
|
5095 case `$LD -v 2>&1 </dev/null` in
|
adamc@1132
|
5096 *GNU* | *'with BFD'*)
|
adamc@1132
|
5097 lt_cv_prog_gnu_ld=yes
|
adamc@1132
|
5098 ;;
|
adamc@1132
|
5099 *)
|
adamc@1132
|
5100 lt_cv_prog_gnu_ld=no
|
adamc@1132
|
5101 ;;
|
adamc@1132
|
5102 esac
|
adamc@1132
|
5103 fi
|
adamc@1132
|
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
|
adamc@1132
|
5105 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
|
adamc@1132
|
5106 with_gnu_ld=$lt_cv_prog_gnu_ld
|
adamc@1132
|
5107
|
adamc@1132
|
5108
|
adamc@1132
|
5109
|
adamc@1132
|
5110
|
adamc@1132
|
5111
|
adamc@1132
|
5112
|
adamc@1132
|
5113
|
adamc@1132
|
5114
|
adamc@1132
|
5115
|
adamc@1132
|
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
|
adamc@1132
|
5117 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
|
adam@1459
|
5118 if ${lt_cv_path_NM+:} false; then :
|
adamc@1132
|
5119 $as_echo_n "(cached) " >&6
|
adamc@1132
|
5120 else
|
adamc@1132
|
5121 if test -n "$NM"; then
|
adamc@1132
|
5122 # Let the user override the test.
|
adamc@1132
|
5123 lt_cv_path_NM="$NM"
|
adamc@1132
|
5124 else
|
adamc@1132
|
5125 lt_nm_to_check="${ac_tool_prefix}nm"
|
adamc@1132
|
5126 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
adamc@1132
|
5127 lt_nm_to_check="$lt_nm_to_check nm"
|
adamc@1132
|
5128 fi
|
adamc@1132
|
5129 for lt_tmp_nm in $lt_nm_to_check; do
|
adamc@1132
|
5130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
adamc@1132
|
5131 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
adamc@1132
|
5132 IFS="$lt_save_ifs"
|
adamc@1132
|
5133 test -z "$ac_dir" && ac_dir=.
|
adamc@1132
|
5134 tmp_nm="$ac_dir/$lt_tmp_nm"
|
adamc@1132
|
5135 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
adamc@1132
|
5136 # Check to see if the nm accepts a BSD-compat flag.
|
adamc@1132
|
5137 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
adamc@1132
|
5138 # nm: unknown option "B" ignored
|
adamc@1132
|
5139 # Tru64's nm complains that /dev/null is an invalid object file
|
adamc@1132
|
5140 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
adamc@1132
|
5141 */dev/null* | *'Invalid file or object type'*)
|
adamc@1132
|
5142 lt_cv_path_NM="$tmp_nm -B"
|
adamc@1132
|
5143 break
|
adamc@1132
|
5144 ;;
|
adamc@1132
|
5145 *)
|
adamc@1132
|
5146 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
adamc@1132
|
5147 */dev/null*)
|
adamc@1132
|
5148 lt_cv_path_NM="$tmp_nm -p"
|
adamc@1132
|
5149 break
|
adamc@1132
|
5150 ;;
|
adamc@1132
|
5151 *)
|
adamc@1132
|
5152 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
adamc@1132
|
5153 continue # so that we can try to find one that supports BSD flags
|
adamc@1132
|
5154 ;;
|
adamc@1132
|
5155 esac
|
adamc@1132
|
5156 ;;
|
adamc@1132
|
5157 esac
|
adamc@1132
|
5158 fi
|
adamc@1132
|
5159 done
|
adamc@1132
|
5160 IFS="$lt_save_ifs"
|
adamc@1132
|
5161 done
|
adamc@1132
|
5162 : ${lt_cv_path_NM=no}
|
adamc@1132
|
5163 fi
|
adamc@1132
|
5164 fi
|
adamc@1132
|
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
|
adamc@1132
|
5166 $as_echo "$lt_cv_path_NM" >&6; }
|
adamc@1132
|
5167 if test "$lt_cv_path_NM" != "no"; then
|
adamc@1132
|
5168 NM="$lt_cv_path_NM"
|
adamc@1132
|
5169 else
|
adamc@1132
|
5170 # Didn't find any BSD compatible name lister, look for dumpbin.
|
adam@1459
|
5171 if test -n "$DUMPBIN"; then :
|
adam@1459
|
5172 # Let the user override the test.
|
adam@1459
|
5173 else
|
adam@1459
|
5174 if test -n "$ac_tool_prefix"; then
|
adam@1459
|
5175 for ac_prog in dumpbin "link -dump"
|
adamc@1132
|
5176 do
|
adamc@1132
|
5177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
adamc@1132
|
5178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
adamc@1132
|
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
5180 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
5181 if ${ac_cv_prog_DUMPBIN+:} false; then :
|
adamc@1132
|
5182 $as_echo_n "(cached) " >&6
|
adamc@1132
|
5183 else
|
adamc@1132
|
5184 if test -n "$DUMPBIN"; then
|
adamc@1132
|
5185 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
|
adamc@1132
|
5186 else
|
adamc@1132
|
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
5188 for as_dir in $PATH
|
adamc@1132
|
5189 do
|
adamc@1132
|
5190 IFS=$as_save_IFS
|
adamc@1132
|
5191 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
5192 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
5193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
5194 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
|
adamc@1132
|
5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
5196 break 2
|
adamc@1132
|
5197 fi
|
adamc@1132
|
5198 done
|
adamc@1132
|
5199 done
|
adamc@1132
|
5200 IFS=$as_save_IFS
|
adamc@1132
|
5201
|
adamc@1132
|
5202 fi
|
adamc@1132
|
5203 fi
|
adamc@1132
|
5204 DUMPBIN=$ac_cv_prog_DUMPBIN
|
adamc@1132
|
5205 if test -n "$DUMPBIN"; then
|
adamc@1132
|
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
|
adamc@1132
|
5207 $as_echo "$DUMPBIN" >&6; }
|
adamc@1132
|
5208 else
|
adamc@1132
|
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
5210 $as_echo "no" >&6; }
|
adamc@1132
|
5211 fi
|
adamc@1132
|
5212
|
adamc@1132
|
5213
|
adamc@1132
|
5214 test -n "$DUMPBIN" && break
|
adamc@1132
|
5215 done
|
adamc@1132
|
5216 fi
|
adamc@1132
|
5217 if test -z "$DUMPBIN"; then
|
adamc@1132
|
5218 ac_ct_DUMPBIN=$DUMPBIN
|
adam@1459
|
5219 for ac_prog in dumpbin "link -dump"
|
adamc@1132
|
5220 do
|
adamc@1132
|
5221 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
adamc@1132
|
5222 set dummy $ac_prog; ac_word=$2
|
adamc@1132
|
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
5224 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
5225 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
|
adamc@1132
|
5226 $as_echo_n "(cached) " >&6
|
adamc@1132
|
5227 else
|
adamc@1132
|
5228 if test -n "$ac_ct_DUMPBIN"; then
|
adamc@1132
|
5229 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
|
adamc@1132
|
5230 else
|
adamc@1132
|
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
5232 for as_dir in $PATH
|
adamc@1132
|
5233 do
|
adamc@1132
|
5234 IFS=$as_save_IFS
|
adamc@1132
|
5235 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
5236 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
5238 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
|
adamc@1132
|
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
5240 break 2
|
adamc@1132
|
5241 fi
|
adamc@1132
|
5242 done
|
adamc@1132
|
5243 done
|
adamc@1132
|
5244 IFS=$as_save_IFS
|
adamc@1132
|
5245
|
adamc@1132
|
5246 fi
|
adamc@1132
|
5247 fi
|
adamc@1132
|
5248 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
|
adamc@1132
|
5249 if test -n "$ac_ct_DUMPBIN"; then
|
adamc@1132
|
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
|
adamc@1132
|
5251 $as_echo "$ac_ct_DUMPBIN" >&6; }
|
adamc@1132
|
5252 else
|
adamc@1132
|
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
5254 $as_echo "no" >&6; }
|
adamc@1132
|
5255 fi
|
adamc@1132
|
5256
|
adamc@1132
|
5257
|
adamc@1132
|
5258 test -n "$ac_ct_DUMPBIN" && break
|
adamc@1132
|
5259 done
|
adamc@1132
|
5260
|
adamc@1132
|
5261 if test "x$ac_ct_DUMPBIN" = x; then
|
adamc@1132
|
5262 DUMPBIN=":"
|
adamc@1132
|
5263 else
|
adamc@1132
|
5264 case $cross_compiling:$ac_tool_warned in
|
adamc@1132
|
5265 yes:)
|
adamc@1132
|
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
adamc@1132
|
5267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
adamc@1132
|
5268 ac_tool_warned=yes ;;
|
adamc@1132
|
5269 esac
|
adamc@1132
|
5270 DUMPBIN=$ac_ct_DUMPBIN
|
adamc@1132
|
5271 fi
|
adamc@1132
|
5272 fi
|
adamc@1132
|
5273
|
adam@1459
|
5274 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
|
adam@1459
|
5275 *COFF*)
|
adam@1459
|
5276 DUMPBIN="$DUMPBIN -symbols"
|
adam@1459
|
5277 ;;
|
adam@1459
|
5278 *)
|
adam@1459
|
5279 DUMPBIN=:
|
adam@1459
|
5280 ;;
|
adam@1459
|
5281 esac
|
adam@1459
|
5282 fi
|
adamc@1132
|
5283
|
adamc@1132
|
5284 if test "$DUMPBIN" != ":"; then
|
adamc@1132
|
5285 NM="$DUMPBIN"
|
adamc@1132
|
5286 fi
|
adamc@1132
|
5287 fi
|
adamc@1132
|
5288 test -z "$NM" && NM=nm
|
adamc@1132
|
5289
|
adamc@1132
|
5290
|
adamc@1132
|
5291
|
adamc@1132
|
5292
|
adamc@1132
|
5293
|
adamc@1132
|
5294
|
adamc@1132
|
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
|
adamc@1132
|
5296 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
|
adam@1459
|
5297 if ${lt_cv_nm_interface+:} false; then :
|
adamc@1132
|
5298 $as_echo_n "(cached) " >&6
|
adamc@1132
|
5299 else
|
adamc@1132
|
5300 lt_cv_nm_interface="BSD nm"
|
adamc@1132
|
5301 echo "int some_variable = 0;" > conftest.$ac_ext
|
adam@1459
|
5302 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
|
adamc@1132
|
5303 (eval "$ac_compile" 2>conftest.err)
|
adamc@1132
|
5304 cat conftest.err >&5
|
adam@1459
|
5305 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
adamc@1132
|
5306 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
adamc@1132
|
5307 cat conftest.err >&5
|
adam@1459
|
5308 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
|
adamc@1132
|
5309 cat conftest.out >&5
|
adamc@1132
|
5310 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
adamc@1132
|
5311 lt_cv_nm_interface="MS dumpbin"
|
adamc@1132
|
5312 fi
|
adamc@1132
|
5313 rm -f conftest*
|
adamc@1132
|
5314 fi
|
adamc@1132
|
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
|
adamc@1132
|
5316 $as_echo "$lt_cv_nm_interface" >&6; }
|
adamc@1132
|
5317
|
adamc@1132
|
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
adamc@1132
|
5319 $as_echo_n "checking whether ln -s works... " >&6; }
|
adamc@1132
|
5320 LN_S=$as_ln_s
|
adamc@1132
|
5321 if test "$LN_S" = "ln -s"; then
|
adamc@1132
|
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
adamc@1132
|
5323 $as_echo "yes" >&6; }
|
adamc@1132
|
5324 else
|
adamc@1132
|
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
adamc@1132
|
5326 $as_echo "no, using $LN_S" >&6; }
|
adamc@1132
|
5327 fi
|
adamc@1132
|
5328
|
adamc@1132
|
5329 # find the maximum length of command line arguments
|
adamc@1132
|
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
|
adamc@1132
|
5331 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
|
adam@1459
|
5332 if ${lt_cv_sys_max_cmd_len+:} false; then :
|
adamc@1132
|
5333 $as_echo_n "(cached) " >&6
|
adamc@1132
|
5334 else
|
adamc@1132
|
5335 i=0
|
adamc@1132
|
5336 teststring="ABCD"
|
adamc@1132
|
5337
|
adamc@1132
|
5338 case $build_os in
|
adamc@1132
|
5339 msdosdjgpp*)
|
adamc@1132
|
5340 # On DJGPP, this test can blow up pretty badly due to problems in libc
|
adamc@1132
|
5341 # (any single argument exceeding 2000 bytes causes a buffer overrun
|
adamc@1132
|
5342 # during glob expansion). Even if it were fixed, the result of this
|
adamc@1132
|
5343 # check would be larger than it should be.
|
adamc@1132
|
5344 lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
adamc@1132
|
5345 ;;
|
adamc@1132
|
5346
|
adamc@1132
|
5347 gnu*)
|
adamc@1132
|
5348 # Under GNU Hurd, this test is not required because there is
|
adamc@1132
|
5349 # no limit to the length of command line arguments.
|
adamc@1132
|
5350 # Libtool will interpret -1 as no limit whatsoever
|
adamc@1132
|
5351 lt_cv_sys_max_cmd_len=-1;
|
adamc@1132
|
5352 ;;
|
adamc@1132
|
5353
|
adamc@1132
|
5354 cygwin* | mingw* | cegcc*)
|
adamc@1132
|
5355 # On Win9x/ME, this test blows up -- it succeeds, but takes
|
adamc@1132
|
5356 # about 5 minutes as the teststring grows exponentially.
|
adamc@1132
|
5357 # Worse, since 9x/ME are not pre-emptively multitasking,
|
adamc@1132
|
5358 # you end up with a "frozen" computer, even though with patience
|
adamc@1132
|
5359 # the test eventually succeeds (with a max line length of 256k).
|
adamc@1132
|
5360 # Instead, let's just punt: use the minimum linelength reported by
|
adamc@1132
|
5361 # all of the supported platforms: 8192 (on NT/2K/XP).
|
adamc@1132
|
5362 lt_cv_sys_max_cmd_len=8192;
|
adamc@1132
|
5363 ;;
|
adamc@1132
|
5364
|
adam@1459
|
5365 mint*)
|
adam@1459
|
5366 # On MiNT this can take a long time and run out of memory.
|
adam@1459
|
5367 lt_cv_sys_max_cmd_len=8192;
|
adam@1459
|
5368 ;;
|
adam@1459
|
5369
|
adamc@1132
|
5370 amigaos*)
|
adamc@1132
|
5371 # On AmigaOS with pdksh, this test takes hours, literally.
|
adamc@1132
|
5372 # So we just punt and use a minimum line length of 8192.
|
adamc@1132
|
5373 lt_cv_sys_max_cmd_len=8192;
|
adamc@1132
|
5374 ;;
|
adamc@1132
|
5375
|
adamc@1132
|
5376 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
adamc@1132
|
5377 # This has been around since 386BSD, at least. Likely further.
|
adamc@1132
|
5378 if test -x /sbin/sysctl; then
|
adamc@1132
|
5379 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
adamc@1132
|
5380 elif test -x /usr/sbin/sysctl; then
|
adamc@1132
|
5381 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
adamc@1132
|
5382 else
|
adamc@1132
|
5383 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
adamc@1132
|
5384 fi
|
adamc@1132
|
5385 # And add a safety zone
|
adamc@1132
|
5386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
adamc@1132
|
5387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
adamc@1132
|
5388 ;;
|
adamc@1132
|
5389
|
adamc@1132
|
5390 interix*)
|
adamc@1132
|
5391 # We know the value 262144 and hardcode it with a safety zone (like BSD)
|
adamc@1132
|
5392 lt_cv_sys_max_cmd_len=196608
|
adamc@1132
|
5393 ;;
|
adamc@1132
|
5394
|
adamc@1132
|
5395 osf*)
|
adamc@1132
|
5396 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
adamc@1132
|
5397 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
adamc@1132
|
5398 # nice to cause kernel panics so lets avoid the loop below.
|
adamc@1132
|
5399 # First set a reasonable default.
|
adamc@1132
|
5400 lt_cv_sys_max_cmd_len=16384
|
adamc@1132
|
5401 #
|
adamc@1132
|
5402 if test -x /sbin/sysconfig; then
|
adamc@1132
|
5403 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
adamc@1132
|
5404 *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
adamc@1132
|
5405 esac
|
adamc@1132
|
5406 fi
|
adamc@1132
|
5407 ;;
|
adamc@1132
|
5408 sco3.2v5*)
|
adamc@1132
|
5409 lt_cv_sys_max_cmd_len=102400
|
adamc@1132
|
5410 ;;
|
adamc@1132
|
5411 sysv5* | sco5v6* | sysv4.2uw2*)
|
adamc@1132
|
5412 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
adamc@1132
|
5413 if test -n "$kargmax"; then
|
adamc@1132
|
5414 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
|
adamc@1132
|
5415 else
|
adamc@1132
|
5416 lt_cv_sys_max_cmd_len=32768
|
adamc@1132
|
5417 fi
|
adamc@1132
|
5418 ;;
|
adamc@1132
|
5419 *)
|
adamc@1132
|
5420 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
adamc@1132
|
5421 if test -n "$lt_cv_sys_max_cmd_len"; then
|
adamc@1132
|
5422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
adamc@1132
|
5423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
adamc@1132
|
5424 else
|
adamc@1132
|
5425 # Make teststring a little bigger before we do anything with it.
|
adamc@1132
|
5426 # a 1K string should be a reasonable start.
|
adamc@1132
|
5427 for i in 1 2 3 4 5 6 7 8 ; do
|
adamc@1132
|
5428 teststring=$teststring$teststring
|
adamc@1132
|
5429 done
|
adamc@1132
|
5430 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
adamc@1132
|
5431 # If test is not a shell built-in, we'll probably end up computing a
|
adamc@1132
|
5432 # maximum length that is only half of the actual maximum length, but
|
adamc@1132
|
5433 # we can't tell.
|
adam@1459
|
5434 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
|
adam@1459
|
5435 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
|
adamc@1132
|
5436 test $i != 17 # 1/2 MB should be enough
|
adamc@1132
|
5437 do
|
adamc@1132
|
5438 i=`expr $i + 1`
|
adamc@1132
|
5439 teststring=$teststring$teststring
|
adamc@1132
|
5440 done
|
adamc@1132
|
5441 # Only check the string length outside the loop.
|
adamc@1132
|
5442 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
adamc@1132
|
5443 teststring=
|
adamc@1132
|
5444 # Add a significant safety factor because C++ compilers can tack on
|
adamc@1132
|
5445 # massive amounts of additional arguments before passing them to the
|
adamc@1132
|
5446 # linker. It appears as though 1/2 is a usable value.
|
adamc@1132
|
5447 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
adamc@1132
|
5448 fi
|
adamc@1132
|
5449 ;;
|
adamc@1132
|
5450 esac
|
adamc@1132
|
5451
|
adamc@1132
|
5452 fi
|
adamc@1132
|
5453
|
adamc@1132
|
5454 if test -n $lt_cv_sys_max_cmd_len ; then
|
adamc@1132
|
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
|
adamc@1132
|
5456 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
|
adamc@1132
|
5457 else
|
adamc@1132
|
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
|
adamc@1132
|
5459 $as_echo "none" >&6; }
|
adamc@1132
|
5460 fi
|
adamc@1132
|
5461 max_cmd_len=$lt_cv_sys_max_cmd_len
|
adamc@1132
|
5462
|
adamc@1132
|
5463
|
adamc@1132
|
5464
|
adamc@1132
|
5465
|
adamc@1132
|
5466
|
adamc@1132
|
5467
|
adamc@1132
|
5468 : ${CP="cp -f"}
|
adamc@1132
|
5469 : ${MV="mv -f"}
|
adamc@1132
|
5470 : ${RM="rm -f"}
|
adamc@1132
|
5471
|
adamc@1132
|
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
|
adamc@1132
|
5473 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
|
adamc@1132
|
5474 # Try some XSI features
|
adamc@1132
|
5475 xsi_shell=no
|
adamc@1132
|
5476 ( _lt_dummy="a/b/c"
|
adam@1459
|
5477 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
|
adam@1459
|
5478 = c,a/b,b/c, \
|
adamc@1132
|
5479 && eval 'test $(( 1 + 1 )) -eq 2 \
|
adamc@1132
|
5480 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
adamc@1132
|
5481 && xsi_shell=yes
|
adamc@1132
|
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
|
adamc@1132
|
5483 $as_echo "$xsi_shell" >&6; }
|
adamc@1132
|
5484
|
adamc@1132
|
5485
|
adamc@1132
|
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
|
adamc@1132
|
5487 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
|
adamc@1132
|
5488 lt_shell_append=no
|
adamc@1132
|
5489 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
|
adamc@1132
|
5490 >/dev/null 2>&1 \
|
adamc@1132
|
5491 && lt_shell_append=yes
|
adamc@1132
|
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
|
adamc@1132
|
5493 $as_echo "$lt_shell_append" >&6; }
|
adamc@1132
|
5494
|
adamc@1132
|
5495
|
adamc@1132
|
5496 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
adamc@1132
|
5497 lt_unset=unset
|
adamc@1132
|
5498 else
|
adamc@1132
|
5499 lt_unset=false
|
adamc@1132
|
5500 fi
|
adamc@1132
|
5501
|
adamc@1132
|
5502
|
adamc@1132
|
5503
|
adamc@1132
|
5504
|
adamc@1132
|
5505
|
adamc@1132
|
5506 # test EBCDIC or ASCII
|
adamc@1132
|
5507 case `echo X|tr X '\101'` in
|
adamc@1132
|
5508 A) # ASCII based system
|
adamc@1132
|
5509 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
|
adamc@1132
|
5510 lt_SP2NL='tr \040 \012'
|
adamc@1132
|
5511 lt_NL2SP='tr \015\012 \040\040'
|
adamc@1132
|
5512 ;;
|
adamc@1132
|
5513 *) # EBCDIC based system
|
adamc@1132
|
5514 lt_SP2NL='tr \100 \n'
|
adamc@1132
|
5515 lt_NL2SP='tr \r\n \100\100'
|
adamc@1132
|
5516 ;;
|
adamc@1132
|
5517 esac
|
adamc@1132
|
5518
|
adamc@1132
|
5519
|
adamc@1132
|
5520
|
adamc@1132
|
5521
|
adamc@1132
|
5522
|
adamc@1132
|
5523
|
adamc@1132
|
5524
|
adamc@1132
|
5525
|
adamc@1132
|
5526
|
adam@1459
|
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
adam@1459
|
5528 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
adam@1459
|
5529 if ${lt_cv_to_host_file_cmd+:} false; then :
|
adam@1459
|
5530 $as_echo_n "(cached) " >&6
|
adam@1459
|
5531 else
|
adam@1459
|
5532 case $host in
|
adam@1459
|
5533 *-*-mingw* )
|
adam@1459
|
5534 case $build in
|
adam@1459
|
5535 *-*-mingw* ) # actually msys
|
adam@1459
|
5536 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
adam@1459
|
5537 ;;
|
adam@1459
|
5538 *-*-cygwin* )
|
adam@1459
|
5539 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
adam@1459
|
5540 ;;
|
adam@1459
|
5541 * ) # otherwise, assume *nix
|
adam@1459
|
5542 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
adam@1459
|
5543 ;;
|
adam@1459
|
5544 esac
|
adam@1459
|
5545 ;;
|
adam@1459
|
5546 *-*-cygwin* )
|
adam@1459
|
5547 case $build in
|
adam@1459
|
5548 *-*-mingw* ) # actually msys
|
adam@1459
|
5549 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
adam@1459
|
5550 ;;
|
adam@1459
|
5551 *-*-cygwin* )
|
adam@1459
|
5552 lt_cv_to_host_file_cmd=func_convert_file_noop
|
adam@1459
|
5553 ;;
|
adam@1459
|
5554 * ) # otherwise, assume *nix
|
adam@1459
|
5555 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
adam@1459
|
5556 ;;
|
adam@1459
|
5557 esac
|
adam@1459
|
5558 ;;
|
adam@1459
|
5559 * ) # unhandled hosts (and "normal" native builds)
|
adam@1459
|
5560 lt_cv_to_host_file_cmd=func_convert_file_noop
|
adam@1459
|
5561 ;;
|
adam@1459
|
5562 esac
|
adam@1459
|
5563
|
adam@1459
|
5564 fi
|
adam@1459
|
5565
|
adam@1459
|
5566 to_host_file_cmd=$lt_cv_to_host_file_cmd
|
adam@1459
|
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
adam@1459
|
5568 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
adam@1459
|
5569
|
adam@1459
|
5570
|
adam@1459
|
5571
|
adam@1459
|
5572
|
adam@1459
|
5573
|
adam@1459
|
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
adam@1459
|
5575 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
adam@1459
|
5576 if ${lt_cv_to_tool_file_cmd+:} false; then :
|
adam@1459
|
5577 $as_echo_n "(cached) " >&6
|
adam@1459
|
5578 else
|
adam@1459
|
5579 #assume ordinary cross tools, or native build.
|
adam@1459
|
5580 lt_cv_to_tool_file_cmd=func_convert_file_noop
|
adam@1459
|
5581 case $host in
|
adam@1459
|
5582 *-*-mingw* )
|
adam@1459
|
5583 case $build in
|
adam@1459
|
5584 *-*-mingw* ) # actually msys
|
adam@1459
|
5585 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
adam@1459
|
5586 ;;
|
adam@1459
|
5587 esac
|
adam@1459
|
5588 ;;
|
adam@1459
|
5589 esac
|
adam@1459
|
5590
|
adam@1459
|
5591 fi
|
adam@1459
|
5592
|
adam@1459
|
5593 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
adam@1459
|
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
adam@1459
|
5595 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
adam@1459
|
5596
|
adam@1459
|
5597
|
adam@1459
|
5598
|
adam@1459
|
5599
|
adam@1459
|
5600
|
adamc@1132
|
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
adamc@1132
|
5602 $as_echo_n "checking for $LD option to reload object files... " >&6; }
|
adam@1459
|
5603 if ${lt_cv_ld_reload_flag+:} false; then :
|
adamc@1132
|
5604 $as_echo_n "(cached) " >&6
|
adamc@1132
|
5605 else
|
adamc@1132
|
5606 lt_cv_ld_reload_flag='-r'
|
adamc@1132
|
5607 fi
|
adamc@1132
|
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
|
adamc@1132
|
5609 $as_echo "$lt_cv_ld_reload_flag" >&6; }
|
adamc@1132
|
5610 reload_flag=$lt_cv_ld_reload_flag
|
adamc@1132
|
5611 case $reload_flag in
|
adamc@1132
|
5612 "" | " "*) ;;
|
adamc@1132
|
5613 *) reload_flag=" $reload_flag" ;;
|
adamc@1132
|
5614 esac
|
adamc@1132
|
5615 reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
adamc@1132
|
5616 case $host_os in
|
adam@1459
|
5617 cygwin* | mingw* | pw32* | cegcc*)
|
adam@1459
|
5618 if test "$GCC" != yes; then
|
adam@1459
|
5619 reload_cmds=false
|
adam@1459
|
5620 fi
|
adam@1459
|
5621 ;;
|
adamc@1132
|
5622 darwin*)
|
adamc@1132
|
5623 if test "$GCC" = yes; then
|
adamc@1132
|
5624 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
adamc@1132
|
5625 else
|
adamc@1132
|
5626 reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
adamc@1132
|
5627 fi
|
adamc@1132
|
5628 ;;
|
adamc@1132
|
5629 esac
|
adamc@1132
|
5630
|
adamc@1132
|
5631
|
adamc@1132
|
5632
|
adamc@1132
|
5633
|
adamc@1132
|
5634
|
adamc@1132
|
5635
|
adamc@1132
|
5636
|
adamc@1132
|
5637
|
adamc@1132
|
5638
|
adamc@1132
|
5639 if test -n "$ac_tool_prefix"; then
|
adamc@1132
|
5640 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
adamc@1132
|
5641 set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
adamc@1132
|
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
5643 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
5644 if ${ac_cv_prog_OBJDUMP+:} false; then :
|
adamc@1132
|
5645 $as_echo_n "(cached) " >&6
|
adamc@1132
|
5646 else
|
adamc@1132
|
5647 if test -n "$OBJDUMP"; then
|
adamc@1132
|
5648 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
adamc@1132
|
5649 else
|
adamc@1132
|
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
5651 for as_dir in $PATH
|
adamc@1132
|
5652 do
|
adamc@1132
|
5653 IFS=$as_save_IFS
|
adamc@1132
|
5654 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
5655 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
5656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
5657 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
adamc@1132
|
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
5659 break 2
|
adamc@1132
|
5660 fi
|
adamc@1132
|
5661 done
|
adamc@1132
|
5662 done
|
adamc@1132
|
5663 IFS=$as_save_IFS
|
adamc@1132
|
5664
|
adamc@1132
|
5665 fi
|
adamc@1132
|
5666 fi
|
adamc@1132
|
5667 OBJDUMP=$ac_cv_prog_OBJDUMP
|
adamc@1132
|
5668 if test -n "$OBJDUMP"; then
|
adamc@1132
|
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
|
adamc@1132
|
5670 $as_echo "$OBJDUMP" >&6; }
|
adamc@1132
|
5671 else
|
adamc@1132
|
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
5673 $as_echo "no" >&6; }
|
adamc@1132
|
5674 fi
|
adamc@1132
|
5675
|
adamc@1132
|
5676
|
adamc@1132
|
5677 fi
|
adamc@1132
|
5678 if test -z "$ac_cv_prog_OBJDUMP"; then
|
adamc@1132
|
5679 ac_ct_OBJDUMP=$OBJDUMP
|
adamc@1132
|
5680 # Extract the first word of "objdump", so it can be a program name with args.
|
adamc@1132
|
5681 set dummy objdump; ac_word=$2
|
adamc@1132
|
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
5683 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
5684 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
|
adamc@1132
|
5685 $as_echo_n "(cached) " >&6
|
adamc@1132
|
5686 else
|
adamc@1132
|
5687 if test -n "$ac_ct_OBJDUMP"; then
|
adamc@1132
|
5688 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
adamc@1132
|
5689 else
|
adamc@1132
|
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
5691 for as_dir in $PATH
|
adamc@1132
|
5692 do
|
adamc@1132
|
5693 IFS=$as_save_IFS
|
adamc@1132
|
5694 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
5695 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
5696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
5697 ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
adamc@1132
|
5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
5699 break 2
|
adamc@1132
|
5700 fi
|
adamc@1132
|
5701 done
|
adamc@1132
|
5702 done
|
adamc@1132
|
5703 IFS=$as_save_IFS
|
adamc@1132
|
5704
|
adamc@1132
|
5705 fi
|
adamc@1132
|
5706 fi
|
adamc@1132
|
5707 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
adamc@1132
|
5708 if test -n "$ac_ct_OBJDUMP"; then
|
adamc@1132
|
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
|
adamc@1132
|
5710 $as_echo "$ac_ct_OBJDUMP" >&6; }
|
adamc@1132
|
5711 else
|
adamc@1132
|
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
5713 $as_echo "no" >&6; }
|
adamc@1132
|
5714 fi
|
adamc@1132
|
5715
|
adamc@1132
|
5716 if test "x$ac_ct_OBJDUMP" = x; then
|
adamc@1132
|
5717 OBJDUMP="false"
|
adamc@1132
|
5718 else
|
adamc@1132
|
5719 case $cross_compiling:$ac_tool_warned in
|
adamc@1132
|
5720 yes:)
|
adamc@1132
|
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
adamc@1132
|
5722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
adamc@1132
|
5723 ac_tool_warned=yes ;;
|
adamc@1132
|
5724 esac
|
adamc@1132
|
5725 OBJDUMP=$ac_ct_OBJDUMP
|
adamc@1132
|
5726 fi
|
adamc@1132
|
5727 else
|
adamc@1132
|
5728 OBJDUMP="$ac_cv_prog_OBJDUMP"
|
adamc@1132
|
5729 fi
|
adamc@1132
|
5730
|
adamc@1132
|
5731 test -z "$OBJDUMP" && OBJDUMP=objdump
|
adamc@1132
|
5732
|
adamc@1132
|
5733
|
adamc@1132
|
5734
|
adamc@1132
|
5735
|
adamc@1132
|
5736
|
adamc@1132
|
5737
|
adamc@1132
|
5738
|
adamc@1132
|
5739
|
adamc@1132
|
5740
|
adamc@1132
|
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
|
adamc@1132
|
5742 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
|
adam@1459
|
5743 if ${lt_cv_deplibs_check_method+:} false; then :
|
adamc@1132
|
5744 $as_echo_n "(cached) " >&6
|
adamc@1132
|
5745 else
|
adamc@1132
|
5746 lt_cv_file_magic_cmd='$MAGIC_CMD'
|
adamc@1132
|
5747 lt_cv_file_magic_test_file=
|
adamc@1132
|
5748 lt_cv_deplibs_check_method='unknown'
|
adamc@1132
|
5749 # Need to set the preceding variable on all platforms that support
|
adamc@1132
|
5750 # interlibrary dependencies.
|
adamc@1132
|
5751 # 'none' -- dependencies not supported.
|
adamc@1132
|
5752 # `unknown' -- same as none, but documents that we really don't know.
|
adamc@1132
|
5753 # 'pass_all' -- all dependencies passed with no checks.
|
adamc@1132
|
5754 # 'test_compile' -- check by making test program.
|
adamc@1132
|
5755 # 'file_magic [[regex]]' -- check by looking for files in library path
|
adamc@1132
|
5756 # which responds to the $file_magic_cmd with a given extended regex.
|
adamc@1132
|
5757 # If you have `file' or equivalent on your system and you're not sure
|
adamc@1132
|
5758 # whether `pass_all' will *always* work, you probably want this one.
|
adamc@1132
|
5759
|
adamc@1132
|
5760 case $host_os in
|
adamc@1132
|
5761 aix[4-9]*)
|
adamc@1132
|
5762 lt_cv_deplibs_check_method=pass_all
|
adamc@1132
|
5763 ;;
|
adamc@1132
|
5764
|
adamc@1132
|
5765 beos*)
|
adamc@1132
|
5766 lt_cv_deplibs_check_method=pass_all
|
adamc@1132
|
5767 ;;
|
adamc@1132
|
5768
|
adamc@1132
|
5769 bsdi[45]*)
|
adamc@1132
|
5770 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
adamc@1132
|
5771 lt_cv_file_magic_cmd='/usr/bin/file -L'
|
adamc@1132
|
5772 lt_cv_file_magic_test_file=/shlib/libc.so
|
adamc@1132
|
5773 ;;
|
adamc@1132
|
5774
|
adamc@1132
|
5775 cygwin*)
|
adamc@1132
|
5776 # func_win32_libid is a shell function defined in ltmain.sh
|
adamc@1132
|
5777 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
adamc@1132
|
5778 lt_cv_file_magic_cmd='func_win32_libid'
|
adamc@1132
|
5779 ;;
|
adamc@1132
|
5780
|
adamc@1132
|
5781 mingw* | pw32*)
|
adamc@1132
|
5782 # Base MSYS/MinGW do not provide the 'file' command needed by
|
adamc@1132
|
5783 # func_win32_libid shell function, so use a weaker test based on 'objdump',
|
adamc@1132
|
5784 # unless we find 'file', for example because we are cross-compiling.
|
adam@1459
|
5785 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
|
adam@1459
|
5786 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
|
adamc@1132
|
5787 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
adamc@1132
|
5788 lt_cv_file_magic_cmd='func_win32_libid'
|
adamc@1132
|
5789 else
|
adam@1459
|
5790 # Keep this pattern in sync with the one in func_win32_libid.
|
adam@1459
|
5791 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
adamc@1132
|
5792 lt_cv_file_magic_cmd='$OBJDUMP -f'
|
adamc@1132
|
5793 fi
|
adamc@1132
|
5794 ;;
|
adamc@1132
|
5795
|
adam@1459
|
5796 cegcc*)
|
adamc@1132
|
5797 # use the weaker test based on 'objdump'. See mingw*.
|
adamc@1132
|
5798 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
|
adamc@1132
|
5799 lt_cv_file_magic_cmd='$OBJDUMP -f'
|
adamc@1132
|
5800 ;;
|
adamc@1132
|
5801
|
adamc@1132
|
5802 darwin* | rhapsody*)
|
adamc@1132
|
5803 lt_cv_deplibs_check_method=pass_all
|
adamc@1132
|
5804 ;;
|
adamc@1132
|
5805
|
adamc@1132
|
5806 freebsd* | dragonfly*)
|
adamc@1132
|
5807 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
adamc@1132
|
5808 case $host_cpu in
|
adamc@1132
|
5809 i*86 )
|
adamc@1132
|
5810 # Not sure whether the presence of OpenBSD here was a mistake.
|
adamc@1132
|
5811 # Let's accept both of them until this is cleared up.
|
adamc@1132
|
5812 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
adamc@1132
|
5813 lt_cv_file_magic_cmd=/usr/bin/file
|
adamc@1132
|
5814 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
adamc@1132
|
5815 ;;
|
adamc@1132
|
5816 esac
|
adamc@1132
|
5817 else
|
adamc@1132
|
5818 lt_cv_deplibs_check_method=pass_all
|
adamc@1132
|
5819 fi
|
adamc@1132
|
5820 ;;
|
adamc@1132
|
5821
|
adamc@1132
|
5822 gnu*)
|
adamc@1132
|
5823 lt_cv_deplibs_check_method=pass_all
|
adamc@1132
|
5824 ;;
|
adamc@1132
|
5825
|
adam@1459
|
5826 haiku*)
|
adam@1459
|
5827 lt_cv_deplibs_check_method=pass_all
|
adam@1459
|
5828 ;;
|
adam@1459
|
5829
|
adamc@1132
|
5830 hpux10.20* | hpux11*)
|
adamc@1132
|
5831 lt_cv_file_magic_cmd=/usr/bin/file
|
adamc@1132
|
5832 case $host_cpu in
|
adamc@1132
|
5833 ia64*)
|
adamc@1132
|
5834 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
adamc@1132
|
5835 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
adamc@1132
|
5836 ;;
|
adamc@1132
|
5837 hppa*64*)
|
adam@1459
|
5838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
|
adamc@1132
|
5839 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
adamc@1132
|
5840 ;;
|
adamc@1132
|
5841 *)
|
adam@1459
|
5842 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
|
adamc@1132
|
5843 lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
adamc@1132
|
5844 ;;
|
adamc@1132
|
5845 esac
|
adamc@1132
|
5846 ;;
|
adamc@1132
|
5847
|
adamc@1132
|
5848 interix[3-9]*)
|
adamc@1132
|
5849 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
adamc@1132
|
5850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
adamc@1132
|
5851 ;;
|
adamc@1132
|
5852
|
adamc@1132
|
5853 irix5* | irix6* | nonstopux*)
|
adamc@1132
|
5854 case $LD in
|
adamc@1132
|
5855 *-32|*"-32 ") libmagic=32-bit;;
|
adamc@1132
|
5856 *-n32|*"-n32 ") libmagic=N32;;
|
adamc@1132
|
5857 *-64|*"-64 ") libmagic=64-bit;;
|
adamc@1132
|
5858 *) libmagic=never-match;;
|
adamc@1132
|
5859 esac
|
adamc@1132
|
5860 lt_cv_deplibs_check_method=pass_all
|
adamc@1132
|
5861 ;;
|
adamc@1132
|
5862
|
adamc@1132
|
5863 # This must be Linux ELF.
|
adamc@1132
|
5864 linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
adamc@1132
|
5865 lt_cv_deplibs_check_method=pass_all
|
adamc@1132
|
5866 ;;
|
adamc@1132
|
5867
|
adamc@1132
|
5868 netbsd* | netbsdelf*-gnu)
|
adamc@1132
|
5869 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
adamc@1132
|
5870 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
adamc@1132
|
5871 else
|
adamc@1132
|
5872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
adamc@1132
|
5873 fi
|
adamc@1132
|
5874 ;;
|
adamc@1132
|
5875
|
adamc@1132
|
5876 newos6*)
|
adamc@1132
|
5877 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
adamc@1132
|
5878 lt_cv_file_magic_cmd=/usr/bin/file
|
adamc@1132
|
5879 lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
adamc@1132
|
5880 ;;
|
adamc@1132
|
5881
|
adamc@1132
|
5882 *nto* | *qnx*)
|
adamc@1132
|
5883 lt_cv_deplibs_check_method=pass_all
|
adamc@1132
|
5884 ;;
|
adamc@1132
|
5885
|
adamc@1132
|
5886 openbsd*)
|
adamc@1132
|
5887 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
adamc@1132
|
5888 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
adamc@1132
|
5889 else
|
adamc@1132
|
5890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
adamc@1132
|
5891 fi
|
adamc@1132
|
5892 ;;
|
adamc@1132
|
5893
|
adamc@1132
|
5894 osf3* | osf4* | osf5*)
|
adamc@1132
|
5895 lt_cv_deplibs_check_method=pass_all
|
adamc@1132
|
5896 ;;
|
adamc@1132
|
5897
|
adamc@1132
|
5898 rdos*)
|
adamc@1132
|
5899 lt_cv_deplibs_check_method=pass_all
|
adamc@1132
|
5900 ;;
|
adamc@1132
|
5901
|
adamc@1132
|
5902 solaris*)
|
adamc@1132
|
5903 lt_cv_deplibs_check_method=pass_all
|
adamc@1132
|
5904 ;;
|
adamc@1132
|
5905
|
adamc@1132
|
5906 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
adamc@1132
|
5907 lt_cv_deplibs_check_method=pass_all
|
adamc@1132
|
5908 ;;
|
adamc@1132
|
5909
|
adamc@1132
|
5910 sysv4 | sysv4.3*)
|
adamc@1132
|
5911 case $host_vendor in
|
adamc@1132
|
5912 motorola)
|
adamc@1132
|
5913 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]'
|
adamc@1132
|
5914 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
adamc@1132
|
5915 ;;
|
adamc@1132
|
5916 ncr)
|
adamc@1132
|
5917 lt_cv_deplibs_check_method=pass_all
|
adamc@1132
|
5918 ;;
|
adamc@1132
|
5919 sequent)
|
adamc@1132
|
5920 lt_cv_file_magic_cmd='/bin/file'
|
adamc@1132
|
5921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
adamc@1132
|
5922 ;;
|
adamc@1132
|
5923 sni)
|
adamc@1132
|
5924 lt_cv_file_magic_cmd='/bin/file'
|
adamc@1132
|
5925 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
adamc@1132
|
5926 lt_cv_file_magic_test_file=/lib/libc.so
|
adamc@1132
|
5927 ;;
|
adamc@1132
|
5928 siemens)
|
adamc@1132
|
5929 lt_cv_deplibs_check_method=pass_all
|
adamc@1132
|
5930 ;;
|
adamc@1132
|
5931 pc)
|
adamc@1132
|
5932 lt_cv_deplibs_check_method=pass_all
|
adamc@1132
|
5933 ;;
|
adamc@1132
|
5934 esac
|
adamc@1132
|
5935 ;;
|
adamc@1132
|
5936
|
adamc@1132
|
5937 tpf*)
|
adamc@1132
|
5938 lt_cv_deplibs_check_method=pass_all
|
adamc@1132
|
5939 ;;
|
adamc@1132
|
5940 esac
|
adamc@1132
|
5941
|
adamc@1132
|
5942 fi
|
adamc@1132
|
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
adamc@1132
|
5944 $as_echo "$lt_cv_deplibs_check_method" >&6; }
|
adam@1459
|
5945
|
adam@1459
|
5946 file_magic_glob=
|
adam@1459
|
5947 want_nocaseglob=no
|
adam@1459
|
5948 if test "$build" = "$host"; then
|
adam@1459
|
5949 case $host_os in
|
adam@1459
|
5950 mingw* | pw32*)
|
adam@1459
|
5951 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
adam@1459
|
5952 want_nocaseglob=yes
|
adam@1459
|
5953 else
|
adam@1459
|
5954 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
adam@1459
|
5955 fi
|
adam@1459
|
5956 ;;
|
adam@1459
|
5957 esac
|
adam@1459
|
5958 fi
|
adam@1459
|
5959
|
adamc@1132
|
5960 file_magic_cmd=$lt_cv_file_magic_cmd
|
adamc@1132
|
5961 deplibs_check_method=$lt_cv_deplibs_check_method
|
adamc@1132
|
5962 test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
adamc@1132
|
5963
|
adamc@1132
|
5964
|
adamc@1132
|
5965
|
adamc@1132
|
5966
|
adamc@1132
|
5967
|
adamc@1132
|
5968
|
adamc@1132
|
5969
|
adamc@1132
|
5970
|
adamc@1132
|
5971
|
adamc@1132
|
5972
|
adamc@1132
|
5973
|
adamc@1132
|
5974
|
adam@1459
|
5975
|
adam@1459
|
5976
|
adam@1459
|
5977
|
adam@1459
|
5978
|
adam@1459
|
5979
|
adam@1459
|
5980
|
adam@1459
|
5981
|
adam@1459
|
5982
|
adam@1459
|
5983
|
adam@1459
|
5984
|
adamc@1132
|
5985 if test -n "$ac_tool_prefix"; then
|
adam@1459
|
5986 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
adam@1459
|
5987 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
adamc@1132
|
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
5989 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
5990 if ${ac_cv_prog_DLLTOOL+:} false; then :
|
adam@1459
|
5991 $as_echo_n "(cached) " >&6
|
adam@1459
|
5992 else
|
adam@1459
|
5993 if test -n "$DLLTOOL"; then
|
adam@1459
|
5994 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
adamc@1132
|
5995 else
|
adamc@1132
|
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
5997 for as_dir in $PATH
|
adamc@1132
|
5998 do
|
adamc@1132
|
5999 IFS=$as_save_IFS
|
adamc@1132
|
6000 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
6001 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
6002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adam@1459
|
6003 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
adam@1459
|
6004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adam@1459
|
6005 break 2
|
adam@1459
|
6006 fi
|
adam@1459
|
6007 done
|
adam@1459
|
6008 done
|
adam@1459
|
6009 IFS=$as_save_IFS
|
adam@1459
|
6010
|
adam@1459
|
6011 fi
|
adam@1459
|
6012 fi
|
adam@1459
|
6013 DLLTOOL=$ac_cv_prog_DLLTOOL
|
adam@1459
|
6014 if test -n "$DLLTOOL"; then
|
adam@1459
|
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
adam@1459
|
6016 $as_echo "$DLLTOOL" >&6; }
|
adam@1459
|
6017 else
|
adam@1459
|
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adam@1459
|
6019 $as_echo "no" >&6; }
|
adam@1459
|
6020 fi
|
adam@1459
|
6021
|
adam@1459
|
6022
|
adam@1459
|
6023 fi
|
adam@1459
|
6024 if test -z "$ac_cv_prog_DLLTOOL"; then
|
adam@1459
|
6025 ac_ct_DLLTOOL=$DLLTOOL
|
adam@1459
|
6026 # Extract the first word of "dlltool", so it can be a program name with args.
|
adam@1459
|
6027 set dummy dlltool; ac_word=$2
|
adam@1459
|
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adam@1459
|
6029 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
6030 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
adam@1459
|
6031 $as_echo_n "(cached) " >&6
|
adam@1459
|
6032 else
|
adam@1459
|
6033 if test -n "$ac_ct_DLLTOOL"; then
|
adam@1459
|
6034 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
adam@1459
|
6035 else
|
adam@1459
|
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adam@1459
|
6037 for as_dir in $PATH
|
adam@1459
|
6038 do
|
adam@1459
|
6039 IFS=$as_save_IFS
|
adam@1459
|
6040 test -z "$as_dir" && as_dir=.
|
adam@1459
|
6041 for ac_exec_ext in '' $ac_executable_extensions; do
|
adam@1459
|
6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adam@1459
|
6043 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
adam@1459
|
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adam@1459
|
6045 break 2
|
adam@1459
|
6046 fi
|
adam@1459
|
6047 done
|
adam@1459
|
6048 done
|
adam@1459
|
6049 IFS=$as_save_IFS
|
adam@1459
|
6050
|
adam@1459
|
6051 fi
|
adam@1459
|
6052 fi
|
adam@1459
|
6053 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
adam@1459
|
6054 if test -n "$ac_ct_DLLTOOL"; then
|
adam@1459
|
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
adam@1459
|
6056 $as_echo "$ac_ct_DLLTOOL" >&6; }
|
adam@1459
|
6057 else
|
adam@1459
|
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adam@1459
|
6059 $as_echo "no" >&6; }
|
adam@1459
|
6060 fi
|
adam@1459
|
6061
|
adam@1459
|
6062 if test "x$ac_ct_DLLTOOL" = x; then
|
adam@1459
|
6063 DLLTOOL="false"
|
adam@1459
|
6064 else
|
adam@1459
|
6065 case $cross_compiling:$ac_tool_warned in
|
adam@1459
|
6066 yes:)
|
adam@1459
|
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
adam@1459
|
6068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
adam@1459
|
6069 ac_tool_warned=yes ;;
|
adam@1459
|
6070 esac
|
adam@1459
|
6071 DLLTOOL=$ac_ct_DLLTOOL
|
adam@1459
|
6072 fi
|
adam@1459
|
6073 else
|
adam@1459
|
6074 DLLTOOL="$ac_cv_prog_DLLTOOL"
|
adam@1459
|
6075 fi
|
adam@1459
|
6076
|
adam@1459
|
6077 test -z "$DLLTOOL" && DLLTOOL=dlltool
|
adam@1459
|
6078
|
adam@1459
|
6079
|
adam@1459
|
6080
|
adam@1459
|
6081
|
adam@1459
|
6082
|
adam@1459
|
6083
|
adam@1459
|
6084
|
adam@1459
|
6085
|
adam@1459
|
6086
|
adam@1459
|
6087
|
adam@1459
|
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
adam@1459
|
6089 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
adam@1459
|
6090 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
adam@1459
|
6091 $as_echo_n "(cached) " >&6
|
adam@1459
|
6092 else
|
adam@1459
|
6093 lt_cv_sharedlib_from_linklib_cmd='unknown'
|
adam@1459
|
6094
|
adam@1459
|
6095 case $host_os in
|
adam@1459
|
6096 cygwin* | mingw* | pw32* | cegcc*)
|
adam@1459
|
6097 # two different shell functions defined in ltmain.sh
|
adam@1459
|
6098 # decide which to use based on capabilities of $DLLTOOL
|
adam@1459
|
6099 case `$DLLTOOL --help 2>&1` in
|
adam@1459
|
6100 *--identify-strict*)
|
adam@1459
|
6101 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
adam@1459
|
6102 ;;
|
adam@1459
|
6103 *)
|
adam@1459
|
6104 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
adam@1459
|
6105 ;;
|
adam@1459
|
6106 esac
|
adam@1459
|
6107 ;;
|
adam@1459
|
6108 *)
|
adam@1459
|
6109 # fallback: assume linklib IS sharedlib
|
adam@1459
|
6110 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
adam@1459
|
6111 ;;
|
adam@1459
|
6112 esac
|
adam@1459
|
6113
|
adam@1459
|
6114 fi
|
adam@1459
|
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
adam@1459
|
6116 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
adam@1459
|
6117 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
adam@1459
|
6118 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
adam@1459
|
6119
|
adam@1459
|
6120
|
adam@1459
|
6121
|
adam@1459
|
6122
|
adam@1459
|
6123
|
adam@1459
|
6124
|
adam@1459
|
6125
|
adam@1459
|
6126 if test -n "$ac_tool_prefix"; then
|
adam@1459
|
6127 for ac_prog in ar
|
adam@1459
|
6128 do
|
adam@1459
|
6129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
adam@1459
|
6130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
adam@1459
|
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adam@1459
|
6132 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
6133 if ${ac_cv_prog_AR+:} false; then :
|
adam@1459
|
6134 $as_echo_n "(cached) " >&6
|
adam@1459
|
6135 else
|
adam@1459
|
6136 if test -n "$AR"; then
|
adam@1459
|
6137 ac_cv_prog_AR="$AR" # Let the user override the test.
|
adam@1459
|
6138 else
|
adam@1459
|
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adam@1459
|
6140 for as_dir in $PATH
|
adam@1459
|
6141 do
|
adam@1459
|
6142 IFS=$as_save_IFS
|
adam@1459
|
6143 test -z "$as_dir" && as_dir=.
|
adam@1459
|
6144 for ac_exec_ext in '' $ac_executable_extensions; do
|
adam@1459
|
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adam@1459
|
6146 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
adamc@1132
|
6147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
6148 break 2
|
adamc@1132
|
6149 fi
|
adamc@1132
|
6150 done
|
adamc@1132
|
6151 done
|
adamc@1132
|
6152 IFS=$as_save_IFS
|
adamc@1132
|
6153
|
adamc@1132
|
6154 fi
|
adamc@1132
|
6155 fi
|
adamc@1132
|
6156 AR=$ac_cv_prog_AR
|
adamc@1132
|
6157 if test -n "$AR"; then
|
adamc@1132
|
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
adamc@1132
|
6159 $as_echo "$AR" >&6; }
|
adamc@1132
|
6160 else
|
adamc@1132
|
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
6162 $as_echo "no" >&6; }
|
adamc@1132
|
6163 fi
|
adamc@1132
|
6164
|
adamc@1132
|
6165
|
adam@1459
|
6166 test -n "$AR" && break
|
adam@1459
|
6167 done
|
adam@1459
|
6168 fi
|
adam@1459
|
6169 if test -z "$AR"; then
|
adamc@1132
|
6170 ac_ct_AR=$AR
|
adam@1459
|
6171 for ac_prog in ar
|
adam@1459
|
6172 do
|
adam@1459
|
6173 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
adam@1459
|
6174 set dummy $ac_prog; ac_word=$2
|
adamc@1132
|
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
6176 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
6177 if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
adamc@1132
|
6178 $as_echo_n "(cached) " >&6
|
adamc@1132
|
6179 else
|
adamc@1132
|
6180 if test -n "$ac_ct_AR"; then
|
adamc@1132
|
6181 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
adamc@1132
|
6182 else
|
adamc@1132
|
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
6184 for as_dir in $PATH
|
adamc@1132
|
6185 do
|
adamc@1132
|
6186 IFS=$as_save_IFS
|
adamc@1132
|
6187 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
6188 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
6189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adam@1459
|
6190 ac_cv_prog_ac_ct_AR="$ac_prog"
|
adamc@1132
|
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
6192 break 2
|
adamc@1132
|
6193 fi
|
adamc@1132
|
6194 done
|
adamc@1132
|
6195 done
|
adamc@1132
|
6196 IFS=$as_save_IFS
|
adamc@1132
|
6197
|
adamc@1132
|
6198 fi
|
adamc@1132
|
6199 fi
|
adamc@1132
|
6200 ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
adamc@1132
|
6201 if test -n "$ac_ct_AR"; then
|
adamc@1132
|
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
adamc@1132
|
6203 $as_echo "$ac_ct_AR" >&6; }
|
adamc@1132
|
6204 else
|
adamc@1132
|
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
6206 $as_echo "no" >&6; }
|
adamc@1132
|
6207 fi
|
adamc@1132
|
6208
|
adam@1459
|
6209
|
adam@1459
|
6210 test -n "$ac_ct_AR" && break
|
adam@1459
|
6211 done
|
adam@1459
|
6212
|
adamc@1132
|
6213 if test "x$ac_ct_AR" = x; then
|
adamc@1132
|
6214 AR="false"
|
adamc@1132
|
6215 else
|
adamc@1132
|
6216 case $cross_compiling:$ac_tool_warned in
|
adamc@1132
|
6217 yes:)
|
adamc@1132
|
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
adamc@1132
|
6219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
adamc@1132
|
6220 ac_tool_warned=yes ;;
|
adamc@1132
|
6221 esac
|
adamc@1132
|
6222 AR=$ac_ct_AR
|
adamc@1132
|
6223 fi
|
adam@1459
|
6224 fi
|
adam@1459
|
6225
|
adam@1459
|
6226 : ${AR=ar}
|
adam@1459
|
6227 : ${AR_FLAGS=cru}
|
adam@1459
|
6228
|
adam@1459
|
6229
|
adam@1459
|
6230
|
adam@1459
|
6231
|
adam@1459
|
6232
|
adam@1459
|
6233
|
adam@1459
|
6234
|
adam@1459
|
6235
|
adam@1459
|
6236
|
adam@1459
|
6237
|
adam@1459
|
6238
|
adam@1459
|
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
adam@1459
|
6240 $as_echo_n "checking for archiver @FILE support... " >&6; }
|
adam@1459
|
6241 if ${lt_cv_ar_at_file+:} false; then :
|
adam@1459
|
6242 $as_echo_n "(cached) " >&6
|
adam@1459
|
6243 else
|
adam@1459
|
6244 lt_cv_ar_at_file=no
|
adam@1459
|
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adam@1459
|
6246 /* end confdefs.h. */
|
adam@1459
|
6247
|
adam@1459
|
6248 int
|
adam@1459
|
6249 main ()
|
adam@1459
|
6250 {
|
adam@1459
|
6251
|
adam@1459
|
6252 ;
|
adam@1459
|
6253 return 0;
|
adam@1459
|
6254 }
|
adam@1459
|
6255 _ACEOF
|
adam@1459
|
6256 if ac_fn_c_try_compile "$LINENO"; then :
|
adam@1459
|
6257 echo conftest.$ac_objext > conftest.lst
|
adam@1459
|
6258 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
adam@1459
|
6259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
adam@1459
|
6260 (eval $lt_ar_try) 2>&5
|
adam@1459
|
6261 ac_status=$?
|
adam@1459
|
6262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adam@1459
|
6263 test $ac_status = 0; }
|
adam@1459
|
6264 if test "$ac_status" -eq 0; then
|
adam@1459
|
6265 # Ensure the archiver fails upon bogus file names.
|
adam@1459
|
6266 rm -f conftest.$ac_objext libconftest.a
|
adam@1459
|
6267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
adam@1459
|
6268 (eval $lt_ar_try) 2>&5
|
adam@1459
|
6269 ac_status=$?
|
adam@1459
|
6270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adam@1459
|
6271 test $ac_status = 0; }
|
adam@1459
|
6272 if test "$ac_status" -ne 0; then
|
adam@1459
|
6273 lt_cv_ar_at_file=@
|
adam@1459
|
6274 fi
|
adam@1459
|
6275 fi
|
adam@1459
|
6276 rm -f conftest.* libconftest.a
|
adam@1459
|
6277
|
adam@1459
|
6278 fi
|
adam@1459
|
6279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
adam@1459
|
6280
|
adam@1459
|
6281 fi
|
adam@1459
|
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
adam@1459
|
6283 $as_echo "$lt_cv_ar_at_file" >&6; }
|
adam@1459
|
6284
|
adam@1459
|
6285 if test "x$lt_cv_ar_at_file" = xno; then
|
adam@1459
|
6286 archiver_list_spec=
|
adam@1459
|
6287 else
|
adam@1459
|
6288 archiver_list_spec=$lt_cv_ar_at_file
|
adam@1459
|
6289 fi
|
adamc@1132
|
6290
|
adamc@1132
|
6291
|
adamc@1132
|
6292
|
adamc@1132
|
6293
|
adamc@1132
|
6294
|
adamc@1132
|
6295
|
adamc@1132
|
6296
|
adamc@1132
|
6297 if test -n "$ac_tool_prefix"; then
|
adamc@1132
|
6298 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
adamc@1132
|
6299 set dummy ${ac_tool_prefix}strip; ac_word=$2
|
adamc@1132
|
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
6301 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
6302 if ${ac_cv_prog_STRIP+:} false; then :
|
adamc@1132
|
6303 $as_echo_n "(cached) " >&6
|
adamc@1132
|
6304 else
|
adamc@1132
|
6305 if test -n "$STRIP"; then
|
adamc@1132
|
6306 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
adamc@1132
|
6307 else
|
adamc@1132
|
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
6309 for as_dir in $PATH
|
adamc@1132
|
6310 do
|
adamc@1132
|
6311 IFS=$as_save_IFS
|
adamc@1132
|
6312 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
6313 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
6314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
6315 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
adamc@1132
|
6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
6317 break 2
|
adamc@1132
|
6318 fi
|
adamc@1132
|
6319 done
|
adamc@1132
|
6320 done
|
adamc@1132
|
6321 IFS=$as_save_IFS
|
adamc@1132
|
6322
|
adamc@1132
|
6323 fi
|
adamc@1132
|
6324 fi
|
adamc@1132
|
6325 STRIP=$ac_cv_prog_STRIP
|
adamc@1132
|
6326 if test -n "$STRIP"; then
|
adamc@1132
|
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
adamc@1132
|
6328 $as_echo "$STRIP" >&6; }
|
adamc@1132
|
6329 else
|
adamc@1132
|
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
6331 $as_echo "no" >&6; }
|
adamc@1132
|
6332 fi
|
adamc@1132
|
6333
|
adamc@1132
|
6334
|
adamc@1132
|
6335 fi
|
adamc@1132
|
6336 if test -z "$ac_cv_prog_STRIP"; then
|
adamc@1132
|
6337 ac_ct_STRIP=$STRIP
|
adamc@1132
|
6338 # Extract the first word of "strip", so it can be a program name with args.
|
adamc@1132
|
6339 set dummy strip; ac_word=$2
|
adamc@1132
|
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
6341 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
6342 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
adamc@1132
|
6343 $as_echo_n "(cached) " >&6
|
adamc@1132
|
6344 else
|
adamc@1132
|
6345 if test -n "$ac_ct_STRIP"; then
|
adamc@1132
|
6346 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
adamc@1132
|
6347 else
|
adamc@1132
|
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
6349 for as_dir in $PATH
|
adamc@1132
|
6350 do
|
adamc@1132
|
6351 IFS=$as_save_IFS
|
adamc@1132
|
6352 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
6353 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
6355 ac_cv_prog_ac_ct_STRIP="strip"
|
adamc@1132
|
6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
6357 break 2
|
adamc@1132
|
6358 fi
|
adamc@1132
|
6359 done
|
adamc@1132
|
6360 done
|
adamc@1132
|
6361 IFS=$as_save_IFS
|
adamc@1132
|
6362
|
adamc@1132
|
6363 fi
|
adamc@1132
|
6364 fi
|
adamc@1132
|
6365 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
adamc@1132
|
6366 if test -n "$ac_ct_STRIP"; then
|
adamc@1132
|
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
adamc@1132
|
6368 $as_echo "$ac_ct_STRIP" >&6; }
|
adamc@1132
|
6369 else
|
adamc@1132
|
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
6371 $as_echo "no" >&6; }
|
adamc@1132
|
6372 fi
|
adamc@1132
|
6373
|
adamc@1132
|
6374 if test "x$ac_ct_STRIP" = x; then
|
adamc@1132
|
6375 STRIP=":"
|
adamc@1132
|
6376 else
|
adamc@1132
|
6377 case $cross_compiling:$ac_tool_warned in
|
adamc@1132
|
6378 yes:)
|
adamc@1132
|
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
adamc@1132
|
6380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
adamc@1132
|
6381 ac_tool_warned=yes ;;
|
adamc@1132
|
6382 esac
|
adamc@1132
|
6383 STRIP=$ac_ct_STRIP
|
adamc@1132
|
6384 fi
|
adamc@1132
|
6385 else
|
adamc@1132
|
6386 STRIP="$ac_cv_prog_STRIP"
|
adamc@1132
|
6387 fi
|
adamc@1132
|
6388
|
adamc@1132
|
6389 test -z "$STRIP" && STRIP=:
|
adamc@1132
|
6390
|
adamc@1132
|
6391
|
adamc@1132
|
6392
|
adamc@1132
|
6393
|
adamc@1132
|
6394
|
adamc@1132
|
6395
|
adamc@1132
|
6396 if test -n "$ac_tool_prefix"; then
|
adamc@1132
|
6397 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
adamc@1132
|
6398 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
adamc@1132
|
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
6400 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
6401 if ${ac_cv_prog_RANLIB+:} false; then :
|
adamc@1132
|
6402 $as_echo_n "(cached) " >&6
|
adamc@1132
|
6403 else
|
adamc@1132
|
6404 if test -n "$RANLIB"; then
|
adamc@1132
|
6405 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
adamc@1132
|
6406 else
|
adamc@1132
|
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
6408 for as_dir in $PATH
|
adamc@1132
|
6409 do
|
adamc@1132
|
6410 IFS=$as_save_IFS
|
adamc@1132
|
6411 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
6412 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
6414 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
adamc@1132
|
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
6416 break 2
|
adamc@1132
|
6417 fi
|
adamc@1132
|
6418 done
|
adamc@1132
|
6419 done
|
adamc@1132
|
6420 IFS=$as_save_IFS
|
adamc@1132
|
6421
|
adamc@1132
|
6422 fi
|
adamc@1132
|
6423 fi
|
adamc@1132
|
6424 RANLIB=$ac_cv_prog_RANLIB
|
adamc@1132
|
6425 if test -n "$RANLIB"; then
|
adamc@1132
|
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
adamc@1132
|
6427 $as_echo "$RANLIB" >&6; }
|
adamc@1132
|
6428 else
|
adamc@1132
|
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
6430 $as_echo "no" >&6; }
|
adamc@1132
|
6431 fi
|
adamc@1132
|
6432
|
adamc@1132
|
6433
|
adamc@1132
|
6434 fi
|
adamc@1132
|
6435 if test -z "$ac_cv_prog_RANLIB"; then
|
adamc@1132
|
6436 ac_ct_RANLIB=$RANLIB
|
adamc@1132
|
6437 # Extract the first word of "ranlib", so it can be a program name with args.
|
adamc@1132
|
6438 set dummy ranlib; ac_word=$2
|
adamc@1132
|
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
6440 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
6441 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
|
adamc@1132
|
6442 $as_echo_n "(cached) " >&6
|
adamc@1132
|
6443 else
|
adamc@1132
|
6444 if test -n "$ac_ct_RANLIB"; then
|
adamc@1132
|
6445 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
adamc@1132
|
6446 else
|
adamc@1132
|
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
6448 for as_dir in $PATH
|
adamc@1132
|
6449 do
|
adamc@1132
|
6450 IFS=$as_save_IFS
|
adamc@1132
|
6451 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
6452 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
6454 ac_cv_prog_ac_ct_RANLIB="ranlib"
|
adamc@1132
|
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
6456 break 2
|
adamc@1132
|
6457 fi
|
adamc@1132
|
6458 done
|
adamc@1132
|
6459 done
|
adamc@1132
|
6460 IFS=$as_save_IFS
|
adamc@1132
|
6461
|
adamc@1132
|
6462 fi
|
adamc@1132
|
6463 fi
|
adamc@1132
|
6464 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
adamc@1132
|
6465 if test -n "$ac_ct_RANLIB"; then
|
adamc@1132
|
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
adamc@1132
|
6467 $as_echo "$ac_ct_RANLIB" >&6; }
|
adamc@1132
|
6468 else
|
adamc@1132
|
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
6470 $as_echo "no" >&6; }
|
adamc@1132
|
6471 fi
|
adamc@1132
|
6472
|
adamc@1132
|
6473 if test "x$ac_ct_RANLIB" = x; then
|
adamc@1132
|
6474 RANLIB=":"
|
adamc@1132
|
6475 else
|
adamc@1132
|
6476 case $cross_compiling:$ac_tool_warned in
|
adamc@1132
|
6477 yes:)
|
adamc@1132
|
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
adamc@1132
|
6479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
adamc@1132
|
6480 ac_tool_warned=yes ;;
|
adamc@1132
|
6481 esac
|
adamc@1132
|
6482 RANLIB=$ac_ct_RANLIB
|
adamc@1132
|
6483 fi
|
adamc@1132
|
6484 else
|
adamc@1132
|
6485 RANLIB="$ac_cv_prog_RANLIB"
|
adamc@1132
|
6486 fi
|
adamc@1132
|
6487
|
adamc@1132
|
6488 test -z "$RANLIB" && RANLIB=:
|
adamc@1132
|
6489
|
adamc@1132
|
6490
|
adamc@1132
|
6491
|
adamc@1132
|
6492
|
adamc@1132
|
6493
|
adamc@1132
|
6494
|
adamc@1132
|
6495 # Determine commands to create old-style static archives.
|
adamc@1132
|
6496 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
adamc@1132
|
6497 old_postinstall_cmds='chmod 644 $oldlib'
|
adamc@1132
|
6498 old_postuninstall_cmds=
|
adamc@1132
|
6499
|
adamc@1132
|
6500 if test -n "$RANLIB"; then
|
adamc@1132
|
6501 case $host_os in
|
adamc@1132
|
6502 openbsd*)
|
adamc@1132
|
6503 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
adamc@1132
|
6504 ;;
|
adamc@1132
|
6505 *)
|
adamc@1132
|
6506 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
adamc@1132
|
6507 ;;
|
adamc@1132
|
6508 esac
|
adamc@1132
|
6509 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
adamc@1132
|
6510 fi
|
adamc@1132
|
6511
|
adam@1459
|
6512 case $host_os in
|
adam@1459
|
6513 darwin*)
|
adam@1459
|
6514 lock_old_archive_extraction=yes ;;
|
adam@1459
|
6515 *)
|
adam@1459
|
6516 lock_old_archive_extraction=no ;;
|
adam@1459
|
6517 esac
|
adam@1459
|
6518
|
adam@1459
|
6519
|
adam@1459
|
6520
|
adam@1459
|
6521
|
adam@1459
|
6522
|
adam@1459
|
6523
|
adamc@1132
|
6524
|
adamc@1132
|
6525
|
adamc@1132
|
6526
|
adamc@1132
|
6527
|
adamc@1132
|
6528
|
adamc@1132
|
6529
|
adamc@1132
|
6530
|
adamc@1132
|
6531
|
adamc@1132
|
6532
|
adamc@1132
|
6533
|
adamc@1132
|
6534
|
adamc@1132
|
6535
|
adamc@1132
|
6536
|
adamc@1132
|
6537
|
adamc@1132
|
6538
|
adamc@1132
|
6539
|
adamc@1132
|
6540
|
adamc@1132
|
6541
|
adamc@1132
|
6542
|
adamc@1132
|
6543
|
adamc@1132
|
6544
|
adamc@1132
|
6545
|
adamc@1132
|
6546
|
adamc@1132
|
6547
|
adamc@1132
|
6548
|
adamc@1132
|
6549
|
adamc@1132
|
6550
|
adamc@1132
|
6551
|
adamc@1132
|
6552
|
adamc@1132
|
6553
|
adamc@1132
|
6554
|
adamc@1132
|
6555
|
adamc@1132
|
6556
|
adamc@1132
|
6557 # If no C compiler was specified, use CC.
|
adamc@1132
|
6558 LTCC=${LTCC-"$CC"}
|
adamc@1132
|
6559
|
adamc@1132
|
6560 # If no C compiler flags were specified, use CFLAGS.
|
adamc@1132
|
6561 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
adamc@1132
|
6562
|
adamc@1132
|
6563 # Allow CC to be a program name with arguments.
|
adamc@1132
|
6564 compiler=$CC
|
adamc@1132
|
6565
|
adamc@1132
|
6566
|
adamc@1132
|
6567 # Check for command to grab the raw symbol name followed by C symbol from nm.
|
adamc@1132
|
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
|
adamc@1132
|
6569 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
|
adam@1459
|
6570 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
|
adamc@1132
|
6571 $as_echo_n "(cached) " >&6
|
adamc@1132
|
6572 else
|
adamc@1132
|
6573
|
adamc@1132
|
6574 # These are sane defaults that work on at least a few old systems.
|
adamc@1132
|
6575 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
adamc@1132
|
6576
|
adamc@1132
|
6577 # Character class describing NM global symbol codes.
|
adamc@1132
|
6578 symcode='[BCDEGRST]'
|
adamc@1132
|
6579
|
adamc@1132
|
6580 # Regexp to match symbols that can be accessed directly from C.
|
adamc@1132
|
6581 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
adamc@1132
|
6582
|
adamc@1132
|
6583 # Define system-specific variables.
|
adamc@1132
|
6584 case $host_os in
|
adamc@1132
|
6585 aix*)
|
adamc@1132
|
6586 symcode='[BCDT]'
|
adamc@1132
|
6587 ;;
|
adamc@1132
|
6588 cygwin* | mingw* | pw32* | cegcc*)
|
adamc@1132
|
6589 symcode='[ABCDGISTW]'
|
adamc@1132
|
6590 ;;
|
adamc@1132
|
6591 hpux*)
|
adamc@1132
|
6592 if test "$host_cpu" = ia64; then
|
adamc@1132
|
6593 symcode='[ABCDEGRST]'
|
adamc@1132
|
6594 fi
|
adamc@1132
|
6595 ;;
|
adamc@1132
|
6596 irix* | nonstopux*)
|
adamc@1132
|
6597 symcode='[BCDEGRST]'
|
adamc@1132
|
6598 ;;
|
adamc@1132
|
6599 osf*)
|
adamc@1132
|
6600 symcode='[BCDEGQRST]'
|
adamc@1132
|
6601 ;;
|
adamc@1132
|
6602 solaris*)
|
adamc@1132
|
6603 symcode='[BDRT]'
|
adamc@1132
|
6604 ;;
|
adamc@1132
|
6605 sco3.2v5*)
|
adamc@1132
|
6606 symcode='[DT]'
|
adamc@1132
|
6607 ;;
|
adamc@1132
|
6608 sysv4.2uw2*)
|
adamc@1132
|
6609 symcode='[DT]'
|
adamc@1132
|
6610 ;;
|
adamc@1132
|
6611 sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
adamc@1132
|
6612 symcode='[ABDT]'
|
adamc@1132
|
6613 ;;
|
adamc@1132
|
6614 sysv4)
|
adamc@1132
|
6615 symcode='[DFNSTU]'
|
adamc@1132
|
6616 ;;
|
adamc@1132
|
6617 esac
|
adamc@1132
|
6618
|
adamc@1132
|
6619 # If we're using GNU nm, then use its standard symbol codes.
|
adamc@1132
|
6620 case `$NM -V 2>&1` in
|
adamc@1132
|
6621 *GNU* | *'with BFD'*)
|
adamc@1132
|
6622 symcode='[ABCDGIRSTW]' ;;
|
adamc@1132
|
6623 esac
|
adamc@1132
|
6624
|
adamc@1132
|
6625 # Transform an extracted symbol line into a proper C declaration.
|
adamc@1132
|
6626 # Some systems (esp. on ia64) link data and code symbols differently,
|
adamc@1132
|
6627 # so use this general approach.
|
adamc@1132
|
6628 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
adamc@1132
|
6629
|
adamc@1132
|
6630 # Transform an extracted symbol line into symbol name and symbol address
|
adam@1459
|
6631 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
adam@1459
|
6632 lt_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'"
|
adamc@1132
|
6633
|
adamc@1132
|
6634 # Handle CRLF in mingw tool chain
|
adamc@1132
|
6635 opt_cr=
|
adamc@1132
|
6636 case $build_os in
|
adamc@1132
|
6637 mingw*)
|
adamc@1132
|
6638 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
adamc@1132
|
6639 ;;
|
adamc@1132
|
6640 esac
|
adamc@1132
|
6641
|
adamc@1132
|
6642 # Try without a prefix underscore, then with it.
|
adamc@1132
|
6643 for ac_symprfx in "" "_"; do
|
adamc@1132
|
6644
|
adamc@1132
|
6645 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
adamc@1132
|
6646 symxfrm="\\1 $ac_symprfx\\2 \\2"
|
adamc@1132
|
6647
|
adamc@1132
|
6648 # Write the raw and C identifiers.
|
adamc@1132
|
6649 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
adamc@1132
|
6650 # Fake it for dumpbin and say T for any non-static function
|
adamc@1132
|
6651 # and D for any global variable.
|
adamc@1132
|
6652 # Also find C++ and __fastcall symbols from MSVC++,
|
adamc@1132
|
6653 # which start with @ or ?.
|
adamc@1132
|
6654 lt_cv_sys_global_symbol_pipe="$AWK '"\
|
adamc@1132
|
6655 " {last_section=section; section=\$ 3};"\
|
adamc@1132
|
6656 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
adamc@1132
|
6657 " \$ 0!~/External *\|/{next};"\
|
adamc@1132
|
6658 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
adamc@1132
|
6659 " {if(hide[section]) next};"\
|
adamc@1132
|
6660 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
|
adamc@1132
|
6661 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
|
adamc@1132
|
6662 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
|
adamc@1132
|
6663 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
|
adamc@1132
|
6664 " ' prfx=^$ac_symprfx"
|
adamc@1132
|
6665 else
|
adamc@1132
|
6666 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
adamc@1132
|
6667 fi
|
adam@1459
|
6668 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
adamc@1132
|
6669
|
adamc@1132
|
6670 # Check to see that the pipe works correctly.
|
adamc@1132
|
6671 pipe_works=no
|
adamc@1132
|
6672
|
adamc@1132
|
6673 rm -f conftest*
|
adamc@1132
|
6674 cat > conftest.$ac_ext <<_LT_EOF
|
adamc@1132
|
6675 #ifdef __cplusplus
|
adamc@1132
|
6676 extern "C" {
|
adamc@1132
|
6677 #endif
|
adamc@1132
|
6678 char nm_test_var;
|
adamc@1132
|
6679 void nm_test_func(void);
|
adamc@1132
|
6680 void nm_test_func(void){}
|
adamc@1132
|
6681 #ifdef __cplusplus
|
adamc@1132
|
6682 }
|
adamc@1132
|
6683 #endif
|
adamc@1132
|
6684 int main(){nm_test_var='a';nm_test_func();return(0);}
|
adamc@1132
|
6685 _LT_EOF
|
adamc@1132
|
6686
|
adamc@1132
|
6687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
adamc@1132
|
6688 (eval $ac_compile) 2>&5
|
adamc@1132
|
6689 ac_status=$?
|
adamc@1132
|
6690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1132
|
6691 test $ac_status = 0; }; then
|
adamc@1132
|
6692 # Now try to grab the symbols.
|
adamc@1132
|
6693 nlist=conftest.nm
|
adam@1459
|
6694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
|
adam@1459
|
6695 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
|
adamc@1132
|
6696 ac_status=$?
|
adamc@1132
|
6697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1132
|
6698 test $ac_status = 0; } && test -s "$nlist"; then
|
adamc@1132
|
6699 # Try sorting and uniquifying the output.
|
adamc@1132
|
6700 if sort "$nlist" | uniq > "$nlist"T; then
|
adamc@1132
|
6701 mv -f "$nlist"T "$nlist"
|
adamc@1132
|
6702 else
|
adamc@1132
|
6703 rm -f "$nlist"T
|
adamc@1132
|
6704 fi
|
adamc@1132
|
6705
|
adamc@1132
|
6706 # Make sure that we snagged all the symbols we need.
|
adamc@1132
|
6707 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
adamc@1132
|
6708 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
adamc@1132
|
6709 cat <<_LT_EOF > conftest.$ac_ext
|
adam@1459
|
6710 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
adam@1459
|
6711 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
adam@1459
|
6712 /* DATA imports from DLLs on WIN32 con't be const, because runtime
|
adam@1459
|
6713 relocations are performed -- see ld's documentation on pseudo-relocs. */
|
adam@1459
|
6714 # define LT_DLSYM_CONST
|
adam@1459
|
6715 #elif defined(__osf__)
|
adam@1459
|
6716 /* This system does not cope well with relocations in const data. */
|
adam@1459
|
6717 # define LT_DLSYM_CONST
|
adam@1459
|
6718 #else
|
adam@1459
|
6719 # define LT_DLSYM_CONST const
|
adam@1459
|
6720 #endif
|
adam@1459
|
6721
|
adamc@1132
|
6722 #ifdef __cplusplus
|
adamc@1132
|
6723 extern "C" {
|
adamc@1132
|
6724 #endif
|
adamc@1132
|
6725
|
adamc@1132
|
6726 _LT_EOF
|
adamc@1132
|
6727 # Now generate the symbol file.
|
adamc@1132
|
6728 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
|
adamc@1132
|
6729
|
adamc@1132
|
6730 cat <<_LT_EOF >> conftest.$ac_ext
|
adamc@1132
|
6731
|
adamc@1132
|
6732 /* The mapping between symbol names and symbols. */
|
adam@1459
|
6733 LT_DLSYM_CONST struct {
|
adamc@1132
|
6734 const char *name;
|
adamc@1132
|
6735 void *address;
|
adamc@1132
|
6736 }
|
adamc@1132
|
6737 lt__PROGRAM__LTX_preloaded_symbols[] =
|
adamc@1132
|
6738 {
|
adamc@1132
|
6739 { "@PROGRAM@", (void *) 0 },
|
adamc@1132
|
6740 _LT_EOF
|
adamc@1132
|
6741 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
|
adamc@1132
|
6742 cat <<\_LT_EOF >> conftest.$ac_ext
|
adamc@1132
|
6743 {0, (void *) 0}
|
adamc@1132
|
6744 };
|
adamc@1132
|
6745
|
adamc@1132
|
6746 /* This works around a problem in FreeBSD linker */
|
adamc@1132
|
6747 #ifdef FREEBSD_WORKAROUND
|
adamc@1132
|
6748 static const void *lt_preloaded_setup() {
|
adamc@1132
|
6749 return lt__PROGRAM__LTX_preloaded_symbols;
|
adamc@1132
|
6750 }
|
adamc@1132
|
6751 #endif
|
adamc@1132
|
6752
|
adamc@1132
|
6753 #ifdef __cplusplus
|
adamc@1132
|
6754 }
|
adamc@1132
|
6755 #endif
|
adamc@1132
|
6756 _LT_EOF
|
adamc@1132
|
6757 # Now try linking the two files.
|
adamc@1132
|
6758 mv conftest.$ac_objext conftstm.$ac_objext
|
adam@1459
|
6759 lt_globsym_save_LIBS=$LIBS
|
adam@1459
|
6760 lt_globsym_save_CFLAGS=$CFLAGS
|
adamc@1132
|
6761 LIBS="conftstm.$ac_objext"
|
adamc@1132
|
6762 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
adamc@1132
|
6763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
adamc@1132
|
6764 (eval $ac_link) 2>&5
|
adamc@1132
|
6765 ac_status=$?
|
adamc@1132
|
6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1132
|
6767 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
|
adamc@1132
|
6768 pipe_works=yes
|
adamc@1132
|
6769 fi
|
adam@1459
|
6770 LIBS=$lt_globsym_save_LIBS
|
adam@1459
|
6771 CFLAGS=$lt_globsym_save_CFLAGS
|
adamc@1132
|
6772 else
|
adamc@1132
|
6773 echo "cannot find nm_test_func in $nlist" >&5
|
adamc@1132
|
6774 fi
|
adamc@1132
|
6775 else
|
adamc@1132
|
6776 echo "cannot find nm_test_var in $nlist" >&5
|
adamc@1132
|
6777 fi
|
adamc@1132
|
6778 else
|
adamc@1132
|
6779 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
adamc@1132
|
6780 fi
|
adamc@1132
|
6781 else
|
adamc@1132
|
6782 echo "$progname: failed program was:" >&5
|
adamc@1132
|
6783 cat conftest.$ac_ext >&5
|
adamc@1132
|
6784 fi
|
adamc@1132
|
6785 rm -rf conftest* conftst*
|
adamc@1132
|
6786
|
adamc@1132
|
6787 # Do not use the global_symbol_pipe unless it works.
|
adamc@1132
|
6788 if test "$pipe_works" = yes; then
|
adamc@1132
|
6789 break
|
adamc@1132
|
6790 else
|
adamc@1132
|
6791 lt_cv_sys_global_symbol_pipe=
|
adamc@1132
|
6792 fi
|
adamc@1132
|
6793 done
|
adamc@1132
|
6794
|
adamc@1132
|
6795 fi
|
adamc@1132
|
6796
|
adamc@1132
|
6797 if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
adamc@1132
|
6798 lt_cv_sys_global_symbol_to_cdecl=
|
adamc@1132
|
6799 fi
|
adamc@1132
|
6800 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
adamc@1132
|
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
|
adamc@1132
|
6802 $as_echo "failed" >&6; }
|
adamc@1132
|
6803 else
|
adamc@1132
|
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
|
adamc@1132
|
6805 $as_echo "ok" >&6; }
|
adamc@1132
|
6806 fi
|
adamc@1132
|
6807
|
adam@1459
|
6808 # Response file support.
|
adam@1459
|
6809 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
adam@1459
|
6810 nm_file_list_spec='@'
|
adam@1459
|
6811 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
adam@1459
|
6812 nm_file_list_spec='@'
|
adam@1459
|
6813 fi
|
adam@1459
|
6814
|
adam@1459
|
6815
|
adam@1459
|
6816
|
adam@1459
|
6817
|
adam@1459
|
6818
|
adam@1459
|
6819
|
adam@1459
|
6820
|
adam@1459
|
6821
|
adam@1459
|
6822
|
adam@1459
|
6823
|
adam@1459
|
6824
|
adam@1459
|
6825
|
adam@1459
|
6826
|
adam@1459
|
6827
|
adam@1459
|
6828
|
adam@1459
|
6829
|
adam@1459
|
6830
|
adam@1459
|
6831
|
adam@1459
|
6832
|
adam@1459
|
6833
|
adam@1459
|
6834
|
adam@1459
|
6835
|
adam@1459
|
6836
|
adam@1459
|
6837
|
adam@1459
|
6838
|
adam@1459
|
6839
|
adam@1459
|
6840
|
adam@1459
|
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
adam@1459
|
6842 $as_echo_n "checking for sysroot... " >&6; }
|
adam@1459
|
6843
|
adam@1459
|
6844 # Check whether --with-sysroot was given.
|
adam@1459
|
6845 if test "${with_sysroot+set}" = set; then :
|
adam@1459
|
6846 withval=$with_sysroot;
|
adam@1459
|
6847 else
|
adam@1459
|
6848 with_sysroot=no
|
adam@1459
|
6849 fi
|
adam@1459
|
6850
|
adam@1459
|
6851
|
adam@1459
|
6852 lt_sysroot=
|
adam@1459
|
6853 case ${with_sysroot} in #(
|
adam@1459
|
6854 yes)
|
adam@1459
|
6855 if test "$GCC" = yes; then
|
adam@1459
|
6856 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
adam@1459
|
6857 fi
|
adam@1459
|
6858 ;; #(
|
adam@1459
|
6859 /*)
|
adam@1459
|
6860 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
|
adam@1459
|
6861 ;; #(
|
adam@1459
|
6862 no|'')
|
adam@1459
|
6863 ;; #(
|
adam@1459
|
6864 *)
|
adam@1459
|
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
|
adam@1459
|
6866 $as_echo "${with_sysroot}" >&6; }
|
adam@1459
|
6867 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
adam@1459
|
6868 ;;
|
adam@1459
|
6869 esac
|
adam@1459
|
6870
|
adam@1459
|
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
adam@1459
|
6872 $as_echo "${lt_sysroot:-no}" >&6; }
|
adamc@1132
|
6873
|
adamc@1132
|
6874
|
adamc@1132
|
6875
|
adamc@1132
|
6876
|
adamc@1132
|
6877
|
adamc@1132
|
6878 # Check whether --enable-libtool-lock was given.
|
adamc@1132
|
6879 if test "${enable_libtool_lock+set}" = set; then :
|
adamc@1132
|
6880 enableval=$enable_libtool_lock;
|
adamc@1132
|
6881 fi
|
adamc@1132
|
6882
|
adamc@1132
|
6883 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
adamc@1132
|
6884
|
adamc@1132
|
6885 # Some flags need to be propagated to the compiler or linker for good
|
adamc@1132
|
6886 # libtool support.
|
adamc@1132
|
6887 case $host in
|
adamc@1132
|
6888 ia64-*-hpux*)
|
adamc@1132
|
6889 # Find out which ABI we are using.
|
adamc@1132
|
6890 echo 'int i;' > conftest.$ac_ext
|
adamc@1132
|
6891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
adamc@1132
|
6892 (eval $ac_compile) 2>&5
|
adamc@1132
|
6893 ac_status=$?
|
adamc@1132
|
6894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1132
|
6895 test $ac_status = 0; }; then
|
adamc@1132
|
6896 case `/usr/bin/file conftest.$ac_objext` in
|
adamc@1132
|
6897 *ELF-32*)
|
adamc@1132
|
6898 HPUX_IA64_MODE="32"
|
adamc@1132
|
6899 ;;
|
adamc@1132
|
6900 *ELF-64*)
|
adamc@1132
|
6901 HPUX_IA64_MODE="64"
|
adamc@1132
|
6902 ;;
|
adamc@1132
|
6903 esac
|
adamc@1132
|
6904 fi
|
adamc@1132
|
6905 rm -rf conftest*
|
adamc@1132
|
6906 ;;
|
adamc@1132
|
6907 *-*-irix6*)
|
adamc@1132
|
6908 # Find out which ABI we are using.
|
adam@1459
|
6909 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
|
adamc@1132
|
6910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
adamc@1132
|
6911 (eval $ac_compile) 2>&5
|
adamc@1132
|
6912 ac_status=$?
|
adamc@1132
|
6913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1132
|
6914 test $ac_status = 0; }; then
|
adamc@1132
|
6915 if test "$lt_cv_prog_gnu_ld" = yes; then
|
adamc@1132
|
6916 case `/usr/bin/file conftest.$ac_objext` in
|
adamc@1132
|
6917 *32-bit*)
|
adamc@1132
|
6918 LD="${LD-ld} -melf32bsmip"
|
adamc@1132
|
6919 ;;
|
adamc@1132
|
6920 *N32*)
|
adamc@1132
|
6921 LD="${LD-ld} -melf32bmipn32"
|
adamc@1132
|
6922 ;;
|
adamc@1132
|
6923 *64-bit*)
|
adamc@1132
|
6924 LD="${LD-ld} -melf64bmip"
|
adamc@1132
|
6925 ;;
|
adamc@1132
|
6926 esac
|
adamc@1132
|
6927 else
|
adamc@1132
|
6928 case `/usr/bin/file conftest.$ac_objext` in
|
adamc@1132
|
6929 *32-bit*)
|
adamc@1132
|
6930 LD="${LD-ld} -32"
|
adamc@1132
|
6931 ;;
|
adamc@1132
|
6932 *N32*)
|
adamc@1132
|
6933 LD="${LD-ld} -n32"
|
adamc@1132
|
6934 ;;
|
adamc@1132
|
6935 *64-bit*)
|
adamc@1132
|
6936 LD="${LD-ld} -64"
|
adamc@1132
|
6937 ;;
|
adamc@1132
|
6938 esac
|
adamc@1132
|
6939 fi
|
adamc@1132
|
6940 fi
|
adamc@1132
|
6941 rm -rf conftest*
|
adamc@1132
|
6942 ;;
|
adamc@1132
|
6943
|
adamc@1132
|
6944 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
|
adamc@1132
|
6945 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
adamc@1132
|
6946 # Find out which ABI we are using.
|
adamc@1132
|
6947 echo 'int i;' > conftest.$ac_ext
|
adamc@1132
|
6948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
adamc@1132
|
6949 (eval $ac_compile) 2>&5
|
adamc@1132
|
6950 ac_status=$?
|
adamc@1132
|
6951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1132
|
6952 test $ac_status = 0; }; then
|
adamc@1132
|
6953 case `/usr/bin/file conftest.o` in
|
adamc@1132
|
6954 *32-bit*)
|
adamc@1132
|
6955 case $host in
|
adamc@1132
|
6956 x86_64-*kfreebsd*-gnu)
|
adamc@1132
|
6957 LD="${LD-ld} -m elf_i386_fbsd"
|
adamc@1132
|
6958 ;;
|
adamc@1132
|
6959 x86_64-*linux*)
|
adamc@1132
|
6960 LD="${LD-ld} -m elf_i386"
|
adamc@1132
|
6961 ;;
|
adamc@1132
|
6962 ppc64-*linux*|powerpc64-*linux*)
|
adamc@1132
|
6963 LD="${LD-ld} -m elf32ppclinux"
|
adamc@1132
|
6964 ;;
|
adamc@1132
|
6965 s390x-*linux*)
|
adamc@1132
|
6966 LD="${LD-ld} -m elf_s390"
|
adamc@1132
|
6967 ;;
|
adamc@1132
|
6968 sparc64-*linux*)
|
adamc@1132
|
6969 LD="${LD-ld} -m elf32_sparc"
|
adamc@1132
|
6970 ;;
|
adamc@1132
|
6971 esac
|
adamc@1132
|
6972 ;;
|
adamc@1132
|
6973 *64-bit*)
|
adamc@1132
|
6974 case $host in
|
adamc@1132
|
6975 x86_64-*kfreebsd*-gnu)
|
adamc@1132
|
6976 LD="${LD-ld} -m elf_x86_64_fbsd"
|
adamc@1132
|
6977 ;;
|
adamc@1132
|
6978 x86_64-*linux*)
|
adamc@1132
|
6979 LD="${LD-ld} -m elf_x86_64"
|
adamc@1132
|
6980 ;;
|
adamc@1132
|
6981 ppc*-*linux*|powerpc*-*linux*)
|
adamc@1132
|
6982 LD="${LD-ld} -m elf64ppc"
|
adamc@1132
|
6983 ;;
|
adamc@1132
|
6984 s390*-*linux*|s390*-*tpf*)
|
adamc@1132
|
6985 LD="${LD-ld} -m elf64_s390"
|
adamc@1132
|
6986 ;;
|
adamc@1132
|
6987 sparc*-*linux*)
|
adamc@1132
|
6988 LD="${LD-ld} -m elf64_sparc"
|
adamc@1132
|
6989 ;;
|
adamc@1132
|
6990 esac
|
adamc@1132
|
6991 ;;
|
adamc@1132
|
6992 esac
|
adamc@1132
|
6993 fi
|
adamc@1132
|
6994 rm -rf conftest*
|
adamc@1132
|
6995 ;;
|
adamc@1132
|
6996
|
adamc@1132
|
6997 *-*-sco3.2v5*)
|
adamc@1132
|
6998 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
adamc@1132
|
6999 SAVE_CFLAGS="$CFLAGS"
|
adamc@1132
|
7000 CFLAGS="$CFLAGS -belf"
|
adamc@1132
|
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
|
adamc@1132
|
7002 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
|
adam@1459
|
7003 if ${lt_cv_cc_needs_belf+:} false; then :
|
adamc@1132
|
7004 $as_echo_n "(cached) " >&6
|
adamc@1132
|
7005 else
|
adamc@1132
|
7006 ac_ext=c
|
adamc@1132
|
7007 ac_cpp='$CPP $CPPFLAGS'
|
adamc@1132
|
7008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
adamc@1132
|
7009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
adamc@1132
|
7010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
adamc@1132
|
7011
|
adamc@1132
|
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1132
|
7013 /* end confdefs.h. */
|
adamc@1132
|
7014
|
adamc@1132
|
7015 int
|
adamc@1132
|
7016 main ()
|
adamc@1132
|
7017 {
|
adamc@1132
|
7018
|
adamc@1132
|
7019 ;
|
adamc@1132
|
7020 return 0;
|
adamc@1132
|
7021 }
|
adamc@1132
|
7022 _ACEOF
|
adamc@1132
|
7023 if ac_fn_c_try_link "$LINENO"; then :
|
adamc@1132
|
7024 lt_cv_cc_needs_belf=yes
|
adamc@1132
|
7025 else
|
adamc@1132
|
7026 lt_cv_cc_needs_belf=no
|
adamc@1132
|
7027 fi
|
adamc@1132
|
7028 rm -f core conftest.err conftest.$ac_objext \
|
adamc@1132
|
7029 conftest$ac_exeext conftest.$ac_ext
|
adamc@1132
|
7030 ac_ext=c
|
adamc@1132
|
7031 ac_cpp='$CPP $CPPFLAGS'
|
adamc@1132
|
7032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
adamc@1132
|
7033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
adamc@1132
|
7034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
adamc@1132
|
7035
|
adamc@1132
|
7036 fi
|
adamc@1132
|
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
|
adamc@1132
|
7038 $as_echo "$lt_cv_cc_needs_belf" >&6; }
|
adamc@1132
|
7039 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
adamc@1132
|
7040 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
adamc@1132
|
7041 CFLAGS="$SAVE_CFLAGS"
|
adamc@1132
|
7042 fi
|
adamc@1132
|
7043 ;;
|
adamc@1132
|
7044 sparc*-*solaris*)
|
adamc@1132
|
7045 # Find out which ABI we are using.
|
adamc@1132
|
7046 echo 'int i;' > conftest.$ac_ext
|
adamc@1132
|
7047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
adamc@1132
|
7048 (eval $ac_compile) 2>&5
|
adamc@1132
|
7049 ac_status=$?
|
adamc@1132
|
7050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1132
|
7051 test $ac_status = 0; }; then
|
adamc@1132
|
7052 case `/usr/bin/file conftest.o` in
|
adamc@1132
|
7053 *64-bit*)
|
adamc@1132
|
7054 case $lt_cv_prog_gnu_ld in
|
adamc@1132
|
7055 yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
adamc@1132
|
7056 *)
|
adamc@1132
|
7057 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
adamc@1132
|
7058 LD="${LD-ld} -64"
|
adamc@1132
|
7059 fi
|
adamc@1132
|
7060 ;;
|
adamc@1132
|
7061 esac
|
adamc@1132
|
7062 ;;
|
adamc@1132
|
7063 esac
|
adamc@1132
|
7064 fi
|
adamc@1132
|
7065 rm -rf conftest*
|
adamc@1132
|
7066 ;;
|
adamc@1132
|
7067 esac
|
adamc@1132
|
7068
|
adamc@1132
|
7069 need_locks="$enable_libtool_lock"
|
adamc@1132
|
7070
|
adam@1459
|
7071 if test -n "$ac_tool_prefix"; then
|
adam@1459
|
7072 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
adam@1459
|
7073 set dummy ${ac_tool_prefix}mt; ac_word=$2
|
adam@1459
|
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adam@1459
|
7075 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
7076 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
adam@1459
|
7077 $as_echo_n "(cached) " >&6
|
adam@1459
|
7078 else
|
adam@1459
|
7079 if test -n "$MANIFEST_TOOL"; then
|
adam@1459
|
7080 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
adam@1459
|
7081 else
|
adam@1459
|
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adam@1459
|
7083 for as_dir in $PATH
|
adam@1459
|
7084 do
|
adam@1459
|
7085 IFS=$as_save_IFS
|
adam@1459
|
7086 test -z "$as_dir" && as_dir=.
|
adam@1459
|
7087 for ac_exec_ext in '' $ac_executable_extensions; do
|
adam@1459
|
7088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adam@1459
|
7089 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
adam@1459
|
7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adam@1459
|
7091 break 2
|
adam@1459
|
7092 fi
|
adam@1459
|
7093 done
|
adam@1459
|
7094 done
|
adam@1459
|
7095 IFS=$as_save_IFS
|
adam@1459
|
7096
|
adam@1459
|
7097 fi
|
adam@1459
|
7098 fi
|
adam@1459
|
7099 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
adam@1459
|
7100 if test -n "$MANIFEST_TOOL"; then
|
adam@1459
|
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
adam@1459
|
7102 $as_echo "$MANIFEST_TOOL" >&6; }
|
adam@1459
|
7103 else
|
adam@1459
|
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adam@1459
|
7105 $as_echo "no" >&6; }
|
adam@1459
|
7106 fi
|
adam@1459
|
7107
|
adam@1459
|
7108
|
adam@1459
|
7109 fi
|
adam@1459
|
7110 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
adam@1459
|
7111 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
adam@1459
|
7112 # Extract the first word of "mt", so it can be a program name with args.
|
adam@1459
|
7113 set dummy mt; ac_word=$2
|
adam@1459
|
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adam@1459
|
7115 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
7116 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
adam@1459
|
7117 $as_echo_n "(cached) " >&6
|
adam@1459
|
7118 else
|
adam@1459
|
7119 if test -n "$ac_ct_MANIFEST_TOOL"; then
|
adam@1459
|
7120 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
adam@1459
|
7121 else
|
adam@1459
|
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adam@1459
|
7123 for as_dir in $PATH
|
adam@1459
|
7124 do
|
adam@1459
|
7125 IFS=$as_save_IFS
|
adam@1459
|
7126 test -z "$as_dir" && as_dir=.
|
adam@1459
|
7127 for ac_exec_ext in '' $ac_executable_extensions; do
|
adam@1459
|
7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adam@1459
|
7129 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
adam@1459
|
7130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adam@1459
|
7131 break 2
|
adam@1459
|
7132 fi
|
adam@1459
|
7133 done
|
adam@1459
|
7134 done
|
adam@1459
|
7135 IFS=$as_save_IFS
|
adam@1459
|
7136
|
adam@1459
|
7137 fi
|
adam@1459
|
7138 fi
|
adam@1459
|
7139 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
adam@1459
|
7140 if test -n "$ac_ct_MANIFEST_TOOL"; then
|
adam@1459
|
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
adam@1459
|
7142 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
adam@1459
|
7143 else
|
adam@1459
|
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adam@1459
|
7145 $as_echo "no" >&6; }
|
adam@1459
|
7146 fi
|
adam@1459
|
7147
|
adam@1459
|
7148 if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
adam@1459
|
7149 MANIFEST_TOOL=":"
|
adam@1459
|
7150 else
|
adam@1459
|
7151 case $cross_compiling:$ac_tool_warned in
|
adam@1459
|
7152 yes:)
|
adam@1459
|
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
adam@1459
|
7154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
adam@1459
|
7155 ac_tool_warned=yes ;;
|
adam@1459
|
7156 esac
|
adam@1459
|
7157 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
adam@1459
|
7158 fi
|
adam@1459
|
7159 else
|
adam@1459
|
7160 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
adam@1459
|
7161 fi
|
adam@1459
|
7162
|
adam@1459
|
7163 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
adam@1459
|
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
adam@1459
|
7165 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
adam@1459
|
7166 if ${lt_cv_path_mainfest_tool+:} false; then :
|
adam@1459
|
7167 $as_echo_n "(cached) " >&6
|
adam@1459
|
7168 else
|
adam@1459
|
7169 lt_cv_path_mainfest_tool=no
|
adam@1459
|
7170 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
adam@1459
|
7171 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
adam@1459
|
7172 cat conftest.err >&5
|
adam@1459
|
7173 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
adam@1459
|
7174 lt_cv_path_mainfest_tool=yes
|
adam@1459
|
7175 fi
|
adam@1459
|
7176 rm -f conftest*
|
adam@1459
|
7177 fi
|
adam@1459
|
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
adam@1459
|
7179 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
adam@1459
|
7180 if test "x$lt_cv_path_mainfest_tool" != xyes; then
|
adam@1459
|
7181 MANIFEST_TOOL=:
|
adam@1459
|
7182 fi
|
adam@1459
|
7183
|
adam@1459
|
7184
|
adam@1459
|
7185
|
adam@1459
|
7186
|
adam@1459
|
7187
|
adamc@1132
|
7188
|
adamc@1132
|
7189 case $host_os in
|
adamc@1132
|
7190 rhapsody* | darwin*)
|
adamc@1132
|
7191 if test -n "$ac_tool_prefix"; then
|
adamc@1132
|
7192 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
|
adamc@1132
|
7193 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
|
adamc@1132
|
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
7195 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
7196 if ${ac_cv_prog_DSYMUTIL+:} false; then :
|
adamc@1132
|
7197 $as_echo_n "(cached) " >&6
|
adamc@1132
|
7198 else
|
adamc@1132
|
7199 if test -n "$DSYMUTIL"; then
|
adamc@1132
|
7200 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
|
adamc@1132
|
7201 else
|
adamc@1132
|
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
7203 for as_dir in $PATH
|
adamc@1132
|
7204 do
|
adamc@1132
|
7205 IFS=$as_save_IFS
|
adamc@1132
|
7206 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
7207 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
7209 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
|
adamc@1132
|
7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
7211 break 2
|
adamc@1132
|
7212 fi
|
adamc@1132
|
7213 done
|
adamc@1132
|
7214 done
|
adamc@1132
|
7215 IFS=$as_save_IFS
|
adamc@1132
|
7216
|
adamc@1132
|
7217 fi
|
adamc@1132
|
7218 fi
|
adamc@1132
|
7219 DSYMUTIL=$ac_cv_prog_DSYMUTIL
|
adamc@1132
|
7220 if test -n "$DSYMUTIL"; then
|
adamc@1132
|
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
|
adamc@1132
|
7222 $as_echo "$DSYMUTIL" >&6; }
|
adamc@1132
|
7223 else
|
adamc@1132
|
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
7225 $as_echo "no" >&6; }
|
adamc@1132
|
7226 fi
|
adamc@1132
|
7227
|
adamc@1132
|
7228
|
adamc@1132
|
7229 fi
|
adamc@1132
|
7230 if test -z "$ac_cv_prog_DSYMUTIL"; then
|
adamc@1132
|
7231 ac_ct_DSYMUTIL=$DSYMUTIL
|
adamc@1132
|
7232 # Extract the first word of "dsymutil", so it can be a program name with args.
|
adamc@1132
|
7233 set dummy dsymutil; ac_word=$2
|
adamc@1132
|
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
7235 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
7236 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
|
adamc@1132
|
7237 $as_echo_n "(cached) " >&6
|
adamc@1132
|
7238 else
|
adamc@1132
|
7239 if test -n "$ac_ct_DSYMUTIL"; then
|
adamc@1132
|
7240 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
|
adamc@1132
|
7241 else
|
adamc@1132
|
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
7243 for as_dir in $PATH
|
adamc@1132
|
7244 do
|
adamc@1132
|
7245 IFS=$as_save_IFS
|
adamc@1132
|
7246 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
7247 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
7248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
7249 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
|
adamc@1132
|
7250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
7251 break 2
|
adamc@1132
|
7252 fi
|
adamc@1132
|
7253 done
|
adamc@1132
|
7254 done
|
adamc@1132
|
7255 IFS=$as_save_IFS
|
adamc@1132
|
7256
|
adamc@1132
|
7257 fi
|
adamc@1132
|
7258 fi
|
adamc@1132
|
7259 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
|
adamc@1132
|
7260 if test -n "$ac_ct_DSYMUTIL"; then
|
adamc@1132
|
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
|
adamc@1132
|
7262 $as_echo "$ac_ct_DSYMUTIL" >&6; }
|
adamc@1132
|
7263 else
|
adamc@1132
|
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
7265 $as_echo "no" >&6; }
|
adamc@1132
|
7266 fi
|
adamc@1132
|
7267
|
adamc@1132
|
7268 if test "x$ac_ct_DSYMUTIL" = x; then
|
adamc@1132
|
7269 DSYMUTIL=":"
|
adamc@1132
|
7270 else
|
adamc@1132
|
7271 case $cross_compiling:$ac_tool_warned in
|
adamc@1132
|
7272 yes:)
|
adamc@1132
|
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
adamc@1132
|
7274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
adamc@1132
|
7275 ac_tool_warned=yes ;;
|
adamc@1132
|
7276 esac
|
adamc@1132
|
7277 DSYMUTIL=$ac_ct_DSYMUTIL
|
adamc@1132
|
7278 fi
|
adamc@1132
|
7279 else
|
adamc@1132
|
7280 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
|
adamc@1132
|
7281 fi
|
adamc@1132
|
7282
|
adamc@1132
|
7283 if test -n "$ac_tool_prefix"; then
|
adamc@1132
|
7284 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
|
adamc@1132
|
7285 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
|
adamc@1132
|
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
7287 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
7288 if ${ac_cv_prog_NMEDIT+:} false; then :
|
adamc@1132
|
7289 $as_echo_n "(cached) " >&6
|
adamc@1132
|
7290 else
|
adamc@1132
|
7291 if test -n "$NMEDIT"; then
|
adamc@1132
|
7292 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
|
adamc@1132
|
7293 else
|
adamc@1132
|
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
7295 for as_dir in $PATH
|
adamc@1132
|
7296 do
|
adamc@1132
|
7297 IFS=$as_save_IFS
|
adamc@1132
|
7298 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
7299 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
7301 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
|
adamc@1132
|
7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
7303 break 2
|
adamc@1132
|
7304 fi
|
adamc@1132
|
7305 done
|
adamc@1132
|
7306 done
|
adamc@1132
|
7307 IFS=$as_save_IFS
|
adamc@1132
|
7308
|
adamc@1132
|
7309 fi
|
adamc@1132
|
7310 fi
|
adamc@1132
|
7311 NMEDIT=$ac_cv_prog_NMEDIT
|
adamc@1132
|
7312 if test -n "$NMEDIT"; then
|
adamc@1132
|
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
|
adamc@1132
|
7314 $as_echo "$NMEDIT" >&6; }
|
adamc@1132
|
7315 else
|
adamc@1132
|
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
7317 $as_echo "no" >&6; }
|
adamc@1132
|
7318 fi
|
adamc@1132
|
7319
|
adamc@1132
|
7320
|
adamc@1132
|
7321 fi
|
adamc@1132
|
7322 if test -z "$ac_cv_prog_NMEDIT"; then
|
adamc@1132
|
7323 ac_ct_NMEDIT=$NMEDIT
|
adamc@1132
|
7324 # Extract the first word of "nmedit", so it can be a program name with args.
|
adamc@1132
|
7325 set dummy nmedit; ac_word=$2
|
adamc@1132
|
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
7327 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
7328 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
|
adamc@1132
|
7329 $as_echo_n "(cached) " >&6
|
adamc@1132
|
7330 else
|
adamc@1132
|
7331 if test -n "$ac_ct_NMEDIT"; then
|
adamc@1132
|
7332 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
|
adamc@1132
|
7333 else
|
adamc@1132
|
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
7335 for as_dir in $PATH
|
adamc@1132
|
7336 do
|
adamc@1132
|
7337 IFS=$as_save_IFS
|
adamc@1132
|
7338 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
7339 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
7341 ac_cv_prog_ac_ct_NMEDIT="nmedit"
|
adamc@1132
|
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
7343 break 2
|
adamc@1132
|
7344 fi
|
adamc@1132
|
7345 done
|
adamc@1132
|
7346 done
|
adamc@1132
|
7347 IFS=$as_save_IFS
|
adamc@1132
|
7348
|
adamc@1132
|
7349 fi
|
adamc@1132
|
7350 fi
|
adamc@1132
|
7351 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
|
adamc@1132
|
7352 if test -n "$ac_ct_NMEDIT"; then
|
adamc@1132
|
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
|
adamc@1132
|
7354 $as_echo "$ac_ct_NMEDIT" >&6; }
|
adamc@1132
|
7355 else
|
adamc@1132
|
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
7357 $as_echo "no" >&6; }
|
adamc@1132
|
7358 fi
|
adamc@1132
|
7359
|
adamc@1132
|
7360 if test "x$ac_ct_NMEDIT" = x; then
|
adamc@1132
|
7361 NMEDIT=":"
|
adamc@1132
|
7362 else
|
adamc@1132
|
7363 case $cross_compiling:$ac_tool_warned in
|
adamc@1132
|
7364 yes:)
|
adamc@1132
|
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
adamc@1132
|
7366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
adamc@1132
|
7367 ac_tool_warned=yes ;;
|
adamc@1132
|
7368 esac
|
adamc@1132
|
7369 NMEDIT=$ac_ct_NMEDIT
|
adamc@1132
|
7370 fi
|
adamc@1132
|
7371 else
|
adamc@1132
|
7372 NMEDIT="$ac_cv_prog_NMEDIT"
|
adamc@1132
|
7373 fi
|
adamc@1132
|
7374
|
adamc@1132
|
7375 if test -n "$ac_tool_prefix"; then
|
adamc@1132
|
7376 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
|
adamc@1132
|
7377 set dummy ${ac_tool_prefix}lipo; ac_word=$2
|
adamc@1132
|
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
7379 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
7380 if ${ac_cv_prog_LIPO+:} false; then :
|
adamc@1132
|
7381 $as_echo_n "(cached) " >&6
|
adamc@1132
|
7382 else
|
adamc@1132
|
7383 if test -n "$LIPO"; then
|
adamc@1132
|
7384 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
|
adamc@1132
|
7385 else
|
adamc@1132
|
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
7387 for as_dir in $PATH
|
adamc@1132
|
7388 do
|
adamc@1132
|
7389 IFS=$as_save_IFS
|
adamc@1132
|
7390 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
7391 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
7393 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
|
adamc@1132
|
7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
7395 break 2
|
adamc@1132
|
7396 fi
|
adamc@1132
|
7397 done
|
adamc@1132
|
7398 done
|
adamc@1132
|
7399 IFS=$as_save_IFS
|
adamc@1132
|
7400
|
adamc@1132
|
7401 fi
|
adamc@1132
|
7402 fi
|
adamc@1132
|
7403 LIPO=$ac_cv_prog_LIPO
|
adamc@1132
|
7404 if test -n "$LIPO"; then
|
adamc@1132
|
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
|
adamc@1132
|
7406 $as_echo "$LIPO" >&6; }
|
adamc@1132
|
7407 else
|
adamc@1132
|
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
7409 $as_echo "no" >&6; }
|
adamc@1132
|
7410 fi
|
adamc@1132
|
7411
|
adamc@1132
|
7412
|
adamc@1132
|
7413 fi
|
adamc@1132
|
7414 if test -z "$ac_cv_prog_LIPO"; then
|
adamc@1132
|
7415 ac_ct_LIPO=$LIPO
|
adamc@1132
|
7416 # Extract the first word of "lipo", so it can be a program name with args.
|
adamc@1132
|
7417 set dummy lipo; ac_word=$2
|
adamc@1132
|
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
7419 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
7420 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
|
adamc@1132
|
7421 $as_echo_n "(cached) " >&6
|
adamc@1132
|
7422 else
|
adamc@1132
|
7423 if test -n "$ac_ct_LIPO"; then
|
adamc@1132
|
7424 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
|
adamc@1132
|
7425 else
|
adamc@1132
|
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
7427 for as_dir in $PATH
|
adamc@1132
|
7428 do
|
adamc@1132
|
7429 IFS=$as_save_IFS
|
adamc@1132
|
7430 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
7431 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
7433 ac_cv_prog_ac_ct_LIPO="lipo"
|
adamc@1132
|
7434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
7435 break 2
|
adamc@1132
|
7436 fi
|
adamc@1132
|
7437 done
|
adamc@1132
|
7438 done
|
adamc@1132
|
7439 IFS=$as_save_IFS
|
adamc@1132
|
7440
|
adamc@1132
|
7441 fi
|
adamc@1132
|
7442 fi
|
adamc@1132
|
7443 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
|
adamc@1132
|
7444 if test -n "$ac_ct_LIPO"; then
|
adamc@1132
|
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
|
adamc@1132
|
7446 $as_echo "$ac_ct_LIPO" >&6; }
|
adamc@1132
|
7447 else
|
adamc@1132
|
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
7449 $as_echo "no" >&6; }
|
adamc@1132
|
7450 fi
|
adamc@1132
|
7451
|
adamc@1132
|
7452 if test "x$ac_ct_LIPO" = x; then
|
adamc@1132
|
7453 LIPO=":"
|
adamc@1132
|
7454 else
|
adamc@1132
|
7455 case $cross_compiling:$ac_tool_warned in
|
adamc@1132
|
7456 yes:)
|
adamc@1132
|
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
adamc@1132
|
7458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
adamc@1132
|
7459 ac_tool_warned=yes ;;
|
adamc@1132
|
7460 esac
|
adamc@1132
|
7461 LIPO=$ac_ct_LIPO
|
adamc@1132
|
7462 fi
|
adamc@1132
|
7463 else
|
adamc@1132
|
7464 LIPO="$ac_cv_prog_LIPO"
|
adamc@1132
|
7465 fi
|
adamc@1132
|
7466
|
adamc@1132
|
7467 if test -n "$ac_tool_prefix"; then
|
adamc@1132
|
7468 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
|
adamc@1132
|
7469 set dummy ${ac_tool_prefix}otool; ac_word=$2
|
adamc@1132
|
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
7471 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
7472 if ${ac_cv_prog_OTOOL+:} false; then :
|
adamc@1132
|
7473 $as_echo_n "(cached) " >&6
|
adamc@1132
|
7474 else
|
adamc@1132
|
7475 if test -n "$OTOOL"; then
|
adamc@1132
|
7476 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
|
adamc@1132
|
7477 else
|
adamc@1132
|
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
7479 for as_dir in $PATH
|
adamc@1132
|
7480 do
|
adamc@1132
|
7481 IFS=$as_save_IFS
|
adamc@1132
|
7482 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
7483 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
7485 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
|
adamc@1132
|
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
7487 break 2
|
adamc@1132
|
7488 fi
|
adamc@1132
|
7489 done
|
adamc@1132
|
7490 done
|
adamc@1132
|
7491 IFS=$as_save_IFS
|
adamc@1132
|
7492
|
adamc@1132
|
7493 fi
|
adamc@1132
|
7494 fi
|
adamc@1132
|
7495 OTOOL=$ac_cv_prog_OTOOL
|
adamc@1132
|
7496 if test -n "$OTOOL"; then
|
adamc@1132
|
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
|
adamc@1132
|
7498 $as_echo "$OTOOL" >&6; }
|
adamc@1132
|
7499 else
|
adamc@1132
|
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
7501 $as_echo "no" >&6; }
|
adamc@1132
|
7502 fi
|
adamc@1132
|
7503
|
adamc@1132
|
7504
|
adamc@1132
|
7505 fi
|
adamc@1132
|
7506 if test -z "$ac_cv_prog_OTOOL"; then
|
adamc@1132
|
7507 ac_ct_OTOOL=$OTOOL
|
adamc@1132
|
7508 # Extract the first word of "otool", so it can be a program name with args.
|
adamc@1132
|
7509 set dummy otool; ac_word=$2
|
adamc@1132
|
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
7511 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
7512 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
|
adamc@1132
|
7513 $as_echo_n "(cached) " >&6
|
adamc@1132
|
7514 else
|
adamc@1132
|
7515 if test -n "$ac_ct_OTOOL"; then
|
adamc@1132
|
7516 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
|
adamc@1132
|
7517 else
|
adamc@1132
|
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
7519 for as_dir in $PATH
|
adamc@1132
|
7520 do
|
adamc@1132
|
7521 IFS=$as_save_IFS
|
adamc@1132
|
7522 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
7523 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
7524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
7525 ac_cv_prog_ac_ct_OTOOL="otool"
|
adamc@1132
|
7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
7527 break 2
|
adamc@1132
|
7528 fi
|
adamc@1132
|
7529 done
|
adamc@1132
|
7530 done
|
adamc@1132
|
7531 IFS=$as_save_IFS
|
adamc@1132
|
7532
|
adamc@1132
|
7533 fi
|
adamc@1132
|
7534 fi
|
adamc@1132
|
7535 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
|
adamc@1132
|
7536 if test -n "$ac_ct_OTOOL"; then
|
adamc@1132
|
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
|
adamc@1132
|
7538 $as_echo "$ac_ct_OTOOL" >&6; }
|
adamc@1132
|
7539 else
|
adamc@1132
|
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
7541 $as_echo "no" >&6; }
|
adamc@1132
|
7542 fi
|
adamc@1132
|
7543
|
adamc@1132
|
7544 if test "x$ac_ct_OTOOL" = x; then
|
adamc@1132
|
7545 OTOOL=":"
|
adamc@1132
|
7546 else
|
adamc@1132
|
7547 case $cross_compiling:$ac_tool_warned in
|
adamc@1132
|
7548 yes:)
|
adamc@1132
|
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
adamc@1132
|
7550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
adamc@1132
|
7551 ac_tool_warned=yes ;;
|
adamc@1132
|
7552 esac
|
adamc@1132
|
7553 OTOOL=$ac_ct_OTOOL
|
adamc@1132
|
7554 fi
|
adamc@1132
|
7555 else
|
adamc@1132
|
7556 OTOOL="$ac_cv_prog_OTOOL"
|
adamc@1132
|
7557 fi
|
adamc@1132
|
7558
|
adamc@1132
|
7559 if test -n "$ac_tool_prefix"; then
|
adamc@1132
|
7560 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
|
adamc@1132
|
7561 set dummy ${ac_tool_prefix}otool64; ac_word=$2
|
adamc@1132
|
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
7563 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
7564 if ${ac_cv_prog_OTOOL64+:} false; then :
|
adamc@1132
|
7565 $as_echo_n "(cached) " >&6
|
adamc@1132
|
7566 else
|
adamc@1132
|
7567 if test -n "$OTOOL64"; then
|
adamc@1132
|
7568 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
|
adamc@1132
|
7569 else
|
adamc@1132
|
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
7571 for as_dir in $PATH
|
adamc@1132
|
7572 do
|
adamc@1132
|
7573 IFS=$as_save_IFS
|
adamc@1132
|
7574 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
7575 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
7576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
7577 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
|
adamc@1132
|
7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
7579 break 2
|
adamc@1132
|
7580 fi
|
adamc@1132
|
7581 done
|
adamc@1132
|
7582 done
|
adamc@1132
|
7583 IFS=$as_save_IFS
|
adamc@1132
|
7584
|
adamc@1132
|
7585 fi
|
adamc@1132
|
7586 fi
|
adamc@1132
|
7587 OTOOL64=$ac_cv_prog_OTOOL64
|
adamc@1132
|
7588 if test -n "$OTOOL64"; then
|
adamc@1132
|
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
|
adamc@1132
|
7590 $as_echo "$OTOOL64" >&6; }
|
adamc@1132
|
7591 else
|
adamc@1132
|
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
7593 $as_echo "no" >&6; }
|
adamc@1132
|
7594 fi
|
adamc@1132
|
7595
|
adamc@1132
|
7596
|
adamc@1132
|
7597 fi
|
adamc@1132
|
7598 if test -z "$ac_cv_prog_OTOOL64"; then
|
adamc@1132
|
7599 ac_ct_OTOOL64=$OTOOL64
|
adamc@1132
|
7600 # Extract the first word of "otool64", so it can be a program name with args.
|
adamc@1132
|
7601 set dummy otool64; ac_word=$2
|
adamc@1132
|
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1132
|
7603 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
7604 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
|
adamc@1132
|
7605 $as_echo_n "(cached) " >&6
|
adamc@1132
|
7606 else
|
adamc@1132
|
7607 if test -n "$ac_ct_OTOOL64"; then
|
adamc@1132
|
7608 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
|
adamc@1132
|
7609 else
|
adamc@1132
|
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1132
|
7611 for as_dir in $PATH
|
adamc@1132
|
7612 do
|
adamc@1132
|
7613 IFS=$as_save_IFS
|
adamc@1132
|
7614 test -z "$as_dir" && as_dir=.
|
adamc@1132
|
7615 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1132
|
7616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1132
|
7617 ac_cv_prog_ac_ct_OTOOL64="otool64"
|
adamc@1132
|
7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1132
|
7619 break 2
|
adamc@1132
|
7620 fi
|
adamc@1132
|
7621 done
|
adamc@1132
|
7622 done
|
adamc@1132
|
7623 IFS=$as_save_IFS
|
adamc@1132
|
7624
|
adamc@1132
|
7625 fi
|
adamc@1132
|
7626 fi
|
adamc@1132
|
7627 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
|
adamc@1132
|
7628 if test -n "$ac_ct_OTOOL64"; then
|
adamc@1132
|
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
|
adamc@1132
|
7630 $as_echo "$ac_ct_OTOOL64" >&6; }
|
adamc@1132
|
7631 else
|
adamc@1132
|
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
7633 $as_echo "no" >&6; }
|
adamc@1132
|
7634 fi
|
adamc@1132
|
7635
|
adamc@1132
|
7636 if test "x$ac_ct_OTOOL64" = x; then
|
adamc@1132
|
7637 OTOOL64=":"
|
adamc@1132
|
7638 else
|
adamc@1132
|
7639 case $cross_compiling:$ac_tool_warned in
|
adamc@1132
|
7640 yes:)
|
adamc@1132
|
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
adamc@1132
|
7642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
adamc@1132
|
7643 ac_tool_warned=yes ;;
|
adamc@1132
|
7644 esac
|
adamc@1132
|
7645 OTOOL64=$ac_ct_OTOOL64
|
adamc@1132
|
7646 fi
|
adamc@1132
|
7647 else
|
adamc@1132
|
7648 OTOOL64="$ac_cv_prog_OTOOL64"
|
adamc@1132
|
7649 fi
|
adamc@1132
|
7650
|
adamc@1132
|
7651
|
adamc@1132
|
7652
|
adamc@1132
|
7653
|
adamc@1132
|
7654
|
adamc@1132
|
7655
|
adamc@1132
|
7656
|
adamc@1132
|
7657
|
adamc@1132
|
7658
|
adamc@1132
|
7659
|
adamc@1132
|
7660
|
adamc@1132
|
7661
|
adamc@1132
|
7662
|
adamc@1132
|
7663
|
adamc@1132
|
7664
|
adamc@1132
|
7665
|
adamc@1132
|
7666
|
adamc@1132
|
7667
|
adamc@1132
|
7668
|
adamc@1132
|
7669
|
adamc@1132
|
7670
|
adamc@1132
|
7671
|
adamc@1132
|
7672
|
adamc@1132
|
7673
|
adamc@1132
|
7674
|
adamc@1132
|
7675
|
adamc@1132
|
7676
|
adamc@1132
|
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
|
adamc@1132
|
7678 $as_echo_n "checking for -single_module linker flag... " >&6; }
|
adam@1459
|
7679 if ${lt_cv_apple_cc_single_mod+:} false; then :
|
adamc@1132
|
7680 $as_echo_n "(cached) " >&6
|
adamc@1132
|
7681 else
|
adamc@1132
|
7682 lt_cv_apple_cc_single_mod=no
|
adamc@1132
|
7683 if test -z "${LT_MULTI_MODULE}"; then
|
adamc@1132
|
7684 # By default we will add the -single_module flag. You can override
|
adamc@1132
|
7685 # by either setting the environment variable LT_MULTI_MODULE
|
adamc@1132
|
7686 # non-empty at configure time, or by adding -multi_module to the
|
adamc@1132
|
7687 # link flags.
|
adamc@1132
|
7688 rm -rf libconftest.dylib*
|
adamc@1132
|
7689 echo "int foo(void){return 1;}" > conftest.c
|
adamc@1132
|
7690 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
adamc@1132
|
7691 -dynamiclib -Wl,-single_module conftest.c" >&5
|
adamc@1132
|
7692 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
adamc@1132
|
7693 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
adamc@1132
|
7694 _lt_result=$?
|
adamc@1132
|
7695 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
|
adamc@1132
|
7696 lt_cv_apple_cc_single_mod=yes
|
adamc@1132
|
7697 else
|
adamc@1132
|
7698 cat conftest.err >&5
|
adamc@1132
|
7699 fi
|
adamc@1132
|
7700 rm -rf libconftest.dylib*
|
adamc@1132
|
7701 rm -f conftest.*
|
adamc@1132
|
7702 fi
|
adamc@1132
|
7703 fi
|
adamc@1132
|
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
|
adamc@1132
|
7705 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
|
adamc@1132
|
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
|
adamc@1132
|
7707 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
|
adam@1459
|
7708 if ${lt_cv_ld_exported_symbols_list+:} false; then :
|
adamc@1132
|
7709 $as_echo_n "(cached) " >&6
|
adamc@1132
|
7710 else
|
adamc@1132
|
7711 lt_cv_ld_exported_symbols_list=no
|
adamc@1132
|
7712 save_LDFLAGS=$LDFLAGS
|
adamc@1132
|
7713 echo "_main" > conftest.sym
|
adamc@1132
|
7714 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
adamc@1132
|
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1132
|
7716 /* end confdefs.h. */
|
adamc@1132
|
7717
|
adamc@1132
|
7718 int
|
adamc@1132
|
7719 main ()
|
adamc@1132
|
7720 {
|
adamc@1132
|
7721
|
adamc@1132
|
7722 ;
|
adamc@1132
|
7723 return 0;
|
adamc@1132
|
7724 }
|
adamc@1132
|
7725 _ACEOF
|
adamc@1132
|
7726 if ac_fn_c_try_link "$LINENO"; then :
|
adamc@1132
|
7727 lt_cv_ld_exported_symbols_list=yes
|
adamc@1132
|
7728 else
|
adamc@1132
|
7729 lt_cv_ld_exported_symbols_list=no
|
adamc@1132
|
7730 fi
|
adamc@1132
|
7731 rm -f core conftest.err conftest.$ac_objext \
|
adamc@1132
|
7732 conftest$ac_exeext conftest.$ac_ext
|
adamc@1132
|
7733 LDFLAGS="$save_LDFLAGS"
|
adamc@1132
|
7734
|
adamc@1132
|
7735 fi
|
adamc@1132
|
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
|
adamc@1132
|
7737 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
|
adam@1459
|
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
|
adam@1459
|
7739 $as_echo_n "checking for -force_load linker flag... " >&6; }
|
adam@1459
|
7740 if ${lt_cv_ld_force_load+:} false; then :
|
adam@1459
|
7741 $as_echo_n "(cached) " >&6
|
adam@1459
|
7742 else
|
adam@1459
|
7743 lt_cv_ld_force_load=no
|
adam@1459
|
7744 cat > conftest.c << _LT_EOF
|
adam@1459
|
7745 int forced_loaded() { return 2;}
|
adam@1459
|
7746 _LT_EOF
|
adam@1459
|
7747 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
|
adam@1459
|
7748 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
adam@1459
|
7749 echo "$AR cru libconftest.a conftest.o" >&5
|
adam@1459
|
7750 $AR cru libconftest.a conftest.o 2>&5
|
adam@1459
|
7751 echo "$RANLIB libconftest.a" >&5
|
adam@1459
|
7752 $RANLIB libconftest.a 2>&5
|
adam@1459
|
7753 cat > conftest.c << _LT_EOF
|
adam@1459
|
7754 int main() { return 0;}
|
adam@1459
|
7755 _LT_EOF
|
adam@1459
|
7756 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
|
adam@1459
|
7757 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
|
adam@1459
|
7758 _lt_result=$?
|
adam@1459
|
7759 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
|
adam@1459
|
7760 lt_cv_ld_force_load=yes
|
adam@1459
|
7761 else
|
adam@1459
|
7762 cat conftest.err >&5
|
adam@1459
|
7763 fi
|
adam@1459
|
7764 rm -f conftest.err libconftest.a conftest conftest.c
|
adam@1459
|
7765 rm -rf conftest.dSYM
|
adam@1459
|
7766
|
adam@1459
|
7767 fi
|
adam@1459
|
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
|
adam@1459
|
7769 $as_echo "$lt_cv_ld_force_load" >&6; }
|
adamc@1132
|
7770 case $host_os in
|
adamc@1132
|
7771 rhapsody* | darwin1.[012])
|
adamc@1132
|
7772 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
|
adamc@1132
|
7773 darwin1.*)
|
adamc@1132
|
7774 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
adamc@1132
|
7775 darwin*) # darwin 5.x on
|
adamc@1132
|
7776 # if running on 10.5 or later, the deployment target defaults
|
adamc@1132
|
7777 # to the OS version, if on x86, and 10.4, the deployment
|
adamc@1132
|
7778 # target defaults to 10.4. Don't you love it?
|
adamc@1132
|
7779 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
adamc@1132
|
7780 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
|
adamc@1132
|
7781 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
adamc@1132
|
7782 10.[012]*)
|
adamc@1132
|
7783 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
adamc@1132
|
7784 10.*)
|
adamc@1132
|
7785 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
adamc@1132
|
7786 esac
|
adamc@1132
|
7787 ;;
|
adamc@1132
|
7788 esac
|
adamc@1132
|
7789 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
|
adamc@1132
|
7790 _lt_dar_single_mod='$single_module'
|
adamc@1132
|
7791 fi
|
adamc@1132
|
7792 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
|
adamc@1132
|
7793 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
|
adamc@1132
|
7794 else
|
adamc@1132
|
7795 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
adamc@1132
|
7796 fi
|
adam@1459
|
7797 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
|
adamc@1132
|
7798 _lt_dsymutil='~$DSYMUTIL $lib || :'
|
adamc@1132
|
7799 else
|
adamc@1132
|
7800 _lt_dsymutil=
|
adamc@1132
|
7801 fi
|
adamc@1132
|
7802 ;;
|
adamc@1132
|
7803 esac
|
adamc@1132
|
7804
|
adamc@1132
|
7805 for ac_header in dlfcn.h
|
adamc@1132
|
7806 do :
|
adamc@1132
|
7807 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
|
adamc@1132
|
7808 "
|
adam@1459
|
7809 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
|
adamc@1132
|
7810 cat >>confdefs.h <<_ACEOF
|
adamc@1132
|
7811 #define HAVE_DLFCN_H 1
|
adamc@1132
|
7812 _ACEOF
|
adamc@1132
|
7813
|
adamc@1132
|
7814 fi
|
adamc@1132
|
7815
|
adamc@1132
|
7816 done
|
adamc@1132
|
7817
|
adamc@1132
|
7818
|
adamc@1132
|
7819
|
adam@1459
|
7820
|
adam@1459
|
7821
|
adamc@1132
|
7822 # Set options
|
adamc@1132
|
7823
|
adamc@1132
|
7824
|
adamc@1132
|
7825
|
adamc@1132
|
7826 enable_dlopen=no
|
adamc@1132
|
7827
|
adamc@1132
|
7828
|
adamc@1132
|
7829 enable_win32_dll=no
|
adamc@1132
|
7830
|
adamc@1132
|
7831
|
adamc@1132
|
7832 # Check whether --enable-shared was given.
|
adamc@1132
|
7833 if test "${enable_shared+set}" = set; then :
|
adamc@1132
|
7834 enableval=$enable_shared; p=${PACKAGE-default}
|
adamc@1132
|
7835 case $enableval in
|
adamc@1132
|
7836 yes) enable_shared=yes ;;
|
adamc@1132
|
7837 no) enable_shared=no ;;
|
adamc@1132
|
7838 *)
|
adamc@1132
|
7839 enable_shared=no
|
adamc@1132
|
7840 # Look at the argument we got. We use all the common list separators.
|
adamc@1132
|
7841 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
adamc@1132
|
7842 for pkg in $enableval; do
|
adamc@1132
|
7843 IFS="$lt_save_ifs"
|
adamc@1132
|
7844 if test "X$pkg" = "X$p"; then
|
adamc@1132
|
7845 enable_shared=yes
|
adamc@1132
|
7846 fi
|
adamc@1132
|
7847 done
|
adamc@1132
|
7848 IFS="$lt_save_ifs"
|
adamc@1132
|
7849 ;;
|
adamc@1132
|
7850 esac
|
adamc@1132
|
7851 else
|
adamc@1132
|
7852 enable_shared=yes
|
adamc@1132
|
7853 fi
|
adamc@1132
|
7854
|
adamc@1132
|
7855
|
adamc@1132
|
7856
|
adamc@1132
|
7857
|
adamc@1132
|
7858
|
adamc@1132
|
7859
|
adamc@1132
|
7860
|
adamc@1132
|
7861
|
adamc@1132
|
7862
|
adamc@1132
|
7863 # Check whether --enable-static was given.
|
adamc@1132
|
7864 if test "${enable_static+set}" = set; then :
|
adamc@1132
|
7865 enableval=$enable_static; p=${PACKAGE-default}
|
adamc@1132
|
7866 case $enableval in
|
adamc@1132
|
7867 yes) enable_static=yes ;;
|
adamc@1132
|
7868 no) enable_static=no ;;
|
adamc@1132
|
7869 *)
|
adamc@1132
|
7870 enable_static=no
|
adamc@1132
|
7871 # Look at the argument we got. We use all the common list separators.
|
adamc@1132
|
7872 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
adamc@1132
|
7873 for pkg in $enableval; do
|
adamc@1132
|
7874 IFS="$lt_save_ifs"
|
adamc@1132
|
7875 if test "X$pkg" = "X$p"; then
|
adamc@1132
|
7876 enable_static=yes
|
adamc@1132
|
7877 fi
|
adamc@1132
|
7878 done
|
adamc@1132
|
7879 IFS="$lt_save_ifs"
|
adamc@1132
|
7880 ;;
|
adamc@1132
|
7881 esac
|
adamc@1132
|
7882 else
|
adamc@1132
|
7883 enable_static=yes
|
adamc@1132
|
7884 fi
|
adamc@1132
|
7885
|
adamc@1132
|
7886
|
adamc@1132
|
7887
|
adamc@1132
|
7888
|
adamc@1132
|
7889
|
adamc@1132
|
7890
|
adamc@1132
|
7891
|
adamc@1132
|
7892
|
adamc@1132
|
7893
|
adamc@1132
|
7894
|
adamc@1132
|
7895 # Check whether --with-pic was given.
|
adamc@1132
|
7896 if test "${with_pic+set}" = set; then :
|
adamc@1132
|
7897 withval=$with_pic; pic_mode="$withval"
|
adamc@1132
|
7898 else
|
adamc@1132
|
7899 pic_mode=default
|
adamc@1132
|
7900 fi
|
adamc@1132
|
7901
|
adamc@1132
|
7902
|
adamc@1132
|
7903 test -z "$pic_mode" && pic_mode=default
|
adamc@1132
|
7904
|
adamc@1132
|
7905
|
adamc@1132
|
7906
|
adamc@1132
|
7907
|
adamc@1132
|
7908
|
adamc@1132
|
7909
|
adamc@1132
|
7910
|
adamc@1132
|
7911 # Check whether --enable-fast-install was given.
|
adamc@1132
|
7912 if test "${enable_fast_install+set}" = set; then :
|
adamc@1132
|
7913 enableval=$enable_fast_install; p=${PACKAGE-default}
|
adamc@1132
|
7914 case $enableval in
|
adamc@1132
|
7915 yes) enable_fast_install=yes ;;
|
adamc@1132
|
7916 no) enable_fast_install=no ;;
|
adamc@1132
|
7917 *)
|
adamc@1132
|
7918 enable_fast_install=no
|
adamc@1132
|
7919 # Look at the argument we got. We use all the common list separators.
|
adamc@1132
|
7920 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
adamc@1132
|
7921 for pkg in $enableval; do
|
adamc@1132
|
7922 IFS="$lt_save_ifs"
|
adamc@1132
|
7923 if test "X$pkg" = "X$p"; then
|
adamc@1132
|
7924 enable_fast_install=yes
|
adamc@1132
|
7925 fi
|
adamc@1132
|
7926 done
|
adamc@1132
|
7927 IFS="$lt_save_ifs"
|
adamc@1132
|
7928 ;;
|
adamc@1132
|
7929 esac
|
adamc@1132
|
7930 else
|
adamc@1132
|
7931 enable_fast_install=yes
|
adamc@1132
|
7932 fi
|
adamc@1132
|
7933
|
adamc@1132
|
7934
|
adamc@1132
|
7935
|
adamc@1132
|
7936
|
adamc@1132
|
7937
|
adamc@1132
|
7938
|
adamc@1132
|
7939
|
adamc@1132
|
7940
|
adamc@1132
|
7941
|
adamc@1132
|
7942
|
adamc@1132
|
7943
|
adamc@1132
|
7944 # This can be used to rebuild libtool when needed
|
adamc@1132
|
7945 LIBTOOL_DEPS="$ltmain"
|
adamc@1132
|
7946
|
adamc@1132
|
7947 # Always use our own libtool.
|
adamc@1132
|
7948 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
adamc@1132
|
7949
|
adamc@1132
|
7950
|
adamc@1132
|
7951
|
adamc@1132
|
7952
|
adamc@1132
|
7953
|
adamc@1132
|
7954
|
adamc@1132
|
7955
|
adamc@1132
|
7956
|
adamc@1132
|
7957
|
adamc@1132
|
7958
|
adamc@1132
|
7959
|
adamc@1132
|
7960
|
adamc@1132
|
7961
|
adamc@1132
|
7962
|
adamc@1132
|
7963
|
adamc@1132
|
7964
|
adamc@1132
|
7965
|
adamc@1132
|
7966
|
adamc@1132
|
7967
|
adamc@1132
|
7968
|
adamc@1132
|
7969
|
adamc@1132
|
7970
|
adamc@1132
|
7971
|
adamc@1132
|
7972
|
adamc@1132
|
7973
|
adam@1459
|
7974
|
adamc@1132
|
7975 test -z "$LN_S" && LN_S="ln -s"
|
adamc@1132
|
7976
|
adamc@1132
|
7977
|
adamc@1132
|
7978
|
adamc@1132
|
7979
|
adamc@1132
|
7980
|
adamc@1132
|
7981
|
adamc@1132
|
7982
|
adamc@1132
|
7983
|
adamc@1132
|
7984
|
adamc@1132
|
7985
|
adamc@1132
|
7986
|
adamc@1132
|
7987
|
adamc@1132
|
7988
|
adamc@1132
|
7989
|
adamc@1132
|
7990 if test -n "${ZSH_VERSION+set}" ; then
|
adamc@1132
|
7991 setopt NO_GLOB_SUBST
|
adamc@1132
|
7992 fi
|
adamc@1132
|
7993
|
adamc@1132
|
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
|
adamc@1132
|
7995 $as_echo_n "checking for objdir... " >&6; }
|
adam@1459
|
7996 if ${lt_cv_objdir+:} false; then :
|
adamc@1132
|
7997 $as_echo_n "(cached) " >&6
|
adamc@1132
|
7998 else
|
adamc@1132
|
7999 rm -f .libs 2>/dev/null
|
adamc@1132
|
8000 mkdir .libs 2>/dev/null
|
adamc@1132
|
8001 if test -d .libs; then
|
adamc@1132
|
8002 lt_cv_objdir=.libs
|
adamc@1132
|
8003 else
|
adamc@1132
|
8004 # MS-DOS does not allow filenames that begin with a dot.
|
adamc@1132
|
8005 lt_cv_objdir=_libs
|
adamc@1132
|
8006 fi
|
adamc@1132
|
8007 rmdir .libs 2>/dev/null
|
adamc@1132
|
8008 fi
|
adamc@1132
|
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
|
adamc@1132
|
8010 $as_echo "$lt_cv_objdir" >&6; }
|
adamc@1132
|
8011 objdir=$lt_cv_objdir
|
adamc@1132
|
8012
|
adamc@1132
|
8013
|
adamc@1132
|
8014
|
adamc@1132
|
8015
|
adamc@1132
|
8016
|
adamc@1132
|
8017 cat >>confdefs.h <<_ACEOF
|
adamc@1132
|
8018 #define LT_OBJDIR "$lt_cv_objdir/"
|
adamc@1132
|
8019 _ACEOF
|
adamc@1132
|
8020
|
adamc@1132
|
8021
|
adamc@1132
|
8022
|
adamc@1132
|
8023
|
adamc@1132
|
8024 case $host_os in
|
adamc@1132
|
8025 aix3*)
|
adamc@1132
|
8026 # AIX sometimes has problems with the GCC collect2 program. For some
|
adamc@1132
|
8027 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
adamc@1132
|
8028 # vanish in a puff of smoke.
|
adamc@1132
|
8029 if test "X${COLLECT_NAMES+set}" != Xset; then
|
adamc@1132
|
8030 COLLECT_NAMES=
|
adamc@1132
|
8031 export COLLECT_NAMES
|
adamc@1132
|
8032 fi
|
adamc@1132
|
8033 ;;
|
adamc@1132
|
8034 esac
|
adamc@1132
|
8035
|
adamc@1132
|
8036 # Global variables:
|
adamc@1132
|
8037 ofile=libtool
|
adamc@1132
|
8038 can_build_shared=yes
|
adamc@1132
|
8039
|
adamc@1132
|
8040 # All known linkers require a `.a' archive for static linking (except MSVC,
|
adamc@1132
|
8041 # which needs '.lib').
|
adamc@1132
|
8042 libext=a
|
adamc@1132
|
8043
|
adamc@1132
|
8044 with_gnu_ld="$lt_cv_prog_gnu_ld"
|
adamc@1132
|
8045
|
adamc@1132
|
8046 old_CC="$CC"
|
adamc@1132
|
8047 old_CFLAGS="$CFLAGS"
|
adamc@1132
|
8048
|
adamc@1132
|
8049 # Set sane defaults for various variables
|
adamc@1132
|
8050 test -z "$CC" && CC=cc
|
adamc@1132
|
8051 test -z "$LTCC" && LTCC=$CC
|
adamc@1132
|
8052 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
adamc@1132
|
8053 test -z "$LD" && LD=ld
|
adamc@1132
|
8054 test -z "$ac_objext" && ac_objext=o
|
adamc@1132
|
8055
|
adamc@1132
|
8056 for cc_temp in $compiler""; do
|
adamc@1132
|
8057 case $cc_temp in
|
adamc@1132
|
8058 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
adamc@1132
|
8059 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
adamc@1132
|
8060 \-*) ;;
|
adamc@1132
|
8061 *) break;;
|
adamc@1132
|
8062 esac
|
adamc@1132
|
8063 done
|
adam@1459
|
8064 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
adamc@1132
|
8065
|
adamc@1132
|
8066
|
adamc@1132
|
8067 # Only perform the check for file, if the check method requires it
|
adamc@1132
|
8068 test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
adamc@1132
|
8069 case $deplibs_check_method in
|
adamc@1132
|
8070 file_magic*)
|
adamc@1132
|
8071 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
adamc@1132
|
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
|
adamc@1132
|
8073 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
|
adam@1459
|
8074 if ${lt_cv_path_MAGIC_CMD+:} false; then :
|
adamc@1132
|
8075 $as_echo_n "(cached) " >&6
|
adamc@1132
|
8076 else
|
adamc@1132
|
8077 case $MAGIC_CMD in
|
adamc@1132
|
8078 [\\/*] | ?:[\\/]*)
|
adamc@1132
|
8079 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
adamc@1132
|
8080 ;;
|
adamc@1132
|
8081 *)
|
adamc@1132
|
8082 lt_save_MAGIC_CMD="$MAGIC_CMD"
|
adamc@1132
|
8083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
adamc@1132
|
8084 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
adamc@1132
|
8085 for ac_dir in $ac_dummy; do
|
adamc@1132
|
8086 IFS="$lt_save_ifs"
|
adamc@1132
|
8087 test -z "$ac_dir" && ac_dir=.
|
adamc@1132
|
8088 if test -f $ac_dir/${ac_tool_prefix}file; then
|
adamc@1132
|
8089 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
adamc@1132
|
8090 if test -n "$file_magic_test_file"; then
|
adamc@1132
|
8091 case $deplibs_check_method in
|
adamc@1132
|
8092 "file_magic "*)
|
adamc@1132
|
8093 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
adamc@1132
|
8094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
adamc@1132
|
8095 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
adamc@1132
|
8096 $EGREP "$file_magic_regex" > /dev/null; then
|
adamc@1132
|
8097 :
|
adamc@1132
|
8098 else
|
adamc@1132
|
8099 cat <<_LT_EOF 1>&2
|
adamc@1132
|
8100
|
adamc@1132
|
8101 *** Warning: the command libtool uses to detect shared libraries,
|
adamc@1132
|
8102 *** $file_magic_cmd, produces output that libtool cannot recognize.
|
adamc@1132
|
8103 *** The result is that libtool may fail to recognize shared libraries
|
adamc@1132
|
8104 *** as such. This will affect the creation of libtool libraries that
|
adamc@1132
|
8105 *** depend on shared libraries, but programs linked with such libtool
|
adamc@1132
|
8106 *** libraries will work regardless of this problem. Nevertheless, you
|
adamc@1132
|
8107 *** may want to report the problem to your system manager and/or to
|
adamc@1132
|
8108 *** bug-libtool@gnu.org
|
adamc@1132
|
8109
|
adamc@1132
|
8110 _LT_EOF
|
adamc@1132
|
8111 fi ;;
|
adamc@1132
|
8112 esac
|
adamc@1132
|
8113 fi
|
adamc@1132
|
8114 break
|
adamc@1132
|
8115 fi
|
adamc@1132
|
8116 done
|
adamc@1132
|
8117 IFS="$lt_save_ifs"
|
adamc@1132
|
8118 MAGIC_CMD="$lt_save_MAGIC_CMD"
|
adamc@1132
|
8119 ;;
|
adamc@1132
|
8120 esac
|
adamc@1132
|
8121 fi
|
adamc@1132
|
8122
|
adamc@1132
|
8123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
adamc@1132
|
8124 if test -n "$MAGIC_CMD"; then
|
adamc@1132
|
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
adamc@1132
|
8126 $as_echo "$MAGIC_CMD" >&6; }
|
adamc@1132
|
8127 else
|
adamc@1132
|
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
8129 $as_echo "no" >&6; }
|
adamc@1132
|
8130 fi
|
adamc@1132
|
8131
|
adamc@1132
|
8132
|
adamc@1132
|
8133
|
adamc@1132
|
8134
|
adamc@1132
|
8135
|
adamc@1132
|
8136 if test -z "$lt_cv_path_MAGIC_CMD"; then
|
adamc@1132
|
8137 if test -n "$ac_tool_prefix"; then
|
adamc@1132
|
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
|
adamc@1132
|
8139 $as_echo_n "checking for file... " >&6; }
|
adam@1459
|
8140 if ${lt_cv_path_MAGIC_CMD+:} false; then :
|
adamc@1132
|
8141 $as_echo_n "(cached) " >&6
|
adamc@1132
|
8142 else
|
adamc@1132
|
8143 case $MAGIC_CMD in
|
adamc@1132
|
8144 [\\/*] | ?:[\\/]*)
|
adamc@1132
|
8145 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
adamc@1132
|
8146 ;;
|
adamc@1132
|
8147 *)
|
adamc@1132
|
8148 lt_save_MAGIC_CMD="$MAGIC_CMD"
|
adamc@1132
|
8149 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
adamc@1132
|
8150 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
adamc@1132
|
8151 for ac_dir in $ac_dummy; do
|
adamc@1132
|
8152 IFS="$lt_save_ifs"
|
adamc@1132
|
8153 test -z "$ac_dir" && ac_dir=.
|
adamc@1132
|
8154 if test -f $ac_dir/file; then
|
adamc@1132
|
8155 lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
adamc@1132
|
8156 if test -n "$file_magic_test_file"; then
|
adamc@1132
|
8157 case $deplibs_check_method in
|
adamc@1132
|
8158 "file_magic "*)
|
adamc@1132
|
8159 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
adamc@1132
|
8160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
adamc@1132
|
8161 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
adamc@1132
|
8162 $EGREP "$file_magic_regex" > /dev/null; then
|
adamc@1132
|
8163 :
|
adamc@1132
|
8164 else
|
adamc@1132
|
8165 cat <<_LT_EOF 1>&2
|
adamc@1132
|
8166
|
adamc@1132
|
8167 *** Warning: the command libtool uses to detect shared libraries,
|
adamc@1132
|
8168 *** $file_magic_cmd, produces output that libtool cannot recognize.
|
adamc@1132
|
8169 *** The result is that libtool may fail to recognize shared libraries
|
adamc@1132
|
8170 *** as such. This will affect the creation of libtool libraries that
|
adamc@1132
|
8171 *** depend on shared libraries, but programs linked with such libtool
|
adamc@1132
|
8172 *** libraries will work regardless of this problem. Nevertheless, you
|
adamc@1132
|
8173 *** may want to report the problem to your system manager and/or to
|
adamc@1132
|
8174 *** bug-libtool@gnu.org
|
adamc@1132
|
8175
|
adamc@1132
|
8176 _LT_EOF
|
adamc@1132
|
8177 fi ;;
|
adamc@1132
|
8178 esac
|
adamc@1132
|
8179 fi
|
adamc@1132
|
8180 break
|
adamc@1132
|
8181 fi
|
adamc@1132
|
8182 done
|
adamc@1132
|
8183 IFS="$lt_save_ifs"
|
adamc@1132
|
8184 MAGIC_CMD="$lt_save_MAGIC_CMD"
|
adamc@1132
|
8185 ;;
|
adamc@1132
|
8186 esac
|
adamc@1132
|
8187 fi
|
adamc@1132
|
8188
|
adamc@1132
|
8189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
adamc@1132
|
8190 if test -n "$MAGIC_CMD"; then
|
adamc@1132
|
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
adamc@1132
|
8192 $as_echo "$MAGIC_CMD" >&6; }
|
adamc@1132
|
8193 else
|
adamc@1132
|
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
8195 $as_echo "no" >&6; }
|
adamc@1132
|
8196 fi
|
adamc@1132
|
8197
|
adamc@1132
|
8198
|
adamc@1132
|
8199 else
|
adamc@1132
|
8200 MAGIC_CMD=:
|
adamc@1132
|
8201 fi
|
adamc@1132
|
8202 fi
|
adamc@1132
|
8203
|
adamc@1132
|
8204 fi
|
adamc@1132
|
8205 ;;
|
adamc@1132
|
8206 esac
|
adamc@1132
|
8207
|
adamc@1132
|
8208 # Use C for the default configuration in the libtool script
|
adamc@1132
|
8209
|
adamc@1132
|
8210 lt_save_CC="$CC"
|
adamc@1132
|
8211 ac_ext=c
|
adamc@1132
|
8212 ac_cpp='$CPP $CPPFLAGS'
|
adamc@1132
|
8213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
adamc@1132
|
8214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
adamc@1132
|
8215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
adamc@1132
|
8216
|
adamc@1132
|
8217
|
adamc@1132
|
8218 # Source file extension for C test sources.
|
adamc@1132
|
8219 ac_ext=c
|
adamc@1132
|
8220
|
adamc@1132
|
8221 # Object file extension for compiled C test sources.
|
adamc@1132
|
8222 objext=o
|
adamc@1132
|
8223 objext=$objext
|
adamc@1132
|
8224
|
adamc@1132
|
8225 # Code to be used in simple compile tests
|
adamc@1132
|
8226 lt_simple_compile_test_code="int some_variable = 0;"
|
adamc@1132
|
8227
|
adamc@1132
|
8228 # Code to be used in simple link tests
|
adamc@1132
|
8229 lt_simple_link_test_code='int main(){return(0);}'
|
adamc@1132
|
8230
|
adamc@1132
|
8231
|
adamc@1132
|
8232
|
adamc@1132
|
8233
|
adamc@1132
|
8234
|
adamc@1132
|
8235
|
adamc@1132
|
8236
|
adamc@1132
|
8237 # If no C compiler was specified, use CC.
|
adamc@1132
|
8238 LTCC=${LTCC-"$CC"}
|
adamc@1132
|
8239
|
adamc@1132
|
8240 # If no C compiler flags were specified, use CFLAGS.
|
adamc@1132
|
8241 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
adamc@1132
|
8242
|
adamc@1132
|
8243 # Allow CC to be a program name with arguments.
|
adamc@1132
|
8244 compiler=$CC
|
adamc@1132
|
8245
|
adamc@1132
|
8246 # Save the default compiler, since it gets overwritten when the other
|
adamc@1132
|
8247 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
|
adamc@1132
|
8248 compiler_DEFAULT=$CC
|
adamc@1132
|
8249
|
adamc@1132
|
8250 # save warnings/boilerplate of simple test code
|
adamc@1132
|
8251 ac_outfile=conftest.$ac_objext
|
adamc@1132
|
8252 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
adamc@1132
|
8253 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
adamc@1132
|
8254 _lt_compiler_boilerplate=`cat conftest.err`
|
adamc@1132
|
8255 $RM conftest*
|
adamc@1132
|
8256
|
adamc@1132
|
8257 ac_outfile=conftest.$ac_objext
|
adamc@1132
|
8258 echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
adamc@1132
|
8259 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
adamc@1132
|
8260 _lt_linker_boilerplate=`cat conftest.err`
|
adamc@1132
|
8261 $RM -r conftest*
|
adamc@1132
|
8262
|
adamc@1132
|
8263
|
adamc@1141
|
8264 ## CAVEAT EMPTOR:
|
adamc@1141
|
8265 ## There is no encapsulation within the following macros, do not change
|
adamc@1141
|
8266 ## the running order or otherwise move them around unless you know exactly
|
adamc@1141
|
8267 ## what you are doing...
|
adamc@1132
|
8268 if test -n "$compiler"; then
|
adamc@1132
|
8269
|
adamc@1132
|
8270 lt_prog_compiler_no_builtin_flag=
|
adamc@1132
|
8271
|
adamc@1132
|
8272 if test "$GCC" = yes; then
|
adam@1459
|
8273 case $cc_basename in
|
adam@1459
|
8274 nvcc*)
|
adam@1459
|
8275 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
|
adam@1459
|
8276 *)
|
adam@1459
|
8277 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
|
adam@1459
|
8278 esac
|
adamc@1132
|
8279
|
adamc@1132
|
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
adamc@1132
|
8281 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
|
adam@1459
|
8282 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
|
adamc@1132
|
8283 $as_echo_n "(cached) " >&6
|
adamc@1132
|
8284 else
|
adamc@1132
|
8285 lt_cv_prog_compiler_rtti_exceptions=no
|
adamc@1132
|
8286 ac_outfile=conftest.$ac_objext
|
adamc@1132
|
8287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
adamc@1132
|
8288 lt_compiler_flag="-fno-rtti -fno-exceptions"
|
adamc@1132
|
8289 # Insert the option either (1) after the last *FLAGS variable, or
|
adamc@1132
|
8290 # (2) before a word containing "conftest.", or (3) at the end.
|
adamc@1132
|
8291 # Note that $ac_compile itself does not contain backslashes and begins
|
adamc@1132
|
8292 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
adamc@1132
|
8293 # The option is referenced via a variable to avoid confusing sed.
|
adamc@1132
|
8294 lt_compile=`echo "$ac_compile" | $SED \
|
adamc@1132
|
8295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
adamc@1132
|
8296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
adamc@1132
|
8297 -e 's:$: $lt_compiler_flag:'`
|
adam@1459
|
8298 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
adamc@1132
|
8299 (eval "$lt_compile" 2>conftest.err)
|
adamc@1132
|
8300 ac_status=$?
|
adamc@1132
|
8301 cat conftest.err >&5
|
adam@1459
|
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
adamc@1132
|
8303 if (exit $ac_status) && test -s "$ac_outfile"; then
|
adamc@1132
|
8304 # The compiler can only warn and ignore the option if not recognized
|
adamc@1132
|
8305 # So say no if there are warnings other than the usual output.
|
adam@1459
|
8306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
adamc@1132
|
8307 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
adamc@1132
|
8308 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
adamc@1132
|
8309 lt_cv_prog_compiler_rtti_exceptions=yes
|
adamc@1132
|
8310 fi
|
adamc@1132
|
8311 fi
|
adamc@1132
|
8312 $RM conftest*
|
adamc@1132
|
8313
|
adamc@1132
|
8314 fi
|
adamc@1132
|
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
adamc@1132
|
8316 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
|
adamc@1132
|
8317
|
adamc@1132
|
8318 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
|
adamc@1132
|
8319 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
|
adamc@1132
|
8320 else
|
adamc@1132
|
8321 :
|
adamc@1132
|
8322 fi
|
adamc@1132
|
8323
|
adamc@1132
|
8324 fi
|
adamc@1132
|
8325
|
adamc@1132
|
8326
|
adamc@1132
|
8327
|
adamc@1132
|
8328
|
adamc@1132
|
8329
|
adamc@1132
|
8330
|
adamc@1132
|
8331 lt_prog_compiler_wl=
|
adamc@1132
|
8332 lt_prog_compiler_pic=
|
adamc@1132
|
8333 lt_prog_compiler_static=
|
adamc@1132
|
8334
|
adamc@1132
|
8335
|
adamc@1132
|
8336 if test "$GCC" = yes; then
|
adamc@1132
|
8337 lt_prog_compiler_wl='-Wl,'
|
adamc@1132
|
8338 lt_prog_compiler_static='-static'
|
adamc@1132
|
8339
|
adamc@1132
|
8340 case $host_os in
|
adamc@1132
|
8341 aix*)
|
adamc@1132
|
8342 # All AIX code is PIC.
|
adamc@1132
|
8343 if test "$host_cpu" = ia64; then
|
adamc@1132
|
8344 # AIX 5 now supports IA64 processor
|
adamc@1132
|
8345 lt_prog_compiler_static='-Bstatic'
|
adamc@1132
|
8346 fi
|
adamc@1132
|
8347 ;;
|
adamc@1132
|
8348
|
adamc@1132
|
8349 amigaos*)
|
adamc@1132
|
8350 case $host_cpu in
|
adamc@1132
|
8351 powerpc)
|
adamc@1132
|
8352 # see comment about AmigaOS4 .so support
|
adamc@1132
|
8353 lt_prog_compiler_pic='-fPIC'
|
adamc@1132
|
8354 ;;
|
adamc@1132
|
8355 m68k)
|
adamc@1132
|
8356 # FIXME: we need at least 68020 code to build shared libraries, but
|
adamc@1132
|
8357 # adding the `-m68020' flag to GCC prevents building anything better,
|
adamc@1132
|
8358 # like `-m68040'.
|
adamc@1132
|
8359 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
adamc@1132
|
8360 ;;
|
adamc@1132
|
8361 esac
|
adamc@1132
|
8362 ;;
|
adamc@1132
|
8363
|
adamc@1132
|
8364 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
adamc@1132
|
8365 # PIC is the default for these OSes.
|
adamc@1132
|
8366 ;;
|
adamc@1132
|
8367
|
adamc@1132
|
8368 mingw* | cygwin* | pw32* | os2* | cegcc*)
|
adamc@1132
|
8369 # This hack is so that the source file can tell whether it is being
|
adamc@1132
|
8370 # built for inclusion in a dll (and should export symbols for example).
|
adamc@1132
|
8371 # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
adamc@1132
|
8372 # (--disable-auto-import) libraries
|
adamc@1132
|
8373 lt_prog_compiler_pic='-DDLL_EXPORT'
|
adamc@1132
|
8374 ;;
|
adamc@1132
|
8375
|
adamc@1132
|
8376 darwin* | rhapsody*)
|
adamc@1132
|
8377 # PIC is the default on this platform
|
adamc@1132
|
8378 # Common symbols not allowed in MH_DYLIB files
|
adamc@1132
|
8379 lt_prog_compiler_pic='-fno-common'
|
adamc@1132
|
8380 ;;
|
adamc@1132
|
8381
|
adam@1459
|
8382 haiku*)
|
adam@1459
|
8383 # PIC is the default for Haiku.
|
adam@1459
|
8384 # The "-static" flag exists, but is broken.
|
adam@1459
|
8385 lt_prog_compiler_static=
|
adam@1459
|
8386 ;;
|
adam@1459
|
8387
|
adamc@1132
|
8388 hpux*)
|
adamc@1132
|
8389 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
adamc@1132
|
8390 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
adamc@1132
|
8391 # sets the default TLS model and affects inlining.
|
adamc@1132
|
8392 case $host_cpu in
|
adamc@1132
|
8393 hppa*64*)
|
adamc@1132
|
8394 # +Z the default
|
adamc@1132
|
8395 ;;
|
adamc@1132
|
8396 *)
|
adamc@1132
|
8397 lt_prog_compiler_pic='-fPIC'
|
adamc@1132
|
8398 ;;
|
adamc@1132
|
8399 esac
|
adamc@1132
|
8400 ;;
|
adamc@1132
|
8401
|
adamc@1132
|
8402 interix[3-9]*)
|
adamc@1132
|
8403 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
adamc@1132
|
8404 # Instead, we relocate shared libraries at runtime.
|
adamc@1132
|
8405 ;;
|
adamc@1132
|
8406
|
adamc@1132
|
8407 msdosdjgpp*)
|
adamc@1132
|
8408 # Just because we use GCC doesn't mean we suddenly get shared libraries
|
adamc@1132
|
8409 # on systems that don't support them.
|
adamc@1132
|
8410 lt_prog_compiler_can_build_shared=no
|
adamc@1132
|
8411 enable_shared=no
|
adamc@1132
|
8412 ;;
|
adamc@1132
|
8413
|
adamc@1132
|
8414 *nto* | *qnx*)
|
adamc@1132
|
8415 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
adamc@1132
|
8416 # it will coredump.
|
adamc@1132
|
8417 lt_prog_compiler_pic='-fPIC -shared'
|
adamc@1132
|
8418 ;;
|
adamc@1132
|
8419
|
adamc@1132
|
8420 sysv4*MP*)
|
adamc@1132
|
8421 if test -d /usr/nec; then
|
adamc@1132
|
8422 lt_prog_compiler_pic=-Kconform_pic
|
adamc@1132
|
8423 fi
|
adamc@1132
|
8424 ;;
|
adamc@1132
|
8425
|
adamc@1132
|
8426 *)
|
adamc@1132
|
8427 lt_prog_compiler_pic='-fPIC'
|
adamc@1132
|
8428 ;;
|
adamc@1132
|
8429 esac
|
adam@1459
|
8430
|
adam@1459
|
8431 case $cc_basename in
|
adam@1459
|
8432 nvcc*) # Cuda Compiler Driver 2.2
|
adam@1459
|
8433 lt_prog_compiler_wl='-Xlinker '
|
adam@1459
|
8434 lt_prog_compiler_pic='-Xcompiler -fPIC'
|
adam@1459
|
8435 ;;
|
adam@1459
|
8436 esac
|
adamc@1132
|
8437 else
|
adamc@1132
|
8438 # PORTME Check for flag to pass linker flags through the system compiler.
|
adamc@1132
|
8439 case $host_os in
|
adamc@1132
|
8440 aix*)
|
adamc@1132
|
8441 lt_prog_compiler_wl='-Wl,'
|
adamc@1132
|
8442 if test "$host_cpu" = ia64; then
|
adamc@1132
|
8443 # AIX 5 now supports IA64 processor
|
adamc@1132
|
8444 lt_prog_compiler_static='-Bstatic'
|
adamc@1132
|
8445 else
|
adamc@1132
|
8446 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
|
adamc@1132
|
8447 fi
|
adamc@1132
|
8448 ;;
|
adamc@1132
|
8449
|
adamc@1132
|
8450 mingw* | cygwin* | pw32* | os2* | cegcc*)
|
adamc@1132
|
8451 # This hack is so that the source file can tell whether it is being
|
adamc@1132
|
8452 # built for inclusion in a dll (and should export symbols for example).
|
adamc@1132
|
8453 lt_prog_compiler_pic='-DDLL_EXPORT'
|
adamc@1132
|
8454 ;;
|
adamc@1132
|
8455
|
adamc@1132
|
8456 hpux9* | hpux10* | hpux11*)
|
adamc@1132
|
8457 lt_prog_compiler_wl='-Wl,'
|
adamc@1132
|
8458 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
adamc@1132
|
8459 # not for PA HP-UX.
|
adamc@1132
|
8460 case $host_cpu in
|
adamc@1132
|
8461 hppa*64*|ia64*)
|
adamc@1132
|
8462 # +Z the default
|
adamc@1132
|
8463 ;;
|
adamc@1132
|
8464 *)
|
adamc@1132
|
8465 lt_prog_compiler_pic='+Z'
|
adamc@1132
|
8466 ;;
|
adamc@1132
|
8467 esac
|
adamc@1132
|
8468 # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
adamc@1132
|
8469 lt_prog_compiler_static='${wl}-a ${wl}archive'
|
adamc@1132
|
8470 ;;
|
adamc@1132
|
8471
|
adamc@1132
|
8472 irix5* | irix6* | nonstopux*)
|
adamc@1132
|
8473 lt_prog_compiler_wl='-Wl,'
|
adamc@1132
|
8474 # PIC (with -KPIC) is the default.
|
adamc@1132
|
8475 lt_prog_compiler_static='-non_shared'
|
adamc@1132
|
8476 ;;
|
adamc@1132
|
8477
|
adamc@1132
|
8478 linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
adamc@1132
|
8479 case $cc_basename in
|
adamc@1132
|
8480 # old Intel for x86_64 which still supported -KPIC.
|
adamc@1132
|
8481 ecc*)
|
adamc@1132
|
8482 lt_prog_compiler_wl='-Wl,'
|
adamc@1132
|
8483 lt_prog_compiler_pic='-KPIC'
|
adamc@1132
|
8484 lt_prog_compiler_static='-static'
|
adamc@1132
|
8485 ;;
|
adamc@1132
|
8486 # icc used to be incompatible with GCC.
|
adamc@1132
|
8487 # ICC 10 doesn't accept -KPIC any more.
|
adamc@1132
|
8488 icc* | ifort*)
|
adamc@1132
|
8489 lt_prog_compiler_wl='-Wl,'
|
adamc@1132
|
8490 lt_prog_compiler_pic='-fPIC'
|
adamc@1132
|
8491 lt_prog_compiler_static='-static'
|
adamc@1132
|
8492 ;;
|
adamc@1132
|
8493 # Lahey Fortran 8.1.
|
adamc@1132
|
8494 lf95*)
|
adamc@1132
|
8495 lt_prog_compiler_wl='-Wl,'
|
adamc@1132
|
8496 lt_prog_compiler_pic='--shared'
|
adamc@1132
|
8497 lt_prog_compiler_static='--static'
|
adamc@1132
|
8498 ;;
|
adam@1459
|
8499 nagfor*)
|
adam@1459
|
8500 # NAG Fortran compiler
|
adam@1459
|
8501 lt_prog_compiler_wl='-Wl,-Wl,,'
|
adam@1459
|
8502 lt_prog_compiler_pic='-PIC'
|
adam@1459
|
8503 lt_prog_compiler_static='-Bstatic'
|
adam@1459
|
8504 ;;
|
adam@1459
|
8505 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
adamc@1132
|
8506 # Portland Group compilers (*not* the Pentium gcc compiler,
|
adamc@1132
|
8507 # which looks to be a dead project)
|
adamc@1132
|
8508 lt_prog_compiler_wl='-Wl,'
|
adamc@1132
|
8509 lt_prog_compiler_pic='-fpic'
|
adamc@1132
|
8510 lt_prog_compiler_static='-Bstatic'
|
adamc@1132
|
8511 ;;
|
adamc@1132
|
8512 ccc*)
|
adamc@1132
|
8513 lt_prog_compiler_wl='-Wl,'
|
adamc@1132
|
8514 # All Alpha code is PIC.
|
adamc@1132
|
8515 lt_prog_compiler_static='-non_shared'
|
adamc@1132
|
8516 ;;
|
adam@1459
|
8517 xl* | bgxl* | bgf* | mpixl*)
|
adam@1459
|
8518 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
|
adamc@1132
|
8519 lt_prog_compiler_wl='-Wl,'
|
adamc@1132
|
8520 lt_prog_compiler_pic='-qpic'
|
adamc@1132
|
8521 lt_prog_compiler_static='-qstaticlink'
|
adamc@1132
|
8522 ;;
|
adamc@1132
|
8523 *)
|
adamc@1132
|
8524 case `$CC -V 2>&1 | sed 5q` in
|
adam@1459
|
8525 *Sun\ F* | *Sun*Fortran*)
|
adam@1459
|
8526 # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
adam@1459
|
8527 lt_prog_compiler_pic='-KPIC'
|
adam@1459
|
8528 lt_prog_compiler_static='-Bstatic'
|
adam@1459
|
8529 lt_prog_compiler_wl=''
|
adam@1459
|
8530 ;;
|
adamc@1132
|
8531 *Sun\ C*)
|
adamc@1132
|
8532 # Sun C 5.9
|
adamc@1132
|
8533 lt_prog_compiler_pic='-KPIC'
|
adamc@1132
|
8534 lt_prog_compiler_static='-Bstatic'
|
adamc@1132
|
8535 lt_prog_compiler_wl='-Wl,'
|
adamc@1132
|
8536 ;;
|
adamc@1132
|
8537 esac
|
adamc@1132
|
8538 ;;
|
adamc@1132
|
8539 esac
|
adamc@1132
|
8540 ;;
|
adamc@1132
|
8541
|
adamc@1132
|
8542 newsos6)
|
adamc@1132
|
8543 lt_prog_compiler_pic='-KPIC'
|
adamc@1132
|
8544 lt_prog_compiler_static='-Bstatic'
|
adamc@1132
|
8545 ;;
|
adamc@1132
|
8546
|
adamc@1132
|
8547 *nto* | *qnx*)
|
adamc@1132
|
8548 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
adamc@1132
|
8549 # it will coredump.
|
adamc@1132
|
8550 lt_prog_compiler_pic='-fPIC -shared'
|
adamc@1132
|
8551 ;;
|
adamc@1132
|
8552
|
adamc@1132
|
8553 osf3* | osf4* | osf5*)
|
adamc@1132
|
8554 lt_prog_compiler_wl='-Wl,'
|
adamc@1132
|
8555 # All OSF/1 code is PIC.
|
adamc@1132
|
8556 lt_prog_compiler_static='-non_shared'
|
adamc@1132
|
8557 ;;
|
adamc@1132
|
8558
|
adamc@1132
|
8559 rdos*)
|
adamc@1132
|
8560 lt_prog_compiler_static='-non_shared'
|
adamc@1132
|
8561 ;;
|
adamc@1132
|
8562
|
adamc@1132
|
8563 solaris*)
|
adamc@1132
|
8564 lt_prog_compiler_pic='-KPIC'
|
adamc@1132
|
8565 lt_prog_compiler_static='-Bstatic'
|
adamc@1132
|
8566 case $cc_basename in
|
adam@1459
|
8567 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
adamc@1132
|
8568 lt_prog_compiler_wl='-Qoption ld ';;
|
adamc@1132
|
8569 *)
|
adamc@1132
|
8570 lt_prog_compiler_wl='-Wl,';;
|
adamc@1132
|
8571 esac
|
adamc@1132
|
8572 ;;
|
adamc@1132
|
8573
|
adamc@1132
|
8574 sunos4*)
|
adamc@1132
|
8575 lt_prog_compiler_wl='-Qoption ld '
|
adamc@1132
|
8576 lt_prog_compiler_pic='-PIC'
|
adamc@1132
|
8577 lt_prog_compiler_static='-Bstatic'
|
adamc@1132
|
8578 ;;
|
adamc@1132
|
8579
|
adamc@1132
|
8580 sysv4 | sysv4.2uw2* | sysv4.3*)
|
adamc@1132
|
8581 lt_prog_compiler_wl='-Wl,'
|
adamc@1132
|
8582 lt_prog_compiler_pic='-KPIC'
|
adamc@1132
|
8583 lt_prog_compiler_static='-Bstatic'
|
adamc@1132
|
8584 ;;
|
adamc@1132
|
8585
|
adamc@1132
|
8586 sysv4*MP*)
|
adamc@1132
|
8587 if test -d /usr/nec ;then
|
adamc@1132
|
8588 lt_prog_compiler_pic='-Kconform_pic'
|
adamc@1132
|
8589 lt_prog_compiler_static='-Bstatic'
|
adamc@1132
|
8590 fi
|
adamc@1132
|
8591 ;;
|
adamc@1132
|
8592
|
adamc@1132
|
8593 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
adamc@1132
|
8594 lt_prog_compiler_wl='-Wl,'
|
adamc@1132
|
8595 lt_prog_compiler_pic='-KPIC'
|
adamc@1132
|
8596 lt_prog_compiler_static='-Bstatic'
|
adamc@1132
|
8597 ;;
|
adamc@1132
|
8598
|
adamc@1132
|
8599 unicos*)
|
adamc@1132
|
8600 lt_prog_compiler_wl='-Wl,'
|
adamc@1132
|
8601 lt_prog_compiler_can_build_shared=no
|
adamc@1132
|
8602 ;;
|
adamc@1132
|
8603
|
adamc@1132
|
8604 uts4*)
|
adamc@1132
|
8605 lt_prog_compiler_pic='-pic'
|
adamc@1132
|
8606 lt_prog_compiler_static='-Bstatic'
|
adamc@1132
|
8607 ;;
|
adamc@1132
|
8608
|
adamc@1132
|
8609 *)
|
adamc@1132
|
8610 lt_prog_compiler_can_build_shared=no
|
adamc@1132
|
8611 ;;
|
adamc@1132
|
8612 esac
|
adamc@1132
|
8613 fi
|
adamc@1132
|
8614
|
adamc@1132
|
8615 case $host_os in
|
adamc@1132
|
8616 # For platforms which do not support PIC, -DPIC is meaningless:
|
adamc@1132
|
8617 *djgpp*)
|
adamc@1132
|
8618 lt_prog_compiler_pic=
|
adamc@1132
|
8619 ;;
|
adamc@1132
|
8620 *)
|
adamc@1132
|
8621 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
adamc@1132
|
8622 ;;
|
adamc@1132
|
8623 esac
|
adam@1459
|
8624
|
adam@1459
|
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
adam@1459
|
8626 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
adam@1459
|
8627 if ${lt_cv_prog_compiler_pic+:} false; then :
|
adam@1459
|
8628 $as_echo_n "(cached) " >&6
|
adam@1459
|
8629 else
|
adam@1459
|
8630 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
adam@1459
|
8631 fi
|
adam@1459
|
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
adam@1459
|
8633 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
adam@1459
|
8634 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
adamc@1132
|
8635
|
adamc@1132
|
8636 #
|
adamc@1132
|
8637 # Check to make sure the PIC flag actually works.
|
adamc@1132
|
8638 #
|
adamc@1132
|
8639 if test -n "$lt_prog_compiler_pic"; then
|
adamc@1132
|
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
|
adamc@1132
|
8641 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
|
adam@1459
|
8642 if ${lt_cv_prog_compiler_pic_works+:} false; then :
|
adamc@1132
|
8643 $as_echo_n "(cached) " >&6
|
adamc@1132
|
8644 else
|
adamc@1132
|
8645 lt_cv_prog_compiler_pic_works=no
|
adamc@1132
|
8646 ac_outfile=conftest.$ac_objext
|
adamc@1132
|
8647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
adamc@1132
|
8648 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
|
adamc@1132
|
8649 # Insert the option either (1) after the last *FLAGS variable, or
|
adamc@1132
|
8650 # (2) before a word containing "conftest.", or (3) at the end.
|
adamc@1132
|
8651 # Note that $ac_compile itself does not contain backslashes and begins
|
adamc@1132
|
8652 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
adamc@1132
|
8653 # The option is referenced via a variable to avoid confusing sed.
|
adamc@1132
|
8654 lt_compile=`echo "$ac_compile" | $SED \
|
adamc@1132
|
8655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
adamc@1132
|
8656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
adamc@1132
|
8657 -e 's:$: $lt_compiler_flag:'`
|
adam@1459
|
8658 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
adamc@1132
|
8659 (eval "$lt_compile" 2>conftest.err)
|
adamc@1132
|
8660 ac_status=$?
|
adamc@1132
|
8661 cat conftest.err >&5
|
adam@1459
|
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
adamc@1132
|
8663 if (exit $ac_status) && test -s "$ac_outfile"; then
|
adamc@1132
|
8664 # The compiler can only warn and ignore the option if not recognized
|
adamc@1132
|
8665 # So say no if there are warnings other than the usual output.
|
adam@1459
|
8666 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
adamc@1132
|
8667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
adamc@1132
|
8668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
adamc@1132
|
8669 lt_cv_prog_compiler_pic_works=yes
|
adamc@1132
|
8670 fi
|
adamc@1132
|
8671 fi
|
adamc@1132
|
8672 $RM conftest*
|
adamc@1132
|
8673
|
adamc@1132
|
8674 fi
|
adamc@1132
|
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
|
adamc@1132
|
8676 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
|
adamc@1132
|
8677
|
adamc@1132
|
8678 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
|
adamc@1132
|
8679 case $lt_prog_compiler_pic in
|
adamc@1132
|
8680 "" | " "*) ;;
|
adamc@1132
|
8681 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
|
adamc@1132
|
8682 esac
|
adamc@1132
|
8683 else
|
adamc@1132
|
8684 lt_prog_compiler_pic=
|
adamc@1132
|
8685 lt_prog_compiler_can_build_shared=no
|
adamc@1132
|
8686 fi
|
adamc@1132
|
8687
|
adamc@1132
|
8688 fi
|
adamc@1132
|
8689
|
adamc@1132
|
8690
|
adamc@1132
|
8691
|
adamc@1132
|
8692
|
adamc@1132
|
8693
|
adamc@1132
|
8694
|
adam@1459
|
8695
|
adam@1459
|
8696
|
adam@1459
|
8697
|
adam@1459
|
8698
|
adam@1459
|
8699
|
adamc@1132
|
8700 #
|
adamc@1132
|
8701 # Check to make sure the static flag actually works.
|
adamc@1132
|
8702 #
|
adamc@1132
|
8703 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
|
adamc@1132
|
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
adamc@1132
|
8705 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
|
adam@1459
|
8706 if ${lt_cv_prog_compiler_static_works+:} false; then :
|
adamc@1132
|
8707 $as_echo_n "(cached) " >&6
|
adamc@1132
|
8708 else
|
adamc@1132
|
8709 lt_cv_prog_compiler_static_works=no
|
adamc@1132
|
8710 save_LDFLAGS="$LDFLAGS"
|
adamc@1132
|
8711 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
adamc@1132
|
8712 echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
adamc@1132
|
8713 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
adamc@1132
|
8714 # The linker can only warn and ignore the option if not recognized
|
adamc@1132
|
8715 # So say no if there are warnings
|
adamc@1132
|
8716 if test -s conftest.err; then
|
adamc@1132
|
8717 # Append any errors to the config.log.
|
adamc@1132
|
8718 cat conftest.err 1>&5
|
adam@1459
|
8719 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
adamc@1132
|
8720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
adamc@1132
|
8721 if diff conftest.exp conftest.er2 >/dev/null; then
|
adamc@1132
|
8722 lt_cv_prog_compiler_static_works=yes
|
adamc@1132
|
8723 fi
|
adamc@1132
|
8724 else
|
adamc@1132
|
8725 lt_cv_prog_compiler_static_works=yes
|
adamc@1132
|
8726 fi
|
adamc@1132
|
8727 fi
|
adamc@1132
|
8728 $RM -r conftest*
|
adamc@1132
|
8729 LDFLAGS="$save_LDFLAGS"
|
adamc@1132
|
8730
|
adamc@1132
|
8731 fi
|
adamc@1132
|
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
|
adamc@1132
|
8733 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
|
adamc@1132
|
8734
|
adamc@1132
|
8735 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
|
adamc@1132
|
8736 :
|
adamc@1132
|
8737 else
|
adamc@1132
|
8738 lt_prog_compiler_static=
|
adamc@1132
|
8739 fi
|
adamc@1132
|
8740
|
adamc@1132
|
8741
|
adamc@1132
|
8742
|
adamc@1132
|
8743
|
adamc@1132
|
8744
|
adamc@1132
|
8745
|
adamc@1132
|
8746
|
adamc@1132
|
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
adamc@1132
|
8748 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
adam@1459
|
8749 if ${lt_cv_prog_compiler_c_o+:} false; then :
|
adamc@1132
|
8750 $as_echo_n "(cached) " >&6
|
adamc@1132
|
8751 else
|
adamc@1132
|
8752 lt_cv_prog_compiler_c_o=no
|
adamc@1132
|
8753 $RM -r conftest 2>/dev/null
|
adamc@1132
|
8754 mkdir conftest
|
adamc@1132
|
8755 cd conftest
|
adamc@1132
|
8756 mkdir out
|
adamc@1132
|
8757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
adamc@1132
|
8758
|
adamc@1132
|
8759 lt_compiler_flag="-o out/conftest2.$ac_objext"
|
adamc@1132
|
8760 # Insert the option either (1) after the last *FLAGS variable, or
|
adamc@1132
|
8761 # (2) before a word containing "conftest.", or (3) at the end.
|
adamc@1132
|
8762 # Note that $ac_compile itself does not contain backslashes and begins
|
adamc@1132
|
8763 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
adamc@1132
|
8764 lt_compile=`echo "$ac_compile" | $SED \
|
adamc@1132
|
8765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
adamc@1132
|
8766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
adamc@1132
|
8767 -e 's:$: $lt_compiler_flag:'`
|
adam@1459
|
8768 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
adamc@1132
|
8769 (eval "$lt_compile" 2>out/conftest.err)
|
adamc@1132
|
8770 ac_status=$?
|
adamc@1132
|
8771 cat out/conftest.err >&5
|
adam@1459
|
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
adamc@1132
|
8773 if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
adamc@1132
|
8774 then
|
adamc@1132
|
8775 # The compiler can only warn and ignore the option if not recognized
|
adamc@1132
|
8776 # So say no if there are warnings
|
adam@1459
|
8777 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
adamc@1132
|
8778 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
adamc@1132
|
8779 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
adamc@1132
|
8780 lt_cv_prog_compiler_c_o=yes
|
adamc@1132
|
8781 fi
|
adamc@1132
|
8782 fi
|
adamc@1132
|
8783 chmod u+w . 2>&5
|
adamc@1132
|
8784 $RM conftest*
|
adamc@1132
|
8785 # SGI C++ compiler will create directory out/ii_files/ for
|
adamc@1132
|
8786 # template instantiation
|
adamc@1132
|
8787 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
adamc@1132
|
8788 $RM out/* && rmdir out
|
adamc@1132
|
8789 cd ..
|
adamc@1132
|
8790 $RM -r conftest
|
adamc@1132
|
8791 $RM conftest*
|
adamc@1132
|
8792
|
adamc@1132
|
8793 fi
|
adamc@1132
|
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
adamc@1132
|
8795 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
|
adamc@1132
|
8796
|
adamc@1132
|
8797
|
adamc@1132
|
8798
|
adamc@1132
|
8799
|
adamc@1132
|
8800
|
adamc@1132
|
8801
|
adamc@1132
|
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
adamc@1132
|
8803 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
adam@1459
|
8804 if ${lt_cv_prog_compiler_c_o+:} false; then :
|
adamc@1132
|
8805 $as_echo_n "(cached) " >&6
|
adamc@1132
|
8806 else
|
adamc@1132
|
8807 lt_cv_prog_compiler_c_o=no
|
adamc@1132
|
8808 $RM -r conftest 2>/dev/null
|
adamc@1132
|
8809 mkdir conftest
|
adamc@1132
|
8810 cd conftest
|
adamc@1132
|
8811 mkdir out
|
adamc@1132
|
8812 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
adamc@1132
|
8813
|
adamc@1132
|
8814 lt_compiler_flag="-o out/conftest2.$ac_objext"
|
adamc@1132
|
8815 # Insert the option either (1) after the last *FLAGS variable, or
|
adamc@1132
|
8816 # (2) before a word containing "conftest.", or (3) at the end.
|
adamc@1132
|
8817 # Note that $ac_compile itself does not contain backslashes and begins
|
adamc@1132
|
8818 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
adamc@1132
|
8819 lt_compile=`echo "$ac_compile" | $SED \
|
adamc@1132
|
8820 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
adamc@1132
|
8821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
adamc@1132
|
8822 -e 's:$: $lt_compiler_flag:'`
|
adam@1459
|
8823 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
adamc@1132
|
8824 (eval "$lt_compile" 2>out/conftest.err)
|
adamc@1132
|
8825 ac_status=$?
|
adamc@1132
|
8826 cat out/conftest.err >&5
|
adam@1459
|
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
adamc@1132
|
8828 if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
adamc@1132
|
8829 then
|
adamc@1132
|
8830 # The compiler can only warn and ignore the option if not recognized
|
adamc@1132
|
8831 # So say no if there are warnings
|
adam@1459
|
8832 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
adamc@1132
|
8833 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
adamc@1132
|
8834 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
adamc@1132
|
8835 lt_cv_prog_compiler_c_o=yes
|
adamc@1132
|
8836 fi
|
adamc@1132
|
8837 fi
|
adamc@1132
|
8838 chmod u+w . 2>&5
|
adamc@1132
|
8839 $RM conftest*
|
adamc@1132
|
8840 # SGI C++ compiler will create directory out/ii_files/ for
|
adamc@1132
|
8841 # template instantiation
|
adamc@1132
|
8842 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
adamc@1132
|
8843 $RM out/* && rmdir out
|
adamc@1132
|
8844 cd ..
|
adamc@1132
|
8845 $RM -r conftest
|
adamc@1132
|
8846 $RM conftest*
|
adamc@1132
|
8847
|
adamc@1132
|
8848 fi
|
adamc@1132
|
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
adamc@1132
|
8850 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
|
adamc@1132
|
8851
|
adamc@1132
|
8852
|
adamc@1132
|
8853
|
adamc@1132
|
8854
|
adamc@1132
|
8855 hard_links="nottested"
|
adamc@1132
|
8856 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
|
adamc@1132
|
8857 # do not overwrite the value of need_locks provided by the user
|
adamc@1132
|
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
|
adamc@1132
|
8859 $as_echo_n "checking if we can lock with hard links... " >&6; }
|
adamc@1132
|
8860 hard_links=yes
|
adamc@1132
|
8861 $RM conftest*
|
adamc@1132
|
8862 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
adamc@1132
|
8863 touch conftest.a
|
adamc@1132
|
8864 ln conftest.a conftest.b 2>&5 || hard_links=no
|
adamc@1132
|
8865 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
adamc@1132
|
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
|
adamc@1132
|
8867 $as_echo "$hard_links" >&6; }
|
adamc@1132
|
8868 if test "$hard_links" = no; then
|
adamc@1132
|
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
adamc@1132
|
8870 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
adamc@1132
|
8871 need_locks=warn
|
adamc@1132
|
8872 fi
|
adamc@1132
|
8873 else
|
adamc@1132
|
8874 need_locks=no
|
adamc@1132
|
8875 fi
|
adamc@1132
|
8876
|
adamc@1132
|
8877
|
adamc@1132
|
8878
|
adamc@1132
|
8879
|
adamc@1132
|
8880
|
adamc@1132
|
8881
|
adamc@1132
|
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
adamc@1132
|
8883 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
|
adamc@1132
|
8884
|
adamc@1132
|
8885 runpath_var=
|
adamc@1132
|
8886 allow_undefined_flag=
|
adamc@1132
|
8887 always_export_symbols=no
|
adamc@1132
|
8888 archive_cmds=
|
adamc@1132
|
8889 archive_expsym_cmds=
|
adamc@1132
|
8890 compiler_needs_object=no
|
adamc@1132
|
8891 enable_shared_with_static_runtimes=no
|
adamc@1132
|
8892 export_dynamic_flag_spec=
|
adamc@1132
|
8893 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
adamc@1132
|
8894 hardcode_automatic=no
|
adamc@1132
|
8895 hardcode_direct=no
|
adamc@1132
|
8896 hardcode_direct_absolute=no
|
adamc@1132
|
8897 hardcode_libdir_flag_spec=
|
adamc@1132
|
8898 hardcode_libdir_flag_spec_ld=
|
adamc@1132
|
8899 hardcode_libdir_separator=
|
adamc@1132
|
8900 hardcode_minus_L=no
|
adamc@1132
|
8901 hardcode_shlibpath_var=unsupported
|
adamc@1132
|
8902 inherit_rpath=no
|
adamc@1132
|
8903 link_all_deplibs=unknown
|
adamc@1132
|
8904 module_cmds=
|
adamc@1132
|
8905 module_expsym_cmds=
|
adamc@1132
|
8906 old_archive_from_new_cmds=
|
adamc@1132
|
8907 old_archive_from_expsyms_cmds=
|
adamc@1132
|
8908 thread_safe_flag_spec=
|
adamc@1132
|
8909 whole_archive_flag_spec=
|
adamc@1132
|
8910 # include_expsyms should be a list of space-separated symbols to be *always*
|
adamc@1132
|
8911 # included in the symbol list
|
adamc@1132
|
8912 include_expsyms=
|
adamc@1132
|
8913 # exclude_expsyms can be an extended regexp of symbols to exclude
|
adamc@1132
|
8914 # it will be wrapped by ` (' and `)$', so one must not match beginning or
|
adamc@1132
|
8915 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
adamc@1132
|
8916 # as well as any symbol that contains `d'.
|
adamc@1132
|
8917 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
adamc@1132
|
8918 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
adamc@1132
|
8919 # platforms (ab)use it in PIC code, but their linkers get confused if
|
adamc@1132
|
8920 # the symbol is explicitly referenced. Since portable code cannot
|
adamc@1132
|
8921 # rely on this symbol name, it's probably fine to never include it in
|
adamc@1132
|
8922 # preloaded symbol tables.
|
adamc@1132
|
8923 # Exclude shared library initialization/finalization symbols.
|
adamc@1132
|
8924 extract_expsyms_cmds=
|
adamc@1132
|
8925
|
adamc@1132
|
8926 case $host_os in
|
adamc@1132
|
8927 cygwin* | mingw* | pw32* | cegcc*)
|
adamc@1132
|
8928 # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
adamc@1132
|
8929 # When not using gcc, we currently assume that we are using
|
adamc@1132
|
8930 # Microsoft Visual C++.
|
adamc@1132
|
8931 if test "$GCC" != yes; then
|
adamc@1132
|
8932 with_gnu_ld=no
|
adamc@1132
|
8933 fi
|
adamc@1132
|
8934 ;;
|
adamc@1132
|
8935 interix*)
|
adamc@1132
|
8936 # we just hope/assume this is gcc and not c89 (= MSVC++)
|
adamc@1132
|
8937 with_gnu_ld=yes
|
adamc@1132
|
8938 ;;
|
adamc@1132
|
8939 openbsd*)
|
adamc@1132
|
8940 with_gnu_ld=no
|
adamc@1132
|
8941 ;;
|
adam@1459
|
8942 linux* | k*bsd*-gnu | gnu*)
|
adamc@1132
|
8943 link_all_deplibs=no
|
adamc@1132
|
8944 ;;
|
adamc@1132
|
8945 esac
|
adamc@1132
|
8946
|
adamc@1132
|
8947 ld_shlibs=yes
|
adam@1459
|
8948
|
adam@1459
|
8949 # On some targets, GNU ld is compatible enough with the native linker
|
adam@1459
|
8950 # that we're better off using the native interface for both.
|
adam@1459
|
8951 lt_use_gnu_ld_interface=no
|
adamc@1132
|
8952 if test "$with_gnu_ld" = yes; then
|
adam@1459
|
8953 case $host_os in
|
adam@1459
|
8954 aix*)
|
adam@1459
|
8955 # The AIX port of GNU ld has always aspired to compatibility
|
adam@1459
|
8956 # with the native linker. However, as the warning in the GNU ld
|
adam@1459
|
8957 # block says, versions before 2.19.5* couldn't really create working
|
adam@1459
|
8958 # shared libraries, regardless of the interface used.
|
adam@1459
|
8959 case `$LD -v 2>&1` in
|
adam@1459
|
8960 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
|
adam@1459
|
8961 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
|
adam@1459
|
8962 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
|
adam@1459
|
8963 *)
|
adam@1459
|
8964 lt_use_gnu_ld_interface=yes
|
adam@1459
|
8965 ;;
|
adam@1459
|
8966 esac
|
adam@1459
|
8967 ;;
|
adam@1459
|
8968 *)
|
adam@1459
|
8969 lt_use_gnu_ld_interface=yes
|
adam@1459
|
8970 ;;
|
adam@1459
|
8971 esac
|
adam@1459
|
8972 fi
|
adam@1459
|
8973
|
adam@1459
|
8974 if test "$lt_use_gnu_ld_interface" = yes; then
|
adamc@1132
|
8975 # If archive_cmds runs LD, not CC, wlarc should be empty
|
adamc@1132
|
8976 wlarc='${wl}'
|
adamc@1132
|
8977
|
adamc@1132
|
8978 # Set some defaults for GNU ld with shared library support. These
|
adamc@1132
|
8979 # are reset later if shared libraries are not supported. Putting them
|
adamc@1132
|
8980 # here allows them to be overridden if necessary.
|
adamc@1132
|
8981 runpath_var=LD_RUN_PATH
|
adamc@1132
|
8982 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
adamc@1132
|
8983 export_dynamic_flag_spec='${wl}--export-dynamic'
|
adamc@1132
|
8984 # ancient GNU ld didn't support --whole-archive et. al.
|
adamc@1132
|
8985 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
|
adamc@1132
|
8986 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
adamc@1132
|
8987 else
|
adamc@1132
|
8988 whole_archive_flag_spec=
|
adamc@1132
|
8989 fi
|
adamc@1132
|
8990 supports_anon_versioning=no
|
adamc@1132
|
8991 case `$LD -v 2>&1` in
|
adamc@1132
|
8992 *GNU\ gold*) supports_anon_versioning=yes ;;
|
adamc@1132
|
8993 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
adamc@1132
|
8994 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
adamc@1132
|
8995 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
adamc@1132
|
8996 *\ 2.11.*) ;; # other 2.11 versions
|
adamc@1132
|
8997 *) supports_anon_versioning=yes ;;
|
adamc@1132
|
8998 esac
|
adamc@1132
|
8999
|
adamc@1132
|
9000 # See if GNU ld supports shared libraries.
|
adamc@1132
|
9001 case $host_os in
|
adamc@1132
|
9002 aix[3-9]*)
|
adamc@1132
|
9003 # On AIX/PPC, the GNU linker is very broken
|
adamc@1132
|
9004 if test "$host_cpu" != ia64; then
|
adamc@1132
|
9005 ld_shlibs=no
|
adamc@1132
|
9006 cat <<_LT_EOF 1>&2
|
adamc@1132
|
9007
|
adam@1459
|
9008 *** Warning: the GNU linker, at least up to release 2.19, is reported
|
adamc@1132
|
9009 *** to be unable to reliably create shared libraries on AIX.
|
adamc@1132
|
9010 *** Therefore, libtool is disabling shared libraries support. If you
|
adam@1459
|
9011 *** really care for shared libraries, you may want to install binutils
|
adam@1459
|
9012 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
|
adam@1459
|
9013 *** You will then need to restart the configuration process.
|
adamc@1132
|
9014
|
adamc@1132
|
9015 _LT_EOF
|
adamc@1132
|
9016 fi
|
adamc@1132
|
9017 ;;
|
adamc@1132
|
9018
|
adamc@1132
|
9019 amigaos*)
|
adamc@1132
|
9020 case $host_cpu in
|
adamc@1132
|
9021 powerpc)
|
adamc@1132
|
9022 # see comment about AmigaOS4 .so support
|
adamc@1132
|
9023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
adamc@1132
|
9024 archive_expsym_cmds=''
|
adamc@1132
|
9025 ;;
|
adamc@1132
|
9026 m68k)
|
adamc@1132
|
9027 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)'
|
adamc@1132
|
9028 hardcode_libdir_flag_spec='-L$libdir'
|
adamc@1132
|
9029 hardcode_minus_L=yes
|
adamc@1132
|
9030 ;;
|
adamc@1132
|
9031 esac
|
adamc@1132
|
9032 ;;
|
adamc@1132
|
9033
|
adamc@1132
|
9034 beos*)
|
adamc@1132
|
9035 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
adamc@1132
|
9036 allow_undefined_flag=unsupported
|
adamc@1132
|
9037 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
adamc@1132
|
9038 # support --undefined. This deserves some investigation. FIXME
|
adamc@1132
|
9039 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
adamc@1132
|
9040 else
|
adamc@1132
|
9041 ld_shlibs=no
|
adamc@1132
|
9042 fi
|
adamc@1132
|
9043 ;;
|
adamc@1132
|
9044
|
adamc@1132
|
9045 cygwin* | mingw* | pw32* | cegcc*)
|
adamc@1132
|
9046 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
|
adamc@1132
|
9047 # as there is no search path for DLLs.
|
adamc@1132
|
9048 hardcode_libdir_flag_spec='-L$libdir'
|
adam@1459
|
9049 export_dynamic_flag_spec='${wl}--export-all-symbols'
|
adamc@1132
|
9050 allow_undefined_flag=unsupported
|
adamc@1132
|
9051 always_export_symbols=no
|
adamc@1132
|
9052 enable_shared_with_static_runtimes=yes
|
adam@1459
|
9053 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
adam@1459
|
9054 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
adamc@1132
|
9055
|
adamc@1132
|
9056 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
adamc@1132
|
9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
adamc@1132
|
9058 # If the export-symbols file already is a .def file (1st line
|
adamc@1132
|
9059 # is EXPORTS), use it as is; otherwise, prepend...
|
adamc@1132
|
9060 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
adamc@1132
|
9061 cp $export_symbols $output_objdir/$soname.def;
|
adamc@1132
|
9062 else
|
adamc@1132
|
9063 echo EXPORTS > $output_objdir/$soname.def;
|
adamc@1132
|
9064 cat $export_symbols >> $output_objdir/$soname.def;
|
adamc@1132
|
9065 fi~
|
adamc@1132
|
9066 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
adamc@1132
|
9067 else
|
adamc@1132
|
9068 ld_shlibs=no
|
adamc@1132
|
9069 fi
|
adamc@1132
|
9070 ;;
|
adamc@1132
|
9071
|
adam@1459
|
9072 haiku*)
|
adam@1459
|
9073 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
adam@1459
|
9074 link_all_deplibs=yes
|
adam@1459
|
9075 ;;
|
adam@1459
|
9076
|
adamc@1132
|
9077 interix[3-9]*)
|
adamc@1132
|
9078 hardcode_direct=no
|
adamc@1132
|
9079 hardcode_shlibpath_var=no
|
adamc@1132
|
9080 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
adamc@1132
|
9081 export_dynamic_flag_spec='${wl}-E'
|
adamc@1132
|
9082 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
adamc@1132
|
9083 # Instead, shared libraries are loaded at an image base (0x10000000 by
|
adamc@1132
|
9084 # default) and relocated if they conflict, which is a slow very memory
|
adamc@1132
|
9085 # consuming and fragmenting process. To avoid this, we pick a random,
|
adamc@1132
|
9086 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
adamc@1132
|
9087 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
adamc@1132
|
9088 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
adamc@1132
|
9089 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'
|
adamc@1132
|
9090 ;;
|
adamc@1132
|
9091
|
adamc@1132
|
9092 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
|
adamc@1132
|
9093 tmp_diet=no
|
adamc@1132
|
9094 if test "$host_os" = linux-dietlibc; then
|
adamc@1132
|
9095 case $cc_basename in
|
adamc@1132
|
9096 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
|
adamc@1132
|
9097 esac
|
adamc@1132
|
9098 fi
|
adamc@1132
|
9099 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
|
adamc@1132
|
9100 && test "$tmp_diet" = no
|
adamc@1132
|
9101 then
|
adam@1459
|
9102 tmp_addflag=' $pic_flag'
|
adamc@1132
|
9103 tmp_sharedflag='-shared'
|
adamc@1132
|
9104 case $cc_basename,$host_cpu in
|
adamc@1132
|
9105 pgcc*) # Portland Group C compiler
|
adam@1459
|
9106 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
|
adamc@1132
|
9107 tmp_addflag=' $pic_flag'
|
adamc@1132
|
9108 ;;
|
adam@1459
|
9109 pgf77* | pgf90* | pgf95* | pgfortran*)
|
adam@1459
|
9110 # Portland Group f77 and f90 compilers
|
adam@1459
|
9111 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
|
adamc@1132
|
9112 tmp_addflag=' $pic_flag -Mnomain' ;;
|
adamc@1132
|
9113 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
adamc@1132
|
9114 tmp_addflag=' -i_dynamic' ;;
|
adamc@1132
|
9115 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
adamc@1132
|
9116 tmp_addflag=' -i_dynamic -nofor_main' ;;
|
adamc@1132
|
9117 ifc* | ifort*) # Intel Fortran compiler
|
adamc@1132
|
9118 tmp_addflag=' -nofor_main' ;;
|
adamc@1132
|
9119 lf95*) # Lahey Fortran 8.1
|
adamc@1132
|
9120 whole_archive_flag_spec=
|
adamc@1132
|
9121 tmp_sharedflag='--shared' ;;
|
adam@1459
|
9122 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
|
adamc@1132
|
9123 tmp_sharedflag='-qmkshrobj'
|
adamc@1132
|
9124 tmp_addflag= ;;
|
adam@1459
|
9125 nvcc*) # Cuda Compiler Driver 2.2
|
adam@1459
|
9126 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
|
adam@1459
|
9127 compiler_needs_object=yes
|
adam@1459
|
9128 ;;
|
adamc@1132
|
9129 esac
|
adamc@1132
|
9130 case `$CC -V 2>&1 | sed 5q` in
|
adamc@1132
|
9131 *Sun\ C*) # Sun C 5.9
|
adam@1459
|
9132 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
|
adamc@1132
|
9133 compiler_needs_object=yes
|
adamc@1132
|
9134 tmp_sharedflag='-G' ;;
|
adamc@1132
|
9135 *Sun\ F*) # Sun Fortran 8.3
|
adamc@1132
|
9136 tmp_sharedflag='-G' ;;
|
adamc@1132
|
9137 esac
|
adamc@1132
|
9138 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
adamc@1132
|
9139
|
adamc@1132
|
9140 if test "x$supports_anon_versioning" = xyes; then
|
adamc@1132
|
9141 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
adamc@1132
|
9142 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
adamc@1132
|
9143 echo "local: *; };" >> $output_objdir/$libname.ver~
|
adamc@1132
|
9144 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
adamc@1132
|
9145 fi
|
adamc@1132
|
9146
|
adamc@1132
|
9147 case $cc_basename in
|
adam@1459
|
9148 xlf* | bgf* | bgxlf* | mpixlf*)
|
adamc@1132
|
9149 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
adamc@1132
|
9150 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
adamc@1132
|
9151 hardcode_libdir_flag_spec=
|
adamc@1132
|
9152 hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
adam@1459
|
9153 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
adamc@1132
|
9154 if test "x$supports_anon_versioning" = xyes; then
|
adamc@1132
|
9155 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
adamc@1132
|
9156 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
adamc@1132
|
9157 echo "local: *; };" >> $output_objdir/$libname.ver~
|
adam@1459
|
9158 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
adamc@1132
|
9159 fi
|
adamc@1132
|
9160 ;;
|
adamc@1132
|
9161 esac
|
adamc@1132
|
9162 else
|
adamc@1132
|
9163 ld_shlibs=no
|
adamc@1132
|
9164 fi
|
adamc@1132
|
9165 ;;
|
adamc@1132
|
9166
|
adamc@1132
|
9167 netbsd* | netbsdelf*-gnu)
|
adamc@1132
|
9168 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
adamc@1132
|
9169 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
adamc@1132
|
9170 wlarc=
|
adamc@1132
|
9171 else
|
adam@1459
|
9172 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
adam@1459
|
9173 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
adamc@1132
|
9174 fi
|
adamc@1132
|
9175 ;;
|
adamc@1132
|
9176
|
adamc@1132
|
9177 solaris*)
|
adamc@1132
|
9178 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
|
adamc@1132
|
9179 ld_shlibs=no
|
adamc@1132
|
9180 cat <<_LT_EOF 1>&2
|
adamc@1132
|
9181
|
adamc@1132
|
9182 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
adamc@1132
|
9183 *** create shared libraries on Solaris systems. Therefore, libtool
|
adamc@1132
|
9184 *** is disabling shared libraries support. We urge you to upgrade GNU
|
adamc@1132
|
9185 *** binutils to release 2.9.1 or newer. Another option is to modify
|
adamc@1132
|
9186 *** your PATH or compiler configuration so that the native linker is
|
adamc@1132
|
9187 *** used, and then restart.
|
adamc@1132
|
9188
|
adamc@1132
|
9189 _LT_EOF
|
adamc@1132
|
9190 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
adam@1459
|
9191 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
adam@1459
|
9192 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
adamc@1132
|
9193 else
|
adamc@1132
|
9194 ld_shlibs=no
|
adamc@1132
|
9195 fi
|
adamc@1132
|
9196 ;;
|
adamc@1132
|
9197
|
adamc@1132
|
9198 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
adamc@1132
|
9199 case `$LD -v 2>&1` in
|
adamc@1132
|
9200 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
adamc@1132
|
9201 ld_shlibs=no
|
adamc@1132
|
9202 cat <<_LT_EOF 1>&2
|
adamc@1132
|
9203
|
adamc@1132
|
9204 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
adamc@1132
|
9205 *** reliably create shared libraries on SCO systems. Therefore, libtool
|
adamc@1132
|
9206 *** is disabling shared libraries support. We urge you to upgrade GNU
|
adamc@1132
|
9207 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
adamc@1132
|
9208 *** your PATH or compiler configuration so that the native linker is
|
adamc@1132
|
9209 *** used, and then restart.
|
adamc@1132
|
9210
|
adamc@1132
|
9211 _LT_EOF
|
adamc@1132
|
9212 ;;
|
adamc@1132
|
9213 *)
|
adamc@1132
|
9214 # For security reasons, it is highly recommended that you always
|
adamc@1132
|
9215 # use absolute paths for naming shared libraries, and exclude the
|
adamc@1132
|
9216 # DT_RUNPATH tag from executables and libraries. But doing so
|
adamc@1132
|
9217 # requires that you compile everything twice, which is a pain.
|
adamc@1132
|
9218 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
adamc@1132
|
9219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
adamc@1132
|
9220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
adamc@1132
|
9221 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
adamc@1132
|
9222 else
|
adamc@1132
|
9223 ld_shlibs=no
|
adamc@1132
|
9224 fi
|
adamc@1132
|
9225 ;;
|
adamc@1132
|
9226 esac
|
adamc@1132
|
9227 ;;
|
adamc@1132
|
9228
|
adamc@1132
|
9229 sunos4*)
|
adamc@1132
|
9230 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
adamc@1132
|
9231 wlarc=
|
adamc@1132
|
9232 hardcode_direct=yes
|
adamc@1132
|
9233 hardcode_shlibpath_var=no
|
adamc@1132
|
9234 ;;
|
adamc@1132
|
9235
|
adamc@1132
|
9236 *)
|
adamc@1132
|
9237 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
adam@1459
|
9238 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
adam@1459
|
9239 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
adamc@1132
|
9240 else
|
adamc@1132
|
9241 ld_shlibs=no
|
adamc@1132
|
9242 fi
|
adamc@1132
|
9243 ;;
|
adamc@1132
|
9244 esac
|
adamc@1132
|
9245
|
adamc@1132
|
9246 if test "$ld_shlibs" = no; then
|
adamc@1132
|
9247 runpath_var=
|
adamc@1132
|
9248 hardcode_libdir_flag_spec=
|
adamc@1132
|
9249 export_dynamic_flag_spec=
|
adamc@1132
|
9250 whole_archive_flag_spec=
|
adamc@1132
|
9251 fi
|
adamc@1132
|
9252 else
|
adamc@1132
|
9253 # PORTME fill in a description of your system's linker (not GNU ld)
|
adamc@1132
|
9254 case $host_os in
|
adamc@1132
|
9255 aix3*)
|
adamc@1132
|
9256 allow_undefined_flag=unsupported
|
adamc@1132
|
9257 always_export_symbols=yes
|
adamc@1132
|
9258 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'
|
adamc@1132
|
9259 # Note: this linker hardcodes the directories in LIBPATH if there
|
adamc@1132
|
9260 # are no directories specified by -L.
|
adamc@1132
|
9261 hardcode_minus_L=yes
|
adamc@1132
|
9262 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
adamc@1132
|
9263 # Neither direct hardcoding nor static linking is supported with a
|
adamc@1132
|
9264 # broken collect2.
|
adamc@1132
|
9265 hardcode_direct=unsupported
|
adamc@1132
|
9266 fi
|
adamc@1132
|
9267 ;;
|
adamc@1132
|
9268
|
adamc@1132
|
9269 aix[4-9]*)
|
adamc@1132
|
9270 if test "$host_cpu" = ia64; then
|
adamc@1132
|
9271 # On IA64, the linker does run time linking by default, so we don't
|
adamc@1132
|
9272 # have to do anything special.
|
adamc@1132
|
9273 aix_use_runtimelinking=no
|
adamc@1132
|
9274 exp_sym_flag='-Bexport'
|
adamc@1132
|
9275 no_entry_flag=""
|
adamc@1132
|
9276 else
|
adamc@1132
|
9277 # If we're using GNU nm, then we don't want the "-C" option.
|
adamc@1132
|
9278 # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
adam@1459
|
9279 # Also, AIX nm treats weak defined symbols like other global
|
adam@1459
|
9280 # defined symbols, whereas GNU nm marks them as "W".
|
adamc@1132
|
9281 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
adam@1459
|
9282 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
adamc@1132
|
9283 else
|
adamc@1132
|
9284 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'
|
adamc@1132
|
9285 fi
|
adamc@1132
|
9286 aix_use_runtimelinking=no
|
adamc@1132
|
9287
|
adamc@1132
|
9288 # Test if we are trying to use run time linking or normal
|
adamc@1132
|
9289 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
adamc@1132
|
9290 # need to do runtime linking.
|
adamc@1132
|
9291 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
|
adamc@1132
|
9292 for ld_flag in $LDFLAGS; do
|
adamc@1132
|
9293 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
adamc@1132
|
9294 aix_use_runtimelinking=yes
|
adamc@1132
|
9295 break
|
adamc@1132
|
9296 fi
|
adamc@1132
|
9297 done
|
adamc@1132
|
9298 ;;
|
adamc@1132
|
9299 esac
|
adamc@1132
|
9300
|
adamc@1132
|
9301 exp_sym_flag='-bexport'
|
adamc@1132
|
9302 no_entry_flag='-bnoentry'
|
adamc@1132
|
9303 fi
|
adamc@1132
|
9304
|
adamc@1132
|
9305 # When large executables or shared objects are built, AIX ld can
|
adamc@1132
|
9306 # have problems creating the table of contents. If linking a library
|
adamc@1132
|
9307 # or program results in "error TOC overflow" add -mminimal-toc to
|
adamc@1132
|
9308 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
adamc@1132
|
9309 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
adamc@1132
|
9310
|
adamc@1132
|
9311 archive_cmds=''
|
adamc@1132
|
9312 hardcode_direct=yes
|
adamc@1132
|
9313 hardcode_direct_absolute=yes
|
adamc@1132
|
9314 hardcode_libdir_separator=':'
|
adamc@1132
|
9315 link_all_deplibs=yes
|
adamc@1132
|
9316 file_list_spec='${wl}-f,'
|
adamc@1132
|
9317
|
adamc@1132
|
9318 if test "$GCC" = yes; then
|
adamc@1132
|
9319 case $host_os in aix4.[012]|aix4.[012].*)
|
adamc@1132
|
9320 # We only want to do this on AIX 4.2 and lower, the check
|
adamc@1132
|
9321 # below for broken collect2 doesn't work under 4.3+
|
adamc@1132
|
9322 collect2name=`${CC} -print-prog-name=collect2`
|
adamc@1132
|
9323 if test -f "$collect2name" &&
|
adamc@1132
|
9324 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
adamc@1132
|
9325 then
|
adamc@1132
|
9326 # We have reworked collect2
|
adamc@1132
|
9327 :
|
adamc@1132
|
9328 else
|
adamc@1132
|
9329 # We have old collect2
|
adamc@1132
|
9330 hardcode_direct=unsupported
|
adamc@1132
|
9331 # It fails to find uninstalled libraries when the uninstalled
|
adamc@1132
|
9332 # path is not listed in the libpath. Setting hardcode_minus_L
|
adamc@1132
|
9333 # to unsupported forces relinking
|
adamc@1132
|
9334 hardcode_minus_L=yes
|
adamc@1132
|
9335 hardcode_libdir_flag_spec='-L$libdir'
|
adamc@1132
|
9336 hardcode_libdir_separator=
|
adamc@1132
|
9337 fi
|
adamc@1132
|
9338 ;;
|
adamc@1132
|
9339 esac
|
adamc@1132
|
9340 shared_flag='-shared'
|
adamc@1132
|
9341 if test "$aix_use_runtimelinking" = yes; then
|
adamc@1132
|
9342 shared_flag="$shared_flag "'${wl}-G'
|
adamc@1132
|
9343 fi
|
adamc@1132
|
9344 link_all_deplibs=no
|
adamc@1132
|
9345 else
|
adamc@1132
|
9346 # not using gcc
|
adamc@1132
|
9347 if test "$host_cpu" = ia64; then
|
adamc@1132
|
9348 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
adamc@1132
|
9349 # chokes on -Wl,-G. The following line is correct:
|
adamc@1132
|
9350 shared_flag='-G'
|
adamc@1132
|
9351 else
|
adamc@1132
|
9352 if test "$aix_use_runtimelinking" = yes; then
|
adamc@1132
|
9353 shared_flag='${wl}-G'
|
adamc@1132
|
9354 else
|
adamc@1132
|
9355 shared_flag='${wl}-bM:SRE'
|
adamc@1132
|
9356 fi
|
adamc@1132
|
9357 fi
|
adamc@1132
|
9358 fi
|
adamc@1132
|
9359
|
adamc@1132
|
9360 export_dynamic_flag_spec='${wl}-bexpall'
|
adamc@1132
|
9361 # It seems that -bexpall does not export symbols beginning with
|
adamc@1132
|
9362 # underscore (_), so it is better to generate a list of symbols to export.
|
adamc@1132
|
9363 always_export_symbols=yes
|
adamc@1132
|
9364 if test "$aix_use_runtimelinking" = yes; then
|
adamc@1132
|
9365 # Warning - without using the other runtime loading flags (-brtl),
|
adamc@1132
|
9366 # -berok will link without error, but may produce a broken library.
|
adamc@1132
|
9367 allow_undefined_flag='-berok'
|
adamc@1132
|
9368 # Determine the default libpath from the value encoded in an
|
adamc@1132
|
9369 # empty executable.
|
adam@1459
|
9370 if test "${lt_cv_aix_libpath+set}" = set; then
|
adam@1459
|
9371 aix_libpath=$lt_cv_aix_libpath
|
adam@1459
|
9372 else
|
adam@1459
|
9373 if ${lt_cv_aix_libpath_+:} false; then :
|
adam@1459
|
9374 $as_echo_n "(cached) " >&6
|
adam@1459
|
9375 else
|
adam@1459
|
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1132
|
9377 /* end confdefs.h. */
|
adamc@1132
|
9378
|
adamc@1132
|
9379 int
|
adamc@1132
|
9380 main ()
|
adamc@1132
|
9381 {
|
adamc@1132
|
9382
|
adamc@1132
|
9383 ;
|
adamc@1132
|
9384 return 0;
|
adamc@1132
|
9385 }
|
adamc@1132
|
9386 _ACEOF
|
adamc@1132
|
9387 if ac_fn_c_try_link "$LINENO"; then :
|
adamc@1132
|
9388
|
adam@1459
|
9389 lt_aix_libpath_sed='
|
adam@1459
|
9390 /Import File Strings/,/^$/ {
|
adam@1459
|
9391 /^0/ {
|
adam@1459
|
9392 s/^0 *\([^ ]*\) *$/\1/
|
adam@1459
|
9393 p
|
adam@1459
|
9394 }
|
adam@1459
|
9395 }'
|
adam@1459
|
9396 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
adam@1459
|
9397 # Check for a 64-bit object if we didn't find anything.
|
adam@1459
|
9398 if test -z "$lt_cv_aix_libpath_"; then
|
adam@1459
|
9399 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
adam@1459
|
9400 fi
|
adamc@1132
|
9401 fi
|
adamc@1132
|
9402 rm -f core conftest.err conftest.$ac_objext \
|
adamc@1132
|
9403 conftest$ac_exeext conftest.$ac_ext
|
adam@1459
|
9404 if test -z "$lt_cv_aix_libpath_"; then
|
adam@1459
|
9405 lt_cv_aix_libpath_="/usr/lib:/lib"
|
adam@1459
|
9406 fi
|
adam@1459
|
9407
|
adam@1459
|
9408 fi
|
adam@1459
|
9409
|
adam@1459
|
9410 aix_libpath=$lt_cv_aix_libpath_
|
adam@1459
|
9411 fi
|
adamc@1132
|
9412
|
adamc@1132
|
9413 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
adam@1459
|
9414 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
adamc@1132
|
9415 else
|
adamc@1132
|
9416 if test "$host_cpu" = ia64; then
|
adamc@1132
|
9417 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
|
adamc@1132
|
9418 allow_undefined_flag="-z nodefs"
|
adamc@1132
|
9419 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"
|
adamc@1132
|
9420 else
|
adamc@1132
|
9421 # Determine the default libpath from the value encoded in an
|
adamc@1132
|
9422 # empty executable.
|
adam@1459
|
9423 if test "${lt_cv_aix_libpath+set}" = set; then
|
adam@1459
|
9424 aix_libpath=$lt_cv_aix_libpath
|
adam@1459
|
9425 else
|
adam@1459
|
9426 if ${lt_cv_aix_libpath_+:} false; then :
|
adam@1459
|
9427 $as_echo_n "(cached) " >&6
|
adam@1459
|
9428 else
|
adam@1459
|
9429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1132
|
9430 /* end confdefs.h. */
|
adamc@1132
|
9431
|
adamc@1132
|
9432 int
|
adamc@1132
|
9433 main ()
|
adamc@1132
|
9434 {
|
adamc@1132
|
9435
|
adamc@1132
|
9436 ;
|
adamc@1132
|
9437 return 0;
|
adamc@1132
|
9438 }
|
adamc@1132
|
9439 _ACEOF
|
adamc@1132
|
9440 if ac_fn_c_try_link "$LINENO"; then :
|
adamc@1132
|
9441
|
adam@1459
|
9442 lt_aix_libpath_sed='
|
adam@1459
|
9443 /Import File Strings/,/^$/ {
|
adam@1459
|
9444 /^0/ {
|
adam@1459
|
9445 s/^0 *\([^ ]*\) *$/\1/
|
adam@1459
|
9446 p
|
adam@1459
|
9447 }
|
adam@1459
|
9448 }'
|
adam@1459
|
9449 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
adam@1459
|
9450 # Check for a 64-bit object if we didn't find anything.
|
adam@1459
|
9451 if test -z "$lt_cv_aix_libpath_"; then
|
adam@1459
|
9452 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
adam@1459
|
9453 fi
|
adamc@1132
|
9454 fi
|
adamc@1132
|
9455 rm -f core conftest.err conftest.$ac_objext \
|
adamc@1132
|
9456 conftest$ac_exeext conftest.$ac_ext
|
adam@1459
|
9457 if test -z "$lt_cv_aix_libpath_"; then
|
adam@1459
|
9458 lt_cv_aix_libpath_="/usr/lib:/lib"
|
adam@1459
|
9459 fi
|
adam@1459
|
9460
|
adam@1459
|
9461 fi
|
adam@1459
|
9462
|
adam@1459
|
9463 aix_libpath=$lt_cv_aix_libpath_
|
adam@1459
|
9464 fi
|
adamc@1132
|
9465
|
adamc@1132
|
9466 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
adamc@1132
|
9467 # Warning - without using the other run time loading flags,
|
adamc@1132
|
9468 # -berok will link without error, but may produce a broken library.
|
adamc@1132
|
9469 no_undefined_flag=' ${wl}-bernotok'
|
adamc@1132
|
9470 allow_undefined_flag=' ${wl}-berok'
|
adam@1459
|
9471 if test "$with_gnu_ld" = yes; then
|
adam@1459
|
9472 # We only use this code for GNU lds that support --whole-archive.
|
adam@1459
|
9473 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
adam@1459
|
9474 else
|
adam@1459
|
9475 # Exported symbols can be pulled into shared objects from archives
|
adam@1459
|
9476 whole_archive_flag_spec='$convenience'
|
adam@1459
|
9477 fi
|
adamc@1132
|
9478 archive_cmds_need_lc=yes
|
adamc@1132
|
9479 # This is similar to how AIX traditionally builds its shared libraries.
|
adamc@1132
|
9480 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'
|
adamc@1132
|
9481 fi
|
adamc@1132
|
9482 fi
|
adamc@1132
|
9483 ;;
|
adamc@1132
|
9484
|
adamc@1132
|
9485 amigaos*)
|
adamc@1132
|
9486 case $host_cpu in
|
adamc@1132
|
9487 powerpc)
|
adamc@1132
|
9488 # see comment about AmigaOS4 .so support
|
adamc@1132
|
9489 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
adamc@1132
|
9490 archive_expsym_cmds=''
|
adamc@1132
|
9491 ;;
|
adamc@1132
|
9492 m68k)
|
adamc@1132
|
9493 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)'
|
adamc@1132
|
9494 hardcode_libdir_flag_spec='-L$libdir'
|
adamc@1132
|
9495 hardcode_minus_L=yes
|
adamc@1132
|
9496 ;;
|
adamc@1132
|
9497 esac
|
adamc@1132
|
9498 ;;
|
adamc@1132
|
9499
|
adamc@1132
|
9500 bsdi[45]*)
|
adamc@1132
|
9501 export_dynamic_flag_spec=-rdynamic
|
adamc@1132
|
9502 ;;
|
adamc@1132
|
9503
|
adamc@1132
|
9504 cygwin* | mingw* | pw32* | cegcc*)
|
adamc@1132
|
9505 # When not using gcc, we currently assume that we are using
|
adamc@1132
|
9506 # Microsoft Visual C++.
|
adamc@1132
|
9507 # hardcode_libdir_flag_spec is actually meaningless, as there is
|
adamc@1132
|
9508 # no search path for DLLs.
|
adam@1459
|
9509 case $cc_basename in
|
adam@1459
|
9510 cl*)
|
adam@1459
|
9511 # Native MSVC
|
adam@1459
|
9512 hardcode_libdir_flag_spec=' '
|
adam@1459
|
9513 allow_undefined_flag=unsupported
|
adam@1459
|
9514 always_export_symbols=yes
|
adam@1459
|
9515 file_list_spec='@'
|
adam@1459
|
9516 # Tell ltmain to make .lib files, not .a files.
|
adam@1459
|
9517 libext=lib
|
adam@1459
|
9518 # Tell ltmain to make .dll files, not .so files.
|
adam@1459
|
9519 shrext_cmds=".dll"
|
adam@1459
|
9520 # FIXME: Setting linknames here is a bad hack.
|
adam@1459
|
9521 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
adam@1459
|
9522 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
adam@1459
|
9523 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
adam@1459
|
9524 else
|
adam@1459
|
9525 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
adam@1459
|
9526 fi~
|
adam@1459
|
9527 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
adam@1459
|
9528 linknames='
|
adam@1459
|
9529 # The linker will not automatically build a static lib if we build a DLL.
|
adam@1459
|
9530 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
adam@1459
|
9531 enable_shared_with_static_runtimes=yes
|
adam@1459
|
9532 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
adam@1459
|
9533 # Don't use ranlib
|
adam@1459
|
9534 old_postinstall_cmds='chmod 644 $oldlib'
|
adam@1459
|
9535 postlink_cmds='lt_outputfile="@OUTPUT@"~
|
adam@1459
|
9536 lt_tool_outputfile="@TOOL_OUTPUT@"~
|
adam@1459
|
9537 case $lt_outputfile in
|
adam@1459
|
9538 *.exe|*.EXE) ;;
|
adam@1459
|
9539 *)
|
adam@1459
|
9540 lt_outputfile="$lt_outputfile.exe"
|
adam@1459
|
9541 lt_tool_outputfile="$lt_tool_outputfile.exe"
|
adam@1459
|
9542 ;;
|
adam@1459
|
9543 esac~
|
adam@1459
|
9544 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
adam@1459
|
9545 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
adam@1459
|
9546 $RM "$lt_outputfile.manifest";
|
adam@1459
|
9547 fi'
|
adam@1459
|
9548 ;;
|
adam@1459
|
9549 *)
|
adam@1459
|
9550 # Assume MSVC wrapper
|
adam@1459
|
9551 hardcode_libdir_flag_spec=' '
|
adam@1459
|
9552 allow_undefined_flag=unsupported
|
adam@1459
|
9553 # Tell ltmain to make .lib files, not .a files.
|
adam@1459
|
9554 libext=lib
|
adam@1459
|
9555 # Tell ltmain to make .dll files, not .so files.
|
adam@1459
|
9556 shrext_cmds=".dll"
|
adam@1459
|
9557 # FIXME: Setting linknames here is a bad hack.
|
adam@1459
|
9558 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
adam@1459
|
9559 # The linker will automatically build a .lib file if we build a DLL.
|
adam@1459
|
9560 old_archive_from_new_cmds='true'
|
adam@1459
|
9561 # FIXME: Should let the user specify the lib program.
|
adam@1459
|
9562 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
adam@1459
|
9563 enable_shared_with_static_runtimes=yes
|
adam@1459
|
9564 ;;
|
adam@1459
|
9565 esac
|
adamc@1132
|
9566 ;;
|
adamc@1132
|
9567
|
adamc@1132
|
9568 darwin* | rhapsody*)
|
adamc@1132
|
9569
|
adamc@1132
|
9570
|
adamc@1132
|
9571 archive_cmds_need_lc=no
|
adamc@1132
|
9572 hardcode_direct=no
|
adamc@1132
|
9573 hardcode_automatic=yes
|
adamc@1132
|
9574 hardcode_shlibpath_var=unsupported
|
adam@1459
|
9575 if test "$lt_cv_ld_force_load" = "yes"; then
|
adam@1459
|
9576 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
|
adam@1459
|
9577 else
|
adam@1459
|
9578 whole_archive_flag_spec=''
|
adam@1459
|
9579 fi
|
adamc@1132
|
9580 link_all_deplibs=yes
|
adamc@1132
|
9581 allow_undefined_flag="$_lt_dar_allow_undefined"
|
adamc@1132
|
9582 case $cc_basename in
|
adamc@1132
|
9583 ifort*) _lt_dar_can_shared=yes ;;
|
adamc@1132
|
9584 *) _lt_dar_can_shared=$GCC ;;
|
adamc@1132
|
9585 esac
|
adamc@1132
|
9586 if test "$_lt_dar_can_shared" = "yes"; then
|
adam@1459
|
9587 output_verbose_link_cmd=func_echo_all
|
adamc@1132
|
9588 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
|
adamc@1132
|
9589 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
|
adamc@1132
|
9590 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}"
|
adamc@1132
|
9591 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}"
|
adamc@1132
|
9592
|
adamc@1132
|
9593 else
|
adamc@1132
|
9594 ld_shlibs=no
|
adamc@1132
|
9595 fi
|
adamc@1132
|
9596
|
adamc@1132
|
9597 ;;
|
adamc@1132
|
9598
|
adamc@1132
|
9599 dgux*)
|
adamc@1132
|
9600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
adamc@1132
|
9601 hardcode_libdir_flag_spec='-L$libdir'
|
adamc@1132
|
9602 hardcode_shlibpath_var=no
|
adamc@1132
|
9603 ;;
|
adamc@1132
|
9604
|
adamc@1132
|
9605 freebsd1*)
|
adamc@1132
|
9606 ld_shlibs=no
|
adamc@1132
|
9607 ;;
|
adamc@1132
|
9608
|
adamc@1132
|
9609 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
adamc@1132
|
9610 # support. Future versions do this automatically, but an explicit c++rt0.o
|
adamc@1132
|
9611 # does not break anything, and helps significantly (at the cost of a little
|
adamc@1132
|
9612 # extra space).
|
adamc@1132
|
9613 freebsd2.2*)
|
adamc@1132
|
9614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
adamc@1132
|
9615 hardcode_libdir_flag_spec='-R$libdir'
|
adamc@1132
|
9616 hardcode_direct=yes
|
adamc@1132
|
9617 hardcode_shlibpath_var=no
|
adamc@1132
|
9618 ;;
|
adamc@1132
|
9619
|
adamc@1132
|
9620 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
adamc@1132
|
9621 freebsd2*)
|
adamc@1132
|
9622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
adamc@1132
|
9623 hardcode_direct=yes
|
adamc@1132
|
9624 hardcode_minus_L=yes
|
adamc@1132
|
9625 hardcode_shlibpath_var=no
|
adamc@1132
|
9626 ;;
|
adamc@1132
|
9627
|
adamc@1132
|
9628 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
adamc@1132
|
9629 freebsd* | dragonfly*)
|
adam@1459
|
9630 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
9631 hardcode_libdir_flag_spec='-R$libdir'
|
adamc@1132
|
9632 hardcode_direct=yes
|
adamc@1132
|
9633 hardcode_shlibpath_var=no
|
adamc@1132
|
9634 ;;
|
adamc@1132
|
9635
|
adamc@1132
|
9636 hpux9*)
|
adamc@1132
|
9637 if test "$GCC" = yes; then
|
adam@1459
|
9638 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
adamc@1132
|
9639 else
|
adamc@1132
|
9640 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'
|
adamc@1132
|
9641 fi
|
adamc@1132
|
9642 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
adamc@1132
|
9643 hardcode_libdir_separator=:
|
adamc@1132
|
9644 hardcode_direct=yes
|
adamc@1132
|
9645
|
adamc@1132
|
9646 # hardcode_minus_L: Not really in the search PATH,
|
adamc@1132
|
9647 # but as the default location of the library.
|
adamc@1132
|
9648 hardcode_minus_L=yes
|
adamc@1132
|
9649 export_dynamic_flag_spec='${wl}-E'
|
adamc@1132
|
9650 ;;
|
adamc@1132
|
9651
|
adamc@1132
|
9652 hpux10*)
|
adam@1459
|
9653 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
adam@1459
|
9654 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
9655 else
|
adamc@1132
|
9656 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
adamc@1132
|
9657 fi
|
adamc@1132
|
9658 if test "$with_gnu_ld" = no; then
|
adamc@1132
|
9659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
adamc@1132
|
9660 hardcode_libdir_flag_spec_ld='+b $libdir'
|
adamc@1132
|
9661 hardcode_libdir_separator=:
|
adamc@1132
|
9662 hardcode_direct=yes
|
adamc@1132
|
9663 hardcode_direct_absolute=yes
|
adamc@1132
|
9664 export_dynamic_flag_spec='${wl}-E'
|
adamc@1132
|
9665 # hardcode_minus_L: Not really in the search PATH,
|
adamc@1132
|
9666 # but as the default location of the library.
|
adamc@1132
|
9667 hardcode_minus_L=yes
|
adamc@1132
|
9668 fi
|
adamc@1132
|
9669 ;;
|
adamc@1132
|
9670
|
adamc@1132
|
9671 hpux11*)
|
adam@1459
|
9672 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
adamc@1132
|
9673 case $host_cpu in
|
adamc@1132
|
9674 hppa*64*)
|
adamc@1132
|
9675 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
9676 ;;
|
adamc@1132
|
9677 ia64*)
|
adam@1459
|
9678 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
9679 ;;
|
adamc@1132
|
9680 *)
|
adam@1459
|
9681 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
9682 ;;
|
adamc@1132
|
9683 esac
|
adamc@1132
|
9684 else
|
adamc@1132
|
9685 case $host_cpu in
|
adamc@1132
|
9686 hppa*64*)
|
adamc@1132
|
9687 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
9688 ;;
|
adamc@1132
|
9689 ia64*)
|
adamc@1132
|
9690 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
9691 ;;
|
adamc@1132
|
9692 *)
|
adam@1459
|
9693
|
adam@1459
|
9694 # Older versions of the 11.00 compiler do not understand -b yet
|
adam@1459
|
9695 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
|
adam@1459
|
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
|
adam@1459
|
9697 $as_echo_n "checking if $CC understands -b... " >&6; }
|
adam@1459
|
9698 if ${lt_cv_prog_compiler__b+:} false; then :
|
adam@1459
|
9699 $as_echo_n "(cached) " >&6
|
adam@1459
|
9700 else
|
adam@1459
|
9701 lt_cv_prog_compiler__b=no
|
adam@1459
|
9702 save_LDFLAGS="$LDFLAGS"
|
adam@1459
|
9703 LDFLAGS="$LDFLAGS -b"
|
adam@1459
|
9704 echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
adam@1459
|
9705 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
adam@1459
|
9706 # The linker can only warn and ignore the option if not recognized
|
adam@1459
|
9707 # So say no if there are warnings
|
adam@1459
|
9708 if test -s conftest.err; then
|
adam@1459
|
9709 # Append any errors to the config.log.
|
adam@1459
|
9710 cat conftest.err 1>&5
|
adam@1459
|
9711 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
adam@1459
|
9712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
adam@1459
|
9713 if diff conftest.exp conftest.er2 >/dev/null; then
|
adam@1459
|
9714 lt_cv_prog_compiler__b=yes
|
adam@1459
|
9715 fi
|
adam@1459
|
9716 else
|
adam@1459
|
9717 lt_cv_prog_compiler__b=yes
|
adam@1459
|
9718 fi
|
adam@1459
|
9719 fi
|
adam@1459
|
9720 $RM -r conftest*
|
adam@1459
|
9721 LDFLAGS="$save_LDFLAGS"
|
adam@1459
|
9722
|
adam@1459
|
9723 fi
|
adam@1459
|
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
|
adam@1459
|
9725 $as_echo "$lt_cv_prog_compiler__b" >&6; }
|
adam@1459
|
9726
|
adam@1459
|
9727 if test x"$lt_cv_prog_compiler__b" = xyes; then
|
adam@1459
|
9728 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
adam@1459
|
9729 else
|
adam@1459
|
9730 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
adam@1459
|
9731 fi
|
adam@1459
|
9732
|
adamc@1132
|
9733 ;;
|
adamc@1132
|
9734 esac
|
adamc@1132
|
9735 fi
|
adamc@1132
|
9736 if test "$with_gnu_ld" = no; then
|
adamc@1132
|
9737 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
adamc@1132
|
9738 hardcode_libdir_separator=:
|
adamc@1132
|
9739
|
adamc@1132
|
9740 case $host_cpu in
|
adamc@1132
|
9741 hppa*64*|ia64*)
|
adamc@1132
|
9742 hardcode_direct=no
|
adamc@1132
|
9743 hardcode_shlibpath_var=no
|
adamc@1132
|
9744 ;;
|
adamc@1132
|
9745 *)
|
adamc@1132
|
9746 hardcode_direct=yes
|
adamc@1132
|
9747 hardcode_direct_absolute=yes
|
adamc@1132
|
9748 export_dynamic_flag_spec='${wl}-E'
|
adamc@1132
|
9749
|
adamc@1132
|
9750 # hardcode_minus_L: Not really in the search PATH,
|
adamc@1132
|
9751 # but as the default location of the library.
|
adamc@1132
|
9752 hardcode_minus_L=yes
|
adamc@1132
|
9753 ;;
|
adamc@1132
|
9754 esac
|
adamc@1132
|
9755 fi
|
adamc@1132
|
9756 ;;
|
adamc@1132
|
9757
|
adamc@1132
|
9758 irix5* | irix6* | nonstopux*)
|
adamc@1132
|
9759 if test "$GCC" = yes; then
|
adam@1459
|
9760 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
adamc@1132
|
9761 # Try to use the -exported_symbol ld option, if it does not
|
adamc@1132
|
9762 # work, assume that -exports_file does not work either and
|
adamc@1132
|
9763 # implicitly export all symbols.
|
adam@1459
|
9764 # This should be the same for all languages, so no per-tag cache variable.
|
adam@1459
|
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
adam@1459
|
9766 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
adam@1459
|
9767 if ${lt_cv_irix_exported_symbol+:} false; then :
|
adam@1459
|
9768 $as_echo_n "(cached) " >&6
|
adam@1459
|
9769 else
|
adam@1459
|
9770 save_LDFLAGS="$LDFLAGS"
|
adam@1459
|
9771 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
adam@1459
|
9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1132
|
9773 /* end confdefs.h. */
|
adam@1459
|
9774 int foo (void) { return 0; }
|
adamc@1132
|
9775 _ACEOF
|
adamc@1132
|
9776 if ac_fn_c_try_link "$LINENO"; then :
|
adam@1459
|
9777 lt_cv_irix_exported_symbol=yes
|
adam@1459
|
9778 else
|
adam@1459
|
9779 lt_cv_irix_exported_symbol=no
|
adamc@1132
|
9780 fi
|
adamc@1132
|
9781 rm -f core conftest.err conftest.$ac_objext \
|
adamc@1132
|
9782 conftest$ac_exeext conftest.$ac_ext
|
adam@1459
|
9783 LDFLAGS="$save_LDFLAGS"
|
adam@1459
|
9784 fi
|
adam@1459
|
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
adam@1459
|
9786 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
adam@1459
|
9787 if test "$lt_cv_irix_exported_symbol" = yes; then
|
adam@1459
|
9788 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
adam@1459
|
9789 fi
|
adamc@1132
|
9790 else
|
adam@1459
|
9791 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
adam@1459
|
9792 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
adamc@1132
|
9793 fi
|
adamc@1132
|
9794 archive_cmds_need_lc='no'
|
adamc@1132
|
9795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
adamc@1132
|
9796 hardcode_libdir_separator=:
|
adamc@1132
|
9797 inherit_rpath=yes
|
adamc@1132
|
9798 link_all_deplibs=yes
|
adamc@1132
|
9799 ;;
|
adamc@1132
|
9800
|
adamc@1132
|
9801 netbsd* | netbsdelf*-gnu)
|
adamc@1132
|
9802 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
adamc@1132
|
9803 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
adamc@1132
|
9804 else
|
adamc@1132
|
9805 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
adamc@1132
|
9806 fi
|
adamc@1132
|
9807 hardcode_libdir_flag_spec='-R$libdir'
|
adamc@1132
|
9808 hardcode_direct=yes
|
adamc@1132
|
9809 hardcode_shlibpath_var=no
|
adamc@1132
|
9810 ;;
|
adamc@1132
|
9811
|
adamc@1132
|
9812 newsos6)
|
adamc@1132
|
9813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
adamc@1132
|
9814 hardcode_direct=yes
|
adamc@1132
|
9815 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
adamc@1132
|
9816 hardcode_libdir_separator=:
|
adamc@1132
|
9817 hardcode_shlibpath_var=no
|
adamc@1132
|
9818 ;;
|
adamc@1132
|
9819
|
adamc@1132
|
9820 *nto* | *qnx*)
|
adamc@1132
|
9821 ;;
|
adamc@1132
|
9822
|
adamc@1132
|
9823 openbsd*)
|
adamc@1132
|
9824 if test -f /usr/libexec/ld.so; then
|
adamc@1132
|
9825 hardcode_direct=yes
|
adamc@1132
|
9826 hardcode_shlibpath_var=no
|
adamc@1132
|
9827 hardcode_direct_absolute=yes
|
adamc@1132
|
9828 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
adamc@1132
|
9829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
9830 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
adamc@1132
|
9831 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
adamc@1132
|
9832 export_dynamic_flag_spec='${wl}-E'
|
adamc@1132
|
9833 else
|
adamc@1132
|
9834 case $host_os in
|
adamc@1132
|
9835 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
adamc@1132
|
9836 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
adamc@1132
|
9837 hardcode_libdir_flag_spec='-R$libdir'
|
adamc@1132
|
9838 ;;
|
adamc@1132
|
9839 *)
|
adamc@1132
|
9840 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
9841 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
adamc@1132
|
9842 ;;
|
adamc@1132
|
9843 esac
|
adamc@1132
|
9844 fi
|
adamc@1132
|
9845 else
|
adamc@1132
|
9846 ld_shlibs=no
|
adamc@1132
|
9847 fi
|
adamc@1132
|
9848 ;;
|
adamc@1132
|
9849
|
adamc@1132
|
9850 os2*)
|
adamc@1132
|
9851 hardcode_libdir_flag_spec='-L$libdir'
|
adamc@1132
|
9852 hardcode_minus_L=yes
|
adamc@1132
|
9853 allow_undefined_flag=unsupported
|
adam@1459
|
9854 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'
|
adamc@1132
|
9855 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
adamc@1132
|
9856 ;;
|
adamc@1132
|
9857
|
adamc@1132
|
9858 osf3*)
|
adamc@1132
|
9859 if test "$GCC" = yes; then
|
adamc@1132
|
9860 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
adam@1459
|
9861 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
adamc@1132
|
9862 else
|
adamc@1132
|
9863 allow_undefined_flag=' -expect_unresolved \*'
|
adam@1459
|
9864 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
adamc@1132
|
9865 fi
|
adamc@1132
|
9866 archive_cmds_need_lc='no'
|
adamc@1132
|
9867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
adamc@1132
|
9868 hardcode_libdir_separator=:
|
adamc@1132
|
9869 ;;
|
adamc@1132
|
9870
|
adamc@1132
|
9871 osf4* | osf5*) # as osf3* with the addition of -msym flag
|
adamc@1132
|
9872 if test "$GCC" = yes; then
|
adamc@1132
|
9873 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
adam@1459
|
9874 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
adamc@1132
|
9875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
adamc@1132
|
9876 else
|
adamc@1132
|
9877 allow_undefined_flag=' -expect_unresolved \*'
|
adam@1459
|
9878 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
adamc@1132
|
9879 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~
|
adam@1459
|
9880 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
|
adamc@1132
|
9881
|
adamc@1132
|
9882 # Both c and cxx compiler support -rpath directly
|
adamc@1132
|
9883 hardcode_libdir_flag_spec='-rpath $libdir'
|
adamc@1132
|
9884 fi
|
adamc@1132
|
9885 archive_cmds_need_lc='no'
|
adamc@1132
|
9886 hardcode_libdir_separator=:
|
adamc@1132
|
9887 ;;
|
adamc@1132
|
9888
|
adamc@1132
|
9889 solaris*)
|
adamc@1132
|
9890 no_undefined_flag=' -z defs'
|
adamc@1132
|
9891 if test "$GCC" = yes; then
|
adamc@1132
|
9892 wlarc='${wl}'
|
adam@1459
|
9893 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
9894 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
adam@1459
|
9895 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
adamc@1132
|
9896 else
|
adamc@1132
|
9897 case `$CC -V 2>&1` in
|
adamc@1132
|
9898 *"Compilers 5.0"*)
|
adamc@1132
|
9899 wlarc=''
|
adamc@1132
|
9900 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
adamc@1132
|
9901 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
adamc@1132
|
9902 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
|
adamc@1132
|
9903 ;;
|
adamc@1132
|
9904 *)
|
adamc@1132
|
9905 wlarc='${wl}'
|
adamc@1132
|
9906 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
9907 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
adamc@1132
|
9908 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
adamc@1132
|
9909 ;;
|
adamc@1132
|
9910 esac
|
adamc@1132
|
9911 fi
|
adamc@1132
|
9912 hardcode_libdir_flag_spec='-R$libdir'
|
adamc@1132
|
9913 hardcode_shlibpath_var=no
|
adamc@1132
|
9914 case $host_os in
|
adamc@1132
|
9915 solaris2.[0-5] | solaris2.[0-5].*) ;;
|
adamc@1132
|
9916 *)
|
adamc@1132
|
9917 # The compiler driver will combine and reorder linker options,
|
adamc@1132
|
9918 # but understands `-z linker_flag'. GCC discards it without `$wl',
|
adamc@1132
|
9919 # but is careful enough not to reorder.
|
adamc@1132
|
9920 # Supported since Solaris 2.6 (maybe 2.5.1?)
|
adamc@1132
|
9921 if test "$GCC" = yes; then
|
adamc@1132
|
9922 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
adamc@1132
|
9923 else
|
adamc@1132
|
9924 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
|
adamc@1132
|
9925 fi
|
adamc@1132
|
9926 ;;
|
adamc@1132
|
9927 esac
|
adamc@1132
|
9928 link_all_deplibs=yes
|
adamc@1132
|
9929 ;;
|
adamc@1132
|
9930
|
adamc@1132
|
9931 sunos4*)
|
adamc@1132
|
9932 if test "x$host_vendor" = xsequent; then
|
adamc@1132
|
9933 # Use $CC to link under sequent, because it throws in some extra .o
|
adamc@1132
|
9934 # files that make .init and .fini sections work.
|
adamc@1132
|
9935 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
9936 else
|
adamc@1132
|
9937 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
adamc@1132
|
9938 fi
|
adamc@1132
|
9939 hardcode_libdir_flag_spec='-L$libdir'
|
adamc@1132
|
9940 hardcode_direct=yes
|
adamc@1132
|
9941 hardcode_minus_L=yes
|
adamc@1132
|
9942 hardcode_shlibpath_var=no
|
adamc@1132
|
9943 ;;
|
adamc@1132
|
9944
|
adamc@1132
|
9945 sysv4)
|
adamc@1132
|
9946 case $host_vendor in
|
adamc@1132
|
9947 sni)
|
adamc@1132
|
9948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
adamc@1132
|
9949 hardcode_direct=yes # is this really true???
|
adamc@1132
|
9950 ;;
|
adamc@1132
|
9951 siemens)
|
adamc@1132
|
9952 ## LD is ld it makes a PLAMLIB
|
adamc@1132
|
9953 ## CC just makes a GrossModule.
|
adamc@1132
|
9954 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
adamc@1132
|
9955 reload_cmds='$CC -r -o $output$reload_objs'
|
adamc@1132
|
9956 hardcode_direct=no
|
adamc@1132
|
9957 ;;
|
adamc@1132
|
9958 motorola)
|
adamc@1132
|
9959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
adamc@1132
|
9960 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
adamc@1132
|
9961 ;;
|
adamc@1132
|
9962 esac
|
adamc@1132
|
9963 runpath_var='LD_RUN_PATH'
|
adamc@1132
|
9964 hardcode_shlibpath_var=no
|
adamc@1132
|
9965 ;;
|
adamc@1132
|
9966
|
adamc@1132
|
9967 sysv4.3*)
|
adamc@1132
|
9968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
adamc@1132
|
9969 hardcode_shlibpath_var=no
|
adamc@1132
|
9970 export_dynamic_flag_spec='-Bexport'
|
adamc@1132
|
9971 ;;
|
adamc@1132
|
9972
|
adamc@1132
|
9973 sysv4*MP*)
|
adamc@1132
|
9974 if test -d /usr/nec; then
|
adamc@1132
|
9975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
adamc@1132
|
9976 hardcode_shlibpath_var=no
|
adamc@1132
|
9977 runpath_var=LD_RUN_PATH
|
adamc@1132
|
9978 hardcode_runpath_var=yes
|
adamc@1132
|
9979 ld_shlibs=yes
|
adamc@1132
|
9980 fi
|
adamc@1132
|
9981 ;;
|
adamc@1132
|
9982
|
adamc@1132
|
9983 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
adamc@1132
|
9984 no_undefined_flag='${wl}-z,text'
|
adamc@1132
|
9985 archive_cmds_need_lc=no
|
adamc@1132
|
9986 hardcode_shlibpath_var=no
|
adamc@1132
|
9987 runpath_var='LD_RUN_PATH'
|
adamc@1132
|
9988
|
adamc@1132
|
9989 if test "$GCC" = yes; then
|
adamc@1132
|
9990 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
9991 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
9992 else
|
adamc@1132
|
9993 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
9994 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
9995 fi
|
adamc@1132
|
9996 ;;
|
adamc@1132
|
9997
|
adamc@1132
|
9998 sysv5* | sco3.2v5* | sco5v6*)
|
adamc@1132
|
9999 # Note: We can NOT use -z defs as we might desire, because we do not
|
adamc@1132
|
10000 # link with -lc, and that would cause any symbols used from libc to
|
adamc@1132
|
10001 # always be unresolved, which means just about no library would
|
adamc@1132
|
10002 # ever link correctly. If we're not using GNU ld we use -z text
|
adamc@1132
|
10003 # though, which does catch some bad symbols but isn't as heavy-handed
|
adamc@1132
|
10004 # as -z defs.
|
adamc@1132
|
10005 no_undefined_flag='${wl}-z,text'
|
adamc@1132
|
10006 allow_undefined_flag='${wl}-z,nodefs'
|
adamc@1132
|
10007 archive_cmds_need_lc=no
|
adamc@1132
|
10008 hardcode_shlibpath_var=no
|
adamc@1132
|
10009 hardcode_libdir_flag_spec='${wl}-R,$libdir'
|
adamc@1132
|
10010 hardcode_libdir_separator=':'
|
adamc@1132
|
10011 link_all_deplibs=yes
|
adamc@1132
|
10012 export_dynamic_flag_spec='${wl}-Bexport'
|
adamc@1132
|
10013 runpath_var='LD_RUN_PATH'
|
adamc@1132
|
10014
|
adamc@1132
|
10015 if test "$GCC" = yes; then
|
adamc@1132
|
10016 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
10017 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
10018 else
|
adamc@1132
|
10019 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
10020 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
adamc@1132
|
10021 fi
|
adamc@1132
|
10022 ;;
|
adamc@1132
|
10023
|
adamc@1132
|
10024 uts4*)
|
adamc@1132
|
10025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
adamc@1132
|
10026 hardcode_libdir_flag_spec='-L$libdir'
|
adamc@1132
|
10027 hardcode_shlibpath_var=no
|
adamc@1132
|
10028 ;;
|
adamc@1132
|
10029
|
adamc@1132
|
10030 *)
|
adamc@1132
|
10031 ld_shlibs=no
|
adamc@1132
|
10032 ;;
|
adamc@1132
|
10033 esac
|
adamc@1132
|
10034
|
adamc@1132
|
10035 if test x$host_vendor = xsni; then
|
adamc@1132
|
10036 case $host in
|
adamc@1132
|
10037 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
adamc@1132
|
10038 export_dynamic_flag_spec='${wl}-Blargedynsym'
|
adamc@1132
|
10039 ;;
|
adamc@1132
|
10040 esac
|
adamc@1132
|
10041 fi
|
adamc@1132
|
10042 fi
|
adamc@1132
|
10043
|
adamc@1132
|
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
|
adamc@1132
|
10045 $as_echo "$ld_shlibs" >&6; }
|
adamc@1132
|
10046 test "$ld_shlibs" = no && can_build_shared=no
|
adamc@1132
|
10047
|
adamc@1132
|
10048 with_gnu_ld=$with_gnu_ld
|
adamc@1132
|
10049
|
adamc@1132
|
10050
|
adamc@1132
|
10051
|
adamc@1132
|
10052
|
adamc@1132
|
10053
|
adamc@1132
|
10054
|
adamc@1132
|
10055
|
adamc@1132
|
10056
|
adamc@1132
|
10057
|
adamc@1132
|
10058
|
adamc@1132
|
10059
|
adamc@1132
|
10060
|
adamc@1132
|
10061
|
adamc@1132
|
10062
|
adamc@1132
|
10063
|
adamc@1132
|
10064 #
|
adamc@1132
|
10065 # Do we need to explicitly link libc?
|
adamc@1132
|
10066 #
|
adamc@1132
|
10067 case "x$archive_cmds_need_lc" in
|
adamc@1132
|
10068 x|xyes)
|
adamc@1132
|
10069 # Assume -lc should be added
|
adamc@1132
|
10070 archive_cmds_need_lc=yes
|
adamc@1132
|
10071
|
adamc@1132
|
10072 if test "$enable_shared" = yes && test "$GCC" = yes; then
|
adamc@1132
|
10073 case $archive_cmds in
|
adamc@1132
|
10074 *'~'*)
|
adamc@1132
|
10075 # FIXME: we may have to deal with multi-command sequences.
|
adamc@1132
|
10076 ;;
|
adamc@1132
|
10077 '$CC '*)
|
adamc@1132
|
10078 # Test whether the compiler implicitly links with -lc since on some
|
adamc@1132
|
10079 # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
adamc@1132
|
10080 # to ld, don't add -lc before -lgcc.
|
adamc@1132
|
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
|
adamc@1132
|
10082 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
|
adam@1459
|
10083 if ${lt_cv_archive_cmds_need_lc+:} false; then :
|
adam@1459
|
10084 $as_echo_n "(cached) " >&6
|
adam@1459
|
10085 else
|
adam@1459
|
10086 $RM conftest*
|
adam@1459
|
10087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
adam@1459
|
10088
|
adam@1459
|
10089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
adamc@1132
|
10090 (eval $ac_compile) 2>&5
|
adamc@1132
|
10091 ac_status=$?
|
adamc@1132
|
10092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1132
|
10093 test $ac_status = 0; } 2>conftest.err; then
|
adam@1459
|
10094 soname=conftest
|
adam@1459
|
10095 lib=conftest
|
adam@1459
|
10096 libobjs=conftest.$ac_objext
|
adam@1459
|
10097 deplibs=
|
adam@1459
|
10098 wl=$lt_prog_compiler_wl
|
adam@1459
|
10099 pic_flag=$lt_prog_compiler_pic
|
adam@1459
|
10100 compiler_flags=-v
|
adam@1459
|
10101 linker_flags=-v
|
adam@1459
|
10102 verstring=
|
adam@1459
|
10103 output_objdir=.
|
adam@1459
|
10104 libname=conftest
|
adam@1459
|
10105 lt_save_allow_undefined_flag=$allow_undefined_flag
|
adam@1459
|
10106 allow_undefined_flag=
|
adam@1459
|
10107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
|
adamc@1132
|
10108 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
adamc@1132
|
10109 ac_status=$?
|
adamc@1132
|
10110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1132
|
10111 test $ac_status = 0; }
|
adam@1459
|
10112 then
|
adam@1459
|
10113 lt_cv_archive_cmds_need_lc=no
|
adam@1459
|
10114 else
|
adam@1459
|
10115 lt_cv_archive_cmds_need_lc=yes
|
adam@1459
|
10116 fi
|
adam@1459
|
10117 allow_undefined_flag=$lt_save_allow_undefined_flag
|
adam@1459
|
10118 else
|
adam@1459
|
10119 cat conftest.err 1>&5
|
adam@1459
|
10120 fi
|
adam@1459
|
10121 $RM conftest*
|
adam@1459
|
10122
|
adam@1459
|
10123 fi
|
adam@1459
|
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
|
adam@1459
|
10125 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
|
adam@1459
|
10126 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
|
adamc@1132
|
10127 ;;
|
adamc@1132
|
10128 esac
|
adamc@1132
|
10129 fi
|
adamc@1132
|
10130 ;;
|
adamc@1132
|
10131 esac
|
adamc@1132
|
10132
|
adamc@1132
|
10133
|
adamc@1132
|
10134
|
adamc@1132
|
10135
|
adamc@1132
|
10136
|
adamc@1132
|
10137
|
adamc@1132
|
10138
|
adamc@1132
|
10139
|
adamc@1132
|
10140
|
adamc@1132
|
10141
|
adamc@1132
|
10142
|
adamc@1132
|
10143
|
adamc@1132
|
10144
|
adamc@1132
|
10145
|
adamc@1132
|
10146
|
adamc@1132
|
10147
|
adamc@1132
|
10148
|
adamc@1132
|
10149
|
adamc@1132
|
10150
|
adamc@1132
|
10151
|
adamc@1132
|
10152
|
adamc@1132
|
10153
|
adamc@1132
|
10154
|
adamc@1132
|
10155
|
adamc@1132
|
10156
|
adamc@1132
|
10157
|
adamc@1132
|
10158
|
adamc@1132
|
10159
|
adamc@1132
|
10160
|
adamc@1132
|
10161
|
adamc@1132
|
10162
|
adamc@1132
|
10163
|
adamc@1132
|
10164
|
adamc@1132
|
10165
|
adamc@1132
|
10166
|
adamc@1132
|
10167
|
adamc@1132
|
10168
|
adamc@1132
|
10169
|
adamc@1132
|
10170
|
adamc@1132
|
10171
|
adamc@1132
|
10172
|
adamc@1132
|
10173
|
adamc@1132
|
10174
|
adamc@1132
|
10175
|
adamc@1132
|
10176
|
adamc@1132
|
10177
|
adamc@1132
|
10178
|
adamc@1132
|
10179
|
adamc@1132
|
10180
|
adamc@1132
|
10181
|
adamc@1132
|
10182
|
adamc@1132
|
10183
|
adamc@1132
|
10184
|
adamc@1132
|
10185
|
adamc@1132
|
10186
|
adamc@1132
|
10187
|
adamc@1132
|
10188
|
adamc@1132
|
10189
|
adamc@1132
|
10190
|
adamc@1132
|
10191
|
adamc@1132
|
10192
|
adamc@1132
|
10193
|
adamc@1132
|
10194
|
adamc@1132
|
10195
|
adamc@1132
|
10196
|
adamc@1132
|
10197
|
adamc@1132
|
10198
|
adamc@1132
|
10199
|
adamc@1132
|
10200
|
adamc@1132
|
10201
|
adamc@1132
|
10202
|
adamc@1132
|
10203
|
adamc@1132
|
10204
|
adamc@1132
|
10205
|
adamc@1132
|
10206
|
adamc@1132
|
10207
|
adamc@1132
|
10208
|
adamc@1132
|
10209
|
adamc@1132
|
10210
|
adamc@1132
|
10211
|
adamc@1132
|
10212
|
adamc@1132
|
10213
|
adamc@1132
|
10214
|
adamc@1132
|
10215
|
adamc@1132
|
10216
|
adamc@1132
|
10217
|
adamc@1132
|
10218
|
adamc@1132
|
10219
|
adamc@1132
|
10220
|
adamc@1132
|
10221
|
adamc@1132
|
10222
|
adamc@1132
|
10223
|
adamc@1132
|
10224
|
adamc@1132
|
10225
|
adamc@1132
|
10226
|
adamc@1132
|
10227
|
adamc@1132
|
10228
|
adamc@1132
|
10229
|
adamc@1132
|
10230
|
adamc@1132
|
10231
|
adamc@1132
|
10232
|
adamc@1132
|
10233
|
adamc@1132
|
10234
|
adamc@1132
|
10235
|
adamc@1132
|
10236
|
adamc@1132
|
10237
|
adamc@1132
|
10238
|
adamc@1132
|
10239
|
adamc@1132
|
10240
|
adamc@1132
|
10241
|
adamc@1132
|
10242
|
adamc@1132
|
10243
|
adamc@1132
|
10244
|
adamc@1132
|
10245
|
adamc@1132
|
10246
|
adamc@1132
|
10247
|
adamc@1132
|
10248
|
adamc@1132
|
10249
|
adamc@1132
|
10250
|
adamc@1132
|
10251
|
adamc@1132
|
10252
|
adamc@1132
|
10253
|
adamc@1132
|
10254
|
adamc@1132
|
10255
|
adamc@1132
|
10256
|
adamc@1132
|
10257
|
adamc@1132
|
10258
|
adamc@1132
|
10259
|
adamc@1132
|
10260
|
adamc@1132
|
10261
|
adamc@1132
|
10262
|
adamc@1132
|
10263
|
adamc@1132
|
10264
|
adamc@1132
|
10265
|
adamc@1132
|
10266
|
adamc@1132
|
10267
|
adamc@1132
|
10268
|
adamc@1132
|
10269
|
adamc@1132
|
10270
|
adamc@1132
|
10271
|
adamc@1132
|
10272
|
adamc@1132
|
10273
|
adamc@1132
|
10274
|
adamc@1132
|
10275
|
adamc@1132
|
10276
|
adamc@1132
|
10277
|
adamc@1132
|
10278
|
adamc@1132
|
10279
|
adamc@1132
|
10280
|
adamc@1132
|
10281
|
adamc@1132
|
10282
|
adamc@1132
|
10283
|
adamc@1132
|
10284
|
adamc@1132
|
10285
|
adamc@1132
|
10286
|
adamc@1132
|
10287
|
adamc@1132
|
10288
|
adamc@1132
|
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
|
adamc@1132
|
10290 $as_echo_n "checking dynamic linker characteristics... " >&6; }
|
adamc@1132
|
10291
|
adamc@1132
|
10292 if test "$GCC" = yes; then
|
adamc@1132
|
10293 case $host_os in
|
adamc@1132
|
10294 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
|
adamc@1132
|
10295 *) lt_awk_arg="/^libraries:/" ;;
|
adamc@1132
|
10296 esac
|
adam@1459
|
10297 case $host_os in
|
adam@1459
|
10298 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
|
adam@1459
|
10299 *) lt_sed_strip_eq="s,=/,/,g" ;;
|
adam@1459
|
10300 esac
|
adam@1459
|
10301 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
|
adam@1459
|
10302 case $lt_search_path_spec in
|
adam@1459
|
10303 *\;*)
|
adamc@1132
|
10304 # if the path contains ";" then we assume it to be the separator
|
adamc@1132
|
10305 # otherwise default to the standard path separator (i.e. ":") - it is
|
adamc@1132
|
10306 # assumed that no part of a normal pathname contains ";" but that should
|
adamc@1132
|
10307 # okay in the real world where ";" in dirpaths is itself problematic.
|
adam@1459
|
10308 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
|
adam@1459
|
10309 ;;
|
adam@1459
|
10310 *)
|
adam@1459
|
10311 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
|
adam@1459
|
10312 ;;
|
adam@1459
|
10313 esac
|
adamc@1132
|
10314 # Ok, now we have the path, separated by spaces, we can step through it
|
adamc@1132
|
10315 # and add multilib dir if necessary.
|
adamc@1132
|
10316 lt_tmp_lt_search_path_spec=
|
adamc@1132
|
10317 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
adamc@1132
|
10318 for lt_sys_path in $lt_search_path_spec; do
|
adamc@1132
|
10319 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
|
adamc@1132
|
10320 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
|
adamc@1132
|
10321 else
|
adamc@1132
|
10322 test -d "$lt_sys_path" && \
|
adamc@1132
|
10323 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
adamc@1132
|
10324 fi
|
adamc@1132
|
10325 done
|
adam@1459
|
10326 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
|
adamc@1132
|
10327 BEGIN {RS=" "; FS="/|\n";} {
|
adamc@1132
|
10328 lt_foo="";
|
adamc@1132
|
10329 lt_count=0;
|
adamc@1132
|
10330 for (lt_i = NF; lt_i > 0; lt_i--) {
|
adamc@1132
|
10331 if ($lt_i != "" && $lt_i != ".") {
|
adamc@1132
|
10332 if ($lt_i == "..") {
|
adamc@1132
|
10333 lt_count++;
|
adamc@1132
|
10334 } else {
|
adamc@1132
|
10335 if (lt_count == 0) {
|
adamc@1132
|
10336 lt_foo="/" $lt_i lt_foo;
|
adamc@1132
|
10337 } else {
|
adamc@1132
|
10338 lt_count--;
|
adamc@1132
|
10339 }
|
adamc@1132
|
10340 }
|
adamc@1132
|
10341 }
|
adamc@1132
|
10342 }
|
adamc@1132
|
10343 if (lt_foo != "") { lt_freq[lt_foo]++; }
|
adamc@1132
|
10344 if (lt_freq[lt_foo] == 1) { print lt_foo; }
|
adamc@1132
|
10345 }'`
|
adam@1459
|
10346 # AWK program above erroneously prepends '/' to C:/dos/paths
|
adam@1459
|
10347 # for these hosts.
|
adam@1459
|
10348 case $host_os in
|
adam@1459
|
10349 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
|
adam@1459
|
10350 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
|
adam@1459
|
10351 esac
|
adam@1459
|
10352 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
|
adamc@1132
|
10353 else
|
adamc@1132
|
10354 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
adamc@1132
|
10355 fi
|
adamc@1132
|
10356 library_names_spec=
|
adamc@1132
|
10357 libname_spec='lib$name'
|
adamc@1132
|
10358 soname_spec=
|
adamc@1132
|
10359 shrext_cmds=".so"
|
adamc@1132
|
10360 postinstall_cmds=
|
adamc@1132
|
10361 postuninstall_cmds=
|
adamc@1132
|
10362 finish_cmds=
|
adamc@1132
|
10363 finish_eval=
|
adamc@1132
|
10364 shlibpath_var=
|
adamc@1132
|
10365 shlibpath_overrides_runpath=unknown
|
adamc@1132
|
10366 version_type=none
|
adamc@1132
|
10367 dynamic_linker="$host_os ld.so"
|
adamc@1132
|
10368 sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
adamc@1132
|
10369 need_lib_prefix=unknown
|
adamc@1132
|
10370 hardcode_into_libs=no
|
adamc@1132
|
10371
|
adamc@1132
|
10372 # when you set need_version to no, make sure it does not cause -set_version
|
adamc@1132
|
10373 # flags to be left without arguments
|
adamc@1132
|
10374 need_version=unknown
|
adamc@1132
|
10375
|
adamc@1132
|
10376 case $host_os in
|
adamc@1132
|
10377 aix3*)
|
adamc@1132
|
10378 version_type=linux
|
adamc@1132
|
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
adamc@1132
|
10380 shlibpath_var=LIBPATH
|
adamc@1132
|
10381
|
adamc@1132
|
10382 # AIX 3 has no versioning support, so we append a major version to the name.
|
adamc@1132
|
10383 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
10384 ;;
|
adamc@1132
|
10385
|
adamc@1132
|
10386 aix[4-9]*)
|
adamc@1132
|
10387 version_type=linux
|
adamc@1132
|
10388 need_lib_prefix=no
|
adamc@1132
|
10389 need_version=no
|
adamc@1132
|
10390 hardcode_into_libs=yes
|
adamc@1132
|
10391 if test "$host_cpu" = ia64; then
|
adamc@1132
|
10392 # AIX 5 supports IA64
|
adamc@1132
|
10393 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
adamc@1132
|
10394 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
10395 else
|
adamc@1132
|
10396 # With GCC up to 2.95.x, collect2 would create an import file
|
adamc@1132
|
10397 # for dependence libraries. The import file would start with
|
adamc@1132
|
10398 # the line `#! .'. This would cause the generated library to
|
adamc@1132
|
10399 # depend on `.', always an invalid library. This was fixed in
|
adamc@1132
|
10400 # development snapshots of GCC prior to 3.0.
|
adamc@1132
|
10401 case $host_os in
|
adamc@1132
|
10402 aix4 | aix4.[01] | aix4.[01].*)
|
adamc@1132
|
10403 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
adamc@1132
|
10404 echo ' yes '
|
adamc@1132
|
10405 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
|
adamc@1132
|
10406 :
|
adamc@1132
|
10407 else
|
adamc@1132
|
10408 can_build_shared=no
|
adamc@1132
|
10409 fi
|
adamc@1132
|
10410 ;;
|
adamc@1132
|
10411 esac
|
adamc@1132
|
10412 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
adamc@1132
|
10413 # soname into executable. Probably we can add versioning support to
|
adamc@1132
|
10414 # collect2, so additional links can be useful in future.
|
adamc@1132
|
10415 if test "$aix_use_runtimelinking" = yes; then
|
adamc@1132
|
10416 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
adamc@1132
|
10417 # instead of lib<name>.a to let people know that these are not
|
adamc@1132
|
10418 # typical AIX shared libraries.
|
adamc@1132
|
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
adamc@1132
|
10420 else
|
adamc@1132
|
10421 # We preserve .a as extension for shared libraries through AIX4.2
|
adamc@1132
|
10422 # and later when we are not doing run time linking.
|
adamc@1132
|
10423 library_names_spec='${libname}${release}.a $libname.a'
|
adamc@1132
|
10424 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
10425 fi
|
adamc@1132
|
10426 shlibpath_var=LIBPATH
|
adamc@1132
|
10427 fi
|
adamc@1132
|
10428 ;;
|
adamc@1132
|
10429
|
adamc@1132
|
10430 amigaos*)
|
adamc@1132
|
10431 case $host_cpu in
|
adamc@1132
|
10432 powerpc)
|
adamc@1132
|
10433 # Since July 2007 AmigaOS4 officially supports .so libraries.
|
adamc@1132
|
10434 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
|
adamc@1132
|
10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
adamc@1132
|
10436 ;;
|
adamc@1132
|
10437 m68k)
|
adamc@1132
|
10438 library_names_spec='$libname.ixlibrary $libname.a'
|
adamc@1132
|
10439 # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
adam@1459
|
10440 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
|
adamc@1132
|
10441 ;;
|
adamc@1132
|
10442 esac
|
adamc@1132
|
10443 ;;
|
adamc@1132
|
10444
|
adamc@1132
|
10445 beos*)
|
adamc@1132
|
10446 library_names_spec='${libname}${shared_ext}'
|
adamc@1132
|
10447 dynamic_linker="$host_os ld.so"
|
adamc@1132
|
10448 shlibpath_var=LIBRARY_PATH
|
adamc@1132
|
10449 ;;
|
adamc@1132
|
10450
|
adamc@1132
|
10451 bsdi[45]*)
|
adamc@1132
|
10452 version_type=linux
|
adamc@1132
|
10453 need_version=no
|
adamc@1132
|
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
adamc@1132
|
10455 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
10456 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
adamc@1132
|
10457 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
10458 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
adamc@1132
|
10459 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
adamc@1132
|
10460 # the default ld.so.conf also contains /usr/contrib/lib and
|
adamc@1132
|
10461 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
adamc@1132
|
10462 # libtool to hard-code these into programs
|
adamc@1132
|
10463 ;;
|
adamc@1132
|
10464
|
adamc@1132
|
10465 cygwin* | mingw* | pw32* | cegcc*)
|
adamc@1132
|
10466 version_type=windows
|
adamc@1132
|
10467 shrext_cmds=".dll"
|
adamc@1132
|
10468 need_version=no
|
adamc@1132
|
10469 need_lib_prefix=no
|
adamc@1132
|
10470
|
adam@1459
|
10471 case $GCC,$cc_basename in
|
adam@1459
|
10472 yes,*)
|
adam@1459
|
10473 # gcc
|
adamc@1132
|
10474 library_names_spec='$libname.dll.a'
|
adamc@1132
|
10475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
adamc@1132
|
10476 postinstall_cmds='base_file=`basename \${file}`~
|
adamc@1132
|
10477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
adamc@1132
|
10478 dldir=$destdir/`dirname \$dlpath`~
|
adamc@1132
|
10479 test -d \$dldir || mkdir -p \$dldir~
|
adamc@1132
|
10480 $install_prog $dir/$dlname \$dldir/$dlname~
|
adamc@1132
|
10481 chmod a+x \$dldir/$dlname~
|
adamc@1132
|
10482 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
adamc@1132
|
10483 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
adamc@1132
|
10484 fi'
|
adamc@1132
|
10485 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
adamc@1132
|
10486 dlpath=$dir/\$dldll~
|
adamc@1132
|
10487 $RM \$dlpath'
|
adamc@1132
|
10488 shlibpath_overrides_runpath=yes
|
adamc@1132
|
10489
|
adamc@1132
|
10490 case $host_os in
|
adamc@1132
|
10491 cygwin*)
|
adamc@1132
|
10492 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
adamc@1132
|
10493 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
adam@1459
|
10494
|
adam@1459
|
10495 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
|
adamc@1132
|
10496 ;;
|
adamc@1132
|
10497 mingw* | cegcc*)
|
adamc@1132
|
10498 # MinGW DLLs use traditional 'lib' prefix
|
adamc@1132
|
10499 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
adamc@1132
|
10500 ;;
|
adamc@1132
|
10501 pw32*)
|
adamc@1132
|
10502 # pw32 DLLs use 'pw' prefix rather than 'lib'
|
adamc@1132
|
10503 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
adamc@1132
|
10504 ;;
|
adamc@1132
|
10505 esac
|
adam@1459
|
10506 dynamic_linker='Win32 ld.exe'
|
adam@1459
|
10507 ;;
|
adam@1459
|
10508
|
adam@1459
|
10509 *,cl*)
|
adam@1459
|
10510 # Native MSVC
|
adam@1459
|
10511 libname_spec='$name'
|
adam@1459
|
10512 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
adam@1459
|
10513 library_names_spec='${libname}.dll.lib'
|
adam@1459
|
10514
|
adam@1459
|
10515 case $build_os in
|
adam@1459
|
10516 mingw*)
|
adam@1459
|
10517 sys_lib_search_path_spec=
|
adam@1459
|
10518 lt_save_ifs=$IFS
|
adam@1459
|
10519 IFS=';'
|
adam@1459
|
10520 for lt_path in $LIB
|
adam@1459
|
10521 do
|
adam@1459
|
10522 IFS=$lt_save_ifs
|
adam@1459
|
10523 # Let DOS variable expansion print the short 8.3 style file name.
|
adam@1459
|
10524 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
adam@1459
|
10525 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
adam@1459
|
10526 done
|
adam@1459
|
10527 IFS=$lt_save_ifs
|
adam@1459
|
10528 # Convert to MSYS style.
|
adam@1459
|
10529 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
adam@1459
|
10530 ;;
|
adam@1459
|
10531 cygwin*)
|
adam@1459
|
10532 # Convert to unix form, then to dos form, then back to unix form
|
adam@1459
|
10533 # but this time dos style (no spaces!) so that the unix form looks
|
adam@1459
|
10534 # like /cygdrive/c/PROGRA~1:/cygdr...
|
adam@1459
|
10535 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
adam@1459
|
10536 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
adam@1459
|
10537 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
adam@1459
|
10538 ;;
|
adam@1459
|
10539 *)
|
adam@1459
|
10540 sys_lib_search_path_spec="$LIB"
|
adam@1459
|
10541 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
adam@1459
|
10542 # It is most probably a Windows format PATH.
|
adam@1459
|
10543 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
adam@1459
|
10544 else
|
adam@1459
|
10545 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
adam@1459
|
10546 fi
|
adam@1459
|
10547 # FIXME: find the short name or the path components, as spaces are
|
adam@1459
|
10548 # common. (e.g. "Program Files" -> "PROGRA~1")
|
adam@1459
|
10549 ;;
|
adam@1459
|
10550 esac
|
adam@1459
|
10551
|
adam@1459
|
10552 # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
adam@1459
|
10553 postinstall_cmds='base_file=`basename \${file}`~
|
adam@1459
|
10554 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
adam@1459
|
10555 dldir=$destdir/`dirname \$dlpath`~
|
adam@1459
|
10556 test -d \$dldir || mkdir -p \$dldir~
|
adam@1459
|
10557 $install_prog $dir/$dlname \$dldir/$dlname'
|
adam@1459
|
10558 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
adam@1459
|
10559 dlpath=$dir/\$dldll~
|
adam@1459
|
10560 $RM \$dlpath'
|
adam@1459
|
10561 shlibpath_overrides_runpath=yes
|
adam@1459
|
10562 dynamic_linker='Win32 link.exe'
|
adamc@1132
|
10563 ;;
|
adamc@1132
|
10564
|
adamc@1132
|
10565 *)
|
adam@1459
|
10566 # Assume MSVC wrapper
|
adamc@1132
|
10567 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
adam@1459
|
10568 dynamic_linker='Win32 ld.exe'
|
adamc@1132
|
10569 ;;
|
adamc@1132
|
10570 esac
|
adamc@1132
|
10571 # FIXME: first we should search . and the directory the executable is in
|
adamc@1132
|
10572 shlibpath_var=PATH
|
adamc@1132
|
10573 ;;
|
adamc@1132
|
10574
|
adamc@1132
|
10575 darwin* | rhapsody*)
|
adamc@1132
|
10576 dynamic_linker="$host_os dyld"
|
adamc@1132
|
10577 version_type=darwin
|
adamc@1132
|
10578 need_lib_prefix=no
|
adamc@1132
|
10579 need_version=no
|
adamc@1132
|
10580 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
adamc@1132
|
10581 soname_spec='${libname}${release}${major}$shared_ext'
|
adamc@1132
|
10582 shlibpath_overrides_runpath=yes
|
adamc@1132
|
10583 shlibpath_var=DYLD_LIBRARY_PATH
|
adamc@1132
|
10584 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
adamc@1132
|
10585
|
adamc@1132
|
10586 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
|
adamc@1132
|
10587 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
adamc@1132
|
10588 ;;
|
adamc@1132
|
10589
|
adamc@1132
|
10590 dgux*)
|
adamc@1132
|
10591 version_type=linux
|
adamc@1132
|
10592 need_lib_prefix=no
|
adamc@1132
|
10593 need_version=no
|
adamc@1132
|
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
adamc@1132
|
10595 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
10596 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
10597 ;;
|
adamc@1132
|
10598
|
adamc@1132
|
10599 freebsd1*)
|
adamc@1132
|
10600 dynamic_linker=no
|
adamc@1132
|
10601 ;;
|
adamc@1132
|
10602
|
adamc@1132
|
10603 freebsd* | dragonfly*)
|
adamc@1132
|
10604 # DragonFly does not have aout. When/if they implement a new
|
adamc@1132
|
10605 # versioning mechanism, adjust this.
|
adamc@1132
|
10606 if test -x /usr/bin/objformat; then
|
adamc@1132
|
10607 objformat=`/usr/bin/objformat`
|
adamc@1132
|
10608 else
|
adamc@1132
|
10609 case $host_os in
|
adamc@1132
|
10610 freebsd[123]*) objformat=aout ;;
|
adamc@1132
|
10611 *) objformat=elf ;;
|
adamc@1132
|
10612 esac
|
adamc@1132
|
10613 fi
|
adamc@1132
|
10614 version_type=freebsd-$objformat
|
adamc@1132
|
10615 case $version_type in
|
adamc@1132
|
10616 freebsd-elf*)
|
adamc@1132
|
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
adamc@1132
|
10618 need_version=no
|
adamc@1132
|
10619 need_lib_prefix=no
|
adamc@1132
|
10620 ;;
|
adamc@1132
|
10621 freebsd-*)
|
adamc@1132
|
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
adamc@1132
|
10623 need_version=yes
|
adamc@1132
|
10624 ;;
|
adamc@1132
|
10625 esac
|
adamc@1132
|
10626 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
10627 case $host_os in
|
adamc@1132
|
10628 freebsd2*)
|
adamc@1132
|
10629 shlibpath_overrides_runpath=yes
|
adamc@1132
|
10630 ;;
|
adamc@1132
|
10631 freebsd3.[01]* | freebsdelf3.[01]*)
|
adamc@1132
|
10632 shlibpath_overrides_runpath=yes
|
adamc@1132
|
10633 hardcode_into_libs=yes
|
adamc@1132
|
10634 ;;
|
adamc@1132
|
10635 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
adamc@1132
|
10636 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
adamc@1132
|
10637 shlibpath_overrides_runpath=no
|
adamc@1132
|
10638 hardcode_into_libs=yes
|
adamc@1132
|
10639 ;;
|
adamc@1132
|
10640 *) # from 4.6 on, and DragonFly
|
adamc@1132
|
10641 shlibpath_overrides_runpath=yes
|
adamc@1132
|
10642 hardcode_into_libs=yes
|
adamc@1132
|
10643 ;;
|
adamc@1132
|
10644 esac
|
adamc@1132
|
10645 ;;
|
adamc@1132
|
10646
|
adamc@1132
|
10647 gnu*)
|
adamc@1132
|
10648 version_type=linux
|
adamc@1132
|
10649 need_lib_prefix=no
|
adamc@1132
|
10650 need_version=no
|
adamc@1132
|
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
adamc@1132
|
10652 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
10653 shlibpath_var=LD_LIBRARY_PATH
|
adam@1459
|
10654 shlibpath_overrides_runpath=no
|
adam@1459
|
10655 hardcode_into_libs=yes
|
adam@1459
|
10656 ;;
|
adam@1459
|
10657
|
adam@1459
|
10658 haiku*)
|
adam@1459
|
10659 version_type=linux
|
adam@1459
|
10660 need_lib_prefix=no
|
adam@1459
|
10661 need_version=no
|
adam@1459
|
10662 dynamic_linker="$host_os runtime_loader"
|
adam@1459
|
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
adam@1459
|
10664 soname_spec='${libname}${release}${shared_ext}$major'
|
adam@1459
|
10665 shlibpath_var=LIBRARY_PATH
|
adam@1459
|
10666 shlibpath_overrides_runpath=yes
|
adam@1459
|
10667 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
adamc@1132
|
10668 hardcode_into_libs=yes
|
adamc@1132
|
10669 ;;
|
adamc@1132
|
10670
|
adamc@1132
|
10671 hpux9* | hpux10* | hpux11*)
|
adamc@1132
|
10672 # Give a soname corresponding to the major version so that dld.sl refuses to
|
adamc@1132
|
10673 # link against other versions.
|
adamc@1132
|
10674 version_type=sunos
|
adamc@1132
|
10675 need_lib_prefix=no
|
adamc@1132
|
10676 need_version=no
|
adamc@1132
|
10677 case $host_cpu in
|
adamc@1132
|
10678 ia64*)
|
adamc@1132
|
10679 shrext_cmds='.so'
|
adamc@1132
|
10680 hardcode_into_libs=yes
|
adamc@1132
|
10681 dynamic_linker="$host_os dld.so"
|
adamc@1132
|
10682 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
10683 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
adamc@1132
|
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
adamc@1132
|
10685 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
10686 if test "X$HPUX_IA64_MODE" = X32; then
|
adamc@1132
|
10687 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
adamc@1132
|
10688 else
|
adamc@1132
|
10689 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
adamc@1132
|
10690 fi
|
adamc@1132
|
10691 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
adamc@1132
|
10692 ;;
|
adamc@1132
|
10693 hppa*64*)
|
adamc@1132
|
10694 shrext_cmds='.sl'
|
adamc@1132
|
10695 hardcode_into_libs=yes
|
adamc@1132
|
10696 dynamic_linker="$host_os dld.sl"
|
adamc@1132
|
10697 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
adamc@1132
|
10698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
adamc@1132
|
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
adamc@1132
|
10700 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
10701 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
adamc@1132
|
10702 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
adamc@1132
|
10703 ;;
|
adamc@1132
|
10704 *)
|
adamc@1132
|
10705 shrext_cmds='.sl'
|
adamc@1132
|
10706 dynamic_linker="$host_os dld.sl"
|
adamc@1132
|
10707 shlibpath_var=SHLIB_PATH
|
adamc@1132
|
10708 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
adamc@1132
|
10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
adamc@1132
|
10710 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
10711 ;;
|
adamc@1132
|
10712 esac
|
adam@1459
|
10713 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
|
adamc@1132
|
10714 postinstall_cmds='chmod 555 $lib'
|
adam@1459
|
10715 # or fails outright, so override atomically:
|
adam@1459
|
10716 install_override_mode=555
|
adamc@1132
|
10717 ;;
|
adamc@1132
|
10718
|
adamc@1132
|
10719 interix[3-9]*)
|
adamc@1132
|
10720 version_type=linux
|
adamc@1132
|
10721 need_lib_prefix=no
|
adamc@1132
|
10722 need_version=no
|
adamc@1132
|
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
adamc@1132
|
10724 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
10725 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
adamc@1132
|
10726 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
10727 shlibpath_overrides_runpath=no
|
adamc@1132
|
10728 hardcode_into_libs=yes
|
adamc@1132
|
10729 ;;
|
adamc@1132
|
10730
|
adamc@1132
|
10731 irix5* | irix6* | nonstopux*)
|
adamc@1132
|
10732 case $host_os in
|
adamc@1132
|
10733 nonstopux*) version_type=nonstopux ;;
|
adamc@1132
|
10734 *)
|
adamc@1132
|
10735 if test "$lt_cv_prog_gnu_ld" = yes; then
|
adamc@1132
|
10736 version_type=linux
|
adamc@1132
|
10737 else
|
adamc@1132
|
10738 version_type=irix
|
adamc@1132
|
10739 fi ;;
|
adamc@1132
|
10740 esac
|
adamc@1132
|
10741 need_lib_prefix=no
|
adamc@1132
|
10742 need_version=no
|
adamc@1132
|
10743 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
adamc@1132
|
10745 case $host_os in
|
adamc@1132
|
10746 irix5* | nonstopux*)
|
adamc@1132
|
10747 libsuff= shlibsuff=
|
adamc@1132
|
10748 ;;
|
adamc@1132
|
10749 *)
|
adamc@1132
|
10750 case $LD in # libtool.m4 will add one of these switches to LD
|
adamc@1132
|
10751 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
adamc@1132
|
10752 libsuff= shlibsuff= libmagic=32-bit;;
|
adamc@1132
|
10753 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
adamc@1132
|
10754 libsuff=32 shlibsuff=N32 libmagic=N32;;
|
adamc@1132
|
10755 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
adamc@1132
|
10756 libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
adamc@1132
|
10757 *) libsuff= shlibsuff= libmagic=never-match;;
|
adamc@1132
|
10758 esac
|
adamc@1132
|
10759 ;;
|
adamc@1132
|
10760 esac
|
adamc@1132
|
10761 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
adamc@1132
|
10762 shlibpath_overrides_runpath=no
|
adamc@1132
|
10763 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
adamc@1132
|
10764 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
adamc@1132
|
10765 hardcode_into_libs=yes
|
adamc@1132
|
10766 ;;
|
adamc@1132
|
10767
|
adamc@1132
|
10768 # No shared lib support for Linux oldld, aout, or coff.
|
adamc@1132
|
10769 linux*oldld* | linux*aout* | linux*coff*)
|
adamc@1132
|
10770 dynamic_linker=no
|
adamc@1132
|
10771 ;;
|
adamc@1132
|
10772
|
adamc@1132
|
10773 # This must be Linux ELF.
|
adamc@1132
|
10774 linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
adamc@1132
|
10775 version_type=linux
|
adamc@1132
|
10776 need_lib_prefix=no
|
adamc@1132
|
10777 need_version=no
|
adamc@1132
|
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
adamc@1132
|
10779 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
10780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
adamc@1132
|
10781 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
10782 shlibpath_overrides_runpath=no
|
adam@1459
|
10783
|
adamc@1132
|
10784 # Some binutils ld are patched to set DT_RUNPATH
|
adam@1459
|
10785 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
|
adam@1459
|
10786 $as_echo_n "(cached) " >&6
|
adam@1459
|
10787 else
|
adam@1459
|
10788 lt_cv_shlibpath_overrides_runpath=no
|
adam@1459
|
10789 save_LDFLAGS=$LDFLAGS
|
adam@1459
|
10790 save_libdir=$libdir
|
adam@1459
|
10791 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
|
adam@1459
|
10792 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
|
adam@1459
|
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1132
|
10794 /* end confdefs.h. */
|
adamc@1132
|
10795
|
adamc@1132
|
10796 int
|
adamc@1132
|
10797 main ()
|
adamc@1132
|
10798 {
|
adamc@1132
|
10799
|
adamc@1132
|
10800 ;
|
adamc@1132
|
10801 return 0;
|
adamc@1132
|
10802 }
|
adamc@1132
|
10803 _ACEOF
|
adamc@1132
|
10804 if ac_fn_c_try_link "$LINENO"; then :
|
adamc@1132
|
10805 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
|
adam@1459
|
10806 lt_cv_shlibpath_overrides_runpath=yes
|
adamc@1132
|
10807 fi
|
adamc@1132
|
10808 fi
|
adamc@1132
|
10809 rm -f core conftest.err conftest.$ac_objext \
|
adamc@1132
|
10810 conftest$ac_exeext conftest.$ac_ext
|
adam@1459
|
10811 LDFLAGS=$save_LDFLAGS
|
adam@1459
|
10812 libdir=$save_libdir
|
adam@1459
|
10813
|
adam@1459
|
10814 fi
|
adam@1459
|
10815
|
adam@1459
|
10816 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
|
adamc@1132
|
10817
|
adamc@1132
|
10818 # This implies no fast_install, which is unacceptable.
|
adamc@1132
|
10819 # Some rework will be needed to allow for fast_install
|
adamc@1132
|
10820 # before this can be enabled.
|
adamc@1132
|
10821 hardcode_into_libs=yes
|
adamc@1132
|
10822
|
adamc@1132
|
10823 # Append ld.so.conf contents to the search path
|
adamc@1132
|
10824 if test -f /etc/ld.so.conf; then
|
adam@1459
|
10825 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
|
adamc@1132
|
10826 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
adamc@1132
|
10827 fi
|
adamc@1132
|
10828
|
adamc@1132
|
10829 # We used to test for /lib/ld.so.1 and disable shared libraries on
|
adamc@1132
|
10830 # powerpc, because MkLinux only supported shared libraries with the
|
adamc@1132
|
10831 # GNU dynamic linker. Since this was broken with cross compilers,
|
adamc@1132
|
10832 # most powerpc-linux boxes support dynamic linking these days and
|
adamc@1132
|
10833 # people can always --disable-shared, the test was removed, and we
|
adamc@1132
|
10834 # assume the GNU/Linux dynamic linker is in use.
|
adamc@1132
|
10835 dynamic_linker='GNU/Linux ld.so'
|
adamc@1132
|
10836 ;;
|
adamc@1132
|
10837
|
adamc@1132
|
10838 netbsdelf*-gnu)
|
adamc@1132
|
10839 version_type=linux
|
adamc@1132
|
10840 need_lib_prefix=no
|
adamc@1132
|
10841 need_version=no
|
adamc@1132
|
10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
adamc@1132
|
10843 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
10844 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
10845 shlibpath_overrides_runpath=no
|
adamc@1132
|
10846 hardcode_into_libs=yes
|
adamc@1132
|
10847 dynamic_linker='NetBSD ld.elf_so'
|
adamc@1132
|
10848 ;;
|
adamc@1132
|
10849
|
adamc@1132
|
10850 netbsd*)
|
adamc@1132
|
10851 version_type=sunos
|
adamc@1132
|
10852 need_lib_prefix=no
|
adamc@1132
|
10853 need_version=no
|
adamc@1132
|
10854 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
adamc@1132
|
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
adamc@1132
|
10856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
adamc@1132
|
10857 dynamic_linker='NetBSD (a.out) ld.so'
|
adamc@1132
|
10858 else
|
adamc@1132
|
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
adamc@1132
|
10860 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
10861 dynamic_linker='NetBSD ld.elf_so'
|
adamc@1132
|
10862 fi
|
adamc@1132
|
10863 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
10864 shlibpath_overrides_runpath=yes
|
adamc@1132
|
10865 hardcode_into_libs=yes
|
adamc@1132
|
10866 ;;
|
adamc@1132
|
10867
|
adamc@1132
|
10868 newsos6)
|
adamc@1132
|
10869 version_type=linux
|
adamc@1132
|
10870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
adamc@1132
|
10871 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
10872 shlibpath_overrides_runpath=yes
|
adamc@1132
|
10873 ;;
|
adamc@1132
|
10874
|
adamc@1132
|
10875 *nto* | *qnx*)
|
adamc@1132
|
10876 version_type=qnx
|
adamc@1132
|
10877 need_lib_prefix=no
|
adamc@1132
|
10878 need_version=no
|
adamc@1132
|
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
adamc@1132
|
10880 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
10881 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
10882 shlibpath_overrides_runpath=no
|
adamc@1132
|
10883 hardcode_into_libs=yes
|
adamc@1132
|
10884 dynamic_linker='ldqnx.so'
|
adamc@1132
|
10885 ;;
|
adamc@1132
|
10886
|
adamc@1132
|
10887 openbsd*)
|
adamc@1132
|
10888 version_type=sunos
|
adamc@1132
|
10889 sys_lib_dlsearch_path_spec="/usr/lib"
|
adamc@1132
|
10890 need_lib_prefix=no
|
adamc@1132
|
10891 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
adamc@1132
|
10892 case $host_os in
|
adamc@1132
|
10893 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
adamc@1132
|
10894 *) need_version=no ;;
|
adamc@1132
|
10895 esac
|
adamc@1132
|
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
adamc@1132
|
10897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
adamc@1132
|
10898 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
10899 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
adamc@1132
|
10900 case $host_os in
|
adamc@1132
|
10901 openbsd2.[89] | openbsd2.[89].*)
|
adamc@1132
|
10902 shlibpath_overrides_runpath=no
|
adamc@1132
|
10903 ;;
|
adamc@1132
|
10904 *)
|
adamc@1132
|
10905 shlibpath_overrides_runpath=yes
|
adamc@1132
|
10906 ;;
|
adamc@1132
|
10907 esac
|
adamc@1132
|
10908 else
|
adamc@1132
|
10909 shlibpath_overrides_runpath=yes
|
adamc@1132
|
10910 fi
|
adamc@1132
|
10911 ;;
|
adamc@1132
|
10912
|
adamc@1132
|
10913 os2*)
|
adamc@1132
|
10914 libname_spec='$name'
|
adamc@1132
|
10915 shrext_cmds=".dll"
|
adamc@1132
|
10916 need_lib_prefix=no
|
adamc@1132
|
10917 library_names_spec='$libname${shared_ext} $libname.a'
|
adamc@1132
|
10918 dynamic_linker='OS/2 ld.exe'
|
adamc@1132
|
10919 shlibpath_var=LIBPATH
|
adamc@1132
|
10920 ;;
|
adamc@1132
|
10921
|
adamc@1132
|
10922 osf3* | osf4* | osf5*)
|
adamc@1132
|
10923 version_type=osf
|
adamc@1132
|
10924 need_lib_prefix=no
|
adamc@1132
|
10925 need_version=no
|
adamc@1132
|
10926 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
adamc@1132
|
10928 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
10929 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
adamc@1132
|
10930 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
adamc@1132
|
10931 ;;
|
adamc@1132
|
10932
|
adamc@1132
|
10933 rdos*)
|
adamc@1132
|
10934 dynamic_linker=no
|
adamc@1132
|
10935 ;;
|
adamc@1132
|
10936
|
adamc@1132
|
10937 solaris*)
|
adamc@1132
|
10938 version_type=linux
|
adamc@1132
|
10939 need_lib_prefix=no
|
adamc@1132
|
10940 need_version=no
|
adamc@1132
|
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
adamc@1132
|
10942 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
10943 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
10944 shlibpath_overrides_runpath=yes
|
adamc@1132
|
10945 hardcode_into_libs=yes
|
adamc@1132
|
10946 # ldd complains unless libraries are executable
|
adamc@1132
|
10947 postinstall_cmds='chmod +x $lib'
|
adamc@1132
|
10948 ;;
|
adamc@1132
|
10949
|
adamc@1132
|
10950 sunos4*)
|
adamc@1132
|
10951 version_type=sunos
|
adamc@1132
|
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
adamc@1132
|
10953 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
adamc@1132
|
10954 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
10955 shlibpath_overrides_runpath=yes
|
adamc@1132
|
10956 if test "$with_gnu_ld" = yes; then
|
adamc@1132
|
10957 need_lib_prefix=no
|
adamc@1132
|
10958 fi
|
adamc@1132
|
10959 need_version=yes
|
adamc@1132
|
10960 ;;
|
adamc@1132
|
10961
|
adamc@1132
|
10962 sysv4 | sysv4.3*)
|
adamc@1132
|
10963 version_type=linux
|
adamc@1132
|
10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
adamc@1132
|
10965 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
10966 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
10967 case $host_vendor in
|
adamc@1132
|
10968 sni)
|
adamc@1132
|
10969 shlibpath_overrides_runpath=no
|
adamc@1132
|
10970 need_lib_prefix=no
|
adamc@1132
|
10971 runpath_var=LD_RUN_PATH
|
adamc@1132
|
10972 ;;
|
adamc@1132
|
10973 siemens)
|
adamc@1132
|
10974 need_lib_prefix=no
|
adamc@1132
|
10975 ;;
|
adamc@1132
|
10976 motorola)
|
adamc@1132
|
10977 need_lib_prefix=no
|
adamc@1132
|
10978 need_version=no
|
adamc@1132
|
10979 shlibpath_overrides_runpath=no
|
adamc@1132
|
10980 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
adamc@1132
|
10981 ;;
|
adamc@1132
|
10982 esac
|
adamc@1132
|
10983 ;;
|
adamc@1132
|
10984
|
adamc@1132
|
10985 sysv4*MP*)
|
adamc@1132
|
10986 if test -d /usr/nec ;then
|
adamc@1132
|
10987 version_type=linux
|
adamc@1132
|
10988 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
adamc@1132
|
10989 soname_spec='$libname${shared_ext}.$major'
|
adamc@1132
|
10990 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
10991 fi
|
adamc@1132
|
10992 ;;
|
adamc@1132
|
10993
|
adamc@1132
|
10994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
adamc@1132
|
10995 version_type=freebsd-elf
|
adamc@1132
|
10996 need_lib_prefix=no
|
adamc@1132
|
10997 need_version=no
|
adamc@1132
|
10998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
adamc@1132
|
10999 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
11000 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
11001 shlibpath_overrides_runpath=yes
|
adamc@1132
|
11002 hardcode_into_libs=yes
|
adamc@1132
|
11003 if test "$with_gnu_ld" = yes; then
|
adamc@1132
|
11004 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
adamc@1132
|
11005 else
|
adamc@1132
|
11006 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
adamc@1132
|
11007 case $host_os in
|
adamc@1132
|
11008 sco3.2v5*)
|
adamc@1132
|
11009 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
adamc@1132
|
11010 ;;
|
adamc@1132
|
11011 esac
|
adamc@1132
|
11012 fi
|
adamc@1132
|
11013 sys_lib_dlsearch_path_spec='/usr/lib'
|
adamc@1132
|
11014 ;;
|
adamc@1132
|
11015
|
adamc@1132
|
11016 tpf*)
|
adamc@1132
|
11017 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
adamc@1132
|
11018 version_type=linux
|
adamc@1132
|
11019 need_lib_prefix=no
|
adamc@1132
|
11020 need_version=no
|
adamc@1132
|
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
adamc@1132
|
11022 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
11023 shlibpath_overrides_runpath=no
|
adamc@1132
|
11024 hardcode_into_libs=yes
|
adamc@1132
|
11025 ;;
|
adamc@1132
|
11026
|
adamc@1132
|
11027 uts4*)
|
adamc@1132
|
11028 version_type=linux
|
adamc@1132
|
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
adamc@1132
|
11030 soname_spec='${libname}${release}${shared_ext}$major'
|
adamc@1132
|
11031 shlibpath_var=LD_LIBRARY_PATH
|
adamc@1132
|
11032 ;;
|
adamc@1132
|
11033
|
adamc@1132
|
11034 *)
|
adamc@1132
|
11035 dynamic_linker=no
|
adamc@1132
|
11036 ;;
|
adamc@1132
|
11037 esac
|
adamc@1132
|
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
|
adamc@1132
|
11039 $as_echo "$dynamic_linker" >&6; }
|
adamc@1132
|
11040 test "$dynamic_linker" = no && can_build_shared=no
|
adamc@1132
|
11041
|
adamc@1132
|
11042 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
adamc@1132
|
11043 if test "$GCC" = yes; then
|
adamc@1132
|
11044 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
adamc@1132
|
11045 fi
|
adamc@1132
|
11046
|
adamc@1132
|
11047 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
|
adamc@1132
|
11048 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
|
adamc@1132
|
11049 fi
|
adamc@1132
|
11050 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
|
adamc@1132
|
11051 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
|
adamc@1132
|
11052 fi
|
adamc@1132
|
11053
|
adamc@1132
|
11054
|
adamc@1132
|
11055
|
adamc@1132
|
11056
|
adamc@1132
|
11057
|
adamc@1132
|
11058
|
adamc@1132
|
11059
|
adamc@1132
|
11060
|
adamc@1132
|
11061
|
adamc@1132
|
11062
|
adamc@1132
|
11063
|
adamc@1132
|
11064
|
adamc@1132
|
11065
|
adamc@1132
|
11066
|
adamc@1132
|
11067
|
adamc@1132
|
11068
|
adamc@1132
|
11069
|
adamc@1132
|
11070
|
adamc@1132
|
11071
|
adamc@1132
|
11072
|
adamc@1132
|
11073
|
adamc@1132
|
11074
|
adamc@1132
|
11075
|
adamc@1132
|
11076
|
adamc@1132
|
11077
|
adamc@1132
|
11078
|
adamc@1132
|
11079
|
adamc@1132
|
11080
|
adamc@1132
|
11081
|
adamc@1132
|
11082
|
adamc@1132
|
11083
|
adamc@1132
|
11084
|
adamc@1132
|
11085
|
adamc@1132
|
11086
|
adamc@1132
|
11087
|
adamc@1132
|
11088
|
adamc@1132
|
11089
|
adamc@1132
|
11090
|
adamc@1132
|
11091
|
adamc@1132
|
11092
|
adamc@1132
|
11093
|
adamc@1132
|
11094
|
adamc@1132
|
11095
|
adamc@1132
|
11096
|
adamc@1132
|
11097
|
adamc@1132
|
11098
|
adamc@1132
|
11099
|
adamc@1132
|
11100
|
adamc@1132
|
11101
|
adamc@1132
|
11102
|
adamc@1132
|
11103
|
adamc@1132
|
11104
|
adamc@1132
|
11105
|
adamc@1132
|
11106
|
adamc@1132
|
11107
|
adamc@1132
|
11108
|
adamc@1132
|
11109
|
adamc@1132
|
11110
|
adamc@1132
|
11111
|
adamc@1132
|
11112
|
adamc@1132
|
11113
|
adamc@1132
|
11114
|
adamc@1132
|
11115
|
adamc@1132
|
11116
|
adamc@1132
|
11117
|
adamc@1132
|
11118
|
adamc@1132
|
11119
|
adamc@1132
|
11120
|
adamc@1132
|
11121
|
adamc@1132
|
11122
|
adamc@1132
|
11123
|
adamc@1132
|
11124
|
adamc@1132
|
11125
|
adamc@1132
|
11126
|
adamc@1132
|
11127
|
adamc@1132
|
11128
|
adamc@1132
|
11129
|
adamc@1132
|
11130
|
adamc@1132
|
11131
|
adamc@1132
|
11132
|
adamc@1132
|
11133
|
adamc@1132
|
11134
|
adamc@1132
|
11135
|
adamc@1132
|
11136
|
adamc@1132
|
11137
|
adamc@1132
|
11138
|
adamc@1132
|
11139
|
adam@1459
|
11140
|
adam@1459
|
11141
|
adam@1459
|
11142
|
adam@1459
|
11143
|
adam@1459
|
11144
|
adamc@1132
|
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
|
adamc@1132
|
11146 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
|
adamc@1132
|
11147 hardcode_action=
|
adamc@1132
|
11148 if test -n "$hardcode_libdir_flag_spec" ||
|
adamc@1132
|
11149 test -n "$runpath_var" ||
|
adamc@1132
|
11150 test "X$hardcode_automatic" = "Xyes" ; then
|
adamc@1132
|
11151
|
adamc@1132
|
11152 # We can hardcode non-existent directories.
|
adamc@1132
|
11153 if test "$hardcode_direct" != no &&
|
adamc@1132
|
11154 # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
adamc@1132
|
11155 # have to relink, otherwise we might link with an installed library
|
adamc@1132
|
11156 # when we should be linking with a yet-to-be-installed one
|
adamc@1132
|
11157 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
|
adamc@1132
|
11158 test "$hardcode_minus_L" != no; then
|
adamc@1132
|
11159 # Linking always hardcodes the temporary library directory.
|
adamc@1132
|
11160 hardcode_action=relink
|
adamc@1132
|
11161 else
|
adamc@1132
|
11162 # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
adamc@1132
|
11163 hardcode_action=immediate
|
adamc@1132
|
11164 fi
|
adamc@1132
|
11165 else
|
adamc@1132
|
11166 # We cannot hardcode anything, or else we can only hardcode existing
|
adamc@1132
|
11167 # directories.
|
adamc@1132
|
11168 hardcode_action=unsupported
|
adamc@1132
|
11169 fi
|
adamc@1132
|
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
|
adamc@1132
|
11171 $as_echo "$hardcode_action" >&6; }
|
adamc@1132
|
11172
|
adamc@1132
|
11173 if test "$hardcode_action" = relink ||
|
adamc@1132
|
11174 test "$inherit_rpath" = yes; then
|
adamc@1132
|
11175 # Fast installation is not supported
|
adamc@1132
|
11176 enable_fast_install=no
|
adamc@1132
|
11177 elif test "$shlibpath_overrides_runpath" = yes ||
|
adamc@1132
|
11178 test "$enable_shared" = no; then
|
adamc@1132
|
11179 # Fast installation is not necessary
|
adamc@1132
|
11180 enable_fast_install=needless
|
adamc@1132
|
11181 fi
|
adamc@1132
|
11182
|
adamc@1132
|
11183
|
adamc@1132
|
11184
|
adamc@1132
|
11185
|
adamc@1132
|
11186
|
adamc@1132
|
11187
|
adamc@1132
|
11188 if test "x$enable_dlopen" != xyes; then
|
adamc@1132
|
11189 enable_dlopen=unknown
|
adamc@1132
|
11190 enable_dlopen_self=unknown
|
adamc@1132
|
11191 enable_dlopen_self_static=unknown
|
adamc@1132
|
11192 else
|
adamc@1132
|
11193 lt_cv_dlopen=no
|
adamc@1132
|
11194 lt_cv_dlopen_libs=
|
adamc@1132
|
11195
|
adamc@1132
|
11196 case $host_os in
|
adamc@1132
|
11197 beos*)
|
adamc@1132
|
11198 lt_cv_dlopen="load_add_on"
|
adamc@1132
|
11199 lt_cv_dlopen_libs=
|
adamc@1132
|
11200 lt_cv_dlopen_self=yes
|
adamc@1132
|
11201 ;;
|
adamc@1132
|
11202
|
adamc@1132
|
11203 mingw* | pw32* | cegcc*)
|
adamc@1132
|
11204 lt_cv_dlopen="LoadLibrary"
|
adamc@1132
|
11205 lt_cv_dlopen_libs=
|
adamc@1132
|
11206 ;;
|
adamc@1132
|
11207
|
adamc@1132
|
11208 cygwin*)
|
adamc@1132
|
11209 lt_cv_dlopen="dlopen"
|
adamc@1132
|
11210 lt_cv_dlopen_libs=
|
adamc@1132
|
11211 ;;
|
adamc@1132
|
11212
|
adamc@1132
|
11213 darwin*)
|
adamc@1132
|
11214 # if libdl is installed we need to link against it
|
adamc@1132
|
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
|
adamc@1132
|
11216 $as_echo_n "checking for dlopen in -ldl... " >&6; }
|
adam@1459
|
11217 if ${ac_cv_lib_dl_dlopen+:} false; then :
|
adamc@1132
|
11218 $as_echo_n "(cached) " >&6
|
adamc@1132
|
11219 else
|
adamc@1132
|
11220 ac_check_lib_save_LIBS=$LIBS
|
adamc@1132
|
11221 LIBS="-ldl $LIBS"
|
adamc@1132
|
11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1132
|
11223 /* end confdefs.h. */
|
adamc@1132
|
11224
|
adamc@1132
|
11225 /* Override any GCC internal prototype to avoid an error.
|
adamc@1132
|
11226 Use char because int might match the return type of a GCC
|
adamc@1132
|
11227 builtin and then its argument prototype would still apply. */
|
adamc@1132
|
11228 #ifdef __cplusplus
|
adamc@1132
|
11229 extern "C"
|
adamc@1132
|
11230 #endif
|
adamc@1132
|
11231 char dlopen ();
|
adamc@1132
|
11232 int
|
adamc@1132
|
11233 main ()
|
adamc@1132
|
11234 {
|
adamc@1132
|
11235 return dlopen ();
|
adamc@1132
|
11236 ;
|
adamc@1132
|
11237 return 0;
|
adamc@1132
|
11238 }
|
adamc@1132
|
11239 _ACEOF
|
adamc@1132
|
11240 if ac_fn_c_try_link "$LINENO"; then :
|
adamc@1132
|
11241 ac_cv_lib_dl_dlopen=yes
|
adamc@1132
|
11242 else
|
adamc@1132
|
11243 ac_cv_lib_dl_dlopen=no
|
adamc@1132
|
11244 fi
|
adamc@1132
|
11245 rm -f core conftest.err conftest.$ac_objext \
|
adamc@1132
|
11246 conftest$ac_exeext conftest.$ac_ext
|
adamc@1132
|
11247 LIBS=$ac_check_lib_save_LIBS
|
adamc@1132
|
11248 fi
|
adamc@1132
|
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
|
adamc@1132
|
11250 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
|
adam@1459
|
11251 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
|
adamc@1132
|
11252 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
adamc@1132
|
11253 else
|
adamc@1132
|
11254
|
adamc@1132
|
11255 lt_cv_dlopen="dyld"
|
adamc@1132
|
11256 lt_cv_dlopen_libs=
|
adamc@1132
|
11257 lt_cv_dlopen_self=yes
|
adamc@1132
|
11258
|
adamc@1132
|
11259 fi
|
adamc@1132
|
11260
|
adamc@1132
|
11261 ;;
|
adamc@1132
|
11262
|
adamc@1132
|
11263 *)
|
adamc@1132
|
11264 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
|
adam@1459
|
11265 if test "x$ac_cv_func_shl_load" = xyes; then :
|
adamc@1132
|
11266 lt_cv_dlopen="shl_load"
|
adamc@1132
|
11267 else
|
adamc@1132
|
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
|
adamc@1132
|
11269 $as_echo_n "checking for shl_load in -ldld... " >&6; }
|
adam@1459
|
11270 if ${ac_cv_lib_dld_shl_load+:} false; then :
|
adamc@1132
|
11271 $as_echo_n "(cached) " >&6
|
adamc@1132
|
11272 else
|
adamc@1132
|
11273 ac_check_lib_save_LIBS=$LIBS
|
adamc@1132
|
11274 LIBS="-ldld $LIBS"
|
adamc@1132
|
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1132
|
11276 /* end confdefs.h. */
|
adamc@1132
|
11277
|
adamc@1132
|
11278 /* Override any GCC internal prototype to avoid an error.
|
adamc@1132
|
11279 Use char because int might match the return type of a GCC
|
adamc@1132
|
11280 builtin and then its argument prototype would still apply. */
|
adamc@1132
|
11281 #ifdef __cplusplus
|
adamc@1132
|
11282 extern "C"
|
adamc@1132
|
11283 #endif
|
adamc@1132
|
11284 char shl_load ();
|
adamc@1132
|
11285 int
|
adamc@1132
|
11286 main ()
|
adamc@1132
|
11287 {
|
adamc@1132
|
11288 return shl_load ();
|
adamc@1132
|
11289 ;
|
adamc@1132
|
11290 return 0;
|
adamc@1132
|
11291 }
|
adamc@1132
|
11292 _ACEOF
|
adamc@1132
|
11293 if ac_fn_c_try_link "$LINENO"; then :
|
adamc@1132
|
11294 ac_cv_lib_dld_shl_load=yes
|
adamc@1132
|
11295 else
|
adamc@1132
|
11296 ac_cv_lib_dld_shl_load=no
|
adamc@1132
|
11297 fi
|
adamc@1132
|
11298 rm -f core conftest.err conftest.$ac_objext \
|
adamc@1132
|
11299 conftest$ac_exeext conftest.$ac_ext
|
adamc@1132
|
11300 LIBS=$ac_check_lib_save_LIBS
|
adamc@1132
|
11301 fi
|
adamc@1132
|
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
|
adamc@1132
|
11303 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
|
adam@1459
|
11304 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
|
adamc@1132
|
11305 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
|
adamc@1132
|
11306 else
|
adamc@1132
|
11307 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
|
adam@1459
|
11308 if test "x$ac_cv_func_dlopen" = xyes; then :
|
adamc@1132
|
11309 lt_cv_dlopen="dlopen"
|
adamc@1132
|
11310 else
|
adamc@1132
|
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
|
adamc@1132
|
11312 $as_echo_n "checking for dlopen in -ldl... " >&6; }
|
adam@1459
|
11313 if ${ac_cv_lib_dl_dlopen+:} false; then :
|
adamc@1132
|
11314 $as_echo_n "(cached) " >&6
|
adamc@1132
|
11315 else
|
adamc@1132
|
11316 ac_check_lib_save_LIBS=$LIBS
|
adamc@1132
|
11317 LIBS="-ldl $LIBS"
|
adamc@1132
|
11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1132
|
11319 /* end confdefs.h. */
|
adamc@1132
|
11320
|
adamc@1132
|
11321 /* Override any GCC internal prototype to avoid an error.
|
adamc@1132
|
11322 Use char because int might match the return type of a GCC
|
adamc@1132
|
11323 builtin and then its argument prototype would still apply. */
|
adamc@1132
|
11324 #ifdef __cplusplus
|
adamc@1132
|
11325 extern "C"
|
adamc@1132
|
11326 #endif
|
adamc@1132
|
11327 char dlopen ();
|
adamc@1132
|
11328 int
|
adamc@1132
|
11329 main ()
|
adamc@1132
|
11330 {
|
adamc@1132
|
11331 return dlopen ();
|
adamc@1132
|
11332 ;
|
adamc@1132
|
11333 return 0;
|
adamc@1132
|
11334 }
|
adamc@1132
|
11335 _ACEOF
|
adamc@1132
|
11336 if ac_fn_c_try_link "$LINENO"; then :
|
adamc@1132
|
11337 ac_cv_lib_dl_dlopen=yes
|
adamc@1132
|
11338 else
|
adamc@1132
|
11339 ac_cv_lib_dl_dlopen=no
|
adamc@1132
|
11340 fi
|
adamc@1132
|
11341 rm -f core conftest.err conftest.$ac_objext \
|
adamc@1132
|
11342 conftest$ac_exeext conftest.$ac_ext
|
adamc@1132
|
11343 LIBS=$ac_check_lib_save_LIBS
|
adamc@1132
|
11344 fi
|
adamc@1132
|
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
|
adamc@1132
|
11346 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
|
adam@1459
|
11347 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
|
adamc@1132
|
11348 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
adamc@1132
|
11349 else
|
adamc@1132
|
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
|
adamc@1132
|
11351 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
|
adam@1459
|
11352 if ${ac_cv_lib_svld_dlopen+:} false; then :
|
adamc@1132
|
11353 $as_echo_n "(cached) " >&6
|
adamc@1132
|
11354 else
|
adamc@1132
|
11355 ac_check_lib_save_LIBS=$LIBS
|
adamc@1132
|
11356 LIBS="-lsvld $LIBS"
|
adamc@1132
|
11357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1132
|
11358 /* end confdefs.h. */
|
adamc@1132
|
11359
|
adamc@1132
|
11360 /* Override any GCC internal prototype to avoid an error.
|
adamc@1132
|
11361 Use char because int might match the return type of a GCC
|
adamc@1132
|
11362 builtin and then its argument prototype would still apply. */
|
adamc@1132
|
11363 #ifdef __cplusplus
|
adamc@1132
|
11364 extern "C"
|
adamc@1132
|
11365 #endif
|
adamc@1132
|
11366 char dlopen ();
|
adamc@1132
|
11367 int
|
adamc@1132
|
11368 main ()
|
adamc@1132
|
11369 {
|
adamc@1132
|
11370 return dlopen ();
|
adamc@1132
|
11371 ;
|
adamc@1132
|
11372 return 0;
|
adamc@1132
|
11373 }
|
adamc@1132
|
11374 _ACEOF
|
adamc@1132
|
11375 if ac_fn_c_try_link "$LINENO"; then :
|
adamc@1132
|
11376 ac_cv_lib_svld_dlopen=yes
|
adamc@1132
|
11377 else
|
adamc@1132
|
11378 ac_cv_lib_svld_dlopen=no
|
adamc@1132
|
11379 fi
|
adamc@1132
|
11380 rm -f core conftest.err conftest.$ac_objext \
|
adamc@1132
|
11381 conftest$ac_exeext conftest.$ac_ext
|
adamc@1132
|
11382 LIBS=$ac_check_lib_save_LIBS
|
adamc@1132
|
11383 fi
|
adamc@1132
|
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
|
adamc@1132
|
11385 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
|
adam@1459
|
11386 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
|
adamc@1132
|
11387 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
|
adamc@1132
|
11388 else
|
adamc@1132
|
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
|
adamc@1132
|
11390 $as_echo_n "checking for dld_link in -ldld... " >&6; }
|
adam@1459
|
11391 if ${ac_cv_lib_dld_dld_link+:} false; then :
|
adamc@1132
|
11392 $as_echo_n "(cached) " >&6
|
adamc@1132
|
11393 else
|
adamc@1132
|
11394 ac_check_lib_save_LIBS=$LIBS
|
adamc@1132
|
11395 LIBS="-ldld $LIBS"
|
adamc@1132
|
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1132
|
11397 /* end confdefs.h. */
|
adamc@1132
|
11398
|
adamc@1132
|
11399 /* Override any GCC internal prototype to avoid an error.
|
adamc@1132
|
11400 Use char because int might match the return type of a GCC
|
adamc@1132
|
11401 builtin and then its argument prototype would still apply. */
|
adamc@1132
|
11402 #ifdef __cplusplus
|
adamc@1132
|
11403 extern "C"
|
adamc@1132
|
11404 #endif
|
adamc@1132
|
11405 char dld_link ();
|
adamc@1132
|
11406 int
|
adamc@1132
|
11407 main ()
|
adamc@1132
|
11408 {
|
adamc@1132
|
11409 return dld_link ();
|
adamc@1132
|
11410 ;
|
adamc@1132
|
11411 return 0;
|
adamc@1132
|
11412 }
|
adamc@1132
|
11413 _ACEOF
|
adamc@1132
|
11414 if ac_fn_c_try_link "$LINENO"; then :
|
adamc@1132
|
11415 ac_cv_lib_dld_dld_link=yes
|
adamc@1132
|
11416 else
|
adamc@1132
|
11417 ac_cv_lib_dld_dld_link=no
|
adamc@1132
|
11418 fi
|
adamc@1132
|
11419 rm -f core conftest.err conftest.$ac_objext \
|
adamc@1132
|
11420 conftest$ac_exeext conftest.$ac_ext
|
adamc@1132
|
11421 LIBS=$ac_check_lib_save_LIBS
|
adamc@1132
|
11422 fi
|
adamc@1132
|
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
|
adamc@1132
|
11424 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
|
adam@1459
|
11425 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
|
adamc@1132
|
11426 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
|
adamc@1132
|
11427 fi
|
adamc@1132
|
11428
|
adamc@1132
|
11429
|
adamc@1132
|
11430 fi
|
adamc@1132
|
11431
|
adamc@1132
|
11432
|
adamc@1132
|
11433 fi
|
adamc@1132
|
11434
|
adamc@1132
|
11435
|
adamc@1132
|
11436 fi
|
adamc@1132
|
11437
|
adamc@1132
|
11438
|
adamc@1132
|
11439 fi
|
adamc@1132
|
11440
|
adamc@1132
|
11441
|
adamc@1132
|
11442 fi
|
adamc@1132
|
11443
|
adamc@1132
|
11444 ;;
|
adamc@1132
|
11445 esac
|
adamc@1132
|
11446
|
adamc@1132
|
11447 if test "x$lt_cv_dlopen" != xno; then
|
adamc@1132
|
11448 enable_dlopen=yes
|
adamc@1132
|
11449 else
|
adamc@1132
|
11450 enable_dlopen=no
|
adamc@1132
|
11451 fi
|
adamc@1132
|
11452
|
adamc@1132
|
11453 case $lt_cv_dlopen in
|
adamc@1132
|
11454 dlopen)
|
adamc@1132
|
11455 save_CPPFLAGS="$CPPFLAGS"
|
adamc@1132
|
11456 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
adamc@1132
|
11457
|
adamc@1132
|
11458 save_LDFLAGS="$LDFLAGS"
|
adamc@1132
|
11459 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
adamc@1132
|
11460
|
adamc@1132
|
11461 save_LIBS="$LIBS"
|
adamc@1132
|
11462 LIBS="$lt_cv_dlopen_libs $LIBS"
|
adamc@1132
|
11463
|
adamc@1132
|
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
|
adamc@1132
|
11465 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
|
adam@1459
|
11466 if ${lt_cv_dlopen_self+:} false; then :
|
adamc@1132
|
11467 $as_echo_n "(cached) " >&6
|
adamc@1132
|
11468 else
|
adamc@1132
|
11469 if test "$cross_compiling" = yes; then :
|
adamc@1132
|
11470 lt_cv_dlopen_self=cross
|
adamc@1132
|
11471 else
|
adamc@1132
|
11472 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
adamc@1132
|
11473 lt_status=$lt_dlunknown
|
adamc@1132
|
11474 cat > conftest.$ac_ext <<_LT_EOF
|
adam@1459
|
11475 #line $LINENO "configure"
|
adamc@1132
|
11476 #include "confdefs.h"
|
adamc@1132
|
11477
|
adamc@1132
|
11478 #if HAVE_DLFCN_H
|
adamc@1132
|
11479 #include <dlfcn.h>
|
adamc@1132
|
11480 #endif
|
adamc@1132
|
11481
|
adamc@1132
|
11482 #include <stdio.h>
|
adamc@1132
|
11483
|
adamc@1132
|
11484 #ifdef RTLD_GLOBAL
|
adamc@1132
|
11485 # define LT_DLGLOBAL RTLD_GLOBAL
|
adamc@1132
|
11486 #else
|
adamc@1132
|
11487 # ifdef DL_GLOBAL
|
adamc@1132
|
11488 # define LT_DLGLOBAL DL_GLOBAL
|
adamc@1132
|
11489 # else
|
adamc@1132
|
11490 # define LT_DLGLOBAL 0
|
adamc@1132
|
11491 # endif
|
adamc@1132
|
11492 #endif
|
adamc@1132
|
11493
|
adamc@1132
|
11494 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
adamc@1132
|
11495 find out it does not work in some platform. */
|
adamc@1132
|
11496 #ifndef LT_DLLAZY_OR_NOW
|
adamc@1132
|
11497 # ifdef RTLD_LAZY
|
adamc@1132
|
11498 # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
adamc@1132
|
11499 # else
|
adamc@1132
|
11500 # ifdef DL_LAZY
|
adamc@1132
|
11501 # define LT_DLLAZY_OR_NOW DL_LAZY
|
adamc@1132
|
11502 # else
|
adamc@1132
|
11503 # ifdef RTLD_NOW
|
adamc@1132
|
11504 # define LT_DLLAZY_OR_NOW RTLD_NOW
|
adamc@1132
|
11505 # else
|
adamc@1132
|
11506 # ifdef DL_NOW
|
adamc@1132
|
11507 # define LT_DLLAZY_OR_NOW DL_NOW
|
adamc@1132
|
11508 # else
|
adamc@1132
|
11509 # define LT_DLLAZY_OR_NOW 0
|
adamc@1132
|
11510 # endif
|
adamc@1132
|
11511 # endif
|
adamc@1132
|
11512 # endif
|
adamc@1132
|
11513 # endif
|
adamc@1132
|
11514 #endif
|
adamc@1132
|
11515
|
adam@1459
|
11516 /* When -fvisbility=hidden is used, assume the code has been annotated
|
adam@1459
|
11517 correspondingly for the symbols needed. */
|
adam@1459
|
11518 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
adam@1459
|
11519 int fnord () __attribute__((visibility("default")));
|
adam@1459
|
11520 #endif
|
adam@1459
|
11521
|
adam@1459
|
11522 int fnord () { return 42; }
|
adamc@1132
|
11523 int main ()
|
adamc@1132
|
11524 {
|
adamc@1132
|
11525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
adamc@1132
|
11526 int status = $lt_dlunknown;
|
adamc@1132
|
11527
|
adamc@1132
|
11528 if (self)
|
adamc@1132
|
11529 {
|
adamc@1132
|
11530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
adam@1459
|
11531 else
|
adam@1459
|
11532 {
|
adam@1459
|
11533 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
adam@1459
|
11534 else puts (dlerror ());
|
adam@1459
|
11535 }
|
adamc@1132
|
11536 /* dlclose (self); */
|
adamc@1132
|
11537 }
|
adamc@1132
|
11538 else
|
adamc@1132
|
11539 puts (dlerror ());
|
adamc@1132
|
11540
|
adamc@1132
|
11541 return status;
|
adamc@1132
|
11542 }
|
adamc@1132
|
11543 _LT_EOF
|
adamc@1132
|
11544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
adamc@1132
|
11545 (eval $ac_link) 2>&5
|
adamc@1132
|
11546 ac_status=$?
|
adamc@1132
|
11547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1132
|
11548 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
|
adamc@1132
|
11549 (./conftest; exit; ) >&5 2>/dev/null
|
adamc@1132
|
11550 lt_status=$?
|
adamc@1132
|
11551 case x$lt_status in
|
adamc@1132
|
11552 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
adamc@1132
|
11553 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
adamc@1132
|
11554 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
|
adamc@1132
|
11555 esac
|
adamc@1132
|
11556 else :
|
adamc@1132
|
11557 # compilation failed
|
adamc@1132
|
11558 lt_cv_dlopen_self=no
|
adamc@1132
|
11559 fi
|
adamc@1132
|
11560 fi
|
adamc@1132
|
11561 rm -fr conftest*
|
adamc@1132
|
11562
|
adamc@1132
|
11563
|
adamc@1132
|
11564 fi
|
adamc@1132
|
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
|
adamc@1132
|
11566 $as_echo "$lt_cv_dlopen_self" >&6; }
|
adamc@1132
|
11567
|
adamc@1132
|
11568 if test "x$lt_cv_dlopen_self" = xyes; then
|
adamc@1132
|
11569 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
adamc@1132
|
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
|
adamc@1132
|
11571 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
|
adam@1459
|
11572 if ${lt_cv_dlopen_self_static+:} false; then :
|
adamc@1132
|
11573 $as_echo_n "(cached) " >&6
|
adamc@1132
|
11574 else
|
adamc@1132
|
11575 if test "$cross_compiling" = yes; then :
|
adamc@1132
|
11576 lt_cv_dlopen_self_static=cross
|
adamc@1132
|
11577 else
|
adamc@1132
|
11578 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
adamc@1132
|
11579 lt_status=$lt_dlunknown
|
adamc@1132
|
11580 cat > conftest.$ac_ext <<_LT_EOF
|
adam@1459
|
11581 #line $LINENO "configure"
|
adamc@1132
|
11582 #include "confdefs.h"
|
adamc@1132
|
11583
|
adamc@1132
|
11584 #if HAVE_DLFCN_H
|
adamc@1132
|
11585 #include <dlfcn.h>
|
adamc@1132
|
11586 #endif
|
adamc@1132
|
11587
|
adamc@1132
|
11588 #include <stdio.h>
|
adamc@1132
|
11589
|
adamc@1132
|
11590 #ifdef RTLD_GLOBAL
|
adamc@1132
|
11591 # define LT_DLGLOBAL RTLD_GLOBAL
|
adamc@1132
|
11592 #else
|
adamc@1132
|
11593 # ifdef DL_GLOBAL
|
adamc@1132
|
11594 # define LT_DLGLOBAL DL_GLOBAL
|
adamc@1132
|
11595 # else
|
adamc@1132
|
11596 # define LT_DLGLOBAL 0
|
adamc@1132
|
11597 # endif
|
adamc@1132
|
11598 #endif
|
adamc@1132
|
11599
|
adamc@1132
|
11600 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
adamc@1132
|
11601 find out it does not work in some platform. */
|
adamc@1132
|
11602 #ifndef LT_DLLAZY_OR_NOW
|
adamc@1132
|
11603 # ifdef RTLD_LAZY
|
adamc@1132
|
11604 # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
adamc@1132
|
11605 # else
|
adamc@1132
|
11606 # ifdef DL_LAZY
|
adamc@1132
|
11607 # define LT_DLLAZY_OR_NOW DL_LAZY
|
adamc@1132
|
11608 # else
|
adamc@1132
|
11609 # ifdef RTLD_NOW
|
adamc@1132
|
11610 # define LT_DLLAZY_OR_NOW RTLD_NOW
|
adamc@1132
|
11611 # else
|
adamc@1132
|
11612 # ifdef DL_NOW
|
adamc@1132
|
11613 # define LT_DLLAZY_OR_NOW DL_NOW
|
adamc@1132
|
11614 # else
|
adamc@1132
|
11615 # define LT_DLLAZY_OR_NOW 0
|
adamc@1132
|
11616 # endif
|
adamc@1132
|
11617 # endif
|
adamc@1132
|
11618 # endif
|
adamc@1132
|
11619 # endif
|
adamc@1132
|
11620 #endif
|
adamc@1132
|
11621
|
adam@1459
|
11622 /* When -fvisbility=hidden is used, assume the code has been annotated
|
adam@1459
|
11623 correspondingly for the symbols needed. */
|
adam@1459
|
11624 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
adam@1459
|
11625 int fnord () __attribute__((visibility("default")));
|
adam@1459
|
11626 #endif
|
adam@1459
|
11627
|
adam@1459
|
11628 int fnord () { return 42; }
|
adamc@1132
|
11629 int main ()
|
adamc@1132
|
11630 {
|
adamc@1132
|
11631 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
adamc@1132
|
11632 int status = $lt_dlunknown;
|
adamc@1132
|
11633
|
adamc@1132
|
11634 if (self)
|
adamc@1132
|
11635 {
|
adamc@1132
|
11636 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
adam@1459
|
11637 else
|
adam@1459
|
11638 {
|
adam@1459
|
11639 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
adam@1459
|
11640 else puts (dlerror ());
|
adam@1459
|
11641 }
|
adamc@1132
|
11642 /* dlclose (self); */
|
adamc@1132
|
11643 }
|
adamc@1132
|
11644 else
|
adamc@1132
|
11645 puts (dlerror ());
|
adamc@1132
|
11646
|
adamc@1132
|
11647 return status;
|
adamc@1132
|
11648 }
|
adamc@1132
|
11649 _LT_EOF
|
adamc@1132
|
11650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
adamc@1132
|
11651 (eval $ac_link) 2>&5
|
adamc@1132
|
11652 ac_status=$?
|
adamc@1132
|
11653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
adamc@1132
|
11654 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
|
adamc@1132
|
11655 (./conftest; exit; ) >&5 2>/dev/null
|
adamc@1132
|
11656 lt_status=$?
|
adamc@1132
|
11657 case x$lt_status in
|
adamc@1132
|
11658 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
adamc@1132
|
11659 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
adamc@1132
|
11660 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
|
adamc@1132
|
11661 esac
|
adamc@1132
|
11662 else :
|
adamc@1132
|
11663 # compilation failed
|
adamc@1132
|
11664 lt_cv_dlopen_self_static=no
|
adamc@1132
|
11665 fi
|
adamc@1132
|
11666 fi
|
adamc@1132
|
11667 rm -fr conftest*
|
adamc@1132
|
11668
|
adamc@1132
|
11669
|
adamc@1132
|
11670 fi
|
adamc@1132
|
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
|
adamc@1132
|
11672 $as_echo "$lt_cv_dlopen_self_static" >&6; }
|
adamc@1132
|
11673 fi
|
adamc@1132
|
11674
|
adamc@1132
|
11675 CPPFLAGS="$save_CPPFLAGS"
|
adamc@1132
|
11676 LDFLAGS="$save_LDFLAGS"
|
adamc@1132
|
11677 LIBS="$save_LIBS"
|
adamc@1132
|
11678 ;;
|
adamc@1132
|
11679 esac
|
adamc@1132
|
11680
|
adamc@1132
|
11681 case $lt_cv_dlopen_self in
|
adamc@1132
|
11682 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
adamc@1132
|
11683 *) enable_dlopen_self=unknown ;;
|
adamc@1132
|
11684 esac
|
adamc@1132
|
11685
|
adamc@1132
|
11686 case $lt_cv_dlopen_self_static in
|
adamc@1132
|
11687 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
adamc@1132
|
11688 *) enable_dlopen_self_static=unknown ;;
|
adamc@1132
|
11689 esac
|
adamc@1132
|
11690 fi
|
adamc@1132
|
11691
|
adamc@1132
|
11692
|
adamc@1132
|
11693
|
adamc@1132
|
11694
|
adamc@1132
|
11695
|
adamc@1132
|
11696
|
adamc@1132
|
11697
|
adamc@1132
|
11698
|
adamc@1132
|
11699
|
adamc@1132
|
11700
|
adamc@1132
|
11701
|
adamc@1132
|
11702
|
adamc@1132
|
11703
|
adamc@1132
|
11704
|
adamc@1132
|
11705
|
adamc@1132
|
11706
|
adamc@1132
|
11707
|
adamc@1132
|
11708 striplib=
|
adamc@1132
|
11709 old_striplib=
|
adamc@1132
|
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
|
adamc@1132
|
11711 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
|
adamc@1132
|
11712 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
adamc@1132
|
11713 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
adamc@1132
|
11714 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
adamc@1132
|
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
adamc@1132
|
11716 $as_echo "yes" >&6; }
|
adamc@1132
|
11717 else
|
adamc@1132
|
11718 # FIXME - insert some real tests, host_os isn't really good enough
|
adamc@1132
|
11719 case $host_os in
|
adamc@1132
|
11720 darwin*)
|
adamc@1132
|
11721 if test -n "$STRIP" ; then
|
adamc@1132
|
11722 striplib="$STRIP -x"
|
adamc@1132
|
11723 old_striplib="$STRIP -S"
|
adamc@1132
|
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
adamc@1132
|
11725 $as_echo "yes" >&6; }
|
adamc@1132
|
11726 else
|
adamc@1132
|
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
11728 $as_echo "no" >&6; }
|
adamc@1132
|
11729 fi
|
adamc@1132
|
11730 ;;
|
adamc@1132
|
11731 *)
|
adamc@1132
|
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1132
|
11733 $as_echo "no" >&6; }
|
adamc@1132
|
11734 ;;
|
adamc@1132
|
11735 esac
|
adamc@1132
|
11736 fi
|
adamc@1132
|
11737
|
adamc@1132
|
11738
|
adamc@1132
|
11739
|
adamc@1132
|
11740
|
adamc@1132
|
11741
|
adamc@1132
|
11742
|
adamc@1132
|
11743
|
adamc@1132
|
11744
|
adamc@1132
|
11745
|
adamc@1132
|
11746
|
adamc@1132
|
11747
|
adamc@1132
|
11748
|
adamc@1132
|
11749 # Report which library types will actually be built
|
adamc@1132
|
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
|
adamc@1132
|
11751 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
|
adamc@1132
|
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
|
adamc@1132
|
11753 $as_echo "$can_build_shared" >&6; }
|
adamc@1132
|
11754
|
adamc@1132
|
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
|
adamc@1132
|
11756 $as_echo_n "checking whether to build shared libraries... " >&6; }
|
adamc@1132
|
11757 test "$can_build_shared" = "no" && enable_shared=no
|
adamc@1132
|
11758
|
adamc@1132
|
11759 # On AIX, shared libraries and static libraries use the same namespace, and
|
adamc@1132
|
11760 # are all built from PIC.
|
adamc@1132
|
11761 case $host_os in
|
adamc@1132
|
11762 aix3*)
|
adamc@1132
|
11763 test "$enable_shared" = yes && enable_static=no
|
adamc@1132
|
11764 if test -n "$RANLIB"; then
|
adamc@1132
|
11765 archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
adamc@1132
|
11766 postinstall_cmds='$RANLIB $lib'
|
adamc@1132
|
11767 fi
|
adamc@1132
|
11768 ;;
|
adamc@1132
|
11769
|
adamc@1132
|
11770 aix[4-9]*)
|
adamc@1132
|
11771 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
adamc@1132
|
11772 test "$enable_shared" = yes && enable_static=no
|
adamc@1132
|
11773 fi
|
adamc@1132
|
11774 ;;
|
adamc@1132
|
11775 esac
|
adamc@1132
|
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
|
adamc@1132
|
11777 $as_echo "$enable_shared" >&6; }
|
adamc@1132
|
11778
|
adamc@1132
|
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
|
adamc@1132
|
11780 $as_echo_n "checking whether to build static libraries... " >&6; }
|
adamc@1132
|
11781 # Make sure either enable_shared or enable_static is yes.
|
adamc@1132
|
11782 test "$enable_shared" = yes || enable_static=yes
|
adamc@1132
|
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
|
adamc@1132
|
11784 $as_echo "$enable_static" >&6; }
|
adamc@1132
|
11785
|
adamc@1132
|
11786
|
adamc@1132
|
11787
|
adamc@1132
|
11788
|
adamc@1132
|
11789 fi
|
adamc@1132
|
11790 ac_ext=c
|
adamc@1132
|
11791 ac_cpp='$CPP $CPPFLAGS'
|
adamc@1132
|
11792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
adamc@1132
|
11793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
adamc@1132
|
11794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
adamc@1132
|
11795
|
adamc@1132
|
11796 CC="$lt_save_CC"
|
adamc@1132
|
11797
|
adamc@1132
|
11798
|
adamc@1132
|
11799
|
adamc@1132
|
11800
|
adamc@1132
|
11801
|
adamc@1132
|
11802
|
adamc@1132
|
11803
|
adamc@1132
|
11804
|
adamc@1132
|
11805
|
adamc@1132
|
11806
|
adamc@1132
|
11807
|
adamc@1132
|
11808
|
adamc@1132
|
11809
|
adamc@1132
|
11810 ac_config_commands="$ac_config_commands libtool"
|
adamc@1132
|
11811
|
adamc@1132
|
11812
|
adamc@1132
|
11813
|
adamc@1132
|
11814
|
adamc@1132
|
11815 # Only expand once:
|
adamc@1132
|
11816
|
adamc@1132
|
11817
|
adamc@378
|
11818
|
adamc@1263
|
11819 ac_config_headers="$ac_config_headers config.h"
|
adamc@1263
|
11820
|
adamc@1141
|
11821
|
adam@1317
|
11822
|
adam@1528
|
11823
|
adam@1528
|
11824 ac_ext=c
|
adam@1528
|
11825 ac_cpp='$CPP $CPPFLAGS'
|
adam@1528
|
11826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
adam@1528
|
11827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
adam@1528
|
11828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
adam@1528
|
11829
|
adam@1528
|
11830 ax_pthread_ok=no
|
adam@1528
|
11831
|
adam@1528
|
11832 # We used to check for pthread.h first, but this fails if pthread.h
|
adam@1528
|
11833 # requires special compiler flags (e.g. on True64 or Sequent).
|
adam@1528
|
11834 # It gets checked for in the link test anyway.
|
adam@1528
|
11835
|
adam@1528
|
11836 # First of all, check if the user has set any of the PTHREAD_LIBS,
|
adam@1528
|
11837 # etcetera environment variables, and if threads linking works using
|
adam@1528
|
11838 # them:
|
adam@1528
|
11839 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
|
adam@1528
|
11840 save_CFLAGS="$CFLAGS"
|
adam@1528
|
11841 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
adam@1528
|
11842 save_LIBS="$LIBS"
|
adam@1528
|
11843 LIBS="$PTHREAD_LIBS $LIBS"
|
adam@1528
|
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
|
adam@1528
|
11845 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
|
adam@1528
|
11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adam@1528
|
11847 /* end confdefs.h. */
|
adam@1528
|
11848
|
adam@1528
|
11849 /* Override any GCC internal prototype to avoid an error.
|
adam@1528
|
11850 Use char because int might match the return type of a GCC
|
adam@1528
|
11851 builtin and then its argument prototype would still apply. */
|
adam@1528
|
11852 #ifdef __cplusplus
|
adam@1528
|
11853 extern "C"
|
adam@1528
|
11854 #endif
|
adam@1528
|
11855 char pthread_join ();
|
adam@1528
|
11856 int
|
adam@1528
|
11857 main ()
|
adam@1528
|
11858 {
|
adam@1528
|
11859 return pthread_join ();
|
adam@1528
|
11860 ;
|
adam@1528
|
11861 return 0;
|
adam@1528
|
11862 }
|
adam@1528
|
11863 _ACEOF
|
adam@1528
|
11864 if ac_fn_c_try_link "$LINENO"; then :
|
adam@1528
|
11865 ax_pthread_ok=yes
|
adam@1528
|
11866 fi
|
adam@1528
|
11867 rm -f core conftest.err conftest.$ac_objext \
|
adam@1528
|
11868 conftest$ac_exeext conftest.$ac_ext
|
adam@1528
|
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
|
adam@1528
|
11870 $as_echo "$ax_pthread_ok" >&6; }
|
adam@1528
|
11871 if test x"$ax_pthread_ok" = xno; then
|
adam@1528
|
11872 PTHREAD_LIBS=""
|
adam@1528
|
11873 PTHREAD_CFLAGS=""
|
adam@1528
|
11874 fi
|
adam@1528
|
11875 LIBS="$save_LIBS"
|
adam@1528
|
11876 CFLAGS="$save_CFLAGS"
|
adam@1528
|
11877 fi
|
adam@1528
|
11878
|
adam@1528
|
11879 # We must check for the threads library under a number of different
|
adam@1528
|
11880 # names; the ordering is very important because some systems
|
adam@1528
|
11881 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
|
adam@1528
|
11882 # libraries is broken (non-POSIX).
|
adam@1528
|
11883
|
adam@1528
|
11884 # Create a list of thread flags to try. Items starting with a "-" are
|
adam@1528
|
11885 # C compiler flags, and other items are library names, except for "none"
|
adam@1528
|
11886 # which indicates that we try without any flags at all, and "pthread-config"
|
adam@1528
|
11887 # which is a program returning the flags for the Pth emulation library.
|
adam@1528
|
11888
|
adam@1528
|
11889 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
|
adam@1528
|
11890
|
adam@1528
|
11891 # The ordering *is* (sometimes) important. Some notes on the
|
adam@1528
|
11892 # individual items follow:
|
adam@1528
|
11893
|
adam@1528
|
11894 # pthreads: AIX (must check this before -lpthread)
|
adam@1528
|
11895 # none: in case threads are in libc; should be tried before -Kthread and
|
adam@1528
|
11896 # other compiler flags to prevent continual compiler warnings
|
adam@1528
|
11897 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
|
adam@1528
|
11898 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
|
adam@1528
|
11899 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
|
adam@1528
|
11900 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
|
adam@1528
|
11901 # -pthreads: Solaris/gcc
|
adam@1528
|
11902 # -mthreads: Mingw32/gcc, Lynx/gcc
|
adam@1528
|
11903 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
|
adam@1528
|
11904 # doesn't hurt to check since this sometimes defines pthreads too;
|
adam@1528
|
11905 # also defines -D_REENTRANT)
|
adam@1528
|
11906 # ... -mt is also the pthreads flag for HP/aCC
|
adam@1528
|
11907 # pthread: Linux, etcetera
|
adam@1528
|
11908 # --thread-safe: KAI C++
|
adam@1528
|
11909 # pthread-config: use pthread-config program (for GNU Pth library)
|
adam@1528
|
11910
|
adam@1528
|
11911 case "${host_cpu}-${host_os}" in
|
adam@1528
|
11912 *solaris*)
|
adam@1528
|
11913
|
adam@1528
|
11914 # On Solaris (at least, for some versions), libc contains stubbed
|
adam@1528
|
11915 # (non-functional) versions of the pthreads routines, so link-based
|
adam@1528
|
11916 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
|
adam@1528
|
11917 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
|
adam@1528
|
11918 # a function called by this macro, so we could check for that, but
|
adam@1528
|
11919 # who knows whether they'll stub that too in a future libc.) So,
|
adam@1528
|
11920 # we'll just look for -pthreads and -lpthread first:
|
adam@1528
|
11921
|
adam@1528
|
11922 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
|
adam@1528
|
11923 ;;
|
adam@1528
|
11924
|
adam@1528
|
11925 *-darwin*)
|
adam@1528
|
11926 ax_pthread_flags="-pthread $ax_pthread_flags"
|
adam@1528
|
11927 ;;
|
adam@1528
|
11928 esac
|
adam@1528
|
11929
|
adam@1528
|
11930 if test x"$ax_pthread_ok" = xno; then
|
adam@1528
|
11931 for flag in $ax_pthread_flags; do
|
adam@1528
|
11932
|
adam@1528
|
11933 case $flag in
|
adam@1528
|
11934 none)
|
adam@1528
|
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
|
adam@1528
|
11936 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
|
adam@1528
|
11937 ;;
|
adam@1528
|
11938
|
adam@1528
|
11939 -*)
|
adam@1528
|
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
|
adam@1528
|
11941 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
|
adam@1528
|
11942 PTHREAD_CFLAGS="$flag"
|
adam@1528
|
11943 ;;
|
adam@1528
|
11944
|
adam@1528
|
11945 pthread-config)
|
adam@1528
|
11946 # Extract the first word of "pthread-config", so it can be a program name with args.
|
adam@1528
|
11947 set dummy pthread-config; ac_word=$2
|
adam@1528
|
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adam@1528
|
11949 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1528
|
11950 if ${ac_cv_prog_ax_pthread_config+:} false; then :
|
adam@1528
|
11951 $as_echo_n "(cached) " >&6
|
adam@1528
|
11952 else
|
adam@1528
|
11953 if test -n "$ax_pthread_config"; then
|
adam@1528
|
11954 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
|
adam@1528
|
11955 else
|
adam@1528
|
11956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adam@1528
|
11957 for as_dir in $PATH
|
adam@1528
|
11958 do
|
adam@1528
|
11959 IFS=$as_save_IFS
|
adam@1528
|
11960 test -z "$as_dir" && as_dir=.
|
adam@1528
|
11961 for ac_exec_ext in '' $ac_executable_extensions; do
|
adam@1528
|
11962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adam@1528
|
11963 ac_cv_prog_ax_pthread_config="yes"
|
adam@1528
|
11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adam@1528
|
11965 break 2
|
adam@1528
|
11966 fi
|
adam@1528
|
11967 done
|
adam@1528
|
11968 done
|
adam@1528
|
11969 IFS=$as_save_IFS
|
adam@1528
|
11970
|
adam@1528
|
11971 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
|
adam@1528
|
11972 fi
|
adam@1528
|
11973 fi
|
adam@1528
|
11974 ax_pthread_config=$ac_cv_prog_ax_pthread_config
|
adam@1528
|
11975 if test -n "$ax_pthread_config"; then
|
adam@1528
|
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
|
adam@1528
|
11977 $as_echo "$ax_pthread_config" >&6; }
|
adam@1528
|
11978 else
|
adam@1528
|
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adam@1528
|
11980 $as_echo "no" >&6; }
|
adam@1528
|
11981 fi
|
adam@1528
|
11982
|
adam@1528
|
11983
|
adam@1528
|
11984 if test x"$ax_pthread_config" = xno; then continue; fi
|
adam@1528
|
11985 PTHREAD_CFLAGS="`pthread-config --cflags`"
|
adam@1528
|
11986 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
|
adam@1528
|
11987 ;;
|
adam@1528
|
11988
|
adam@1528
|
11989 *)
|
adam@1528
|
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
|
adam@1528
|
11991 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
|
adam@1528
|
11992 PTHREAD_LIBS="-l$flag"
|
adam@1528
|
11993 ;;
|
adam@1528
|
11994 esac
|
adam@1528
|
11995
|
adam@1528
|
11996 save_LIBS="$LIBS"
|
adam@1528
|
11997 save_CFLAGS="$CFLAGS"
|
adam@1528
|
11998 LIBS="$PTHREAD_LIBS $LIBS"
|
adam@1528
|
11999 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
adam@1528
|
12000
|
adam@1528
|
12001 # Check for various functions. We must include pthread.h,
|
adam@1528
|
12002 # since some functions may be macros. (On the Sequent, we
|
adam@1528
|
12003 # need a special flag -Kthread to make this header compile.)
|
adam@1528
|
12004 # We check for pthread_join because it is in -lpthread on IRIX
|
adam@1528
|
12005 # while pthread_create is in libc. We check for pthread_attr_init
|
adam@1528
|
12006 # due to DEC craziness with -lpthreads. We check for
|
adam@1528
|
12007 # pthread_cleanup_push because it is one of the few pthread
|
adam@1528
|
12008 # functions on Solaris that doesn't have a non-functional libc stub.
|
adam@1528
|
12009 # We try pthread_create on general principles.
|
adam@1528
|
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adam@1528
|
12011 /* end confdefs.h. */
|
adam@1528
|
12012 #include <pthread.h>
|
adam@1528
|
12013 static void routine(void *a) { a = 0; }
|
adam@1528
|
12014 static void *start_routine(void *a) { return a; }
|
adam@1528
|
12015 int
|
adam@1528
|
12016 main ()
|
adam@1528
|
12017 {
|
adam@1528
|
12018 pthread_t th; pthread_attr_t attr;
|
adam@1528
|
12019 pthread_create(&th, 0, start_routine, 0);
|
adam@1528
|
12020 pthread_join(th, 0);
|
adam@1528
|
12021 pthread_attr_init(&attr);
|
adam@1528
|
12022 pthread_cleanup_push(routine, 0);
|
adam@1528
|
12023 pthread_cleanup_pop(0) /* ; */
|
adam@1528
|
12024 ;
|
adam@1528
|
12025 return 0;
|
adam@1528
|
12026 }
|
adam@1528
|
12027 _ACEOF
|
adam@1528
|
12028 if ac_fn_c_try_link "$LINENO"; then :
|
adam@1528
|
12029 ax_pthread_ok=yes
|
adam@1528
|
12030 fi
|
adam@1528
|
12031 rm -f core conftest.err conftest.$ac_objext \
|
adam@1528
|
12032 conftest$ac_exeext conftest.$ac_ext
|
adam@1528
|
12033
|
adam@1528
|
12034 LIBS="$save_LIBS"
|
adam@1528
|
12035 CFLAGS="$save_CFLAGS"
|
adam@1528
|
12036
|
adam@1528
|
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
|
adam@1528
|
12038 $as_echo "$ax_pthread_ok" >&6; }
|
adam@1528
|
12039 if test "x$ax_pthread_ok" = xyes; then
|
adam@1528
|
12040 break;
|
adam@1528
|
12041 fi
|
adam@1528
|
12042
|
adam@1528
|
12043 PTHREAD_LIBS=""
|
adam@1528
|
12044 PTHREAD_CFLAGS=""
|
adam@1528
|
12045 done
|
adam@1528
|
12046 fi
|
adam@1528
|
12047
|
adam@1528
|
12048 # Various other checks:
|
adam@1528
|
12049 if test "x$ax_pthread_ok" = xyes; then
|
adam@1528
|
12050 save_LIBS="$LIBS"
|
adam@1528
|
12051 LIBS="$PTHREAD_LIBS $LIBS"
|
adam@1528
|
12052 save_CFLAGS="$CFLAGS"
|
adam@1528
|
12053 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
adam@1528
|
12054
|
adam@1528
|
12055 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
|
adam@1528
|
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
|
adam@1528
|
12057 $as_echo_n "checking for joinable pthread attribute... " >&6; }
|
adam@1528
|
12058 attr_name=unknown
|
adam@1528
|
12059 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
|
adam@1528
|
12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adam@1528
|
12061 /* end confdefs.h. */
|
adam@1528
|
12062 #include <pthread.h>
|
adam@1528
|
12063 int
|
adam@1528
|
12064 main ()
|
adam@1528
|
12065 {
|
adam@1528
|
12066 int attr = $attr; return attr /* ; */
|
adam@1528
|
12067 ;
|
adam@1528
|
12068 return 0;
|
adam@1528
|
12069 }
|
adam@1528
|
12070 _ACEOF
|
adam@1528
|
12071 if ac_fn_c_try_link "$LINENO"; then :
|
adam@1528
|
12072 attr_name=$attr; break
|
adam@1528
|
12073 fi
|
adam@1528
|
12074 rm -f core conftest.err conftest.$ac_objext \
|
adam@1528
|
12075 conftest$ac_exeext conftest.$ac_ext
|
adam@1528
|
12076 done
|
adam@1528
|
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
|
adam@1528
|
12078 $as_echo "$attr_name" >&6; }
|
adam@1528
|
12079 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
|
adam@1528
|
12080
|
adam@1528
|
12081 cat >>confdefs.h <<_ACEOF
|
adam@1528
|
12082 #define PTHREAD_CREATE_JOINABLE $attr_name
|
adam@1528
|
12083 _ACEOF
|
adam@1528
|
12084
|
adam@1528
|
12085 fi
|
adam@1528
|
12086
|
adam@1528
|
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
|
adam@1528
|
12088 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
|
adam@1528
|
12089 flag=no
|
adam@1528
|
12090 case "${host_cpu}-${host_os}" in
|
adam@1528
|
12091 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
|
adam@1528
|
12092 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
|
adam@1528
|
12093 esac
|
adam@1528
|
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
|
adam@1528
|
12095 $as_echo "${flag}" >&6; }
|
adam@1528
|
12096 if test "x$flag" != xno; then
|
adam@1528
|
12097 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
|
adam@1528
|
12098 fi
|
adam@1528
|
12099
|
adam@1528
|
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
|
adam@1528
|
12101 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
|
adam@1528
|
12102 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
|
adam@1528
|
12103 $as_echo_n "(cached) " >&6
|
adam@1528
|
12104 else
|
adam@1528
|
12105
|
adam@1528
|
12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adam@1528
|
12107 /* end confdefs.h. */
|
adam@1528
|
12108
|
adam@1528
|
12109 #include <pthread.h>
|
adam@1528
|
12110 int
|
adam@1528
|
12111 main ()
|
adam@1528
|
12112 {
|
adam@1528
|
12113 int i = PTHREAD_PRIO_INHERIT;
|
adam@1528
|
12114 ;
|
adam@1528
|
12115 return 0;
|
adam@1528
|
12116 }
|
adam@1528
|
12117 _ACEOF
|
adam@1528
|
12118 if ac_fn_c_try_link "$LINENO"; then :
|
adam@1528
|
12119 ax_cv_PTHREAD_PRIO_INHERIT=yes
|
adam@1528
|
12120 else
|
adam@1528
|
12121 ax_cv_PTHREAD_PRIO_INHERIT=no
|
adam@1528
|
12122 fi
|
adam@1528
|
12123 rm -f core conftest.err conftest.$ac_objext \
|
adam@1528
|
12124 conftest$ac_exeext conftest.$ac_ext
|
adam@1528
|
12125
|
adam@1528
|
12126 fi
|
adam@1528
|
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
|
adam@1528
|
12128 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
|
adam@1528
|
12129 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
|
adam@1528
|
12130
|
adam@1528
|
12131 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
|
adam@1528
|
12132
|
adam@1528
|
12133 fi
|
adam@1528
|
12134
|
adam@1528
|
12135 LIBS="$save_LIBS"
|
adam@1528
|
12136 CFLAGS="$save_CFLAGS"
|
adam@1528
|
12137
|
adam@1528
|
12138 # More AIX lossage: must compile with xlc_r or cc_r
|
adam@1528
|
12139 if test x"$GCC" != xyes; then
|
adam@1528
|
12140 for ac_prog in xlc_r cc_r
|
adam@1528
|
12141 do
|
adam@1528
|
12142 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
adam@1528
|
12143 set dummy $ac_prog; ac_word=$2
|
adam@1528
|
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adam@1528
|
12145 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1528
|
12146 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
|
adam@1528
|
12147 $as_echo_n "(cached) " >&6
|
adam@1528
|
12148 else
|
adam@1528
|
12149 if test -n "$PTHREAD_CC"; then
|
adam@1528
|
12150 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
|
adam@1528
|
12151 else
|
adam@1528
|
12152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adam@1528
|
12153 for as_dir in $PATH
|
adam@1528
|
12154 do
|
adam@1528
|
12155 IFS=$as_save_IFS
|
adam@1528
|
12156 test -z "$as_dir" && as_dir=.
|
adam@1528
|
12157 for ac_exec_ext in '' $ac_executable_extensions; do
|
adam@1528
|
12158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adam@1528
|
12159 ac_cv_prog_PTHREAD_CC="$ac_prog"
|
adam@1528
|
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adam@1528
|
12161 break 2
|
adam@1528
|
12162 fi
|
adam@1528
|
12163 done
|
adam@1528
|
12164 done
|
adam@1528
|
12165 IFS=$as_save_IFS
|
adam@1528
|
12166
|
adam@1528
|
12167 fi
|
adam@1528
|
12168 fi
|
adam@1528
|
12169 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
|
adam@1528
|
12170 if test -n "$PTHREAD_CC"; then
|
adam@1528
|
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
|
adam@1528
|
12172 $as_echo "$PTHREAD_CC" >&6; }
|
adam@1528
|
12173 else
|
adam@1528
|
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adam@1528
|
12175 $as_echo "no" >&6; }
|
adam@1528
|
12176 fi
|
adam@1528
|
12177
|
adam@1528
|
12178
|
adam@1528
|
12179 test -n "$PTHREAD_CC" && break
|
adam@1528
|
12180 done
|
adam@1528
|
12181 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
|
adam@1528
|
12182
|
adam@1528
|
12183 else
|
adam@1528
|
12184 PTHREAD_CC=$CC
|
adam@1528
|
12185 fi
|
adam@1528
|
12186 else
|
adam@1528
|
12187 PTHREAD_CC="$CC"
|
adam@1528
|
12188 fi
|
adam@1528
|
12189
|
adam@1528
|
12190
|
adam@1528
|
12191
|
adam@1528
|
12192
|
adam@1528
|
12193
|
adam@1528
|
12194 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
|
adam@1528
|
12195 if test x"$ax_pthread_ok" = xyes; then
|
adam@1528
|
12196 echo >/dev/null
|
adam@1528
|
12197 :
|
adam@1528
|
12198 else
|
adam@1528
|
12199 ax_pthread_ok=no
|
adam@1528
|
12200 echo "Your C compiler does not support POSIX threads."; exit 1
|
adam@1528
|
12201 fi
|
adam@1528
|
12202 ac_ext=c
|
adam@1528
|
12203 ac_cpp='$CPP $CPPFLAGS'
|
adam@1528
|
12204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
adam@1528
|
12205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
adam@1528
|
12206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
adam@1528
|
12207
|
adam@1528
|
12208
|
adam@1528
|
12209
|
adam@1528
|
12210
|
adam@1368
|
12211 found=false
|
adam@1368
|
12212
|
adam@1368
|
12213 # Check whether --with-openssl was given.
|
adam@1368
|
12214 if test "${with_openssl+set}" = set; then :
|
adam@1368
|
12215 withval=$with_openssl;
|
adam@1368
|
12216 case "$withval" in
|
adam@1368
|
12217 "" | y | ye | yes | n | no)
|
adam@1368
|
12218 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
|
adam@1368
|
12219 ;;
|
adam@1368
|
12220 *) ssldirs="$withval"
|
adam@1368
|
12221 ;;
|
adam@1368
|
12222 esac
|
adam@1368
|
12223
|
adam@1368
|
12224 else
|
adam@1368
|
12225
|
adam@1368
|
12226 # if pkg-config is installed and openssl has installed a .pc file,
|
adam@1368
|
12227 # then use that information and don't search ssldirs
|
adam@1368
|
12228 # Extract the first word of "pkg-config", so it can be a program name with args.
|
adam@1368
|
12229 set dummy pkg-config; ac_word=$2
|
adam@1368
|
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adam@1368
|
12231 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
12232 if ${ac_cv_path_PKG_CONFIG+:} false; then :
|
adam@1368
|
12233 $as_echo_n "(cached) " >&6
|
adam@1368
|
12234 else
|
adam@1368
|
12235 case $PKG_CONFIG in
|
adam@1368
|
12236 [\\/]* | ?:[\\/]*)
|
adam@1368
|
12237 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
adam@1368
|
12238 ;;
|
adam@1368
|
12239 *)
|
adam@1368
|
12240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adam@1368
|
12241 for as_dir in $PATH
|
adam@1368
|
12242 do
|
adam@1368
|
12243 IFS=$as_save_IFS
|
adam@1368
|
12244 test -z "$as_dir" && as_dir=.
|
adam@1368
|
12245 for ac_exec_ext in '' $ac_executable_extensions; do
|
adam@1368
|
12246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adam@1368
|
12247 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
adam@1368
|
12248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adam@1368
|
12249 break 2
|
adam@1368
|
12250 fi
|
adam@1368
|
12251 done
|
adam@1368
|
12252 done
|
adam@1368
|
12253 IFS=$as_save_IFS
|
adam@1368
|
12254
|
adam@1368
|
12255 ;;
|
adam@1368
|
12256 esac
|
adam@1368
|
12257 fi
|
adam@1368
|
12258 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
|
adam@1368
|
12259 if test -n "$PKG_CONFIG"; then
|
adam@1368
|
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
|
adam@1368
|
12261 $as_echo "$PKG_CONFIG" >&6; }
|
adam@1368
|
12262 else
|
adam@1368
|
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adam@1368
|
12264 $as_echo "no" >&6; }
|
adam@1368
|
12265 fi
|
adam@1368
|
12266
|
adam@1368
|
12267
|
adam@1368
|
12268 if test x"$PKG_CONFIG" != x""; then
|
adam@1368
|
12269 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
|
adam@1368
|
12270 if test $? = 0; then
|
adam@1368
|
12271 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
|
adam@1368
|
12272 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
|
adam@1368
|
12273 found=true
|
adam@1368
|
12274 fi
|
adam@1368
|
12275 fi
|
adam@1368
|
12276
|
adam@1368
|
12277 # no such luck; use some default ssldirs
|
adam@1368
|
12278 if ! $found; then
|
adam@1368
|
12279 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
|
adam@1368
|
12280 fi
|
adam@1368
|
12281
|
adam@1368
|
12282
|
adam@1368
|
12283 fi
|
adam@1368
|
12284
|
adam@1368
|
12285
|
adam@1368
|
12286
|
adam@1368
|
12287 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
|
adam@1368
|
12288 # an 'openssl' subdirectory
|
adam@1368
|
12289
|
adam@1368
|
12290 if ! $found; then
|
adam@1368
|
12291 OPENSSL_INCLUDES=
|
adam@1368
|
12292 for ssldir in $ssldirs; do
|
adam@1368
|
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
|
adam@1368
|
12294 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
|
adam@1368
|
12295 if test -f "$ssldir/include/openssl/ssl.h"; then
|
adam@1368
|
12296 OPENSSL_INCLUDES="-I$ssldir/include"
|
adam@1368
|
12297 OPENSSL_LDFLAGS="-L$ssldir/lib"
|
adam@1368
|
12298 OPENSSL_LIBS="-lssl -lcrypto"
|
adam@1368
|
12299 found=true
|
adam@1368
|
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
adam@1368
|
12301 $as_echo "yes" >&6; }
|
adam@1368
|
12302 break
|
adam@1368
|
12303 else
|
adam@1368
|
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adam@1368
|
12305 $as_echo "no" >&6; }
|
adam@1368
|
12306 fi
|
adam@1368
|
12307 done
|
adam@1368
|
12308
|
adam@1368
|
12309 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
|
adam@1368
|
12310 # it will just work!
|
adam@1368
|
12311 fi
|
adam@1368
|
12312
|
adam@1368
|
12313 # try the preprocessor and linker with our new flags,
|
adam@1368
|
12314 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
|
adam@1368
|
12315
|
adam@1368
|
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
|
adam@1368
|
12317 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
|
adam@1368
|
12318 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
|
adam@1368
|
12319 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
|
adam@1368
|
12320
|
adam@1368
|
12321 save_LIBS="$LIBS"
|
adam@1368
|
12322 save_LDFLAGS="$LDFLAGS"
|
adam@1368
|
12323 save_CPPFLAGS="$CPPFLAGS"
|
adam@1368
|
12324 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
|
adam@1368
|
12325 LIBS="$OPENSSL_LIBS $LIBS"
|
adam@1368
|
12326 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
|
adam@1368
|
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
adamc@1165
|
12328 /* end confdefs.h. */
|
adam@1368
|
12329 #include <openssl/ssl.h>
|
adamc@1165
|
12330 int
|
adamc@1165
|
12331 main ()
|
adamc@1165
|
12332 {
|
adam@1368
|
12333 SSL_new(NULL)
|
adamc@1165
|
12334 ;
|
adamc@1165
|
12335 return 0;
|
adamc@1165
|
12336 }
|
adamc@1165
|
12337 _ACEOF
|
adamc@1165
|
12338 if ac_fn_c_try_link "$LINENO"; then :
|
adam@1368
|
12339
|
adam@1368
|
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
adam@1368
|
12341 $as_echo "yes" >&6; }
|
adam@1368
|
12342 echo >/dev/null
|
adam@1368
|
12343
|
adam@1368
|
12344 else
|
adam@1368
|
12345
|
adam@1368
|
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adam@1368
|
12347 $as_echo "no" >&6; }
|
adam@1369
|
12348 echo "You must install OpenSSL development files."; exit 1
|
adam@1368
|
12349
|
adamc@1165
|
12350 fi
|
adamc@1165
|
12351 rm -f core conftest.err conftest.$ac_objext \
|
adamc@1165
|
12352 conftest$ac_exeext conftest.$ac_ext
|
adam@1368
|
12353 CPPFLAGS="$save_CPPFLAGS"
|
adam@1368
|
12354 LDFLAGS="$save_LDFLAGS"
|
adam@1368
|
12355 LIBS="$save_LIBS"
|
adam@1368
|
12356
|
adam@1368
|
12357
|
adam@1368
|
12358
|
adamc@1165
|
12359
|
adamc@1165
|
12360
|
adamc@1165
|
12361
|
adamc@1165
|
12362 # Extract the first word of "mlton", so it can be a program name with args.
|
adamc@1165
|
12363 set dummy mlton; ac_word=$2
|
adamc@1165
|
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1165
|
12365 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
12366 if ${ac_cv_prog_MLTON+:} false; then :
|
adamc@1165
|
12367 $as_echo_n "(cached) " >&6
|
adamc@1165
|
12368 else
|
adamc@1165
|
12369 if test -n "$MLTON"; then
|
adamc@1165
|
12370 ac_cv_prog_MLTON="$MLTON" # Let the user override the test.
|
adamc@1165
|
12371 else
|
adamc@1165
|
12372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1165
|
12373 for as_dir in $PATH
|
adamc@1165
|
12374 do
|
adamc@1165
|
12375 IFS=$as_save_IFS
|
adamc@1165
|
12376 test -z "$as_dir" && as_dir=.
|
adamc@1165
|
12377 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1165
|
12378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1165
|
12379 ac_cv_prog_MLTON="yes"
|
adamc@1165
|
12380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1165
|
12381 break 2
|
adamc@1165
|
12382 fi
|
adamc@1165
|
12383 done
|
adamc@1165
|
12384 done
|
adamc@1165
|
12385 IFS=$as_save_IFS
|
adamc@1165
|
12386
|
adamc@1165
|
12387 fi
|
adamc@1165
|
12388 fi
|
adamc@1165
|
12389 MLTON=$ac_cv_prog_MLTON
|
adamc@1165
|
12390 if test -n "$MLTON"; then
|
adamc@1165
|
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MLTON" >&5
|
adamc@1165
|
12392 $as_echo "$MLTON" >&6; }
|
adamc@1165
|
12393 else
|
adamc@1165
|
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1165
|
12395 $as_echo "no" >&6; }
|
adamc@1165
|
12396 fi
|
adamc@1165
|
12397
|
adamc@1165
|
12398
|
adamc@1165
|
12399
|
adamc@1165
|
12400 if test -z $MLTON; then
|
adamc@1165
|
12401 echo "You must install MLton."
|
adamc@1165
|
12402 exit 1
|
adamc@1165
|
12403 fi
|
adamc@1165
|
12404
|
adamc@1165
|
12405 # Extract the first word of "mllex", so it can be a program name with args.
|
adamc@1165
|
12406 set dummy mllex; ac_word=$2
|
adamc@1165
|
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1165
|
12408 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
12409 if ${ac_cv_prog_MLLEX+:} false; then :
|
adamc@1165
|
12410 $as_echo_n "(cached) " >&6
|
adamc@1165
|
12411 else
|
adamc@1165
|
12412 if test -n "$MLLEX"; then
|
adamc@1165
|
12413 ac_cv_prog_MLLEX="$MLLEX" # Let the user override the test.
|
adamc@1165
|
12414 else
|
adamc@1165
|
12415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1165
|
12416 for as_dir in $PATH
|
adamc@1165
|
12417 do
|
adamc@1165
|
12418 IFS=$as_save_IFS
|
adamc@1165
|
12419 test -z "$as_dir" && as_dir=.
|
adamc@1165
|
12420 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1165
|
12421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1165
|
12422 ac_cv_prog_MLLEX="yes"
|
adamc@1165
|
12423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1165
|
12424 break 2
|
adamc@1165
|
12425 fi
|
adamc@1165
|
12426 done
|
adamc@1165
|
12427 done
|
adamc@1165
|
12428 IFS=$as_save_IFS
|
adamc@1165
|
12429
|
adamc@1165
|
12430 fi
|
adamc@1165
|
12431 fi
|
adamc@1165
|
12432 MLLEX=$ac_cv_prog_MLLEX
|
adamc@1165
|
12433 if test -n "$MLLEX"; then
|
adamc@1165
|
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MLLEX" >&5
|
adamc@1165
|
12435 $as_echo "$MLLEX" >&6; }
|
adamc@1165
|
12436 else
|
adamc@1165
|
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1165
|
12438 $as_echo "no" >&6; }
|
adamc@1165
|
12439 fi
|
adamc@1165
|
12440
|
adamc@1165
|
12441
|
adamc@1165
|
12442
|
adamc@1165
|
12443 if test -z $MLLEX; then
|
adamc@1165
|
12444 echo "You must install MLton (to get mllex)."
|
adamc@1165
|
12445 exit 1
|
adamc@1165
|
12446 fi
|
adamc@1165
|
12447
|
adamc@1165
|
12448 # Extract the first word of "mlyacc", so it can be a program name with args.
|
adamc@1165
|
12449 set dummy mlyacc; ac_word=$2
|
adamc@1165
|
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
adamc@1165
|
12451 $as_echo_n "checking for $ac_word... " >&6; }
|
adam@1459
|
12452 if ${ac_cv_prog_MLYACC+:} false; then :
|
adamc@1165
|
12453 $as_echo_n "(cached) " >&6
|
adamc@1165
|
12454 else
|
adamc@1165
|
12455 if test -n "$MLYACC"; then
|
adamc@1165
|
12456 ac_cv_prog_MLYACC="$MLYACC" # Let the user override the test.
|
adamc@1165
|
12457 else
|
adamc@1165
|
12458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@1165
|
12459 for as_dir in $PATH
|
adamc@1165
|
12460 do
|
adamc@1165
|
12461 IFS=$as_save_IFS
|
adamc@1165
|
12462 test -z "$as_dir" && as_dir=.
|
adamc@1165
|
12463 for ac_exec_ext in '' $ac_executable_extensions; do
|
adamc@1165
|
12464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
adamc@1165
|
12465 ac_cv_prog_MLYACC="yes"
|
adamc@1165
|
12466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
adamc@1165
|
12467 break 2
|
adamc@1165
|
12468 fi
|
adamc@1165
|
12469 done
|
adamc@1165
|
12470 done
|
adamc@1165
|
12471 IFS=$as_save_IFS
|
adamc@1165
|
12472
|
adamc@1165
|
12473 fi
|
adamc@1165
|
12474 fi
|
adamc@1165
|
12475 MLYACC=$ac_cv_prog_MLYACC
|
adamc@1165
|
12476 if test -n "$MLYACC"; then
|
adamc@1165
|
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MLYACC" >&5
|
adamc@1165
|
12478 $as_echo "$MLYACC" >&6; }
|
adamc@1165
|
12479 else
|
adamc@1165
|
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
adamc@1165
|
12481 $as_echo "no" >&6; }
|
adamc@1165
|
12482 fi
|
adamc@1165
|
12483
|
adamc@1165
|
12484
|
adamc@1165
|
12485
|
adamc@1165
|
12486 if test -z $MLYACC; then
|
adamc@1165
|
12487 echo "You must install MLton (to get mlyacc)."
|
adamc@1165
|
12488 exit 1
|
adamc@1165
|
12489 fi
|
adamc@1165
|
12490
|
adamc@429
|
12491 if test $prefix = "NONE"; then
|
adamc@429
|
12492 prefix=/usr/local
|
adamc@429
|
12493 fi
|
adamc@429
|
12494
|
adamc@378
|
12495 if test -z $BIN; then
|
adamc@429
|
12496 BIN=$prefix/bin
|
adamc@378
|
12497 fi
|
adamc@378
|
12498
|
adamc@378
|
12499 if test -z $LIB; then
|
adamc@429
|
12500 LIB=$prefix/lib/urweb
|
adamc@378
|
12501 fi
|
adamc@378
|
12502
|
adamc@378
|
12503 if test -z $INCLUDE; then
|
adamc@429
|
12504 INCLUDE=$prefix/include/urweb
|
adamc@378
|
12505 fi
|
adamc@378
|
12506
|
adamc@378
|
12507 if test -z $SITELISP; then
|
adamc@429
|
12508 SITELISP=$prefix/share/emacs/site-lisp/urweb-mode
|
adamc@378
|
12509 fi
|
adamc@378
|
12510
|
adamc@378
|
12511
|
adam@1441
|
12512 # Check whether --with-emacs was given.
|
adam@1441
|
12513 if test "${with_emacs+set}" = set; then :
|
adam@1441
|
12514 withval=$with_emacs;
|
adam@1441
|
12515 else
|
adam@1441
|
12516 with_emacs=yes
|
adam@1441
|
12517 fi
|
adam@1441
|
12518
|
adam@1441
|
12519
|
adam@1441
|
12520 if test "x$with_emacs" = xyes; then
|
adam@1441
|
12521 USE_EMACS_TRUE=
|
adam@1441
|
12522 USE_EMACS_FALSE='#'
|
adam@1441
|
12523 else
|
adam@1441
|
12524 USE_EMACS_TRUE='#'
|
adam@1441
|
12525 USE_EMACS_FALSE=
|
adam@1441
|
12526 fi
|
adam@1441
|
12527
|
adam@1441
|
12528
|
adam@1464
|
12529 if test -z $PGHEADER; then
|
adam@1464
|
12530 for ac_header in postgresql/libpq-fe.h
|
adam@1464
|
12531 do :
|
adam@1464
|
12532 ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default"
|
adam@1464
|
12533 if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then :
|
adam@1464
|
12534 cat >>confdefs.h <<_ACEOF
|
adam@1464
|
12535 #define HAVE_POSTGRESQL_LIBPQ_FE_H 1
|
adam@1464
|
12536 _ACEOF
|
adam@1464
|
12537 PGHEADER=postgresql/libpq-fe.h
|
adam@1464
|
12538 fi
|
adam@1464
|
12539
|
adam@1464
|
12540 done
|
adam@1464
|
12541
|
adam@1464
|
12542 fi
|
adam@1464
|
12543
|
adam@1464
|
12544 if test -z $PGHEADER; then
|
adam@1464
|
12545 PGHEADER=libpq-fe.h
|
adam@1464
|
12546 fi
|
adam@1464
|
12547
|
adam@1464
|
12548 if test -z $MSHEADER; then
|
adam@1464
|
12549 for ac_header in mysql/mysql.h
|
adam@1464
|
12550 do :
|
adam@1464
|
12551 ac_fn_c_check_header_mongrel "$LINENO" "mysql/mysql.h" "ac_cv_header_mysql_mysql_h" "$ac_includes_default"
|
adam@1464
|
12552 if test "x$ac_cv_header_mysql_mysql_h" = xyes; then :
|
adam@1464
|
12553 cat >>confdefs.h <<_ACEOF
|
adam@1464
|
12554 #define HAVE_MYSQL_MYSQL_H 1
|
adam@1464
|
12555 _ACEOF
|
adam@1464
|
12556 MSHEADER=mysql/mysql.h
|
adam@1464
|
12557 fi
|
adam@1464
|
12558
|
adam@1464
|
12559 done
|
adam@1464
|
12560
|
adam@1464
|
12561 fi
|
adam@1464
|
12562
|
adam@1464
|
12563 if test -z $MSHEADER; then
|
adam@1464
|
12564 MSHEADER=mysql.h
|
adam@1464
|
12565 fi
|
adam@1464
|
12566
|
adam@1464
|
12567 if test -z $SQHEADER; then
|
adam@1464
|
12568 SQHEADER=sqlite3.h
|
adam@1464
|
12569 fi
|
adam@1464
|
12570
|
adam@1520
|
12571 if test $WORKING_VERSION = "1"; then
|
adam@1526
|
12572 VERSION="$VERSION + `hg identify || (cat .hg_archival.txt | grep 'node\:') || echo ?`"
|
adam@1520
|
12573 fi
|
adam@1520
|
12574
|
adam@1520
|
12575
|
adam@1464
|
12576
|
adam@1464
|
12577
|
adam@1464
|
12578
|
adam@1441
|
12579
|
adamc@1132
|
12580
|
adamc@1132
|
12581
|
adamc@1132
|
12582
|
adamc@1132
|
12583
|
adamc@1132
|
12584
|
adam@1474
|
12585
|
adam@1528
|
12586
|
adam@1528
|
12587
|
adamc@1132
|
12588 ac_config_files="$ac_config_files Makefile src/c/Makefile src/config.sml"
|
adamc@1132
|
12589
|
adamc@378
|
12590
|
adamc@378
|
12591 cat >confcache <<\_ACEOF
|
adamc@378
|
12592 # This file is a shell script that caches the results of configure
|
adamc@378
|
12593 # tests run on this system so they can be shared between configure
|
adamc@378
|
12594 # scripts and configure runs, see configure's option --config-cache.
|
adamc@378
|
12595 # It is not useful on other systems. If it contains results you don't
|
adamc@378
|
12596 # want to keep, you may remove or edit it.
|
adamc@378
|
12597 #
|
adamc@378
|
12598 # config.status only pays attention to the cache file if you give it
|
adamc@378
|
12599 # the --recheck option to rerun configure.
|
adamc@378
|
12600 #
|
adamc@378
|
12601 # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
adamc@378
|
12602 # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
adamc@378
|
12603 # following values.
|
adamc@378
|
12604
|
adamc@378
|
12605 _ACEOF
|
adamc@378
|
12606
|
adamc@378
|
12607 # The following way of writing the cache mishandles newlines in values,
|
adamc@378
|
12608 # but we know of no workaround that is simple, portable, and efficient.
|
adamc@378
|
12609 # So, we kill variables containing newlines.
|
adamc@378
|
12610 # Ultrix sh set writes to stderr and can't be redirected directly,
|
adamc@378
|
12611 # and sets the high bit in the cache file unless we assign to the vars.
|
adamc@378
|
12612 (
|
adamc@378
|
12613 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
adamc@378
|
12614 eval ac_val=\$$ac_var
|
adamc@378
|
12615 case $ac_val in #(
|
adamc@378
|
12616 *${as_nl}*)
|
adamc@378
|
12617 case $ac_var in #(
|
adamc@1095
|
12618 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
adamc@1095
|
12619 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
adamc@378
|
12620 esac
|
adamc@378
|
12621 case $ac_var in #(
|
adamc@378
|
12622 _ | IFS | as_nl) ;; #(
|
adamc@1095
|
12623 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
adamc@1095
|
12624 *) { eval $ac_var=; unset $ac_var;} ;;
|
adamc@378
|
12625 esac ;;
|
adamc@378
|
12626 esac
|
adamc@378
|
12627 done
|
adamc@378
|
12628
|
adamc@378
|
12629 (set) 2>&1 |
|
adamc@378
|
12630 case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
adamc@378
|
12631 *${as_nl}ac_space=\ *)
|
adamc@1095
|
12632 # `set' does not quote correctly, so add quotes: double-quote
|
adamc@1095
|
12633 # substitution turns \\\\ into \\, and sed turns \\ into \.
|
adamc@378
|
12634 sed -n \
|
adamc@378
|
12635 "s/'/'\\\\''/g;
|
adamc@378
|
12636 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
adamc@378
|
12637 ;; #(
|
adamc@378
|
12638 *)
|
adamc@378
|
12639 # `set' quotes correctly as required by POSIX, so do not add quotes.
|
adamc@378
|
12640 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
adamc@378
|
12641 ;;
|
adamc@378
|
12642 esac |
|
adamc@378
|
12643 sort
|
adamc@378
|
12644 ) |
|
adamc@378
|
12645 sed '
|
adamc@378
|
12646 /^ac_cv_env_/b end
|
adamc@378
|
12647 t clear
|
adamc@378
|
12648 :clear
|
adamc@378
|
12649 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
adamc@378
|
12650 t end
|
adamc@378
|
12651 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
adamc@378
|
12652 :end' >>confcache
|
adamc@378
|
12653 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
adamc@378
|
12654 if test -w "$cache_file"; then
|
adam@1459
|
12655 if test "x$cache_file" != "x/dev/null"; then
|
adamc@1095
|
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
adamc@1095
|
12657 $as_echo "$as_me: updating cache $cache_file" >&6;}
|
adam@1459
|
12658 if test ! -f "$cache_file" || test -h "$cache_file"; then
|
adam@1459
|
12659 cat confcache >"$cache_file"
|
adam@1459
|
12660 else
|
adam@1459
|
12661 case $cache_file in #(
|
adam@1459
|
12662 */* | ?:*)
|
adam@1459
|
12663 mv -f confcache "$cache_file"$$ &&
|
adam@1459
|
12664 mv -f "$cache_file"$$ "$cache_file" ;; #(
|
adam@1459
|
12665 *)
|
adam@1459
|
12666 mv -f confcache "$cache_file" ;;
|
adam@1459
|
12667 esac
|
adam@1459
|
12668 fi
|
adam@1459
|
12669 fi
|
adamc@378
|
12670 else
|
adamc@1095
|
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
adamc@1095
|
12672 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
adamc@378
|
12673 fi
|
adamc@378
|
12674 fi
|
adamc@378
|
12675 rm -f confcache
|
adamc@378
|
12676
|
adamc@378
|
12677 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
adamc@378
|
12678 # Let make expand exec_prefix.
|
adamc@378
|
12679 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
adamc@378
|
12680
|
adamc@1263
|
12681 DEFS=-DHAVE_CONFIG_H
|
adamc@378
|
12682
|
adamc@378
|
12683 ac_libobjs=
|
adamc@378
|
12684 ac_ltlibobjs=
|
adam@1315
|
12685 U=
|
adamc@378
|
12686 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
adamc@378
|
12687 # 1. Remove the extension, and $U if already installed.
|
adamc@378
|
12688 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
adamc@1095
|
12689 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
adamc@378
|
12690 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
adamc@378
|
12691 # will be set to the directory where LIBOBJS objects are built.
|
adamc@1095
|
12692 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
adamc@1095
|
12693 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
adamc@378
|
12694 done
|
adamc@378
|
12695 LIBOBJS=$ac_libobjs
|
adamc@378
|
12696
|
adamc@378
|
12697 LTLIBOBJS=$ac_ltlibobjs
|
adamc@378
|
12698
|
adamc@378
|
12699
|
adamc@1149
|
12700 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
adam@1315
|
12701 as_fn_error $? "conditional \"AMDEP\" was never defined.
|
adamc@1149
|
12702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
adamc@1149
|
12703 fi
|
adamc@1149
|
12704 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
adam@1315
|
12705 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
|
adamc@1149
|
12706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
adamc@1149
|
12707 fi
|
adamc@1132
|
12708 if test -n "$EXEEXT"; then
|
adamc@1132
|
12709 am__EXEEXT_TRUE=
|
adamc@1132
|
12710 am__EXEEXT_FALSE='#'
|
adamc@1132
|
12711 else
|
adamc@1132
|
12712 am__EXEEXT_TRUE='#'
|
adamc@1132
|
12713 am__EXEEXT_FALSE=
|
adamc@1132
|
12714 fi
|
adamc@1132
|
12715
|
adam@1441
|
12716 if test -z "${USE_EMACS_TRUE}" && test -z "${USE_EMACS_FALSE}"; then
|
adam@1441
|
12717 as_fn_error $? "conditional \"USE_EMACS\" was never defined.
|
adam@1441
|
12718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
adam@1441
|
12719 fi
|
adamc@378
|
12720
|
adam@1459
|
12721 : "${CONFIG_STATUS=./config.status}"
|
adamc@1095
|
12722 ac_write_fail=0
|
adamc@378
|
12723 ac_clean_files_save=$ac_clean_files
|
adamc@378
|
12724 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
adamc@1095
|
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
adamc@1095
|
12726 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
adamc@1095
|
12727 as_write_fail=0
|
adamc@1095
|
12728 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
adamc@378
|
12729 #! $SHELL
|
adamc@378
|
12730 # Generated by $as_me.
|
adamc@378
|
12731 # Run this file to recreate the current configuration.
|
adamc@378
|
12732 # Compiler output produced by configure, useful for debugging
|
adamc@378
|
12733 # configure, is in config.log if it exists.
|
adamc@378
|
12734
|
adamc@378
|
12735 debug=false
|
adamc@378
|
12736 ac_cs_recheck=false
|
adamc@378
|
12737 ac_cs_silent=false
|
adamc@1095
|
12738
|
adamc@378
|
12739 SHELL=\${CONFIG_SHELL-$SHELL}
|
adamc@1095
|
12740 export SHELL
|
adamc@1095
|
12741 _ASEOF
|
adamc@1095
|
12742 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
adamc@1095
|
12743 ## -------------------- ##
|
adamc@1095
|
12744 ## M4sh Initialization. ##
|
adamc@1095
|
12745 ## -------------------- ##
|
adamc@378
|
12746
|
adamc@378
|
12747 # Be more Bourne compatible
|
adamc@378
|
12748 DUALCASE=1; export DUALCASE # for MKS sh
|
adamc@1095
|
12749 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
adamc@378
|
12750 emulate sh
|
adamc@378
|
12751 NULLCMD=:
|
adamc@1095
|
12752 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
adamc@378
|
12753 # is contrary to our usage. Disable this feature.
|
adamc@378
|
12754 alias -g '${1+"$@"}'='"$@"'
|
adamc@378
|
12755 setopt NO_GLOB_SUBST
|
adamc@378
|
12756 else
|
adamc@1095
|
12757 case `(set -o) 2>/dev/null` in #(
|
adamc@1095
|
12758 *posix*) :
|
adamc@1095
|
12759 set -o posix ;; #(
|
adamc@1095
|
12760 *) :
|
adamc@1095
|
12761 ;;
|
adamc@378
|
12762 esac
|
adamc@378
|
12763 fi
|
adamc@378
|
12764
|
adamc@378
|
12765
|
adamc@1095
|
12766 as_nl='
|
adamc@1095
|
12767 '
|
adamc@1095
|
12768 export as_nl
|
adamc@1095
|
12769 # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
adamc@1095
|
12770 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
adamc@1095
|
12771 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
adamc@1095
|
12772 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
adamc@1095
|
12773 # Prefer a ksh shell builtin over an external printf program on Solaris,
|
adamc@1095
|
12774 # but without wasting forks for bash or zsh.
|
adamc@1095
|
12775 if test -z "$BASH_VERSION$ZSH_VERSION" \
|
adamc@1095
|
12776 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
adamc@1095
|
12777 as_echo='print -r --'
|
adamc@1095
|
12778 as_echo_n='print -rn --'
|
adamc@1095
|
12779 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
adamc@1095
|
12780 as_echo='printf %s\n'
|
adamc@1095
|
12781 as_echo_n='printf %s'
|
adamc@1095
|
12782 else
|
adamc@1095
|
12783 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
adamc@1095
|
12784 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
adamc@1095
|
12785 as_echo_n='/usr/ucb/echo -n'
|
adamc@1095
|
12786 else
|
adamc@1095
|
12787 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
adamc@1095
|
12788 as_echo_n_body='eval
|
adamc@1095
|
12789 arg=$1;
|
adamc@1095
|
12790 case $arg in #(
|
adamc@1095
|
12791 *"$as_nl"*)
|
adamc@1095
|
12792 expr "X$arg" : "X\\(.*\\)$as_nl";
|
adamc@1095
|
12793 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
adamc@1095
|
12794 esac;
|
adamc@1095
|
12795 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
adamc@1095
|
12796 '
|
adamc@1095
|
12797 export as_echo_n_body
|
adamc@1095
|
12798 as_echo_n='sh -c $as_echo_n_body as_echo'
|
adamc@1095
|
12799 fi
|
adamc@1095
|
12800 export as_echo_body
|
adamc@1095
|
12801 as_echo='sh -c $as_echo_body as_echo'
|
adamc@1095
|
12802 fi
|
adamc@378
|
12803
|
adamc@378
|
12804 # The user is always right.
|
adamc@378
|
12805 if test "${PATH_SEPARATOR+set}" != set; then
|
adamc@1095
|
12806 PATH_SEPARATOR=:
|
adamc@1095
|
12807 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
adamc@1095
|
12808 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
adamc@1095
|
12809 PATH_SEPARATOR=';'
|
adamc@1095
|
12810 }
|
adamc@378
|
12811 fi
|
adamc@378
|
12812
|
adamc@378
|
12813
|
adamc@378
|
12814 # IFS
|
adamc@378
|
12815 # We need space, tab and new line, in precisely that order. Quoting is
|
adamc@378
|
12816 # there to prevent editors from complaining about space-tab.
|
adamc@378
|
12817 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
adamc@378
|
12818 # splitting by setting IFS to empty value.)
|
adamc@378
|
12819 IFS=" "" $as_nl"
|
adamc@378
|
12820
|
adamc@378
|
12821 # Find who we are. Look in the path if we contain no directory separator.
|
adam@1459
|
12822 as_myself=
|
adamc@1095
|
12823 case $0 in #((
|
adamc@378
|
12824 *[\\/]* ) as_myself=$0 ;;
|
adamc@378
|
12825 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
adamc@378
|
12826 for as_dir in $PATH
|
adamc@378
|
12827 do
|
adamc@378
|
12828 IFS=$as_save_IFS
|
adamc@378
|
12829 test -z "$as_dir" && as_dir=.
|
adamc@1095
|
12830 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
adamc@1095
|
12831 done
|
adamc@378
|
12832 IFS=$as_save_IFS
|
adamc@378
|
12833
|
adamc@378
|
12834 ;;
|
adamc@378
|
12835 esac
|
adamc@378
|
12836 # We did not find ourselves, most probably we were run as `sh COMMAND'
|
adamc@378
|
12837 # in which case we are not to be found in the path.
|
adamc@378
|
12838 if test "x$as_myself" = x; then
|
adamc@378
|
12839 as_myself=$0
|
adamc@378
|
12840 fi
|
adamc@378
|
12841 if test ! -f "$as_myself"; then
|
adamc@1095
|
12842 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
adamc@1095
|
12843 exit 1
|
adamc@378
|
12844 fi
|
adamc@378
|
12845
|
adamc@1095
|
12846 # Unset variables that we do not need and which cause bugs (e.g. in
|
adamc@1095
|
12847 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
adamc@1095
|
12848 # suppresses any "Segmentation fault" message there. '((' could
|
adamc@1095
|
12849 # trigger a bug in pdksh 5.2.14.
|
adamc@1095
|
12850 for as_var in BASH_ENV ENV MAIL MAILPATH
|
adamc@1095
|
12851 do eval test x\${$as_var+set} = xset \
|
adamc@1095
|
12852 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
adamc@378
|
12853 done
|
adamc@378
|
12854 PS1='$ '
|
adamc@378
|
12855 PS2='> '
|
adamc@378
|
12856 PS4='+ '
|
adamc@378
|
12857
|
adamc@378
|
12858 # NLS nuisances.
|
adamc@1095
|
12859 LC_ALL=C
|
adamc@1095
|
12860 export LC_ALL
|
adamc@1095
|
12861 LANGUAGE=C
|
adamc@1095
|
12862 export LANGUAGE
|
adamc@1095
|
12863
|
adamc@1095
|
12864 # CDPATH.
|
adamc@1095
|
12865 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
adamc@1095
|
12866
|
adamc@1095
|
12867
|
adam@1315
|
12868 # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
adam@1315
|
12869 # ----------------------------------------
|
adamc@1095
|
12870 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
adamc@1095
|
12871 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
adam@1315
|
12872 # script with STATUS, using 1 if that was 0.
|
adamc@1095
|
12873 as_fn_error ()
|
adamc@1095
|
12874 {
|
adam@1315
|
12875 as_status=$1; test $as_status -eq 0 && as_status=1
|
adam@1315
|
12876 if test "$4"; then
|
adam@1315
|
12877 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
adam@1315
|
12878 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
adam@1315
|
12879 fi
|
adam@1315
|
12880 $as_echo "$as_me: error: $2" >&2
|
adamc@1095
|
12881 as_fn_exit $as_status
|
adamc@1095
|
12882 } # as_fn_error
|
adamc@378
|
12883
|
adamc@1095
|
12884
|
adamc@1095
|
12885 # as_fn_set_status STATUS
|
adamc@1095
|
12886 # -----------------------
|
adamc@1095
|
12887 # Set $? to STATUS, without forking.
|
adamc@1095
|
12888 as_fn_set_status ()
|
adamc@1095
|
12889 {
|
adamc@1095
|
12890 return $1
|
adamc@1095
|
12891 } # as_fn_set_status
|
adamc@1095
|
12892
|
adamc@1095
|
12893 # as_fn_exit STATUS
|
adamc@1095
|
12894 # -----------------
|
adamc@1095
|
12895 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
adamc@1095
|
12896 as_fn_exit ()
|
adamc@1095
|
12897 {
|
adamc@1095
|
12898 set +e
|
adamc@1095
|
12899 as_fn_set_status $1
|
adamc@1095
|
12900 exit $1
|
adamc@1095
|
12901 } # as_fn_exit
|
adamc@1095
|
12902
|
adamc@1095
|
12903 # as_fn_unset VAR
|
adamc@1095
|
12904 # ---------------
|
adamc@1095
|
12905 # Portably unset VAR.
|
adamc@1095
|
12906 as_fn_unset ()
|
adamc@1095
|
12907 {
|
adamc@1095
|
12908 { eval $1=; unset $1;}
|
adamc@1095
|
12909 }
|
adamc@1095
|
12910 as_unset=as_fn_unset
|
adamc@1095
|
12911 # as_fn_append VAR VALUE
|
adamc@1095
|
12912 # ----------------------
|
adamc@1095
|
12913 # Append the text in VALUE to the end of the definition contained in VAR. Take
|
adamc@1095
|
12914 # advantage of any shell optimizations that allow amortized linear growth over
|
adamc@1095
|
12915 # repeated appends, instead of the typical quadratic growth present in naive
|
adamc@1095
|
12916 # implementations.
|
adamc@1095
|
12917 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
adamc@1095
|
12918 eval 'as_fn_append ()
|
adamc@1095
|
12919 {
|
adamc@1095
|
12920 eval $1+=\$2
|
adamc@1095
|
12921 }'
|
adamc@1095
|
12922 else
|
adamc@1095
|
12923 as_fn_append ()
|
adamc@1095
|
12924 {
|
adamc@1095
|
12925 eval $1=\$$1\$2
|
adamc@1095
|
12926 }
|
adamc@1095
|
12927 fi # as_fn_append
|
adamc@1095
|
12928
|
adamc@1095
|
12929 # as_fn_arith ARG...
|
adamc@1095
|
12930 # ------------------
|
adamc@1095
|
12931 # Perform arithmetic evaluation on the ARGs, and store the result in the
|
adamc@1095
|
12932 # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
adamc@1095
|
12933 # must be portable across $(()) and expr.
|
adamc@1095
|
12934 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
adamc@1095
|
12935 eval 'as_fn_arith ()
|
adamc@1095
|
12936 {
|
adamc@1095
|
12937 as_val=$(( $* ))
|
adamc@1095
|
12938 }'
|
adamc@1095
|
12939 else
|
adamc@1095
|
12940 as_fn_arith ()
|
adamc@1095
|
12941 {
|
adamc@1095
|
12942 as_val=`expr "$@" || test $? -eq 1`
|
adamc@1095
|
12943 }
|
adamc@1095
|
12944 fi # as_fn_arith
|
adamc@1095
|
12945
|
adamc@1095
|
12946
|
adamc@378
|
12947 if expr a : '\(a\)' >/dev/null 2>&1 &&
|
adamc@378
|
12948 test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
adamc@378
|
12949 as_expr=expr
|
adamc@378
|
12950 else
|
adamc@378
|
12951 as_expr=false
|
adamc@378
|
12952 fi
|
adamc@378
|
12953
|
adamc@378
|
12954 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
adamc@378
|
12955 as_basename=basename
|
adamc@378
|
12956 else
|
adamc@378
|
12957 as_basename=false
|
adamc@378
|
12958 fi
|
adamc@378
|
12959
|
adamc@1095
|
12960 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
adamc@1095
|
12961 as_dirname=dirname
|
adamc@1095
|
12962 else
|
adamc@1095
|
12963 as_dirname=false
|
adamc@1095
|
12964 fi
|
adamc@378
|
12965
|
adamc@378
|
12966 as_me=`$as_basename -- "$0" ||
|
adamc@378
|
12967 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
adamc@378
|
12968 X"$0" : 'X\(//\)$' \| \
|
adamc@378
|
12969 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
adamc@1095
|
12970 $as_echo X/"$0" |
|
adamc@378
|
12971 sed '/^.*\/\([^/][^/]*\)\/*$/{
|
adamc@378
|
12972 s//\1/
|
adamc@378
|
12973 q
|
adamc@378
|
12974 }
|
adamc@378
|
12975 /^X\/\(\/\/\)$/{
|
adamc@378
|
12976 s//\1/
|
adamc@378
|
12977 q
|
adamc@378
|
12978 }
|
adamc@378
|
12979 /^X\/\(\/\).*/{
|
adamc@378
|
12980 s//\1/
|
adamc@378
|
12981 q
|
adamc@378
|
12982 }
|
adamc@378
|
12983 s/.*/./; q'`
|
adamc@378
|
12984
|
adamc@1095
|
12985 # Avoid depending upon Character Ranges.
|
adamc@1095
|
12986 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
adamc@1095
|
12987 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
adamc@1095
|
12988 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
adamc@1095
|
12989 as_cr_digits='0123456789'
|
adamc@1095
|
12990 as_cr_alnum=$as_cr_Letters$as_cr_digits
|
adamc@378
|
12991
|
adamc@378
|
12992 ECHO_C= ECHO_N= ECHO_T=
|
adamc@1095
|
12993 case `echo -n x` in #(((((
|
adamc@378
|
12994 -n*)
|
adamc@1095
|
12995 case `echo 'xy\c'` in
|
adamc@378
|
12996 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
adamc@1095
|
12997 xy) ECHO_C='\c';;
|
adamc@1095
|
12998 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
adamc@1095
|
12999 ECHO_T=' ';;
|
adamc@378
|
13000 esac;;
|
adamc@378
|
13001 *)
|
adamc@378
|
13002 ECHO_N='-n';;
|
adamc@378
|
13003 esac
|
adamc@378
|
13004
|
adamc@378
|
13005 rm -f conf$$ conf$$.exe conf$$.file
|
adamc@378
|
13006 if test -d conf$$.dir; then
|
adamc@378
|
13007 rm -f conf$$.dir/conf$$.file
|
adamc@378
|
13008 else
|
adamc@378
|
13009 rm -f conf$$.dir
|
adamc@1095
|
13010 mkdir conf$$.dir 2>/dev/null
|
adamc@378
|
13011 fi
|
adamc@1095
|
13012 if (echo >conf$$.file) 2>/dev/null; then
|
adamc@1095
|
13013 if ln -s conf$$.file conf$$ 2>/dev/null; then
|
adamc@1095
|
13014 as_ln_s='ln -s'
|
adamc@1095
|
13015 # ... but there are two gotchas:
|
adamc@1095
|
13016 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
adamc@1095
|
13017 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
adamc@1095
|
13018 # In both cases, we have to default to `cp -p'.
|
adamc@1095
|
13019 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
adamc@1095
|
13020 as_ln_s='cp -p'
|
adamc@1095
|
13021 elif ln conf$$.file conf$$ 2>/dev/null; then
|
adamc@1095
|
13022 as_ln_s=ln
|
adamc@1095
|
13023 else
|
adamc@378
|
13024 as_ln_s='cp -p'
|
adamc@1095
|
13025 fi
|
adamc@378
|
13026 else
|
adamc@378
|
13027 as_ln_s='cp -p'
|
adamc@378
|
13028 fi
|
adamc@378
|
13029 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
adamc@378
|
13030 rmdir conf$$.dir 2>/dev/null
|
adamc@378
|
13031
|
adamc@1095
|
13032
|
adamc@1095
|
13033 # as_fn_mkdir_p
|
adamc@1095
|
13034 # -------------
|
adamc@1095
|
13035 # Create "$as_dir" as a directory, including parents if necessary.
|
adamc@1095
|
13036 as_fn_mkdir_p ()
|
adamc@1095
|
13037 {
|
adamc@1095
|
13038
|
adamc@1095
|
13039 case $as_dir in #(
|
adamc@1095
|
13040 -*) as_dir=./$as_dir;;
|
adamc@1095
|
13041 esac
|
adamc@1095
|
13042 test -d "$as_dir" || eval $as_mkdir_p || {
|
adamc@1095
|
13043 as_dirs=
|
adamc@1095
|
13044 while :; do
|
adamc@1095
|
13045 case $as_dir in #(
|
adamc@1095
|
13046 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
adamc@1095
|
13047 *) as_qdir=$as_dir;;
|
adamc@1095
|
13048 esac
|
adamc@1095
|
13049 as_dirs="'$as_qdir' $as_dirs"
|
adamc@1095
|
13050 as_dir=`$as_dirname -- "$as_dir" ||
|
adamc@1095
|
13051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
adamc@1095
|
13052 X"$as_dir" : 'X\(//\)[^/]' \| \
|
adamc@1095
|
13053 X"$as_dir" : 'X\(//\)$' \| \
|
adamc@1095
|
13054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
adamc@1095
|
13055 $as_echo X"$as_dir" |
|
adamc@1095
|
13056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
adamc@1095
|
13057 s//\1/
|
adamc@1095
|
13058 q
|
adamc@1095
|
13059 }
|
adamc@1095
|
13060 /^X\(\/\/\)[^/].*/{
|
adamc@1095
|
13061 s//\1/
|
adamc@1095
|
13062 q
|
adamc@1095
|
13063 }
|
adamc@1095
|
13064 /^X\(\/\/\)$/{
|
adamc@1095
|
13065 s//\1/
|
adamc@1095
|
13066 q
|
adamc@1095
|
13067 }
|
adamc@1095
|
13068 /^X\(\/\).*/{
|
adamc@1095
|
13069 s//\1/
|
adamc@1095
|
13070 q
|
adamc@1095
|
13071 }
|
adamc@1095
|
13072 s/.*/./; q'`
|
adamc@1095
|
13073 test -d "$as_dir" && break
|
adamc@1095
|
13074 done
|
adamc@1095
|
13075 test -z "$as_dirs" || eval "mkdir $as_dirs"
|
adam@1315
|
13076 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
adamc@1095
|
13077
|
adamc@1095
|
13078
|
adamc@1095
|
13079 } # as_fn_mkdir_p
|
adamc@378
|
13080 if mkdir -p . 2>/dev/null; then
|
adamc@1095
|
13081 as_mkdir_p='mkdir -p "$as_dir"'
|
adamc@378
|
13082 else
|
adamc@378
|
13083 test -d ./-p && rmdir ./-p
|
adamc@378
|
13084 as_mkdir_p=false
|
adamc@378
|
13085 fi
|
adamc@378
|
13086
|
adamc@378
|
13087 if test -x / >/dev/null 2>&1; then
|
adamc@378
|
13088 as_test_x='test -x'
|
adamc@378
|
13089 else
|
adamc@378
|
13090 if ls -dL / >/dev/null 2>&1; then
|
adamc@378
|
13091 as_ls_L_option=L
|
adamc@378
|
13092 else
|
adamc@378
|
13093 as_ls_L_option=
|
adamc@378
|
13094 fi
|
adamc@378
|
13095 as_test_x='
|
adamc@378
|
13096 eval sh -c '\''
|
adamc@378
|
13097 if test -d "$1"; then
|
adamc@1095
|
13098 test -d "$1/.";
|
adamc@378
|
13099 else
|
adamc@1095
|
13100 case $1 in #(
|
adamc@1095
|
13101 -*)set "./$1";;
|
adamc@378
|
13102 esac;
|
adamc@1095
|
13103 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
adamc@378
|
13104 ???[sx]*):;;*)false;;esac;fi
|
adamc@378
|
13105 '\'' sh
|
adamc@378
|
13106 '
|
adamc@378
|
13107 fi
|
adamc@378
|
13108 as_executable_p=$as_test_x
|
adamc@378
|
13109
|
adamc@378
|
13110 # Sed expression to map a string onto a valid CPP name.
|
adamc@378
|
13111 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
adamc@378
|
13112
|
adamc@378
|
13113 # Sed expression to map a string onto a valid variable name.
|
adamc@378
|
13114 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
adamc@378
|
13115
|
adamc@378
|
13116
|
adamc@378
|
13117 exec 6>&1
|
adamc@1095
|
13118 ## ----------------------------------- ##
|
adamc@1095
|
13119 ## Main body of $CONFIG_STATUS script. ##
|
adamc@1095
|
13120 ## ----------------------------------- ##
|
adamc@1095
|
13121 _ASEOF
|
adamc@1095
|
13122 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
adamc@378
|
13123
|
adamc@1095
|
13124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
adamc@1095
|
13125 # Save the log message, to keep $0 and so on meaningful, and to
|
adamc@378
|
13126 # report actual input values of CONFIG_FILES etc. instead of their
|
adamc@378
|
13127 # values after options handling.
|
adamc@378
|
13128 ac_log="
|
adam@1561
|
13129 This file was extended by urweb $as_me 20110917, which was
|
adam@1459
|
13130 generated by GNU Autoconf 2.68. Invocation command line was
|
adamc@378
|
13131
|
adamc@378
|
13132 CONFIG_FILES = $CONFIG_FILES
|
adamc@378
|
13133 CONFIG_HEADERS = $CONFIG_HEADERS
|
adamc@378
|
13134 CONFIG_LINKS = $CONFIG_LINKS
|
adamc@378
|
13135 CONFIG_COMMANDS = $CONFIG_COMMANDS
|
adamc@378
|
13136 $ $0 $@
|
adamc@378
|
13137
|
adamc@378
|
13138 on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
adamc@378
|
13139 "
|
adamc@378
|
13140
|
adamc@378
|
13141 _ACEOF
|
adamc@378
|
13142
|
adamc@1095
|
13143 case $ac_config_files in *"
|
adamc@1095
|
13144 "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
adamc@1095
|
13145 esac
|
adamc@1095
|
13146
|
adamc@1263
|
13147 case $ac_config_headers in *"
|
adamc@1263
|
13148 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
adamc@1263
|
13149 esac
|
adamc@1095
|
13150
|
adamc@1095
|
13151
|
adamc@1095
|
13152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
adamc@378
|
13153 # Files that config.status was made for.
|
adamc@378
|
13154 config_files="$ac_config_files"
|
adamc@1263
|
13155 config_headers="$ac_config_headers"
|
adamc@1132
|
13156 config_commands="$ac_config_commands"
|
adamc@378
|
13157
|
adamc@378
|
13158 _ACEOF
|
adamc@378
|
13159
|
adamc@1095
|
13160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
adamc@378
|
13161 ac_cs_usage="\
|
adamc@1095
|
13162 \`$as_me' instantiates files and other configuration actions
|
adamc@1095
|
13163 from templates according to the current configuration. Unless the files
|
adamc@1095
|
13164 and actions are specified as TAGs, all are instantiated by default.
|
adamc@378
|
13165
|
adamc@1095
|
13166 Usage: $0 [OPTION]... [TAG]...
|
adamc@378
|
13167
|
adamc@378
|
13168 -h, --help print this help, then exit
|
adamc@378
|
13169 -V, --version print version number and configuration settings, then exit
|
adamc@1095
|
13170 --config print configuration, then exit
|
adamc@1095
|
13171 -q, --quiet, --silent
|
adamc@1095
|
13172 do not print progress messages
|
adamc@378
|
13173 -d, --debug don't remove temporary files
|
adamc@378
|
13174 --recheck update $as_me by reconfiguring in the same conditions
|
adamc@1095
|
13175 --file=FILE[:TEMPLATE]
|
adamc@1095
|
13176 instantiate the configuration file FILE
|
adamc@1263
|
13177 --header=FILE[:TEMPLATE]
|
adamc@1263
|
13178 instantiate the configuration header FILE
|
adamc@378
|
13179
|
adamc@378
|
13180 Configuration files:
|
adamc@378
|
13181 $config_files
|
adamc@378
|
13182
|
adamc@1263
|
13183 Configuration headers:
|
adamc@1263
|
13184 $config_headers
|
adamc@1263
|
13185
|
adamc@1132
|
13186 Configuration commands:
|
adamc@1132
|
13187 $config_commands
|
adamc@1132
|
13188
|
adamc@1095
|
13189 Report bugs to the package provider."
|
adamc@378
|
13190
|
adamc@378
|
13191 _ACEOF
|
adamc@1095
|
13192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
adamc@1095
|
13193 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
adamc@378
|
13194 ac_cs_version="\\
|
adam@1561
|
13195 urweb config.status 20110917
|
adam@1459
|
13196 configured by $0, generated by GNU Autoconf 2.68,
|
adamc@1095
|
13197 with options \\"\$ac_cs_config\\"
|
adamc@378
|
13198
|
adam@1315
|
13199 Copyright (C) 2010 Free Software Foundation, Inc.
|
adamc@378
|
13200 This config.status script is free software; the Free Software Foundation
|
adamc@378
|
13201 gives unlimited permission to copy, distribute and modify it."
|
adamc@378
|
13202
|
adamc@378
|
13203 ac_pwd='$ac_pwd'
|
adamc@378
|
13204 srcdir='$srcdir'
|
adamc@1132
|
13205 INSTALL='$INSTALL'
|
adamc@1132
|
13206 MKDIR_P='$MKDIR_P'
|
adamc@1132
|
13207 AWK='$AWK'
|
adamc@1095
|
13208 test -n "\$AWK" || AWK=awk
|
adamc@378
|
13209 _ACEOF
|
adamc@378
|
13210
|
adamc@1095
|
13211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
adamc@1095
|
13212 # The default lists apply if the user does not specify any file.
|
adamc@378
|
13213 ac_need_defaults=:
|
adamc@378
|
13214 while test $# != 0
|
adamc@378
|
13215 do
|
adamc@378
|
13216 case $1 in
|
adam@1315
|
13217 --*=?*)
|
adamc@378
|
13218 ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
adamc@378
|
13219 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
adamc@378
|
13220 ac_shift=:
|
adamc@378
|
13221 ;;
|
adam@1315
|
13222 --*=)
|
adam@1315
|
13223 ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
adam@1315
|
13224 ac_optarg=
|
adam@1315
|
13225 ac_shift=:
|
adam@1315
|
13226 ;;
|
adamc@378
|
13227 *)
|
adamc@378
|
13228 ac_option=$1
|
adamc@378
|
13229 ac_optarg=$2
|
adamc@378
|
13230 ac_shift=shift
|
adamc@378
|
13231 ;;
|
adamc@378
|
13232 esac
|
adamc@378
|
13233
|
adamc@378
|
13234 case $ac_option in
|
adamc@378
|
13235 # Handling of the options.
|
adamc@378
|
13236 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
adamc@378
|
13237 ac_cs_recheck=: ;;
|
adamc@378
|
13238 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
adamc@1095
|
13239 $as_echo "$ac_cs_version"; exit ;;
|
adamc@1095
|
13240 --config | --confi | --conf | --con | --co | --c )
|
adamc@1095
|
13241 $as_echo "$ac_cs_config"; exit ;;
|
adamc@378
|
13242 --debug | --debu | --deb | --de | --d | -d )
|
adamc@378
|
13243 debug=: ;;
|
adamc@378
|
13244 --file | --fil | --fi | --f )
|
adamc@378
|
13245 $ac_shift
|
adamc@1095
|
13246 case $ac_optarg in
|
adamc@1095
|
13247 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
adam@1315
|
13248 '') as_fn_error $? "missing file argument" ;;
|
adamc@1095
|
13249 esac
|
adamc@1095
|
13250 as_fn_append CONFIG_FILES " '$ac_optarg'"
|
adamc@378
|
13251 ac_need_defaults=false;;
|
adamc@1263
|
13252 --header | --heade | --head | --hea )
|
adamc@1263
|
13253 $ac_shift
|
adamc@1263
|
13254 case $ac_optarg in
|
adamc@1263
|
13255 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
adamc@1263
|
13256 esac
|
adamc@1263
|
13257 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
adamc@1263
|
13258 ac_need_defaults=false;;
|
adamc@1263
|
13259 --he | --h)
|
adamc@1263
|
13260 # Conflict between --help and --header
|
adam@1315
|
13261 as_fn_error $? "ambiguous option: \`$1'
|
adamc@1263
|
13262 Try \`$0 --help' for more information.";;
|
adamc@1263
|
13263 --help | --hel | -h )
|
adamc@1095
|
13264 $as_echo "$ac_cs_usage"; exit ;;
|
adamc@378
|
13265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
adamc@378
|
13266 | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
adamc@378
|
13267 ac_cs_silent=: ;;
|
adamc@378
|
13268
|
adamc@378
|
13269 # This is an error.
|
adam@1315
|
13270 -*) as_fn_error $? "unrecognized option: \`$1'
|
adamc@1095
|
13271 Try \`$0 --help' for more information." ;;
|
adamc@378
|
13272
|
adamc@1095
|
13273 *) as_fn_append ac_config_targets " $1"
|
adamc@378
|
13274 ac_need_defaults=false ;;
|
adamc@378
|
13275
|
adamc@378
|
13276 esac
|
adamc@378
|
13277 shift
|
adamc@378
|
13278 done
|
adamc@378
|
13279
|
adamc@378
|
13280 ac_configure_extra_args=
|
adamc@378
|
13281
|
adamc@378
|
13282 if $ac_cs_silent; then
|
adamc@378
|
13283 exec 6>/dev/null
|
adamc@378
|
13284 ac_configure_extra_args="$ac_configure_extra_args --silent"
|
adamc@378
|
13285 fi
|
adamc@378
|
13286
|
adamc@378
|
13287 _ACEOF
|
adamc@1095
|
13288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
adamc@378
|
13289 if \$ac_cs_recheck; then
|
adamc@1095
|
13290 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
adamc@1095
|
13291 shift
|
adamc@1095
|
13292 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
adamc@1095
|
13293 CONFIG_SHELL='$SHELL'
|
adamc@378
|
13294 export CONFIG_SHELL
|
adamc@1095
|
13295 exec "\$@"
|
adamc@378
|
13296 fi
|
adamc@378
|
13297
|
adamc@378
|
13298 _ACEOF
|
adamc@1095
|
13299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
adamc@378
|
13300 exec 5>>config.log
|
adamc@378
|
13301 {
|
adamc@378
|
13302 echo
|
adamc@378
|
13303 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
adamc@378
|
13304 ## Running $as_me. ##
|
adamc@378
|
13305 _ASBOX
|
adamc@1095
|
13306 $as_echo "$ac_log"
|
adamc@378
|
13307 } >&5
|
adamc@378
|
13308
|
adamc@378
|
13309 _ACEOF
|
adamc@1095
|
13310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
adamc@1132
|
13311 #
|
adamc@1132
|
13312 # INIT-COMMANDS
|
adamc@1132
|
13313 #
|
adamc@1132
|
13314 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
|
adamc@1132
|
13315
|
adamc@1132
|
13316
|
adamc@1132
|
13317 # The HP-UX ksh and POSIX shell print the target directory to stdout
|
adamc@1132
|
13318 # if CDPATH is set.
|
adamc@1132
|
13319 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
adamc@1132
|
13320
|
adamc@1132
|
13321 sed_quote_subst='$sed_quote_subst'
|
adamc@1132
|
13322 double_quote_subst='$double_quote_subst'
|
adamc@1132
|
13323 delay_variable_subst='$delay_variable_subst'
|
adam@1459
|
13324 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13325 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13326 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13327 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13328 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13329 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13330 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13331 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13332 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13333 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13334 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13335 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13336 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13337 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13338 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13339 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13340 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13341 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13342 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13343 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13344 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13345 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13346 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13347 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13348 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13349 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13350 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13351 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13352 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13353 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13354 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13355 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13356 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13357 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13358 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13359 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13360 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13361 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13362 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13363 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13364 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13365 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13366 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13367 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13368 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13369 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13370 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13371 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13372 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13373 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13374 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13375 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13376 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13377 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13378 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13379 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13380 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13381 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13382 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13383 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13384 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13385 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13386 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13387 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13388 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13389 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13390 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13391 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13392 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13393 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13394 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13395 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13396 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13397 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13398 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13399 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13400 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13401 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13402 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13403 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13404 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13405 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13406 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13407 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13408 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13409 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13410 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13411 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13412 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13413 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13414 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13415 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13416 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13417 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13418 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13419 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13420 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13421 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13422 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13423 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13424 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13425 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13426 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13427 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13428 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13429 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13430 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13431 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13432 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13433 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13434 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13435 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13436 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13437 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13438 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13439 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13440 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13441 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13442 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13443 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13444 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13445 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13446 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13447 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13448 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13449 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13450 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13451 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13452 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
|
adam@1459
|
13453 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
|
adamc@1132
|
13454
|
adamc@1132
|
13455 LTCC='$LTCC'
|
adamc@1132
|
13456 LTCFLAGS='$LTCFLAGS'
|
adamc@1132
|
13457 compiler='$compiler_DEFAULT'
|
adamc@1132
|
13458
|
adam@1459
|
13459 # A function that is used when there is no print builtin or printf.
|
adam@1459
|
13460 func_fallback_echo ()
|
adam@1459
|
13461 {
|
adam@1459
|
13462 eval 'cat <<_LTECHO_EOF
|
adam@1459
|
13463 \$1
|
adam@1459
|
13464 _LTECHO_EOF'
|
adam@1459
|
13465 }
|
adam@1459
|
13466
|
adamc@1132
|
13467 # Quote evaled strings.
|
adam@1459
|
13468 for var in SHELL \
|
adam@1459
|
13469 ECHO \
|
adam@1459
|
13470 SED \
|
adamc@1132
|
13471 GREP \
|
adamc@1132
|
13472 EGREP \
|
adamc@1132
|
13473 FGREP \
|
adamc@1132
|
13474 LD \
|
adamc@1132
|
13475 NM \
|
adamc@1132
|
13476 LN_S \
|
adamc@1132
|
13477 lt_SP2NL \
|
adamc@1132
|
13478 lt_NL2SP \
|
adamc@1132
|
13479 reload_flag \
|
adamc@1132
|
13480 OBJDUMP \
|
adamc@1132
|
13481 deplibs_check_method \
|
adamc@1132
|
13482 file_magic_cmd \
|
adam@1459
|
13483 file_magic_glob \
|
adam@1459
|
13484 want_nocaseglob \
|
adam@1459
|
13485 DLLTOOL \
|
adam@1459
|
13486 sharedlib_from_linklib_cmd \
|
adamc@1132
|
13487 AR \
|
adamc@1132
|
13488 AR_FLAGS \
|
adam@1459
|
13489 archiver_list_spec \
|
adamc@1132
|
13490 STRIP \
|
adamc@1132
|
13491 RANLIB \
|
adamc@1132
|
13492 CC \
|
adamc@1132
|
13493 CFLAGS \
|
adamc@1132
|
13494 compiler \
|
adamc@1132
|
13495 lt_cv_sys_global_symbol_pipe \
|
adamc@1132
|
13496 lt_cv_sys_global_symbol_to_cdecl \
|
adamc@1132
|
13497 lt_cv_sys_global_symbol_to_c_name_address \
|
adamc@1132
|
13498 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
adam@1459
|
13499 nm_file_list_spec \
|
adamc@1132
|
13500 lt_prog_compiler_no_builtin_flag \
|
adam@1459
|
13501 lt_prog_compiler_pic \
|
adamc@1132
|
13502 lt_prog_compiler_wl \
|
adamc@1132
|
13503 lt_prog_compiler_static \
|
adamc@1132
|
13504 lt_cv_prog_compiler_c_o \
|
adamc@1132
|
13505 need_locks \
|
adam@1459
|
13506 MANIFEST_TOOL \
|
adamc@1132
|
13507 DSYMUTIL \
|
adamc@1132
|
13508 NMEDIT \
|
adamc@1132
|
13509 LIPO \
|
adamc@1132
|
13510 OTOOL \
|
adamc@1132
|
13511 OTOOL64 \
|
adamc@1132
|
13512 shrext_cmds \
|
adamc@1132
|
13513 export_dynamic_flag_spec \
|
adamc@1132
|
13514 whole_archive_flag_spec \
|
adamc@1132
|
13515 compiler_needs_object \
|
adamc@1132
|
13516 with_gnu_ld \
|
adamc@1132
|
13517 allow_undefined_flag \
|
adamc@1132
|
13518 no_undefined_flag \
|
adamc@1132
|
13519 hardcode_libdir_flag_spec \
|
adamc@1132
|
13520 hardcode_libdir_flag_spec_ld \
|
adamc@1132
|
13521 hardcode_libdir_separator \
|
adamc@1132
|
13522 exclude_expsyms \
|
adamc@1132
|
13523 include_expsyms \
|
adamc@1132
|
13524 file_list_spec \
|
adamc@1132
|
13525 variables_saved_for_relink \
|
adamc@1132
|
13526 libname_spec \
|
adamc@1132
|
13527 library_names_spec \
|
adamc@1132
|
13528 soname_spec \
|
adam@1459
|
13529 install_override_mode \
|
adamc@1132
|
13530 finish_eval \
|
adamc@1132
|
13531 old_striplib \
|
adamc@1132
|
13532 striplib; do
|
adam@1459
|
13533 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
adamc@1132
|
13534 *[\\\\\\\`\\"\\\$]*)
|
adam@1459
|
13535 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
|
adamc@1132
|
13536 ;;
|
adamc@1132
|
13537 *)
|
adamc@1132
|
13538 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
adamc@1132
|
13539 ;;
|
adamc@1132
|
13540 esac
|
adamc@1132
|
13541 done
|
adamc@1132
|
13542
|
adamc@1132
|
13543 # Double-quote double-evaled strings.
|
adamc@1132
|
13544 for var in reload_cmds \
|
adamc@1132
|
13545 old_postinstall_cmds \
|
adamc@1132
|
13546 old_postuninstall_cmds \
|
adamc@1132
|
13547 old_archive_cmds \
|
adamc@1132
|
13548 extract_expsyms_cmds \
|
adamc@1132
|
13549 old_archive_from_new_cmds \
|
adamc@1132
|
13550 old_archive_from_expsyms_cmds \
|
adamc@1132
|
13551 archive_cmds \
|
adamc@1132
|
13552 archive_expsym_cmds \
|
adamc@1132
|
13553 module_cmds \
|
adamc@1132
|
13554 module_expsym_cmds \
|
adamc@1132
|
13555 export_symbols_cmds \
|
adamc@1132
|
13556 prelink_cmds \
|
adam@1459
|
13557 postlink_cmds \
|
adamc@1132
|
13558 postinstall_cmds \
|
adamc@1132
|
13559 postuninstall_cmds \
|
adamc@1132
|
13560 finish_cmds \
|
adamc@1132
|
13561 sys_lib_search_path_spec \
|
adamc@1132
|
13562 sys_lib_dlsearch_path_spec; do
|
adam@1459
|
13563 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
adamc@1132
|
13564 *[\\\\\\\`\\"\\\$]*)
|
adam@1459
|
13565 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
|
adamc@1132
|
13566 ;;
|
adamc@1132
|
13567 *)
|
adamc@1132
|
13568 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
adamc@1132
|
13569 ;;
|
adamc@1132
|
13570 esac
|
adamc@1132
|
13571 done
|
adamc@1132
|
13572
|
adamc@1132
|
13573 ac_aux_dir='$ac_aux_dir'
|
adamc@1132
|
13574 xsi_shell='$xsi_shell'
|
adamc@1132
|
13575 lt_shell_append='$lt_shell_append'
|
adamc@1132
|
13576
|
adamc@1132
|
13577 # See if we are running on zsh, and set the options which allow our
|
adamc@1132
|
13578 # commands through without removal of \ escapes INIT.
|
adamc@1132
|
13579 if test -n "\${ZSH_VERSION+set}" ; then
|
adamc@1132
|
13580 setopt NO_GLOB_SUBST
|
adamc@1132
|
13581 fi
|
adamc@1132
|
13582
|
adamc@1132
|
13583
|
adamc@1132
|
13584 PACKAGE='$PACKAGE'
|
adamc@1132
|
13585 VERSION='$VERSION'
|
adamc@1132
|
13586 TIMESTAMP='$TIMESTAMP'
|
adamc@1132
|
13587 RM='$RM'
|
adamc@1132
|
13588 ofile='$ofile'
|
adamc@1132
|
13589
|
adamc@1132
|
13590
|
adamc@1132
|
13591
|
adamc@1132
|
13592
|
adamc@378
|
13593 _ACEOF
|
adamc@378
|
13594
|
adamc@1095
|
13595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
adamc@378
|
13596
|
adamc@378
|
13597 # Handling of arguments.
|
adamc@378
|
13598 for ac_config_target in $ac_config_targets
|
adamc@378
|
13599 do
|
adamc@378
|
13600 case $ac_config_target in
|
adamc@1132
|
13601 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
adamc@1132
|
13602 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
adamc@1263
|
13603 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
adamc@378
|
13604 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
adamc@1132
|
13605 "src/c/Makefile") CONFIG_FILES="$CONFIG_FILES src/c/Makefile" ;;
|
adamc@378
|
13606 "src/config.sml") CONFIG_FILES="$CONFIG_FILES src/config.sml" ;;
|
adamc@378
|
13607
|
adam@1459
|
13608 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
adamc@378
|
13609 esac
|
adamc@378
|
13610 done
|
adamc@378
|
13611
|
adamc@378
|
13612
|
adamc@378
|
13613 # If the user did not use the arguments to specify the items to instantiate,
|
adamc@378
|
13614 # then the envvar interface is used. Set only those that are not.
|
adamc@378
|
13615 # We use the long form for the default assignment because of an extremely
|
adamc@378
|
13616 # bizarre bug on SunOS 4.1.3.
|
adamc@378
|
13617 if $ac_need_defaults; then
|
adamc@378
|
13618 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
adamc@1263
|
13619 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
adamc@1132
|
13620 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
adamc@378
|
13621 fi
|
adamc@378
|
13622
|
adamc@378
|
13623 # Have a temporary directory for convenience. Make it in the build tree
|
adamc@378
|
13624 # simply because there is no reason against having it here, and in addition,
|
adamc@378
|
13625 # creating and moving files from /tmp can sometimes cause problems.
|
adamc@378
|
13626 # Hook for its removal unless debugging.
|
adamc@378
|
13627 # Note that there is a small window in which the directory will not be cleaned:
|
adamc@378
|
13628 # after its creation but before its name has been assigned to `$tmp'.
|
adamc@378
|
13629 $debug ||
|
adamc@378
|
13630 {
|
adam@1459
|
13631 tmp= ac_tmp=
|
adamc@378
|
13632 trap 'exit_status=$?
|
adam@1459
|
13633 : "${ac_tmp:=$tmp}"
|
adam@1459
|
13634 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
adamc@378
|
13635 ' 0
|
adamc@1095
|
13636 trap 'as_fn_exit 1' 1 2 13 15
|
adamc@378
|
13637 }
|
adamc@378
|
13638 # Create a (secure) tmp directory for tmp files.
|
adamc@378
|
13639
|
adamc@378
|
13640 {
|
adamc@378
|
13641 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
adam@1459
|
13642 test -d "$tmp"
|
adamc@378
|
13643 } ||
|
adamc@378
|
13644 {
|
adamc@378
|
13645 tmp=./conf$$-$RANDOM
|
adamc@378
|
13646 (umask 077 && mkdir "$tmp")
|
adam@1315
|
13647 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
adam@1459
|
13648 ac_tmp=$tmp
|
adamc@378
|
13649
|
adamc@1095
|
13650 # Set up the scripts for CONFIG_FILES section.
|
adamc@1095
|
13651 # No need to generate them if there are no CONFIG_FILES.
|
adamc@1095
|
13652 # This happens for instance with `./config.status config.h'.
|
adamc@378
|
13653 if test -n "$CONFIG_FILES"; then
|
adamc@378
|
13654
|
adamc@1095
|
13655
|
adamc@1095
|
13656 ac_cr=`echo X | tr X '\015'`
|
adamc@1095
|
13657 # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
adamc@1095
|
13658 # But we know of no other shell where ac_cr would be empty at this
|
adamc@1095
|
13659 # point, so we can use a bashism as a fallback.
|
adamc@1095
|
13660 if test "x$ac_cr" = x; then
|
adamc@1095
|
13661 eval ac_cr=\$\'\\r\'
|
adamc@1095
|
13662 fi
|
adamc@1095
|
13663 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
adamc@1095
|
13664 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
adam@1315
|
13665 ac_cs_awk_cr='\\r'
|
adamc@1095
|
13666 else
|
adamc@1095
|
13667 ac_cs_awk_cr=$ac_cr
|
adamc@1095
|
13668 fi
|
adamc@1095
|
13669
|
adam@1459
|
13670 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
adamc@378
|
13671 _ACEOF
|
adamc@378
|
13672
|
adamc@378
|
13673
|
adamc@1095
|
13674 {
|
adamc@1095
|
13675 echo "cat >conf$$subs.awk <<_ACEOF" &&
|
adamc@1095
|
13676 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
adamc@1095
|
13677 echo "_ACEOF"
|
adamc@1095
|
13678 } >conf$$subs.sh ||
|
adam@1315
|
13679 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
adam@1315
|
13680 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
adamc@378
|
13681 ac_delim='%!_!# '
|
adamc@378
|
13682 for ac_last_try in false false false false false :; do
|
adamc@1095
|
13683 . ./conf$$subs.sh ||
|
adam@1315
|
13684 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
adamc@378
|
13685
|
adamc@1095
|
13686 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
adamc@1095
|
13687 if test $ac_delim_n = $ac_delim_num; then
|
adamc@378
|
13688 break
|
adamc@378
|
13689 elif $ac_last_try; then
|
adam@1315
|
13690 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
adamc@378
|
13691 else
|
adamc@378
|
13692 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
adamc@378
|
13693 fi
|
adamc@378
|
13694 done
|
adamc@1095
|
13695 rm -f conf$$subs.sh
|
adamc@378
|
13696
|
adamc@1095
|
13697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
adam@1459
|
13698 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
adamc@1095
|
13699 _ACEOF
|
adamc@1095
|
13700 sed -n '
|
adamc@1095
|
13701 h
|
adamc@1095
|
13702 s/^/S["/; s/!.*/"]=/
|
adamc@1095
|
13703 p
|
adamc@1095
|
13704 g
|
adamc@1095
|
13705 s/^[^!]*!//
|
adamc@1095
|
13706 :repl
|
adamc@1095
|
13707 t repl
|
adamc@1095
|
13708 s/'"$ac_delim"'$//
|
adamc@1095
|
13709 t delim
|
adamc@1095
|
13710 :nl
|
adamc@1095
|
13711 h
|
adamc@1095
|
13712 s/\(.\{148\}\)..*/\1/
|
adamc@1095
|
13713 t more1
|
adamc@1095
|
13714 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
adamc@1095
|
13715 p
|
adamc@1095
|
13716 n
|
adamc@1095
|
13717 b repl
|
adamc@1095
|
13718 :more1
|
adamc@1095
|
13719 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
adamc@1095
|
13720 p
|
adamc@1095
|
13721 g
|
adamc@1095
|
13722 s/.\{148\}//
|
adamc@1095
|
13723 t nl
|
adamc@1095
|
13724 :delim
|
adamc@1095
|
13725 h
|
adamc@1095
|
13726 s/\(.\{148\}\)..*/\1/
|
adamc@1095
|
13727 t more2
|
adamc@1095
|
13728 s/["\\]/\\&/g; s/^/"/; s/$/"/
|
adamc@1095
|
13729 p
|
adamc@1095
|
13730 b
|
adamc@1095
|
13731 :more2
|
adamc@1095
|
13732 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
adamc@1095
|
13733 p
|
adamc@1095
|
13734 g
|
adamc@1095
|
13735 s/.\{148\}//
|
adamc@1095
|
13736 t delim
|
adamc@1095
|
13737 ' <conf$$subs.awk | sed '
|
adamc@1095
|
13738 /^[^""]/{
|
adamc@1095
|
13739 N
|
adamc@1095
|
13740 s/\n//
|
adamc@1095
|
13741 }
|
adamc@1095
|
13742 ' >>$CONFIG_STATUS || ac_write_fail=1
|
adamc@1095
|
13743 rm -f conf$$subs.awk
|
adamc@1095
|
13744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
adamc@1095
|
13745 _ACAWK
|
adam@1459
|
13746 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
adamc@1095
|
13747 for (key in S) S_is_set[key] = 1
|
adamc@1095
|
13748 FS = ""
|
adamc@378
|
13749
|
adamc@1095
|
13750 }
|
adamc@1095
|
13751 {
|
adamc@1095
|
13752 line = $ 0
|
adamc@1095
|
13753 nfields = split(line, field, "@")
|
adamc@1095
|
13754 substed = 0
|
adamc@1095
|
13755 len = length(field[1])
|
adamc@1095
|
13756 for (i = 2; i < nfields; i++) {
|
adamc@1095
|
13757 key = field[i]
|
adamc@1095
|
13758 keylen = length(key)
|
adamc@1095
|
13759 if (S_is_set[key]) {
|
adamc@1095
|
13760 value = S[key]
|
adamc@1095
|
13761 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
adamc@1095
|
13762 len += length(value) + length(field[++i])
|
adamc@1095
|
13763 substed = 1
|
adamc@1095
|
13764 } else
|
adamc@1095
|
13765 len += 1 + keylen
|
adamc@1095
|
13766 }
|
adamc@1095
|
13767
|
adamc@1095
|
13768 print line
|
adamc@1095
|
13769 }
|
adamc@1095
|
13770
|
adamc@1095
|
13771 _ACAWK
|
adamc@378
|
13772 _ACEOF
|
adamc@1095
|
13773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
adamc@1095
|
13774 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
adamc@1095
|
13775 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
adamc@1095
|
13776 else
|
adamc@1095
|
13777 cat
|
adam@1459
|
13778 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
adam@1315
|
13779 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
adam@1315
|
13780 _ACEOF
|
adam@1315
|
13781
|
adam@1315
|
13782 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
adam@1315
|
13783 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
adamc@378
|
13784 # trailing colons and then remove the whole line if VPATH becomes empty
|
adamc@378
|
13785 # (actually we leave an empty line to preserve line numbers).
|
adamc@378
|
13786 if test "x$srcdir" = x.; then
|
adam@1315
|
13787 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
adam@1315
|
13788 h
|
adam@1315
|
13789 s///
|
adam@1315
|
13790 s/^/:/
|
adam@1315
|
13791 s/[ ]*$/:/
|
adam@1315
|
13792 s/:\$(srcdir):/:/g
|
adam@1315
|
13793 s/:\${srcdir}:/:/g
|
adam@1315
|
13794 s/:@srcdir@:/:/g
|
adam@1315
|
13795 s/^:*//
|
adamc@378
|
13796 s/:*$//
|
adam@1315
|
13797 x
|
adam@1315
|
13798 s/\(=[ ]*\).*/\1/
|
adam@1315
|
13799 G
|
adam@1315
|
13800 s/\n//
|
adamc@378
|
13801 s/^[^=]*=[ ]*$//
|
adamc@378
|
13802 }'
|
adamc@378
|
13803 fi
|
adamc@378
|
13804
|
adamc@1095
|
13805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
adamc@378
|
13806 fi # test -n "$CONFIG_FILES"
|
adamc@378
|
13807
|
adamc@1263
|
13808 # Set up the scripts for CONFIG_HEADERS section.
|
adamc@1263
|
13809 # No need to generate them if there are no CONFIG_HEADERS.
|
adamc@1263
|
13810 # This happens for instance with `./config.status Makefile'.
|
adamc@1263
|
13811 if test -n "$CONFIG_HEADERS"; then
|
adam@1459
|
13812 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
adamc@1263
|
13813 BEGIN {
|
adamc@1263
|
13814 _ACEOF
|
adamc@1263
|
13815
|
adamc@1263
|
13816 # Transform confdefs.h into an awk script `defines.awk', embedded as
|
adamc@1263
|
13817 # here-document in config.status, that substitutes the proper values into
|
adamc@1263
|
13818 # config.h.in to produce config.h.
|
adamc@1263
|
13819
|
adamc@1263
|
13820 # Create a delimiter string that does not exist in confdefs.h, to ease
|
adamc@1263
|
13821 # handling of long lines.
|
adamc@1263
|
13822 ac_delim='%!_!# '
|
adamc@1263
|
13823 for ac_last_try in false false :; do
|
adam@1459
|
13824 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
adam@1459
|
13825 if test -z "$ac_tt"; then
|
adamc@1263
|
13826 break
|
adamc@1263
|
13827 elif $ac_last_try; then
|
adam@1315
|
13828 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
adamc@1263
|
13829 else
|
adamc@1263
|
13830 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
adamc@1263
|
13831 fi
|
adamc@1263
|
13832 done
|
adamc@1263
|
13833
|
adamc@1263
|
13834 # For the awk script, D is an array of macro values keyed by name,
|
adamc@1263
|
13835 # likewise P contains macro parameters if any. Preserve backslash
|
adamc@1263
|
13836 # newline sequences.
|
adamc@1263
|
13837
|
adamc@1263
|
13838 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
adamc@1263
|
13839 sed -n '
|
adamc@1263
|
13840 s/.\{148\}/&'"$ac_delim"'/g
|
adamc@1263
|
13841 t rset
|
adamc@1263
|
13842 :rset
|
adamc@1263
|
13843 s/^[ ]*#[ ]*define[ ][ ]*/ /
|
adamc@1263
|
13844 t def
|
adamc@1263
|
13845 d
|
adamc@1263
|
13846 :def
|
adamc@1263
|
13847 s/\\$//
|
adamc@1263
|
13848 t bsnl
|
adamc@1263
|
13849 s/["\\]/\\&/g
|
adamc@1263
|
13850 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
adamc@1263
|
13851 D["\1"]=" \3"/p
|
adamc@1263
|
13852 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
adamc@1263
|
13853 d
|
adamc@1263
|
13854 :bsnl
|
adamc@1263
|
13855 s/["\\]/\\&/g
|
adamc@1263
|
13856 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
adamc@1263
|
13857 D["\1"]=" \3\\\\\\n"\\/p
|
adamc@1263
|
13858 t cont
|
adamc@1263
|
13859 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
adamc@1263
|
13860 t cont
|
adamc@1263
|
13861 d
|
adamc@1263
|
13862 :cont
|
adamc@1263
|
13863 n
|
adamc@1263
|
13864 s/.\{148\}/&'"$ac_delim"'/g
|
adamc@1263
|
13865 t clear
|
adamc@1263
|
13866 :clear
|
adamc@1263
|
13867 s/\\$//
|
adamc@1263
|
13868 t bsnlc
|
adamc@1263
|
13869 s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
adamc@1263
|
13870 d
|
adamc@1263
|
13871 :bsnlc
|
adamc@1263
|
13872 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
adamc@1263
|
13873 b cont
|
adamc@1263
|
13874 ' <confdefs.h | sed '
|
adamc@1263
|
13875 s/'"$ac_delim"'/"\\\
|
adamc@1263
|
13876 "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
adamc@1263
|
13877
|
adamc@1263
|
13878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
adamc@1263
|
13879 for (key in D) D_is_set[key] = 1
|
adamc@1263
|
13880 FS = ""
|
adamc@1263
|
13881 }
|
adamc@1263
|
13882 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
adamc@1263
|
13883 line = \$ 0
|
adamc@1263
|
13884 split(line, arg, " ")
|
adamc@1263
|
13885 if (arg[1] == "#") {
|
adamc@1263
|
13886 defundef = arg[2]
|
adamc@1263
|
13887 mac1 = arg[3]
|
adamc@1263
|
13888 } else {
|
adamc@1263
|
13889 defundef = substr(arg[1], 2)
|
adamc@1263
|
13890 mac1 = arg[2]
|
adamc@1263
|
13891 }
|
adamc@1263
|
13892 split(mac1, mac2, "(") #)
|
adamc@1263
|
13893 macro = mac2[1]
|
adamc@1263
|
13894 prefix = substr(line, 1, index(line, defundef) - 1)
|
adamc@1263
|
13895 if (D_is_set[macro]) {
|
adamc@1263
|
13896 # Preserve the white space surrounding the "#".
|
adamc@1263
|
13897 print prefix "define", macro P[macro] D[macro]
|
adamc@1263
|
13898 next
|
adamc@1263
|
13899 } else {
|
adamc@1263
|
13900 # Replace #undef with comments. This is necessary, for example,
|
adamc@1263
|
13901 # in the case of _POSIX_SOURCE, which is predefined and required
|
adamc@1263
|
13902 # on some systems where configure will not decide to define it.
|
adamc@1263
|
13903 if (defundef == "undef") {
|
adamc@1263
|
13904 print "/*", prefix defundef, macro, "*/"
|
adamc@1263
|
13905 next
|
adamc@1263
|
13906 }
|
adamc@1263
|
13907 }
|
adamc@1263
|
13908 }
|
adamc@1263
|
13909 { print }
|
adamc@1263
|
13910 _ACAWK
|
adamc@1263
|
13911 _ACEOF
|
adamc@1263
|
13912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
adam@1315
|
13913 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
adamc@1263
|
13914 fi # test -n "$CONFIG_HEADERS"
|
adamc@1263
|
13915
|
adamc@1263
|
13916
|
adamc@1263
|
13917 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
adamc@1095
|
13918 shift
|
adamc@1095
|
13919 for ac_tag
|
adamc@378
|
13920 do
|
adamc@378
|
13921 case $ac_tag in
|
adamc@378
|
13922 :[FHLC]) ac_mode=$ac_tag; continue;;
|
adamc@378
|
13923 esac
|
adamc@378
|
13924 case $ac_mode$ac_tag in
|
adamc@378
|
13925 :[FHL]*:*);;
|
adam@1459
|
13926 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
adamc@378
|
13927 :[FH]-) ac_tag=-:-;;
|
adamc@378
|
13928 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
adamc@378
|
13929 esac
|
adamc@378
|
13930 ac_save_IFS=$IFS
|
adamc@378
|
13931 IFS=:
|
adamc@378
|
13932 set x $ac_tag
|
adamc@378
|
13933 IFS=$ac_save_IFS
|
adamc@378
|
13934 shift
|
adamc@378
|
13935 ac_file=$1
|
adamc@378
|
13936 shift
|
adamc@378
|
13937
|
adamc@378
|
13938 case $ac_mode in
|
adamc@378
|
13939 :L) ac_source=$1;;
|
adamc@378
|
13940 :[FH])
|
adamc@378
|
13941 ac_file_inputs=
|
adamc@378
|
13942 for ac_f
|
adamc@378
|
13943 do
|
adamc@378
|
13944 case $ac_f in
|
adam@1459
|
13945 -) ac_f="$ac_tmp/stdin";;
|
adamc@378
|
13946 *) # Look for the file first in the build tree, then in the source tree
|
adamc@378
|
13947 # (if the path is not absolute). The absolute path cannot be DOS-style,
|
adamc@378
|
13948 # because $ac_f cannot contain `:'.
|
adamc@378
|
13949 test -f "$ac_f" ||
|
adamc@378
|
13950 case $ac_f in
|
adamc@378
|
13951 [\\/$]*) false;;
|
adamc@378
|
13952 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
adamc@378
|
13953 esac ||
|
adam@1459
|
13954 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
adamc@378
|
13955 esac
|
adamc@1095
|
13956 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
adamc@1095
|
13957 as_fn_append ac_file_inputs " '$ac_f'"
|
adamc@378
|
13958 done
|
adamc@378
|
13959
|
adamc@378
|
13960 # Let's still pretend it is `configure' which instantiates (i.e., don't
|
adamc@378
|
13961 # use $as_me), people would be surprised to read:
|
adamc@378
|
13962 # /* config.h. Generated by config.status. */
|
adamc@1095
|
13963 configure_input='Generated from '`
|
adamc@1095
|
13964 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
adamc@1095
|
13965 `' by configure.'
|
adamc@378
|
13966 if test x"$ac_file" != x-; then
|
adamc@378
|
13967 configure_input="$ac_file. $configure_input"
|
adamc@1095
|
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
adamc@1095
|
13969 $as_echo "$as_me: creating $ac_file" >&6;}
|
adamc@378
|
13970 fi
|
adamc@1095
|
13971 # Neutralize special characters interpreted by sed in replacement strings.
|
adamc@1095
|
13972 case $configure_input in #(
|
adamc@1095
|
13973 *\&* | *\|* | *\\* )
|
adamc@1095
|
13974 ac_sed_conf_input=`$as_echo "$configure_input" |
|
adamc@1095
|
13975 sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
adamc@1095
|
13976 *) ac_sed_conf_input=$configure_input;;
|
adamc@1095
|
13977 esac
|
adamc@378
|
13978
|
adamc@378
|
13979 case $ac_tag in
|
adam@1459
|
13980 *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
adam@1459
|
13981 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
adamc@378
|
13982 esac
|
adamc@378
|
13983 ;;
|
adamc@378
|
13984 esac
|
adamc@378
|
13985
|
adamc@378
|
13986 ac_dir=`$as_dirname -- "$ac_file" ||
|
adamc@378
|
13987 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
adamc@378
|
13988 X"$ac_file" : 'X\(//\)[^/]' \| \
|
adamc@378
|
13989 X"$ac_file" : 'X\(//\)$' \| \
|
adamc@378
|
13990 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
adamc@1095
|
13991 $as_echo X"$ac_file" |
|
adamc@378
|
13992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
adamc@378
|
13993 s//\1/
|
adamc@378
|
13994 q
|
adamc@378
|
13995 }
|
adamc@378
|
13996 /^X\(\/\/\)[^/].*/{
|
adamc@378
|
13997 s//\1/
|
adamc@378
|
13998 q
|
adamc@378
|
13999 }
|
adamc@378
|
14000 /^X\(\/\/\)$/{
|
adamc@378
|
14001 s//\1/
|
adamc@378
|
14002 q
|
adamc@378
|
14003 }
|
adamc@378
|
14004 /^X\(\/\).*/{
|
adamc@378
|
14005 s//\1/
|
adamc@378
|
14006 q
|
adamc@378
|
14007 }
|
adamc@378
|
14008 s/.*/./; q'`
|
adamc@1095
|
14009 as_dir="$ac_dir"; as_fn_mkdir_p
|
adamc@378
|
14010 ac_builddir=.
|
adamc@378
|
14011
|
adamc@378
|
14012 case "$ac_dir" in
|
adamc@378
|
14013 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
adamc@378
|
14014 *)
|
adamc@1095
|
14015 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
adamc@378
|
14016 # A ".." for each directory in $ac_dir_suffix.
|
adamc@1095
|
14017 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
adamc@378
|
14018 case $ac_top_builddir_sub in
|
adamc@378
|
14019 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
adamc@378
|
14020 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
adamc@378
|
14021 esac ;;
|
adamc@378
|
14022 esac
|
adamc@378
|
14023 ac_abs_top_builddir=$ac_pwd
|
adamc@378
|
14024 ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
adamc@378
|
14025 # for backward compatibility:
|
adamc@378
|
14026 ac_top_builddir=$ac_top_build_prefix
|
adamc@378
|
14027
|
adamc@378
|
14028 case $srcdir in
|
adamc@378
|
14029 .) # We are building in place.
|
adamc@378
|
14030 ac_srcdir=.
|
adamc@378
|
14031 ac_top_srcdir=$ac_top_builddir_sub
|
adamc@378
|
14032 ac_abs_top_srcdir=$ac_pwd ;;
|
adamc@378
|
14033 [\\/]* | ?:[\\/]* ) # Absolute name.
|
adamc@378
|
14034 ac_srcdir=$srcdir$ac_dir_suffix;
|
adamc@378
|
14035 ac_top_srcdir=$srcdir
|
adamc@378
|
14036 ac_abs_top_srcdir=$srcdir ;;
|
adamc@378
|
14037 *) # Relative name.
|
adamc@378
|
14038 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
adamc@378
|
14039 ac_top_srcdir=$ac_top_build_prefix$srcdir
|
adamc@378
|
14040 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
adamc@378
|
14041 esac
|
adamc@378
|
14042 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
adamc@378
|
14043
|
adamc@378
|
14044
|
adamc@378
|
14045 case $ac_mode in
|
adamc@378
|
14046 :F)
|
adamc@378
|
14047 #
|
adamc@378
|
14048 # CONFIG_FILE
|
adamc@378
|
14049 #
|
adamc@378
|
14050
|
adamc@1132
|
14051 case $INSTALL in
|
adamc@1132
|
14052 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
adamc@1132
|
14053 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
adamc@1132
|
14054 esac
|
adamc@1132
|
14055 ac_MKDIR_P=$MKDIR_P
|
adamc@1132
|
14056 case $MKDIR_P in
|
adamc@1132
|
14057 [\\/$]* | ?:[\\/]* ) ;;
|
adamc@1132
|
14058 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
|
adamc@1132
|
14059 esac
|
adamc@378
|
14060 _ACEOF
|
adamc@378
|
14061
|
adamc@1095
|
14062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
adamc@378
|
14063 # If the template does not know about datarootdir, expand it.
|
adamc@378
|
14064 # FIXME: This hack should be removed a few years after 2.60.
|
adamc@378
|
14065 ac_datarootdir_hack=; ac_datarootdir_seen=
|
adamc@1095
|
14066 ac_sed_dataroot='
|
adamc@1095
|
14067 /datarootdir/ {
|
adamc@378
|
14068 p
|
adamc@378
|
14069 q
|
adamc@378
|
14070 }
|
adamc@378
|
14071 /@datadir@/p
|
adamc@378
|
14072 /@docdir@/p
|
adamc@378
|
14073 /@infodir@/p
|
adamc@378
|
14074 /@localedir@/p
|
adamc@1095
|
14075 /@mandir@/p'
|
adamc@1095
|
14076 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
adamc@378
|
14077 *datarootdir*) ac_datarootdir_seen=yes;;
|
adamc@378
|
14078 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
adamc@1095
|
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
adamc@1095
|
14080 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
adamc@378
|
14081 _ACEOF
|
adamc@1095
|
14082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
adamc@378
|
14083 ac_datarootdir_hack='
|
adamc@378
|
14084 s&@datadir@&$datadir&g
|
adamc@378
|
14085 s&@docdir@&$docdir&g
|
adamc@378
|
14086 s&@infodir@&$infodir&g
|
adamc@378
|
14087 s&@localedir@&$localedir&g
|
adamc@378
|
14088 s&@mandir@&$mandir&g
|
adamc@1095
|
14089 s&\\\${datarootdir}&$datarootdir&g' ;;
|
adamc@378
|
14090 esac
|
adamc@378
|
14091 _ACEOF
|
adamc@378
|
14092
|
adamc@378
|
14093 # Neutralize VPATH when `$srcdir' = `.'.
|
adamc@378
|
14094 # Shell code in configure.ac might set extrasub.
|
adamc@378
|
14095 # FIXME: do we really want to maintain this feature?
|
adamc@1095
|
14096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
adamc@1095
|
14097 ac_sed_extra="$ac_vpsub
|
adamc@378
|
14098 $extrasub
|
adamc@378
|
14099 _ACEOF
|
adamc@1095
|
14100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
adamc@378
|
14101 :t
|
adamc@378
|
14102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
adamc@1095
|
14103 s|@configure_input@|$ac_sed_conf_input|;t t
|
adamc@378
|
14104 s&@top_builddir@&$ac_top_builddir_sub&;t t
|
adamc@1095
|
14105 s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
adamc@378
|
14106 s&@srcdir@&$ac_srcdir&;t t
|
adamc@378
|
14107 s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
adamc@378
|
14108 s&@top_srcdir@&$ac_top_srcdir&;t t
|
adamc@378
|
14109 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
adamc@378
|
14110 s&@builddir@&$ac_builddir&;t t
|
adamc@378
|
14111 s&@abs_builddir@&$ac_abs_builddir&;t t
|
adamc@378
|
14112 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
adamc@1132
|
14113 s&@INSTALL@&$ac_INSTALL&;t t
|
adamc@1132
|
14114 s&@MKDIR_P@&$ac_MKDIR_P&;t t
|
adamc@378
|
14115 $ac_datarootdir_hack
|
adamc@1095
|
14116 "
|
adam@1459
|
14117 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
adam@1459
|
14118 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
adamc@378
|
14119
|
adamc@378
|
14120 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
adam@1459
|
14121 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
adam@1459
|
14122 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
adam@1459
|
14123 "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
adamc@1095
|
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
adam@1315
|
14125 which seems to be undefined. Please make sure it is defined" >&5
|
adamc@1095
|
14126 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
adam@1315
|
14127 which seems to be undefined. Please make sure it is defined" >&2;}
|
adamc@378
|
14128
|
adam@1459
|
14129 rm -f "$ac_tmp/stdin"
|
adamc@378
|
14130 case $ac_file in
|
adam@1459
|
14131 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
adam@1459
|
14132 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
adamc@1095
|
14133 esac \
|
adam@1315
|
14134 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
adamc@378
|
14135 ;;
|
adamc@1263
|
14136 :H)
|
adamc@1263
|
14137 #
|
adamc@1263
|
14138 # CONFIG_HEADER
|
adamc@1263
|
14139 #
|
adamc@1263
|
14140 if test x"$ac_file" != x-; then
|
adamc@1263
|
14141 {
|
adamc@1263
|
14142 $as_echo "/* $configure_input */" \
|
adam@1459
|
14143 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
adam@1459
|
14144 } >"$ac_tmp/config.h" \
|
adam@1315
|
14145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
adam@1459
|
14146 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
adamc@1263
|
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
adamc@1263
|
14148 $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
adamc@1263
|
14149 else
|
adamc@1263
|
14150 rm -f "$ac_file"
|
adam@1459
|
14151 mv "$ac_tmp/config.h" "$ac_file" \
|
adam@1315
|
14152 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
adamc@1263
|
14153 fi
|
adamc@1263
|
14154 else
|
adamc@1263
|
14155 $as_echo "/* $configure_input */" \
|
adam@1459
|
14156 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
adam@1315
|
14157 || as_fn_error $? "could not create -" "$LINENO" 5
|
adamc@1263
|
14158 fi
|
adamc@1263
|
14159 # Compute "$ac_file"'s index in $config_headers.
|
adamc@1263
|
14160 _am_arg="$ac_file"
|
adamc@1263
|
14161 _am_stamp_count=1
|
adamc@1263
|
14162 for _am_header in $config_headers :; do
|
adamc@1263
|
14163 case $_am_header in
|
adamc@1263
|
14164 $_am_arg | $_am_arg:* )
|
adamc@1263
|
14165 break ;;
|
adamc@1263
|
14166 * )
|
adamc@1263
|
14167 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
adamc@1263
|
14168 esac
|
adamc@1263
|
14169 done
|
adamc@1263
|
14170 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
|
adamc@1263
|
14171 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
adamc@1263
|
14172 X"$_am_arg" : 'X\(//\)[^/]' \| \
|
adamc@1263
|
14173 X"$_am_arg" : 'X\(//\)$' \| \
|
adamc@1263
|
14174 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
|
adamc@1263
|
14175 $as_echo X"$_am_arg" |
|
adamc@1263
|
14176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
adamc@1263
|
14177 s//\1/
|
adamc@1263
|
14178 q
|
adamc@1263
|
14179 }
|
adamc@1263
|
14180 /^X\(\/\/\)[^/].*/{
|
adamc@1263
|
14181 s//\1/
|
adamc@1263
|
14182 q
|
adamc@1263
|
14183 }
|
adamc@1263
|
14184 /^X\(\/\/\)$/{
|
adamc@1263
|
14185 s//\1/
|
adamc@1263
|
14186 q
|
adamc@1263
|
14187 }
|
adamc@1263
|
14188 /^X\(\/\).*/{
|
adamc@1263
|
14189 s//\1/
|
adamc@1263
|
14190 q
|
adamc@1263
|
14191 }
|
adamc@1263
|
14192 s/.*/./; q'`/stamp-h$_am_stamp_count
|
adamc@1263
|
14193 ;;
|
adamc@378
|
14194
|
adamc@1132
|
14195 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
adamc@1132
|
14196 $as_echo "$as_me: executing $ac_file commands" >&6;}
|
adamc@1132
|
14197 ;;
|
adamc@378
|
14198 esac
|
adamc@378
|
14199
|
adamc@378
|
14200
|
adamc@378
|
14201 case $ac_file$ac_mode in
|
adamc@1132
|
14202 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
|
adamc@1132
|
14203 # Autoconf 2.62 quotes --file arguments for eval, but not when files
|
adamc@1132
|
14204 # are listed without --file. Let's play safe and only enable the eval
|
adamc@1132
|
14205 # if we detect the quoting.
|
adamc@1132
|
14206 case $CONFIG_FILES in
|
adamc@1132
|
14207 *\'*) eval set x "$CONFIG_FILES" ;;
|
adamc@1132
|
14208 *) set x $CONFIG_FILES ;;
|
adamc@1132
|
14209 esac
|
adamc@1132
|
14210 shift
|
adamc@1132
|
14211 for mf
|
adamc@1132
|
14212 do
|
adamc@1132
|
14213 # Strip MF so we end up with the name of the file.
|
adamc@1132
|
14214 mf=`echo "$mf" | sed -e 's/:.*$//'`
|
adamc@1132
|
14215 # Check whether this is an Automake generated Makefile or not.
|
adamc@1132
|
14216 # We used to match only the files named `Makefile.in', but
|
adamc@1132
|
14217 # some people rename them; so instead we look at the file content.
|
adamc@1132
|
14218 # Grep'ing the first line is not enough: some people post-process
|
adamc@1132
|
14219 # each Makefile.in and add a new line on top of each file to say so.
|
adamc@1132
|
14220 # Grep'ing the whole file is not good either: AIX grep has a line
|
adamc@1132
|
14221 # limit of 2048, but all sed's we know have understand at least 4000.
|
adamc@1132
|
14222 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
adamc@1132
|
14223 dirpart=`$as_dirname -- "$mf" ||
|
adamc@1132
|
14224 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
adamc@1132
|
14225 X"$mf" : 'X\(//\)[^/]' \| \
|
adamc@1132
|
14226 X"$mf" : 'X\(//\)$' \| \
|
adamc@1132
|
14227 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
|
adamc@1132
|
14228 $as_echo X"$mf" |
|
adamc@1132
|
14229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
adamc@1132
|
14230 s//\1/
|
adamc@1132
|
14231 q
|
adamc@1132
|
14232 }
|
adamc@1132
|
14233 /^X\(\/\/\)[^/].*/{
|
adamc@1132
|
14234 s//\1/
|
adamc@1132
|
14235 q
|
adamc@1132
|
14236 }
|
adamc@1132
|
14237 /^X\(\/\/\)$/{
|
adamc@1132
|
14238 s//\1/
|
adamc@1132
|
14239 q
|
adamc@1132
|
14240 }
|
adamc@1132
|
14241 /^X\(\/\).*/{
|
adamc@1132
|
14242 s//\1/
|
adamc@1132
|
14243 q
|
adamc@1132
|
14244 }
|
adamc@1132
|
14245 s/.*/./; q'`
|
adamc@1132
|
14246 else
|
adamc@1132
|
14247 continue
|
adamc@1132
|
14248 fi
|
adamc@1132
|
14249 # Extract the definition of DEPDIR, am__include, and am__quote
|
adamc@1132
|
14250 # from the Makefile without running `make'.
|
adamc@1132
|
14251 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
adamc@1132
|
14252 test -z "$DEPDIR" && continue
|
adamc@1132
|
14253 am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
adamc@1132
|
14254 test -z "am__include" && continue
|
adamc@1132
|
14255 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
adamc@1132
|
14256 # When using ansi2knr, U may be empty or an underscore; expand it
|
adamc@1132
|
14257 U=`sed -n 's/^U = //p' < "$mf"`
|
adamc@1132
|
14258 # Find all dependency output files, they are included files with
|
adamc@1132
|
14259 # $(DEPDIR) in their names. We invoke sed twice because it is the
|
adamc@1132
|
14260 # simplest approach to changing $(DEPDIR) to its actual value in the
|
adamc@1132
|
14261 # expansion.
|
adamc@1132
|
14262 for file in `sed -n "
|
adamc@1132
|
14263 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
adamc@1132
|
14264 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
adamc@1132
|
14265 # Make sure the directory exists.
|
adamc@1132
|
14266 test -f "$dirpart/$file" && continue
|
adamc@1132
|
14267 fdir=`$as_dirname -- "$file" ||
|
adamc@1132
|
14268 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
adamc@1132
|
14269 X"$file" : 'X\(//\)[^/]' \| \
|
adamc@1132
|
14270 X"$file" : 'X\(//\)$' \| \
|
adamc@1132
|
14271 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
|
adamc@1132
|
14272 $as_echo X"$file" |
|
adamc@1132
|
14273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
adamc@1132
|
14274 s//\1/
|
adamc@1132
|
14275 q
|
adamc@1132
|
14276 }
|
adamc@1132
|
14277 /^X\(\/\/\)[^/].*/{
|
adamc@1132
|
14278 s//\1/
|
adamc@1132
|
14279 q
|
adamc@1132
|
14280 }
|
adamc@1132
|
14281 /^X\(\/\/\)$/{
|
adamc@1132
|
14282 s//\1/
|
adamc@1132
|
14283 q
|
adamc@1132
|
14284 }
|
adamc@1132
|
14285 /^X\(\/\).*/{
|
adamc@1132
|
14286 s//\1/
|
adamc@1132
|
14287 q
|
adamc@1132
|
14288 }
|
adamc@1132
|
14289 s/.*/./; q'`
|
adamc@1132
|
14290 as_dir=$dirpart/$fdir; as_fn_mkdir_p
|
adamc@1132
|
14291 # echo "creating $dirpart/$file"
|
adamc@1132
|
14292 echo '# dummy' > "$dirpart/$file"
|
adamc@1132
|
14293 done
|
adamc@1132
|
14294 done
|
adamc@1132
|
14295 }
|
adamc@1132
|
14296 ;;
|
adamc@1132
|
14297 "libtool":C)
|
adamc@1132
|
14298
|
adamc@1132
|
14299 # See if we are running on zsh, and set the options which allow our
|
adamc@1132
|
14300 # commands through without removal of \ escapes.
|
adamc@1132
|
14301 if test -n "${ZSH_VERSION+set}" ; then
|
adamc@1132
|
14302 setopt NO_GLOB_SUBST
|
adamc@1132
|
14303 fi
|
adamc@1132
|
14304
|
adamc@1132
|
14305 cfgfile="${ofile}T"
|
adamc@1132
|
14306 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
|
adamc@1132
|
14307 $RM "$cfgfile"
|
adamc@1132
|
14308
|
adamc@1132
|
14309 cat <<_LT_EOF >> "$cfgfile"
|
adamc@1132
|
14310 #! $SHELL
|
adamc@1132
|
14311
|
adamc@1132
|
14312 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
adamc@1132
|
14313 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
|
adamc@1132
|
14314 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
adamc@1132
|
14315 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
adamc@1132
|
14316 #
|
adamc@1132
|
14317 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
adam@1459
|
14318 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
|
adam@1459
|
14319 # Inc.
|
adamc@1132
|
14320 # Written by Gordon Matzigkeit, 1996
|
adamc@1132
|
14321 #
|
adamc@1132
|
14322 # This file is part of GNU Libtool.
|
adamc@1132
|
14323 #
|
adamc@1132
|
14324 # GNU Libtool is free software; you can redistribute it and/or
|
adamc@1132
|
14325 # modify it under the terms of the GNU General Public License as
|
adamc@1132
|
14326 # published by the Free Software Foundation; either version 2 of
|
adamc@1132
|
14327 # the License, or (at your option) any later version.
|
adamc@1132
|
14328 #
|
adamc@1132
|
14329 # As a special exception to the GNU General Public License,
|
adamc@1132
|
14330 # if you distribute this file as part of a program or library that
|
adamc@1132
|
14331 # is built using GNU Libtool, you may include this file under the
|
adamc@1132
|
14332 # same distribution terms that you use for the rest of that program.
|
adamc@1132
|
14333 #
|
adamc@1132
|
14334 # GNU Libtool is distributed in the hope that it will be useful,
|
adamc@1132
|
14335 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
adamc@1132
|
14336 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
adamc@1132
|
14337 # GNU General Public License for more details.
|
adamc@1132
|
14338 #
|
adamc@1132
|
14339 # You should have received a copy of the GNU General Public License
|
adamc@1132
|
14340 # along with GNU Libtool; see the file COPYING. If not, a copy
|
adamc@1132
|
14341 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
|
adamc@1132
|
14342 # obtained by writing to the Free Software Foundation, Inc.,
|
adamc@1132
|
14343 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
adamc@1132
|
14344
|
adamc@1132
|
14345
|
adamc@1132
|
14346 # The names of the tagged configurations supported by this script.
|
adamc@1132
|
14347 available_tags=""
|
adamc@1132
|
14348
|
adamc@1132
|
14349 # ### BEGIN LIBTOOL CONFIG
|
adamc@1132
|
14350
|
adamc@1132
|
14351 # Which release of libtool.m4 was used?
|
adamc@1132
|
14352 macro_version=$macro_version
|
adamc@1132
|
14353 macro_revision=$macro_revision
|
adamc@1132
|
14354
|
adamc@1132
|
14355 # Whether or not to build shared libraries.
|
adamc@1132
|
14356 build_libtool_libs=$enable_shared
|
adamc@1132
|
14357
|
adamc@1132
|
14358 # Whether or not to build static libraries.
|
adamc@1132
|
14359 build_old_libs=$enable_static
|
adamc@1132
|
14360
|
adamc@1132
|
14361 # What type of objects to build.
|
adamc@1132
|
14362 pic_mode=$pic_mode
|
adamc@1132
|
14363
|
adamc@1132
|
14364 # Whether or not to optimize for fast installation.
|
adamc@1132
|
14365 fast_install=$enable_fast_install
|
adamc@1132
|
14366
|
adam@1459
|
14367 # Shell to use when invoking shell scripts.
|
adam@1459
|
14368 SHELL=$lt_SHELL
|
adam@1459
|
14369
|
adam@1459
|
14370 # An echo program that protects backslashes.
|
adam@1459
|
14371 ECHO=$lt_ECHO
|
adam@1459
|
14372
|
adamc@1132
|
14373 # The host system.
|
adamc@1132
|
14374 host_alias=$host_alias
|
adamc@1132
|
14375 host=$host
|
adamc@1132
|
14376 host_os=$host_os
|
adamc@1132
|
14377
|
adamc@1132
|
14378 # The build system.
|
adamc@1132
|
14379 build_alias=$build_alias
|
adamc@1132
|
14380 build=$build
|
adamc@1132
|
14381 build_os=$build_os
|
adamc@1132
|
14382
|
adamc@1132
|
14383 # A sed program that does not truncate output.
|
adamc@1132
|
14384 SED=$lt_SED
|
adamc@1132
|
14385
|
adamc@1132
|
14386 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
adamc@1132
|
14387 Xsed="\$SED -e 1s/^X//"
|
adamc@1132
|
14388
|
adamc@1132
|
14389 # A grep program that handles long lines.
|
adamc@1132
|
14390 GREP=$lt_GREP
|
adamc@1132
|
14391
|
adamc@1132
|
14392 # An ERE matcher.
|
adamc@1132
|
14393 EGREP=$lt_EGREP
|
adamc@1132
|
14394
|
adamc@1132
|
14395 # A literal string matcher.
|
adamc@1132
|
14396 FGREP=$lt_FGREP
|
adamc@1132
|
14397
|
adamc@1132
|
14398 # A BSD- or MS-compatible name lister.
|
adamc@1132
|
14399 NM=$lt_NM
|
adamc@1132
|
14400
|
adamc@1132
|
14401 # Whether we need soft or hard links.
|
adamc@1132
|
14402 LN_S=$lt_LN_S
|
adamc@1132
|
14403
|
adamc@1132
|
14404 # What is the maximum length of a command?
|
adamc@1132
|
14405 max_cmd_len=$max_cmd_len
|
adamc@1132
|
14406
|
adamc@1132
|
14407 # Object file suffix (normally "o").
|
adamc@1132
|
14408 objext=$ac_objext
|
adamc@1132
|
14409
|
adamc@1132
|
14410 # Executable file suffix (normally "").
|
adamc@1132
|
14411 exeext=$exeext
|
adamc@1132
|
14412
|
adamc@1132
|
14413 # whether the shell understands "unset".
|
adamc@1132
|
14414 lt_unset=$lt_unset
|
adamc@1132
|
14415
|
adamc@1132
|
14416 # turn spaces into newlines.
|
adamc@1132
|
14417 SP2NL=$lt_lt_SP2NL
|
adamc@1132
|
14418
|
adamc@1132
|
14419 # turn newlines into spaces.
|
adamc@1132
|
14420 NL2SP=$lt_lt_NL2SP
|
adamc@1132
|
14421
|
adam@1459
|
14422 # convert \$build file names to \$host format.
|
adam@1459
|
14423 to_host_file_cmd=$lt_cv_to_host_file_cmd
|
adam@1459
|
14424
|
adam@1459
|
14425 # convert \$build files to toolchain format.
|
adam@1459
|
14426 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
adamc@1132
|
14427
|
adamc@1132
|
14428 # An object symbol dumper.
|
adamc@1132
|
14429 OBJDUMP=$lt_OBJDUMP
|
adamc@1132
|
14430
|
adamc@1132
|
14431 # Method to check whether dependent libraries are shared objects.
|
adamc@1132
|
14432 deplibs_check_method=$lt_deplibs_check_method
|
adamc@1132
|
14433
|
adam@1459
|
14434 # Command to use when deplibs_check_method = "file_magic".
|
adamc@1132
|
14435 file_magic_cmd=$lt_file_magic_cmd
|
adamc@1132
|
14436
|
adam@1459
|
14437 # How to find potential files when deplibs_check_method = "file_magic".
|
adam@1459
|
14438 file_magic_glob=$lt_file_magic_glob
|
adam@1459
|
14439
|
adam@1459
|
14440 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
adam@1459
|
14441 want_nocaseglob=$lt_want_nocaseglob
|
adam@1459
|
14442
|
adam@1459
|
14443 # DLL creation program.
|
adam@1459
|
14444 DLLTOOL=$lt_DLLTOOL
|
adam@1459
|
14445
|
adam@1459
|
14446 # Command to associate shared and link libraries.
|
adam@1459
|
14447 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
adam@1459
|
14448
|
adamc@1132
|
14449 # The archiver.
|
adamc@1132
|
14450 AR=$lt_AR
|
adam@1459
|
14451
|
adam@1459
|
14452 # Flags to create an archive.
|
adamc@1132
|
14453 AR_FLAGS=$lt_AR_FLAGS
|
adamc@1132
|
14454
|
adam@1459
|
14455 # How to feed a file listing to the archiver.
|
adam@1459
|
14456 archiver_list_spec=$lt_archiver_list_spec
|
adam@1459
|
14457
|
adamc@1132
|
14458 # A symbol stripping program.
|
adamc@1132
|
14459 STRIP=$lt_STRIP
|
adamc@1132
|
14460
|
adamc@1132
|
14461 # Commands used to install an old-style archive.
|
adamc@1132
|
14462 RANLIB=$lt_RANLIB
|
adamc@1132
|
14463 old_postinstall_cmds=$lt_old_postinstall_cmds
|
adamc@1132
|
14464 old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
adamc@1132
|
14465
|
adam@1459
|
14466 # Whether to use a lock for old archive extraction.
|
adam@1459
|
14467 lock_old_archive_extraction=$lock_old_archive_extraction
|
adam@1459
|
14468
|
adamc@1132
|
14469 # A C compiler.
|
adamc@1132
|
14470 LTCC=$lt_CC
|
adamc@1132
|
14471
|
adamc@1132
|
14472 # LTCC compiler flags.
|
adamc@1132
|
14473 LTCFLAGS=$lt_CFLAGS
|
adamc@1132
|
14474
|
adamc@1132
|
14475 # Take the output of nm and produce a listing of raw symbols and C names.
|
adamc@1132
|
14476 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
adamc@1132
|
14477
|
adamc@1132
|
14478 # Transform the output of nm in a proper C declaration.
|
adamc@1132
|
14479 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
adamc@1132
|
14480
|
adamc@1132
|
14481 # Transform the output of nm in a C name address pair.
|
adamc@1132
|
14482 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
adamc@1132
|
14483
|
adamc@1132
|
14484 # Transform the output of nm in a C name address pair when lib prefix is needed.
|
adamc@1132
|
14485 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
adamc@1132
|
14486
|
adam@1459
|
14487 # Specify filename containing input files for \$NM.
|
adam@1459
|
14488 nm_file_list_spec=$lt_nm_file_list_spec
|
adam@1459
|
14489
|
adam@1459
|
14490 # The root where to search for dependent libraries,and in which our libraries should be installed.
|
adam@1459
|
14491 lt_sysroot=$lt_sysroot
|
adam@1459
|
14492
|
adamc@1132
|
14493 # The name of the directory that contains temporary libtool files.
|
adamc@1132
|
14494 objdir=$objdir
|
adamc@1132
|
14495
|
adamc@1132
|
14496 # Used to examine libraries when file_magic_cmd begins with "file".
|
adamc@1132
|
14497 MAGIC_CMD=$MAGIC_CMD
|
adamc@1132
|
14498
|
adamc@1132
|
14499 # Must we lock files when doing compilation?
|
adamc@1132
|
14500 need_locks=$lt_need_locks
|
adamc@1132
|
14501
|
adam@1459
|
14502 # Manifest tool.
|
adam@1459
|
14503 MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
adam@1459
|
14504
|
adamc@1132
|
14505 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
adamc@1132
|
14506 DSYMUTIL=$lt_DSYMUTIL
|
adamc@1132
|
14507
|
adamc@1132
|
14508 # Tool to change global to local symbols on Mac OS X.
|
adamc@1132
|
14509 NMEDIT=$lt_NMEDIT
|
adamc@1132
|
14510
|
adamc@1132
|
14511 # Tool to manipulate fat objects and archives on Mac OS X.
|
adamc@1132
|
14512 LIPO=$lt_LIPO
|
adamc@1132
|
14513
|
adamc@1132
|
14514 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
|
adamc@1132
|
14515 OTOOL=$lt_OTOOL
|
adamc@1132
|
14516
|
adamc@1132
|
14517 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
|
adamc@1132
|
14518 OTOOL64=$lt_OTOOL64
|
adamc@1132
|
14519
|
adamc@1132
|
14520 # Old archive suffix (normally "a").
|
adamc@1132
|
14521 libext=$libext
|
adamc@1132
|
14522
|
adamc@1132
|
14523 # Shared library suffix (normally ".so").
|
adamc@1132
|
14524 shrext_cmds=$lt_shrext_cmds
|
adamc@1132
|
14525
|
adamc@1132
|
14526 # The commands to extract the exported symbol list from a shared archive.
|
adamc@1132
|
14527 extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
adamc@1132
|
14528
|
adamc@1132
|
14529 # Variables whose values should be saved in libtool wrapper scripts and
|
adamc@1132
|
14530 # restored at link time.
|
adamc@1132
|
14531 variables_saved_for_relink=$lt_variables_saved_for_relink
|
adamc@1132
|
14532
|
adamc@1132
|
14533 # Do we need the "lib" prefix for modules?
|
adamc@1132
|
14534 need_lib_prefix=$need_lib_prefix
|
adamc@1132
|
14535
|
adamc@1132
|
14536 # Do we need a version for libraries?
|
adamc@1132
|
14537 need_version=$need_version
|
adamc@1132
|
14538
|
adamc@1132
|
14539 # Library versioning type.
|
adamc@1132
|
14540 version_type=$version_type
|
adamc@1132
|
14541
|
adamc@1132
|
14542 # Shared library runtime path variable.
|
adamc@1132
|
14543 runpath_var=$runpath_var
|
adamc@1132
|
14544
|
adamc@1132
|
14545 # Shared library path variable.
|
adamc@1132
|
14546 shlibpath_var=$shlibpath_var
|
adamc@1132
|
14547
|
adamc@1132
|
14548 # Is shlibpath searched before the hard-coded library search path?
|
adamc@1132
|
14549 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
adamc@1132
|
14550
|
adamc@1132
|
14551 # Format of library name prefix.
|
adamc@1132
|
14552 libname_spec=$lt_libname_spec
|
adamc@1132
|
14553
|
adamc@1132
|
14554 # List of archive names. First name is the real one, the rest are links.
|
adamc@1132
|
14555 # The last name is the one that the linker finds with -lNAME
|
adamc@1132
|
14556 library_names_spec=$lt_library_names_spec
|
adamc@1132
|
14557
|
adamc@1132
|
14558 # The coded name of the library, if different from the real name.
|
adamc@1132
|
14559 soname_spec=$lt_soname_spec
|
adamc@1132
|
14560
|
adam@1459
|
14561 # Permission mode override for installation of shared libraries.
|
adam@1459
|
14562 install_override_mode=$lt_install_override_mode
|
adam@1459
|
14563
|
adamc@1132
|
14564 # Command to use after installation of a shared archive.
|
adamc@1132
|
14565 postinstall_cmds=$lt_postinstall_cmds
|
adamc@1132
|
14566
|
adamc@1132
|
14567 # Command to use after uninstallation of a shared archive.
|
adamc@1132
|
14568 postuninstall_cmds=$lt_postuninstall_cmds
|
adamc@1132
|
14569
|
adamc@1132
|
14570 # Commands used to finish a libtool library installation in a directory.
|
adamc@1132
|
14571 finish_cmds=$lt_finish_cmds
|
adamc@1132
|
14572
|
adamc@1132
|
14573 # As "finish_cmds", except a single script fragment to be evaled but
|
adamc@1132
|
14574 # not shown.
|
adamc@1132
|
14575 finish_eval=$lt_finish_eval
|
adamc@1132
|
14576
|
adamc@1132
|
14577 # Whether we should hardcode library paths into libraries.
|
adamc@1132
|
14578 hardcode_into_libs=$hardcode_into_libs
|
adamc@1132
|
14579
|
adamc@1132
|
14580 # Compile-time system search path for libraries.
|
adamc@1132
|
14581 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
adamc@1132
|
14582
|
adamc@1132
|
14583 # Run-time system search path for libraries.
|
adamc@1132
|
14584 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
adamc@1132
|
14585
|
adamc@1132
|
14586 # Whether dlopen is supported.
|
adamc@1132
|
14587 dlopen_support=$enable_dlopen
|
adamc@1132
|
14588
|
adamc@1132
|
14589 # Whether dlopen of programs is supported.
|
adamc@1132
|
14590 dlopen_self=$enable_dlopen_self
|
adamc@1132
|
14591
|
adamc@1132
|
14592 # Whether dlopen of statically linked programs is supported.
|
adamc@1132
|
14593 dlopen_self_static=$enable_dlopen_self_static
|
adamc@1132
|
14594
|
adamc@1132
|
14595 # Commands to strip libraries.
|
adamc@1132
|
14596 old_striplib=$lt_old_striplib
|
adamc@1132
|
14597 striplib=$lt_striplib
|
adamc@1132
|
14598
|
adamc@1132
|
14599
|
adamc@1132
|
14600 # The linker used to build libraries.
|
adamc@1132
|
14601 LD=$lt_LD
|
adamc@1132
|
14602
|
adam@1459
|
14603 # How to create reloadable object files.
|
adam@1459
|
14604 reload_flag=$lt_reload_flag
|
adam@1459
|
14605 reload_cmds=$lt_reload_cmds
|
adam@1459
|
14606
|
adamc@1132
|
14607 # Commands used to build an old-style archive.
|
adamc@1132
|
14608 old_archive_cmds=$lt_old_archive_cmds
|
adamc@1132
|
14609
|
adamc@1132
|
14610 # A language specific compiler.
|
adamc@1132
|
14611 CC=$lt_compiler
|
adamc@1132
|
14612
|
adamc@1132
|
14613 # Is the compiler the GNU compiler?
|
adamc@1132
|
14614 with_gcc=$GCC
|
adamc@1132
|
14615
|
adamc@1132
|
14616 # Compiler flag to turn off builtin functions.
|
adamc@1132
|
14617 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
adamc@1132
|
14618
|
adam@1459
|
14619 # Additional compiler flags for building library objects.
|
adam@1459
|
14620 pic_flag=$lt_lt_prog_compiler_pic
|
adam@1459
|
14621
|
adamc@1132
|
14622 # How to pass a linker flag through the compiler.
|
adamc@1132
|
14623 wl=$lt_lt_prog_compiler_wl
|
adamc@1132
|
14624
|
adamc@1132
|
14625 # Compiler flag to prevent dynamic linking.
|
adamc@1132
|
14626 link_static_flag=$lt_lt_prog_compiler_static
|
adamc@1132
|
14627
|
adamc@1132
|
14628 # Does compiler simultaneously support -c and -o options?
|
adamc@1132
|
14629 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
|
adamc@1132
|
14630
|
adamc@1132
|
14631 # Whether or not to add -lc for building shared libraries.
|
adamc@1132
|
14632 build_libtool_need_lc=$archive_cmds_need_lc
|
adamc@1132
|
14633
|
adamc@1132
|
14634 # Whether or not to disallow shared libs when runtime libs are static.
|
adamc@1132
|
14635 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
|
adamc@1132
|
14636
|
adamc@1132
|
14637 # Compiler flag to allow reflexive dlopens.
|
adamc@1132
|
14638 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
|
adamc@1132
|
14639
|
adamc@1132
|
14640 # Compiler flag to generate shared objects directly from archives.
|
adamc@1132
|
14641 whole_archive_flag_spec=$lt_whole_archive_flag_spec
|
adamc@1132
|
14642
|
adamc@1132
|
14643 # Whether the compiler copes with passing no objects directly.
|
adamc@1132
|
14644 compiler_needs_object=$lt_compiler_needs_object
|
adamc@1132
|
14645
|
adamc@1132
|
14646 # Create an old-style archive from a shared archive.
|
adamc@1132
|
14647 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
|
adamc@1132
|
14648
|
adamc@1132
|
14649 # Create a temporary old-style archive to link instead of a shared archive.
|
adamc@1132
|
14650 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
|
adamc@1132
|
14651
|
adamc@1132
|
14652 # Commands used to build a shared archive.
|
adamc@1132
|
14653 archive_cmds=$lt_archive_cmds
|
adamc@1132
|
14654 archive_expsym_cmds=$lt_archive_expsym_cmds
|
adamc@1132
|
14655
|
adamc@1132
|
14656 # Commands used to build a loadable module if different from building
|
adamc@1132
|
14657 # a shared archive.
|
adamc@1132
|
14658 module_cmds=$lt_module_cmds
|
adamc@1132
|
14659 module_expsym_cmds=$lt_module_expsym_cmds
|
adamc@1132
|
14660
|
adamc@1132
|
14661 # Whether we are building with GNU ld or not.
|
adamc@1132
|
14662 with_gnu_ld=$lt_with_gnu_ld
|
adamc@1132
|
14663
|
adamc@1132
|
14664 # Flag that allows shared libraries with undefined symbols to be built.
|
adamc@1132
|
14665 allow_undefined_flag=$lt_allow_undefined_flag
|
adamc@1132
|
14666
|
adamc@1132
|
14667 # Flag that enforces no undefined symbols.
|
adamc@1132
|
14668 no_undefined_flag=$lt_no_undefined_flag
|
adamc@1132
|
14669
|
adamc@1132
|
14670 # Flag to hardcode \$libdir into a binary during linking.
|
adamc@1132
|
14671 # This must work even if \$libdir does not exist
|
adamc@1132
|
14672 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
|
adamc@1132
|
14673
|
adamc@1132
|
14674 # If ld is used when linking, flag to hardcode \$libdir into a binary
|
adamc@1132
|
14675 # during linking. This must work even if \$libdir does not exist.
|
adamc@1132
|
14676 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
|
adamc@1132
|
14677
|
adamc@1132
|
14678 # Whether we need a single "-rpath" flag with a separated argument.
|
adamc@1132
|
14679 hardcode_libdir_separator=$lt_hardcode_libdir_separator
|
adamc@1132
|
14680
|
adamc@1132
|
14681 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
|
adamc@1132
|
14682 # DIR into the resulting binary.
|
adamc@1132
|
14683 hardcode_direct=$hardcode_direct
|
adamc@1132
|
14684
|
adamc@1132
|
14685 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
|
adamc@1132
|
14686 # DIR into the resulting binary and the resulting library dependency is
|
adamc@1132
|
14687 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
|
adamc@1132
|
14688 # library is relocated.
|
adamc@1132
|
14689 hardcode_direct_absolute=$hardcode_direct_absolute
|
adamc@1132
|
14690
|
adamc@1132
|
14691 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
|
adamc@1132
|
14692 # into the resulting binary.
|
adamc@1132
|
14693 hardcode_minus_L=$hardcode_minus_L
|
adamc@1132
|
14694
|
adamc@1132
|
14695 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
|
adamc@1132
|
14696 # into the resulting binary.
|
adamc@1132
|
14697 hardcode_shlibpath_var=$hardcode_shlibpath_var
|
adamc@1132
|
14698
|
adamc@1132
|
14699 # Set to "yes" if building a shared library automatically hardcodes DIR
|
adamc@1132
|
14700 # into the library and all subsequent libraries and executables linked
|
adamc@1132
|
14701 # against it.
|
adamc@1132
|
14702 hardcode_automatic=$hardcode_automatic
|
adamc@1132
|
14703
|
adamc@1132
|
14704 # Set to yes if linker adds runtime paths of dependent libraries
|
adamc@1132
|
14705 # to runtime path list.
|
adamc@1132
|
14706 inherit_rpath=$inherit_rpath
|
adamc@1132
|
14707
|
adamc@1132
|
14708 # Whether libtool must link a program against all its dependency libraries.
|
adamc@1132
|
14709 link_all_deplibs=$link_all_deplibs
|
adamc@1132
|
14710
|
adamc@1132
|
14711 # Set to "yes" if exported symbols are required.
|
adamc@1132
|
14712 always_export_symbols=$always_export_symbols
|
adamc@1132
|
14713
|
adamc@1132
|
14714 # The commands to list exported symbols.
|
adamc@1132
|
14715 export_symbols_cmds=$lt_export_symbols_cmds
|
adamc@1132
|
14716
|
adamc@1132
|
14717 # Symbols that should not be listed in the preloaded symbols.
|
adamc@1132
|
14718 exclude_expsyms=$lt_exclude_expsyms
|
adamc@1132
|
14719
|
adamc@1132
|
14720 # Symbols that must always be exported.
|
adamc@1132
|
14721 include_expsyms=$lt_include_expsyms
|
adamc@1132
|
14722
|
adamc@1132
|
14723 # Commands necessary for linking programs (against libraries) with templates.
|
adamc@1132
|
14724 prelink_cmds=$lt_prelink_cmds
|
adamc@1132
|
14725
|
adam@1459
|
14726 # Commands necessary for finishing linking programs.
|
adam@1459
|
14727 postlink_cmds=$lt_postlink_cmds
|
adam@1459
|
14728
|
adamc@1132
|
14729 # Specify filename containing input files.
|
adamc@1132
|
14730 file_list_spec=$lt_file_list_spec
|
adamc@1132
|
14731
|
adamc@1132
|
14732 # How to hardcode a shared library path into an executable.
|
adamc@1132
|
14733 hardcode_action=$hardcode_action
|
adamc@1132
|
14734
|
adamc@1132
|
14735 # ### END LIBTOOL CONFIG
|
adamc@1132
|
14736
|
adamc@1132
|
14737 _LT_EOF
|
adamc@1132
|
14738
|
adamc@1132
|
14739 case $host_os in
|
adamc@1132
|
14740 aix3*)
|
adamc@1132
|
14741 cat <<\_LT_EOF >> "$cfgfile"
|
adamc@1132
|
14742 # AIX sometimes has problems with the GCC collect2 program. For some
|
adamc@1132
|
14743 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
adamc@1132
|
14744 # vanish in a puff of smoke.
|
adamc@1132
|
14745 if test "X${COLLECT_NAMES+set}" != Xset; then
|
adamc@1132
|
14746 COLLECT_NAMES=
|
adamc@1132
|
14747 export COLLECT_NAMES
|
adamc@1132
|
14748 fi
|
adamc@1132
|
14749 _LT_EOF
|
adamc@1132
|
14750 ;;
|
adamc@1132
|
14751 esac
|
adamc@1132
|
14752
|
adamc@1132
|
14753
|
adamc@1132
|
14754 ltmain="$ac_aux_dir/ltmain.sh"
|
adamc@1132
|
14755
|
adamc@1132
|
14756
|
adamc@1132
|
14757 # We use sed instead of cat because bash on DJGPP gets confused if
|
adamc@1132
|
14758 # if finds mixed CR/LF and LF-only lines. Since sed operates in
|
adamc@1132
|
14759 # text mode, it properly converts lines to CR/LF. This bash problem
|
adamc@1132
|
14760 # is reportedly fixed, but why not run on old versions too?
|
adam@1459
|
14761 sed '$q' "$ltmain" >> "$cfgfile" \
|
adam@1459
|
14762 || (rm -f "$cfgfile"; exit 1)
|
adam@1459
|
14763
|
adam@1459
|
14764 if test x"$xsi_shell" = xyes; then
|
adam@1459
|
14765 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
|
adam@1459
|
14766 func_dirname ()\
|
adam@1459
|
14767 {\
|
adam@1459
|
14768 \ case ${1} in\
|
adam@1459
|
14769 \ */*) func_dirname_result="${1%/*}${2}" ;;\
|
adam@1459
|
14770 \ * ) func_dirname_result="${3}" ;;\
|
adam@1459
|
14771 \ esac\
|
adam@1459
|
14772 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
|
adam@1459
|
14773 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
adam@1459
|
14774 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
adam@1459
|
14775 test 0 -eq $? || _lt_function_replace_fail=:
|
adam@1459
|
14776
|
adam@1459
|
14777
|
adam@1459
|
14778 sed -e '/^func_basename ()$/,/^} # func_basename /c\
|
adam@1459
|
14779 func_basename ()\
|
adam@1459
|
14780 {\
|
adam@1459
|
14781 \ func_basename_result="${1##*/}"\
|
adam@1459
|
14782 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
adam@1459
|
14783 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
adam@1459
|
14784 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
adam@1459
|
14785 test 0 -eq $? || _lt_function_replace_fail=:
|
adam@1459
|
14786
|
adam@1459
|
14787
|
adam@1459
|
14788 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
|
adam@1459
|
14789 func_dirname_and_basename ()\
|
adam@1459
|
14790 {\
|
adam@1459
|
14791 \ case ${1} in\
|
adam@1459
|
14792 \ */*) func_dirname_result="${1%/*}${2}" ;;\
|
adam@1459
|
14793 \ * ) func_dirname_result="${3}" ;;\
|
adam@1459
|
14794 \ esac\
|
adam@1459
|
14795 \ func_basename_result="${1##*/}"\
|
adam@1459
|
14796 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
adam@1459
|
14797 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
adam@1459
|
14798 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
adam@1459
|
14799 test 0 -eq $? || _lt_function_replace_fail=:
|
adam@1459
|
14800
|
adam@1459
|
14801
|
adam@1459
|
14802 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
|
adam@1459
|
14803 func_stripname ()\
|
adam@1459
|
14804 {\
|
adam@1459
|
14805 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
|
adam@1459
|
14806 \ # positional parameters, so assign one to ordinary parameter first.\
|
adam@1459
|
14807 \ func_stripname_result=${3}\
|
adam@1459
|
14808 \ func_stripname_result=${func_stripname_result#"${1}"}\
|
adam@1459
|
14809 \ func_stripname_result=${func_stripname_result%"${2}"}\
|
adam@1459
|
14810 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
|
adam@1459
|
14811 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
adam@1459
|
14812 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
adam@1459
|
14813 test 0 -eq $? || _lt_function_replace_fail=:
|
adam@1459
|
14814
|
adam@1459
|
14815
|
adam@1459
|
14816 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
|
adam@1459
|
14817 func_split_long_opt ()\
|
adam@1459
|
14818 {\
|
adam@1459
|
14819 \ func_split_long_opt_name=${1%%=*}\
|
adam@1459
|
14820 \ func_split_long_opt_arg=${1#*=}\
|
adam@1459
|
14821 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
adam@1459
|
14822 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
adam@1459
|
14823 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
adam@1459
|
14824 test 0 -eq $? || _lt_function_replace_fail=:
|
adam@1459
|
14825
|
adam@1459
|
14826
|
adam@1459
|
14827 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
|
adam@1459
|
14828 func_split_short_opt ()\
|
adam@1459
|
14829 {\
|
adam@1459
|
14830 \ func_split_short_opt_arg=${1#??}\
|
adam@1459
|
14831 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
|
adam@1459
|
14832 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
adam@1459
|
14833 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
adam@1459
|
14834 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
adam@1459
|
14835 test 0 -eq $? || _lt_function_replace_fail=:
|
adam@1459
|
14836
|
adam@1459
|
14837
|
adam@1459
|
14838 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
|
adam@1459
|
14839 func_lo2o ()\
|
adam@1459
|
14840 {\
|
adam@1459
|
14841 \ case ${1} in\
|
adam@1459
|
14842 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
|
adam@1459
|
14843 \ *) func_lo2o_result=${1} ;;\
|
adam@1459
|
14844 \ esac\
|
adam@1459
|
14845 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
|
adam@1459
|
14846 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
adam@1459
|
14847 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
adam@1459
|
14848 test 0 -eq $? || _lt_function_replace_fail=:
|
adam@1459
|
14849
|
adam@1459
|
14850
|
adam@1459
|
14851 sed -e '/^func_xform ()$/,/^} # func_xform /c\
|
adam@1459
|
14852 func_xform ()\
|
adam@1459
|
14853 {\
|
adam@1459
|
14854 func_xform_result=${1%.*}.lo\
|
adam@1459
|
14855 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
|
adam@1459
|
14856 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
adam@1459
|
14857 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
adam@1459
|
14858 test 0 -eq $? || _lt_function_replace_fail=:
|
adam@1459
|
14859
|
adam@1459
|
14860
|
adam@1459
|
14861 sed -e '/^func_arith ()$/,/^} # func_arith /c\
|
adam@1459
|
14862 func_arith ()\
|
adam@1459
|
14863 {\
|
adam@1459
|
14864 func_arith_result=$(( $* ))\
|
adam@1459
|
14865 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
|
adam@1459
|
14866 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
adam@1459
|
14867 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
adam@1459
|
14868 test 0 -eq $? || _lt_function_replace_fail=:
|
adam@1459
|
14869
|
adam@1459
|
14870
|
adam@1459
|
14871 sed -e '/^func_len ()$/,/^} # func_len /c\
|
adam@1459
|
14872 func_len ()\
|
adam@1459
|
14873 {\
|
adam@1459
|
14874 func_len_result=${#1}\
|
adam@1459
|
14875 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
|
adam@1459
|
14876 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
adam@1459
|
14877 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
adam@1459
|
14878 test 0 -eq $? || _lt_function_replace_fail=:
|
adam@1459
|
14879
|
adam@1459
|
14880 fi
|
adam@1459
|
14881
|
adam@1459
|
14882 if test x"$lt_shell_append" = xyes; then
|
adam@1459
|
14883 sed -e '/^func_append ()$/,/^} # func_append /c\
|
adam@1459
|
14884 func_append ()\
|
adam@1459
|
14885 {\
|
adam@1459
|
14886 eval "${1}+=\\${2}"\
|
adam@1459
|
14887 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
|
adam@1459
|
14888 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
adam@1459
|
14889 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
adam@1459
|
14890 test 0 -eq $? || _lt_function_replace_fail=:
|
adam@1459
|
14891
|
adam@1459
|
14892
|
adam@1459
|
14893 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
|
adam@1459
|
14894 func_append_quoted ()\
|
adam@1459
|
14895 {\
|
adam@1459
|
14896 \ func_quote_for_eval "${2}"\
|
adam@1459
|
14897 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
|
adam@1459
|
14898 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
|
adam@1459
|
14899 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
adam@1459
|
14900 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
adam@1459
|
14901 test 0 -eq $? || _lt_function_replace_fail=:
|
adam@1459
|
14902
|
adam@1459
|
14903
|
adam@1459
|
14904 # Save a `func_append' function call where possible by direct use of '+='
|
adam@1459
|
14905 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
|
adam@1459
|
14906 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
adam@1459
|
14907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
adam@1459
|
14908 test 0 -eq $? || _lt_function_replace_fail=:
|
adam@1459
|
14909 else
|
adam@1459
|
14910 # Save a `func_append' function call even when '+=' is not available
|
adam@1459
|
14911 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
|
adam@1459
|
14912 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
adam@1459
|
14913 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
adam@1459
|
14914 test 0 -eq $? || _lt_function_replace_fail=:
|
adam@1459
|
14915 fi
|
adam@1459
|
14916
|
adam@1459
|
14917 if test x"$_lt_function_replace_fail" = x":"; then
|
adam@1459
|
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
|
adam@1459
|
14919 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
|
adam@1459
|
14920 fi
|
adam@1459
|
14921
|
adam@1459
|
14922
|
adam@1459
|
14923 mv -f "$cfgfile" "$ofile" ||
|
adamc@1132
|
14924 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
adamc@1132
|
14925 chmod +x "$ofile"
|
adamc@1132
|
14926
|
adamc@1132
|
14927 ;;
|
adamc@378
|
14928
|
adamc@378
|
14929 esac
|
adamc@378
|
14930 done # for ac_tag
|
adamc@378
|
14931
|
adamc@378
|
14932
|
adamc@1095
|
14933 as_fn_exit 0
|
adamc@378
|
14934 _ACEOF
|
adamc@378
|
14935 ac_clean_files=$ac_clean_files_save
|
adamc@378
|
14936
|
adamc@1095
|
14937 test $ac_write_fail = 0 ||
|
adam@1315
|
14938 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
adamc@1095
|
14939
|
adamc@378
|
14940
|
adamc@378
|
14941 # configure is writing to config.log, and then calls config.status.
|
adamc@378
|
14942 # config.status does its own redirection, appending to config.log.
|
adamc@378
|
14943 # Unfortunately, on DOS this fails, as config.log is still kept open
|
adamc@378
|
14944 # by configure, so config.status won't be able to write to it; its
|
adamc@378
|
14945 # output is simply discarded. So we exec the FD to /dev/null,
|
adamc@378
|
14946 # effectively closing config.log, so it can be properly (re)opened and
|
adamc@378
|
14947 # appended to by config.status. When coming back to configure, we
|
adamc@378
|
14948 # need to make the FD available again.
|
adamc@378
|
14949 if test "$no_create" != yes; then
|
adamc@378
|
14950 ac_cs_success=:
|
adamc@378
|
14951 ac_config_status_args=
|
adamc@378
|
14952 test "$silent" = yes &&
|
adamc@378
|
14953 ac_config_status_args="$ac_config_status_args --quiet"
|
adamc@378
|
14954 exec 5>/dev/null
|
adamc@378
|
14955 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
adamc@378
|
14956 exec 5>>config.log
|
adamc@378
|
14957 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
adamc@378
|
14958 # would make configure fail if this is the last instruction.
|
adam@1315
|
14959 $ac_cs_success || as_fn_exit 1
|
adamc@1095
|
14960 fi
|
adamc@1095
|
14961 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
adamc@1095
|
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
adamc@1095
|
14963 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
adamc@378
|
14964 fi
|
adamc@378
|
14965
|
adamc@378
|
14966
|
adamc@378
|
14967 cat <<EOF
|
adamc@378
|
14968
|
adamc@378
|
14969 Ur/Web configuration:
|
adam@1317
|
14970 bin directory: BIN $BIN
|
adam@1317
|
14971 lib directory: LIB $LIB
|
adam@1317
|
14972 include directory: INCLUDE $INCLUDE
|
adam@1317
|
14973 site-lisp directory: SITELISP $SITELISP
|
adam@1474
|
14974 C compiler: CC $CC
|
adam@1523
|
14975 Extra CC args: CCARGS $CCARGS
|
adam@1464
|
14976 Postgres C header: PGHEADER $PGHEADER
|
adam@1464
|
14977 MySQL C header: MSHEADER $MSHEADER
|
adam@1464
|
14978 SQLite C header: SQHEADER $SQHEADER
|
adam@1520
|
14979
|
adam@1520
|
14980 Version: $VERSION
|
adamc@378
|
14981 EOF
|