]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
b5c37946 | 3 | # Generated by GNU Autoconf 2.69 for ld 2.41.50. |
d0ac1c44 SM |
4 | # |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
81ecdfbb | 7 | # |
252b5132 RH |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
42ecbf5e | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
42ecbf5e DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
42ecbf5e DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
42ecbf5e | 31 | fi |
42ecbf5e | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
42ecbf5e DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 90 | as_myself= |
81ecdfbb RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
42ecbf5e DJ |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
81ecdfbb RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
d0ac1c44 SM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
81ecdfbb RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
d0ac1c44 SM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
81ecdfbb RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
3725885a RW |
199 | test \$(( 1 + 1 )) = 2 || exit 1 |
200 | ||
201 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
202 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | PATH=/empty FPATH=/empty; export PATH FPATH | |
206 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
81ecdfbb RW |
208 | if (eval "$as_required") 2>/dev/null; then : |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
42ecbf5e | 219 | do |
81ecdfbb RW |
220 | IFS=$as_save_IFS |
221 | test -z "$as_dir" && as_dir=. | |
222 | as_found=: | |
223 | case $as_dir in #( | |
224 | /*) | |
225 | for as_base in sh bash ksh sh5; do | |
226 | # Try only shells that exist, to save several forks. | |
227 | as_shell=$as_dir/$as_base | |
228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 | CONFIG_SHELL=$as_shell as_have_required=yes | |
231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | break 2 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 | CONFIG_SHELL=$SHELL as_have_required=yes | |
242 | fi; } | |
243 | IFS=$as_save_IFS | |
244 | ||
245 | ||
246 | if test "x$CONFIG_SHELL" != x; then : | |
d0ac1c44 SM |
247 | export CONFIG_SHELL |
248 | # We cannot yet assume a decent shell, so we have to provide a | |
249 | # neutralization value for shells without unset; and this also | |
250 | # works around shells that cannot unset nonexistent variables. | |
251 | # Preserve -v and -x to the replacement shell. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 | # Admittedly, this is quite paranoid, since all the known shells bail | |
263 | # out after a failed `exec'. | |
264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 | exit 255 | |
81ecdfbb RW |
266 | fi |
267 | ||
268 | if test x$as_have_required = xno; then : | |
269 | $as_echo "$0: This script requires a shell more modern than all" | |
270 | $as_echo "$0: the shells that I found on your system." | |
271 | if test x${ZSH_VERSION+set} = xset ; then | |
272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
42ecbf5e | 274 | else |
81ecdfbb RW |
275 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
276 | $0: including any error possibly output before this | |
277 | $0: message. Then install a modern shell, or manually run | |
278 | $0: the script under such a shell if you do have one." | |
42ecbf5e | 279 | fi |
81ecdfbb RW |
280 | exit 1 |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_fn_set_status () | |
306 | { | |
307 | return $1 | |
308 | } # as_fn_set_status | |
309 | ||
310 | # as_fn_exit STATUS | |
311 | # ----------------- | |
312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 | as_fn_exit () | |
314 | { | |
315 | set +e | |
316 | as_fn_set_status $1 | |
317 | exit $1 | |
318 | } # as_fn_exit | |
319 | ||
320 | # as_fn_mkdir_p | |
321 | # ------------- | |
322 | # Create "$as_dir" as a directory, including parents if necessary. | |
323 | as_fn_mkdir_p () | |
324 | { | |
325 | ||
326 | case $as_dir in #( | |
327 | -*) as_dir=./$as_dir;; | |
328 | esac | |
329 | test -d "$as_dir" || eval $as_mkdir_p || { | |
330 | as_dirs= | |
331 | while :; do | |
332 | case $as_dir in #( | |
333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *) as_qdir=$as_dir;; | |
335 | esac | |
336 | as_dirs="'$as_qdir' $as_dirs" | |
337 | as_dir=`$as_dirname -- "$as_dir" || | |
338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 | X"$as_dir" : 'X\(//\)$' \| \ | |
341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 | $as_echo X"$as_dir" | | |
343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)[^/].*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)$/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\).*/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | s/.*/./; q'` | |
360 | test -d "$as_dir" && break | |
361 | done | |
362 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
367 | |
368 | # as_fn_executable_p FILE | |
369 | # ----------------------- | |
370 | # Test if FILE is an executable regular file. | |
371 | as_fn_executable_p () | |
372 | { | |
373 | test -f "$1" && test -x "$1" | |
374 | } # as_fn_executable_p | |
81ecdfbb RW |
375 | # as_fn_append VAR VALUE |
376 | # ---------------------- | |
377 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 | # advantage of any shell optimizations that allow amortized linear growth over | |
379 | # repeated appends, instead of the typical quadratic growth present in naive | |
380 | # implementations. | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | eval 'as_fn_append () | |
383 | { | |
384 | eval $1+=\$2 | |
385 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # as_fn_arith | |
409 | ||
410 | ||
d0ac1c44 SM |
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
81ecdfbb RW |
413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 415 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
416 | as_fn_error () |
417 | { | |
d0ac1c44 SM |
418 | as_status=$1; test $as_status -eq 0 && as_status=1 |
419 | if test "$4"; then | |
420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
81ecdfbb | 422 | fi |
d0ac1c44 | 423 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
42ecbf5e | 426 | |
81ecdfbb RW |
427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
42ecbf5e DJ |
429 | as_expr=expr |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
81ecdfbb | 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
42ecbf5e DJ |
435 | as_basename=basename |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
81ecdfbb RW |
440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
42ecbf5e | 445 | |
81ecdfbb | 446 | as_me=`$as_basename -- "$0" || |
42ecbf5e DJ |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
448 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
450 | $as_echo X/"$0" | | |
451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\/\)$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\).*/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | s/.*/./; q'` | |
42ecbf5e | 464 | |
42ecbf5e DJ |
465 | # Avoid depending upon Character Ranges. |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
471 | ||
42ecbf5e | 472 | |
81ecdfbb RW |
473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 | sed -n ' | |
479 | p | |
480 | /[$]LINENO/= | |
481 | ' <$as_myself | | |
42ecbf5e | 482 | sed ' |
81ecdfbb RW |
483 | s/[$]LINENO.*/&-/ |
484 | t lineno | |
485 | b | |
486 | :lineno | |
42ecbf5e | 487 | N |
81ecdfbb RW |
488 | :loop |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
42ecbf5e | 490 | t loop |
81ecdfbb | 491 | s/-\n.*// |
42ecbf5e | 492 | ' >$as_me.lineno && |
81ecdfbb RW |
493 | chmod +x "$as_me.lineno" || |
494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
42ecbf5e | 495 | |
d0ac1c44 SM |
496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
497 | # already done that, so ensure we don't try to do so again and fall | |
498 | # in an infinite loop. This has already happened in practice. | |
499 | _as_can_reexec=no; export _as_can_reexec | |
42ecbf5e DJ |
500 | # Don't try to exec as it changes $[0], causing all sort of problems |
501 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
502 | # original and so on. Autoconf is especially sensitive to this). |
503 | . "./$as_me.lineno" | |
42ecbf5e DJ |
504 | # Exit status is that of the last command. |
505 | exit | |
506 | } | |
507 | ||
81ecdfbb RW |
508 | ECHO_C= ECHO_N= ECHO_T= |
509 | case `echo -n x` in #((((( | |
510 | -n*) | |
511 | case `echo 'xy\c'` in | |
512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 | xy) ECHO_C='\c';; | |
514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 | ECHO_T=' ';; | |
516 | esac;; | |
517 | *) | |
518 | ECHO_N='-n';; | |
42ecbf5e DJ |
519 | esac |
520 | ||
81ecdfbb RW |
521 | rm -f conf$$ conf$$.exe conf$$.file |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
42ecbf5e | 524 | else |
81ecdfbb RW |
525 | rm -f conf$$.dir |
526 | mkdir conf$$.dir 2>/dev/null | |
42ecbf5e | 527 | fi |
81ecdfbb RW |
528 | if (echo >conf$$.file) 2>/dev/null; then |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42ecbf5e | 530 | as_ln_s='ln -s' |
81ecdfbb RW |
531 | # ... but there are two gotchas: |
532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 534 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 536 | as_ln_s='cp -pR' |
81ecdfbb RW |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
d0ac1c44 | 540 | as_ln_s='cp -pR' |
42ecbf5e | 541 | fi |
42ecbf5e | 542 | else |
d0ac1c44 | 543 | as_ln_s='cp -pR' |
42ecbf5e | 544 | fi |
81ecdfbb RW |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
42ecbf5e DJ |
547 | |
548 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 549 | as_mkdir_p='mkdir -p "$as_dir"' |
42ecbf5e DJ |
550 | else |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
d0ac1c44 SM |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
42ecbf5e DJ |
557 | |
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | # Sed expression to map a string onto a valid variable name. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
d7040cdb SE |
564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
d7040cdb | 566 | |
d0ac1c44 SM |
567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
81ecdfbb | 569 | |
42ecbf5e | 570 | # Name of the host. |
d0ac1c44 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
42ecbf5e DJ |
572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 574 | |
42ecbf5e DJ |
575 | # |
576 | # Initializations. | |
577 | # | |
252b5132 | 578 | ac_default_prefix=/usr/local |
81ecdfbb | 579 | ac_clean_files= |
42ecbf5e | 580 | ac_config_libobj_dir=. |
81ecdfbb | 581 | LIBOBJS= |
42ecbf5e DJ |
582 | cross_compiling=no |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
42ecbf5e DJ |
586 | |
587 | # Identity of this package. | |
2e98a7bd AM |
588 | PACKAGE_NAME='ld' |
589 | PACKAGE_TARNAME='ld' | |
b5c37946 SJ |
590 | PACKAGE_VERSION='2.41.50' |
591 | PACKAGE_STRING='ld 2.41.50' | |
2e98a7bd AM |
592 | PACKAGE_BUGREPORT='' |
593 | PACKAGE_URL='' | |
42ecbf5e DJ |
594 | |
595 | ac_unique_file="ldmain.c" | |
596 | # Factoring default headers for most tests. | |
597 | ac_includes_default="\ | |
598 | #include <stdio.h> | |
81ecdfbb | 599 | #ifdef HAVE_SYS_TYPES_H |
42ecbf5e DJ |
600 | # include <sys/types.h> |
601 | #endif | |
81ecdfbb | 602 | #ifdef HAVE_SYS_STAT_H |
42ecbf5e DJ |
603 | # include <sys/stat.h> |
604 | #endif | |
81ecdfbb | 605 | #ifdef STDC_HEADERS |
42ecbf5e DJ |
606 | # include <stdlib.h> |
607 | # include <stddef.h> | |
608 | #else | |
81ecdfbb | 609 | # ifdef HAVE_STDLIB_H |
42ecbf5e DJ |
610 | # include <stdlib.h> |
611 | # endif | |
612 | #endif | |
81ecdfbb RW |
613 | #ifdef HAVE_STRING_H |
614 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
42ecbf5e DJ |
615 | # include <memory.h> |
616 | # endif | |
617 | # include <string.h> | |
618 | #endif | |
81ecdfbb | 619 | #ifdef HAVE_STRINGS_H |
42ecbf5e DJ |
620 | # include <strings.h> |
621 | #endif | |
81ecdfbb | 622 | #ifdef HAVE_INTTYPES_H |
42ecbf5e | 623 | # include <inttypes.h> |
42ecbf5e | 624 | #endif |
81ecdfbb RW |
625 | #ifdef HAVE_STDINT_H |
626 | # include <stdint.h> | |
627 | #endif | |
628 | #ifdef HAVE_UNISTD_H | |
42ecbf5e DJ |
629 | # include <unistd.h> |
630 | #endif" | |
631 | ||
d0ac1c44 | 632 | ac_header_list= |
81ecdfbb RW |
633 | ac_subst_vars='am__EXEEXT_FALSE |
634 | am__EXEEXT_TRUE | |
635 | LTLIBOBJS | |
636 | LIBOBJS | |
cf0e0a0b | 637 | TESTSFRAMELIB |
87279e3c | 638 | TESTCTFLIB |
81ecdfbb RW |
639 | TESTBFDLIB |
640 | EMULATION_LIBPATH | |
641 | LIB_PATH | |
642 | EMUL_EXTRA_OFILES | |
643 | EMULATION_OFILES | |
50ff67e6 | 644 | TDIRS |
81ecdfbb | 645 | EMUL |
c58212ea L |
646 | elf_plt_unwind_list_options |
647 | elf_shlib_list_options | |
648 | elf_list_options | |
2cac01e3 FS |
649 | ZSTD_LIBS |
650 | ZSTD_CFLAGS | |
1ff6de03 NA |
651 | zlibinc |
652 | zlibdir | |
81ecdfbb | 653 | NATIVE_LIB_DIRS |
81ecdfbb RW |
654 | HDEFINES |
655 | do_compare | |
656 | GENINSRC_NEVER_FALSE | |
657 | GENINSRC_NEVER_TRUE | |
81ecdfbb RW |
658 | LEXLIB |
659 | LEX_OUTPUT_ROOT | |
660 | LEX | |
661 | YFLAGS | |
662 | YACC | |
663 | MSGMERGE | |
664 | MSGFMT | |
665 | MKINSTALLDIRS | |
666 | CATOBJEXT | |
667 | GENCAT | |
668 | INSTOBJEXT | |
669 | DATADIRNAME | |
670 | CATALOGS | |
671 | POSUB | |
672 | GMSGFMT | |
673 | XGETTEXT | |
674 | INCINTL | |
675 | LIBINTL_DEP | |
676 | LIBINTL | |
677 | USE_NLS | |
6757cf57 | 678 | WARN_WRITE_STRINGS |
b879806f | 679 | NO_WERROR |
c5da1932 | 680 | WARN_CFLAGS_FOR_BUILD |
b879806f | 681 | WARN_CFLAGS |
9e2bb0cb LB |
682 | JANSSON_LIBS |
683 | JANSSON_CFLAGS | |
7cdfc346 | 684 | enable_libctf |
094e34f2 NA |
685 | ENABLE_LIBCTF_FALSE |
686 | ENABLE_LIBCTF_TRUE | |
c774eab1 | 687 | enable_initfini_array |
b879806f AM |
688 | installed_linker |
689 | install_as_default | |
690 | TARGET_SYSTEM_ROOT_DEFINE | |
691 | TARGET_SYSTEM_ROOT | |
692 | use_sysroot | |
1d5269c9 MF |
693 | ENABLE_BFD_64_BIT_FALSE |
694 | ENABLE_BFD_64_BIT_TRUE | |
c8693053 | 695 | LARGEFILE_CPPFLAGS |
3cb62297 | 696 | CXXCPP |
81ecdfbb RW |
697 | OTOOL64 |
698 | OTOOL | |
699 | LIPO | |
700 | NMEDIT | |
701 | DSYMUTIL | |
81ecdfbb RW |
702 | RANLIB |
703 | AR | |
704 | OBJDUMP | |
705 | LN_S | |
706 | NM | |
707 | ac_ct_DUMPBIN | |
708 | DUMPBIN | |
709 | LD | |
710 | FGREP | |
711 | SED | |
712 | LIBTOOL | |
2cac01e3 FS |
713 | PKG_CONFIG_LIBDIR |
714 | PKG_CONFIG_PATH | |
715 | PKG_CONFIG | |
b879806f | 716 | EGREP |
b879806f | 717 | CPP |
68880f31 | 718 | GREP |
3cb62297 L |
719 | am__fastdepCXX_FALSE |
720 | am__fastdepCXX_TRUE | |
721 | CXXDEPMODE | |
722 | ac_ct_CXX | |
723 | CXXFLAGS | |
724 | CXX | |
81ecdfbb RW |
725 | am__fastdepCC_FALSE |
726 | am__fastdepCC_TRUE | |
727 | CCDEPMODE | |
6eb7d830 | 728 | am__nodep |
81ecdfbb RW |
729 | AMDEPBACKSLASH |
730 | AMDEP_FALSE | |
731 | AMDEP_TRUE | |
5bbe6ec5 | 732 | am__quote |
81ecdfbb RW |
733 | am__include |
734 | DEPDIR | |
c774eab1 AM |
735 | OBJEXT |
736 | EXEEXT | |
737 | ac_ct_CC | |
738 | CPPFLAGS | |
739 | LDFLAGS | |
740 | CFLAGS | |
741 | CC | |
742 | MAINT | |
743 | MAINTAINER_MODE_FALSE | |
744 | MAINTAINER_MODE_TRUE | |
745 | AM_BACKSLASH | |
746 | AM_DEFAULT_VERBOSITY | |
747 | AM_DEFAULT_V | |
748 | AM_V | |
81ecdfbb RW |
749 | am__untar |
750 | am__tar | |
751 | AMTAR | |
752 | am__leading_dot | |
753 | SET_MAKE | |
754 | AWK | |
755 | mkdir_p | |
756 | MKDIR_P | |
757 | INSTALL_STRIP_PROGRAM | |
758 | STRIP | |
759 | install_sh | |
760 | MAKEINFO | |
761 | AUTOHEADER | |
762 | AUTOMAKE | |
763 | AUTOCONF | |
764 | ACLOCAL | |
765 | VERSION | |
766 | PACKAGE | |
767 | CYGPATH_W | |
768 | am__isrc | |
769 | INSTALL_DATA | |
770 | INSTALL_SCRIPT | |
771 | INSTALL_PROGRAM | |
81ecdfbb RW |
772 | target_os |
773 | target_vendor | |
774 | target_cpu | |
775 | target | |
776 | host_os | |
777 | host_vendor | |
778 | host_cpu | |
779 | host | |
780 | build_os | |
781 | build_vendor | |
782 | build_cpu | |
783 | build | |
784 | target_alias | |
785 | host_alias | |
786 | build_alias | |
787 | LIBS | |
788 | ECHO_T | |
789 | ECHO_N | |
790 | ECHO_C | |
791 | DEFS | |
792 | mandir | |
793 | localedir | |
794 | libdir | |
795 | psdir | |
796 | pdfdir | |
797 | dvidir | |
798 | htmldir | |
799 | infodir | |
800 | docdir | |
801 | oldincludedir | |
802 | includedir | |
803 | localstatedir | |
804 | sharedstatedir | |
805 | sysconfdir | |
806 | datadir | |
807 | datarootdir | |
808 | libexecdir | |
809 | sbindir | |
810 | bindir | |
811 | program_transform_name | |
812 | prefix | |
813 | exec_prefix | |
814 | PACKAGE_URL | |
815 | PACKAGE_BUGREPORT | |
816 | PACKAGE_STRING | |
817 | PACKAGE_VERSION | |
818 | PACKAGE_TARNAME | |
819 | PACKAGE_NAME | |
820 | PATH_SEPARATOR | |
5bbe6ec5 | 821 | SHELL' |
50ff67e6 | 822 | ac_subst_files='' |
81ecdfbb RW |
823 | ac_user_opts=' |
824 | enable_option_checking | |
d0ac1c44 | 825 | enable_silent_rules |
64ac50ac | 826 | enable_maintainer_mode |
c774eab1 | 827 | enable_dependency_tracking |
b879806f AM |
828 | enable_shared |
829 | enable_static | |
830 | with_pic | |
831 | enable_fast_install | |
832 | with_gnu_ld | |
833 | enable_libtool_lock | |
834 | enable_plugins | |
835 | enable_largefile | |
43e05cd4 | 836 | enable_checking |
81ecdfbb RW |
837 | with_lib_path |
838 | enable_targets | |
839 | enable_64_bit_bfd | |
840 | with_sysroot | |
4fda8867 | 841 | enable_gold |
81ecdfbb | 842 | enable_got |
6c3bc0f8 | 843 | enable_compressed_debug_sections |
b0c295e1 | 844 | enable_default_compressed_debug_sections_algorithm |
6734f10a | 845 | enable_new_dtags |
647e4d46 | 846 | enable_relro |
b32632c4 | 847 | enable_textrel_check |
f6aec96d | 848 | enable_separate_code |
ba951afb NC |
849 | enable_warn_execstack |
850 | enable_warn_rwx_segments | |
851 | enable_default_execstack | |
23ae20f5 | 852 | enable_error_handling_script |
2760f24c | 853 | enable_default_hash_style |
c774eab1 | 854 | enable_initfini_array |
094e34f2 | 855 | enable_libctf |
9e2bb0cb | 856 | enable_jansson |
81ecdfbb RW |
857 | enable_werror |
858 | enable_build_warnings | |
81ecdfbb | 859 | enable_nls |
1ff6de03 | 860 | with_system_zlib |
2cac01e3 | 861 | with_zstd |
81ecdfbb RW |
862 | ' |
863 | ac_precious_vars='build_alias | |
864 | host_alias | |
865 | target_alias | |
866 | CC | |
867 | CFLAGS | |
868 | LDFLAGS | |
869 | LIBS | |
870 | CPPFLAGS | |
3cb62297 L |
871 | CXX |
872 | CXXFLAGS | |
873 | CCC | |
b879806f | 874 | CPP |
9e2bb0cb LB |
875 | PKG_CONFIG |
876 | PKG_CONFIG_PATH | |
877 | PKG_CONFIG_LIBDIR | |
2cac01e3 | 878 | CXXCPP |
9e2bb0cb LB |
879 | JANSSON_CFLAGS |
880 | JANSSON_LIBS | |
81ecdfbb | 881 | YACC |
2cac01e3 FS |
882 | YFLAGS |
883 | ZSTD_CFLAGS | |
884 | ZSTD_LIBS' | |
81ecdfbb | 885 | |
252b5132 RH |
886 | |
887 | # Initialize some variables set by options. | |
42ecbf5e DJ |
888 | ac_init_help= |
889 | ac_init_version=false | |
81ecdfbb RW |
890 | ac_unrecognized_opts= |
891 | ac_unrecognized_sep= | |
252b5132 RH |
892 | # The variables have the same names as the options, with |
893 | # dashes changed to underlines. | |
42ecbf5e | 894 | cache_file=/dev/null |
252b5132 | 895 | exec_prefix=NONE |
252b5132 | 896 | no_create= |
252b5132 RH |
897 | no_recursion= |
898 | prefix=NONE | |
899 | program_prefix=NONE | |
900 | program_suffix=NONE | |
901 | program_transform_name=s,x,x, | |
902 | silent= | |
903 | site= | |
904 | srcdir= | |
252b5132 RH |
905 | verbose= |
906 | x_includes=NONE | |
907 | x_libraries=NONE | |
42ecbf5e DJ |
908 | |
909 | # Installation directory options. | |
910 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
911 | # and all the variables that are supposed to be based on exec_prefix | |
912 | # by default will actually change. | |
913 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 914 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
915 | bindir='${exec_prefix}/bin' |
916 | sbindir='${exec_prefix}/sbin' | |
917 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
918 | datarootdir='${prefix}/share' |
919 | datadir='${datarootdir}' | |
252b5132 RH |
920 | sysconfdir='${prefix}/etc' |
921 | sharedstatedir='${prefix}/com' | |
922 | localstatedir='${prefix}/var' | |
252b5132 RH |
923 | includedir='${prefix}/include' |
924 | oldincludedir='/usr/include' | |
2e98a7bd | 925 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
926 | infodir='${datarootdir}/info' |
927 | htmldir='${docdir}' | |
928 | dvidir='${docdir}' | |
929 | pdfdir='${docdir}' | |
930 | psdir='${docdir}' | |
931 | libdir='${exec_prefix}/lib' | |
932 | localedir='${datarootdir}/locale' | |
933 | mandir='${datarootdir}/man' | |
252b5132 | 934 | |
252b5132 | 935 | ac_prev= |
81ecdfbb | 936 | ac_dashdash= |
252b5132 RH |
937 | for ac_option |
938 | do | |
252b5132 RH |
939 | # If the previous option needs an argument, assign it. |
940 | if test -n "$ac_prev"; then | |
81ecdfbb | 941 | eval $ac_prev=\$ac_option |
252b5132 RH |
942 | ac_prev= |
943 | continue | |
944 | fi | |
945 | ||
81ecdfbb | 946 | case $ac_option in |
d0ac1c44 SM |
947 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
948 | *=) ac_optarg= ;; | |
949 | *) ac_optarg=yes ;; | |
81ecdfbb | 950 | esac |
252b5132 RH |
951 | |
952 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
953 | ||
81ecdfbb RW |
954 | case $ac_dashdash$ac_option in |
955 | --) | |
956 | ac_dashdash=yes ;; | |
252b5132 RH |
957 | |
958 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
959 | ac_prev=bindir ;; | |
960 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
42ecbf5e | 961 | bindir=$ac_optarg ;; |
252b5132 RH |
962 | |
963 | -build | --build | --buil | --bui | --bu) | |
42ecbf5e | 964 | ac_prev=build_alias ;; |
252b5132 | 965 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
42ecbf5e | 966 | build_alias=$ac_optarg ;; |
252b5132 RH |
967 | |
968 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
969 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
970 | ac_prev=cache_file ;; | |
971 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
972 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
42ecbf5e DJ |
973 | cache_file=$ac_optarg ;; |
974 | ||
975 | --config-cache | -C) | |
976 | cache_file=config.cache ;; | |
252b5132 | 977 | |
81ecdfbb | 978 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 979 | ac_prev=datadir ;; |
81ecdfbb | 980 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
42ecbf5e | 981 | datadir=$ac_optarg ;; |
252b5132 | 982 | |
81ecdfbb RW |
983 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
984 | | --dataroo | --dataro | --datar) | |
985 | ac_prev=datarootdir ;; | |
986 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
987 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
988 | datarootdir=$ac_optarg ;; | |
989 | ||
252b5132 | 990 | -disable-* | --disable-*) |
81ecdfbb | 991 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 992 | # Reject names that are not valid shell variable names. |
81ecdfbb | 993 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 994 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
995 | ac_useropt_orig=$ac_useropt |
996 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
997 | case $ac_user_opts in | |
998 | *" | |
999 | "enable_$ac_useropt" | |
1000 | "*) ;; | |
1001 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1002 | ac_unrecognized_sep=', ';; | |
1003 | esac | |
1004 | eval enable_$ac_useropt=no ;; | |
1005 | ||
1006 | -docdir | --docdir | --docdi | --doc | --do) | |
1007 | ac_prev=docdir ;; | |
1008 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1009 | docdir=$ac_optarg ;; | |
1010 | ||
1011 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1012 | ac_prev=dvidir ;; | |
1013 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1014 | dvidir=$ac_optarg ;; | |
252b5132 RH |
1015 | |
1016 | -enable-* | --enable-*) | |
81ecdfbb | 1017 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 1018 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1019 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1020 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1021 | ac_useropt_orig=$ac_useropt |
1022 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1023 | case $ac_user_opts in | |
1024 | *" | |
1025 | "enable_$ac_useropt" | |
1026 | "*) ;; | |
1027 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1028 | ac_unrecognized_sep=', ';; | |
252b5132 | 1029 | esac |
81ecdfbb | 1030 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1031 | |
1032 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1033 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1034 | | --exec | --exe | --ex) | |
1035 | ac_prev=exec_prefix ;; | |
1036 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1037 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1038 | | --exec=* | --exe=* | --ex=*) | |
42ecbf5e | 1039 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
1040 | |
1041 | -gas | --gas | --ga | --g) | |
1042 | # Obsolete; use --with-gas. | |
1043 | with_gas=yes ;; | |
1044 | ||
42ecbf5e DJ |
1045 | -help | --help | --hel | --he | -h) |
1046 | ac_init_help=long ;; | |
1047 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1048 | ac_init_help=recursive ;; | |
1049 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1050 | ac_init_help=short ;; | |
252b5132 RH |
1051 | |
1052 | -host | --host | --hos | --ho) | |
42ecbf5e | 1053 | ac_prev=host_alias ;; |
252b5132 | 1054 | -host=* | --host=* | --hos=* | --ho=*) |
42ecbf5e | 1055 | host_alias=$ac_optarg ;; |
252b5132 | 1056 | |
81ecdfbb RW |
1057 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1058 | ac_prev=htmldir ;; | |
1059 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1060 | | --ht=*) | |
1061 | htmldir=$ac_optarg ;; | |
1062 | ||
252b5132 RH |
1063 | -includedir | --includedir | --includedi | --included | --include \ |
1064 | | --includ | --inclu | --incl | --inc) | |
1065 | ac_prev=includedir ;; | |
1066 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1067 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
42ecbf5e | 1068 | includedir=$ac_optarg ;; |
252b5132 RH |
1069 | |
1070 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1071 | ac_prev=infodir ;; | |
1072 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
42ecbf5e | 1073 | infodir=$ac_optarg ;; |
252b5132 RH |
1074 | |
1075 | -libdir | --libdir | --libdi | --libd) | |
1076 | ac_prev=libdir ;; | |
1077 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
42ecbf5e | 1078 | libdir=$ac_optarg ;; |
252b5132 RH |
1079 | |
1080 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1081 | | --libexe | --libex | --libe) | |
1082 | ac_prev=libexecdir ;; | |
1083 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1084 | | --libexe=* | --libex=* | --libe=*) | |
42ecbf5e | 1085 | libexecdir=$ac_optarg ;; |
252b5132 | 1086 | |
81ecdfbb RW |
1087 | -localedir | --localedir | --localedi | --localed | --locale) |
1088 | ac_prev=localedir ;; | |
1089 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1090 | localedir=$ac_optarg ;; | |
1091 | ||
252b5132 | 1092 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1093 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1094 | ac_prev=localstatedir ;; |
1095 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1096 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
42ecbf5e | 1097 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1098 | |
1099 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1100 | ac_prev=mandir ;; | |
1101 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
42ecbf5e | 1102 | mandir=$ac_optarg ;; |
252b5132 RH |
1103 | |
1104 | -nfp | --nfp | --nf) | |
1105 | # Obsolete; use --without-fp. | |
1106 | with_fp=no ;; | |
1107 | ||
1108 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
42ecbf5e | 1109 | | --no-cr | --no-c | -n) |
252b5132 RH |
1110 | no_create=yes ;; |
1111 | ||
1112 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1113 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1114 | no_recursion=yes ;; | |
1115 | ||
1116 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1117 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1118 | | --oldin | --oldi | --old | --ol | --o) | |
1119 | ac_prev=oldincludedir ;; | |
1120 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1121 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1122 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
42ecbf5e | 1123 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1124 | |
1125 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1126 | ac_prev=prefix ;; | |
1127 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42ecbf5e | 1128 | prefix=$ac_optarg ;; |
252b5132 RH |
1129 | |
1130 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1131 | | --program-pre | --program-pr | --program-p) | |
1132 | ac_prev=program_prefix ;; | |
1133 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1134 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
42ecbf5e | 1135 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1136 | |
1137 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1138 | | --program-suf | --program-su | --program-s) | |
1139 | ac_prev=program_suffix ;; | |
1140 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1141 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
42ecbf5e | 1142 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1143 | |
1144 | -program-transform-name | --program-transform-name \ | |
1145 | | --program-transform-nam | --program-transform-na \ | |
1146 | | --program-transform-n | --program-transform- \ | |
1147 | | --program-transform | --program-transfor \ | |
1148 | | --program-transfo | --program-transf \ | |
1149 | | --program-trans | --program-tran \ | |
1150 | | --progr-tra | --program-tr | --program-t) | |
1151 | ac_prev=program_transform_name ;; | |
1152 | -program-transform-name=* | --program-transform-name=* \ | |
1153 | | --program-transform-nam=* | --program-transform-na=* \ | |
1154 | | --program-transform-n=* | --program-transform-=* \ | |
1155 | | --program-transform=* | --program-transfor=* \ | |
1156 | | --program-transfo=* | --program-transf=* \ | |
1157 | | --program-trans=* | --program-tran=* \ | |
1158 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
42ecbf5e | 1159 | program_transform_name=$ac_optarg ;; |
252b5132 | 1160 | |
81ecdfbb RW |
1161 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1162 | ac_prev=pdfdir ;; | |
1163 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1164 | pdfdir=$ac_optarg ;; | |
1165 | ||
1166 | -psdir | --psdir | --psdi | --psd | --ps) | |
1167 | ac_prev=psdir ;; | |
1168 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1169 | psdir=$ac_optarg ;; | |
1170 | ||
252b5132 RH |
1171 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1172 | | -silent | --silent | --silen | --sile | --sil) | |
1173 | silent=yes ;; | |
1174 | ||
1175 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1176 | ac_prev=sbindir ;; | |
1177 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1178 | | --sbi=* | --sb=*) | |
42ecbf5e | 1179 | sbindir=$ac_optarg ;; |
252b5132 RH |
1180 | |
1181 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1182 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1183 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1184 | | --sha | --sh) | |
1185 | ac_prev=sharedstatedir ;; | |
1186 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1187 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1188 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1189 | | --sha=* | --sh=*) | |
42ecbf5e | 1190 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1191 | |
1192 | -site | --site | --sit) | |
1193 | ac_prev=site ;; | |
1194 | -site=* | --site=* | --sit=*) | |
42ecbf5e | 1195 | site=$ac_optarg ;; |
85fbca6a | 1196 | |
252b5132 RH |
1197 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1198 | ac_prev=srcdir ;; | |
1199 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42ecbf5e | 1200 | srcdir=$ac_optarg ;; |
252b5132 RH |
1201 | |
1202 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1203 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1204 | ac_prev=sysconfdir ;; | |
1205 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1206 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
42ecbf5e | 1207 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1208 | |
1209 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
42ecbf5e | 1210 | ac_prev=target_alias ;; |
252b5132 | 1211 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
42ecbf5e | 1212 | target_alias=$ac_optarg ;; |
252b5132 RH |
1213 | |
1214 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1215 | verbose=yes ;; | |
1216 | ||
42ecbf5e DJ |
1217 | -version | --version | --versio | --versi | --vers | -V) |
1218 | ac_init_version=: ;; | |
252b5132 RH |
1219 | |
1220 | -with-* | --with-*) | |
81ecdfbb | 1221 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1222 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1223 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1224 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1225 | ac_useropt_orig=$ac_useropt |
1226 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1227 | case $ac_user_opts in | |
1228 | *" | |
1229 | "with_$ac_useropt" | |
1230 | "*) ;; | |
1231 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1232 | ac_unrecognized_sep=', ';; | |
252b5132 | 1233 | esac |
81ecdfbb | 1234 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1235 | |
1236 | -without-* | --without-*) | |
81ecdfbb | 1237 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1238 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1239 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1240 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1241 | ac_useropt_orig=$ac_useropt |
1242 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1243 | case $ac_user_opts in | |
1244 | *" | |
1245 | "with_$ac_useropt" | |
1246 | "*) ;; | |
1247 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1248 | ac_unrecognized_sep=', ';; | |
1249 | esac | |
1250 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1251 | |
1252 | --x) | |
1253 | # Obsolete; use --with-x. | |
1254 | with_x=yes ;; | |
1255 | ||
1256 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1257 | | --x-incl | --x-inc | --x-in | --x-i) | |
1258 | ac_prev=x_includes ;; | |
1259 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1260 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
42ecbf5e | 1261 | x_includes=$ac_optarg ;; |
252b5132 RH |
1262 | |
1263 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1264 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1265 | ac_prev=x_libraries ;; | |
1266 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1267 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
42ecbf5e | 1268 | x_libraries=$ac_optarg ;; |
252b5132 | 1269 | |
d0ac1c44 SM |
1270 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1271 | Try \`$0 --help' for more information" | |
252b5132 RH |
1272 | ;; |
1273 | ||
42ecbf5e DJ |
1274 | *=*) |
1275 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1276 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1277 | case $ac_envvar in #( |
1278 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1279 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1280 | esac |
1281 | eval $ac_envvar=\$ac_optarg | |
42ecbf5e DJ |
1282 | export $ac_envvar ;; |
1283 | ||
252b5132 | 1284 | *) |
42ecbf5e | 1285 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1286 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
42ecbf5e | 1287 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1288 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1289 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
252b5132 RH |
1290 | ;; |
1291 | ||
1292 | esac | |
1293 | done | |
1294 | ||
1295 | if test -n "$ac_prev"; then | |
42ecbf5e | 1296 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1297 | as_fn_error $? "missing argument to $ac_option" |
252b5132 | 1298 | fi |
252b5132 | 1299 | |
81ecdfbb RW |
1300 | if test -n "$ac_unrecognized_opts"; then |
1301 | case $enable_option_checking in | |
1302 | no) ;; | |
d0ac1c44 | 1303 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1304 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
42ecbf5e | 1305 | esac |
81ecdfbb | 1306 | fi |
252b5132 | 1307 | |
81ecdfbb RW |
1308 | # Check all directory arguments for consistency. |
1309 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1310 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1311 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
31b0378d | 1312 | libdir localedir mandir |
252b5132 | 1313 | do |
81ecdfbb RW |
1314 | eval ac_val=\$$ac_var |
1315 | # Remove trailing slashes. | |
1316 | case $ac_val in | |
1317 | */ ) | |
1318 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1319 | eval $ac_var=\$ac_val;; | |
1320 | esac | |
1321 | # Be sure to have absolute directory names. | |
42ecbf5e | 1322 | case $ac_val in |
81ecdfbb RW |
1323 | [\\/$]* | ?:[\\/]* ) continue;; |
1324 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
252b5132 | 1325 | esac |
d0ac1c44 | 1326 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1327 | done |
1328 | ||
42ecbf5e DJ |
1329 | # There might be people who depend on the old broken behavior: `$host' |
1330 | # used to hold the argument of --host etc. | |
1331 | # FIXME: To remove some day. | |
1332 | build=$build_alias | |
1333 | host=$host_alias | |
1334 | target=$target_alias | |
1335 | ||
1336 | # FIXME: To remove some day. | |
1337 | if test "x$host_alias" != x; then | |
1338 | if test "x$build_alias" = x; then | |
1339 | cross_compiling=maybe | |
42ecbf5e DJ |
1340 | elif test "x$build_alias" != "x$host_alias"; then |
1341 | cross_compiling=yes | |
1342 | fi | |
1343 | fi | |
e5a52504 | 1344 | |
42ecbf5e DJ |
1345 | ac_tool_prefix= |
1346 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1347 | ||
1348 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1349 | |
252b5132 | 1350 | |
81ecdfbb RW |
1351 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1352 | ac_ls_di=`ls -di .` && | |
1353 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1354 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1355 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1356 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1357 | |
1358 | ||
252b5132 RH |
1359 | # Find the source files, if location was not specified. |
1360 | if test -z "$srcdir"; then | |
1361 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1362 | # Try the directory containing this script, then the parent directory. |
1363 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1364 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1365 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1366 | X"$as_myself" : 'X\(//\)$' \| \ | |
1367 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1368 | $as_echo X"$as_myself" | | |
1369 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1370 | s//\1/ | |
1371 | q | |
1372 | } | |
1373 | /^X\(\/\/\)[^/].*/{ | |
1374 | s//\1/ | |
1375 | q | |
1376 | } | |
1377 | /^X\(\/\/\)$/{ | |
1378 | s//\1/ | |
1379 | q | |
1380 | } | |
1381 | /^X\(\/\).*/{ | |
1382 | s//\1/ | |
1383 | q | |
1384 | } | |
1385 | s/.*/./; q'` | |
252b5132 | 1386 | srcdir=$ac_confdir |
81ecdfbb | 1387 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1388 | srcdir=.. |
1389 | fi | |
1390 | else | |
1391 | ac_srcdir_defaulted=no | |
1392 | fi | |
81ecdfbb RW |
1393 | if test ! -r "$srcdir/$ac_unique_file"; then |
1394 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1395 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1396 | fi |
1397 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1398 | ac_abs_confdir=`( | |
d0ac1c44 | 1399 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1400 | pwd)` |
1401 | # When building in place, set srcdir=. | |
1402 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1403 | srcdir=. | |
1404 | fi | |
1405 | # Remove unnecessary trailing slashes from srcdir. | |
1406 | # Double slashes in file names in object file debugging info | |
1407 | # mess up M-x gdb in Emacs. | |
1408 | case $srcdir in | |
1409 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1410 | esac | |
1411 | for ac_var in $ac_precious_vars; do | |
1412 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1413 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1414 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1415 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1416 | done | |
252b5132 | 1417 | |
42ecbf5e DJ |
1418 | # |
1419 | # Report the --help message. | |
1420 | # | |
1421 | if test "$ac_init_help" = "long"; then | |
1422 | # Omit some internal or obsolete options to make the list less imposing. | |
1423 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1424 | cat <<_ACEOF | |
b5c37946 | 1425 | \`configure' configures ld 2.41.50 to adapt to many kinds of systems. |
252b5132 | 1426 | |
42ecbf5e | 1427 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 1428 | |
42ecbf5e DJ |
1429 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1430 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 1431 | |
42ecbf5e | 1432 | Defaults for the options are specified in brackets. |
ac48eca1 | 1433 | |
42ecbf5e DJ |
1434 | Configuration: |
1435 | -h, --help display this help and exit | |
1436 | --help=short display options specific to this package | |
1437 | --help=recursive display the short help of all the included packages | |
1438 | -V, --version display version information and exit | |
d0ac1c44 | 1439 | -q, --quiet, --silent do not print \`checking ...' messages |
42ecbf5e DJ |
1440 | --cache-file=FILE cache test results in FILE [disabled] |
1441 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1442 | -n, --no-create do not create output files | |
1443 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1444 | ||
42ecbf5e DJ |
1445 | Installation directories: |
1446 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1447 | [$ac_default_prefix] |
42ecbf5e | 1448 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1449 | [PREFIX] |
ac48eca1 | 1450 | |
42ecbf5e DJ |
1451 | By default, \`make install' will install all the files in |
1452 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1453 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1454 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 1455 | |
42ecbf5e | 1456 | For better control, use the options below. |
ac48eca1 | 1457 | |
42ecbf5e | 1458 | Fine tuning of the installation directories: |
81ecdfbb RW |
1459 | --bindir=DIR user executables [EPREFIX/bin] |
1460 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1461 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1462 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1463 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1464 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1465 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1466 | --includedir=DIR C header files [PREFIX/include] | |
1467 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1468 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1469 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1470 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1471 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1472 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
2e98a7bd | 1473 | --docdir=DIR documentation root [DATAROOTDIR/doc/ld] |
81ecdfbb RW |
1474 | --htmldir=DIR html documentation [DOCDIR] |
1475 | --dvidir=DIR dvi documentation [DOCDIR] | |
1476 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1477 | --psdir=DIR ps documentation [DOCDIR] | |
42ecbf5e | 1478 | _ACEOF |
ac48eca1 | 1479 | |
42ecbf5e | 1480 | cat <<\_ACEOF |
252b5132 | 1481 | |
42ecbf5e DJ |
1482 | Program names: |
1483 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1484 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1485 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 1486 | |
42ecbf5e DJ |
1487 | System types: |
1488 | --build=BUILD configure for building on BUILD [guessed] | |
1489 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1490 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1491 | _ACEOF | |
252b5132 | 1492 | fi |
252b5132 | 1493 | |
42ecbf5e | 1494 | if test -n "$ac_init_help"; then |
2e98a7bd | 1495 | case $ac_init_help in |
b5c37946 | 1496 | short | recursive ) echo "Configuration of ld 2.41.50:";; |
2e98a7bd | 1497 | esac |
42ecbf5e | 1498 | cat <<\_ACEOF |
e5a52504 | 1499 | |
42ecbf5e | 1500 | Optional Features: |
81ecdfbb | 1501 | --disable-option-checking ignore unrecognized --enable/--with options |
42ecbf5e DJ |
1502 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1503 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
d0ac1c44 SM |
1504 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1505 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1506 | --enable-maintainer-mode | |
1507 | enable make rules and dependencies not useful (and | |
1508 | sometimes confusing) to the casual installer | |
c774eab1 AM |
1509 | --enable-dependency-tracking |
1510 | do not reject slow dependency extractors | |
1511 | --disable-dependency-tracking | |
1512 | speeds up one-time build | |
b879806f AM |
1513 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1514 | --enable-static[=PKGS] build static libraries [default=yes] | |
1515 | --enable-fast-install[=PKGS] | |
1516 | optimize for fast installation [default=yes] | |
1517 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1518 | --enable-plugins Enable support for plugins | |
1519 | --disable-largefile omit support for large files | |
43e05cd4 | 1520 | --enable-checking enable run-time checks |
ce2cded5 L |
1521 | --enable-targets alternative target configurations |
1522 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
c7791212 | 1523 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7fb9f789 NC |
1524 | --enable-got=<type> GOT handling scheme (target, single, negative, |
1525 | multigot) | |
4894d80b L |
1526 | --enable-compressed-debug-sections={all,ld,none} |
1527 | compress debug sections by default] | |
b0c295e1 ML |
1528 | --enable-default-compressed-debug-sections-algorithm={zlib,zstd} |
1529 | Default compression algorithm for | |
1530 | --enable-compressed-debug-sections. | |
6734f10a | 1531 | --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default] |
647e4d46 | 1532 | --enable-relro enable -z relro in ELF linker by default |
b32632c4 L |
1533 | --enable-textrel-check=[yes|no|warning|error] |
1534 | enable DT_TEXTREL check in ELF linker | |
f6aec96d | 1535 | --enable-separate-code enable -z separate-code in ELF linker by default |
ba951afb NC |
1536 | --enable-warn-execstack enable warnings when creating an executable stack |
1537 | --enable-warn-rwx-segments | |
b5c37946 | 1538 | enable warnings when creating segments with RWX |
ba951afb NC |
1539 | permissions |
1540 | --enable-default-execstack | |
1541 | create an executable stack if an input file is | |
1542 | missing a .note.GNU-stack section | |
23ae20f5 NC |
1543 | --enable-error-handling-script |
1544 | enable/disable support for the | |
1545 | --error-handling-script option | |
2760f24c RG |
1546 | --enable-default-hash-style={sysv,gnu,both} |
1547 | use this default hash style | |
c774eab1 | 1548 | --disable-initfini-array do not use .init_array/.fini_array sections |
094e34f2 | 1549 | --enable-libctf Handle .ctf type-info sections [default=yes] |
9e2bb0cb | 1550 | --enable-jansson enable jansson [default=no] |
ce2cded5 L |
1551 | --enable-werror treat compile warnings as errors |
1552 | --enable-build-warnings enable build-time compiler warnings | |
42ecbf5e | 1553 | --disable-nls do not use Native Language Support |
42ecbf5e DJ |
1554 | |
1555 | Optional Packages: | |
1556 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1557 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1558 | --with-pic try to use only PIC/non-PIC objects [default=use |
1559 | both] | |
1560 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
b879806f AM |
1561 | --with-lib-path=dir1:dir2... set default LIB_PATH |
1562 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
1ff6de03 | 1563 | --with-system-zlib use installed libz |
2cac01e3 FS |
1564 | --with-zstd support zstd compressed debug sections |
1565 | (default=auto) | |
42ecbf5e DJ |
1566 | |
1567 | Some influential environment variables: | |
1568 | CC C compiler command | |
1569 | CFLAGS C compiler flags | |
1570 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1571 | nonstandard directory <lib dir> | |
81ecdfbb | 1572 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1573 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1574 | you have headers in a nonstandard directory <include dir> |
3cb62297 L |
1575 | CXX C++ compiler command |
1576 | CXXFLAGS C++ compiler flags | |
b879806f | 1577 | CPP C preprocessor |
9e2bb0cb LB |
1578 | PKG_CONFIG path to pkg-config utility |
1579 | PKG_CONFIG_PATH | |
1580 | directories to add to pkg-config's search path | |
1581 | PKG_CONFIG_LIBDIR | |
1582 | path overriding pkg-config's built-in search path | |
2cac01e3 | 1583 | CXXCPP C++ preprocessor |
9e2bb0cb LB |
1584 | JANSSON_CFLAGS |
1585 | C compiler flags for JANSSON, overriding pkg-config | |
1586 | JANSSON_LIBS | |
1587 | linker flags for JANSSON, overriding pkg-config | |
d0ac1c44 SM |
1588 | YACC The `Yet Another Compiler Compiler' implementation to use. |
1589 | Defaults to the first program found out of: `bison -y', `byacc', | |
1590 | `yacc'. | |
81ecdfbb RW |
1591 | YFLAGS The list of arguments that will be passed by default to $YACC. |
1592 | This script will default YFLAGS to the empty string to avoid a | |
1593 | default value of `-d' given by some make applications. | |
2cac01e3 FS |
1594 | ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config |
1595 | ZSTD_LIBS linker flags for ZSTD, overriding pkg-config | |
42ecbf5e DJ |
1596 | |
1597 | Use these variables to override the choices made by `configure' or to help | |
1598 | it to find libraries and programs with nonstandard names/locations. | |
1599 | ||
81ecdfbb | 1600 | Report bugs to the package provider. |
42ecbf5e | 1601 | _ACEOF |
81ecdfbb | 1602 | ac_status=$? |
42ecbf5e DJ |
1603 | fi |
1604 | ||
1605 | if test "$ac_init_help" = "recursive"; then | |
1606 | # If there are subdirs, report their specific --help. | |
42ecbf5e | 1607 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1608 | test -d "$ac_dir" || |
1609 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1610 | continue | |
42ecbf5e DJ |
1611 | ac_builddir=. |
1612 | ||
81ecdfbb RW |
1613 | case "$ac_dir" in |
1614 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1615 | *) | |
1616 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1617 | # A ".." for each directory in $ac_dir_suffix. | |
1618 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1619 | case $ac_top_builddir_sub in | |
1620 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1621 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1622 | esac ;; | |
1623 | esac | |
1624 | ac_abs_top_builddir=$ac_pwd | |
1625 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1626 | # for backward compatibility: | |
1627 | ac_top_builddir=$ac_top_build_prefix | |
42ecbf5e DJ |
1628 | |
1629 | case $srcdir in | |
81ecdfbb | 1630 | .) # We are building in place. |
42ecbf5e | 1631 | ac_srcdir=. |
81ecdfbb RW |
1632 | ac_top_srcdir=$ac_top_builddir_sub |
1633 | ac_abs_top_srcdir=$ac_pwd ;; | |
1634 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
42ecbf5e | 1635 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1636 | ac_top_srcdir=$srcdir |
1637 | ac_abs_top_srcdir=$srcdir ;; | |
1638 | *) # Relative name. | |
1639 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1640 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1641 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
42ecbf5e | 1642 | esac |
81ecdfbb RW |
1643 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1644 | ||
1645 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1646 | # Check for guested configure. | |
1647 | if test -f "$ac_srcdir/configure.gnu"; then | |
1648 | echo && | |
1649 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1650 | elif test -f "$ac_srcdir/configure"; then | |
1651 | echo && | |
1652 | $SHELL "$ac_srcdir/configure" --help=recursive | |
42ecbf5e | 1653 | else |
81ecdfbb RW |
1654 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1655 | fi || ac_status=$? | |
1656 | cd "$ac_pwd" || { ac_status=$?; break; } | |
42ecbf5e | 1657 | done |
a2d91340 AC |
1658 | fi |
1659 | ||
81ecdfbb | 1660 | test -n "$ac_init_help" && exit $ac_status |
42ecbf5e DJ |
1661 | if $ac_init_version; then |
1662 | cat <<\_ACEOF | |
b5c37946 | 1663 | ld configure 2.41.50 |
d0ac1c44 | 1664 | generated by GNU Autoconf 2.69 |
a2d91340 | 1665 | |
d0ac1c44 | 1666 | Copyright (C) 2012 Free Software Foundation, Inc. |
42ecbf5e DJ |
1667 | This configure script is free software; the Free Software Foundation |
1668 | gives unlimited permission to copy, distribute and modify it. | |
1669 | _ACEOF | |
81ecdfbb | 1670 | exit |
42ecbf5e | 1671 | fi |
a2d91340 | 1672 | |
81ecdfbb RW |
1673 | ## ------------------------ ## |
1674 | ## Autoconf initialization. ## | |
1675 | ## ------------------------ ## | |
a2d91340 | 1676 | |
81ecdfbb RW |
1677 | # ac_fn_c_try_compile LINENO |
1678 | # -------------------------- | |
1679 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1680 | ac_fn_c_try_compile () | |
1681 | { | |
1682 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1683 | rm -f conftest.$ac_objext | |
1684 | if { { ac_try="$ac_compile" | |
1685 | case "(($ac_try" in | |
1686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1687 | *) ac_try_echo=$ac_try;; | |
1688 | esac | |
1689 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1690 | $as_echo "$ac_try_echo"; } >&5 | |
1691 | (eval "$ac_compile") 2>conftest.err | |
1692 | ac_status=$? | |
1693 | if test -s conftest.err; then | |
1694 | grep -v '^ *+' conftest.err >conftest.er1 | |
1695 | cat conftest.er1 >&5 | |
1696 | mv -f conftest.er1 conftest.err | |
1697 | fi | |
1698 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1699 | test $ac_status = 0; } && { | |
1700 | test -z "$ac_c_werror_flag" || | |
1701 | test ! -s conftest.err | |
1702 | } && test -s conftest.$ac_objext; then : | |
1703 | ac_retval=0 | |
1704 | else | |
1705 | $as_echo "$as_me: failed program was:" >&5 | |
1706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a2d91340 | 1707 | |
81ecdfbb RW |
1708 | ac_retval=1 |
1709 | fi | |
d0ac1c44 SM |
1710 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1711 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1712 | |
1713 | } # ac_fn_c_try_compile | |
1714 | ||
b879806f AM |
1715 | # ac_fn_cxx_try_compile LINENO |
1716 | # ---------------------------- | |
1717 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1718 | ac_fn_cxx_try_compile () | |
81ecdfbb RW |
1719 | { |
1720 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
b879806f AM |
1721 | rm -f conftest.$ac_objext |
1722 | if { { ac_try="$ac_compile" | |
81ecdfbb RW |
1723 | case "(($ac_try" in |
1724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1725 | *) ac_try_echo=$ac_try;; | |
1726 | esac | |
1727 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1728 | $as_echo "$ac_try_echo"; } >&5 | |
b879806f | 1729 | (eval "$ac_compile") 2>conftest.err |
81ecdfbb RW |
1730 | ac_status=$? |
1731 | if test -s conftest.err; then | |
1732 | grep -v '^ *+' conftest.err >conftest.er1 | |
1733 | cat conftest.er1 >&5 | |
1734 | mv -f conftest.er1 conftest.err | |
1735 | fi | |
1736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
b879806f AM |
1737 | test $ac_status = 0; } && { |
1738 | test -z "$ac_cxx_werror_flag" || | |
81ecdfbb | 1739 | test ! -s conftest.err |
b879806f | 1740 | } && test -s conftest.$ac_objext; then : |
81ecdfbb RW |
1741 | ac_retval=0 |
1742 | else | |
1743 | $as_echo "$as_me: failed program was:" >&5 | |
1744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1745 | ||
b879806f | 1746 | ac_retval=1 |
81ecdfbb | 1747 | fi |
d0ac1c44 SM |
1748 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1749 | as_fn_set_status $ac_retval | |
81ecdfbb | 1750 | |
b879806f | 1751 | } # ac_fn_cxx_try_compile |
81ecdfbb | 1752 | |
b879806f AM |
1753 | # ac_fn_c_try_cpp LINENO |
1754 | # ---------------------- | |
1755 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1756 | ac_fn_c_try_cpp () | |
3cb62297 L |
1757 | { |
1758 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
b879806f | 1759 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
3cb62297 L |
1760 | case "(($ac_try" in |
1761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1762 | *) ac_try_echo=$ac_try;; | |
1763 | esac | |
1764 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1765 | $as_echo "$ac_try_echo"; } >&5 | |
b879806f | 1766 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
3cb62297 L |
1767 | ac_status=$? |
1768 | if test -s conftest.err; then | |
1769 | grep -v '^ *+' conftest.err >conftest.er1 | |
1770 | cat conftest.er1 >&5 | |
1771 | mv -f conftest.er1 conftest.err | |
1772 | fi | |
1773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d0ac1c44 | 1774 | test $ac_status = 0; } > conftest.i && { |
b879806f | 1775 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3cb62297 | 1776 | test ! -s conftest.err |
b879806f | 1777 | }; then : |
3cb62297 L |
1778 | ac_retval=0 |
1779 | else | |
1780 | $as_echo "$as_me: failed program was:" >&5 | |
1781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1782 | ||
b879806f | 1783 | ac_retval=1 |
3cb62297 | 1784 | fi |
d0ac1c44 SM |
1785 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1786 | as_fn_set_status $ac_retval | |
3cb62297 | 1787 | |
b879806f | 1788 | } # ac_fn_c_try_cpp |
3cb62297 | 1789 | |
81ecdfbb RW |
1790 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1791 | # ------------------------------------------------------- | |
1792 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1793 | # the include files in INCLUDES and setting the cache variable VAR | |
1794 | # accordingly. | |
1795 | ac_fn_c_check_header_mongrel () | |
1796 | { | |
1797 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d0ac1c44 | 1798 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1800 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1801 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1802 | $as_echo_n "(cached) " >&6 |
1803 | fi | |
1804 | eval ac_res=\$$3 | |
1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1806 | $as_echo "$ac_res" >&6; } | |
1807 | else | |
1808 | # Is the header compilable? | |
1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1810 | $as_echo_n "checking $2 usability... " >&6; } | |
1811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1812 | /* end confdefs.h. */ | |
1813 | $4 | |
1814 | #include <$2> | |
1815 | _ACEOF | |
1816 | if ac_fn_c_try_compile "$LINENO"; then : | |
1817 | ac_header_compiler=yes | |
1818 | else | |
1819 | ac_header_compiler=no | |
1820 | fi | |
1821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1823 | $as_echo "$ac_header_compiler" >&6; } | |
1824 | ||
1825 | # Is the header present? | |
1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1827 | $as_echo_n "checking $2 presence... " >&6; } | |
1828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1829 | /* end confdefs.h. */ | |
1830 | #include <$2> | |
1831 | _ACEOF | |
1832 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1833 | ac_header_preproc=yes | |
1834 | else | |
1835 | ac_header_preproc=no | |
1836 | fi | |
d0ac1c44 | 1837 | rm -f conftest.err conftest.i conftest.$ac_ext |
81ecdfbb RW |
1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1839 | $as_echo "$ac_header_preproc" >&6; } | |
1840 | ||
1841 | # So? What about this header? | |
1842 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1843 | yes:no: ) | |
1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1845 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1847 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1848 | ;; | |
1849 | no:yes:* ) | |
1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1851 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1853 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1855 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1857 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1859 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1860 | ;; | |
1861 | esac | |
1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1863 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1864 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1865 | $as_echo_n "(cached) " >&6 |
1866 | else | |
1867 | eval "$3=\$ac_header_compiler" | |
1868 | fi | |
1869 | eval ac_res=\$$3 | |
1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1871 | $as_echo "$ac_res" >&6; } | |
1872 | fi | |
d0ac1c44 | 1873 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1874 | |
1875 | } # ac_fn_c_check_header_mongrel | |
1876 | ||
1877 | # ac_fn_c_try_run LINENO | |
1878 | # ---------------------- | |
1879 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1880 | # that executables *can* be run. | |
1881 | ac_fn_c_try_run () | |
1882 | { | |
1883 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1884 | if { { ac_try="$ac_link" | |
1885 | case "(($ac_try" in | |
1886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1887 | *) ac_try_echo=$ac_try;; | |
1888 | esac | |
1889 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1890 | $as_echo "$ac_try_echo"; } >&5 | |
1891 | (eval "$ac_link") 2>&5 | |
1892 | ac_status=$? | |
1893 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1894 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1895 | { { case "(($ac_try" in | |
1896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1897 | *) ac_try_echo=$ac_try;; | |
1898 | esac | |
1899 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1900 | $as_echo "$ac_try_echo"; } >&5 | |
1901 | (eval "$ac_try") 2>&5 | |
1902 | ac_status=$? | |
1903 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1904 | test $ac_status = 0; }; }; then : | |
1905 | ac_retval=0 | |
1906 | else | |
1907 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1908 | $as_echo "$as_me: failed program was:" >&5 | |
1909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1910 | ||
1911 | ac_retval=$ac_status | |
1912 | fi | |
1913 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1914 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1915 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1916 | |
1917 | } # ac_fn_c_try_run | |
1918 | ||
1919 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1920 | # ------------------------------------------------------- | |
1921 | # Tests whether HEADER exists and can be compiled using the include files in | |
1922 | # INCLUDES, setting the cache variable VAR accordingly. | |
1923 | ac_fn_c_check_header_compile () | |
1924 | { | |
1925 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1927 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1928 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1929 | $as_echo_n "(cached) " >&6 |
1930 | else | |
1931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1932 | /* end confdefs.h. */ | |
1933 | $4 | |
1934 | #include <$2> | |
1935 | _ACEOF | |
1936 | if ac_fn_c_try_compile "$LINENO"; then : | |
1937 | eval "$3=yes" | |
1938 | else | |
1939 | eval "$3=no" | |
1940 | fi | |
1941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1942 | fi | |
1943 | eval ac_res=\$$3 | |
1944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1945 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1946 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1947 | |
1948 | } # ac_fn_c_check_header_compile | |
1949 | ||
c774eab1 AM |
1950 | # ac_fn_c_try_link LINENO |
1951 | # ----------------------- | |
1952 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1953 | ac_fn_c_try_link () | |
1954 | { | |
1955 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1956 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1957 | if { { ac_try="$ac_link" | |
1958 | case "(($ac_try" in | |
1959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1960 | *) ac_try_echo=$ac_try;; | |
1961 | esac | |
1962 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1963 | $as_echo "$ac_try_echo"; } >&5 | |
1964 | (eval "$ac_link") 2>conftest.err | |
1965 | ac_status=$? | |
1966 | if test -s conftest.err; then | |
1967 | grep -v '^ *+' conftest.err >conftest.er1 | |
1968 | cat conftest.er1 >&5 | |
1969 | mv -f conftest.er1 conftest.err | |
1970 | fi | |
1971 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1972 | test $ac_status = 0; } && { | |
1973 | test -z "$ac_c_werror_flag" || | |
1974 | test ! -s conftest.err | |
1975 | } && test -s conftest$ac_exeext && { | |
1976 | test "$cross_compiling" = yes || | |
1977 | test -x conftest$ac_exeext | |
1978 | }; then : | |
1979 | ac_retval=0 | |
1980 | else | |
1981 | $as_echo "$as_me: failed program was:" >&5 | |
1982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1983 | ||
1984 | ac_retval=1 | |
1985 | fi | |
1986 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1987 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1988 | # interfere with the next link command; also delete a directory that is | |
1989 | # left behind by Apple's compiler. We do this before executing the actions. | |
1990 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1991 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1992 | as_fn_set_status $ac_retval | |
1993 | ||
1994 | } # ac_fn_c_try_link | |
1995 | ||
81ecdfbb RW |
1996 | # ac_fn_c_check_func LINENO FUNC VAR |
1997 | # ---------------------------------- | |
1998 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1999 | ac_fn_c_check_func () | |
2000 | { | |
2001 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2003 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 2004 | if eval \${$3+:} false; then : |
81ecdfbb RW |
2005 | $as_echo_n "(cached) " >&6 |
2006 | else | |
2007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2008 | /* end confdefs.h. */ | |
2009 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2010 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2011 | #define $2 innocuous_$2 | |
2012 | ||
2013 | /* System header to define __stub macros and hopefully few prototypes, | |
2014 | which can conflict with char $2 (); below. | |
2015 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2016 | <limits.h> exists even on freestanding compilers. */ | |
2017 | ||
2018 | #ifdef __STDC__ | |
2019 | # include <limits.h> | |
2020 | #else | |
2021 | # include <assert.h> | |
2022 | #endif | |
2023 | ||
2024 | #undef $2 | |
2025 | ||
2026 | /* Override any GCC internal prototype to avoid an error. | |
2027 | Use char because int might match the return type of a GCC | |
2028 | builtin and then its argument prototype would still apply. */ | |
2029 | #ifdef __cplusplus | |
2030 | extern "C" | |
2031 | #endif | |
2032 | char $2 (); | |
2033 | /* The GNU C library defines this for functions which it implements | |
2034 | to always fail with ENOSYS. Some functions are actually named | |
2035 | something starting with __ and the normal name is an alias. */ | |
2036 | #if defined __stub_$2 || defined __stub___$2 | |
2037 | choke me | |
2038 | #endif | |
2039 | ||
2040 | int | |
2041 | main () | |
2042 | { | |
2043 | return $2 (); | |
2044 | ; | |
2045 | return 0; | |
2046 | } | |
2047 | _ACEOF | |
2048 | if ac_fn_c_try_link "$LINENO"; then : | |
2049 | eval "$3=yes" | |
2050 | else | |
2051 | eval "$3=no" | |
2052 | fi | |
2053 | rm -f core conftest.err conftest.$ac_objext \ | |
2054 | conftest$ac_exeext conftest.$ac_ext | |
2055 | fi | |
2056 | eval ac_res=\$$3 | |
2057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2058 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 2059 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
2060 | |
2061 | } # ac_fn_c_check_func | |
2062 | ||
3cb62297 L |
2063 | # ac_fn_cxx_try_cpp LINENO |
2064 | # ------------------------ | |
2065 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
2066 | ac_fn_cxx_try_cpp () | |
2067 | { | |
2068 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2069 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2070 | case "(($ac_try" in | |
2071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2072 | *) ac_try_echo=$ac_try;; | |
2073 | esac | |
2074 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2075 | $as_echo "$ac_try_echo"; } >&5 | |
2076 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2077 | ac_status=$? | |
2078 | if test -s conftest.err; then | |
2079 | grep -v '^ *+' conftest.err >conftest.er1 | |
2080 | cat conftest.er1 >&5 | |
2081 | mv -f conftest.er1 conftest.err | |
2082 | fi | |
2083 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d0ac1c44 | 2084 | test $ac_status = 0; } > conftest.i && { |
3cb62297 L |
2085 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
2086 | test ! -s conftest.err | |
2087 | }; then : | |
2088 | ac_retval=0 | |
2089 | else | |
2090 | $as_echo "$as_me: failed program was:" >&5 | |
2091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2092 | ||
2093 | ac_retval=1 | |
2094 | fi | |
d0ac1c44 SM |
2095 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2096 | as_fn_set_status $ac_retval | |
3cb62297 L |
2097 | |
2098 | } # ac_fn_cxx_try_cpp | |
2099 | ||
2100 | # ac_fn_cxx_try_link LINENO | |
2101 | # ------------------------- | |
2102 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2103 | ac_fn_cxx_try_link () | |
2104 | { | |
2105 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2106 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2107 | if { { ac_try="$ac_link" | |
2108 | case "(($ac_try" in | |
2109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2110 | *) ac_try_echo=$ac_try;; | |
2111 | esac | |
2112 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2113 | $as_echo "$ac_try_echo"; } >&5 | |
2114 | (eval "$ac_link") 2>conftest.err | |
2115 | ac_status=$? | |
2116 | if test -s conftest.err; then | |
2117 | grep -v '^ *+' conftest.err >conftest.er1 | |
2118 | cat conftest.er1 >&5 | |
2119 | mv -f conftest.er1 conftest.err | |
2120 | fi | |
2121 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2122 | test $ac_status = 0; } && { | |
2123 | test -z "$ac_cxx_werror_flag" || | |
2124 | test ! -s conftest.err | |
2125 | } && test -s conftest$ac_exeext && { | |
2126 | test "$cross_compiling" = yes || | |
d0ac1c44 | 2127 | test -x conftest$ac_exeext |
3cb62297 L |
2128 | }; then : |
2129 | ac_retval=0 | |
2130 | else | |
2131 | $as_echo "$as_me: failed program was:" >&5 | |
2132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2133 | ||
2134 | ac_retval=1 | |
2135 | fi | |
2136 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2137 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2138 | # interfere with the next link command; also delete a directory that is | |
2139 | # left behind by Apple's compiler. We do this before executing the actions. | |
2140 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
2141 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2142 | as_fn_set_status $ac_retval | |
3cb62297 L |
2143 | |
2144 | } # ac_fn_cxx_try_link | |
2145 | ||
81ecdfbb RW |
2146 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2147 | # -------------------------------------------- | |
2148 | # Tries to find the compile-time value of EXPR in a program that includes | |
2149 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2150 | # computed | |
2151 | ac_fn_c_compute_int () | |
2152 | { | |
2153 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2154 | if test "$cross_compiling" = yes; then | |
2155 | # Depending upon the size, compute the lo and hi bounds. | |
2156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2157 | /* end confdefs.h. */ | |
2158 | $4 | |
2159 | int | |
2160 | main () | |
2161 | { | |
2162 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
d0ac1c44 SM |
2163 | test_array [0] = 0; |
2164 | return test_array [0]; | |
81ecdfbb RW |
2165 | |
2166 | ; | |
2167 | return 0; | |
2168 | } | |
2169 | _ACEOF | |
2170 | if ac_fn_c_try_compile "$LINENO"; then : | |
2171 | ac_lo=0 ac_mid=0 | |
2172 | while :; do | |
2173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2174 | /* end confdefs.h. */ | |
2175 | $4 | |
2176 | int | |
2177 | main () | |
2178 | { | |
2179 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
d0ac1c44 SM |
2180 | test_array [0] = 0; |
2181 | return test_array [0]; | |
81ecdfbb RW |
2182 | |
2183 | ; | |
2184 | return 0; | |
2185 | } | |
2186 | _ACEOF | |
2187 | if ac_fn_c_try_compile "$LINENO"; then : | |
2188 | ac_hi=$ac_mid; break | |
2189 | else | |
2190 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2191 | if test $ac_lo -le $ac_mid; then | |
2192 | ac_lo= ac_hi= | |
2193 | break | |
2194 | fi | |
2195 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2196 | fi | |
2197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2198 | done | |
2199 | else | |
2200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2201 | /* end confdefs.h. */ | |
2202 | $4 | |
2203 | int | |
2204 | main () | |
2205 | { | |
2206 | static int test_array [1 - 2 * !(($2) < 0)]; | |
d0ac1c44 SM |
2207 | test_array [0] = 0; |
2208 | return test_array [0]; | |
81ecdfbb RW |
2209 | |
2210 | ; | |
2211 | return 0; | |
2212 | } | |
2213 | _ACEOF | |
2214 | if ac_fn_c_try_compile "$LINENO"; then : | |
2215 | ac_hi=-1 ac_mid=-1 | |
2216 | while :; do | |
2217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2218 | /* end confdefs.h. */ | |
2219 | $4 | |
2220 | int | |
2221 | main () | |
2222 | { | |
2223 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
d0ac1c44 SM |
2224 | test_array [0] = 0; |
2225 | return test_array [0]; | |
81ecdfbb RW |
2226 | |
2227 | ; | |
2228 | return 0; | |
2229 | } | |
2230 | _ACEOF | |
2231 | if ac_fn_c_try_compile "$LINENO"; then : | |
2232 | ac_lo=$ac_mid; break | |
2233 | else | |
2234 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2235 | if test $ac_mid -le $ac_hi; then | |
2236 | ac_lo= ac_hi= | |
2237 | break | |
2238 | fi | |
2239 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2240 | fi | |
2241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2242 | done | |
2243 | else | |
2244 | ac_lo= ac_hi= | |
2245 | fi | |
2246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2247 | fi | |
2248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2249 | # Binary search between lo and hi bounds. | |
2250 | while test "x$ac_lo" != "x$ac_hi"; do | |
2251 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2253 | /* end confdefs.h. */ | |
2254 | $4 | |
2255 | int | |
2256 | main () | |
2257 | { | |
2258 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
d0ac1c44 SM |
2259 | test_array [0] = 0; |
2260 | return test_array [0]; | |
81ecdfbb RW |
2261 | |
2262 | ; | |
2263 | return 0; | |
2264 | } | |
2265 | _ACEOF | |
2266 | if ac_fn_c_try_compile "$LINENO"; then : | |
2267 | ac_hi=$ac_mid | |
2268 | else | |
2269 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2270 | fi | |
2271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2272 | done | |
2273 | case $ac_lo in #(( | |
2274 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2275 | '') ac_retval=1 ;; | |
2276 | esac | |
2277 | else | |
2278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2279 | /* end confdefs.h. */ | |
2280 | $4 | |
2281 | static long int longval () { return $2; } | |
2282 | static unsigned long int ulongval () { return $2; } | |
2283 | #include <stdio.h> | |
2284 | #include <stdlib.h> | |
2285 | int | |
2286 | main () | |
2287 | { | |
2288 | ||
2289 | FILE *f = fopen ("conftest.val", "w"); | |
2290 | if (! f) | |
2291 | return 1; | |
2292 | if (($2) < 0) | |
2293 | { | |
2294 | long int i = longval (); | |
2295 | if (i != ($2)) | |
2296 | return 1; | |
2297 | fprintf (f, "%ld", i); | |
2298 | } | |
2299 | else | |
2300 | { | |
2301 | unsigned long int i = ulongval (); | |
2302 | if (i != ($2)) | |
2303 | return 1; | |
2304 | fprintf (f, "%lu", i); | |
2305 | } | |
2306 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2307 | on some platforms. */ | |
2308 | return ferror (f) || fclose (f) != 0; | |
2309 | ||
2310 | ; | |
2311 | return 0; | |
2312 | } | |
2313 | _ACEOF | |
2314 | if ac_fn_c_try_run "$LINENO"; then : | |
2315 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2316 | else | |
2317 | ac_retval=1 | |
2318 | fi | |
2319 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2320 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2321 | rm -f conftest.val | |
2322 | ||
2323 | fi | |
d0ac1c44 SM |
2324 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2325 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
2326 | |
2327 | } # ac_fn_c_compute_int | |
1d5269c9 MF |
2328 | |
2329 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
2330 | # --------------------------------------------- | |
2331 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2332 | # accordingly. | |
2333 | ac_fn_c_check_decl () | |
2334 | { | |
2335 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2336 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2337 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2339 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2340 | if eval \${$3+:} false; then : | |
2341 | $as_echo_n "(cached) " >&6 | |
2342 | else | |
2343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2344 | /* end confdefs.h. */ | |
2345 | $4 | |
2346 | int | |
2347 | main () | |
2348 | { | |
2349 | #ifndef $as_decl_name | |
2350 | #ifdef __cplusplus | |
2351 | (void) $as_decl_use; | |
2352 | #else | |
2353 | (void) $as_decl_name; | |
2354 | #endif | |
2355 | #endif | |
2356 | ||
2357 | ; | |
2358 | return 0; | |
2359 | } | |
2360 | _ACEOF | |
2361 | if ac_fn_c_try_compile "$LINENO"; then : | |
2362 | eval "$3=yes" | |
2363 | else | |
2364 | eval "$3=no" | |
2365 | fi | |
2366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2367 | fi | |
2368 | eval ac_res=\$$3 | |
2369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2370 | $as_echo "$ac_res" >&6; } | |
2371 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2372 | ||
2373 | } # ac_fn_c_check_decl | |
81ecdfbb RW |
2374 | cat >config.log <<_ACEOF |
2375 | This file contains any messages produced by compilers while | |
2376 | running configure, to aid debugging if configure makes a mistake. | |
2377 | ||
b5c37946 | 2378 | It was created by ld $as_me 2.41.50, which was |
d0ac1c44 | 2379 | generated by GNU Autoconf 2.69. Invocation command line was |
81ecdfbb RW |
2380 | |
2381 | $ $0 $@ | |
2382 | ||
2383 | _ACEOF | |
2384 | exec 5>>config.log | |
2385 | { | |
2386 | cat <<_ASUNAME | |
2387 | ## --------- ## | |
2388 | ## Platform. ## | |
2389 | ## --------- ## | |
2390 | ||
2391 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2392 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2393 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2394 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2395 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2396 | ||
2397 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2398 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2399 | ||
2400 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2401 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2402 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2403 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
42ecbf5e DJ |
2404 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2405 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2406 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2407 | ||
2408 | _ASUNAME | |
2409 | ||
2410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2411 | for as_dir in $PATH | |
2412 | do | |
2413 | IFS=$as_save_IFS | |
2414 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2415 | $as_echo "PATH: $as_dir" |
2416 | done | |
2417 | IFS=$as_save_IFS | |
252b5132 | 2418 | |
42ecbf5e | 2419 | } >&5 |
5d64ca4e | 2420 | |
42ecbf5e | 2421 | cat >&5 <<_ACEOF |
5d64ca4e | 2422 | |
5d64ca4e | 2423 | |
42ecbf5e DJ |
2424 | ## ----------- ## |
2425 | ## Core tests. ## | |
2426 | ## ----------- ## | |
5d64ca4e | 2427 | |
42ecbf5e | 2428 | _ACEOF |
2469cfa2 | 2429 | |
42ecbf5e DJ |
2430 | |
2431 | # Keep a trace of the command line. | |
2432 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2433 | # Strip out --silent because we don't want to record it for future runs. | |
2434 | # Also quote any args containing shell meta-characters. | |
2435 | # Make two passes to allow for proper duplicate-argument suppression. | |
2436 | ac_configure_args= | |
2437 | ac_configure_args0= | |
2438 | ac_configure_args1= | |
42ecbf5e DJ |
2439 | ac_must_keep_next=false |
2440 | for ac_pass in 1 2 | |
2441 | do | |
2442 | for ac_arg | |
2443 | do | |
2444 | case $ac_arg in | |
2445 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2446 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2447 | | -silent | --silent | --silen | --sile | --sil) | |
2448 | continue ;; | |
81ecdfbb RW |
2449 | *\'*) |
2450 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
42ecbf5e DJ |
2451 | esac |
2452 | case $ac_pass in | |
81ecdfbb | 2453 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
42ecbf5e | 2454 | 2) |
81ecdfbb | 2455 | as_fn_append ac_configure_args1 " '$ac_arg'" |
42ecbf5e DJ |
2456 | if test $ac_must_keep_next = true; then |
2457 | ac_must_keep_next=false # Got value, back to normal. | |
2458 | else | |
2459 | case $ac_arg in | |
2460 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2461 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2462 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2463 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2464 | case "$ac_configure_args0 " in | |
2465 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2466 | esac | |
2467 | ;; | |
2468 | -* ) ac_must_keep_next=true ;; | |
2469 | esac | |
2470 | fi | |
81ecdfbb | 2471 | as_fn_append ac_configure_args " '$ac_arg'" |
42ecbf5e DJ |
2472 | ;; |
2473 | esac | |
2474 | done | |
2475 | done | |
81ecdfbb RW |
2476 | { ac_configure_args0=; unset ac_configure_args0;} |
2477 | { ac_configure_args1=; unset ac_configure_args1;} | |
42ecbf5e DJ |
2478 | |
2479 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2480 | # config.log. We remove comments because anyway the quotes in there | |
2481 | # would cause problems or look ugly. | |
81ecdfbb RW |
2482 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2483 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
42ecbf5e DJ |
2484 | trap 'exit_status=$? |
2485 | # Save into config.log some information that might help in debugging. | |
2486 | { | |
2487 | echo | |
2488 | ||
d0ac1c44 | 2489 | $as_echo "## ---------------- ## |
42ecbf5e | 2490 | ## Cache variables. ## |
d0ac1c44 | 2491 | ## ---------------- ##" |
42ecbf5e DJ |
2492 | echo |
2493 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2494 | ( |
2495 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2496 | eval ac_val=\$$ac_var | |
2497 | case $ac_val in #( | |
2498 | *${as_nl}*) | |
2499 | case $ac_var in #( | |
2500 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2501 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2502 | esac | |
2503 | case $ac_var in #( | |
2504 | _ | IFS | as_nl) ;; #( | |
2505 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2506 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2507 | esac ;; | |
2508 | esac | |
2509 | done | |
42ecbf5e | 2510 | (set) 2>&1 | |
81ecdfbb RW |
2511 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2512 | *${as_nl}ac_space=\ *) | |
42ecbf5e | 2513 | sed -n \ |
81ecdfbb RW |
2514 | "s/'\''/'\''\\\\'\'''\''/g; |
2515 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2516 | ;; #( | |
42ecbf5e | 2517 | *) |
81ecdfbb | 2518 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
42ecbf5e | 2519 | ;; |
81ecdfbb RW |
2520 | esac | |
2521 | sort | |
2522 | ) | |
42ecbf5e DJ |
2523 | echo |
2524 | ||
d0ac1c44 | 2525 | $as_echo "## ----------------- ## |
42ecbf5e | 2526 | ## Output variables. ## |
d0ac1c44 | 2527 | ## ----------------- ##" |
42ecbf5e DJ |
2528 | echo |
2529 | for ac_var in $ac_subst_vars | |
2530 | do | |
81ecdfbb RW |
2531 | eval ac_val=\$$ac_var |
2532 | case $ac_val in | |
2533 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2534 | esac | |
2535 | $as_echo "$ac_var='\''$ac_val'\''" | |
42ecbf5e DJ |
2536 | done | sort |
2537 | echo | |
2538 | ||
2539 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2540 | $as_echo "## ------------------- ## |
81ecdfbb | 2541 | ## File substitutions. ## |
d0ac1c44 | 2542 | ## ------------------- ##" |
42ecbf5e DJ |
2543 | echo |
2544 | for ac_var in $ac_subst_files | |
2545 | do | |
81ecdfbb RW |
2546 | eval ac_val=\$$ac_var |
2547 | case $ac_val in | |
2548 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2549 | esac | |
2550 | $as_echo "$ac_var='\''$ac_val'\''" | |
42ecbf5e DJ |
2551 | done | sort |
2552 | echo | |
2553 | fi | |
2554 | ||
2555 | if test -s confdefs.h; then | |
d0ac1c44 | 2556 | $as_echo "## ----------- ## |
42ecbf5e | 2557 | ## confdefs.h. ## |
d0ac1c44 | 2558 | ## ----------- ##" |
42ecbf5e | 2559 | echo |
81ecdfbb | 2560 | cat confdefs.h |
42ecbf5e DJ |
2561 | echo |
2562 | fi | |
2563 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2564 | $as_echo "$as_me: caught signal $ac_signal" |
2565 | $as_echo "$as_me: exit $exit_status" | |
42ecbf5e | 2566 | } >&5 |
81ecdfbb RW |
2567 | rm -f core *.core core.conftest.* && |
2568 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
42ecbf5e | 2569 | exit $exit_status |
81ecdfbb | 2570 | ' 0 |
42ecbf5e | 2571 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2572 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
42ecbf5e DJ |
2573 | done |
2574 | ac_signal=0 | |
2575 | ||
2576 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2577 | rm -f -r conftest* confdefs.h |
2578 | ||
2579 | $as_echo "/* confdefs.h */" > confdefs.h | |
42ecbf5e DJ |
2580 | |
2581 | # Predefined preprocessor variables. | |
2582 | ||
2583 | cat >>confdefs.h <<_ACEOF | |
2584 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2585 | _ACEOF | |
2586 | ||
42ecbf5e DJ |
2587 | cat >>confdefs.h <<_ACEOF |
2588 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2589 | _ACEOF | |
2590 | ||
42ecbf5e DJ |
2591 | cat >>confdefs.h <<_ACEOF |
2592 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2593 | _ACEOF | |
2594 | ||
42ecbf5e DJ |
2595 | cat >>confdefs.h <<_ACEOF |
2596 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2597 | _ACEOF | |
2598 | ||
42ecbf5e DJ |
2599 | cat >>confdefs.h <<_ACEOF |
2600 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2601 | _ACEOF | |
2602 | ||
81ecdfbb RW |
2603 | cat >>confdefs.h <<_ACEOF |
2604 | #define PACKAGE_URL "$PACKAGE_URL" | |
2605 | _ACEOF | |
2606 | ||
42ecbf5e DJ |
2607 | |
2608 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2609 | # Prefer an explicitly selected file to automatically selected ones. |
2610 | ac_site_file1=NONE | |
2611 | ac_site_file2=NONE | |
2612 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2613 | # We do not want a PATH search for config.site. |
2614 | case $CONFIG_SITE in #(( | |
2615 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2616 | */*) ac_site_file1=$CONFIG_SITE;; | |
2617 | *) ac_site_file1=./$CONFIG_SITE;; | |
2618 | esac | |
81ecdfbb RW |
2619 | elif test "x$prefix" != xNONE; then |
2620 | ac_site_file1=$prefix/share/config.site | |
2621 | ac_site_file2=$prefix/etc/config.site | |
2622 | else | |
2623 | ac_site_file1=$ac_default_prefix/share/config.site | |
2624 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2625 | fi | |
2626 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2627 | do | |
2628 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2629 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2631 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
42ecbf5e | 2632 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2633 | . "$ac_site_file" \ |
2634 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2635 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2636 | as_fn_error $? "failed to load site script $ac_site_file | |
2637 | See \`config.log' for more details" "$LINENO" 5; } | |
42ecbf5e DJ |
2638 | fi |
2639 | done | |
2640 | ||
2641 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2642 | # Some versions of bash will fail to source /dev/null (special files |
2643 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2644 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2646 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
42ecbf5e | 2647 | case $cache_file in |
81ecdfbb RW |
2648 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2649 | *) . "./$cache_file";; | |
42ecbf5e DJ |
2650 | esac |
2651 | fi | |
2652 | else | |
81ecdfbb RW |
2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2654 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
42ecbf5e DJ |
2655 | >$cache_file |
2656 | fi | |
2657 | ||
d0ac1c44 SM |
2658 | as_fn_append ac_header_list " stdlib.h" |
2659 | as_fn_append ac_header_list " unistd.h" | |
2660 | as_fn_append ac_header_list " sys/param.h" | |
42ecbf5e DJ |
2661 | # Check that the precious variables saved in the cache have kept the same |
2662 | # value. | |
2663 | ac_cache_corrupted=false | |
81ecdfbb | 2664 | for ac_var in $ac_precious_vars; do |
42ecbf5e DJ |
2665 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2666 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2667 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2668 | eval ac_new_val=\$ac_env_${ac_var}_value | |
42ecbf5e DJ |
2669 | case $ac_old_set,$ac_new_set in |
2670 | set,) | |
81ecdfbb RW |
2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2672 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
42ecbf5e DJ |
2673 | ac_cache_corrupted=: ;; |
2674 | ,set) | |
81ecdfbb RW |
2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2676 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
42ecbf5e DJ |
2677 | ac_cache_corrupted=: ;; |
2678 | ,);; | |
2679 | *) | |
2680 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2681 | # differences in whitespace do not lead to failure. |
2682 | ac_old_val_w=`echo x $ac_old_val` | |
2683 | ac_new_val_w=`echo x $ac_new_val` | |
2684 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2686 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2687 | ac_cache_corrupted=: | |
2688 | else | |
2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2690 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2691 | eval $ac_var=\$ac_old_val | |
2692 | fi | |
2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2694 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2696 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
42ecbf5e DJ |
2697 | fi;; |
2698 | esac | |
2699 | # Pass precious variables to config.status. | |
2700 | if test "$ac_new_set" = set; then | |
2701 | case $ac_new_val in | |
81ecdfbb | 2702 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
42ecbf5e DJ |
2703 | *) ac_arg=$ac_var=$ac_new_val ;; |
2704 | esac | |
2705 | case " $ac_configure_args " in | |
2706 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2707 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
42ecbf5e DJ |
2708 | esac |
2709 | fi | |
2710 | done | |
2711 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2712 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2713 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2715 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2716 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
42ecbf5e | 2717 | fi |
81ecdfbb RW |
2718 | ## -------------------- ## |
2719 | ## Main body of script. ## | |
2720 | ## -------------------- ## | |
42ecbf5e DJ |
2721 | |
2722 | ac_ext=c | |
2723 | ac_cpp='$CPP $CPPFLAGS' | |
2724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2727 | ||
2728 | ||
2729 | ||
42ecbf5e | 2730 | |
da594c4a | 2731 | |
42ecbf5e DJ |
2732 | |
2733 | ||
2734 | ac_aux_dir= | |
81ecdfbb | 2735 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
d0ac1c44 SM |
2736 | if test -f "$ac_dir/install-sh"; then |
2737 | ac_aux_dir=$ac_dir | |
2738 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2739 | break | |
2740 | elif test -f "$ac_dir/install.sh"; then | |
2741 | ac_aux_dir=$ac_dir | |
2742 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2743 | break | |
2744 | elif test -f "$ac_dir/shtool"; then | |
2745 | ac_aux_dir=$ac_dir | |
2746 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2747 | break | |
2748 | fi | |
42ecbf5e DJ |
2749 | done |
2750 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2751 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
42ecbf5e | 2752 | fi |
81ecdfbb RW |
2753 | |
2754 | # These three variables are undocumented and unsupported, | |
2755 | # and are intended to be withdrawn in a future Autoconf release. | |
2756 | # They can cause serious problems if a builder's source tree is in a directory | |
2757 | # whose full name contains unusual characters. | |
2758 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2759 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2760 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2761 | ||
42ecbf5e DJ |
2762 | |
2763 | # Make sure we can run config.sub. | |
81ecdfbb | 2764 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d0ac1c44 | 2765 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2766 | |
2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2768 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2769 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2770 | $as_echo_n "(cached) " >&6 |
2771 | else | |
2772 | ac_build_alias=$build_alias | |
2773 | test "x$ac_build_alias" = x && | |
2774 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2775 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2776 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2777 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2778 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2779 | |
2780 | fi | |
2781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2782 | $as_echo "$ac_cv_build" >&6; } | |
2783 | case $ac_cv_build in | |
2784 | *-*-*) ;; | |
d0ac1c44 | 2785 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2786 | esac |
42ecbf5e | 2787 | build=$ac_cv_build |
81ecdfbb RW |
2788 | ac_save_IFS=$IFS; IFS='-' |
2789 | set x $ac_cv_build | |
2790 | shift | |
2791 | build_cpu=$1 | |
2792 | build_vendor=$2 | |
2793 | shift; shift | |
2794 | # Remember, the first character of IFS is used to create $*, | |
2795 | # except with old shells: | |
2796 | build_os=$* | |
2797 | IFS=$ac_save_IFS | |
2798 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2799 | |
2800 | ||
81ecdfbb RW |
2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2802 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2803 | if ${ac_cv_host+:} false; then : |
81ecdfbb RW |
2804 | $as_echo_n "(cached) " >&6 |
2805 | else | |
2806 | if test "x$host_alias" = x; then | |
2807 | ac_cv_host=$ac_cv_build | |
42ecbf5e | 2808 | else |
81ecdfbb | 2809 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
d0ac1c44 | 2810 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2811 | fi |
42ecbf5e DJ |
2812 | |
2813 | fi | |
81ecdfbb RW |
2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2815 | $as_echo "$ac_cv_host" >&6; } | |
2816 | case $ac_cv_host in | |
2817 | *-*-*) ;; | |
d0ac1c44 | 2818 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2819 | esac |
42ecbf5e | 2820 | host=$ac_cv_host |
81ecdfbb RW |
2821 | ac_save_IFS=$IFS; IFS='-' |
2822 | set x $ac_cv_host | |
2823 | shift | |
2824 | host_cpu=$1 | |
2825 | host_vendor=$2 | |
2826 | shift; shift | |
2827 | # Remember, the first character of IFS is used to create $*, | |
2828 | # except with old shells: | |
2829 | host_os=$* | |
2830 | IFS=$ac_save_IFS | |
2831 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2832 | |
2833 | ||
81ecdfbb RW |
2834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2835 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 2836 | if ${ac_cv_target+:} false; then : |
81ecdfbb | 2837 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 2838 | else |
81ecdfbb RW |
2839 | if test "x$target_alias" = x; then |
2840 | ac_cv_target=$ac_cv_host | |
2841 | else | |
2842 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
d0ac1c44 | 2843 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
81ecdfbb | 2844 | fi |
42ecbf5e DJ |
2845 | |
2846 | fi | |
81ecdfbb RW |
2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2848 | $as_echo "$ac_cv_target" >&6; } | |
2849 | case $ac_cv_target in | |
2850 | *-*-*) ;; | |
d0ac1c44 | 2851 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb | 2852 | esac |
42ecbf5e | 2853 | target=$ac_cv_target |
81ecdfbb RW |
2854 | ac_save_IFS=$IFS; IFS='-' |
2855 | set x $ac_cv_target | |
2856 | shift | |
2857 | target_cpu=$1 | |
2858 | target_vendor=$2 | |
2859 | shift; shift | |
2860 | # Remember, the first character of IFS is used to create $*, | |
2861 | # except with old shells: | |
2862 | target_os=$* | |
2863 | IFS=$ac_save_IFS | |
2864 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2865 | |
2866 | ||
2867 | # The aliases save the names the user supplied, while $host etc. | |
2868 | # will get canonicalized. | |
2869 | test -n "$target_alias" && | |
2870 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2871 | NONENONEs,x,x, && | |
2872 | program_prefix=${target_alias}- | |
02ecc8e9 | 2873 | |
d0ac1c44 | 2874 | |
5bbe6ec5 | 2875 | am__api_version='1.15' |
c774eab1 AM |
2876 | |
2877 | # Find a good install program. We prefer a C program (faster), | |
2878 | # so one script is as good as another. But avoid the broken or | |
2879 | # incompatible versions: | |
2880 | # SysV /etc/install, /usr/sbin/install | |
2881 | # SunOS /usr/etc/install | |
2882 | # IRIX /sbin/install | |
2883 | # AIX /bin/install | |
2884 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2885 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2886 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2887 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2888 | # OS/2's system install, which has a completely different semantic | |
2889 | # ./install, which can be erroneously created by make from ./install.sh. | |
2890 | # Reject install programs that cannot install multiple files. | |
2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2892 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2893 | if test -z "$INSTALL"; then | |
2894 | if ${ac_cv_path_install+:} false; then : | |
81ecdfbb | 2895 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 2896 | else |
c774eab1 | 2897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
42ecbf5e DJ |
2898 | for as_dir in $PATH |
2899 | do | |
2900 | IFS=$as_save_IFS | |
2901 | test -z "$as_dir" && as_dir=. | |
c774eab1 AM |
2902 | # Account for people who put trailing slashes in PATH elements. |
2903 | case $as_dir/ in #(( | |
2904 | ./ | .// | /[cC]/* | \ | |
2905 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2906 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2907 | /usr/ucb/* ) ;; | |
2908 | *) | |
2909 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2910 | # Don't use installbsd from OSF since it installs stuff as root | |
2911 | # by default. | |
2912 | for ac_prog in ginstall scoinst install; do | |
2913 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2914 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2915 | if test $ac_prog = install && | |
2916 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2917 | # AIX install. It has an incompatible calling convention. | |
2918 | : | |
2919 | elif test $ac_prog = install && | |
2920 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2921 | # program-specific install script used by HP pwplus--don't use. | |
2922 | : | |
2923 | else | |
2924 | rm -rf conftest.one conftest.two conftest.dir | |
2925 | echo one > conftest.one | |
2926 | echo two > conftest.two | |
2927 | mkdir conftest.dir | |
2928 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2929 | test -s conftest.one && test -s conftest.two && | |
2930 | test -s conftest.dir/conftest.one && | |
2931 | test -s conftest.dir/conftest.two | |
2932 | then | |
2933 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2934 | break 3 | |
2935 | fi | |
2936 | fi | |
2937 | fi | |
2938 | done | |
2939 | done | |
2940 | ;; | |
2941 | esac | |
2942 | ||
81ecdfbb RW |
2943 | done |
2944 | IFS=$as_save_IFS | |
42ecbf5e | 2945 | |
c774eab1 AM |
2946 | rm -rf conftest.one conftest.two conftest.dir |
2947 | ||
42ecbf5e | 2948 | fi |
c774eab1 AM |
2949 | if test "${ac_cv_path_install+set}" = set; then |
2950 | INSTALL=$ac_cv_path_install | |
2951 | else | |
2952 | # As a last resort, use the slow shell script. Don't cache a | |
2953 | # value for INSTALL within a source directory, because that will | |
2954 | # break other packages using the cache if that directory is | |
2955 | # removed, or if the value is a relative name. | |
2956 | INSTALL=$ac_install_sh | |
2957 | fi | |
42ecbf5e | 2958 | fi |
c774eab1 AM |
2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2960 | $as_echo "$INSTALL" >&6; } | |
42ecbf5e | 2961 | |
c774eab1 AM |
2962 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2963 | # It thinks the first close brace ends the variable substitution. | |
2964 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
252b5132 | 2965 | |
42ecbf5e | 2966 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2967 | |
2968 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2969 | ||
81ecdfbb RW |
2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2971 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
81ecdfbb RW |
2972 | # Reject unsafe characters in $srcdir or the absolute working directory |
2973 | # name. Accept space and tab only in the latter. | |
2974 | am_lf=' | |
2975 | ' | |
2976 | case `pwd` in | |
2977 | *[\\\"\#\$\&\'\`$am_lf]*) | |
d0ac1c44 | 2978 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
81ecdfbb RW |
2979 | esac |
2980 | case $srcdir in | |
2981 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
d0ac1c44 | 2982 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
81ecdfbb RW |
2983 | esac |
2984 | ||
d0ac1c44 | 2985 | # Do 'set' in a subshell so we don't clobber the current shell's |
252b5132 RH |
2986 | # arguments. Must try -L first in case configure is actually a |
2987 | # symlink; some systems play weird games with the mod time of symlinks | |
2988 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2989 | # directory). | |
2990 | if ( | |
d0ac1c44 SM |
2991 | am_has_slept=no |
2992 | for am_try in 1 2; do | |
2993 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2994 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2995 | if test "$*" = "X"; then | |
2996 | # -L didn't work. | |
2997 | set X `ls -t "$srcdir/configure" conftest.file` | |
2998 | fi | |
2999 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3000 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3001 | ||
3002 | # If neither matched, then we have a broken ls. This can happen | |
3003 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3004 | # broken ls alias from the environment. This has actually | |
3005 | # happened. Such a system could not be considered "sane". | |
3006 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3007 | alias in your environment" "$LINENO" 5 | |
3008 | fi | |
3009 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
3010 | break | |
3011 | fi | |
3012 | # Just in case. | |
3013 | sleep 1 | |
3014 | am_has_slept=yes | |
3015 | done | |
42ecbf5e | 3016 | test "$2" = conftest.file |
252b5132 RH |
3017 | ) |
3018 | then | |
3019 | # Ok. | |
3020 | : | |
3021 | else | |
d0ac1c44 | 3022 | as_fn_error $? "newly created file is older than distributed files! |
81ecdfbb | 3023 | Check your system clock" "$LINENO" 5 |
252b5132 | 3024 | fi |
81ecdfbb RW |
3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3026 | $as_echo "yes" >&6; } | |
d0ac1c44 SM |
3027 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
3028 | # generated files are strictly newer. | |
3029 | am_sleep_pid= | |
3030 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
3031 | ( sleep 1 ) & | |
3032 | am_sleep_pid=$! | |
3033 | fi | |
3034 | ||
3035 | rm -f conftest.file | |
3036 | ||
252b5132 | 3037 | test "$program_prefix" != NONE && |
81ecdfbb | 3038 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
252b5132 RH |
3039 | # Use a double $ so make ignores it. |
3040 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
3041 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3042 | # Double any \ or $. | |
42ecbf5e | 3043 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
3044 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3045 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
42ecbf5e | 3046 | |
c774eab1 AM |
3047 | # Expand $ac_aux_dir to an absolute path. |
3048 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
3049 | ||
81ecdfbb | 3050 | if test x"${MISSING+set}" != xset; then |
5bbe6ec5 NC |
3051 | case $am_aux_dir in |
3052 | *\ * | *\ *) | |
3053 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3054 | *) | |
3055 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3056 | esac | |
81ecdfbb | 3057 | fi |
42ecbf5e | 3058 | # Use eval to expand $SHELL |
d0ac1c44 SM |
3059 | if eval "$MISSING --is-lightweight"; then |
3060 | am_missing_run="$MISSING " | |
42ecbf5e DJ |
3061 | else |
3062 | am_missing_run= | |
d0ac1c44 SM |
3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
3064 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
81ecdfbb RW |
3065 | fi |
3066 | ||
d0ac1c44 | 3067 | if test x"${install_sh+set}" != xset; then |
81ecdfbb RW |
3068 | case $am_aux_dir in |
3069 | *\ * | *\ *) | |
3070 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3071 | *) | |
3072 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3073 | esac | |
3074 | fi | |
3075 | ||
d0ac1c44 SM |
3076 | # Installed binaries are usually stripped using 'strip' when the user |
3077 | # run "make install-strip". However 'strip' might not be the right | |
81ecdfbb | 3078 | # tool to use in cross-compilation environments, therefore Automake |
d0ac1c44 | 3079 | # will honor the 'STRIP' environment variable to overrule this program. |
81ecdfbb RW |
3080 | if test "$cross_compiling" != no; then |
3081 | if test -n "$ac_tool_prefix"; then | |
3082 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3083 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3085 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3086 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb RW |
3087 | $as_echo_n "(cached) " >&6 |
3088 | else | |
3089 | if test -n "$STRIP"; then | |
3090 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3091 | else | |
3092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3093 | for as_dir in $PATH | |
3094 | do | |
3095 | IFS=$as_save_IFS | |
3096 | test -z "$as_dir" && as_dir=. | |
3097 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 3098 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
3099 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3100 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3101 | break 2 | |
3102 | fi | |
3103 | done | |
3104 | done | |
3105 | IFS=$as_save_IFS | |
3106 | ||
3107 | fi | |
3108 | fi | |
3109 | STRIP=$ac_cv_prog_STRIP | |
3110 | if test -n "$STRIP"; then | |
3111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3112 | $as_echo "$STRIP" >&6; } | |
3113 | else | |
3114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3115 | $as_echo "no" >&6; } | |
3116 | fi | |
3117 | ||
3118 | ||
3119 | fi | |
3120 | if test -z "$ac_cv_prog_STRIP"; then | |
3121 | ac_ct_STRIP=$STRIP | |
3122 | # Extract the first word of "strip", so it can be a program name with args. | |
3123 | set dummy strip; ac_word=$2 | |
3124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3125 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3126 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
81ecdfbb RW |
3127 | $as_echo_n "(cached) " >&6 |
3128 | else | |
3129 | if test -n "$ac_ct_STRIP"; then | |
3130 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3131 | else | |
3132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3133 | for as_dir in $PATH | |
3134 | do | |
3135 | IFS=$as_save_IFS | |
3136 | test -z "$as_dir" && as_dir=. | |
3137 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 3138 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
3139 | ac_cv_prog_ac_ct_STRIP="strip" |
3140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3141 | break 2 | |
3142 | fi | |
3143 | done | |
3144 | done | |
3145 | IFS=$as_save_IFS | |
3146 | ||
3147 | fi | |
3148 | fi | |
3149 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3150 | if test -n "$ac_ct_STRIP"; then | |
3151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3152 | $as_echo "$ac_ct_STRIP" >&6; } | |
3153 | else | |
3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3155 | $as_echo "no" >&6; } | |
3156 | fi | |
3157 | ||
3158 | if test "x$ac_ct_STRIP" = x; then | |
3159 | STRIP=":" | |
3160 | else | |
3161 | case $cross_compiling:$ac_tool_warned in | |
3162 | yes:) | |
3163 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3164 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3165 | ac_tool_warned=yes ;; | |
3166 | esac | |
3167 | STRIP=$ac_ct_STRIP | |
3168 | fi | |
3169 | else | |
3170 | STRIP="$ac_cv_prog_STRIP" | |
3171 | fi | |
3172 | ||
3173 | fi | |
3174 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3175 | ||
3176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3177 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3178 | if test -z "$MKDIR_P"; then | |
d0ac1c44 | 3179 | if ${ac_cv_path_mkdir+:} false; then : |
81ecdfbb RW |
3180 | $as_echo_n "(cached) " >&6 |
3181 | else | |
3182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3183 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3184 | do | |
3185 | IFS=$as_save_IFS | |
3186 | test -z "$as_dir" && as_dir=. | |
3187 | for ac_prog in mkdir gmkdir; do | |
3188 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 3189 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
81ecdfbb RW |
3190 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3191 | 'mkdir (GNU coreutils) '* | \ | |
3192 | 'mkdir (coreutils) '* | \ | |
3193 | 'mkdir (fileutils) '4.1*) | |
3194 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3195 | break 3;; | |
3196 | esac | |
3197 | done | |
3198 | done | |
42ecbf5e | 3199 | done |
81ecdfbb RW |
3200 | IFS=$as_save_IFS |
3201 | ||
3202 | fi | |
3203 | ||
d0ac1c44 | 3204 | test -d ./--version && rmdir ./--version |
81ecdfbb RW |
3205 | if test "${ac_cv_path_mkdir+set}" = set; then |
3206 | MKDIR_P="$ac_cv_path_mkdir -p" | |
42ecbf5e | 3207 | else |
81ecdfbb RW |
3208 | # As a last resort, use the slow shell script. Don't cache a |
3209 | # value for MKDIR_P within a source directory, because that will | |
3210 | # break other packages using the cache if that directory is | |
3211 | # removed, or if the value is a relative name. | |
81ecdfbb | 3212 | MKDIR_P="$ac_install_sh -d" |
42ecbf5e DJ |
3213 | fi |
3214 | fi | |
81ecdfbb RW |
3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3216 | $as_echo "$MKDIR_P" >&6; } | |
3217 | ||
42ecbf5e DJ |
3218 | for ac_prog in gawk mawk nawk awk |
3219 | do | |
3220 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3221 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3223 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3224 | if ${ac_cv_prog_AWK+:} false; then : |
81ecdfbb | 3225 | $as_echo_n "(cached) " >&6 |
42ecbf5e DJ |
3226 | else |
3227 | if test -n "$AWK"; then | |
3228 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3229 | else | |
3230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3231 | for as_dir in $PATH | |
3232 | do | |
3233 | IFS=$as_save_IFS | |
3234 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3235 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3236 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
42ecbf5e | 3237 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
3239 | break 2 |
3240 | fi | |
3241 | done | |
81ecdfbb RW |
3242 | done |
3243 | IFS=$as_save_IFS | |
42ecbf5e DJ |
3244 | |
3245 | fi | |
3246 | fi | |
3247 | AWK=$ac_cv_prog_AWK | |
3248 | if test -n "$AWK"; then | |
81ecdfbb RW |
3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3250 | $as_echo "$AWK" >&6; } | |
42ecbf5e | 3251 | else |
81ecdfbb RW |
3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3253 | $as_echo "no" >&6; } | |
42ecbf5e | 3254 | fi |
252b5132 | 3255 | |
81ecdfbb | 3256 | |
42ecbf5e DJ |
3257 | test -n "$AWK" && break |
3258 | done | |
252b5132 | 3259 | |
81ecdfbb RW |
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3261 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3262 | set x ${MAKE-make} | |
3263 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0ac1c44 | 3264 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
81ecdfbb | 3265 | $as_echo_n "(cached) " >&6 |
252b5132 | 3266 | else |
42ecbf5e | 3267 | cat >conftest.make <<\_ACEOF |
81ecdfbb | 3268 | SHELL = /bin/sh |
252b5132 | 3269 | all: |
81ecdfbb | 3270 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
42ecbf5e | 3271 | _ACEOF |
d0ac1c44 | 3272 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
81ecdfbb RW |
3273 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3274 | *@@@%%%=?*=@@@%%%*) | |
3275 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3276 | *) | |
3277 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3278 | esac | |
42ecbf5e | 3279 | rm -f conftest.make |
252b5132 | 3280 | fi |
81ecdfbb RW |
3281 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3283 | $as_echo "yes" >&6; } | |
252b5132 RH |
3284 | SET_MAKE= |
3285 | else | |
81ecdfbb RW |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3287 | $as_echo "no" >&6; } | |
252b5132 RH |
3288 | SET_MAKE="MAKE=${MAKE-make}" |
3289 | fi | |
3290 | ||
42ecbf5e DJ |
3291 | rm -rf .tst 2>/dev/null |
3292 | mkdir .tst 2>/dev/null | |
3293 | if test -d .tst; then | |
3294 | am__leading_dot=. | |
3295 | else | |
3296 | am__leading_dot=_ | |
3297 | fi | |
3298 | rmdir .tst 2>/dev/null | |
3299 | ||
d0ac1c44 SM |
3300 | # Check whether --enable-silent-rules was given. |
3301 | if test "${enable_silent_rules+set}" = set; then : | |
3302 | enableval=$enable_silent_rules; | |
3303 | fi | |
3304 | ||
3305 | case $enable_silent_rules in # ((( | |
3306 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3307 | no) AM_DEFAULT_VERBOSITY=1;; | |
3308 | *) AM_DEFAULT_VERBOSITY=1;; | |
3309 | esac | |
3310 | am_make=${MAKE-make} | |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3312 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3313 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3314 | $as_echo_n "(cached) " >&6 | |
3315 | else | |
3316 | if $as_echo 'TRUE=$(BAR$(V)) | |
3317 | BAR0=false | |
3318 | BAR1=true | |
3319 | V=1 | |
3320 | am__doit: | |
3321 | @$(TRUE) | |
3322 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3323 | am_cv_make_support_nested_variables=yes | |
3324 | else | |
3325 | am_cv_make_support_nested_variables=no | |
3326 | fi | |
3327 | fi | |
3328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3329 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3330 | if test $am_cv_make_support_nested_variables = yes; then | |
3331 | AM_V='$(V)' | |
3332 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3333 | else | |
3334 | AM_V=$AM_DEFAULT_VERBOSITY | |
3335 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3336 | fi | |
3337 | AM_BACKSLASH='\' | |
3338 | ||
81ecdfbb RW |
3339 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3340 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3341 | # is not polluted with repeated "-I." | |
3342 | am__isrc=' -I$(srcdir)' | |
3343 | # test to see if srcdir already configured | |
3344 | if test -f $srcdir/config.status; then | |
d0ac1c44 | 3345 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
81ecdfbb | 3346 | fi |
42ecbf5e | 3347 | fi |
252b5132 | 3348 | |
42ecbf5e DJ |
3349 | # test whether we have cygpath |
3350 | if test -z "$CYGPATH_W"; then | |
3351 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3352 | CYGPATH_W='cygpath -w' | |
3353 | else | |
3354 | CYGPATH_W=echo | |
3355 | fi | |
252b5132 | 3356 | fi |
42ecbf5e DJ |
3357 | |
3358 | ||
3359 | # Define the identity of the package. | |
2e98a7bd | 3360 | PACKAGE='ld' |
b5c37946 | 3361 | VERSION='2.41.50' |
42ecbf5e DJ |
3362 | |
3363 | ||
3364 | cat >>confdefs.h <<_ACEOF | |
e5a52504 | 3365 | #define PACKAGE "$PACKAGE" |
42ecbf5e DJ |
3366 | _ACEOF |
3367 | ||
252b5132 | 3368 | |
42ecbf5e | 3369 | cat >>confdefs.h <<_ACEOF |
e5a52504 | 3370 | #define VERSION "$VERSION" |
42ecbf5e DJ |
3371 | _ACEOF |
3372 | ||
3373 | # Some tools Automake needs. | |
3374 | ||
3375 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3376 | ||
3377 | ||
3378 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3379 | ||
3380 | ||
3381 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3382 | ||
3383 | ||
3384 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3385 | ||
e5a52504 | 3386 | |
42ecbf5e | 3387 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
e5a52504 | 3388 | |
d0ac1c44 SM |
3389 | # For better backward compatibility. To be removed once Automake 1.9.x |
3390 | # dies out for good. For more background, see: | |
5bbe6ec5 NC |
3391 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
3392 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
d0ac1c44 SM |
3393 | mkdir_p='$(MKDIR_P)' |
3394 | ||
3395 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3396 | # system "awk" is bad on some platforms. | |
6eb7d830 AM |
3397 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3398 | # in the wild :-( We should find a proper way to deprecate it ... | |
3399 | AMTAR='$${TAR-tar}' | |
42ecbf5e | 3400 | |
d0ac1c44 | 3401 | |
c774eab1 AM |
3402 | # We'll loop over all known methods to create a tar archive until one works. |
3403 | _am_tools='gnutar pax cpio none' | |
3404 | ||
3405 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3406 | ||
3407 | ||
42ecbf5e | 3408 | |
2469cfa2 | 3409 | |
2469cfa2 | 3410 | |
e5a52504 | 3411 | |
d0ac1c44 SM |
3412 | # POSIX will say in a future version that running "rm -f" with no argument |
3413 | # is OK; and we want to be able to make that assumption in our Makefile | |
3414 | # recipes. So use an aggressive probe to check that the usage we want is | |
3415 | # actually supported "in the wild" to an acceptable degree. | |
3416 | # See automake bug#10828. | |
3417 | # To make any issue more visible, cause the running configure to be aborted | |
3418 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3419 | # user can still override this though. | |
3420 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3421 | cat >&2 <<'END' | |
3422 | Oops! | |
3423 | ||
3424 | Your 'rm' program seems unable to run without file operands specified | |
3425 | on the command line, even when the '-f' option is present. This is contrary | |
3426 | to the behaviour of most rm programs out there, and not conforming with | |
3427 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3428 | ||
3429 | Please tell bug-automake@gnu.org about your system, including the value | |
3430 | of your $PATH and any error possibly output before this message. This | |
3431 | can help us improve future automake versions. | |
3432 | ||
3433 | END | |
3434 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3435 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3436 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3437 | echo >&2 | |
3438 | else | |
3439 | cat >&2 <<'END' | |
3440 | Aborting the configuration process, to ensure you take notice of the issue. | |
3441 | ||
3442 | You can download and install GNU coreutils to get an 'rm' implementation | |
5bbe6ec5 | 3443 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
d0ac1c44 SM |
3444 | |
3445 | If you want to complete the configuration process using your problematic | |
3446 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3447 | to "yes", and re-run configure. | |
3448 | ||
3449 | END | |
3450 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3451 | fi | |
3452 | fi | |
3453 | ||
48b5f33a MF |
3454 | # Check whether --enable-silent-rules was given. |
3455 | if test "${enable_silent_rules+set}" = set; then : | |
3456 | enableval=$enable_silent_rules; | |
3457 | fi | |
3458 | ||
3459 | case $enable_silent_rules in # ((( | |
3460 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3461 | no) AM_DEFAULT_VERBOSITY=1;; | |
3462 | *) AM_DEFAULT_VERBOSITY=0;; | |
3463 | esac | |
3464 | am_make=${MAKE-make} | |
3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3466 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3467 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3468 | $as_echo_n "(cached) " >&6 | |
3469 | else | |
3470 | if $as_echo 'TRUE=$(BAR$(V)) | |
3471 | BAR0=false | |
3472 | BAR1=true | |
3473 | V=1 | |
3474 | am__doit: | |
3475 | @$(TRUE) | |
3476 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3477 | am_cv_make_support_nested_variables=yes | |
3478 | else | |
3479 | am_cv_make_support_nested_variables=no | |
3480 | fi | |
3481 | fi | |
3482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3483 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3484 | if test $am_cv_make_support_nested_variables = yes; then | |
3485 | AM_V='$(V)' | |
3486 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3487 | else | |
3488 | AM_V=$AM_DEFAULT_VERBOSITY | |
3489 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3490 | fi | |
3491 | AM_BACKSLASH='\' | |
3492 | ||
42ecbf5e | 3493 | |
64ac50ac RW |
3494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3495 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3496 | # Check whether --enable-maintainer-mode was given. | |
3497 | if test "${enable_maintainer_mode+set}" = set; then : | |
3498 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3499 | else | |
3500 | USE_MAINTAINER_MODE=no | |
3501 | fi | |
3502 | ||
3503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
3504 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3505 | if test $USE_MAINTAINER_MODE = yes; then | |
3506 | MAINTAINER_MODE_TRUE= | |
3507 | MAINTAINER_MODE_FALSE='#' | |
3508 | else | |
3509 | MAINTAINER_MODE_TRUE='#' | |
3510 | MAINTAINER_MODE_FALSE= | |
3511 | fi | |
3512 | ||
3513 | MAINT=$MAINTAINER_MODE_TRUE | |
3514 | ||
3515 | ||
3516 | ||
b879806f AM |
3517 | ac_ext=c |
3518 | ac_cpp='$CPP $CPPFLAGS' | |
3519 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3520 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3521 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3522 | if test -n "$ac_tool_prefix"; then | |
3523 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3524 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3526 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3527 | if ${ac_cv_prog_CC+:} false; then : |
b879806f AM |
3528 | $as_echo_n "(cached) " >&6 |
3529 | else | |
3530 | if test -n "$CC"; then | |
3531 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3532 | else | |
3533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3534 | for as_dir in $PATH | |
3535 | do | |
3536 | IFS=$as_save_IFS | |
3537 | test -z "$as_dir" && as_dir=. | |
3538 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 3539 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b879806f AM |
3540 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3541 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3542 | break 2 | |
3543 | fi | |
3544 | done | |
3545 | done | |
3546 | IFS=$as_save_IFS | |
d7040cdb | 3547 | |
81ecdfbb | 3548 | fi |
81ecdfbb | 3549 | fi |
b879806f AM |
3550 | CC=$ac_cv_prog_CC |
3551 | if test -n "$CC"; then | |
3552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3553 | $as_echo "$CC" >&6; } | |
2469cfa2 | 3554 | else |
b879806f AM |
3555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3556 | $as_echo "no" >&6; } | |
81ecdfbb | 3557 | fi |
d7040cdb SE |
3558 | |
3559 | ||
b879806f AM |
3560 | fi |
3561 | if test -z "$ac_cv_prog_CC"; then | |
3562 | ac_ct_CC=$CC | |
3563 | # Extract the first word of "gcc", so it can be a program name with args. | |
3564 | set dummy gcc; ac_word=$2 | |
3565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3566 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3567 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
b879806f | 3568 | $as_echo_n "(cached) " >&6 |
e5a52504 | 3569 | else |
b879806f AM |
3570 | if test -n "$ac_ct_CC"; then |
3571 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3572 | else | |
3573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3574 | for as_dir in $PATH | |
3575 | do | |
3576 | IFS=$as_save_IFS | |
3577 | test -z "$as_dir" && as_dir=. | |
3578 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 3579 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b879806f AM |
3580 | ac_cv_prog_ac_ct_CC="gcc" |
3581 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3582 | break 2 | |
3583 | fi | |
3584 | done | |
3585 | done | |
3586 | IFS=$as_save_IFS | |
d7040cdb | 3587 | |
81ecdfbb | 3588 | fi |
b879806f AM |
3589 | fi |
3590 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3591 | if test -n "$ac_ct_CC"; then | |
3592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3593 | $as_echo "$ac_ct_CC" >&6; } | |
4fda8867 | 3594 | else |
b879806f AM |
3595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3596 | $as_echo "no" >&6; } | |
4fda8867 NC |
3597 | fi |
3598 | ||
b879806f AM |
3599 | if test "x$ac_ct_CC" = x; then |
3600 | CC="" | |
3601 | else | |
3602 | case $cross_compiling:$ac_tool_warned in | |
3603 | yes:) | |
3604 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3605 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3606 | ac_tool_warned=yes ;; | |
7fb9f789 | 3607 | esac |
b879806f AM |
3608 | CC=$ac_ct_CC |
3609 | fi | |
7fb9f789 | 3610 | else |
b879806f | 3611 | CC="$ac_cv_prog_CC" |
81ecdfbb RW |
3612 | fi |
3613 | ||
b879806f AM |
3614 | if test -z "$CC"; then |
3615 | if test -n "$ac_tool_prefix"; then | |
3616 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3617 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3619 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3620 | if ${ac_cv_prog_CC+:} false; then : |
397841b5 AM |
3621 | $as_echo_n "(cached) " >&6 |
3622 | else | |
b879806f AM |
3623 | if test -n "$CC"; then |
3624 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3625 | else | |
3626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3627 | for as_dir in $PATH | |
397841b5 | 3628 | do |
b879806f AM |
3629 | IFS=$as_save_IFS |
3630 | test -z "$as_dir" && as_dir=. | |
3631 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 3632 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b879806f AM |
3633 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3634 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3635 | break 2 | |
3636 | fi | |
3637 | done | |
3638 | done | |
3639 | IFS=$as_save_IFS | |
d7040cdb | 3640 | |
ce2cded5 | 3641 | fi |
ce2cded5 | 3642 | fi |
b879806f AM |
3643 | CC=$ac_cv_prog_CC |
3644 | if test -n "$CC"; then | |
3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3646 | $as_echo "$CC" >&6; } | |
3647 | else | |
3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3649 | $as_echo "no" >&6; } | |
81ecdfbb RW |
3650 | fi |
3651 | ||
d7040cdb | 3652 | |
b879806f | 3653 | fi |
ce2cded5 | 3654 | fi |
b879806f AM |
3655 | if test -z "$CC"; then |
3656 | # Extract the first word of "cc", so it can be a program name with args. | |
3657 | set dummy cc; ac_word=$2 | |
3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3659 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3660 | if ${ac_cv_prog_CC+:} false; then : |
b879806f | 3661 | $as_echo_n "(cached) " >&6 |
397841b5 | 3662 | else |
b879806f AM |
3663 | if test -n "$CC"; then |
3664 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3665 | else | |
3666 | ac_prog_rejected=no | |
3667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3668 | for as_dir in $PATH | |
397841b5 | 3669 | do |
b879806f AM |
3670 | IFS=$as_save_IFS |
3671 | test -z "$as_dir" && as_dir=. | |
3672 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 3673 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b879806f AM |
3674 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3675 | ac_prog_rejected=yes | |
3676 | continue | |
3677 | fi | |
3678 | ac_cv_prog_CC="cc" | |
3679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3680 | break 2 | |
3681 | fi | |
3682 | done | |
3683 | done | |
3684 | IFS=$as_save_IFS | |
d7040cdb | 3685 | |
b879806f AM |
3686 | if test $ac_prog_rejected = yes; then |
3687 | # We found a bogon in the path, so make sure we never use it. | |
3688 | set dummy $ac_cv_prog_CC | |
3689 | shift | |
3690 | if test $# != 0; then | |
3691 | # We chose a different compiler from the bogus one. | |
3692 | # However, it has the same basename, so the bogon will be chosen | |
3693 | # first if we set CC to just the basename; use the full file name. | |
3694 | shift | |
3695 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3696 | fi | |
397841b5 | 3697 | fi |
397841b5 | 3698 | fi |
b879806f AM |
3699 | fi |
3700 | CC=$ac_cv_prog_CC | |
3701 | if test -n "$CC"; then | |
3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3703 | $as_echo "$CC" >&6; } | |
397841b5 | 3704 | else |
b879806f AM |
3705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3706 | $as_echo "no" >&6; } | |
ce2cded5 | 3707 | fi |
d7040cdb | 3708 | |
397841b5 | 3709 | |
b879806f AM |
3710 | fi |
3711 | if test -z "$CC"; then | |
3712 | if test -n "$ac_tool_prefix"; then | |
3713 | for ac_prog in cl.exe | |
3714 | do | |
3715 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3716 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3718 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3719 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3720 | $as_echo_n "(cached) " >&6 |
d7040cdb | 3721 | else |
b879806f AM |
3722 | if test -n "$CC"; then |
3723 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3724 | else | |
3725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3726 | for as_dir in $PATH | |
d7040cdb SE |
3727 | do |
3728 | IFS=$as_save_IFS | |
3729 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3730 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3731 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b879806f AM |
3732 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3734 | break 2 | |
3735 | fi | |
3736 | done | |
397841b5 AM |
3737 | done |
3738 | IFS=$as_save_IFS | |
d7040cdb | 3739 | |
252b5132 | 3740 | fi |
b879806f AM |
3741 | fi |
3742 | CC=$ac_cv_prog_CC | |
3743 | if test -n "$CC"; then | |
3744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3745 | $as_echo "$CC" >&6; } | |
3746 | else | |
3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3748 | $as_echo "no" >&6; } | |
3749 | fi | |
397841b5 AM |
3750 | |
3751 | ||
b879806f AM |
3752 | test -n "$CC" && break |
3753 | done | |
3754 | fi | |
3755 | if test -z "$CC"; then | |
3756 | ac_ct_CC=$CC | |
3757 | for ac_prog in cl.exe | |
3758 | do | |
3759 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3760 | set dummy $ac_prog; ac_word=$2 | |
3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3762 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3763 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
397841b5 AM |
3764 | $as_echo_n "(cached) " >&6 |
3765 | else | |
b879806f AM |
3766 | if test -n "$ac_ct_CC"; then |
3767 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3768 | else | |
3769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3770 | for as_dir in $PATH | |
397841b5 AM |
3771 | do |
3772 | IFS=$as_save_IFS | |
3773 | test -z "$as_dir" && as_dir=. | |
397841b5 | 3774 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3775 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b879806f AM |
3776 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3778 | break 2 | |
3779 | fi | |
3780 | done | |
397841b5 AM |
3781 | done |
3782 | IFS=$as_save_IFS | |
397841b5 | 3783 | |
397841b5 | 3784 | fi |
397841b5 | 3785 | fi |
b879806f AM |
3786 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3787 | if test -n "$ac_ct_CC"; then | |
3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3789 | $as_echo "$ac_ct_CC" >&6; } | |
3790 | else | |
3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3792 | $as_echo "no" >&6; } | |
397841b5 AM |
3793 | fi |
3794 | ||
397841b5 | 3795 | |
b879806f AM |
3796 | test -n "$ac_ct_CC" && break |
3797 | done | |
397841b5 | 3798 | |
b879806f AM |
3799 | if test "x$ac_ct_CC" = x; then |
3800 | CC="" | |
3801 | else | |
3802 | case $cross_compiling:$ac_tool_warned in | |
3803 | yes:) | |
3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3805 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3806 | ac_tool_warned=yes ;; | |
397841b5 | 3807 | esac |
b879806f AM |
3808 | CC=$ac_ct_CC |
3809 | fi | |
397841b5 AM |
3810 | fi |
3811 | ||
397841b5 AM |
3812 | fi |
3813 | ||
3814 | ||
b879806f AM |
3815 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3816 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3817 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3818 | See \`config.log' for more details" "$LINENO" 5; } | |
397841b5 | 3819 | |
b879806f AM |
3820 | # Provide some information about the compiler. |
3821 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3822 | set X $ac_compile | |
3823 | ac_compiler=$2 | |
3824 | for ac_option in --version -v -V -qversion; do | |
3825 | { { ac_try="$ac_compiler $ac_option >&5" | |
3826 | case "(($ac_try" in | |
3827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3828 | *) ac_try_echo=$ac_try;; | |
3829 | esac | |
3830 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3831 | $as_echo "$ac_try_echo"; } >&5 | |
c774eab1 AM |
3832 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3833 | ac_status=$? | |
3834 | if test -s conftest.err; then | |
3835 | sed '10a\ | |
3836 | ... rest of stderr output deleted ... | |
3837 | 10q' conftest.err >conftest.er1 | |
3838 | cat conftest.er1 >&5 | |
3839 | fi | |
3840 | rm -f conftest.er1 conftest.err | |
3841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3842 | test $ac_status = 0; } | |
3843 | done | |
3844 | ||
3845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3846 | /* end confdefs.h. */ | |
3847 | ||
3848 | int | |
3849 | main () | |
3850 | { | |
3851 | ||
3852 | ; | |
3853 | return 0; | |
3854 | } | |
3855 | _ACEOF | |
3856 | ac_clean_files_save=$ac_clean_files | |
3857 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3858 | # Try to create an executable without -o first, disregard a.out. | |
3859 | # It will help us diagnose broken compilers, and finding out an intuition | |
3860 | # of exeext. | |
3861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3862 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3863 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3864 | ||
3865 | # The possible output files: | |
3866 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3867 | ||
3868 | ac_rmfiles= | |
3869 | for ac_file in $ac_files | |
3870 | do | |
3871 | case $ac_file in | |
3872 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3873 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3874 | esac | |
3875 | done | |
3876 | rm -f $ac_rmfiles | |
3877 | ||
3878 | if { { ac_try="$ac_link_default" | |
3879 | case "(($ac_try" in | |
3880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3881 | *) ac_try_echo=$ac_try;; | |
3882 | esac | |
3883 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3884 | $as_echo "$ac_try_echo"; } >&5 | |
3885 | (eval "$ac_link_default") 2>&5 | |
3886 | ac_status=$? | |
3887 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3888 | test $ac_status = 0; }; then : | |
3889 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3890 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3891 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3892 | # so that the user can short-circuit this test for compilers unknown to | |
3893 | # Autoconf. | |
3894 | for ac_file in $ac_files '' | |
3895 | do | |
3896 | test -f "$ac_file" || continue | |
3897 | case $ac_file in | |
3898 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3899 | ;; | |
3900 | [ab].out ) | |
3901 | # We found the default executable, but exeext='' is most | |
3902 | # certainly right. | |
3903 | break;; | |
3904 | *.* ) | |
3905 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3906 | then :; else | |
3907 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3908 | fi | |
3909 | # We set ac_cv_exeext here because the later test for it is not | |
3910 | # safe: cross compilers may not add the suffix if given an `-o' | |
3911 | # argument, so we may need to know it at that point already. | |
3912 | # Even if this section looks crufty: it has the advantage of | |
3913 | # actually working. | |
3914 | break;; | |
3915 | * ) | |
3916 | break;; | |
3917 | esac | |
3918 | done | |
3919 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3920 | ||
3921 | else | |
3922 | ac_file='' | |
3923 | fi | |
3924 | if test -z "$ac_file"; then : | |
3925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3926 | $as_echo "no" >&6; } | |
3927 | $as_echo "$as_me: failed program was:" >&5 | |
3928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3929 | ||
3930 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3931 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3932 | as_fn_error 77 "C compiler cannot create executables | |
3933 | See \`config.log' for more details" "$LINENO" 5; } | |
3934 | else | |
3935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3936 | $as_echo "yes" >&6; } | |
3937 | fi | |
3938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3939 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3941 | $as_echo "$ac_file" >&6; } | |
3942 | ac_exeext=$ac_cv_exeext | |
3943 | ||
3944 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3945 | ac_clean_files=$ac_clean_files_save | |
3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3947 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3948 | if { { ac_try="$ac_link" | |
3949 | case "(($ac_try" in | |
3950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3951 | *) ac_try_echo=$ac_try;; | |
3952 | esac | |
3953 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3954 | $as_echo "$ac_try_echo"; } >&5 | |
3955 | (eval "$ac_link") 2>&5 | |
3956 | ac_status=$? | |
3957 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3958 | test $ac_status = 0; }; then : | |
3959 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3960 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3961 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3962 | # `rm'. | |
3963 | for ac_file in conftest.exe conftest conftest.*; do | |
3964 | test -f "$ac_file" || continue | |
3965 | case $ac_file in | |
3966 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3967 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3968 | break;; | |
3969 | * ) break;; | |
3970 | esac | |
3971 | done | |
3972 | else | |
3973 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3974 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3975 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3976 | See \`config.log' for more details" "$LINENO" 5; } | |
3977 | fi | |
3978 | rm -f conftest conftest$ac_cv_exeext | |
3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3980 | $as_echo "$ac_cv_exeext" >&6; } | |
3981 | ||
3982 | rm -f conftest.$ac_ext | |
3983 | EXEEXT=$ac_cv_exeext | |
3984 | ac_exeext=$EXEEXT | |
3985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3986 | /* end confdefs.h. */ | |
3987 | #include <stdio.h> | |
3988 | int | |
3989 | main () | |
3990 | { | |
3991 | FILE *f = fopen ("conftest.out", "w"); | |
3992 | return ferror (f) || fclose (f) != 0; | |
3993 | ||
3994 | ; | |
3995 | return 0; | |
3996 | } | |
3997 | _ACEOF | |
3998 | ac_clean_files="$ac_clean_files conftest.out" | |
3999 | # Check that the compiler produces executables we can run. If not, either | |
4000 | # the compiler is broken, or we cross compile. | |
4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4002 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4003 | if test "$cross_compiling" != yes; then | |
4004 | { { ac_try="$ac_link" | |
4005 | case "(($ac_try" in | |
4006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4007 | *) ac_try_echo=$ac_try;; | |
4008 | esac | |
4009 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4010 | $as_echo "$ac_try_echo"; } >&5 | |
4011 | (eval "$ac_link") 2>&5 | |
4012 | ac_status=$? | |
4013 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4014 | test $ac_status = 0; } | |
4015 | if { ac_try='./conftest$ac_cv_exeext' | |
4016 | { { case "(($ac_try" in | |
4017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4018 | *) ac_try_echo=$ac_try;; | |
4019 | esac | |
4020 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4021 | $as_echo "$ac_try_echo"; } >&5 | |
4022 | (eval "$ac_try") 2>&5 | |
4023 | ac_status=$? | |
4024 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4025 | test $ac_status = 0; }; }; then | |
4026 | cross_compiling=no | |
4027 | else | |
4028 | if test "$cross_compiling" = maybe; then | |
4029 | cross_compiling=yes | |
4030 | else | |
4031 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4032 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4033 | as_fn_error $? "cannot run C compiled programs. | |
4034 | If you meant to cross compile, use \`--host'. | |
4035 | See \`config.log' for more details" "$LINENO" 5; } | |
4036 | fi | |
4037 | fi | |
4038 | fi | |
4039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4040 | $as_echo "$cross_compiling" >&6; } | |
4041 | ||
4042 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4043 | ac_clean_files=$ac_clean_files_save | |
4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
4045 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4046 | if ${ac_cv_objext+:} false; then : | |
4047 | $as_echo_n "(cached) " >&6 | |
4048 | else | |
4049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4050 | /* end confdefs.h. */ | |
4051 | ||
4052 | int | |
4053 | main () | |
4054 | { | |
4055 | ||
4056 | ; | |
4057 | return 0; | |
4058 | } | |
4059 | _ACEOF | |
4060 | rm -f conftest.o conftest.obj | |
4061 | if { { ac_try="$ac_compile" | |
4062 | case "(($ac_try" in | |
4063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4064 | *) ac_try_echo=$ac_try;; | |
4065 | esac | |
4066 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4067 | $as_echo "$ac_try_echo"; } >&5 | |
4068 | (eval "$ac_compile") 2>&5 | |
b879806f | 4069 | ac_status=$? |
b879806f | 4070 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
c774eab1 AM |
4071 | test $ac_status = 0; }; then : |
4072 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4073 | test -f "$ac_file" || continue; | |
4074 | case $ac_file in | |
4075 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4076 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4077 | break;; | |
4078 | esac | |
b879806f | 4079 | done |
c774eab1 AM |
4080 | else |
4081 | $as_echo "$as_me: failed program was:" >&5 | |
4082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
397841b5 | 4083 | |
c774eab1 AM |
4084 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4085 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4086 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
4087 | See \`config.log' for more details" "$LINENO" 5; } | |
4088 | fi | |
4089 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
4090 | fi | |
4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4092 | $as_echo "$ac_cv_objext" >&6; } | |
4093 | OBJEXT=$ac_cv_objext | |
4094 | ac_objext=$OBJEXT | |
b879806f AM |
4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4096 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 4097 | if ${ac_cv_c_compiler_gnu+:} false; then : |
44350750 NC |
4098 | $as_echo_n "(cached) " >&6 |
4099 | else | |
4100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4101 | /* end confdefs.h. */ | |
b879806f | 4102 | |
44350750 NC |
4103 | int |
4104 | main () | |
4105 | { | |
b879806f AM |
4106 | #ifndef __GNUC__ |
4107 | choke me | |
4108 | #endif | |
4109 | ||
4110 | ; | |
44350750 NC |
4111 | return 0; |
4112 | } | |
4113 | _ACEOF | |
b879806f AM |
4114 | if ac_fn_c_try_compile "$LINENO"; then : |
4115 | ac_compiler_gnu=yes | |
44350750 | 4116 | else |
b879806f | 4117 | ac_compiler_gnu=no |
44350750 | 4118 | fi |
b879806f AM |
4119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4120 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4121 | ||
44350750 | 4122 | fi |
b879806f AM |
4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4124 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4125 | if test $ac_compiler_gnu = yes; then | |
4126 | GCC=yes | |
4127 | else | |
4128 | GCC= | |
4129 | fi | |
4130 | ac_test_CFLAGS=${CFLAGS+set} | |
4131 | ac_save_CFLAGS=$CFLAGS | |
4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4133 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 4134 | if ${ac_cv_prog_cc_g+:} false; then : |
b879806f AM |
4135 | $as_echo_n "(cached) " >&6 |
4136 | else | |
4137 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4138 | ac_c_werror_flag=yes | |
4139 | ac_cv_prog_cc_g=no | |
4140 | CFLAGS="-g" | |
4141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4142 | /* end confdefs.h. */ | |
44350750 | 4143 | |
b879806f AM |
4144 | int |
4145 | main () | |
4146 | { | |
44350750 | 4147 | |
b879806f AM |
4148 | ; |
4149 | return 0; | |
4150 | } | |
4151 | _ACEOF | |
4152 | if ac_fn_c_try_compile "$LINENO"; then : | |
4153 | ac_cv_prog_cc_g=yes | |
4154 | else | |
4155 | CFLAGS="" | |
4156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4157 | /* end confdefs.h. */ | |
4158 | ||
4159 | int | |
4160 | main () | |
4161 | { | |
44350750 | 4162 | |
b879806f AM |
4163 | ; |
4164 | return 0; | |
4165 | } | |
4166 | _ACEOF | |
4167 | if ac_fn_c_try_compile "$LINENO"; then : | |
44350750 | 4168 | |
b879806f AM |
4169 | else |
4170 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4171 | CFLAGS="-g" | |
4172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4173 | /* end confdefs.h. */ | |
397841b5 | 4174 | |
b879806f AM |
4175 | int |
4176 | main () | |
4177 | { | |
397841b5 | 4178 | |
b879806f AM |
4179 | ; |
4180 | return 0; | |
4181 | } | |
4182 | _ACEOF | |
4183 | if ac_fn_c_try_compile "$LINENO"; then : | |
4184 | ac_cv_prog_cc_g=yes | |
4185 | fi | |
4186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4187 | fi | |
4188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4189 | fi | |
4190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4191 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4192 | fi | |
4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4194 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4195 | if test "$ac_test_CFLAGS" = set; then | |
4196 | CFLAGS=$ac_save_CFLAGS | |
4197 | elif test $ac_cv_prog_cc_g = yes; then | |
4198 | if test "$GCC" = yes; then | |
4199 | CFLAGS="-g -O2" | |
4200 | else | |
4201 | CFLAGS="-g" | |
4202 | fi | |
4203 | else | |
4204 | if test "$GCC" = yes; then | |
4205 | CFLAGS="-O2" | |
4206 | else | |
4207 | CFLAGS= | |
4208 | fi | |
4209 | fi | |
4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4211 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 4212 | if ${ac_cv_prog_cc_c89+:} false; then : |
b879806f AM |
4213 | $as_echo_n "(cached) " >&6 |
4214 | else | |
4215 | ac_cv_prog_cc_c89=no | |
4216 | ac_save_CC=$CC | |
4217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4218 | /* end confdefs.h. */ | |
4219 | #include <stdarg.h> | |
4220 | #include <stdio.h> | |
d0ac1c44 | 4221 | struct stat; |
b879806f AM |
4222 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4223 | struct buf { int x; }; | |
4224 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4225 | static char *e (p, i) | |
4226 | char **p; | |
4227 | int i; | |
4228 | { | |
4229 | return p[i]; | |
4230 | } | |
4231 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4232 | { | |
4233 | char *s; | |
4234 | va_list v; | |
4235 | va_start (v,p); | |
4236 | s = g (p, va_arg (v,int)); | |
4237 | va_end (v); | |
4238 | return s; | |
4239 | } | |
df7b86aa | 4240 | |
b879806f AM |
4241 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4242 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4243 | These don't provoke an error unfortunately, instead are silently treated | |
4244 | as 'x'. The following induces an error, until -std is added to get | |
4245 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4246 | array size at least. It's necessary to write '\x00'==0 to get something | |
4247 | that's true only with -std. */ | |
4248 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
df7b86aa | 4249 | |
b879806f AM |
4250 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4251 | inside strings and character constants. */ | |
4252 | #define FOO(x) 'x' | |
4253 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4254 | ||
4255 | int test (int i, double x); | |
4256 | struct s1 {int (*f) (int a);}; | |
4257 | struct s2 {int (*f) (double a);}; | |
4258 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4259 | int argc; | |
4260 | char **argv; | |
4261 | int | |
4262 | main () | |
4263 | { | |
4264 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4265 | ; | |
4266 | return 0; | |
4267 | } | |
4268 | _ACEOF | |
4269 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4270 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4271 | do | |
4272 | CC="$ac_save_CC $ac_arg" | |
4273 | if ac_fn_c_try_compile "$LINENO"; then : | |
4274 | ac_cv_prog_cc_c89=$ac_arg | |
397841b5 | 4275 | fi |
b879806f AM |
4276 | rm -f core conftest.err conftest.$ac_objext |
4277 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4278 | done | |
4279 | rm -f conftest.$ac_ext | |
4280 | CC=$ac_save_CC | |
4281 | ||
397841b5 | 4282 | fi |
b879806f AM |
4283 | # AC_CACHE_VAL |
4284 | case "x$ac_cv_prog_cc_c89" in | |
4285 | x) | |
4286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4287 | $as_echo "none needed" >&6; } ;; | |
4288 | xno) | |
4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4290 | $as_echo "unsupported" >&6; } ;; | |
4291 | *) | |
4292 | CC="$CC $ac_cv_prog_cc_c89" | |
4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4294 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4295 | esac | |
4296 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
397841b5 | 4297 | |
b879806f | 4298 | fi |
397841b5 AM |
4299 | |
4300 | ac_ext=c | |
4301 | ac_cpp='$CPP $CPPFLAGS' | |
4302 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4303 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4304 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b879806f | 4305 | |
d0ac1c44 SM |
4306 | ac_ext=c |
4307 | ac_cpp='$CPP $CPPFLAGS' | |
4308 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4309 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4310 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4312 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4313 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4314 | $as_echo_n "(cached) " >&6 | |
4315 | else | |
4316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4317 | /* end confdefs.h. */ | |
4318 | ||
4319 | int | |
4320 | main () | |
4321 | { | |
4322 | ||
4323 | ; | |
4324 | return 0; | |
4325 | } | |
4326 | _ACEOF | |
4327 | # Make sure it works both with $CC and with simple cc. | |
4328 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4329 | # compilers refuse to overwrite an existing .o file with -o, | |
4330 | # though they will create one. | |
4331 | am_cv_prog_cc_c_o=yes | |
4332 | for am_i in 1 2; do | |
4333 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4334 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4335 | ac_status=$? | |
4336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4337 | (exit $ac_status); } \ | |
4338 | && test -f conftest2.$ac_objext; then | |
4339 | : OK | |
4340 | else | |
4341 | am_cv_prog_cc_c_o=no | |
4342 | break | |
4343 | fi | |
4344 | done | |
4345 | rm -f core conftest* | |
4346 | unset am_i | |
4347 | fi | |
4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4349 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4350 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4351 | # Losing compiler, so override with the script. | |
4352 | # FIXME: It is wrong to rewrite CC. | |
4353 | # But if we don't then we get into trouble of one sort or another. | |
4354 | # A longer-term fix would be to have automake use am__CC in this case, | |
4355 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4356 | CC="$am_aux_dir/compile $CC" | |
4357 | fi | |
4358 | ac_ext=c | |
4359 | ac_cpp='$CPP $CPPFLAGS' | |
4360 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4361 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4362 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4363 | ||
c774eab1 AM |
4364 | DEPDIR="${am__leading_dot}deps" |
4365 | ||
4366 | ac_config_commands="$ac_config_commands depfiles" | |
4367 | ||
5bbe6ec5 NC |
4368 | |
4369 | am_make=${MAKE-make} | |
4370 | cat > confinc << 'END' | |
c774eab1 | 4371 | am__doit: |
5bbe6ec5 | 4372 | @echo this is the am__doit target |
c774eab1 AM |
4373 | .PHONY: am__doit |
4374 | END | |
5bbe6ec5 NC |
4375 | # If we don't find an include directive, just comment out the code. |
4376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4377 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
c774eab1 AM |
4378 | am__include="#" |
4379 | am__quote= | |
5bbe6ec5 NC |
4380 | _am_result=none |
4381 | # First try GNU make style include. | |
4382 | echo "include confinc" > confmf | |
4383 | # Ignore all kinds of additional output from 'make'. | |
4384 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4385 | *the\ am__doit\ target*) | |
4386 | am__include=include | |
4387 | am__quote= | |
4388 | _am_result=GNU | |
4389 | ;; | |
631ec08c | 4390 | esac |
5bbe6ec5 NC |
4391 | # Now try BSD make style include. |
4392 | if test "$am__include" = "#"; then | |
4393 | echo '.include "confinc"' > confmf | |
4394 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4395 | *the\ am__doit\ target*) | |
4396 | am__include=.include | |
4397 | am__quote="\"" | |
4398 | _am_result=BSD | |
4399 | ;; | |
4400 | esac | |
4401 | fi | |
4402 | ||
4403 | ||
4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4405 | $as_echo "$_am_result" >&6; } | |
4406 | rm -f confinc confmf | |
c774eab1 AM |
4407 | |
4408 | # Check whether --enable-dependency-tracking was given. | |
4409 | if test "${enable_dependency_tracking+set}" = set; then : | |
4410 | enableval=$enable_dependency_tracking; | |
4411 | fi | |
4412 | ||
4413 | if test "x$enable_dependency_tracking" != xno; then | |
4414 | am_depcomp="$ac_aux_dir/depcomp" | |
4415 | AMDEPBACKSLASH='\' | |
4416 | am__nodep='_no' | |
4417 | fi | |
4418 | if test "x$enable_dependency_tracking" != xno; then | |
4419 | AMDEP_TRUE= | |
4420 | AMDEP_FALSE='#' | |
4421 | else | |
4422 | AMDEP_TRUE='#' | |
4423 | AMDEP_FALSE= | |
4424 | fi | |
4425 | ||
4426 | ||
4427 | ||
4428 | depcc="$CC" am_compiler_list= | |
4429 | ||
4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4431 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4432 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4433 | $as_echo_n "(cached) " >&6 | |
4434 | else | |
4435 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4436 | # We make a subdir and do the tests there. Otherwise we can end up | |
4437 | # making bogus files that we don't know about and never remove. For | |
4438 | # instance it was reported that on HP-UX the gcc test will end up | |
4439 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4440 | # in D". | |
4441 | rm -rf conftest.dir | |
4442 | mkdir conftest.dir | |
4443 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4444 | # using a relative directory. | |
4445 | cp "$am_depcomp" conftest.dir | |
4446 | cd conftest.dir | |
4447 | # We will build objects and dependencies in a subdirectory because | |
4448 | # it helps to detect inapplicable dependency modes. For instance | |
4449 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4450 | # side effect of compilation, but ICC will put the dependencies in | |
4451 | # the current directory while Tru64 will put them in the object | |
4452 | # directory. | |
4453 | mkdir sub | |
4454 | ||
4455 | am_cv_CC_dependencies_compiler_type=none | |
4456 | if test "$am_compiler_list" = ""; then | |
4457 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4458 | fi | |
4459 | am__universal=false | |
4460 | case " $depcc " in #( | |
4461 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4462 | esac | |
4463 | ||
4464 | for depmode in $am_compiler_list; do | |
4465 | # Setup a source with many dependencies, because some compilers | |
4466 | # like to wrap large dependency lists on column 80 (with \), and | |
4467 | # we should not choose a depcomp mode which is confused by this. | |
4468 | # | |
4469 | # We need to recreate these files for each test, as the compiler may | |
4470 | # overwrite some of them when testing with obscure command lines. | |
4471 | # This happens at least with the AIX C compiler. | |
4472 | : > sub/conftest.c | |
4473 | for i in 1 2 3 4 5 6; do | |
4474 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4475 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4476 | # Solaris 10 /bin/sh. | |
4477 | echo '/* dummy */' > sub/conftst$i.h | |
4478 | done | |
4479 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4480 | ||
4481 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4482 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4483 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4484 | # versions had trouble with output in subdirs. | |
4485 | am__obj=sub/conftest.${OBJEXT-o} | |
4486 | am__minus_obj="-o $am__obj" | |
4487 | case $depmode in | |
4488 | gcc) | |
4489 | # This depmode causes a compiler race in universal mode. | |
4490 | test "$am__universal" = false || continue | |
4491 | ;; | |
4492 | nosideeffect) | |
4493 | # After this tag, mechanisms are not by side-effect, so they'll | |
4494 | # only be used when explicitly requested. | |
4495 | if test "x$enable_dependency_tracking" = xyes; then | |
4496 | continue | |
4497 | else | |
4498 | break | |
4499 | fi | |
4500 | ;; | |
4501 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4502 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4503 | # not run yet. These depmodes are late enough in the game, and | |
4504 | # so weak that their functioning should not be impacted. | |
4505 | am__obj=conftest.${OBJEXT-o} | |
4506 | am__minus_obj= | |
4507 | ;; | |
4508 | none) break ;; | |
4509 | esac | |
4510 | if depmode=$depmode \ | |
4511 | source=sub/conftest.c object=$am__obj \ | |
4512 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4513 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4514 | >/dev/null 2>conftest.err && | |
4515 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4516 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4517 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4518 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4519 | # icc doesn't choke on unknown options, it will just issue warnings | |
4520 | # or remarks (even with -Werror). So we grep stderr for any message | |
4521 | # that says an option was ignored or not supported. | |
4522 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4523 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4524 | # The diagnosis changed in icc 8.0: | |
4525 | # icc: Command line remark: option '-MP' not supported | |
4526 | if (grep 'ignoring option' conftest.err || | |
4527 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4528 | am_cv_CC_dependencies_compiler_type=$depmode | |
4529 | break | |
4530 | fi | |
4531 | fi | |
4532 | done | |
4533 | ||
4534 | cd .. | |
4535 | rm -rf conftest.dir | |
4536 | else | |
4537 | am_cv_CC_dependencies_compiler_type=none | |
4538 | fi | |
4539 | ||
4540 | fi | |
4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4542 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4543 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4544 | ||
4545 | if | |
4546 | test "x$enable_dependency_tracking" != xno \ | |
4547 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4548 | am__fastdepCC_TRUE= | |
4549 | am__fastdepCC_FALSE='#' | |
4550 | else | |
4551 | am__fastdepCC_TRUE='#' | |
4552 | am__fastdepCC_FALSE= | |
4553 | fi | |
4554 | ||
d0ac1c44 | 4555 | |
b879806f AM |
4556 | ac_ext=cpp |
4557 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4558 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4559 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4560 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4561 | if test -z "$CXX"; then | |
4562 | if test -n "$CCC"; then | |
4563 | CXX=$CCC | |
4564 | else | |
4565 | if test -n "$ac_tool_prefix"; then | |
4566 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4567 | do | |
4568 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4569 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
397841b5 AM |
4570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4571 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4572 | if ${ac_cv_prog_CXX+:} false; then : |
397841b5 AM |
4573 | $as_echo_n "(cached) " >&6 |
4574 | else | |
b879806f AM |
4575 | if test -n "$CXX"; then |
4576 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
397841b5 AM |
4577 | else |
4578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4579 | for as_dir in $PATH | |
4580 | do | |
4581 | IFS=$as_save_IFS | |
4582 | test -z "$as_dir" && as_dir=. | |
4583 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 4584 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b879806f | 4585 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
397841b5 AM |
4586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4587 | break 2 | |
4588 | fi | |
4589 | done | |
4590 | done | |
4591 | IFS=$as_save_IFS | |
4592 | ||
4593 | fi | |
4594 | fi | |
b879806f AM |
4595 | CXX=$ac_cv_prog_CXX |
4596 | if test -n "$CXX"; then | |
4597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4598 | $as_echo "$CXX" >&6; } | |
397841b5 AM |
4599 | else |
4600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4601 | $as_echo "no" >&6; } | |
4602 | fi | |
4603 | ||
4604 | ||
b879806f AM |
4605 | test -n "$CXX" && break |
4606 | done | |
397841b5 | 4607 | fi |
b879806f AM |
4608 | if test -z "$CXX"; then |
4609 | ac_ct_CXX=$CXX | |
4610 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4611 | do | |
4612 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4613 | set dummy $ac_prog; ac_word=$2 | |
397841b5 AM |
4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4615 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4616 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
81ecdfbb | 4617 | $as_echo_n "(cached) " >&6 |
252b5132 | 4618 | else |
b879806f AM |
4619 | if test -n "$ac_ct_CXX"; then |
4620 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
252b5132 | 4621 | else |
ce2cded5 L |
4622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4623 | for as_dir in $PATH | |
4624 | do | |
4625 | IFS=$as_save_IFS | |
4626 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4627 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4628 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b879806f | 4629 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4631 | break 2 |
4632 | fi | |
4633 | done | |
81ecdfbb RW |
4634 | done |
4635 | IFS=$as_save_IFS | |
4636 | ||
252b5132 RH |
4637 | fi |
4638 | fi | |
b879806f AM |
4639 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4640 | if test -n "$ac_ct_CXX"; then | |
4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4642 | $as_echo "$ac_ct_CXX" >&6; } | |
d7040cdb | 4643 | else |
81ecdfbb RW |
4644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4645 | $as_echo "no" >&6; } | |
d7040cdb SE |
4646 | fi |
4647 | ||
81ecdfbb | 4648 | |
b879806f | 4649 | test -n "$ac_ct_CXX" && break |
d7040cdb | 4650 | done |
d7040cdb | 4651 | |
b879806f AM |
4652 | if test "x$ac_ct_CXX" = x; then |
4653 | CXX="g++" | |
81ecdfbb RW |
4654 | else |
4655 | case $cross_compiling:$ac_tool_warned in | |
4656 | yes:) | |
4657 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4658 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4659 | ac_tool_warned=yes ;; | |
4660 | esac | |
b879806f | 4661 | CXX=$ac_ct_CXX |
81ecdfbb | 4662 | fi |
d7040cdb SE |
4663 | fi |
4664 | ||
b879806f | 4665 | fi |
d7040cdb | 4666 | fi |
ce2cded5 | 4667 | # Provide some information about the compiler. |
b879806f | 4668 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
81ecdfbb RW |
4669 | set X $ac_compile |
4670 | ac_compiler=$2 | |
4671 | for ac_option in --version -v -V -qversion; do | |
4672 | { { ac_try="$ac_compiler $ac_option >&5" | |
4673 | case "(($ac_try" in | |
4674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4675 | *) ac_try_echo=$ac_try;; | |
4676 | esac | |
4677 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4678 | $as_echo "$ac_try_echo"; } >&5 | |
4679 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
ce2cded5 | 4680 | ac_status=$? |
81ecdfbb RW |
4681 | if test -s conftest.err; then |
4682 | sed '10a\ | |
4683 | ... rest of stderr output deleted ... | |
4684 | 10q' conftest.err >conftest.er1 | |
4685 | cat conftest.er1 >&5 | |
81ecdfbb | 4686 | fi |
d0ac1c44 | 4687 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4689 | test $ac_status = 0; } | |
4690 | done | |
d7040cdb | 4691 | |
b879806f AM |
4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4693 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
d0ac1c44 | 4694 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
81ecdfbb | 4695 | $as_echo_n "(cached) " >&6 |
d7040cdb | 4696 | else |
81ecdfbb | 4697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 4698 | /* end confdefs.h. */ |
d7040cdb | 4699 | |
ce2cded5 L |
4700 | int |
4701 | main () | |
4702 | { | |
4703 | #ifndef __GNUC__ | |
4704 | choke me | |
4705 | #endif | |
4706 | ||
4707 | ; | |
4708 | return 0; | |
4709 | } | |
4710 | _ACEOF | |
b879806f | 4711 | if ac_fn_cxx_try_compile "$LINENO"; then : |
ce2cded5 | 4712 | ac_compiler_gnu=yes |
d7040cdb | 4713 | else |
81ecdfbb | 4714 | ac_compiler_gnu=no |
d7040cdb | 4715 | fi |
81ecdfbb | 4716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b879806f | 4717 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
d7040cdb | 4718 | |
ce2cded5 | 4719 | fi |
b879806f AM |
4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4721 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
81ecdfbb | 4722 | if test $ac_compiler_gnu = yes; then |
b879806f | 4723 | GXX=yes |
81ecdfbb | 4724 | else |
b879806f | 4725 | GXX= |
81ecdfbb | 4726 | fi |
b879806f AM |
4727 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4728 | ac_save_CXXFLAGS=$CXXFLAGS | |
4729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4730 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
d0ac1c44 | 4731 | if ${ac_cv_prog_cxx_g+:} false; then : |
81ecdfbb RW |
4732 | $as_echo_n "(cached) " >&6 |
4733 | else | |
b879806f AM |
4734 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4735 | ac_cxx_werror_flag=yes | |
4736 | ac_cv_prog_cxx_g=no | |
4737 | CXXFLAGS="-g" | |
81ecdfbb | 4738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 4739 | /* end confdefs.h. */ |
d7040cdb | 4740 | |
ce2cded5 L |
4741 | int |
4742 | main () | |
4743 | { | |
d7040cdb | 4744 | |
ce2cded5 L |
4745 | ; |
4746 | return 0; | |
4747 | } | |
4748 | _ACEOF | |
b879806f AM |
4749 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4750 | ac_cv_prog_cxx_g=yes | |
ce2cded5 | 4751 | else |
b879806f | 4752 | CXXFLAGS="" |
81ecdfbb RW |
4753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4754 | /* end confdefs.h. */ | |
4755 | ||
4756 | int | |
4757 | main () | |
4758 | { | |
4759 | ||
4760 | ; | |
4761 | return 0; | |
4762 | } | |
4763 | _ACEOF | |
b879806f | 4764 | if ac_fn_cxx_try_compile "$LINENO"; then : |
81ecdfbb RW |
4765 | |
4766 | else | |
b879806f AM |
4767 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4768 | CXXFLAGS="-g" | |
81ecdfbb RW |
4769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4770 | /* end confdefs.h. */ | |
4771 | ||
4772 | int | |
4773 | main () | |
4774 | { | |
d7040cdb | 4775 | |
81ecdfbb RW |
4776 | ; |
4777 | return 0; | |
4778 | } | |
4779 | _ACEOF | |
b879806f AM |
4780 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4781 | ac_cv_prog_cxx_g=yes | |
81ecdfbb RW |
4782 | fi |
4783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4784 | fi | |
4785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d7040cdb | 4786 | fi |
81ecdfbb | 4787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b879806f | 4788 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
ce2cded5 | 4789 | fi |
b879806f AM |
4790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
4791 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4792 | if test "$ac_test_CXXFLAGS" = set; then | |
4793 | CXXFLAGS=$ac_save_CXXFLAGS | |
4794 | elif test $ac_cv_prog_cxx_g = yes; then | |
4795 | if test "$GXX" = yes; then | |
4796 | CXXFLAGS="-g -O2" | |
ce2cded5 | 4797 | else |
b879806f | 4798 | CXXFLAGS="-g" |
ce2cded5 | 4799 | fi |
d7040cdb | 4800 | else |
b879806f AM |
4801 | if test "$GXX" = yes; then |
4802 | CXXFLAGS="-O2" | |
ce2cded5 | 4803 | else |
b879806f | 4804 | CXXFLAGS= |
ce2cded5 | 4805 | fi |
d7040cdb | 4806 | fi |
b879806f AM |
4807 | ac_ext=c |
4808 | ac_cpp='$CPP $CPPFLAGS' | |
4809 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4810 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4811 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4812 | ||
4813 | depcc="$CXX" am_compiler_list= | |
4814 | ||
4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4816 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
d0ac1c44 | 4817 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
81ecdfbb | 4818 | $as_echo_n "(cached) " >&6 |
d7040cdb | 4819 | else |
b879806f AM |
4820 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4821 | # We make a subdir and do the tests there. Otherwise we can end up | |
4822 | # making bogus files that we don't know about and never remove. For | |
4823 | # instance it was reported that on HP-UX the gcc test will end up | |
d0ac1c44 SM |
4824 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4825 | # in D". | |
6eb7d830 | 4826 | rm -rf conftest.dir |
b879806f AM |
4827 | mkdir conftest.dir |
4828 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4829 | # using a relative directory. | |
4830 | cp "$am_depcomp" conftest.dir | |
4831 | cd conftest.dir | |
4832 | # We will build objects and dependencies in a subdirectory because | |
4833 | # it helps to detect inapplicable dependency modes. For instance | |
4834 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4835 | # side effect of compilation, but ICC will put the dependencies in | |
4836 | # the current directory while Tru64 will put them in the object | |
4837 | # directory. | |
4838 | mkdir sub | |
d7040cdb | 4839 | |
b879806f AM |
4840 | am_cv_CXX_dependencies_compiler_type=none |
4841 | if test "$am_compiler_list" = ""; then | |
4842 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4843 | fi | |
4844 | am__universal=false | |
4845 | case " $depcc " in #( | |
4846 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4847 | esac | |
d7040cdb | 4848 | |
b879806f AM |
4849 | for depmode in $am_compiler_list; do |
4850 | # Setup a source with many dependencies, because some compilers | |
4851 | # like to wrap large dependency lists on column 80 (with \), and | |
4852 | # we should not choose a depcomp mode which is confused by this. | |
4853 | # | |
4854 | # We need to recreate these files for each test, as the compiler may | |
4855 | # overwrite some of them when testing with obscure command lines. | |
4856 | # This happens at least with the AIX C compiler. | |
4857 | : > sub/conftest.c | |
4858 | for i in 1 2 3 4 5 6; do | |
4859 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
d0ac1c44 SM |
4860 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4861 | # Solaris 10 /bin/sh. | |
4862 | echo '/* dummy */' > sub/conftst$i.h | |
b879806f AM |
4863 | done |
4864 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
81ecdfbb | 4865 | |
d0ac1c44 | 4866 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
b879806f | 4867 | # mode. It turns out that the SunPro C++ compiler does not properly |
d0ac1c44 SM |
4868 | # handle '-M -o', and we need to detect this. Also, some Intel |
4869 | # versions had trouble with output in subdirs. | |
b879806f AM |
4870 | am__obj=sub/conftest.${OBJEXT-o} |
4871 | am__minus_obj="-o $am__obj" | |
4872 | case $depmode in | |
4873 | gcc) | |
4874 | # This depmode causes a compiler race in universal mode. | |
4875 | test "$am__universal" = false || continue | |
4876 | ;; | |
4877 | nosideeffect) | |
d0ac1c44 SM |
4878 | # After this tag, mechanisms are not by side-effect, so they'll |
4879 | # only be used when explicitly requested. | |
b879806f AM |
4880 | if test "x$enable_dependency_tracking" = xyes; then |
4881 | continue | |
4882 | else | |
4883 | break | |
4884 | fi | |
4885 | ;; | |
6eb7d830 | 4886 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
d0ac1c44 | 4887 | # This compiler won't grok '-c -o', but also, the minuso test has |
b879806f AM |
4888 | # not run yet. These depmodes are late enough in the game, and |
4889 | # so weak that their functioning should not be impacted. | |
4890 | am__obj=conftest.${OBJEXT-o} | |
4891 | am__minus_obj= | |
4892 | ;; | |
4893 | none) break ;; | |
4894 | esac | |
4895 | if depmode=$depmode \ | |
4896 | source=sub/conftest.c object=$am__obj \ | |
4897 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4898 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4899 | >/dev/null 2>conftest.err && | |
4900 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4901 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4902 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4903 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4904 | # icc doesn't choke on unknown options, it will just issue warnings | |
4905 | # or remarks (even with -Werror). So we grep stderr for any message | |
4906 | # that says an option was ignored or not supported. | |
4907 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4908 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4909 | # The diagnosis changed in icc 8.0: | |
4910 | # icc: Command line remark: option '-MP' not supported | |
4911 | if (grep 'ignoring option' conftest.err || | |
4912 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4913 | am_cv_CXX_dependencies_compiler_type=$depmode | |
4914 | break | |
4915 | fi | |
4916 | fi | |
4917 | done | |
4918 | ||
4919 | cd .. | |
4920 | rm -rf conftest.dir | |
4921 | else | |
4922 | am_cv_CXX_dependencies_compiler_type=none | |
ce2cded5 | 4923 | fi |
d7040cdb | 4924 | |
ce2cded5 | 4925 | fi |
b879806f AM |
4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
4927 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4928 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
d7040cdb | 4929 | |
b879806f AM |
4930 | if |
4931 | test "x$enable_dependency_tracking" != xno \ | |
4932 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4933 | am__fastdepCXX_TRUE= | |
4934 | am__fastdepCXX_FALSE='#' | |
4935 | else | |
4936 | am__fastdepCXX_TRUE='#' | |
4937 | am__fastdepCXX_FALSE= | |
ce2cded5 | 4938 | fi |
d7040cdb | 4939 | |
b879806f | 4940 | |
68880f31 CLT |
4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4942 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
d0ac1c44 | 4943 | if ${ac_cv_path_GREP+:} false; then : |
68880f31 CLT |
4944 | $as_echo_n "(cached) " >&6 |
4945 | else | |
4946 | if test -z "$GREP"; then | |
4947 | ac_path_GREP_found=false | |
4948 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4950 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4951 | do | |
4952 | IFS=$as_save_IFS | |
4953 | test -z "$as_dir" && as_dir=. | |
4954 | for ac_prog in grep ggrep; do | |
4955 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4956 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4957 | as_fn_executable_p "$ac_path_GREP" || continue |
68880f31 CLT |
4958 | # Check for GNU ac_path_GREP and select it if it is found. |
4959 | # Check for GNU $ac_path_GREP | |
4960 | case `"$ac_path_GREP" --version 2>&1` in | |
4961 | *GNU*) | |
4962 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4963 | *) | |
4964 | ac_count=0 | |
4965 | $as_echo_n 0123456789 >"conftest.in" | |
4966 | while : | |
4967 | do | |
4968 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4969 | mv "conftest.tmp" "conftest.in" | |
4970 | cp "conftest.in" "conftest.nl" | |
4971 | $as_echo 'GREP' >> "conftest.nl" | |
4972 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4973 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4974 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4975 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4976 | # Best one so far, save it but keep looking for a better one | |
4977 | ac_cv_path_GREP="$ac_path_GREP" | |
4978 | ac_path_GREP_max=$ac_count | |
4979 | fi | |
4980 | # 10*(2^10) chars as input seems more than enough | |
4981 | test $ac_count -gt 10 && break | |
4982 | done | |
4983 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4984 | esac | |
4985 | ||
4986 | $ac_path_GREP_found && break 3 | |
4987 | done | |
4988 | done | |
4989 | done | |
4990 | IFS=$as_save_IFS | |
4991 | if test -z "$ac_cv_path_GREP"; then | |
d0ac1c44 | 4992 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
68880f31 CLT |
4993 | fi |
4994 | else | |
4995 | ac_cv_path_GREP=$GREP | |
4996 | fi | |
4997 | ||
4998 | fi | |
4999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5000 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5001 | GREP="$ac_cv_path_GREP" | |
5002 | ||
5003 | ||
c774eab1 | 5004 | |
ce2cded5 L |
5005 | ac_ext=c |
5006 | ac_cpp='$CPP $CPPFLAGS' | |
5007 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5008 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5009 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b879806f AM |
5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
5011 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
5012 | # On Suns, sometimes $CPP names a directory. | |
5013 | if test -n "$CPP" && test -d "$CPP"; then | |
5014 | CPP= | |
7357c5b6 | 5015 | fi |
b879806f | 5016 | if test -z "$CPP"; then |
d0ac1c44 | 5017 | if ${ac_cv_prog_CPP+:} false; then : |
3cb62297 L |
5018 | $as_echo_n "(cached) " >&6 |
5019 | else | |
b879806f AM |
5020 | # Double quotes because CPP needs to be expanded |
5021 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5022 | do | |
5023 | ac_preproc_ok=false | |
5024 | for ac_c_preproc_warn_flag in '' yes | |
3cb62297 | 5025 | do |
b879806f AM |
5026 | # Use a header file that comes with gcc, so configuring glibc |
5027 | # with a fresh cross-compiler works. | |
5028 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5029 | # <limits.h> exists even on freestanding compilers. | |
5030 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5031 | # not just through cpp. "Syntax error" is here to catch this case. | |
5032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5033 | /* end confdefs.h. */ | |
5034 | #ifdef __STDC__ | |
5035 | # include <limits.h> | |
5036 | #else | |
5037 | # include <assert.h> | |
5038 | #endif | |
5039 | Syntax error | |
5040 | _ACEOF | |
5041 | if ac_fn_c_try_cpp "$LINENO"; then : | |
252b5132 | 5042 | |
3cb62297 | 5043 | else |
b879806f AM |
5044 | # Broken: fails on valid input. |
5045 | continue | |
7357c5b6 | 5046 | fi |
d0ac1c44 | 5047 | rm -f conftest.err conftest.i conftest.$ac_ext |
252b5132 | 5048 | |
b879806f AM |
5049 | # OK, works on sane cases. Now check whether nonexistent headers |
5050 | # can be detected and how. | |
5051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5052 | /* end confdefs.h. */ | |
5053 | #include <ac_nonexistent.h> | |
5054 | _ACEOF | |
5055 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5056 | # Broken: success on invalid input. | |
5057 | continue | |
5058 | else | |
5059 | # Passes both tests. | |
5060 | ac_preproc_ok=: | |
5061 | break | |
5062 | fi | |
d0ac1c44 | 5063 | rm -f conftest.err conftest.i conftest.$ac_ext |
42ecbf5e | 5064 | |
3cb62297 | 5065 | done |
b879806f | 5066 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
d0ac1c44 | 5067 | rm -f conftest.i conftest.err conftest.$ac_ext |
b879806f AM |
5068 | if $ac_preproc_ok; then : |
5069 | break | |
7357c5b6 | 5070 | fi |
ac48eca1 | 5071 | |
b879806f AM |
5072 | done |
5073 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 5074 | |
b879806f AM |
5075 | fi |
5076 | CPP=$ac_cv_prog_CPP | |
7357c5b6 | 5077 | else |
b879806f AM |
5078 | ac_cv_prog_CPP=$CPP |
5079 | fi | |
5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
5081 | $as_echo "$CPP" >&6; } | |
5082 | ac_preproc_ok=false | |
5083 | for ac_c_preproc_warn_flag in '' yes | |
5084 | do | |
5085 | # Use a header file that comes with gcc, so configuring glibc | |
5086 | # with a fresh cross-compiler works. | |
5087 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5088 | # <limits.h> exists even on freestanding compilers. | |
5089 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5090 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 5092 | /* end confdefs.h. */ |
b879806f AM |
5093 | #ifdef __STDC__ |
5094 | # include <limits.h> | |
5095 | #else | |
5096 | # include <assert.h> | |
3cb62297 | 5097 | #endif |
b879806f | 5098 | Syntax error |
7357c5b6 | 5099 | _ACEOF |
b879806f AM |
5100 | if ac_fn_c_try_cpp "$LINENO"; then : |
5101 | ||
81ecdfbb | 5102 | else |
b879806f AM |
5103 | # Broken: fails on valid input. |
5104 | continue | |
7357c5b6 | 5105 | fi |
d0ac1c44 | 5106 | rm -f conftest.err conftest.i conftest.$ac_ext |
81ecdfbb | 5107 | |
b879806f AM |
5108 | # OK, works on sane cases. Now check whether nonexistent headers |
5109 | # can be detected and how. | |
5110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5111 | /* end confdefs.h. */ | |
5112 | #include <ac_nonexistent.h> | |
5113 | _ACEOF | |
5114 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5115 | # Broken: success on invalid input. | |
5116 | continue | |
3cb62297 | 5117 | else |
b879806f AM |
5118 | # Passes both tests. |
5119 | ac_preproc_ok=: | |
5120 | break | |
7357c5b6 | 5121 | fi |
d0ac1c44 | 5122 | rm -f conftest.err conftest.i conftest.$ac_ext |
252b5132 | 5123 | |
b879806f AM |
5124 | done |
5125 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 5126 | rm -f conftest.i conftest.err conftest.$ac_ext |
b879806f | 5127 | if $ac_preproc_ok; then : |
252b5132 | 5128 | |
3cb62297 | 5129 | else |
b879806f AM |
5130 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5131 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
5132 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
5133 | See \`config.log' for more details" "$LINENO" 5; } | |
b879806f | 5134 | fi |
42ecbf5e | 5135 | |
b879806f AM |
5136 | ac_ext=c |
5137 | ac_cpp='$CPP $CPPFLAGS' | |
5138 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5139 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5140 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42ecbf5e DJ |
5141 | |
5142 | ||
b879806f AM |
5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
5144 | $as_echo_n "checking for egrep... " >&6; } | |
d0ac1c44 | 5145 | if ${ac_cv_path_EGREP+:} false; then : |
b879806f AM |
5146 | $as_echo_n "(cached) " >&6 |
5147 | else | |
5148 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5149 | then ac_cv_path_EGREP="$GREP -E" | |
5150 | else | |
5151 | if test -z "$EGREP"; then | |
5152 | ac_path_EGREP_found=false | |
5153 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5155 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5156 | do | |
5157 | IFS=$as_save_IFS | |
5158 | test -z "$as_dir" && as_dir=. | |
5159 | for ac_prog in egrep; do | |
5160 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5161 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 5162 | as_fn_executable_p "$ac_path_EGREP" || continue |
b879806f AM |
5163 | # Check for GNU ac_path_EGREP and select it if it is found. |
5164 | # Check for GNU $ac_path_EGREP | |
5165 | case `"$ac_path_EGREP" --version 2>&1` in | |
5166 | *GNU*) | |
5167 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5168 | *) | |
5169 | ac_count=0 | |
5170 | $as_echo_n 0123456789 >"conftest.in" | |
5171 | while : | |
5172 | do | |
5173 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5174 | mv "conftest.tmp" "conftest.in" | |
5175 | cp "conftest.in" "conftest.nl" | |
5176 | $as_echo 'EGREP' >> "conftest.nl" | |
5177 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5178 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5179 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5180 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5181 | # Best one so far, save it but keep looking for a better one | |
5182 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5183 | ac_path_EGREP_max=$ac_count | |
5184 | fi | |
5185 | # 10*(2^10) chars as input seems more than enough | |
5186 | test $ac_count -gt 10 && break | |
5187 | done | |
5188 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5189 | esac | |
5190 | ||
5191 | $ac_path_EGREP_found && break 3 | |
5192 | done | |
5193 | done | |
5194 | done | |
5195 | IFS=$as_save_IFS | |
5196 | if test -z "$ac_cv_path_EGREP"; then | |
d0ac1c44 | 5197 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
b879806f AM |
5198 | fi |
5199 | else | |
5200 | ac_cv_path_EGREP=$EGREP | |
5201 | fi | |
5202 | ||
5203 | fi | |
5204 | fi | |
5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5206 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5207 | EGREP="$ac_cv_path_EGREP" | |
5208 | ||
5209 | ||
5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
5211 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
d0ac1c44 | 5212 | if ${ac_cv_header_stdc+:} false; then : |
b879806f AM |
5213 | $as_echo_n "(cached) " >&6 |
5214 | else | |
5215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3cb62297 | 5216 | /* end confdefs.h. */ |
b879806f AM |
5217 | #include <stdlib.h> |
5218 | #include <stdarg.h> | |
5219 | #include <string.h> | |
5220 | #include <float.h> | |
42ecbf5e | 5221 | |
3cb62297 L |
5222 | int |
5223 | main () | |
5224 | { | |
42ecbf5e | 5225 | |
3cb62297 L |
5226 | ; |
5227 | return 0; | |
5228 | } | |
5229 | _ACEOF | |
b879806f AM |
5230 | if ac_fn_c_try_compile "$LINENO"; then : |
5231 | ac_cv_header_stdc=yes | |
5232 | else | |
5233 | ac_cv_header_stdc=no | |
3cb62297 L |
5234 | fi |
5235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b879806f AM |
5236 | |
5237 | if test $ac_cv_header_stdc = yes; then | |
5238 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5240 | /* end confdefs.h. */ | |
5241 | #include <string.h> | |
5242 | ||
5243 | _ACEOF | |
5244 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5245 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5246 | ||
5247 | else | |
5248 | ac_cv_header_stdc=no | |
3cb62297 | 5249 | fi |
b879806f AM |
5250 | rm -f conftest* |
5251 | ||
3cb62297 | 5252 | fi |
b879806f AM |
5253 | |
5254 | if test $ac_cv_header_stdc = yes; then | |
5255 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5257 | /* end confdefs.h. */ | |
5258 | #include <stdlib.h> | |
5259 | ||
5260 | _ACEOF | |
5261 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5262 | $EGREP "free" >/dev/null 2>&1; then : | |
5263 | ||
ce2cded5 | 5264 | else |
b879806f | 5265 | ac_cv_header_stdc=no |
ce2cded5 | 5266 | fi |
b879806f | 5267 | rm -f conftest* |
42ecbf5e | 5268 | |
b879806f | 5269 | fi |
e5a52504 | 5270 | |
b879806f AM |
5271 | if test $ac_cv_header_stdc = yes; then |
5272 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5273 | if test "$cross_compiling" = yes; then : | |
5274 | : | |
3cb62297 | 5275 | else |
b879806f AM |
5276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5277 | /* end confdefs.h. */ | |
5278 | #include <ctype.h> | |
5279 | #include <stdlib.h> | |
5280 | #if ((' ' & 0x0FF) == 0x020) | |
5281 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5282 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5283 | #else | |
5284 | # define ISLOWER(c) \ | |
5285 | (('a' <= (c) && (c) <= 'i') \ | |
5286 | || ('j' <= (c) && (c) <= 'r') \ | |
5287 | || ('s' <= (c) && (c) <= 'z')) | |
5288 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5289 | #endif | |
3cb62297 L |
5290 | |
5291 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5292 | int | |
5293 | main () | |
5294 | { | |
5295 | int i; | |
5296 | for (i = 0; i < 256; i++) | |
5297 | if (XOR (islower (i), ISLOWER (i)) | |
5298 | || toupper (i) != TOUPPER (i)) | |
5299 | return 2; | |
5300 | return 0; | |
5301 | } | |
5302 | _ACEOF | |
5303 | if ac_fn_c_try_run "$LINENO"; then : | |
5304 | ||
5305 | else | |
5306 | ac_cv_header_stdc=no | |
5307 | fi | |
5308 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5309 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5310 | fi | |
5311 | ||
5312 | fi | |
5313 | fi | |
5314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5315 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5316 | if test $ac_cv_header_stdc = yes; then | |
5317 | ||
5318 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5319 | ||
5320 | fi | |
5321 | ||
5322 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5323 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5324 | inttypes.h stdint.h unistd.h | |
5325 | do : | |
5326 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5327 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5328 | " | |
d0ac1c44 | 5329 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
3cb62297 L |
5330 | cat >>confdefs.h <<_ACEOF |
5331 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5332 | _ACEOF | |
5333 | ||
5334 | fi | |
5335 | ||
5336 | done | |
5337 | ||
5338 | ||
5339 | ||
5340 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
d0ac1c44 | 5341 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
3cb62297 L |
5342 | MINIX=yes |
5343 | else | |
5344 | MINIX= | |
5345 | fi | |
5346 | ||
5347 | ||
5348 | if test "$MINIX" = yes; then | |
5349 | ||
5350 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
5351 | ||
5352 | ||
5353 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
5354 | ||
5355 | ||
5356 | $as_echo "#define _MINIX 1" >>confdefs.h | |
5357 | ||
5358 | fi | |
5359 | ||
5360 | ||
5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
5362 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
d0ac1c44 | 5363 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
3cb62297 L |
5364 | $as_echo_n "(cached) " >&6 |
5365 | else | |
5366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5367 | /* end confdefs.h. */ | |
5368 | ||
d0ac1c44 SM |
5369 | # define __EXTENSIONS__ 1 |
5370 | $ac_includes_default | |
3cb62297 L |
5371 | int |
5372 | main () | |
5373 | { | |
5374 | ||
5375 | ; | |
5376 | return 0; | |
5377 | } | |
5378 | _ACEOF | |
5379 | if ac_fn_c_try_compile "$LINENO"; then : | |
5380 | ac_cv_safe_to_define___extensions__=yes | |
5381 | else | |
5382 | ac_cv_safe_to_define___extensions__=no | |
5383 | fi | |
5384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5385 | fi | |
5386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5387 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5388 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5389 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
5390 | ||
5391 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
5392 | ||
5393 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
5394 | ||
5395 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
5396 | ||
5397 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5398 | ||
5399 | ||
5400 | ||
5401 | ||
5402 | ||
3cb62297 | 5403 | |
2cac01e3 FS |
5404 | |
5405 | ||
5406 | ||
5407 | ||
5408 | ||
5409 | ||
5410 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
5411 | if test -n "$ac_tool_prefix"; then | |
5412 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
5413 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5415 | $as_echo_n "checking for $ac_word... " >&6; } | |
5416 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
5417 | $as_echo_n "(cached) " >&6 | |
5418 | else | |
5419 | case $PKG_CONFIG in | |
5420 | [\\/]* | ?:[\\/]*) | |
5421 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
5422 | ;; | |
5423 | *) | |
5424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5425 | for as_dir in $PATH | |
5426 | do | |
5427 | IFS=$as_save_IFS | |
5428 | test -z "$as_dir" && as_dir=. | |
5429 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5430 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5431 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
5432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5433 | break 2 | |
5434 | fi | |
5435 | done | |
5436 | done | |
5437 | IFS=$as_save_IFS | |
5438 | ||
5439 | ;; | |
5440 | esac | |
5441 | fi | |
5442 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
5443 | if test -n "$PKG_CONFIG"; then | |
5444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
5445 | $as_echo "$PKG_CONFIG" >&6; } | |
5446 | else | |
5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5448 | $as_echo "no" >&6; } | |
5449 | fi | |
5450 | ||
5451 | ||
5452 | fi | |
5453 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
5454 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
5455 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
5456 | set dummy pkg-config; ac_word=$2 | |
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5458 | $as_echo_n "checking for $ac_word... " >&6; } | |
5459 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
5460 | $as_echo_n "(cached) " >&6 | |
5461 | else | |
5462 | case $ac_pt_PKG_CONFIG in | |
5463 | [\\/]* | ?:[\\/]*) | |
5464 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
5465 | ;; | |
5466 | *) | |
5467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5468 | for as_dir in $PATH | |
5469 | do | |
5470 | IFS=$as_save_IFS | |
5471 | test -z "$as_dir" && as_dir=. | |
5472 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5473 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5474 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
5475 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5476 | break 2 | |
5477 | fi | |
5478 | done | |
5479 | done | |
5480 | IFS=$as_save_IFS | |
5481 | ||
5482 | ;; | |
5483 | esac | |
5484 | fi | |
5485 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
5486 | if test -n "$ac_pt_PKG_CONFIG"; then | |
5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
5488 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
5489 | else | |
5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5491 | $as_echo "no" >&6; } | |
5492 | fi | |
5493 | ||
5494 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
5495 | PKG_CONFIG="" | |
5496 | else | |
5497 | case $cross_compiling:$ac_tool_warned in | |
5498 | yes:) | |
5499 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5500 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5501 | ac_tool_warned=yes ;; | |
5502 | esac | |
5503 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
5504 | fi | |
5505 | else | |
5506 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
5507 | fi | |
5508 | ||
5509 | fi | |
5510 | if test -n "$PKG_CONFIG"; then | |
5511 | _pkg_min_version=0.9.0 | |
5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
5513 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
5514 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
5515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5516 | $as_echo "yes" >&6; } | |
5517 | else | |
5518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5519 | $as_echo "no" >&6; } | |
5520 | PKG_CONFIG="" | |
5521 | fi | |
5522 | fi | |
5523 | ||
b879806f AM |
5524 | case `pwd` in |
5525 | *\ * | *\ *) | |
5526 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5527 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5528 | esac | |
3cb62297 L |
5529 | |
5530 | ||
da2f07f1 | 5531 | |
b879806f AM |
5532 | macro_version='2.2.7a' |
5533 | macro_revision='1.3134' | |
d7040cdb | 5534 | |
d7040cdb SE |
5535 | |
5536 | ||
d7040cdb | 5537 | |
d7040cdb | 5538 | |
42ecbf5e | 5539 | |
d7040cdb | 5540 | |
252b5132 | 5541 | |
252b5132 | 5542 | |
252b5132 | 5543 | |
252b5132 RH |
5544 | |
5545 | ||
ce2cded5 | 5546 | |
b214d478 | 5547 | ltmain="$ac_aux_dir/ltmain.sh" |
ce2cded5 | 5548 | |
3725885a RW |
5549 | # Backslashify metacharacters that are still active within |
5550 | # double-quoted strings. | |
5551 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5552 | ||
5553 | # Same as above, but do not quote variable references. | |
5554 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5555 | ||
5556 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5557 | # double_quote_subst'ed string. | |
5558 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5559 | ||
5560 | # Sed substitution to delay expansion of an escaped single quote. | |
5561 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5562 | ||
5563 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5564 | no_glob_subst='s/\*/\\\*/g' | |
5565 | ||
5566 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5567 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5568 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5569 | ||
5570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5571 | $as_echo_n "checking how to print strings... " >&6; } | |
5572 | # Test print first, because it will be a builtin if present. | |
5573 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5574 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5575 | ECHO='print -r --' | |
5576 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5577 | ECHO='printf %s\n' | |
5578 | else | |
5579 | # Use this function as a fallback that always works. | |
5580 | func_fallback_echo () | |
5581 | { | |
5582 | eval 'cat <<_LTECHO_EOF | |
5583 | $1 | |
5584 | _LTECHO_EOF' | |
5585 | } | |
5586 | ECHO='func_fallback_echo' | |
5587 | fi | |
5588 | ||
5589 | # func_echo_all arg... | |
5590 | # Invoke $ECHO with all args, space-separated. | |
5591 | func_echo_all () | |
5592 | { | |
5593 | $ECHO "" | |
5594 | } | |
5595 | ||
5596 | case "$ECHO" in | |
5597 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5598 | $as_echo "printf" >&6; } ;; | |
5599 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5600 | $as_echo "print -r" >&6; } ;; | |
5601 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5602 | $as_echo "cat" >&6; } ;; | |
5603 | esac | |
5604 | ||
5605 | ||
5606 | ||
5607 | ||
5608 | ||
5609 | ||
5610 | ||
5611 | ||
5612 | ||
5613 | ||
5614 | ||
5615 | ||
5616 | ||
5617 | ||
81ecdfbb RW |
5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5619 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 5620 | if ${ac_cv_path_SED+:} false; then : |
81ecdfbb RW |
5621 | $as_echo_n "(cached) " >&6 |
5622 | else | |
5623 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5624 | for ac_i in 1 2 3 4 5 6 7; do | |
5625 | ac_script="$ac_script$as_nl$ac_script" | |
5626 | done | |
5627 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5628 | { ac_script=; unset ac_script;} | |
5629 | if test -z "$SED"; then | |
5630 | ac_path_SED_found=false | |
5631 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
5633 | for as_dir in $PATH |
5634 | do | |
5635 | IFS=$as_save_IFS | |
5636 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5637 | for ac_prog in sed gsed; do |
7357c5b6 | 5638 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb | 5639 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
d0ac1c44 | 5640 | as_fn_executable_p "$ac_path_SED" || continue |
81ecdfbb RW |
5641 | # Check for GNU ac_path_SED and select it if it is found. |
5642 | # Check for GNU $ac_path_SED | |
5643 | case `"$ac_path_SED" --version 2>&1` in | |
5644 | *GNU*) | |
5645 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5646 | *) | |
5647 | ac_count=0 | |
5648 | $as_echo_n 0123456789 >"conftest.in" | |
5649 | while : | |
5650 | do | |
5651 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5652 | mv "conftest.tmp" "conftest.in" | |
5653 | cp "conftest.in" "conftest.nl" | |
5654 | $as_echo '' >> "conftest.nl" | |
5655 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5656 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5657 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5658 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5659 | # Best one so far, save it but keep looking for a better one | |
5660 | ac_cv_path_SED="$ac_path_SED" | |
5661 | ac_path_SED_max=$ac_count | |
5662 | fi | |
5663 | # 10*(2^10) chars as input seems more than enough | |
5664 | test $ac_count -gt 10 && break | |
5665 | done | |
5666 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5667 | esac | |
5668 | ||
5669 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
5670 | done |
5671 | done | |
81ecdfbb | 5672 | done |
7357c5b6 | 5673 | IFS=$as_save_IFS |
81ecdfbb | 5674 | if test -z "$ac_cv_path_SED"; then |
d0ac1c44 | 5675 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
ce2cded5 | 5676 | fi |
81ecdfbb RW |
5677 | else |
5678 | ac_cv_path_SED=$SED | |
7357c5b6 | 5679 | fi |
20e95c23 | 5680 | |
81ecdfbb RW |
5681 | fi |
5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5683 | $as_echo "$ac_cv_path_SED" >&6; } | |
5684 | SED="$ac_cv_path_SED" | |
5685 | rm -f conftest.sed | |
20e95c23 | 5686 | |
7357c5b6 AM |
5687 | test -z "$SED" && SED=sed |
5688 | Xsed="$SED -e 1s/^X//" | |
20e95c23 DJ |
5689 | |
5690 | ||
5691 | ||
5692 | ||
5693 | ||
5694 | ||
20e95c23 | 5695 | |
20e95c23 | 5696 | |
d7040cdb | 5697 | |
d7040cdb | 5698 | |
7357c5b6 | 5699 | |
81ecdfbb RW |
5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5701 | $as_echo_n "checking for fgrep... " >&6; } | |
d0ac1c44 | 5702 | if ${ac_cv_path_FGREP+:} false; then : |
81ecdfbb | 5703 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 5704 | else |
81ecdfbb RW |
5705 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5706 | then ac_cv_path_FGREP="$GREP -F" | |
5707 | else | |
5708 | if test -z "$FGREP"; then | |
5709 | ac_path_FGREP_found=false | |
5710 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5712 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5713 | do | |
5714 | IFS=$as_save_IFS | |
5715 | test -z "$as_dir" && as_dir=. | |
5716 | for ac_prog in fgrep; do | |
5717 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5718 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 5719 | as_fn_executable_p "$ac_path_FGREP" || continue |
81ecdfbb RW |
5720 | # Check for GNU ac_path_FGREP and select it if it is found. |
5721 | # Check for GNU $ac_path_FGREP | |
5722 | case `"$ac_path_FGREP" --version 2>&1` in | |
5723 | *GNU*) | |
5724 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5725 | *) | |
5726 | ac_count=0 | |
5727 | $as_echo_n 0123456789 >"conftest.in" | |
5728 | while : | |
5729 | do | |
5730 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5731 | mv "conftest.tmp" "conftest.in" | |
5732 | cp "conftest.in" "conftest.nl" | |
5733 | $as_echo 'FGREP' >> "conftest.nl" | |
5734 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5735 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5736 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5737 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5738 | # Best one so far, save it but keep looking for a better one | |
5739 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5740 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 5741 | fi |
81ecdfbb RW |
5742 | # 10*(2^10) chars as input seems more than enough |
5743 | test $ac_count -gt 10 && break | |
5744 | done | |
5745 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5746 | esac | |
5747 | ||
5748 | $ac_path_FGREP_found && break 3 | |
5749 | done | |
5750 | done | |
5751 | done | |
5752 | IFS=$as_save_IFS | |
5753 | if test -z "$ac_cv_path_FGREP"; then | |
d0ac1c44 | 5754 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
5755 | fi |
5756 | else | |
5757 | ac_cv_path_FGREP=$FGREP | |
5758 | fi | |
5759 | ||
5760 | fi | |
20e95c23 | 5761 | fi |
81ecdfbb RW |
5762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5763 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5764 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
5765 | |
5766 | ||
5767 | test -z "$GREP" && GREP=grep | |
5768 | ||
d7040cdb SE |
5769 | |
5770 | ||
5771 | ||
5772 | ||
5773 | ||
5774 | ||
5775 | ||
5776 | ||
5777 | ||
5778 | ||
5779 | ||
20e95c23 | 5780 | |
ce2cded5 | 5781 | |
d7040cdb | 5782 | |
7357c5b6 AM |
5783 | |
5784 | ||
5785 | ||
5786 | ||
81ecdfbb RW |
5787 | # Check whether --with-gnu-ld was given. |
5788 | if test "${with_gnu_ld+set}" = set; then : | |
5789 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7357c5b6 AM |
5790 | else |
5791 | with_gnu_ld=no | |
81ecdfbb RW |
5792 | fi |
5793 | ||
7357c5b6 AM |
5794 | ac_prog=ld |
5795 | if test "$GCC" = yes; then | |
5796 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5798 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
7357c5b6 AM |
5799 | case $host in |
5800 | *-*-mingw*) | |
5801 | # gcc leaves a trailing carriage return which upsets mingw | |
5802 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5803 | *) | |
5804 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5805 | esac | |
5806 | case $ac_prog in | |
5807 | # Accept absolute paths. | |
5808 | [\\/]* | ?:[\\/]*) | |
5809 | re_direlt='/[^/][^/]*/\.\./' | |
5810 | # Canonicalize the pathname of ld | |
5811 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5812 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5813 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5814 | done | |
5815 | test -z "$LD" && LD="$ac_prog" | |
5816 | ;; | |
5817 | "") | |
5818 | # If it fails, then pretend we aren't using GCC. | |
5819 | ac_prog=ld | |
5820 | ;; | |
5821 | *) | |
5822 | # If it is relative, then search for the first ld in PATH. | |
5823 | with_gnu_ld=unknown | |
5824 | ;; | |
5825 | esac | |
5826 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5828 | $as_echo_n "checking for GNU ld... " >&6; } | |
7357c5b6 | 5829 | else |
81ecdfbb RW |
5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5831 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
ce2cded5 | 5832 | fi |
d0ac1c44 | 5833 | if ${lt_cv_path_LD+:} false; then : |
81ecdfbb | 5834 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 5835 | else |
7357c5b6 AM |
5836 | if test -z "$LD"; then |
5837 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5838 | for ac_dir in $PATH; do | |
5839 | IFS="$lt_save_ifs" | |
5840 | test -z "$ac_dir" && ac_dir=. | |
5841 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5842 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5843 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5844 | # but apparently some variants of GNU ld only accept -v. | |
5845 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5846 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5847 | *GNU* | *'with BFD'*) | |
5848 | test "$with_gnu_ld" != no && break | |
5849 | ;; | |
5850 | *) | |
5851 | test "$with_gnu_ld" != yes && break | |
5852 | ;; | |
5853 | esac | |
5854 | fi | |
5855 | done | |
5856 | IFS="$lt_save_ifs" | |
ce2cded5 | 5857 | else |
7357c5b6 | 5858 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
ce2cded5 L |
5859 | fi |
5860 | fi | |
7357c5b6 AM |
5861 | |
5862 | LD="$lt_cv_path_LD" | |
5863 | if test -n "$LD"; then | |
81ecdfbb RW |
5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5865 | $as_echo "$LD" >&6; } | |
ce2cded5 | 5866 | else |
81ecdfbb RW |
5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5868 | $as_echo "no" >&6; } | |
ce2cded5 | 5869 | fi |
d0ac1c44 | 5870 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
81ecdfbb RW |
5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
5872 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d0ac1c44 | 5873 | if ${lt_cv_prog_gnu_ld+:} false; then : |
81ecdfbb | 5874 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 5875 | else |
7357c5b6 AM |
5876 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5877 | case `$LD -v 2>&1 </dev/null` in | |
5878 | *GNU* | *'with BFD'*) | |
5879 | lt_cv_prog_gnu_ld=yes | |
5880 | ;; | |
5881 | *) | |
5882 | lt_cv_prog_gnu_ld=no | |
5883 | ;; | |
5884 | esac | |
ce2cded5 | 5885 | fi |
81ecdfbb RW |
5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5887 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
7357c5b6 | 5888 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d7040cdb SE |
5889 | |
5890 | ||
5891 | ||
5892 | ||
5893 | ||
5894 | ||
5895 | ||
5896 | ||
5897 | ||
81ecdfbb RW |
5898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5899 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
d0ac1c44 | 5900 | if ${lt_cv_path_NM+:} false; then : |
81ecdfbb | 5901 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 5902 | else |
7357c5b6 | 5903 | if test -n "$NM"; then |
b9004024 NA |
5904 | # Let the user override the nm to test. |
5905 | lt_nm_to_check="$NM" | |
5906 | else | |
5907 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5908 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5909 | lt_nm_to_check="$lt_nm_to_check nm" | |
5910 | fi | |
5911 | fi | |
caf606c9 | 5912 | for lt_tmp_nm in "$lt_nm_to_check"; do |
b9004024 NA |
5913 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
5914 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5915 | IFS="$lt_save_ifs" | |
5916 | test -z "$ac_dir" && ac_dir=. | |
caf606c9 NA |
5917 | # Strip out any user-provided options from the nm to test twice, |
5918 | # the first time to test to see if nm (rather than its options) has | |
5919 | # an explicit path, the second time to yield a file which can be | |
5920 | # nm'ed itself. | |
5921 | tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" | |
5922 | case "$tmp_nm_path" in | |
b9004024 NA |
5923 | */*|*\\*) tmp_nm="$lt_tmp_nm";; |
5924 | *) tmp_nm="$ac_dir/$lt_tmp_nm";; | |
5925 | esac | |
caf606c9 NA |
5926 | tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" |
5927 | if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then | |
b9004024 NA |
5928 | # Check to see if the nm accepts a BSD-compat flag. |
5929 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5930 | # nm: unknown option "B" ignored | |
caf606c9 | 5931 | case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
b9004024 NA |
5932 | *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" |
5933 | break | |
5934 | ;; | |
5935 | *) | |
caf606c9 | 5936 | case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
b9004024 NA |
5937 | *$tmp_nm*) |
5938 | lt_cv_path_NM="$tmp_nm -p" | |
5939 | break | |
5940 | ;; | |
5941 | *) | |
5942 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5943 | continue # so that we can try to find one that supports BSD flags | |
5944 | ;; | |
5945 | esac | |
5946 | ;; | |
5947 | esac | |
5948 | fi | |
5949 | done | |
5950 | IFS="$lt_save_ifs" | |
5951 | done | |
5952 | : ${lt_cv_path_NM=no} | |
ce2cded5 | 5953 | fi |
81ecdfbb RW |
5954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5955 | $as_echo "$lt_cv_path_NM" >&6; } | |
7357c5b6 AM |
5956 | if test "$lt_cv_path_NM" != "no"; then |
5957 | NM="$lt_cv_path_NM" | |
ce2cded5 | 5958 | else |
7357c5b6 | 5959 | # Didn't find any BSD compatible name lister, look for dumpbin. |
3725885a RW |
5960 | if test -n "$DUMPBIN"; then : |
5961 | # Let the user override the test. | |
5962 | else | |
5963 | if test -n "$ac_tool_prefix"; then | |
5964 | for ac_prog in dumpbin "link -dump" | |
7357c5b6 AM |
5965 | do |
5966 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5967 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5969 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5970 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
81ecdfbb | 5971 | $as_echo_n "(cached) " >&6 |
20e95c23 | 5972 | else |
7357c5b6 AM |
5973 | if test -n "$DUMPBIN"; then |
5974 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
5975 | else |
5976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5977 | for as_dir in $PATH | |
5978 | do | |
5979 | IFS=$as_save_IFS | |
5980 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5981 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5982 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 5983 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5985 | break 2 |
5986 | fi | |
5987 | done | |
81ecdfbb RW |
5988 | done |
5989 | IFS=$as_save_IFS | |
d7040cdb | 5990 | |
20e95c23 | 5991 | fi |
ce2cded5 | 5992 | fi |
7357c5b6 AM |
5993 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5994 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
5995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5996 | $as_echo "$DUMPBIN" >&6; } | |
42ecbf5e | 5997 | else |
81ecdfbb RW |
5998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5999 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
6000 | fi |
6001 | ||
81ecdfbb | 6002 | |
7357c5b6 AM |
6003 | test -n "$DUMPBIN" && break |
6004 | done | |
ce2cded5 | 6005 | fi |
7357c5b6 AM |
6006 | if test -z "$DUMPBIN"; then |
6007 | ac_ct_DUMPBIN=$DUMPBIN | |
3725885a | 6008 | for ac_prog in dumpbin "link -dump" |
7357c5b6 AM |
6009 | do |
6010 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6011 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6013 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6014 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
81ecdfbb | 6015 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 6016 | else |
7357c5b6 AM |
6017 | if test -n "$ac_ct_DUMPBIN"; then |
6018 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
6019 | else |
6020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6021 | for as_dir in $PATH | |
6022 | do | |
6023 | IFS=$as_save_IFS | |
6024 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6025 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6026 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 6027 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 6028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6029 | break 2 |
6030 | fi | |
6031 | done | |
81ecdfbb RW |
6032 | done |
6033 | IFS=$as_save_IFS | |
d7040cdb | 6034 | |
ce2cded5 L |
6035 | fi |
6036 | fi | |
7357c5b6 AM |
6037 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
6038 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
6039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
6040 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ce2cded5 | 6041 | else |
81ecdfbb RW |
6042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6043 | $as_echo "no" >&6; } | |
ce2cded5 | 6044 | fi |
d7040cdb | 6045 | |
81ecdfbb | 6046 | |
7357c5b6 | 6047 | test -n "$ac_ct_DUMPBIN" && break |
ce2cded5 | 6048 | done |
d7040cdb | 6049 | |
81ecdfbb RW |
6050 | if test "x$ac_ct_DUMPBIN" = x; then |
6051 | DUMPBIN=":" | |
6052 | else | |
6053 | case $cross_compiling:$ac_tool_warned in | |
6054 | yes:) | |
6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6056 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6057 | ac_tool_warned=yes ;; | |
6058 | esac | |
6059 | DUMPBIN=$ac_ct_DUMPBIN | |
6060 | fi | |
ce2cded5 | 6061 | fi |
7357c5b6 | 6062 | |
3725885a RW |
6063 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
6064 | *COFF*) | |
6065 | DUMPBIN="$DUMPBIN -symbols" | |
6066 | ;; | |
6067 | *) | |
6068 | DUMPBIN=: | |
6069 | ;; | |
6070 | esac | |
6071 | fi | |
7357c5b6 AM |
6072 | |
6073 | if test "$DUMPBIN" != ":"; then | |
6074 | NM="$DUMPBIN" | |
6075 | fi | |
ce2cded5 | 6076 | fi |
7357c5b6 AM |
6077 | test -z "$NM" && NM=nm |
6078 | ||
6079 | ||
6080 | ||
6081 | ||
6082 | ||
6083 | ||
81ecdfbb RW |
6084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
6085 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
d0ac1c44 | 6086 | if ${lt_cv_nm_interface+:} false; then : |
81ecdfbb | 6087 | $as_echo_n "(cached) " >&6 |
20e95c23 | 6088 | else |
7357c5b6 AM |
6089 | lt_cv_nm_interface="BSD nm" |
6090 | echo "int some_variable = 0;" > conftest.$ac_ext | |
3725885a | 6091 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
7357c5b6 AM |
6092 | (eval "$ac_compile" 2>conftest.err) |
6093 | cat conftest.err >&5 | |
3725885a | 6094 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
7357c5b6 AM |
6095 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
6096 | cat conftest.err >&5 | |
3725885a | 6097 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
7357c5b6 AM |
6098 | cat conftest.out >&5 |
6099 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6100 | lt_cv_nm_interface="MS dumpbin" | |
6101 | fi | |
6102 | rm -f conftest* | |
20e95c23 | 6103 | fi |
81ecdfbb RW |
6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
6105 | $as_echo "$lt_cv_nm_interface" >&6; } | |
20e95c23 | 6106 | |
81ecdfbb RW |
6107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
6108 | $as_echo_n "checking whether ln -s works... " >&6; } | |
7357c5b6 AM |
6109 | LN_S=$as_ln_s |
6110 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6112 | $as_echo "yes" >&6; } | |
ce2cded5 | 6113 | else |
81ecdfbb RW |
6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
6115 | $as_echo "no, using $LN_S" >&6; } | |
d7040cdb | 6116 | fi |
20e95c23 | 6117 | |
7357c5b6 | 6118 | # find the maximum length of command line arguments |
81ecdfbb RW |
6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
6120 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
d0ac1c44 | 6121 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
81ecdfbb | 6122 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
6123 | else |
6124 | i=0 | |
6125 | teststring="ABCD" | |
20e95c23 | 6126 | |
7357c5b6 AM |
6127 | case $build_os in |
6128 | msdosdjgpp*) | |
6129 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6130 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6131 | # during glob expansion). Even if it were fixed, the result of this | |
6132 | # check would be larger than it should be. | |
6133 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6134 | ;; | |
20e95c23 | 6135 | |
7357c5b6 AM |
6136 | gnu*) |
6137 | # Under GNU Hurd, this test is not required because there is | |
6138 | # no limit to the length of command line arguments. | |
6139 | # Libtool will interpret -1 as no limit whatsoever | |
6140 | lt_cv_sys_max_cmd_len=-1; | |
6141 | ;; | |
20e95c23 | 6142 | |
b214d478 | 6143 | cygwin* | mingw* | cegcc*) |
7357c5b6 AM |
6144 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6145 | # about 5 minutes as the teststring grows exponentially. | |
6146 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6147 | # you end up with a "frozen" computer, even though with patience | |
6148 | # the test eventually succeeds (with a max line length of 256k). | |
6149 | # Instead, let's just punt: use the minimum linelength reported by | |
6150 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6151 | lt_cv_sys_max_cmd_len=8192; | |
6152 | ;; | |
20e95c23 | 6153 | |
3725885a RW |
6154 | mint*) |
6155 | # On MiNT this can take a long time and run out of memory. | |
6156 | lt_cv_sys_max_cmd_len=8192; | |
6157 | ;; | |
6158 | ||
7357c5b6 AM |
6159 | amigaos*) |
6160 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6161 | # So we just punt and use a minimum line length of 8192. | |
6162 | lt_cv_sys_max_cmd_len=8192; | |
6163 | ;; | |
20e95c23 | 6164 | |
7357c5b6 AM |
6165 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6166 | # This has been around since 386BSD, at least. Likely further. | |
6167 | if test -x /sbin/sysctl; then | |
6168 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6169 | elif test -x /usr/sbin/sysctl; then | |
6170 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6171 | else | |
6172 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6173 | fi | |
6174 | # And add a safety zone | |
6175 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6176 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6177 | ;; | |
d7040cdb | 6178 | |
7357c5b6 AM |
6179 | interix*) |
6180 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6181 | lt_cv_sys_max_cmd_len=196608 | |
6182 | ;; | |
d7040cdb | 6183 | |
7357c5b6 AM |
6184 | osf*) |
6185 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6186 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6187 | # nice to cause kernel panics so lets avoid the loop below. | |
6188 | # First set a reasonable default. | |
6189 | lt_cv_sys_max_cmd_len=16384 | |
6190 | # | |
6191 | if test -x /sbin/sysconfig; then | |
6192 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6193 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6194 | esac | |
6195 | fi | |
6196 | ;; | |
6197 | sco3.2v5*) | |
6198 | lt_cv_sys_max_cmd_len=102400 | |
6199 | ;; | |
6200 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6201 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6202 | if test -n "$kargmax"; then | |
6203 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6204 | else | |
6205 | lt_cv_sys_max_cmd_len=32768 | |
6206 | fi | |
ce2cded5 L |
6207 | ;; |
6208 | *) | |
b214d478 SE |
6209 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6210 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
7357c5b6 AM |
6211 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6212 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6213 | else | |
6214 | # Make teststring a little bigger before we do anything with it. | |
6215 | # a 1K string should be a reasonable start. | |
6216 | for i in 1 2 3 4 5 6 7 8 ; do | |
6217 | teststring=$teststring$teststring | |
6218 | done | |
6219 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6220 | # If test is not a shell built-in, we'll probably end up computing a | |
6221 | # maximum length that is only half of the actual maximum length, but | |
6222 | # we can't tell. | |
3725885a RW |
6223 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
6224 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
7357c5b6 AM |
6225 | test $i != 17 # 1/2 MB should be enough |
6226 | do | |
6227 | i=`expr $i + 1` | |
6228 | teststring=$teststring$teststring | |
6229 | done | |
6230 | # Only check the string length outside the loop. | |
6231 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6232 | teststring= | |
6233 | # Add a significant safety factor because C++ compilers can tack on | |
6234 | # massive amounts of additional arguments before passing them to the | |
6235 | # linker. It appears as though 1/2 is a usable value. | |
6236 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6237 | fi | |
ce2cded5 L |
6238 | ;; |
6239 | esac | |
d7040cdb | 6240 | |
7357c5b6 | 6241 | fi |
d7040cdb | 6242 | |
7357c5b6 | 6243 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
6244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
6245 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
7357c5b6 | 6246 | else |
81ecdfbb RW |
6247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
6248 | $as_echo "none" >&6; } | |
7357c5b6 AM |
6249 | fi |
6250 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
d7040cdb SE |
6251 | |
6252 | ||
6253 | ||
6254 | ||
6255 | ||
d7040cdb | 6256 | |
7357c5b6 AM |
6257 | : ${CP="cp -f"} |
6258 | : ${MV="mv -f"} | |
6259 | : ${RM="rm -f"} | |
d7040cdb | 6260 | |
81ecdfbb RW |
6261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
6262 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
7357c5b6 AM |
6263 | # Try some XSI features |
6264 | xsi_shell=no | |
6265 | ( _lt_dummy="a/b/c" | |
6266 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
b214d478 SE |
6267 | = c,a/b,, \ |
6268 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6269 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
7357c5b6 | 6270 | && xsi_shell=yes |
81ecdfbb RW |
6271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
6272 | $as_echo "$xsi_shell" >&6; } | |
d7040cdb | 6273 | |
d7040cdb | 6274 | |
81ecdfbb RW |
6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
6276 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
7357c5b6 AM |
6277 | lt_shell_append=no |
6278 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6279 | >/dev/null 2>&1 \ | |
6280 | && lt_shell_append=yes | |
81ecdfbb RW |
6281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
6282 | $as_echo "$lt_shell_append" >&6; } | |
d7040cdb SE |
6283 | |
6284 | ||
7357c5b6 AM |
6285 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6286 | lt_unset=unset | |
6287 | else | |
6288 | lt_unset=false | |
6289 | fi | |
d7040cdb | 6290 | |
d7040cdb | 6291 | |
d7040cdb | 6292 | |
d7040cdb | 6293 | |
d7040cdb | 6294 | |
7357c5b6 AM |
6295 | # test EBCDIC or ASCII |
6296 | case `echo X|tr X '\101'` in | |
6297 | A) # ASCII based system | |
6298 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6299 | lt_SP2NL='tr \040 \012' | |
6300 | lt_NL2SP='tr \015\012 \040\040' | |
6301 | ;; | |
6302 | *) # EBCDIC based system | |
6303 | lt_SP2NL='tr \100 \n' | |
6304 | lt_NL2SP='tr \r\n \100\100' | |
6305 | ;; | |
6306 | esac | |
42ecbf5e | 6307 | |
d7040cdb SE |
6308 | |
6309 | ||
6310 | ||
6311 | ||
6312 | ||
6313 | ||
d7040cdb | 6314 | |
d7040cdb | 6315 | |
81ecdfbb RW |
6316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6317 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
d0ac1c44 | 6318 | if ${lt_cv_ld_reload_flag+:} false; then : |
81ecdfbb | 6319 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
6320 | else |
6321 | lt_cv_ld_reload_flag='-r' | |
6322 | fi | |
81ecdfbb RW |
6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
6324 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
7357c5b6 AM |
6325 | reload_flag=$lt_cv_ld_reload_flag |
6326 | case $reload_flag in | |
6327 | "" | " "*) ;; | |
6328 | *) reload_flag=" $reload_flag" ;; | |
6329 | esac | |
6330 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6331 | case $host_os in | |
6332 | darwin*) | |
6333 | if test "$GCC" = yes; then | |
6334 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6335 | else | |
6336 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6337 | fi | |
6338 | ;; | |
6339 | esac | |
d7040cdb | 6340 | |
d7040cdb | 6341 | |
d7040cdb | 6342 | |
d7040cdb | 6343 | |
d7040cdb | 6344 | |
d7040cdb | 6345 | |
d7040cdb | 6346 | |
d7040cdb | 6347 | |
d7040cdb | 6348 | |
b214d478 SE |
6349 | if test -n "$ac_tool_prefix"; then |
6350 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6351 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
6352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6353 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6354 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 6355 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
6356 | else |
6357 | if test -n "$OBJDUMP"; then | |
6358 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6359 | else | |
6360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6361 | for as_dir in $PATH | |
6362 | do | |
6363 | IFS=$as_save_IFS | |
6364 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6365 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6366 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 6367 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 6368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
6369 | break 2 |
6370 | fi | |
6371 | done | |
81ecdfbb RW |
6372 | done |
6373 | IFS=$as_save_IFS | |
b214d478 SE |
6374 | |
6375 | fi | |
6376 | fi | |
6377 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6378 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
6379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
6380 | $as_echo "$OBJDUMP" >&6; } | |
b214d478 | 6381 | else |
81ecdfbb RW |
6382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6383 | $as_echo "no" >&6; } | |
b214d478 SE |
6384 | fi |
6385 | ||
81ecdfbb | 6386 | |
b214d478 SE |
6387 | fi |
6388 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6389 | ac_ct_OBJDUMP=$OBJDUMP | |
6390 | # Extract the first word of "objdump", so it can be a program name with args. | |
6391 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
6392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6393 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6394 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
81ecdfbb | 6395 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
6396 | else |
6397 | if test -n "$ac_ct_OBJDUMP"; then | |
6398 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6399 | else | |
6400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6401 | for as_dir in $PATH | |
6402 | do | |
6403 | IFS=$as_save_IFS | |
6404 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6405 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6406 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 6407 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 6408 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
6409 | break 2 |
6410 | fi | |
6411 | done | |
81ecdfbb RW |
6412 | done |
6413 | IFS=$as_save_IFS | |
b214d478 | 6414 | |
b214d478 SE |
6415 | fi |
6416 | fi | |
6417 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6418 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
6419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
6420 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
b214d478 | 6421 | else |
81ecdfbb RW |
6422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6423 | $as_echo "no" >&6; } | |
b214d478 SE |
6424 | fi |
6425 | ||
81ecdfbb RW |
6426 | if test "x$ac_ct_OBJDUMP" = x; then |
6427 | OBJDUMP="false" | |
6428 | else | |
6429 | case $cross_compiling:$ac_tool_warned in | |
6430 | yes:) | |
6431 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6432 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6433 | ac_tool_warned=yes ;; | |
6434 | esac | |
6435 | OBJDUMP=$ac_ct_OBJDUMP | |
6436 | fi | |
b214d478 SE |
6437 | else |
6438 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6439 | fi | |
6440 | ||
6441 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6442 | ||
6443 | ||
6444 | ||
6445 | ||
6446 | ||
6447 | ||
6448 | ||
6449 | ||
d7040cdb | 6450 | |
81ecdfbb RW |
6451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6452 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
d0ac1c44 | 6453 | if ${lt_cv_deplibs_check_method+:} false; then : |
81ecdfbb | 6454 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 6455 | else |
7357c5b6 AM |
6456 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6457 | lt_cv_file_magic_test_file= | |
6458 | lt_cv_deplibs_check_method='unknown' | |
6459 | # Need to set the preceding variable on all platforms that support | |
6460 | # interlibrary dependencies. | |
6461 | # 'none' -- dependencies not supported. | |
6462 | # `unknown' -- same as none, but documents that we really don't know. | |
6463 | # 'pass_all' -- all dependencies passed with no checks. | |
6464 | # 'test_compile' -- check by making test program. | |
6465 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6466 | # which responds to the $file_magic_cmd with a given extended regex. | |
6467 | # If you have `file' or equivalent on your system and you're not sure | |
6468 | # whether `pass_all' will *always* work, you probably want this one. | |
d7040cdb | 6469 | |
ce2cded5 | 6470 | case $host_os in |
7357c5b6 AM |
6471 | aix[4-9]*) |
6472 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6473 | ;; |
7357c5b6 AM |
6474 | |
6475 | beos*) | |
6476 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6477 | ;; |
7357c5b6 AM |
6478 | |
6479 | bsdi[45]*) | |
6480 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6481 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6482 | lt_cv_file_magic_test_file=/shlib/libc.so | |
ce2cded5 | 6483 | ;; |
7357c5b6 AM |
6484 | |
6485 | cygwin*) | |
6486 | # func_win32_libid is a shell function defined in ltmain.sh | |
6487 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6488 | lt_cv_file_magic_cmd='func_win32_libid' | |
ce2cded5 | 6489 | ;; |
7357c5b6 AM |
6490 | |
6491 | mingw* | pw32*) | |
6492 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6493 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6494 | # unless we find 'file', for example because we are cross-compiling. | |
3725885a RW |
6495 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
6496 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
7357c5b6 AM |
6497 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6498 | lt_cv_file_magic_cmd='func_win32_libid' | |
6499 | else | |
6500 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6501 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6502 | fi | |
ce2cded5 | 6503 | ;; |
7357c5b6 | 6504 | |
3725885a | 6505 | cegcc*) |
b214d478 SE |
6506 | # use the weaker test based on 'objdump'. See mingw*. |
6507 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6508 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6509 | ;; | |
6510 | ||
7357c5b6 AM |
6511 | darwin* | rhapsody*) |
6512 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6513 | ;; |
7357c5b6 AM |
6514 | |
6515 | freebsd* | dragonfly*) | |
6516 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6517 | case $host_cpu in | |
6518 | i*86 ) | |
6519 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6520 | # Let's accept both of them until this is cleared up. | |
6521 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6522 | lt_cv_file_magic_cmd=/usr/bin/file | |
6523 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6524 | ;; | |
6525 | esac | |
6526 | else | |
6527 | lt_cv_deplibs_check_method=pass_all | |
6528 | fi | |
ce2cded5 | 6529 | ;; |
7357c5b6 AM |
6530 | |
6531 | gnu*) | |
6532 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6533 | ;; |
7357c5b6 | 6534 | |
3725885a RW |
6535 | haiku*) |
6536 | lt_cv_deplibs_check_method=pass_all | |
6537 | ;; | |
6538 | ||
7357c5b6 AM |
6539 | hpux10.20* | hpux11*) |
6540 | lt_cv_file_magic_cmd=/usr/bin/file | |
6541 | case $host_cpu in | |
6542 | ia64*) | |
6543 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6544 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6545 | ;; | |
6546 | hppa*64*) | |
3725885a | 6547 | 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]' |
7357c5b6 AM |
6548 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
6549 | ;; | |
6550 | *) | |
3725885a | 6551 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
7357c5b6 AM |
6552 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
6553 | ;; | |
6554 | esac | |
ce2cded5 | 6555 | ;; |
d7040cdb | 6556 | |
7357c5b6 AM |
6557 | interix[3-9]*) |
6558 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6559 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6560 | ;; | |
d7040cdb | 6561 | |
7357c5b6 AM |
6562 | irix5* | irix6* | nonstopux*) |
6563 | case $LD in | |
6564 | *-32|*"-32 ") libmagic=32-bit;; | |
6565 | *-n32|*"-n32 ") libmagic=N32;; | |
6566 | *-64|*"-64 ") libmagic=64-bit;; | |
6567 | *) libmagic=never-match;; | |
6568 | esac | |
6569 | lt_cv_deplibs_check_method=pass_all | |
6570 | ;; | |
d7040cdb | 6571 | |
7357c5b6 | 6572 | # This must be Linux ELF. |
6a6859cb | 6573 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
7357c5b6 AM |
6574 | lt_cv_deplibs_check_method=pass_all |
6575 | ;; | |
d7040cdb | 6576 | |
7357c5b6 AM |
6577 | netbsd*) |
6578 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6579 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6580 | else | |
6581 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6582 | fi | |
ce2cded5 | 6583 | ;; |
d7040cdb | 6584 | |
7357c5b6 AM |
6585 | newos6*) |
6586 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6587 | lt_cv_file_magic_cmd=/usr/bin/file | |
6588 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6589 | ;; | |
d7040cdb | 6590 | |
7357c5b6 AM |
6591 | *nto* | *qnx*) |
6592 | lt_cv_deplibs_check_method=pass_all | |
6593 | ;; | |
d7040cdb | 6594 | |
7357c5b6 AM |
6595 | openbsd*) |
6596 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6597 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
ce2cded5 | 6598 | else |
7357c5b6 | 6599 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
ce2cded5 | 6600 | fi |
7357c5b6 | 6601 | ;; |
d7040cdb | 6602 | |
7357c5b6 AM |
6603 | osf3* | osf4* | osf5*) |
6604 | lt_cv_deplibs_check_method=pass_all | |
6605 | ;; | |
d7040cdb | 6606 | |
7357c5b6 AM |
6607 | rdos*) |
6608 | lt_cv_deplibs_check_method=pass_all | |
6609 | ;; | |
d7040cdb | 6610 | |
7357c5b6 AM |
6611 | solaris*) |
6612 | lt_cv_deplibs_check_method=pass_all | |
6613 | ;; | |
d7040cdb | 6614 | |
7357c5b6 AM |
6615 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6616 | lt_cv_deplibs_check_method=pass_all | |
6617 | ;; | |
d7040cdb | 6618 | |
7357c5b6 AM |
6619 | sysv4 | sysv4.3*) |
6620 | case $host_vendor in | |
6621 | motorola) | |
6622 | 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]' | |
6623 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6624 | ;; | |
6625 | ncr) | |
6626 | lt_cv_deplibs_check_method=pass_all | |
6627 | ;; | |
6628 | sequent) | |
6629 | lt_cv_file_magic_cmd='/bin/file' | |
6630 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6631 | ;; | |
6632 | sni) | |
6633 | lt_cv_file_magic_cmd='/bin/file' | |
6634 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6635 | lt_cv_file_magic_test_file=/lib/libc.so | |
6636 | ;; | |
6637 | siemens) | |
6638 | lt_cv_deplibs_check_method=pass_all | |
6639 | ;; | |
6640 | pc) | |
6641 | lt_cv_deplibs_check_method=pass_all | |
6642 | ;; | |
6643 | esac | |
6644 | ;; | |
d7040cdb | 6645 | |
7357c5b6 AM |
6646 | tpf*) |
6647 | lt_cv_deplibs_check_method=pass_all | |
6648 | ;; | |
6a6859cb AM |
6649 | vxworks*) |
6650 | # Assume VxWorks cross toolchains are built on Linux, possibly | |
6651 | # as canadian for Windows hosts. | |
6652 | lt_cv_deplibs_check_method=pass_all | |
6653 | ;; | |
7357c5b6 | 6654 | esac |
d7040cdb | 6655 | |
7357c5b6 | 6656 | fi |
81ecdfbb RW |
6657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6658 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
7357c5b6 AM |
6659 | file_magic_cmd=$lt_cv_file_magic_cmd |
6660 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6661 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb SE |
6662 | |
6663 | ||
6664 | ||
7357c5b6 AM |
6665 | |
6666 | ||
6667 | ||
6668 | ||
6669 | ||
6670 | ||
6671 | ||
6672 | ||
6673 | ||
a4966cd9 L |
6674 | plugin_option= |
6675 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
6676 | for plugin in $plugin_names; do | |
6677 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
6678 | if test x$plugin_so = x$plugin; then | |
6679 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
6680 | fi | |
6681 | if test x$plugin_so != x$plugin; then | |
6682 | plugin_option="--plugin $plugin_so" | |
6683 | break | |
6684 | fi | |
6685 | done | |
6686 | ||
7357c5b6 AM |
6687 | if test -n "$ac_tool_prefix"; then |
6688 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6689 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
6690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6691 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6692 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 6693 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
6694 | else |
6695 | if test -n "$AR"; then | |
6696 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6697 | else | |
6698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6699 | for as_dir in $PATH | |
6700 | do | |
6701 | IFS=$as_save_IFS | |
6702 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6703 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6704 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 6705 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 6706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6707 | break 2 |
ce2cded5 L |
6708 | fi |
6709 | done | |
81ecdfbb RW |
6710 | done |
6711 | IFS=$as_save_IFS | |
d7040cdb | 6712 | |
42ecbf5e | 6713 | fi |
ce2cded5 | 6714 | fi |
7357c5b6 AM |
6715 | AR=$ac_cv_prog_AR |
6716 | if test -n "$AR"; then | |
81ecdfbb RW |
6717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6718 | $as_echo "$AR" >&6; } | |
42ecbf5e | 6719 | else |
81ecdfbb RW |
6720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6721 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
6722 | fi |
6723 | ||
81ecdfbb | 6724 | |
7357c5b6 AM |
6725 | fi |
6726 | if test -z "$ac_cv_prog_AR"; then | |
6727 | ac_ct_AR=$AR | |
6728 | # Extract the first word of "ar", so it can be a program name with args. | |
6729 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
6730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6731 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6732 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 6733 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
6734 | else |
6735 | if test -n "$ac_ct_AR"; then | |
6736 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6737 | else | |
6738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6739 | for as_dir in $PATH | |
6740 | do | |
6741 | IFS=$as_save_IFS | |
6742 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6743 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 6745 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 6746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
6747 | break 2 |
6748 | fi | |
6749 | done | |
81ecdfbb RW |
6750 | done |
6751 | IFS=$as_save_IFS | |
42ecbf5e | 6752 | |
7357c5b6 AM |
6753 | fi |
6754 | fi | |
6755 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6756 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
6757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6758 | $as_echo "$ac_ct_AR" >&6; } | |
7357c5b6 | 6759 | else |
81ecdfbb RW |
6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6761 | $as_echo "no" >&6; } | |
7357c5b6 | 6762 | fi |
d7040cdb | 6763 | |
81ecdfbb RW |
6764 | if test "x$ac_ct_AR" = x; then |
6765 | AR="false" | |
6766 | else | |
6767 | case $cross_compiling:$ac_tool_warned in | |
6768 | yes:) | |
6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6770 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6771 | ac_tool_warned=yes ;; | |
6772 | esac | |
6773 | AR=$ac_ct_AR | |
6774 | fi | |
7357c5b6 AM |
6775 | else |
6776 | AR="$ac_cv_prog_AR" | |
6777 | fi | |
d7040cdb | 6778 | |
7357c5b6 | 6779 | test -z "$AR" && AR=ar |
a4966cd9 L |
6780 | if test -n "$plugin_option"; then |
6781 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
83b33c6c L |
6782 | touch conftest.c |
6783 | $AR $plugin_option rc conftest.a conftest.c | |
6784 | if test "$?" != 0; then | |
6785 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
6786 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
6787 | else | |
6788 | AR="$AR $plugin_option" | |
6789 | fi | |
6790 | rm -f conftest.* | |
a4966cd9 L |
6791 | fi |
6792 | fi | |
7357c5b6 | 6793 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
d7040cdb SE |
6794 | |
6795 | ||
6796 | ||
20e95c23 | 6797 | |
d7040cdb | 6798 | |
d7040cdb SE |
6799 | |
6800 | ||
6801 | ||
6802 | ||
6803 | ||
6804 | ||
7357c5b6 AM |
6805 | if test -n "$ac_tool_prefix"; then |
6806 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6807 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
6808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6809 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6810 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 6811 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
6812 | else |
6813 | if test -n "$STRIP"; then | |
6814 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6815 | else | |
6816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6817 | for as_dir in $PATH | |
6818 | do | |
6819 | IFS=$as_save_IFS | |
6820 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6821 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6822 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 6823 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 6824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6825 | break 2 |
ce2cded5 | 6826 | fi |
7357c5b6 | 6827 | done |
81ecdfbb RW |
6828 | done |
6829 | IFS=$as_save_IFS | |
d7040cdb | 6830 | |
7357c5b6 AM |
6831 | fi |
6832 | fi | |
6833 | STRIP=$ac_cv_prog_STRIP | |
6834 | if test -n "$STRIP"; then | |
81ecdfbb RW |
6835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6836 | $as_echo "$STRIP" >&6; } | |
7357c5b6 | 6837 | else |
81ecdfbb RW |
6838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6839 | $as_echo "no" >&6; } | |
7357c5b6 AM |
6840 | fi |
6841 | ||
81ecdfbb | 6842 | |
7357c5b6 AM |
6843 | fi |
6844 | if test -z "$ac_cv_prog_STRIP"; then | |
6845 | ac_ct_STRIP=$STRIP | |
6846 | # Extract the first word of "strip", so it can be a program name with args. | |
6847 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
6848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6849 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6850 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
81ecdfbb | 6851 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
6852 | else |
6853 | if test -n "$ac_ct_STRIP"; then | |
6854 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6855 | else | |
6856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6857 | for as_dir in $PATH | |
6858 | do | |
6859 | IFS=$as_save_IFS | |
6860 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6861 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6862 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 6863 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 6864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6865 | break 2 |
ce2cded5 | 6866 | fi |
7357c5b6 | 6867 | done |
81ecdfbb RW |
6868 | done |
6869 | IFS=$as_save_IFS | |
d7040cdb | 6870 | |
7357c5b6 AM |
6871 | fi |
6872 | fi | |
6873 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6874 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
6875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6876 | $as_echo "$ac_ct_STRIP" >&6; } | |
20e95c23 | 6877 | else |
81ecdfbb RW |
6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6879 | $as_echo "no" >&6; } | |
7357c5b6 | 6880 | fi |
d7040cdb | 6881 | |
81ecdfbb RW |
6882 | if test "x$ac_ct_STRIP" = x; then |
6883 | STRIP=":" | |
6884 | else | |
6885 | case $cross_compiling:$ac_tool_warned in | |
6886 | yes:) | |
6887 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6888 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6889 | ac_tool_warned=yes ;; | |
6890 | esac | |
6891 | STRIP=$ac_ct_STRIP | |
6892 | fi | |
7357c5b6 AM |
6893 | else |
6894 | STRIP="$ac_cv_prog_STRIP" | |
6895 | fi | |
d7040cdb | 6896 | |
7357c5b6 | 6897 | test -z "$STRIP" && STRIP=: |
d7040cdb | 6898 | |
d7040cdb SE |
6899 | |
6900 | ||
6901 | ||
d7040cdb | 6902 | |
7357c5b6 AM |
6903 | |
6904 | if test -n "$ac_tool_prefix"; then | |
6905 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6906 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
6907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6908 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6909 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 6910 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 6911 | else |
7357c5b6 AM |
6912 | if test -n "$RANLIB"; then |
6913 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6914 | else | |
6915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6916 | for as_dir in $PATH | |
ce2cded5 | 6917 | do |
7357c5b6 AM |
6918 | IFS=$as_save_IFS |
6919 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6920 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 6922 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 6923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6924 | break 2 |
ce2cded5 | 6925 | fi |
7357c5b6 | 6926 | done |
81ecdfbb RW |
6927 | done |
6928 | IFS=$as_save_IFS | |
7357c5b6 | 6929 | |
ce2cded5 | 6930 | fi |
7357c5b6 AM |
6931 | fi |
6932 | RANLIB=$ac_cv_prog_RANLIB | |
6933 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
6934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6935 | $as_echo "$RANLIB" >&6; } | |
ce2cded5 | 6936 | else |
81ecdfbb RW |
6937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6938 | $as_echo "no" >&6; } | |
ce2cded5 | 6939 | fi |
d7040cdb | 6940 | |
81ecdfbb | 6941 | |
7357c5b6 AM |
6942 | fi |
6943 | if test -z "$ac_cv_prog_RANLIB"; then | |
6944 | ac_ct_RANLIB=$RANLIB | |
6945 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6946 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
6947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6948 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6949 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 6950 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 6951 | else |
7357c5b6 AM |
6952 | if test -n "$ac_ct_RANLIB"; then |
6953 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6954 | else | |
6955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6956 | for as_dir in $PATH | |
6957 | do | |
6958 | IFS=$as_save_IFS | |
6959 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6960 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6961 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 6962 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 6963 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
6964 | break 2 |
6965 | fi | |
6966 | done | |
81ecdfbb RW |
6967 | done |
6968 | IFS=$as_save_IFS | |
7357c5b6 | 6969 | |
ce2cded5 | 6970 | fi |
7357c5b6 AM |
6971 | fi |
6972 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6973 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
6974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6975 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ce2cded5 | 6976 | else |
81ecdfbb RW |
6977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6978 | $as_echo "no" >&6; } | |
ce2cded5 | 6979 | fi |
d7040cdb | 6980 | |
81ecdfbb RW |
6981 | if test "x$ac_ct_RANLIB" = x; then |
6982 | RANLIB=":" | |
6983 | else | |
6984 | case $cross_compiling:$ac_tool_warned in | |
6985 | yes:) | |
6986 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6987 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6988 | ac_tool_warned=yes ;; | |
6989 | esac | |
6990 | RANLIB=$ac_ct_RANLIB | |
6991 | fi | |
7357c5b6 AM |
6992 | else |
6993 | RANLIB="$ac_cv_prog_RANLIB" | |
ce2cded5 | 6994 | fi |
d7040cdb | 6995 | |
7357c5b6 | 6996 | test -z "$RANLIB" && RANLIB=: |
a4966cd9 L |
6997 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then |
6998 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
6999 | RANLIB="$RANLIB $plugin_option" | |
7000 | fi | |
7001 | fi | |
d7040cdb | 7002 | |
7357c5b6 AM |
7003 | |
7004 | ||
7005 | ||
7006 | ||
7007 | ||
7008 | # Determine commands to create old-style static archives. | |
b214d478 | 7009 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
7357c5b6 AM |
7010 | old_postinstall_cmds='chmod 644 $oldlib' |
7011 | old_postuninstall_cmds= | |
7012 | ||
7013 | if test -n "$RANLIB"; then | |
7014 | case $host_os in | |
7015 | openbsd*) | |
7016 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7017 | ;; | |
7018 | *) | |
7019 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7020 | ;; | |
7021 | esac | |
7022 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
ce2cded5 | 7023 | fi |
7357c5b6 | 7024 | |
3725885a RW |
7025 | case $host_os in |
7026 | darwin*) | |
7027 | lock_old_archive_extraction=yes ;; | |
7028 | *) | |
7029 | lock_old_archive_extraction=no ;; | |
7030 | esac | |
7031 | ||
7032 | ||
7033 | ||
7034 | ||
7035 | ||
7036 | ||
7357c5b6 AM |
7037 | |
7038 | ||
7039 | ||
7040 | ||
7041 | ||
7042 | ||
7043 | ||
7044 | ||
7045 | ||
7046 | ||
7047 | ||
7048 | ||
7049 | ||
7050 | ||
7051 | ||
7052 | ||
7053 | ||
7054 | ||
7055 | ||
7056 | ||
7057 | ||
7058 | ||
7059 | ||
7060 | ||
7061 | ||
7062 | ||
7063 | ||
7064 | ||
7065 | ||
7066 | ||
7067 | ||
7068 | ||
7069 | ||
7070 | # If no C compiler was specified, use CC. | |
7071 | LTCC=${LTCC-"$CC"} | |
7072 | ||
7073 | # If no C compiler flags were specified, use CFLAGS. | |
7074 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7075 | ||
7076 | # Allow CC to be a program name with arguments. | |
7077 | compiler=$CC | |
7078 | ||
7079 | ||
7080 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
81ecdfbb RW |
7081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
7082 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
d0ac1c44 | 7083 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
81ecdfbb | 7084 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 7085 | else |
d7040cdb | 7086 | |
7357c5b6 AM |
7087 | # These are sane defaults that work on at least a few old systems. |
7088 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d7040cdb | 7089 | |
7357c5b6 AM |
7090 | # Character class describing NM global symbol codes. |
7091 | symcode='[BCDEGRST]' | |
7092 | ||
7093 | # Regexp to match symbols that can be accessed directly from C. | |
7094 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7095 | ||
7096 | # Define system-specific variables. | |
7097 | case $host_os in | |
7098 | aix*) | |
7099 | symcode='[BCDT]' | |
7100 | ;; | |
b214d478 | 7101 | cygwin* | mingw* | pw32* | cegcc*) |
7357c5b6 AM |
7102 | symcode='[ABCDGISTW]' |
7103 | ;; | |
7104 | hpux*) | |
7105 | if test "$host_cpu" = ia64; then | |
7106 | symcode='[ABCDEGRST]' | |
ce2cded5 | 7107 | fi |
7357c5b6 AM |
7108 | ;; |
7109 | irix* | nonstopux*) | |
7110 | symcode='[BCDEGRST]' | |
7111 | ;; | |
7112 | osf*) | |
7113 | symcode='[BCDEGQRST]' | |
7114 | ;; | |
7115 | solaris*) | |
b9004024 | 7116 | symcode='[BCDRT]' |
7357c5b6 AM |
7117 | ;; |
7118 | sco3.2v5*) | |
7119 | symcode='[DT]' | |
7120 | ;; | |
7121 | sysv4.2uw2*) | |
7122 | symcode='[DT]' | |
7123 | ;; | |
7124 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7125 | symcode='[ABDT]' | |
7126 | ;; | |
7127 | sysv4) | |
7128 | symcode='[DFNSTU]' | |
7129 | ;; | |
7130 | esac | |
d7040cdb | 7131 | |
7357c5b6 AM |
7132 | # If we're using GNU nm, then use its standard symbol codes. |
7133 | case `$NM -V 2>&1` in | |
7134 | *GNU* | *'with BFD'*) | |
7135 | symcode='[ABCDGIRSTW]' ;; | |
7136 | esac | |
d7040cdb | 7137 | |
7357c5b6 AM |
7138 | # Transform an extracted symbol line into a proper C declaration. |
7139 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7140 | # so use this general approach. | |
7141 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7142 | ||
7143 | # Transform an extracted symbol line into symbol name and symbol address | |
7144 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
b214d478 | 7145 | 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'" |
7357c5b6 AM |
7146 | |
7147 | # Handle CRLF in mingw tool chain | |
7148 | opt_cr= | |
7149 | case $build_os in | |
7150 | mingw*) | |
7151 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7152 | ;; | |
7153 | esac | |
d7040cdb | 7154 | |
7357c5b6 AM |
7155 | # Try without a prefix underscore, then with it. |
7156 | for ac_symprfx in "" "_"; do | |
d7040cdb | 7157 | |
7357c5b6 AM |
7158 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7159 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 7160 | |
7357c5b6 AM |
7161 | # Write the raw and C identifiers. |
7162 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7163 | # Fake it for dumpbin and say T for any non-static function | |
7164 | # and D for any global variable. | |
7165 | # Also find C++ and __fastcall symbols from MSVC++, | |
7166 | # which start with @ or ?. | |
7167 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7168 | " {last_section=section; section=\$ 3};"\ | |
7169 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7170 | " \$ 0!~/External *\|/{next};"\ | |
7171 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7172 | " {if(hide[section]) next};"\ | |
7173 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7174 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7175 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7176 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7177 | " ' prfx=^$ac_symprfx" | |
7178 | else | |
7179 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7180 | fi | |
d7040cdb | 7181 | |
7357c5b6 AM |
7182 | # Check to see that the pipe works correctly. |
7183 | pipe_works=no | |
d7040cdb | 7184 | |
7357c5b6 AM |
7185 | rm -f conftest* |
7186 | cat > conftest.$ac_ext <<_LT_EOF | |
7187 | #ifdef __cplusplus | |
7188 | extern "C" { | |
7189 | #endif | |
7190 | char nm_test_var; | |
7191 | void nm_test_func(void); | |
7192 | void nm_test_func(void){} | |
7193 | #ifdef __cplusplus | |
20e95c23 | 7194 | } |
7357c5b6 AM |
7195 | #endif |
7196 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7197 | _LT_EOF | |
7198 | ||
81ecdfbb | 7199 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 7200 | (eval $ac_compile) 2>&5 |
20e95c23 | 7201 | ac_status=$? |
81ecdfbb RW |
7202 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7203 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7204 | # Now try to grab the symbols. |
7205 | nlist=conftest.nm | |
3725885a RW |
7206 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
7207 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
20e95c23 | 7208 | ac_status=$? |
81ecdfbb RW |
7209 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7210 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
7211 | # Try sorting and uniquifying the output. |
7212 | if sort "$nlist" | uniq > "$nlist"T; then | |
7213 | mv -f "$nlist"T "$nlist" | |
7214 | else | |
7215 | rm -f "$nlist"T | |
7216 | fi | |
d7040cdb | 7217 | |
7357c5b6 AM |
7218 | # Make sure that we snagged all the symbols we need. |
7219 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7220 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7221 | cat <<_LT_EOF > conftest.$ac_ext | |
7222 | #ifdef __cplusplus | |
7223 | extern "C" { | |
7224 | #endif | |
ce2cded5 | 7225 | |
7357c5b6 AM |
7226 | _LT_EOF |
7227 | # Now generate the symbol file. | |
7228 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
ce2cded5 | 7229 | |
7357c5b6 | 7230 | cat <<_LT_EOF >> conftest.$ac_ext |
42ecbf5e | 7231 | |
7357c5b6 AM |
7232 | /* The mapping between symbol names and symbols. */ |
7233 | const struct { | |
7234 | const char *name; | |
7235 | void *address; | |
7236 | } | |
7237 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7238 | { | |
7239 | { "@PROGRAM@", (void *) 0 }, | |
7240 | _LT_EOF | |
7241 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7242 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7243 | {0, (void *) 0} | |
7244 | }; | |
d7040cdb | 7245 | |
7357c5b6 AM |
7246 | /* This works around a problem in FreeBSD linker */ |
7247 | #ifdef FREEBSD_WORKAROUND | |
7248 | static const void *lt_preloaded_setup() { | |
7249 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7250 | } | |
ce2cded5 | 7251 | #endif |
42ecbf5e | 7252 | |
7357c5b6 | 7253 | #ifdef __cplusplus |
ce2cded5 | 7254 | } |
7357c5b6 AM |
7255 | #endif |
7256 | _LT_EOF | |
7257 | # Now try linking the two files. | |
7258 | mv conftest.$ac_objext conftstm.$ac_objext | |
7259 | lt_save_LIBS="$LIBS" | |
7260 | lt_save_CFLAGS="$CFLAGS" | |
7261 | LIBS="conftstm.$ac_objext" | |
7262 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 7263 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
7264 | (eval $ac_link) 2>&5 |
7265 | ac_status=$? | |
81ecdfbb RW |
7266 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7267 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
7268 | pipe_works=yes |
7269 | fi | |
7270 | LIBS="$lt_save_LIBS" | |
7271 | CFLAGS="$lt_save_CFLAGS" | |
7272 | else | |
7273 | echo "cannot find nm_test_func in $nlist" >&5 | |
7274 | fi | |
7275 | else | |
7276 | echo "cannot find nm_test_var in $nlist" >&5 | |
7277 | fi | |
7278 | else | |
7279 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7280 | fi | |
7281 | else | |
7282 | echo "$progname: failed program was:" >&5 | |
7283 | cat conftest.$ac_ext >&5 | |
7284 | fi | |
b214d478 | 7285 | rm -rf conftest* conftst* |
7357c5b6 AM |
7286 | |
7287 | # Do not use the global_symbol_pipe unless it works. | |
7288 | if test "$pipe_works" = yes; then | |
7289 | break | |
7290 | else | |
7291 | lt_cv_sys_global_symbol_pipe= | |
7292 | fi | |
7293 | done | |
42ecbf5e | 7294 | |
ce2cded5 | 7295 | fi |
7357c5b6 AM |
7296 | |
7297 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7298 | lt_cv_sys_global_symbol_to_cdecl= | |
ce2cded5 | 7299 | fi |
7357c5b6 | 7300 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
7301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
7302 | $as_echo "failed" >&6; } | |
7357c5b6 | 7303 | else |
81ecdfbb RW |
7304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7305 | $as_echo "ok" >&6; } | |
ce2cded5 | 7306 | fi |
e5a52504 | 7307 | |
d7040cdb | 7308 | |
e5a52504 | 7309 | |
d7040cdb | 7310 | |
d7040cdb | 7311 | |
d7040cdb | 7312 | |
d7040cdb | 7313 | |
d7040cdb | 7314 | |
d7040cdb | 7315 | |
d7040cdb | 7316 | |
d7040cdb | 7317 | |
d7040cdb | 7318 | |
7357c5b6 AM |
7319 | |
7320 | ||
7321 | ||
b214d478 SE |
7322 | |
7323 | ||
7324 | ||
7325 | ||
7326 | ||
7357c5b6 AM |
7327 | |
7328 | ||
81ecdfbb RW |
7329 | # Check whether --enable-libtool-lock was given. |
7330 | if test "${enable_libtool_lock+set}" = set; then : | |
7331 | enableval=$enable_libtool_lock; | |
7332 | fi | |
7357c5b6 | 7333 | |
7357c5b6 AM |
7334 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7335 | ||
7336 | # Some flags need to be propagated to the compiler or linker for good | |
7337 | # libtool support. | |
7338 | case $host in | |
7339 | ia64-*-hpux*) | |
7340 | # Find out which ABI we are using. | |
7341 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7342 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7343 | (eval $ac_compile) 2>&5 |
7344 | ac_status=$? | |
81ecdfbb RW |
7345 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7346 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7347 | case `/usr/bin/file conftest.$ac_objext` in |
7348 | *ELF-32*) | |
7349 | HPUX_IA64_MODE="32" | |
7350 | ;; | |
7351 | *ELF-64*) | |
7352 | HPUX_IA64_MODE="64" | |
7353 | ;; | |
7354 | esac | |
7355 | fi | |
7356 | rm -rf conftest* | |
7357 | ;; | |
7358 | *-*-irix6*) | |
7359 | # Find out which ABI we are using. | |
3725885a | 7360 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
81ecdfbb | 7361 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7362 | (eval $ac_compile) 2>&5 |
7363 | ac_status=$? | |
81ecdfbb RW |
7364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7365 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7366 | if test "$lt_cv_prog_gnu_ld" = yes; then |
7367 | case `/usr/bin/file conftest.$ac_objext` in | |
7368 | *32-bit*) | |
7369 | LD="${LD-ld} -melf32bsmip" | |
7370 | ;; | |
7371 | *N32*) | |
7372 | LD="${LD-ld} -melf32bmipn32" | |
7373 | ;; | |
7374 | *64-bit*) | |
7375 | LD="${LD-ld} -melf64bmip" | |
7376 | ;; | |
7377 | esac | |
7378 | else | |
7379 | case `/usr/bin/file conftest.$ac_objext` in | |
7380 | *32-bit*) | |
7381 | LD="${LD-ld} -32" | |
7382 | ;; | |
7383 | *N32*) | |
7384 | LD="${LD-ld} -n32" | |
7385 | ;; | |
7386 | *64-bit*) | |
7387 | LD="${LD-ld} -64" | |
7388 | ;; | |
7389 | esac | |
7390 | fi | |
7391 | fi | |
7392 | rm -rf conftest* | |
7393 | ;; | |
7394 | ||
cc9afea3 | 7395 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7357c5b6 AM |
7396 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
7397 | # Find out which ABI we are using. | |
7398 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7399 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7400 | (eval $ac_compile) 2>&5 |
7401 | ac_status=$? | |
81ecdfbb RW |
7402 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7403 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7404 | case `/usr/bin/file conftest.o` in |
7405 | *32-bit*) | |
7406 | case $host in | |
7407 | x86_64-*kfreebsd*-gnu) | |
7408 | LD="${LD-ld} -m elf_i386_fbsd" | |
7409 | ;; | |
7410 | x86_64-*linux*) | |
6d2920c8 L |
7411 | case `/usr/bin/file conftest.o` in |
7412 | *x86-64*) | |
7413 | LD="${LD-ld} -m elf32_x86_64" | |
7414 | ;; | |
7415 | *) | |
7416 | LD="${LD-ld} -m elf_i386" | |
7417 | ;; | |
7418 | esac | |
7357c5b6 | 7419 | ;; |
cc9afea3 AM |
7420 | powerpc64le-*linux*) |
7421 | LD="${LD-ld} -m elf32lppclinux" | |
7422 | ;; | |
7423 | powerpc64-*linux*) | |
7357c5b6 AM |
7424 | LD="${LD-ld} -m elf32ppclinux" |
7425 | ;; | |
7426 | s390x-*linux*) | |
7427 | LD="${LD-ld} -m elf_s390" | |
7428 | ;; | |
7429 | sparc64-*linux*) | |
7430 | LD="${LD-ld} -m elf32_sparc" | |
7431 | ;; | |
7432 | esac | |
7433 | ;; | |
7434 | *64-bit*) | |
7435 | case $host in | |
7436 | x86_64-*kfreebsd*-gnu) | |
7437 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7438 | ;; | |
7439 | x86_64-*linux*) | |
7440 | LD="${LD-ld} -m elf_x86_64" | |
7441 | ;; | |
cc9afea3 AM |
7442 | powerpcle-*linux*) |
7443 | LD="${LD-ld} -m elf64lppc" | |
7444 | ;; | |
7445 | powerpc-*linux*) | |
7357c5b6 AM |
7446 | LD="${LD-ld} -m elf64ppc" |
7447 | ;; | |
7448 | s390*-*linux*|s390*-*tpf*) | |
7449 | LD="${LD-ld} -m elf64_s390" | |
7450 | ;; | |
7451 | sparc*-*linux*) | |
7452 | LD="${LD-ld} -m elf64_sparc" | |
7453 | ;; | |
7454 | esac | |
7455 | ;; | |
7456 | esac | |
7457 | fi | |
7458 | rm -rf conftest* | |
7459 | ;; | |
7460 | ||
7461 | *-*-sco3.2v5*) | |
7462 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7463 | SAVE_CFLAGS="$CFLAGS" | |
7464 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
7465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
7466 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
d0ac1c44 | 7467 | if ${lt_cv_cc_needs_belf+:} false; then : |
81ecdfbb | 7468 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 7469 | else |
7357c5b6 AM |
7470 | ac_ext=c |
7471 | ac_cpp='$CPP $CPPFLAGS' | |
7472 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7473 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7474 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7475 | ||
81ecdfbb | 7476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 7477 | /* end confdefs.h. */ |
d7040cdb | 7478 | |
7357c5b6 AM |
7479 | int |
7480 | main () | |
7481 | { | |
7482 | ||
7483 | ; | |
7484 | return 0; | |
7485 | } | |
ce2cded5 | 7486 | _ACEOF |
81ecdfbb | 7487 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 7488 | lt_cv_cc_needs_belf=yes |
ce2cded5 | 7489 | else |
81ecdfbb | 7490 | lt_cv_cc_needs_belf=no |
ce2cded5 | 7491 | fi |
81ecdfbb RW |
7492 | rm -f core conftest.err conftest.$ac_objext \ |
7493 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
7494 | ac_ext=c |
7495 | ac_cpp='$CPP $CPPFLAGS' | |
7496 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7497 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7498 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 7499 | |
b214d478 | 7500 | fi |
81ecdfbb RW |
7501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
7502 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
b214d478 SE |
7503 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
7504 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7505 | CFLAGS="$SAVE_CFLAGS" | |
7506 | fi | |
7507 | ;; | |
7508 | sparc*-*solaris*) | |
7509 | # Find out which ABI we are using. | |
7510 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7511 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
b214d478 SE |
7512 | (eval $ac_compile) 2>&5 |
7513 | ac_status=$? | |
81ecdfbb RW |
7514 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7515 | test $ac_status = 0; }; then | |
b214d478 SE |
7516 | case `/usr/bin/file conftest.o` in |
7517 | *64-bit*) | |
7518 | case $lt_cv_prog_gnu_ld in | |
7519 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7520 | *) | |
7521 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7522 | LD="${LD-ld} -64" | |
7523 | fi | |
7524 | ;; | |
7525 | esac | |
7526 | ;; | |
7527 | esac | |
7528 | fi | |
7529 | rm -rf conftest* | |
7530 | ;; | |
7531 | esac | |
7532 | ||
7533 | need_locks="$enable_libtool_lock" | |
7534 | ||
7535 | ||
7536 | case $host_os in | |
7537 | rhapsody* | darwin*) | |
7538 | if test -n "$ac_tool_prefix"; then | |
7539 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7540 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
7541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7542 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7543 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
81ecdfbb | 7544 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
7545 | else |
7546 | if test -n "$DSYMUTIL"; then | |
7547 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7548 | else | |
7549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7550 | for as_dir in $PATH | |
7551 | do | |
7552 | IFS=$as_save_IFS | |
7553 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7554 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7555 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 7556 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 7557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7558 | break 2 |
7559 | fi | |
7560 | done | |
81ecdfbb RW |
7561 | done |
7562 | IFS=$as_save_IFS | |
b214d478 SE |
7563 | |
7564 | fi | |
7565 | fi | |
7566 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7567 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7569 | $as_echo "$DSYMUTIL" >&6; } | |
b214d478 | 7570 | else |
81ecdfbb RW |
7571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7572 | $as_echo "no" >&6; } | |
b214d478 SE |
7573 | fi |
7574 | ||
81ecdfbb | 7575 | |
b214d478 SE |
7576 | fi |
7577 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7578 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7579 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7580 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
7581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7582 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7583 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
81ecdfbb | 7584 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
7585 | else |
7586 | if test -n "$ac_ct_DSYMUTIL"; then | |
7587 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7588 | else | |
7589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7590 | for as_dir in $PATH | |
7591 | do | |
7592 | IFS=$as_save_IFS | |
7593 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7594 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7595 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 7596 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 7597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7598 | break 2 |
7599 | fi | |
7600 | done | |
81ecdfbb RW |
7601 | done |
7602 | IFS=$as_save_IFS | |
b214d478 | 7603 | |
b214d478 SE |
7604 | fi |
7605 | fi | |
7606 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7607 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
7608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7609 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
b214d478 | 7610 | else |
81ecdfbb RW |
7611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7612 | $as_echo "no" >&6; } | |
b214d478 SE |
7613 | fi |
7614 | ||
81ecdfbb RW |
7615 | if test "x$ac_ct_DSYMUTIL" = x; then |
7616 | DSYMUTIL=":" | |
7617 | else | |
7618 | case $cross_compiling:$ac_tool_warned in | |
7619 | yes:) | |
7620 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7621 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7622 | ac_tool_warned=yes ;; | |
7623 | esac | |
7624 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7625 | fi | |
b214d478 SE |
7626 | else |
7627 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7628 | fi | |
7629 | ||
7630 | if test -n "$ac_tool_prefix"; then | |
7631 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7632 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
7633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7634 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7635 | if ${ac_cv_prog_NMEDIT+:} false; then : |
81ecdfbb | 7636 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
7637 | else |
7638 | if test -n "$NMEDIT"; then | |
7639 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7640 | else | |
7641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7642 | for as_dir in $PATH | |
7643 | do | |
7644 | IFS=$as_save_IFS | |
7645 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7646 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7647 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 7648 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 7649 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7650 | break 2 |
7651 | fi | |
7652 | done | |
81ecdfbb RW |
7653 | done |
7654 | IFS=$as_save_IFS | |
b214d478 SE |
7655 | |
7656 | fi | |
7657 | fi | |
7658 | NMEDIT=$ac_cv_prog_NMEDIT | |
7659 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
7660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7661 | $as_echo "$NMEDIT" >&6; } | |
b214d478 | 7662 | else |
81ecdfbb RW |
7663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7664 | $as_echo "no" >&6; } | |
b214d478 SE |
7665 | fi |
7666 | ||
81ecdfbb | 7667 | |
b214d478 SE |
7668 | fi |
7669 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7670 | ac_ct_NMEDIT=$NMEDIT | |
7671 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7672 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
7673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7674 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7675 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
81ecdfbb | 7676 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
7677 | else |
7678 | if test -n "$ac_ct_NMEDIT"; then | |
7679 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7680 | else | |
7681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7682 | for as_dir in $PATH | |
7683 | do | |
7684 | IFS=$as_save_IFS | |
7685 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7686 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7687 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 7688 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 7689 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7690 | break 2 |
7691 | fi | |
7692 | done | |
81ecdfbb RW |
7693 | done |
7694 | IFS=$as_save_IFS | |
b214d478 | 7695 | |
b214d478 SE |
7696 | fi |
7697 | fi | |
7698 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7699 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
7700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7701 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
b214d478 | 7702 | else |
81ecdfbb RW |
7703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7704 | $as_echo "no" >&6; } | |
b214d478 SE |
7705 | fi |
7706 | ||
81ecdfbb RW |
7707 | if test "x$ac_ct_NMEDIT" = x; then |
7708 | NMEDIT=":" | |
7709 | else | |
7710 | case $cross_compiling:$ac_tool_warned in | |
7711 | yes:) | |
7712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7713 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7714 | ac_tool_warned=yes ;; | |
7715 | esac | |
7716 | NMEDIT=$ac_ct_NMEDIT | |
7717 | fi | |
b214d478 SE |
7718 | else |
7719 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7720 | fi | |
7721 | ||
7722 | if test -n "$ac_tool_prefix"; then | |
7723 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7724 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
7725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7726 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7727 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 7728 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
7729 | else |
7730 | if test -n "$LIPO"; then | |
7731 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7732 | else | |
7733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7734 | for as_dir in $PATH | |
7735 | do | |
7736 | IFS=$as_save_IFS | |
7737 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7738 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7739 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 7740 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 7741 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7742 | break 2 |
7743 | fi | |
7744 | done | |
81ecdfbb RW |
7745 | done |
7746 | IFS=$as_save_IFS | |
b214d478 SE |
7747 | |
7748 | fi | |
7749 | fi | |
7750 | LIPO=$ac_cv_prog_LIPO | |
7751 | if test -n "$LIPO"; then | |
81ecdfbb RW |
7752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7753 | $as_echo "$LIPO" >&6; } | |
b214d478 | 7754 | else |
81ecdfbb RW |
7755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7756 | $as_echo "no" >&6; } | |
b214d478 SE |
7757 | fi |
7758 | ||
81ecdfbb | 7759 | |
b214d478 SE |
7760 | fi |
7761 | if test -z "$ac_cv_prog_LIPO"; then | |
7762 | ac_ct_LIPO=$LIPO | |
7763 | # Extract the first word of "lipo", so it can be a program name with args. | |
7764 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
7765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7766 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7767 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
81ecdfbb | 7768 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
7769 | else |
7770 | if test -n "$ac_ct_LIPO"; then | |
7771 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7772 | else | |
7773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7774 | for as_dir in $PATH | |
7775 | do | |
7776 | IFS=$as_save_IFS | |
7777 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7778 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7779 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 7780 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 7781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7782 | break 2 |
7783 | fi | |
7784 | done | |
81ecdfbb RW |
7785 | done |
7786 | IFS=$as_save_IFS | |
b214d478 | 7787 | |
b214d478 SE |
7788 | fi |
7789 | fi | |
7790 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7791 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
7792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7793 | $as_echo "$ac_ct_LIPO" >&6; } | |
b214d478 | 7794 | else |
81ecdfbb RW |
7795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7796 | $as_echo "no" >&6; } | |
b214d478 SE |
7797 | fi |
7798 | ||
81ecdfbb RW |
7799 | if test "x$ac_ct_LIPO" = x; then |
7800 | LIPO=":" | |
7801 | else | |
7802 | case $cross_compiling:$ac_tool_warned in | |
7803 | yes:) | |
7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7805 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7806 | ac_tool_warned=yes ;; | |
7807 | esac | |
7808 | LIPO=$ac_ct_LIPO | |
7809 | fi | |
b214d478 SE |
7810 | else |
7811 | LIPO="$ac_cv_prog_LIPO" | |
7812 | fi | |
7813 | ||
7814 | if test -n "$ac_tool_prefix"; then | |
7815 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7816 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
7817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7818 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7819 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 7820 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
7821 | else |
7822 | if test -n "$OTOOL"; then | |
7823 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7824 | else | |
7825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7826 | for as_dir in $PATH | |
7827 | do | |
7828 | IFS=$as_save_IFS | |
7829 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7830 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7831 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 7832 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 7833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7834 | break 2 |
7835 | fi | |
7836 | done | |
81ecdfbb RW |
7837 | done |
7838 | IFS=$as_save_IFS | |
b214d478 SE |
7839 | |
7840 | fi | |
7841 | fi | |
7842 | OTOOL=$ac_cv_prog_OTOOL | |
7843 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
7844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7845 | $as_echo "$OTOOL" >&6; } | |
b214d478 | 7846 | else |
81ecdfbb RW |
7847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7848 | $as_echo "no" >&6; } | |
b214d478 SE |
7849 | fi |
7850 | ||
81ecdfbb | 7851 | |
b214d478 SE |
7852 | fi |
7853 | if test -z "$ac_cv_prog_OTOOL"; then | |
7854 | ac_ct_OTOOL=$OTOOL | |
7855 | # Extract the first word of "otool", so it can be a program name with args. | |
7856 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
7857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7858 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7859 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
81ecdfbb | 7860 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
7861 | else |
7862 | if test -n "$ac_ct_OTOOL"; then | |
7863 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7864 | else | |
7865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7866 | for as_dir in $PATH | |
7867 | do | |
7868 | IFS=$as_save_IFS | |
7869 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7870 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7871 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 7872 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 7873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7874 | break 2 |
7875 | fi | |
7876 | done | |
81ecdfbb RW |
7877 | done |
7878 | IFS=$as_save_IFS | |
b214d478 | 7879 | |
b214d478 SE |
7880 | fi |
7881 | fi | |
7882 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7883 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7885 | $as_echo "$ac_ct_OTOOL" >&6; } | |
b214d478 | 7886 | else |
81ecdfbb RW |
7887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7888 | $as_echo "no" >&6; } | |
b214d478 SE |
7889 | fi |
7890 | ||
81ecdfbb RW |
7891 | if test "x$ac_ct_OTOOL" = x; then |
7892 | OTOOL=":" | |
7893 | else | |
7894 | case $cross_compiling:$ac_tool_warned in | |
7895 | yes:) | |
7896 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7897 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7898 | ac_tool_warned=yes ;; | |
7899 | esac | |
7900 | OTOOL=$ac_ct_OTOOL | |
7901 | fi | |
b214d478 SE |
7902 | else |
7903 | OTOOL="$ac_cv_prog_OTOOL" | |
7904 | fi | |
7905 | ||
7906 | if test -n "$ac_tool_prefix"; then | |
7907 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7908 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
7909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7910 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7911 | if ${ac_cv_prog_OTOOL64+:} false; then : |
81ecdfbb | 7912 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
7913 | else |
7914 | if test -n "$OTOOL64"; then | |
7915 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7916 | else | |
7917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7918 | for as_dir in $PATH | |
7919 | do | |
7920 | IFS=$as_save_IFS | |
7921 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7922 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7923 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 7924 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 7925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7926 | break 2 |
7927 | fi | |
7928 | done | |
81ecdfbb RW |
7929 | done |
7930 | IFS=$as_save_IFS | |
b214d478 SE |
7931 | |
7932 | fi | |
7933 | fi | |
7934 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7935 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
7936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7937 | $as_echo "$OTOOL64" >&6; } | |
b214d478 | 7938 | else |
81ecdfbb RW |
7939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7940 | $as_echo "no" >&6; } | |
b214d478 SE |
7941 | fi |
7942 | ||
81ecdfbb | 7943 | |
b214d478 SE |
7944 | fi |
7945 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7946 | ac_ct_OTOOL64=$OTOOL64 | |
7947 | # Extract the first word of "otool64", so it can be a program name with args. | |
7948 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7950 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7951 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
81ecdfbb | 7952 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
7953 | else |
7954 | if test -n "$ac_ct_OTOOL64"; then | |
7955 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7956 | else | |
7957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7958 | for as_dir in $PATH | |
7959 | do | |
7960 | IFS=$as_save_IFS | |
7961 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7962 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7963 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 7964 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 7965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7966 | break 2 |
7967 | fi | |
7968 | done | |
81ecdfbb RW |
7969 | done |
7970 | IFS=$as_save_IFS | |
b214d478 | 7971 | |
b214d478 SE |
7972 | fi |
7973 | fi | |
7974 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7975 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7977 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
b214d478 | 7978 | else |
81ecdfbb RW |
7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7980 | $as_echo "no" >&6; } | |
b214d478 SE |
7981 | fi |
7982 | ||
81ecdfbb RW |
7983 | if test "x$ac_ct_OTOOL64" = x; then |
7984 | OTOOL64=":" | |
7985 | else | |
7986 | case $cross_compiling:$ac_tool_warned in | |
7987 | yes:) | |
7988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7989 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7990 | ac_tool_warned=yes ;; | |
7991 | esac | |
7992 | OTOOL64=$ac_ct_OTOOL64 | |
7993 | fi | |
b214d478 SE |
7994 | else |
7995 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7996 | fi | |
7997 | ||
7998 | ||
7999 | ||
8000 | ||
8001 | ||
8002 | ||
8003 | ||
8004 | ||
8005 | ||
8006 | ||
8007 | ||
8008 | ||
8009 | ||
8010 | ||
8011 | ||
8012 | ||
8013 | ||
8014 | ||
8015 | ||
8016 | ||
8017 | ||
8018 | ||
8019 | ||
8020 | ||
8021 | ||
8022 | ||
8023 | ||
81ecdfbb RW |
8024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8025 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
d0ac1c44 | 8026 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
81ecdfbb | 8027 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
8028 | else |
8029 | lt_cv_apple_cc_single_mod=no | |
8030 | if test -z "${LT_MULTI_MODULE}"; then | |
8031 | # By default we will add the -single_module flag. You can override | |
8032 | # by either setting the environment variable LT_MULTI_MODULE | |
8033 | # non-empty at configure time, or by adding -multi_module to the | |
8034 | # link flags. | |
8035 | rm -rf libconftest.dylib* | |
8036 | echo "int foo(void){return 1;}" > conftest.c | |
8037 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8038 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8039 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8040 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8041 | _lt_result=$? | |
8042 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8043 | lt_cv_apple_cc_single_mod=yes | |
8044 | else | |
8045 | cat conftest.err >&5 | |
8046 | fi | |
8047 | rm -rf libconftest.dylib* | |
8048 | rm -f conftest.* | |
8049 | fi | |
8050 | fi | |
81ecdfbb RW |
8051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8052 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8054 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
d0ac1c44 | 8055 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
81ecdfbb | 8056 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
8057 | else |
8058 | lt_cv_ld_exported_symbols_list=no | |
8059 | save_LDFLAGS=$LDFLAGS | |
8060 | echo "_main" > conftest.sym | |
8061 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 8062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b214d478 SE |
8063 | /* end confdefs.h. */ |
8064 | ||
8065 | int | |
8066 | main () | |
8067 | { | |
8068 | ||
8069 | ; | |
8070 | return 0; | |
8071 | } | |
8072 | _ACEOF | |
81ecdfbb | 8073 | if ac_fn_c_try_link "$LINENO"; then : |
b214d478 SE |
8074 | lt_cv_ld_exported_symbols_list=yes |
8075 | else | |
81ecdfbb | 8076 | lt_cv_ld_exported_symbols_list=no |
b214d478 | 8077 | fi |
81ecdfbb RW |
8078 | rm -f core conftest.err conftest.$ac_objext \ |
8079 | conftest$ac_exeext conftest.$ac_ext | |
b214d478 SE |
8080 | LDFLAGS="$save_LDFLAGS" |
8081 | ||
8082 | fi | |
81ecdfbb RW |
8083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8084 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
3725885a RW |
8085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8086 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
d0ac1c44 | 8087 | if ${lt_cv_ld_force_load+:} false; then : |
3725885a RW |
8088 | $as_echo_n "(cached) " >&6 |
8089 | else | |
8090 | lt_cv_ld_force_load=no | |
8091 | cat > conftest.c << _LT_EOF | |
8092 | int forced_loaded() { return 2;} | |
8093 | _LT_EOF | |
8094 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8095 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8096 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8097 | $AR cru libconftest.a conftest.o 2>&5 | |
8098 | cat > conftest.c << _LT_EOF | |
8099 | int main() { return 0;} | |
8100 | _LT_EOF | |
8101 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8102 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8103 | _lt_result=$? | |
8104 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8105 | lt_cv_ld_force_load=yes | |
8106 | else | |
8107 | cat conftest.err >&5 | |
8108 | fi | |
8109 | rm -f conftest.err libconftest.a conftest conftest.c | |
8110 | rm -rf conftest.dSYM | |
8111 | ||
8112 | fi | |
8113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8114 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
6a6859cb AM |
8115 | # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to |
8116 | # build without first building modern cctools / linker. | |
8117 | case $host_cpu-$host_os in | |
8118 | *-rhapsody* | *-darwin1.[012]) | |
b214d478 | 8119 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
6a6859cb | 8120 | *-darwin1.*) |
b214d478 | 8121 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
6a6859cb AM |
8122 | *-darwin*) |
8123 | # darwin 5.x (macOS 10.1) onwards we only need to adjust when the | |
8124 | # deployment target is forced to an earlier version. | |
8125 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in | |
8126 | UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) | |
8127 | ;; | |
6e733cce | 8128 | 10.[012][,.]*) |
6a6859cb AM |
8129 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8130 | ;; | |
8131 | *) | |
8132 | ;; | |
8133 | esac | |
b214d478 SE |
8134 | ;; |
8135 | esac | |
8136 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8137 | _lt_dar_single_mod='$single_module' | |
8138 | fi | |
8139 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8140 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8141 | else | |
8142 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8143 | fi | |
3725885a | 8144 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
b214d478 SE |
8145 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
8146 | else | |
8147 | _lt_dsymutil= | |
8148 | fi | |
8149 | ;; | |
8150 | esac | |
8151 | ||
b214d478 | 8152 | for ac_header in dlfcn.h |
81ecdfbb RW |
8153 | do : |
8154 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8155 | " | |
d0ac1c44 | 8156 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
b214d478 | 8157 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 8158 | #define HAVE_DLFCN_H 1 |
b214d478 SE |
8159 | _ACEOF |
8160 | ||
8161 | fi | |
8162 | ||
8163 | done | |
8164 | ||
8165 | ||
8166 | ||
3725885a RW |
8167 | |
8168 | ||
3cb62297 | 8169 | |
b214d478 SE |
8170 | # Set options |
8171 | ||
8172 | ||
8173 | ||
8174 | enable_dlopen=no | |
8175 | ||
8176 | ||
8177 | enable_win32_dll=no | |
8178 | ||
8179 | ||
81ecdfbb RW |
8180 | # Check whether --enable-shared was given. |
8181 | if test "${enable_shared+set}" = set; then : | |
8182 | enableval=$enable_shared; p=${PACKAGE-default} | |
b214d478 SE |
8183 | case $enableval in |
8184 | yes) enable_shared=yes ;; | |
8185 | no) enable_shared=no ;; | |
8186 | *) | |
8187 | enable_shared=no | |
8188 | # Look at the argument we got. We use all the common list separators. | |
8189 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8190 | for pkg in $enableval; do | |
8191 | IFS="$lt_save_ifs" | |
8192 | if test "X$pkg" = "X$p"; then | |
8193 | enable_shared=yes | |
8194 | fi | |
8195 | done | |
8196 | IFS="$lt_save_ifs" | |
8197 | ;; | |
8198 | esac | |
8199 | else | |
8200 | enable_shared=yes | |
81ecdfbb | 8201 | fi |
b214d478 SE |
8202 | |
8203 | ||
8204 | ||
8205 | ||
8206 | ||
8207 | ||
8208 | ||
8209 | ||
81ecdfbb RW |
8210 | |
8211 | # Check whether --enable-static was given. | |
8212 | if test "${enable_static+set}" = set; then : | |
8213 | enableval=$enable_static; p=${PACKAGE-default} | |
b214d478 SE |
8214 | case $enableval in |
8215 | yes) enable_static=yes ;; | |
8216 | no) enable_static=no ;; | |
8217 | *) | |
8218 | enable_static=no | |
8219 | # Look at the argument we got. We use all the common list separators. | |
8220 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8221 | for pkg in $enableval; do | |
8222 | IFS="$lt_save_ifs" | |
8223 | if test "X$pkg" = "X$p"; then | |
8224 | enable_static=yes | |
8225 | fi | |
8226 | done | |
8227 | IFS="$lt_save_ifs" | |
8228 | ;; | |
8229 | esac | |
8230 | else | |
8231 | enable_static=yes | |
81ecdfbb | 8232 | fi |
b214d478 SE |
8233 | |
8234 | ||
8235 | ||
8236 | ||
8237 | ||
8238 | ||
8239 | ||
8240 | ||
8241 | ||
81ecdfbb RW |
8242 | |
8243 | # Check whether --with-pic was given. | |
8244 | if test "${with_pic+set}" = set; then : | |
8245 | withval=$with_pic; pic_mode="$withval" | |
b214d478 SE |
8246 | else |
8247 | pic_mode=default | |
81ecdfbb RW |
8248 | fi |
8249 | ||
b214d478 SE |
8250 | |
8251 | test -z "$pic_mode" && pic_mode=default | |
8252 | ||
8253 | ||
8254 | ||
8255 | ||
8256 | ||
8257 | ||
8258 | ||
81ecdfbb RW |
8259 | # Check whether --enable-fast-install was given. |
8260 | if test "${enable_fast_install+set}" = set; then : | |
8261 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
b214d478 SE |
8262 | case $enableval in |
8263 | yes) enable_fast_install=yes ;; | |
8264 | no) enable_fast_install=no ;; | |
8265 | *) | |
8266 | enable_fast_install=no | |
8267 | # Look at the argument we got. We use all the common list separators. | |
8268 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8269 | for pkg in $enableval; do | |
8270 | IFS="$lt_save_ifs" | |
8271 | if test "X$pkg" = "X$p"; then | |
8272 | enable_fast_install=yes | |
8273 | fi | |
8274 | done | |
8275 | IFS="$lt_save_ifs" | |
7357c5b6 AM |
8276 | ;; |
8277 | esac | |
b214d478 SE |
8278 | else |
8279 | enable_fast_install=yes | |
81ecdfbb RW |
8280 | fi |
8281 | ||
ce2cded5 | 8282 | |
ce2cded5 L |
8283 | |
8284 | ||
ce2cded5 | 8285 | |
42ecbf5e | 8286 | |
d7040cdb | 8287 | |
d7040cdb | 8288 | |
d7040cdb | 8289 | |
d7040cdb | 8290 | |
d7040cdb | 8291 | |
ce2cded5 L |
8292 | # This can be used to rebuild libtool when needed |
8293 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 8294 | |
ce2cded5 L |
8295 | # Always use our own libtool. |
8296 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 8297 | |
d7040cdb | 8298 | |
d7040cdb | 8299 | |
d7040cdb | 8300 | |
d7040cdb | 8301 | |
d7040cdb | 8302 | |
d7040cdb | 8303 | |
d7040cdb | 8304 | |
d7040cdb | 8305 | |
d7040cdb | 8306 | |
d7040cdb | 8307 | |
d7040cdb | 8308 | |
d7040cdb | 8309 | |
d7040cdb | 8310 | |
d7040cdb | 8311 | |
d7040cdb | 8312 | |
d7040cdb SE |
8313 | |
8314 | ||
8315 | ||
8316 | ||
8317 | ||
8318 | ||
8319 | ||
3725885a | 8320 | |
d7040cdb SE |
8321 | |
8322 | ||
ce2cded5 | 8323 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
8324 | |
8325 | ||
8326 | ||
8327 | ||
8328 | ||
8329 | ||
d7040cdb SE |
8330 | |
8331 | ||
8332 | ||
8333 | ||
8334 | ||
8335 | ||
8336 | ||
8337 | ||
ce2cded5 L |
8338 | if test -n "${ZSH_VERSION+set}" ; then |
8339 | setopt NO_GLOB_SUBST | |
8340 | fi | |
d7040cdb | 8341 | |
81ecdfbb RW |
8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8343 | $as_echo_n "checking for objdir... " >&6; } | |
d0ac1c44 | 8344 | if ${lt_cv_objdir+:} false; then : |
81ecdfbb | 8345 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
8346 | else |
8347 | rm -f .libs 2>/dev/null | |
8348 | mkdir .libs 2>/dev/null | |
8349 | if test -d .libs; then | |
8350 | lt_cv_objdir=.libs | |
8351 | else | |
8352 | # MS-DOS does not allow filenames that begin with a dot. | |
8353 | lt_cv_objdir=_libs | |
8354 | fi | |
8355 | rmdir .libs 2>/dev/null | |
8356 | fi | |
81ecdfbb RW |
8357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8358 | $as_echo "$lt_cv_objdir" >&6; } | |
ce2cded5 | 8359 | objdir=$lt_cv_objdir |
d7040cdb SE |
8360 | |
8361 | ||
8362 | ||
8363 | ||
8364 | ||
ce2cded5 L |
8365 | cat >>confdefs.h <<_ACEOF |
8366 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8367 | _ACEOF | |
d7040cdb SE |
8368 | |
8369 | ||
8370 | ||
8371 | ||
ce2cded5 L |
8372 | case $host_os in |
8373 | aix3*) | |
8374 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8375 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8376 | # vanish in a puff of smoke. | |
8377 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8378 | COLLECT_NAMES= | |
8379 | export COLLECT_NAMES | |
8380 | fi | |
8381 | ;; | |
8382 | esac | |
d7040cdb | 8383 | |
ce2cded5 L |
8384 | # Global variables: |
8385 | ofile=libtool | |
8386 | can_build_shared=yes | |
d7040cdb | 8387 | |
ce2cded5 L |
8388 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8389 | # which needs '.lib'). | |
8390 | libext=a | |
d7040cdb | 8391 | |
ce2cded5 | 8392 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 8393 | |
ce2cded5 L |
8394 | old_CC="$CC" |
8395 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 8396 | |
ce2cded5 L |
8397 | # Set sane defaults for various variables |
8398 | test -z "$CC" && CC=cc | |
8399 | test -z "$LTCC" && LTCC=$CC | |
8400 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8401 | test -z "$LD" && LD=ld | |
8402 | test -z "$ac_objext" && ac_objext=o | |
d7040cdb | 8403 | |
ce2cded5 L |
8404 | for cc_temp in $compiler""; do |
8405 | case $cc_temp in | |
8406 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8407 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8408 | \-*) ;; | |
8409 | *) break;; | |
8410 | esac | |
8411 | done | |
3725885a | 8412 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
d7040cdb SE |
8413 | |
8414 | ||
ce2cded5 L |
8415 | # Only perform the check for file, if the check method requires it |
8416 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8417 | case $deplibs_check_method in | |
8418 | file_magic*) | |
8419 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
8420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8421 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
d0ac1c44 | 8422 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
81ecdfbb | 8423 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
8424 | else |
8425 | case $MAGIC_CMD in | |
8426 | [\\/*] | ?:[\\/]*) | |
8427 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8428 | ;; | |
8429 | *) | |
8430 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8431 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8432 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8433 | for ac_dir in $ac_dummy; do | |
8434 | IFS="$lt_save_ifs" | |
8435 | test -z "$ac_dir" && ac_dir=. | |
8436 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8437 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8438 | if test -n "$file_magic_test_file"; then | |
8439 | case $deplibs_check_method in | |
8440 | "file_magic "*) | |
8441 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8442 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8443 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8444 | $EGREP "$file_magic_regex" > /dev/null; then | |
8445 | : | |
8446 | else | |
8447 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8448 | |
ce2cded5 L |
8449 | *** Warning: the command libtool uses to detect shared libraries, |
8450 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8451 | *** The result is that libtool may fail to recognize shared libraries | |
8452 | *** as such. This will affect the creation of libtool libraries that | |
8453 | *** depend on shared libraries, but programs linked with such libtool | |
8454 | *** libraries will work regardless of this problem. Nevertheless, you | |
8455 | *** may want to report the problem to your system manager and/or to | |
8456 | *** bug-libtool@gnu.org | |
d7040cdb | 8457 | |
ce2cded5 L |
8458 | _LT_EOF |
8459 | fi ;; | |
8460 | esac | |
8461 | fi | |
8462 | break | |
8463 | fi | |
8464 | done | |
8465 | IFS="$lt_save_ifs" | |
8466 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8467 | ;; | |
8468 | esac | |
8469 | fi | |
d7040cdb | 8470 | |
ce2cded5 L |
8471 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8472 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8474 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 8475 | else |
81ecdfbb RW |
8476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8477 | $as_echo "no" >&6; } | |
ce2cded5 | 8478 | fi |
d7040cdb SE |
8479 | |
8480 | ||
8481 | ||
8482 | ||
8483 | ||
ce2cded5 L |
8484 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8485 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
8486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8487 | $as_echo_n "checking for file... " >&6; } | |
d0ac1c44 | 8488 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
81ecdfbb | 8489 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
8490 | else |
8491 | case $MAGIC_CMD in | |
8492 | [\\/*] | ?:[\\/]*) | |
8493 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8494 | ;; | |
8495 | *) | |
8496 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8497 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8498 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8499 | for ac_dir in $ac_dummy; do | |
8500 | IFS="$lt_save_ifs" | |
8501 | test -z "$ac_dir" && ac_dir=. | |
8502 | if test -f $ac_dir/file; then | |
8503 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8504 | if test -n "$file_magic_test_file"; then | |
8505 | case $deplibs_check_method in | |
8506 | "file_magic "*) | |
8507 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8508 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8509 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8510 | $EGREP "$file_magic_regex" > /dev/null; then | |
8511 | : | |
8512 | else | |
8513 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8514 | |
ce2cded5 L |
8515 | *** Warning: the command libtool uses to detect shared libraries, |
8516 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8517 | *** The result is that libtool may fail to recognize shared libraries | |
8518 | *** as such. This will affect the creation of libtool libraries that | |
8519 | *** depend on shared libraries, but programs linked with such libtool | |
8520 | *** libraries will work regardless of this problem. Nevertheless, you | |
8521 | *** may want to report the problem to your system manager and/or to | |
8522 | *** bug-libtool@gnu.org | |
d7040cdb | 8523 | |
ce2cded5 L |
8524 | _LT_EOF |
8525 | fi ;; | |
8526 | esac | |
8527 | fi | |
8528 | break | |
8529 | fi | |
8530 | done | |
8531 | IFS="$lt_save_ifs" | |
8532 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8533 | ;; | |
8534 | esac | |
8535 | fi | |
d7040cdb | 8536 | |
ce2cded5 L |
8537 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8538 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8540 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 8541 | else |
81ecdfbb RW |
8542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8543 | $as_echo "no" >&6; } | |
ce2cded5 | 8544 | fi |
d7040cdb SE |
8545 | |
8546 | ||
ce2cded5 L |
8547 | else |
8548 | MAGIC_CMD=: | |
8549 | fi | |
8550 | fi | |
d7040cdb | 8551 | |
ce2cded5 L |
8552 | fi |
8553 | ;; | |
8554 | esac | |
d7040cdb | 8555 | |
ce2cded5 | 8556 | # Use C for the default configuration in the libtool script |
d7040cdb | 8557 | |
ce2cded5 L |
8558 | lt_save_CC="$CC" |
8559 | ac_ext=c | |
8560 | ac_cpp='$CPP $CPPFLAGS' | |
8561 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8562 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8563 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
8564 | |
8565 | ||
ce2cded5 L |
8566 | # Source file extension for C test sources. |
8567 | ac_ext=c | |
d7040cdb | 8568 | |
ce2cded5 L |
8569 | # Object file extension for compiled C test sources. |
8570 | objext=o | |
8571 | objext=$objext | |
d7040cdb | 8572 | |
ce2cded5 L |
8573 | # Code to be used in simple compile tests |
8574 | lt_simple_compile_test_code="int some_variable = 0;" | |
d7040cdb | 8575 | |
ce2cded5 L |
8576 | # Code to be used in simple link tests |
8577 | lt_simple_link_test_code='int main(){return(0);}' | |
d7040cdb SE |
8578 | |
8579 | ||
8580 | ||
8581 | ||
8582 | ||
8583 | ||
8584 | ||
ce2cded5 L |
8585 | # If no C compiler was specified, use CC. |
8586 | LTCC=${LTCC-"$CC"} | |
d7040cdb | 8587 | |
ce2cded5 L |
8588 | # If no C compiler flags were specified, use CFLAGS. |
8589 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d7040cdb | 8590 | |
ce2cded5 L |
8591 | # Allow CC to be a program name with arguments. |
8592 | compiler=$CC | |
d7040cdb | 8593 | |
ce2cded5 L |
8594 | # Save the default compiler, since it gets overwritten when the other |
8595 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8596 | compiler_DEFAULT=$CC | |
d7040cdb | 8597 | |
ce2cded5 L |
8598 | # save warnings/boilerplate of simple test code |
8599 | ac_outfile=conftest.$ac_objext | |
8600 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8601 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8602 | _lt_compiler_boilerplate=`cat conftest.err` | |
8603 | $RM conftest* | |
d7040cdb | 8604 | |
ce2cded5 L |
8605 | ac_outfile=conftest.$ac_objext |
8606 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8607 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8608 | _lt_linker_boilerplate=`cat conftest.err` | |
b214d478 | 8609 | $RM -r conftest* |
d7040cdb SE |
8610 | |
8611 | ||
ce2cded5 L |
8612 | ## CAVEAT EMPTOR: |
8613 | ## There is no encapsulation within the following macros, do not change | |
8614 | ## the running order or otherwise move them around unless you know exactly | |
8615 | ## what you are doing... | |
8616 | if test -n "$compiler"; then | |
d7040cdb | 8617 | |
ce2cded5 | 8618 | lt_prog_compiler_no_builtin_flag= |
d7040cdb | 8619 | |
ce2cded5 | 8620 | if test "$GCC" = yes; then |
3725885a RW |
8621 | case $cc_basename in |
8622 | nvcc*) | |
8623 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8624 | *) | |
8625 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8626 | esac | |
d7040cdb | 8627 | |
81ecdfbb RW |
8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8629 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
d0ac1c44 | 8630 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
81ecdfbb | 8631 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
8632 | else |
8633 | lt_cv_prog_compiler_rtti_exceptions=no | |
8634 | ac_outfile=conftest.$ac_objext | |
8635 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8636 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8637 | # Insert the option either (1) after the last *FLAGS variable, or | |
8638 | # (2) before a word containing "conftest.", or (3) at the end. | |
8639 | # Note that $ac_compile itself does not contain backslashes and begins | |
8640 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8641 | # The option is referenced via a variable to avoid confusing sed. | |
8642 | lt_compile=`echo "$ac_compile" | $SED \ | |
8643 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8644 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8645 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8646 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
8647 | (eval "$lt_compile" 2>conftest.err) |
8648 | ac_status=$? | |
8649 | cat conftest.err >&5 | |
3725885a | 8650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
8651 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8652 | # The compiler can only warn and ignore the option if not recognized | |
8653 | # So say no if there are warnings other than the usual output. | |
3725885a | 8654 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
8655 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8656 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8657 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8658 | fi | |
8659 | fi | |
8660 | $RM conftest* | |
d7040cdb | 8661 | |
ce2cded5 | 8662 | fi |
81ecdfbb RW |
8663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8664 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
d7040cdb | 8665 | |
ce2cded5 L |
8666 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8667 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8668 | else | |
8669 | : | |
8670 | fi | |
d7040cdb | 8671 | |
ce2cded5 | 8672 | fi |
d7040cdb SE |
8673 | |
8674 | ||
8675 | ||
8676 | ||
8677 | ||
8678 | ||
ce2cded5 L |
8679 | lt_prog_compiler_wl= |
8680 | lt_prog_compiler_pic= | |
8681 | lt_prog_compiler_static= | |
d7040cdb | 8682 | |
81ecdfbb RW |
8683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8684 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
d7040cdb | 8685 | |
ce2cded5 L |
8686 | if test "$GCC" = yes; then |
8687 | lt_prog_compiler_wl='-Wl,' | |
8688 | lt_prog_compiler_static='-static' | |
d7040cdb | 8689 | |
ce2cded5 L |
8690 | case $host_os in |
8691 | aix*) | |
8692 | # All AIX code is PIC. | |
8693 | if test "$host_cpu" = ia64; then | |
8694 | # AIX 5 now supports IA64 processor | |
8695 | lt_prog_compiler_static='-Bstatic' | |
8696 | fi | |
52204357 | 8697 | lt_prog_compiler_pic='-fPIC' |
ce2cded5 | 8698 | ;; |
d7040cdb | 8699 | |
ce2cded5 | 8700 | amigaos*) |
b214d478 SE |
8701 | case $host_cpu in |
8702 | powerpc) | |
8703 | # see comment about AmigaOS4 .so support | |
8704 | lt_prog_compiler_pic='-fPIC' | |
8705 | ;; | |
8706 | m68k) | |
8707 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8708 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8709 | # like `-m68040'. | |
8710 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8711 | ;; | |
8712 | esac | |
ce2cded5 | 8713 | ;; |
d7040cdb | 8714 | |
ce2cded5 L |
8715 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8716 | # PIC is the default for these OSes. | |
8717 | ;; | |
d7040cdb | 8718 | |
b214d478 | 8719 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8720 | # This hack is so that the source file can tell whether it is being |
8721 | # built for inclusion in a dll (and should export symbols for example). | |
8722 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8723 | # (--disable-auto-import) libraries | |
8724 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8725 | ;; | |
d7040cdb | 8726 | |
ce2cded5 L |
8727 | darwin* | rhapsody*) |
8728 | # PIC is the default on this platform | |
8729 | # Common symbols not allowed in MH_DYLIB files | |
8730 | lt_prog_compiler_pic='-fno-common' | |
8731 | ;; | |
d7040cdb | 8732 | |
3725885a RW |
8733 | haiku*) |
8734 | # PIC is the default for Haiku. | |
8735 | # The "-static" flag exists, but is broken. | |
8736 | lt_prog_compiler_static= | |
8737 | ;; | |
8738 | ||
ce2cded5 | 8739 | hpux*) |
b214d478 SE |
8740 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8741 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8742 | # sets the default TLS model and affects inlining. | |
ce2cded5 | 8743 | case $host_cpu in |
b214d478 | 8744 | hppa*64*) |
ce2cded5 L |
8745 | # +Z the default |
8746 | ;; | |
8747 | *) | |
8748 | lt_prog_compiler_pic='-fPIC' | |
8749 | ;; | |
8750 | esac | |
8751 | ;; | |
d7040cdb | 8752 | |
ce2cded5 L |
8753 | interix[3-9]*) |
8754 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8755 | # Instead, we relocate shared libraries at runtime. | |
8756 | ;; | |
d7040cdb | 8757 | |
ce2cded5 L |
8758 | msdosdjgpp*) |
8759 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8760 | # on systems that don't support them. | |
8761 | lt_prog_compiler_can_build_shared=no | |
8762 | enable_shared=no | |
8763 | ;; | |
d7040cdb | 8764 | |
ce2cded5 L |
8765 | *nto* | *qnx*) |
8766 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8767 | # it will coredump. | |
8768 | lt_prog_compiler_pic='-fPIC -shared' | |
8769 | ;; | |
d7040cdb | 8770 | |
ce2cded5 L |
8771 | sysv4*MP*) |
8772 | if test -d /usr/nec; then | |
8773 | lt_prog_compiler_pic=-Kconform_pic | |
8774 | fi | |
8775 | ;; | |
d7040cdb | 8776 | |
ce2cded5 L |
8777 | *) |
8778 | lt_prog_compiler_pic='-fPIC' | |
8779 | ;; | |
8780 | esac | |
3725885a RW |
8781 | |
8782 | case $cc_basename in | |
8783 | nvcc*) # Cuda Compiler Driver 2.2 | |
8784 | lt_prog_compiler_wl='-Xlinker ' | |
8785 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8786 | ;; | |
8787 | esac | |
ce2cded5 L |
8788 | else |
8789 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8790 | case $host_os in | |
8791 | aix*) | |
8792 | lt_prog_compiler_wl='-Wl,' | |
8793 | if test "$host_cpu" = ia64; then | |
8794 | # AIX 5 now supports IA64 processor | |
8795 | lt_prog_compiler_static='-Bstatic' | |
8796 | else | |
8797 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8798 | fi | |
8799 | ;; | |
d7040cdb | 8800 | |
b214d478 | 8801 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8802 | # This hack is so that the source file can tell whether it is being |
8803 | # built for inclusion in a dll (and should export symbols for example). | |
8804 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8805 | ;; | |
d7040cdb | 8806 | |
ce2cded5 L |
8807 | hpux9* | hpux10* | hpux11*) |
8808 | lt_prog_compiler_wl='-Wl,' | |
8809 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8810 | # not for PA HP-UX. | |
8811 | case $host_cpu in | |
8812 | hppa*64*|ia64*) | |
8813 | # +Z the default | |
8814 | ;; | |
8815 | *) | |
8816 | lt_prog_compiler_pic='+Z' | |
8817 | ;; | |
8818 | esac | |
8819 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8820 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8821 | ;; | |
d7040cdb | 8822 | |
ce2cded5 L |
8823 | irix5* | irix6* | nonstopux*) |
8824 | lt_prog_compiler_wl='-Wl,' | |
8825 | # PIC (with -KPIC) is the default. | |
8826 | lt_prog_compiler_static='-non_shared' | |
8827 | ;; | |
d7040cdb | 8828 | |
58e24671 | 8829 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 8830 | case $cc_basename in |
b214d478 SE |
8831 | # old Intel for x86_64 which still supported -KPIC. |
8832 | ecc*) | |
ce2cded5 L |
8833 | lt_prog_compiler_wl='-Wl,' |
8834 | lt_prog_compiler_pic='-KPIC' | |
8835 | lt_prog_compiler_static='-static' | |
8836 | ;; | |
b214d478 SE |
8837 | # icc used to be incompatible with GCC. |
8838 | # ICC 10 doesn't accept -KPIC any more. | |
8839 | icc* | ifort*) | |
8840 | lt_prog_compiler_wl='-Wl,' | |
8841 | lt_prog_compiler_pic='-fPIC' | |
8842 | lt_prog_compiler_static='-static' | |
8843 | ;; | |
8844 | # Lahey Fortran 8.1. | |
8845 | lf95*) | |
8846 | lt_prog_compiler_wl='-Wl,' | |
8847 | lt_prog_compiler_pic='--shared' | |
8848 | lt_prog_compiler_static='--static' | |
8849 | ;; | |
3725885a | 8850 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
ce2cded5 L |
8851 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8852 | # which looks to be a dead project) | |
8853 | lt_prog_compiler_wl='-Wl,' | |
8854 | lt_prog_compiler_pic='-fpic' | |
8855 | lt_prog_compiler_static='-Bstatic' | |
8856 | ;; | |
8857 | ccc*) | |
8858 | lt_prog_compiler_wl='-Wl,' | |
8859 | # All Alpha code is PIC. | |
8860 | lt_prog_compiler_static='-non_shared' | |
8861 | ;; | |
3725885a RW |
8862 | xl* | bgxl* | bgf* | mpixl*) |
8863 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
b214d478 SE |
8864 | lt_prog_compiler_wl='-Wl,' |
8865 | lt_prog_compiler_pic='-qpic' | |
8866 | lt_prog_compiler_static='-qstaticlink' | |
8867 | ;; | |
ce2cded5 L |
8868 | *) |
8869 | case `$CC -V 2>&1 | sed 5q` in | |
3725885a RW |
8870 | *Sun\ F* | *Sun*Fortran*) |
8871 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
ce2cded5 L |
8872 | lt_prog_compiler_pic='-KPIC' |
8873 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8874 | lt_prog_compiler_wl='' |
ce2cded5 | 8875 | ;; |
3725885a RW |
8876 | *Sun\ C*) |
8877 | # Sun C 5.9 | |
ce2cded5 L |
8878 | lt_prog_compiler_pic='-KPIC' |
8879 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8880 | lt_prog_compiler_wl='-Wl,' |
ce2cded5 L |
8881 | ;; |
8882 | esac | |
8883 | ;; | |
8884 | esac | |
8885 | ;; | |
d7040cdb | 8886 | |
ce2cded5 L |
8887 | newsos6) |
8888 | lt_prog_compiler_pic='-KPIC' | |
8889 | lt_prog_compiler_static='-Bstatic' | |
8890 | ;; | |
d7040cdb | 8891 | |
ce2cded5 L |
8892 | *nto* | *qnx*) |
8893 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8894 | # it will coredump. | |
8895 | lt_prog_compiler_pic='-fPIC -shared' | |
8896 | ;; | |
d7040cdb | 8897 | |
ce2cded5 L |
8898 | osf3* | osf4* | osf5*) |
8899 | lt_prog_compiler_wl='-Wl,' | |
8900 | # All OSF/1 code is PIC. | |
8901 | lt_prog_compiler_static='-non_shared' | |
8902 | ;; | |
d7040cdb | 8903 | |
ce2cded5 L |
8904 | rdos*) |
8905 | lt_prog_compiler_static='-non_shared' | |
8906 | ;; | |
d7040cdb | 8907 | |
ce2cded5 L |
8908 | solaris*) |
8909 | lt_prog_compiler_pic='-KPIC' | |
8910 | lt_prog_compiler_static='-Bstatic' | |
8911 | case $cc_basename in | |
8912 | f77* | f90* | f95*) | |
8913 | lt_prog_compiler_wl='-Qoption ld ';; | |
8914 | *) | |
8915 | lt_prog_compiler_wl='-Wl,';; | |
8916 | esac | |
8917 | ;; | |
d7040cdb | 8918 | |
ce2cded5 L |
8919 | sunos4*) |
8920 | lt_prog_compiler_wl='-Qoption ld ' | |
8921 | lt_prog_compiler_pic='-PIC' | |
8922 | lt_prog_compiler_static='-Bstatic' | |
8923 | ;; | |
d7040cdb | 8924 | |
ce2cded5 L |
8925 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8926 | lt_prog_compiler_wl='-Wl,' | |
8927 | lt_prog_compiler_pic='-KPIC' | |
8928 | lt_prog_compiler_static='-Bstatic' | |
8929 | ;; | |
d7040cdb | 8930 | |
ce2cded5 L |
8931 | sysv4*MP*) |
8932 | if test -d /usr/nec ;then | |
8933 | lt_prog_compiler_pic='-Kconform_pic' | |
8934 | lt_prog_compiler_static='-Bstatic' | |
8935 | fi | |
8936 | ;; | |
d7040cdb | 8937 | |
ce2cded5 L |
8938 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8939 | lt_prog_compiler_wl='-Wl,' | |
8940 | lt_prog_compiler_pic='-KPIC' | |
8941 | lt_prog_compiler_static='-Bstatic' | |
8942 | ;; | |
d7040cdb | 8943 | |
ce2cded5 L |
8944 | unicos*) |
8945 | lt_prog_compiler_wl='-Wl,' | |
8946 | lt_prog_compiler_can_build_shared=no | |
8947 | ;; | |
d7040cdb | 8948 | |
ce2cded5 L |
8949 | uts4*) |
8950 | lt_prog_compiler_pic='-pic' | |
8951 | lt_prog_compiler_static='-Bstatic' | |
8952 | ;; | |
d7040cdb | 8953 | |
ce2cded5 L |
8954 | *) |
8955 | lt_prog_compiler_can_build_shared=no | |
8956 | ;; | |
8957 | esac | |
8958 | fi | |
d7040cdb | 8959 | |
ce2cded5 L |
8960 | case $host_os in |
8961 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8962 | *djgpp*) | |
8963 | lt_prog_compiler_pic= | |
8964 | ;; | |
8965 | *) | |
8966 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8967 | ;; | |
8968 | esac | |
81ecdfbb RW |
8969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8970 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d7040cdb SE |
8971 | |
8972 | ||
8973 | ||
8974 | ||
8975 | ||
8976 | ||
ce2cded5 L |
8977 | # |
8978 | # Check to make sure the PIC flag actually works. | |
8979 | # | |
8980 | if test -n "$lt_prog_compiler_pic"; then | |
81ecdfbb RW |
8981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8982 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
d0ac1c44 | 8983 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
81ecdfbb | 8984 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 8985 | else |
b214d478 | 8986 | lt_cv_prog_compiler_pic_works=no |
ce2cded5 L |
8987 | ac_outfile=conftest.$ac_objext |
8988 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8989 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8990 | # Insert the option either (1) after the last *FLAGS variable, or | |
8991 | # (2) before a word containing "conftest.", or (3) at the end. | |
8992 | # Note that $ac_compile itself does not contain backslashes and begins | |
8993 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8994 | # The option is referenced via a variable to avoid confusing sed. | |
8995 | lt_compile=`echo "$ac_compile" | $SED \ | |
8996 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8997 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8998 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8999 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9000 | (eval "$lt_compile" 2>conftest.err) |
9001 | ac_status=$? | |
9002 | cat conftest.err >&5 | |
3725885a | 9003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9004 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9005 | # The compiler can only warn and ignore the option if not recognized | |
9006 | # So say no if there are warnings other than the usual output. | |
3725885a | 9007 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
9008 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9009 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 9010 | lt_cv_prog_compiler_pic_works=yes |
ce2cded5 L |
9011 | fi |
9012 | fi | |
9013 | $RM conftest* | |
d7040cdb | 9014 | |
ce2cded5 | 9015 | fi |
81ecdfbb RW |
9016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
9017 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
ce2cded5 | 9018 | |
b214d478 | 9019 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
ce2cded5 L |
9020 | case $lt_prog_compiler_pic in |
9021 | "" | " "*) ;; | |
9022 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9023 | esac | |
9024 | else | |
9025 | lt_prog_compiler_pic= | |
9026 | lt_prog_compiler_can_build_shared=no | |
9027 | fi | |
9028 | ||
9029 | fi | |
d7040cdb SE |
9030 | |
9031 | ||
9032 | ||
9033 | ||
9034 | ||
9035 | ||
ce2cded5 L |
9036 | # |
9037 | # Check to make sure the static flag actually works. | |
9038 | # | |
9039 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
9040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
9041 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
d0ac1c44 | 9042 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
81ecdfbb | 9043 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 9044 | else |
b214d478 | 9045 | lt_cv_prog_compiler_static_works=no |
ce2cded5 L |
9046 | save_LDFLAGS="$LDFLAGS" |
9047 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9048 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9049 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9050 | # The linker can only warn and ignore the option if not recognized | |
9051 | # So say no if there are warnings | |
9052 | if test -s conftest.err; then | |
9053 | # Append any errors to the config.log. | |
9054 | cat conftest.err 1>&5 | |
3725885a | 9055 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
ce2cded5 L |
9056 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9057 | if diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 9058 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
9059 | fi |
9060 | else | |
b214d478 | 9061 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
9062 | fi |
9063 | fi | |
b214d478 | 9064 | $RM -r conftest* |
ce2cded5 | 9065 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 9066 | |
ce2cded5 | 9067 | fi |
81ecdfbb RW |
9068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
9069 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 9070 | |
b214d478 | 9071 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
ce2cded5 L |
9072 | : |
9073 | else | |
9074 | lt_prog_compiler_static= | |
9075 | fi | |
d7040cdb SE |
9076 | |
9077 | ||
9078 | ||
9079 | ||
9080 | ||
9081 | ||
9082 | ||
81ecdfbb RW |
9083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9084 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 9085 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
81ecdfbb | 9086 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
9087 | else |
9088 | lt_cv_prog_compiler_c_o=no | |
9089 | $RM -r conftest 2>/dev/null | |
9090 | mkdir conftest | |
9091 | cd conftest | |
9092 | mkdir out | |
9093 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9094 | |
ce2cded5 L |
9095 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9096 | # Insert the option either (1) after the last *FLAGS variable, or | |
9097 | # (2) before a word containing "conftest.", or (3) at the end. | |
9098 | # Note that $ac_compile itself does not contain backslashes and begins | |
9099 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9100 | lt_compile=`echo "$ac_compile" | $SED \ | |
9101 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9102 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9103 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9104 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9105 | (eval "$lt_compile" 2>out/conftest.err) |
9106 | ac_status=$? | |
9107 | cat out/conftest.err >&5 | |
3725885a | 9108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9109 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9110 | then | |
9111 | # The compiler can only warn and ignore the option if not recognized | |
9112 | # So say no if there are warnings | |
3725885a | 9113 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
9114 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9115 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9116 | lt_cv_prog_compiler_c_o=yes | |
9117 | fi | |
9118 | fi | |
9119 | chmod u+w . 2>&5 | |
9120 | $RM conftest* | |
9121 | # SGI C++ compiler will create directory out/ii_files/ for | |
9122 | # template instantiation | |
9123 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9124 | $RM out/* && rmdir out | |
9125 | cd .. | |
9126 | $RM -r conftest | |
9127 | $RM conftest* | |
d7040cdb | 9128 | |
ce2cded5 | 9129 | fi |
81ecdfbb RW |
9130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9131 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
9132 | |
9133 | ||
9134 | ||
9135 | ||
9136 | ||
9137 | ||
81ecdfbb RW |
9138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9139 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 9140 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
81ecdfbb | 9141 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
9142 | else |
9143 | lt_cv_prog_compiler_c_o=no | |
9144 | $RM -r conftest 2>/dev/null | |
9145 | mkdir conftest | |
9146 | cd conftest | |
9147 | mkdir out | |
9148 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9149 | |
ce2cded5 L |
9150 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9151 | # Insert the option either (1) after the last *FLAGS variable, or | |
9152 | # (2) before a word containing "conftest.", or (3) at the end. | |
9153 | # Note that $ac_compile itself does not contain backslashes and begins | |
9154 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9155 | lt_compile=`echo "$ac_compile" | $SED \ | |
9156 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9157 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9158 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9159 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9160 | (eval "$lt_compile" 2>out/conftest.err) |
9161 | ac_status=$? | |
9162 | cat out/conftest.err >&5 | |
3725885a | 9163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9164 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9165 | then | |
9166 | # The compiler can only warn and ignore the option if not recognized | |
9167 | # So say no if there are warnings | |
3725885a | 9168 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
9169 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9170 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9171 | lt_cv_prog_compiler_c_o=yes | |
9172 | fi | |
9173 | fi | |
9174 | chmod u+w . 2>&5 | |
9175 | $RM conftest* | |
9176 | # SGI C++ compiler will create directory out/ii_files/ for | |
9177 | # template instantiation | |
9178 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9179 | $RM out/* && rmdir out | |
9180 | cd .. | |
9181 | $RM -r conftest | |
9182 | $RM conftest* | |
9183 | ||
9184 | fi | |
81ecdfbb RW |
9185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9186 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
ce2cded5 L |
9187 | |
9188 | ||
9189 | ||
9190 | ||
9191 | hard_links="nottested" | |
9192 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9193 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
9194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
9195 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
ce2cded5 L |
9196 | hard_links=yes |
9197 | $RM conftest* | |
9198 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9199 | touch conftest.a | |
9200 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9201 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
9202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
9203 | $as_echo "$hard_links" >&6; } | |
ce2cded5 | 9204 | if test "$hard_links" = no; then |
81ecdfbb RW |
9205 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
9206 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
ce2cded5 | 9207 | need_locks=warn |
d7040cdb | 9208 | fi |
d7040cdb | 9209 | else |
ce2cded5 | 9210 | need_locks=no |
d7040cdb | 9211 | fi |
d7040cdb | 9212 | |
d7040cdb | 9213 | |
d7040cdb | 9214 | |
d7040cdb | 9215 | |
d7040cdb | 9216 | |
d7040cdb | 9217 | |
81ecdfbb RW |
9218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9219 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 9220 | |
ce2cded5 L |
9221 | runpath_var= |
9222 | allow_undefined_flag= | |
9223 | always_export_symbols=no | |
9224 | archive_cmds= | |
9225 | archive_expsym_cmds= | |
9226 | compiler_needs_object=no | |
9227 | enable_shared_with_static_runtimes=no | |
9228 | export_dynamic_flag_spec= | |
9229 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9230 | hardcode_automatic=no | |
9231 | hardcode_direct=no | |
9232 | hardcode_direct_absolute=no | |
9233 | hardcode_libdir_flag_spec= | |
9234 | hardcode_libdir_flag_spec_ld= | |
9235 | hardcode_libdir_separator= | |
9236 | hardcode_minus_L=no | |
9237 | hardcode_shlibpath_var=unsupported | |
9238 | inherit_rpath=no | |
9239 | link_all_deplibs=unknown | |
9240 | module_cmds= | |
9241 | module_expsym_cmds= | |
9242 | old_archive_from_new_cmds= | |
9243 | old_archive_from_expsyms_cmds= | |
9244 | thread_safe_flag_spec= | |
9245 | whole_archive_flag_spec= | |
9246 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9247 | # included in the symbol list | |
9248 | include_expsyms= | |
9249 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9250 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9251 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9252 | # as well as any symbol that contains `d'. | |
b214d478 | 9253 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
ce2cded5 L |
9254 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9255 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9256 | # the symbol is explicitly referenced. Since portable code cannot | |
9257 | # rely on this symbol name, it's probably fine to never include it in | |
9258 | # preloaded symbol tables. | |
b214d478 | 9259 | # Exclude shared library initialization/finalization symbols. |
ce2cded5 | 9260 | extract_expsyms_cmds= |
d7040cdb | 9261 | |
ce2cded5 | 9262 | case $host_os in |
b214d478 | 9263 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9264 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
9265 | # When not using gcc, we currently assume that we are using | |
9266 | # Microsoft Visual C++. | |
9267 | if test "$GCC" != yes; then | |
9268 | with_gnu_ld=no | |
9269 | fi | |
d7040cdb | 9270 | ;; |
ce2cded5 L |
9271 | interix*) |
9272 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9273 | with_gnu_ld=yes | |
9274 | ;; | |
9275 | openbsd*) | |
9276 | with_gnu_ld=no | |
d7040cdb SE |
9277 | ;; |
9278 | esac | |
d7040cdb | 9279 | |
ce2cded5 | 9280 | ld_shlibs=yes |
3725885a RW |
9281 | |
9282 | # On some targets, GNU ld is compatible enough with the native linker | |
9283 | # that we're better off using the native interface for both. | |
9284 | lt_use_gnu_ld_interface=no | |
ce2cded5 | 9285 | if test "$with_gnu_ld" = yes; then |
3725885a RW |
9286 | case $host_os in |
9287 | aix*) | |
9288 | # The AIX port of GNU ld has always aspired to compatibility | |
9289 | # with the native linker. However, as the warning in the GNU ld | |
9290 | # block says, versions before 2.19.5* couldn't really create working | |
9291 | # shared libraries, regardless of the interface used. | |
9292 | case `$LD -v 2>&1` in | |
9293 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9294 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9295 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9296 | *) | |
9297 | lt_use_gnu_ld_interface=yes | |
9298 | ;; | |
9299 | esac | |
9300 | ;; | |
9301 | *) | |
9302 | lt_use_gnu_ld_interface=yes | |
9303 | ;; | |
9304 | esac | |
9305 | fi | |
9306 | ||
9307 | if test "$lt_use_gnu_ld_interface" = yes; then | |
ce2cded5 L |
9308 | # If archive_cmds runs LD, not CC, wlarc should be empty |
9309 | wlarc='${wl}' | |
d7040cdb | 9310 | |
ce2cded5 L |
9311 | # Set some defaults for GNU ld with shared library support. These |
9312 | # are reset later if shared libraries are not supported. Putting them | |
9313 | # here allows them to be overridden if necessary. | |
9314 | runpath_var=LD_RUN_PATH | |
9315 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9316 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9317 | # ancient GNU ld didn't support --whole-archive et. al. | |
9318 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9319 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9320 | else | |
9321 | whole_archive_flag_spec= | |
9322 | fi | |
9323 | supports_anon_versioning=no | |
9324 | case `$LD -v 2>&1` in | |
3725885a | 9325 | *GNU\ gold*) supports_anon_versioning=yes ;; |
ce2cded5 L |
9326 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9327 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9328 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9329 | *\ 2.11.*) ;; # other 2.11 versions | |
9330 | *) supports_anon_versioning=yes ;; | |
9331 | esac | |
d7040cdb | 9332 | |
ce2cded5 L |
9333 | # See if GNU ld supports shared libraries. |
9334 | case $host_os in | |
50e7d84b | 9335 | aix[3-9]*) |
ce2cded5 L |
9336 | # On AIX/PPC, the GNU linker is very broken |
9337 | if test "$host_cpu" != ia64; then | |
9338 | ld_shlibs=no | |
9339 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 9340 | |
3725885a | 9341 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
ce2cded5 L |
9342 | *** to be unable to reliably create shared libraries on AIX. |
9343 | *** Therefore, libtool is disabling shared libraries support. If you | |
3725885a RW |
9344 | *** really care for shared libraries, you may want to install binutils |
9345 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9346 | *** You will then need to restart the configuration process. | |
d7040cdb | 9347 | |
ce2cded5 L |
9348 | _LT_EOF |
9349 | fi | |
d7040cdb | 9350 | ;; |
d7040cdb | 9351 | |
ce2cded5 | 9352 | amigaos*) |
b214d478 SE |
9353 | case $host_cpu in |
9354 | powerpc) | |
9355 | # see comment about AmigaOS4 .so support | |
9356 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9357 | archive_expsym_cmds='' | |
9358 | ;; | |
9359 | m68k) | |
9360 | 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)' | |
9361 | hardcode_libdir_flag_spec='-L$libdir' | |
9362 | hardcode_minus_L=yes | |
9363 | ;; | |
9364 | esac | |
ce2cded5 | 9365 | ;; |
d7040cdb | 9366 | |
ce2cded5 L |
9367 | beos*) |
9368 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9369 | allow_undefined_flag=unsupported | |
9370 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9371 | # support --undefined. This deserves some investigation. FIXME | |
9372 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9373 | else | |
9374 | ld_shlibs=no | |
9375 | fi | |
9376 | ;; | |
d7040cdb | 9377 | |
b214d478 | 9378 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9379 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9380 | # as there is no search path for DLLs. | |
9381 | hardcode_libdir_flag_spec='-L$libdir' | |
3725885a | 9382 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
ce2cded5 L |
9383 | allow_undefined_flag=unsupported |
9384 | always_export_symbols=no | |
9385 | enable_shared_with_static_runtimes=yes | |
9386 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9387 | ||
9388 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9389 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9390 | # If the export-symbols file already is a .def file (1st line | |
9391 | # is EXPORTS), use it as is; otherwise, prepend... | |
9392 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9393 | cp $export_symbols $output_objdir/$soname.def; | |
d7040cdb | 9394 | else |
ce2cded5 L |
9395 | echo EXPORTS > $output_objdir/$soname.def; |
9396 | cat $export_symbols >> $output_objdir/$soname.def; | |
9397 | fi~ | |
9398 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9399 | else | |
9400 | ld_shlibs=no | |
9401 | fi | |
9402 | ;; | |
d7040cdb | 9403 | |
3725885a RW |
9404 | haiku*) |
9405 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9406 | link_all_deplibs=yes | |
9407 | ;; | |
9408 | ||
ce2cded5 L |
9409 | interix[3-9]*) |
9410 | hardcode_direct=no | |
9411 | hardcode_shlibpath_var=no | |
9412 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9413 | export_dynamic_flag_spec='${wl}-E' | |
9414 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9415 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9416 | # default) and relocated if they conflict, which is a slow very memory | |
9417 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9418 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9419 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9420 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9421 | 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' | |
9422 | ;; | |
d7040cdb | 9423 | |
6a6859cb | 9424 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
ce2cded5 L |
9425 | tmp_diet=no |
9426 | if test "$host_os" = linux-dietlibc; then | |
9427 | case $cc_basename in | |
9428 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9429 | esac | |
9430 | fi | |
9431 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9432 | && test "$tmp_diet" = no | |
9433 | then | |
6e733cce | 9434 | tmp_addflag=' $pic_flag' |
b214d478 | 9435 | tmp_sharedflag='-shared' |
ce2cded5 L |
9436 | case $cc_basename,$host_cpu in |
9437 | pgcc*) # Portland Group C compiler | |
3725885a | 9438 | 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' |
ce2cded5 L |
9439 | tmp_addflag=' $pic_flag' |
9440 | ;; | |
3725885a RW |
9441 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9442 | # Portland Group f77 and f90 compilers | |
9443 | 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' | |
ce2cded5 L |
9444 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9445 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9446 | tmp_addflag=' -i_dynamic' ;; | |
9447 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9448 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9449 | ifc* | ifort*) # Intel Fortran compiler | |
9450 | tmp_addflag=' -nofor_main' ;; | |
b214d478 SE |
9451 | lf95*) # Lahey Fortran 8.1 |
9452 | whole_archive_flag_spec= | |
9453 | tmp_sharedflag='--shared' ;; | |
3725885a | 9454 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
b214d478 SE |
9455 | tmp_sharedflag='-qmkshrobj' |
9456 | tmp_addflag= ;; | |
3725885a RW |
9457 | nvcc*) # Cuda Compiler Driver 2.2 |
9458 | 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' | |
9459 | compiler_needs_object=yes | |
9460 | ;; | |
ce2cded5 L |
9461 | esac |
9462 | case `$CC -V 2>&1 | sed 5q` in | |
9463 | *Sun\ C*) # Sun C 5.9 | |
3725885a | 9464 | 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' |
ce2cded5 L |
9465 | compiler_needs_object=yes |
9466 | tmp_sharedflag='-G' ;; | |
9467 | *Sun\ F*) # Sun Fortran 8.3 | |
9468 | tmp_sharedflag='-G' ;; | |
ce2cded5 L |
9469 | esac |
9470 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 9471 | |
ce2cded5 L |
9472 | if test "x$supports_anon_versioning" = xyes; then |
9473 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9474 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9475 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9476 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9477 | fi | |
b214d478 SE |
9478 | |
9479 | case $cc_basename in | |
3725885a | 9480 | xlf* | bgf* | bgxlf* | mpixlf*) |
b214d478 SE |
9481 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9482 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9483 | hardcode_libdir_flag_spec= | |
9484 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9485 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9486 | if test "x$supports_anon_versioning" = xyes; then | |
9487 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9488 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9489 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9490 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9491 | fi | |
9492 | ;; | |
9493 | esac | |
ce2cded5 L |
9494 | else |
9495 | ld_shlibs=no | |
9496 | fi | |
9497 | ;; | |
d7040cdb | 9498 | |
ce2cded5 L |
9499 | netbsd*) |
9500 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9501 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9502 | wlarc= | |
9503 | else | |
9504 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9505 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9506 | fi | |
9507 | ;; | |
9508 | ||
9509 | solaris*) | |
9510 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9511 | ld_shlibs=no | |
9512 | cat <<_LT_EOF 1>&2 | |
9513 | ||
9514 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9515 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9516 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9517 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9518 | *** your PATH or compiler configuration so that the native linker is | |
9519 | *** used, and then restart. | |
9520 | ||
9521 | _LT_EOF | |
9522 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9523 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9524 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9525 | else | |
9526 | ld_shlibs=no | |
9527 | fi | |
9528 | ;; | |
9529 | ||
9530 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9531 | case `$LD -v 2>&1` in | |
9532 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9533 | ld_shlibs=no | |
9534 | cat <<_LT_EOF 1>&2 | |
9535 | ||
9536 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9537 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9538 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9539 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9540 | *** your PATH or compiler configuration so that the native linker is | |
9541 | *** used, and then restart. | |
9542 | ||
9543 | _LT_EOF | |
9544 | ;; | |
9545 | *) | |
9546 | # For security reasons, it is highly recommended that you always | |
9547 | # use absolute paths for naming shared libraries, and exclude the | |
9548 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9549 | # requires that you compile everything twice, which is a pain. | |
9550 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9551 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9552 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9553 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9554 | else | |
9555 | ld_shlibs=no | |
9556 | fi | |
9557 | ;; | |
9558 | esac | |
9559 | ;; | |
9560 | ||
9561 | sunos4*) | |
9562 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9563 | wlarc= | |
9564 | hardcode_direct=yes | |
9565 | hardcode_shlibpath_var=no | |
9566 | ;; | |
9567 | ||
9568 | *) | |
9569 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9570 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9571 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9572 | else | |
9573 | ld_shlibs=no | |
9574 | fi | |
9575 | ;; | |
9576 | esac | |
9577 | ||
9578 | if test "$ld_shlibs" = no; then | |
9579 | runpath_var= | |
9580 | hardcode_libdir_flag_spec= | |
9581 | export_dynamic_flag_spec= | |
9582 | whole_archive_flag_spec= | |
9583 | fi | |
9584 | else | |
9585 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9586 | case $host_os in | |
9587 | aix3*) | |
9588 | allow_undefined_flag=unsupported | |
9589 | always_export_symbols=yes | |
9590 | 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' | |
9591 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9592 | # are no directories specified by -L. | |
9593 | hardcode_minus_L=yes | |
9594 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9595 | # Neither direct hardcoding nor static linking is supported with a | |
9596 | # broken collect2. | |
9597 | hardcode_direct=unsupported | |
9598 | fi | |
9599 | ;; | |
9600 | ||
50e7d84b | 9601 | aix[4-9]*) |
ce2cded5 L |
9602 | if test "$host_cpu" = ia64; then |
9603 | # On IA64, the linker does run time linking by default, so we don't | |
9604 | # have to do anything special. | |
9605 | aix_use_runtimelinking=no | |
9606 | exp_sym_flag='-Bexport' | |
9607 | no_entry_flag="" | |
9608 | else | |
9609 | # If we're using GNU nm, then we don't want the "-C" option. | |
9610 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
3725885a RW |
9611 | # Also, AIX nm treats weak defined symbols like other global |
9612 | # defined symbols, whereas GNU nm marks them as "W". | |
ce2cded5 | 9613 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
3725885a | 9614 | 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' |
ce2cded5 | 9615 | else |
5c14705f | 9616 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
ce2cded5 L |
9617 | fi |
9618 | aix_use_runtimelinking=no | |
9619 | ||
9620 | # Test if we are trying to use run time linking or normal | |
9621 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9622 | # need to do runtime linking. | |
50e7d84b | 9623 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
9624 | for ld_flag in $LDFLAGS; do |
9625 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9626 | aix_use_runtimelinking=yes | |
9627 | break | |
9628 | fi | |
9629 | done | |
9630 | ;; | |
9631 | esac | |
9632 | ||
9633 | exp_sym_flag='-bexport' | |
9634 | no_entry_flag='-bnoentry' | |
9635 | fi | |
9636 | ||
9637 | # When large executables or shared objects are built, AIX ld can | |
9638 | # have problems creating the table of contents. If linking a library | |
9639 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9640 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9641 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9642 | ||
9643 | archive_cmds='' | |
9644 | hardcode_direct=yes | |
9645 | hardcode_direct_absolute=yes | |
9646 | hardcode_libdir_separator=':' | |
9647 | link_all_deplibs=yes | |
9648 | file_list_spec='${wl}-f,' | |
9649 | ||
9650 | if test "$GCC" = yes; then | |
9651 | case $host_os in aix4.[012]|aix4.[012].*) | |
9652 | # We only want to do this on AIX 4.2 and lower, the check | |
9653 | # below for broken collect2 doesn't work under 4.3+ | |
9654 | collect2name=`${CC} -print-prog-name=collect2` | |
9655 | if test -f "$collect2name" && | |
9656 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9657 | then | |
9658 | # We have reworked collect2 | |
9659 | : | |
9660 | else | |
9661 | # We have old collect2 | |
9662 | hardcode_direct=unsupported | |
9663 | # It fails to find uninstalled libraries when the uninstalled | |
9664 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9665 | # to unsupported forces relinking | |
9666 | hardcode_minus_L=yes | |
9667 | hardcode_libdir_flag_spec='-L$libdir' | |
9668 | hardcode_libdir_separator= | |
9669 | fi | |
9670 | ;; | |
9671 | esac | |
9672 | shared_flag='-shared' | |
9673 | if test "$aix_use_runtimelinking" = yes; then | |
9674 | shared_flag="$shared_flag "'${wl}-G' | |
9675 | fi | |
9676 | else | |
9677 | # not using gcc | |
9678 | if test "$host_cpu" = ia64; then | |
9679 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9680 | # chokes on -Wl,-G. The following line is correct: | |
9681 | shared_flag='-G' | |
9682 | else | |
9683 | if test "$aix_use_runtimelinking" = yes; then | |
9684 | shared_flag='${wl}-G' | |
9685 | else | |
9686 | shared_flag='${wl}-bM:SRE' | |
9687 | fi | |
9688 | fi | |
9689 | fi | |
9690 | ||
b214d478 | 9691 | export_dynamic_flag_spec='${wl}-bexpall' |
ce2cded5 L |
9692 | # It seems that -bexpall does not export symbols beginning with |
9693 | # underscore (_), so it is better to generate a list of symbols to export. | |
9694 | always_export_symbols=yes | |
9695 | if test "$aix_use_runtimelinking" = yes; then | |
9696 | # Warning - without using the other runtime loading flags (-brtl), | |
9697 | # -berok will link without error, but may produce a broken library. | |
9698 | allow_undefined_flag='-berok' | |
9699 | # Determine the default libpath from the value encoded in an | |
9700 | # empty executable. | |
81ecdfbb | 9701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
9702 | /* end confdefs.h. */ |
9703 | ||
9704 | int | |
9705 | main () | |
9706 | { | |
9707 | ||
9708 | ; | |
9709 | return 0; | |
9710 | } | |
9711 | _ACEOF | |
81ecdfbb | 9712 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9713 | |
ce2cded5 L |
9714 | lt_aix_libpath_sed=' |
9715 | /Import File Strings/,/^$/ { | |
9716 | /^0/ { | |
9717 | s/^0 *\(.*\)$/\1/ | |
9718 | p | |
9719 | } | |
9720 | }' | |
9721 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9722 | # Check for a 64-bit object if we didn't find anything. | |
9723 | if test -z "$aix_libpath"; then | |
9724 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9725 | fi | |
d7040cdb | 9726 | fi |
81ecdfbb RW |
9727 | rm -f core conftest.err conftest.$ac_objext \ |
9728 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 9729 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9730 | |
ce2cded5 | 9731 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
3725885a | 9732 | 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" |
ce2cded5 L |
9733 | else |
9734 | if test "$host_cpu" = ia64; then | |
9735 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9736 | allow_undefined_flag="-z nodefs" | |
9737 | 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" | |
9738 | else | |
9739 | # Determine the default libpath from the value encoded in an | |
9740 | # empty executable. | |
81ecdfbb | 9741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 9742 | /* end confdefs.h. */ |
d7040cdb | 9743 | |
ce2cded5 L |
9744 | int |
9745 | main () | |
9746 | { | |
d7040cdb | 9747 | |
ce2cded5 L |
9748 | ; |
9749 | return 0; | |
9750 | } | |
9751 | _ACEOF | |
81ecdfbb | 9752 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9753 | |
ce2cded5 L |
9754 | lt_aix_libpath_sed=' |
9755 | /Import File Strings/,/^$/ { | |
9756 | /^0/ { | |
9757 | s/^0 *\(.*\)$/\1/ | |
9758 | p | |
9759 | } | |
9760 | }' | |
9761 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9762 | # Check for a 64-bit object if we didn't find anything. | |
9763 | if test -z "$aix_libpath"; then | |
9764 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9765 | fi | |
ce2cded5 | 9766 | fi |
81ecdfbb RW |
9767 | rm -f core conftest.err conftest.$ac_objext \ |
9768 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 9769 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9770 | |
ce2cded5 L |
9771 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9772 | # Warning - without using the other run time loading flags, | |
9773 | # -berok will link without error, but may produce a broken library. | |
9774 | no_undefined_flag=' ${wl}-bernotok' | |
9775 | allow_undefined_flag=' ${wl}-berok' | |
3725885a RW |
9776 | if test "$with_gnu_ld" = yes; then |
9777 | # We only use this code for GNU lds that support --whole-archive. | |
9778 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9779 | else | |
9780 | # Exported symbols can be pulled into shared objects from archives | |
9781 | whole_archive_flag_spec='$convenience' | |
9782 | fi | |
ce2cded5 L |
9783 | archive_cmds_need_lc=yes |
9784 | # This is similar to how AIX traditionally builds its shared libraries. | |
9785 | 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' | |
9786 | fi | |
9787 | fi | |
9788 | ;; | |
d7040cdb | 9789 | |
ce2cded5 | 9790 | amigaos*) |
b214d478 SE |
9791 | case $host_cpu in |
9792 | powerpc) | |
9793 | # see comment about AmigaOS4 .so support | |
9794 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9795 | archive_expsym_cmds='' | |
9796 | ;; | |
9797 | m68k) | |
9798 | 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)' | |
9799 | hardcode_libdir_flag_spec='-L$libdir' | |
9800 | hardcode_minus_L=yes | |
9801 | ;; | |
9802 | esac | |
ce2cded5 L |
9803 | ;; |
9804 | ||
9805 | bsdi[45]*) | |
9806 | export_dynamic_flag_spec=-rdynamic | |
9807 | ;; | |
9808 | ||
b214d478 | 9809 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9810 | # When not using gcc, we currently assume that we are using |
9811 | # Microsoft Visual C++. | |
9812 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9813 | # no search path for DLLs. | |
9814 | hardcode_libdir_flag_spec=' ' | |
9815 | allow_undefined_flag=unsupported | |
9816 | # Tell ltmain to make .lib files, not .a files. | |
9817 | libext=lib | |
9818 | # Tell ltmain to make .dll files, not .so files. | |
9819 | shrext_cmds=".dll" | |
9820 | # FIXME: Setting linknames here is a bad hack. | |
3725885a | 9821 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
ce2cded5 L |
9822 | # The linker will automatically build a .lib file if we build a DLL. |
9823 | old_archive_from_new_cmds='true' | |
9824 | # FIXME: Should let the user specify the lib program. | |
9825 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9826 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9827 | enable_shared_with_static_runtimes=yes | |
9828 | ;; | |
9829 | ||
9830 | darwin* | rhapsody*) | |
d7040cdb | 9831 | |
b214d478 SE |
9832 | |
9833 | archive_cmds_need_lc=no | |
9834 | hardcode_direct=no | |
9835 | hardcode_automatic=yes | |
9836 | hardcode_shlibpath_var=unsupported | |
3725885a RW |
9837 | if test "$lt_cv_ld_force_load" = "yes"; then |
9838 | 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\"`' | |
9839 | else | |
9840 | whole_archive_flag_spec='' | |
9841 | fi | |
b214d478 SE |
9842 | link_all_deplibs=yes |
9843 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9844 | case $cc_basename in | |
9845 | ifort*) _lt_dar_can_shared=yes ;; | |
9846 | *) _lt_dar_can_shared=$GCC ;; | |
9847 | esac | |
9848 | if test "$_lt_dar_can_shared" = "yes"; then | |
3725885a | 9849 | output_verbose_link_cmd=func_echo_all |
b214d478 SE |
9850 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9851 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9852 | 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}" | |
9853 | 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}" | |
9854 | ||
9855 | else | |
9856 | ld_shlibs=no | |
9857 | fi | |
9858 | ||
ce2cded5 | 9859 | ;; |
d7040cdb | 9860 | |
ce2cded5 L |
9861 | dgux*) |
9862 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9863 | hardcode_libdir_flag_spec='-L$libdir' | |
9864 | hardcode_shlibpath_var=no | |
9865 | ;; | |
d7040cdb | 9866 | |
ce2cded5 L |
9867 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9868 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9869 | # does not break anything, and helps significantly (at the cost of a little | |
9870 | # extra space). | |
9871 | freebsd2.2*) | |
9872 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9873 | hardcode_libdir_flag_spec='-R$libdir' | |
9874 | hardcode_direct=yes | |
9875 | hardcode_shlibpath_var=no | |
d7040cdb | 9876 | ;; |
d7040cdb | 9877 | |
ce2cded5 | 9878 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
6d2920c8 | 9879 | freebsd2.*) |
ce2cded5 L |
9880 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9881 | hardcode_direct=yes | |
9882 | hardcode_minus_L=yes | |
9883 | hardcode_shlibpath_var=no | |
9884 | ;; | |
d7040cdb | 9885 | |
ce2cded5 L |
9886 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9887 | freebsd* | dragonfly*) | |
9888 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9889 | hardcode_libdir_flag_spec='-R$libdir' | |
9890 | hardcode_direct=yes | |
9891 | hardcode_shlibpath_var=no | |
9892 | ;; | |
d7040cdb | 9893 | |
ce2cded5 L |
9894 | hpux9*) |
9895 | if test "$GCC" = yes; then | |
9896 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9897 | else | |
9898 | 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' | |
9899 | fi | |
9900 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9901 | hardcode_libdir_separator=: | |
9902 | hardcode_direct=yes | |
d7040cdb | 9903 | |
ce2cded5 L |
9904 | # hardcode_minus_L: Not really in the search PATH, |
9905 | # but as the default location of the library. | |
9906 | hardcode_minus_L=yes | |
9907 | export_dynamic_flag_spec='${wl}-E' | |
9908 | ;; | |
d7040cdb | 9909 | |
ce2cded5 | 9910 | hpux10*) |
3725885a | 9911 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
ce2cded5 L |
9912 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9913 | else | |
9914 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9915 | fi | |
9916 | if test "$with_gnu_ld" = no; then | |
9917 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9918 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9919 | hardcode_libdir_separator=: | |
9920 | hardcode_direct=yes | |
9921 | hardcode_direct_absolute=yes | |
9922 | export_dynamic_flag_spec='${wl}-E' | |
9923 | # hardcode_minus_L: Not really in the search PATH, | |
9924 | # but as the default location of the library. | |
9925 | hardcode_minus_L=yes | |
9926 | fi | |
9927 | ;; | |
d7040cdb | 9928 | |
ce2cded5 | 9929 | hpux11*) |
3725885a | 9930 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
ce2cded5 L |
9931 | case $host_cpu in |
9932 | hppa*64*) | |
6a6859cb | 9933 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
9934 | ;; |
9935 | ia64*) | |
b214d478 | 9936 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
9937 | ;; |
9938 | *) | |
9939 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9940 | ;; | |
9941 | esac | |
9942 | else | |
9943 | case $host_cpu in | |
9944 | hppa*64*) | |
6a6859cb | 9945 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
9946 | ;; |
9947 | ia64*) | |
9948 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9949 | ;; | |
9950 | *) | |
3725885a RW |
9951 | |
9952 | # Older versions of the 11.00 compiler do not understand -b yet | |
9953 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9955 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
d0ac1c44 | 9956 | if ${lt_cv_prog_compiler__b+:} false; then : |
3725885a RW |
9957 | $as_echo_n "(cached) " >&6 |
9958 | else | |
9959 | lt_cv_prog_compiler__b=no | |
9960 | save_LDFLAGS="$LDFLAGS" | |
9961 | LDFLAGS="$LDFLAGS -b" | |
9962 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9963 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9964 | # The linker can only warn and ignore the option if not recognized | |
9965 | # So say no if there are warnings | |
9966 | if test -s conftest.err; then | |
9967 | # Append any errors to the config.log. | |
9968 | cat conftest.err 1>&5 | |
9969 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9970 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9971 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9972 | lt_cv_prog_compiler__b=yes | |
9973 | fi | |
9974 | else | |
9975 | lt_cv_prog_compiler__b=yes | |
9976 | fi | |
9977 | fi | |
9978 | $RM -r conftest* | |
9979 | LDFLAGS="$save_LDFLAGS" | |
9980 | ||
9981 | fi | |
9982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9983 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9984 | ||
9985 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9986 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9987 | else | |
9988 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9989 | fi | |
9990 | ||
ce2cded5 L |
9991 | ;; |
9992 | esac | |
9993 | fi | |
9994 | if test "$with_gnu_ld" = no; then | |
9995 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9996 | hardcode_libdir_separator=: | |
d7040cdb | 9997 | |
ce2cded5 L |
9998 | case $host_cpu in |
9999 | hppa*64*|ia64*) | |
10000 | hardcode_direct=no | |
10001 | hardcode_shlibpath_var=no | |
10002 | ;; | |
10003 | *) | |
10004 | hardcode_direct=yes | |
10005 | hardcode_direct_absolute=yes | |
10006 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 10007 | |
ce2cded5 L |
10008 | # hardcode_minus_L: Not really in the search PATH, |
10009 | # but as the default location of the library. | |
10010 | hardcode_minus_L=yes | |
10011 | ;; | |
10012 | esac | |
10013 | fi | |
10014 | ;; | |
d7040cdb | 10015 | |
ce2cded5 L |
10016 | irix5* | irix6* | nonstopux*) |
10017 | if test "$GCC" = yes; then | |
3725885a | 10018 | archive_cmds='$CC -shared $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' |
ce2cded5 L |
10019 | # Try to use the -exported_symbol ld option, if it does not |
10020 | # work, assume that -exports_file does not work either and | |
10021 | # implicitly export all symbols. | |
10022 | save_LDFLAGS="$LDFLAGS" | |
10023 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
81ecdfbb RW |
10024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10025 | /* end confdefs.h. */ | |
ce2cded5 L |
10026 | int foo(void) {} |
10027 | _ACEOF | |
81ecdfbb | 10028 | if ac_fn_c_try_link "$LINENO"; then : |
3725885a | 10029 | archive_expsym_cmds='$CC -shared $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' |
d7040cdb | 10030 | |
ce2cded5 | 10031 | fi |
81ecdfbb RW |
10032 | rm -f core conftest.err conftest.$ac_objext \ |
10033 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10034 | LDFLAGS="$save_LDFLAGS" |
10035 | else | |
3725885a RW |
10036 | 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' |
10037 | 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' | |
ce2cded5 L |
10038 | fi |
10039 | archive_cmds_need_lc='no' | |
10040 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10041 | hardcode_libdir_separator=: | |
10042 | inherit_rpath=yes | |
10043 | link_all_deplibs=yes | |
10044 | ;; | |
d7040cdb | 10045 | |
ce2cded5 L |
10046 | netbsd*) |
10047 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10048 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10049 | else | |
10050 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10051 | fi | |
10052 | hardcode_libdir_flag_spec='-R$libdir' | |
10053 | hardcode_direct=yes | |
10054 | hardcode_shlibpath_var=no | |
10055 | ;; | |
d7040cdb | 10056 | |
ce2cded5 L |
10057 | newsos6) |
10058 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10059 | hardcode_direct=yes | |
10060 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10061 | hardcode_libdir_separator=: | |
10062 | hardcode_shlibpath_var=no | |
10063 | ;; | |
d7040cdb | 10064 | |
ce2cded5 L |
10065 | *nto* | *qnx*) |
10066 | ;; | |
d7040cdb | 10067 | |
ce2cded5 | 10068 | openbsd*) |
b214d478 SE |
10069 | if test -f /usr/libexec/ld.so; then |
10070 | hardcode_direct=yes | |
10071 | hardcode_shlibpath_var=no | |
10072 | hardcode_direct_absolute=yes | |
10073 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
ce2cded5 | 10074 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
b214d478 | 10075 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
ce2cded5 | 10076 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
b214d478 SE |
10077 | export_dynamic_flag_spec='${wl}-E' |
10078 | else | |
10079 | case $host_os in | |
10080 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10081 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10082 | hardcode_libdir_flag_spec='-R$libdir' | |
10083 | ;; | |
10084 | *) | |
10085 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10086 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10087 | ;; | |
10088 | esac | |
10089 | fi | |
10090 | else | |
10091 | ld_shlibs=no | |
ce2cded5 L |
10092 | fi |
10093 | ;; | |
d7040cdb | 10094 | |
ce2cded5 L |
10095 | os2*) |
10096 | hardcode_libdir_flag_spec='-L$libdir' | |
10097 | hardcode_minus_L=yes | |
10098 | allow_undefined_flag=unsupported | |
3725885a | 10099 | 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' |
ce2cded5 L |
10100 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
10101 | ;; | |
d7040cdb | 10102 | |
ce2cded5 L |
10103 | osf3*) |
10104 | if test "$GCC" = yes; then | |
10105 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 10106 | 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' |
ce2cded5 L |
10107 | else |
10108 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 10109 | 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' |
ce2cded5 L |
10110 | fi |
10111 | archive_cmds_need_lc='no' | |
10112 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10113 | hardcode_libdir_separator=: | |
10114 | ;; | |
d7040cdb | 10115 | |
ce2cded5 L |
10116 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
10117 | if test "$GCC" = yes; then | |
10118 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 10119 | archive_cmds='$CC -shared${allow_undefined_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' |
ce2cded5 L |
10120 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10121 | else | |
10122 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 10123 | 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' |
ce2cded5 | 10124 | 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~ |
3725885a | 10125 | $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' |
d7040cdb | 10126 | |
ce2cded5 L |
10127 | # Both c and cxx compiler support -rpath directly |
10128 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10129 | fi | |
10130 | archive_cmds_need_lc='no' | |
10131 | hardcode_libdir_separator=: | |
10132 | ;; | |
d7040cdb | 10133 | |
ce2cded5 L |
10134 | solaris*) |
10135 | no_undefined_flag=' -z defs' | |
10136 | if test "$GCC" = yes; then | |
10137 | wlarc='${wl}' | |
10138 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10139 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10140 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10141 | else | |
10142 | case `$CC -V 2>&1` in | |
10143 | *"Compilers 5.0"*) | |
10144 | wlarc='' | |
10145 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10146 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10147 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10148 | ;; | |
10149 | *) | |
10150 | wlarc='${wl}' | |
10151 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10152 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10153 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10154 | ;; | |
10155 | esac | |
10156 | fi | |
10157 | hardcode_libdir_flag_spec='-R$libdir' | |
10158 | hardcode_shlibpath_var=no | |
10159 | case $host_os in | |
10160 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10161 | *) | |
10162 | # The compiler driver will combine and reorder linker options, | |
10163 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10164 | # but is careful enough not to reorder. | |
10165 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10166 | if test "$GCC" = yes; then | |
10167 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10168 | else | |
10169 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10170 | fi | |
10171 | ;; | |
10172 | esac | |
10173 | link_all_deplibs=yes | |
10174 | ;; | |
d7040cdb | 10175 | |
ce2cded5 L |
10176 | sunos4*) |
10177 | if test "x$host_vendor" = xsequent; then | |
10178 | # Use $CC to link under sequent, because it throws in some extra .o | |
10179 | # files that make .init and .fini sections work. | |
10180 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10181 | else | |
10182 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10183 | fi | |
10184 | hardcode_libdir_flag_spec='-L$libdir' | |
10185 | hardcode_direct=yes | |
10186 | hardcode_minus_L=yes | |
10187 | hardcode_shlibpath_var=no | |
10188 | ;; | |
d7040cdb | 10189 | |
ce2cded5 L |
10190 | sysv4) |
10191 | case $host_vendor in | |
10192 | sni) | |
10193 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10194 | hardcode_direct=yes # is this really true??? | |
10195 | ;; | |
10196 | siemens) | |
10197 | ## LD is ld it makes a PLAMLIB | |
10198 | ## CC just makes a GrossModule. | |
10199 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10200 | reload_cmds='$CC -r -o $output$reload_objs' | |
10201 | hardcode_direct=no | |
10202 | ;; | |
10203 | motorola) | |
10204 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10205 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10206 | ;; | |
10207 | esac | |
10208 | runpath_var='LD_RUN_PATH' | |
10209 | hardcode_shlibpath_var=no | |
10210 | ;; | |
d7040cdb | 10211 | |
ce2cded5 L |
10212 | sysv4.3*) |
10213 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10214 | hardcode_shlibpath_var=no | |
10215 | export_dynamic_flag_spec='-Bexport' | |
10216 | ;; | |
d7040cdb | 10217 | |
ce2cded5 L |
10218 | sysv4*MP*) |
10219 | if test -d /usr/nec; then | |
10220 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10221 | hardcode_shlibpath_var=no | |
10222 | runpath_var=LD_RUN_PATH | |
10223 | hardcode_runpath_var=yes | |
10224 | ld_shlibs=yes | |
10225 | fi | |
10226 | ;; | |
d7040cdb | 10227 | |
ce2cded5 L |
10228 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10229 | no_undefined_flag='${wl}-z,text' | |
10230 | archive_cmds_need_lc=no | |
10231 | hardcode_shlibpath_var=no | |
10232 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 10233 | |
ce2cded5 L |
10234 | if test "$GCC" = yes; then |
10235 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10236 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10237 | else | |
10238 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10239 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10240 | fi | |
10241 | ;; | |
d7040cdb | 10242 | |
ce2cded5 L |
10243 | sysv5* | sco3.2v5* | sco5v6*) |
10244 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10245 | # link with -lc, and that would cause any symbols used from libc to | |
10246 | # always be unresolved, which means just about no library would | |
10247 | # ever link correctly. If we're not using GNU ld we use -z text | |
10248 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10249 | # as -z defs. | |
10250 | no_undefined_flag='${wl}-z,text' | |
10251 | allow_undefined_flag='${wl}-z,nodefs' | |
10252 | archive_cmds_need_lc=no | |
10253 | hardcode_shlibpath_var=no | |
10254 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10255 | hardcode_libdir_separator=':' | |
10256 | link_all_deplibs=yes | |
10257 | export_dynamic_flag_spec='${wl}-Bexport' | |
10258 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 10259 | |
ce2cded5 L |
10260 | if test "$GCC" = yes; then |
10261 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10262 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10263 | else | |
10264 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10265 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10266 | fi | |
10267 | ;; | |
d7040cdb | 10268 | |
ce2cded5 L |
10269 | uts4*) |
10270 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10271 | hardcode_libdir_flag_spec='-L$libdir' | |
10272 | hardcode_shlibpath_var=no | |
10273 | ;; | |
d7040cdb | 10274 | |
ce2cded5 L |
10275 | *) |
10276 | ld_shlibs=no | |
10277 | ;; | |
10278 | esac | |
d7040cdb | 10279 | |
ce2cded5 L |
10280 | if test x$host_vendor = xsni; then |
10281 | case $host in | |
10282 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10283 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10284 | ;; | |
10285 | esac | |
10286 | fi | |
10287 | fi | |
d7040cdb | 10288 | |
81ecdfbb RW |
10289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10290 | $as_echo "$ld_shlibs" >&6; } | |
ce2cded5 | 10291 | test "$ld_shlibs" = no && can_build_shared=no |
d7040cdb | 10292 | |
ce2cded5 | 10293 | with_gnu_ld=$with_gnu_ld |
d7040cdb SE |
10294 | |
10295 | ||
10296 | ||
10297 | ||
10298 | ||
10299 | ||
10300 | ||
10301 | ||
10302 | ||
10303 | ||
10304 | ||
10305 | ||
10306 | ||
10307 | ||
10308 | ||
ce2cded5 L |
10309 | # |
10310 | # Do we need to explicitly link libc? | |
10311 | # | |
10312 | case "x$archive_cmds_need_lc" in | |
10313 | x|xyes) | |
10314 | # Assume -lc should be added | |
10315 | archive_cmds_need_lc=yes | |
d7040cdb | 10316 | |
ce2cded5 L |
10317 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
10318 | case $archive_cmds in | |
10319 | *'~'*) | |
10320 | # FIXME: we may have to deal with multi-command sequences. | |
10321 | ;; | |
10322 | '$CC '*) | |
10323 | # Test whether the compiler implicitly links with -lc since on some | |
10324 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10325 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
10326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10327 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
d0ac1c44 | 10328 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
81ecdfbb | 10329 | $as_echo_n "(cached) " >&6 |
39144654 RW |
10330 | else |
10331 | $RM conftest* | |
10332 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 10333 | |
81ecdfbb | 10334 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
ce2cded5 L |
10335 | (eval $ac_compile) 2>&5 |
10336 | ac_status=$? | |
81ecdfbb RW |
10337 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10338 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
10339 | soname=conftest |
10340 | lib=conftest | |
10341 | libobjs=conftest.$ac_objext | |
10342 | deplibs= | |
10343 | wl=$lt_prog_compiler_wl | |
10344 | pic_flag=$lt_prog_compiler_pic | |
10345 | compiler_flags=-v | |
10346 | linker_flags=-v | |
10347 | verstring= | |
10348 | output_objdir=. | |
10349 | libname=conftest | |
10350 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10351 | allow_undefined_flag= | |
81ecdfbb | 10352 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
ce2cded5 L |
10353 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10354 | ac_status=$? | |
81ecdfbb RW |
10355 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10356 | test $ac_status = 0; } | |
39144654 RW |
10357 | then |
10358 | lt_cv_archive_cmds_need_lc=no | |
10359 | else | |
10360 | lt_cv_archive_cmds_need_lc=yes | |
10361 | fi | |
10362 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10363 | else | |
10364 | cat conftest.err 1>&5 | |
10365 | fi | |
10366 | $RM conftest* | |
10367 | ||
10368 | fi | |
81ecdfbb RW |
10369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10370 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 10371 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
ce2cded5 L |
10372 | ;; |
10373 | esac | |
10374 | fi | |
10375 | ;; | |
10376 | esac | |
d7040cdb SE |
10377 | |
10378 | ||
10379 | ||
10380 | ||
10381 | ||
10382 | ||
10383 | ||
10384 | ||
10385 | ||
10386 | ||
10387 | ||
10388 | ||
10389 | ||
10390 | ||
10391 | ||
10392 | ||
10393 | ||
10394 | ||
10395 | ||
10396 | ||
10397 | ||
10398 | ||
10399 | ||
10400 | ||
10401 | ||
10402 | ||
10403 | ||
d7040cdb | 10404 | |
d7040cdb | 10405 | |
d7040cdb SE |
10406 | |
10407 | ||
10408 | ||
10409 | ||
10410 | ||
10411 | ||
d7040cdb | 10412 | |
d7040cdb | 10413 | |
d7040cdb | 10414 | |
d7040cdb | 10415 | |
d7040cdb | 10416 | |
d7040cdb | 10417 | |
d7040cdb | 10418 | |
d7040cdb | 10419 | |
d7040cdb | 10420 | |
d7040cdb | 10421 | |
d7040cdb | 10422 | |
d7040cdb | 10423 | |
d7040cdb | 10424 | |
d7040cdb | 10425 | |
d7040cdb | 10426 | |
d7040cdb | 10427 | |
d7040cdb | 10428 | |
d7040cdb | 10429 | |
d7040cdb | 10430 | |
d7040cdb | 10431 | |
d7040cdb | 10432 | |
d7040cdb | 10433 | |
d7040cdb | 10434 | |
d7040cdb | 10435 | |
d7040cdb | 10436 | |
d7040cdb | 10437 | |
d7040cdb | 10438 | |
d7040cdb | 10439 | |
ce2cded5 L |
10440 | |
10441 | ||
10442 | ||
10443 | ||
10444 | ||
10445 | ||
10446 | ||
10447 | ||
10448 | ||
10449 | ||
10450 | ||
10451 | ||
10452 | ||
10453 | ||
10454 | ||
10455 | ||
10456 | ||
10457 | ||
10458 | ||
10459 | ||
10460 | ||
10461 | ||
10462 | ||
10463 | ||
10464 | ||
10465 | ||
10466 | ||
10467 | ||
10468 | ||
10469 | ||
10470 | ||
10471 | ||
10472 | ||
10473 | ||
10474 | ||
10475 | ||
10476 | ||
10477 | ||
10478 | ||
10479 | ||
10480 | ||
10481 | ||
10482 | ||
10483 | ||
10484 | ||
10485 | ||
10486 | ||
10487 | ||
10488 | ||
10489 | ||
10490 | ||
10491 | ||
10492 | ||
10493 | ||
10494 | ||
10495 | ||
10496 | ||
10497 | ||
10498 | ||
10499 | ||
10500 | ||
10501 | ||
10502 | ||
10503 | ||
10504 | ||
10505 | ||
10506 | ||
10507 | ||
10508 | ||
10509 | ||
10510 | ||
10511 | ||
10512 | ||
10513 | ||
10514 | ||
10515 | ||
10516 | ||
10517 | ||
10518 | ||
10519 | ||
10520 | ||
10521 | ||
10522 | ||
10523 | ||
10524 | ||
10525 | ||
10526 | ||
10527 | ||
10528 | ||
10529 | ||
10530 | ||
10531 | ||
10532 | ||
10533 | ||
81ecdfbb RW |
10534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10535 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
b214d478 SE |
10536 | |
10537 | if test "$GCC" = yes; then | |
ce2cded5 L |
10538 | case $host_os in |
10539 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10540 | *) lt_awk_arg="/^libraries:/" ;; | |
10541 | esac | |
3725885a RW |
10542 | case $host_os in |
10543 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10544 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10545 | esac | |
10546 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10547 | case $lt_search_path_spec in | |
10548 | *\;*) | |
ce2cded5 L |
10549 | # if the path contains ";" then we assume it to be the separator |
10550 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10551 | # assumed that no part of a normal pathname contains ";" but that should | |
10552 | # okay in the real world where ";" in dirpaths is itself problematic. | |
3725885a RW |
10553 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10554 | ;; | |
10555 | *) | |
10556 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10557 | ;; | |
10558 | esac | |
ce2cded5 L |
10559 | # Ok, now we have the path, separated by spaces, we can step through it |
10560 | # and add multilib dir if necessary. | |
10561 | lt_tmp_lt_search_path_spec= | |
10562 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10563 | for lt_sys_path in $lt_search_path_spec; do | |
10564 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10565 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10566 | else | |
10567 | test -d "$lt_sys_path" && \ | |
10568 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10569 | fi | |
10570 | done | |
3725885a | 10571 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
ce2cded5 L |
10572 | BEGIN {RS=" "; FS="/|\n";} { |
10573 | lt_foo=""; | |
10574 | lt_count=0; | |
10575 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10576 | if ($lt_i != "" && $lt_i != ".") { | |
10577 | if ($lt_i == "..") { | |
10578 | lt_count++; | |
10579 | } else { | |
10580 | if (lt_count == 0) { | |
10581 | lt_foo="/" $lt_i lt_foo; | |
10582 | } else { | |
10583 | lt_count--; | |
10584 | } | |
10585 | } | |
10586 | } | |
10587 | } | |
10588 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10589 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10590 | }'` | |
3725885a RW |
10591 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10592 | # for these hosts. | |
10593 | case $host_os in | |
10594 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10595 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10596 | esac | |
10597 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
d7040cdb | 10598 | else |
ce2cded5 L |
10599 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10600 | fi | |
10601 | library_names_spec= | |
10602 | libname_spec='lib$name' | |
10603 | soname_spec= | |
10604 | shrext_cmds=".so" | |
10605 | postinstall_cmds= | |
10606 | postuninstall_cmds= | |
10607 | finish_cmds= | |
10608 | finish_eval= | |
10609 | shlibpath_var= | |
10610 | shlibpath_overrides_runpath=unknown | |
10611 | version_type=none | |
10612 | dynamic_linker="$host_os ld.so" | |
10613 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10614 | need_lib_prefix=unknown | |
10615 | hardcode_into_libs=no | |
10616 | ||
10617 | # when you set need_version to no, make sure it does not cause -set_version | |
10618 | # flags to be left without arguments | |
10619 | need_version=unknown | |
10620 | ||
10621 | case $host_os in | |
10622 | aix3*) | |
10623 | version_type=linux | |
10624 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10625 | shlibpath_var=LIBPATH | |
10626 | ||
10627 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10628 | soname_spec='${libname}${release}${shared_ext}$major' | |
10629 | ;; | |
10630 | ||
50e7d84b | 10631 | aix[4-9]*) |
ce2cded5 L |
10632 | version_type=linux |
10633 | need_lib_prefix=no | |
10634 | need_version=no | |
10635 | hardcode_into_libs=yes | |
10636 | if test "$host_cpu" = ia64; then | |
10637 | # AIX 5 supports IA64 | |
10638 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10639 | shlibpath_var=LD_LIBRARY_PATH | |
10640 | else | |
10641 | # With GCC up to 2.95.x, collect2 would create an import file | |
10642 | # for dependence libraries. The import file would start with | |
10643 | # the line `#! .'. This would cause the generated library to | |
10644 | # depend on `.', always an invalid library. This was fixed in | |
10645 | # development snapshots of GCC prior to 3.0. | |
10646 | case $host_os in | |
10647 | aix4 | aix4.[01] | aix4.[01].*) | |
10648 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10649 | echo ' yes ' | |
10650 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10651 | : | |
10652 | else | |
10653 | can_build_shared=no | |
10654 | fi | |
10655 | ;; | |
10656 | esac | |
10657 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10658 | # soname into executable. Probably we can add versioning support to | |
10659 | # collect2, so additional links can be useful in future. | |
10660 | if test "$aix_use_runtimelinking" = yes; then | |
10661 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10662 | # instead of lib<name>.a to let people know that these are not | |
10663 | # typical AIX shared libraries. | |
10664 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10665 | else | |
10666 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10667 | # and later when we are not doing run time linking. | |
10668 | library_names_spec='${libname}${release}.a $libname.a' | |
10669 | soname_spec='${libname}${release}${shared_ext}$major' | |
10670 | fi | |
10671 | shlibpath_var=LIBPATH | |
10672 | fi | |
10673 | ;; | |
10674 | ||
10675 | amigaos*) | |
b214d478 SE |
10676 | case $host_cpu in |
10677 | powerpc) | |
10678 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10679 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10680 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10681 | ;; | |
10682 | m68k) | |
ce2cded5 L |
10683 | library_names_spec='$libname.ixlibrary $libname.a' |
10684 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
3725885a | 10685 | 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' |
b214d478 SE |
10686 | ;; |
10687 | esac | |
ce2cded5 L |
10688 | ;; |
10689 | ||
10690 | beos*) | |
10691 | library_names_spec='${libname}${shared_ext}' | |
10692 | dynamic_linker="$host_os ld.so" | |
10693 | shlibpath_var=LIBRARY_PATH | |
10694 | ;; | |
10695 | ||
10696 | bsdi[45]*) | |
10697 | version_type=linux | |
10698 | need_version=no | |
10699 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10700 | soname_spec='${libname}${release}${shared_ext}$major' | |
10701 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10702 | shlibpath_var=LD_LIBRARY_PATH | |
10703 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10704 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10705 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10706 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10707 | # libtool to hard-code these into programs | |
10708 | ;; | |
10709 | ||
b214d478 | 10710 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10711 | version_type=windows |
10712 | shrext_cmds=".dll" | |
10713 | need_version=no | |
10714 | need_lib_prefix=no | |
10715 | ||
b214d478 SE |
10716 | case $GCC,$host_os in |
10717 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
ce2cded5 L |
10718 | library_names_spec='$libname.dll.a' |
10719 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10720 | postinstall_cmds='base_file=`basename \${file}`~ | |
10721 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10722 | dldir=$destdir/`dirname \$dlpath`~ | |
10723 | test -d \$dldir || mkdir -p \$dldir~ | |
10724 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10725 | chmod a+x \$dldir/$dlname~ | |
10726 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10727 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10728 | fi' | |
10729 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10730 | dlpath=$dir/\$dldll~ | |
10731 | $RM \$dlpath' | |
10732 | shlibpath_overrides_runpath=yes | |
10733 | ||
10734 | case $host_os in | |
10735 | cygwin*) | |
10736 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10737 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
3725885a RW |
10738 | |
10739 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
ce2cded5 | 10740 | ;; |
b214d478 | 10741 | mingw* | cegcc*) |
ce2cded5 L |
10742 | # MinGW DLLs use traditional 'lib' prefix |
10743 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
ce2cded5 L |
10744 | ;; |
10745 | pw32*) | |
10746 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10747 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10748 | ;; | |
10749 | esac | |
10750 | ;; | |
10751 | ||
10752 | *) | |
10753 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10754 | ;; | |
10755 | esac | |
10756 | dynamic_linker='Win32 ld.exe' | |
10757 | # FIXME: first we should search . and the directory the executable is in | |
10758 | shlibpath_var=PATH | |
10759 | ;; | |
10760 | ||
10761 | darwin* | rhapsody*) | |
10762 | dynamic_linker="$host_os dyld" | |
10763 | version_type=darwin | |
10764 | need_lib_prefix=no | |
10765 | need_version=no | |
10766 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10767 | soname_spec='${libname}${release}${major}$shared_ext' | |
10768 | shlibpath_overrides_runpath=yes | |
10769 | shlibpath_var=DYLD_LIBRARY_PATH | |
10770 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10771 | ||
10772 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10773 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10774 | ;; | |
10775 | ||
10776 | dgux*) | |
10777 | version_type=linux | |
10778 | need_lib_prefix=no | |
10779 | need_version=no | |
10780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10781 | soname_spec='${libname}${release}${shared_ext}$major' | |
10782 | shlibpath_var=LD_LIBRARY_PATH | |
10783 | ;; | |
10784 | ||
ce2cded5 L |
10785 | freebsd* | dragonfly*) |
10786 | # DragonFly does not have aout. When/if they implement a new | |
10787 | # versioning mechanism, adjust this. | |
10788 | if test -x /usr/bin/objformat; then | |
10789 | objformat=`/usr/bin/objformat` | |
10790 | else | |
10791 | case $host_os in | |
6d2920c8 | 10792 | freebsd[23].*) objformat=aout ;; |
ce2cded5 L |
10793 | *) objformat=elf ;; |
10794 | esac | |
10795 | fi | |
10796 | version_type=freebsd-$objformat | |
10797 | case $version_type in | |
10798 | freebsd-elf*) | |
10799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10800 | need_version=no | |
10801 | need_lib_prefix=no | |
10802 | ;; | |
10803 | freebsd-*) | |
10804 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10805 | need_version=yes | |
10806 | ;; | |
10807 | esac | |
10808 | shlibpath_var=LD_LIBRARY_PATH | |
10809 | case $host_os in | |
6d2920c8 | 10810 | freebsd2.*) |
ce2cded5 L |
10811 | shlibpath_overrides_runpath=yes |
10812 | ;; | |
10813 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10814 | shlibpath_overrides_runpath=yes | |
10815 | hardcode_into_libs=yes | |
10816 | ;; | |
10817 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10818 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10819 | shlibpath_overrides_runpath=no | |
10820 | hardcode_into_libs=yes | |
10821 | ;; | |
10822 | *) # from 4.6 on, and DragonFly | |
10823 | shlibpath_overrides_runpath=yes | |
10824 | hardcode_into_libs=yes | |
10825 | ;; | |
10826 | esac | |
10827 | ;; | |
10828 | ||
3725885a RW |
10829 | haiku*) |
10830 | version_type=linux | |
10831 | need_lib_prefix=no | |
10832 | need_version=no | |
10833 | dynamic_linker="$host_os runtime_loader" | |
10834 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10835 | soname_spec='${libname}${release}${shared_ext}$major' | |
10836 | shlibpath_var=LIBRARY_PATH | |
10837 | shlibpath_overrides_runpath=yes | |
d85e70a3 | 10838 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
3725885a RW |
10839 | hardcode_into_libs=yes |
10840 | ;; | |
10841 | ||
ce2cded5 L |
10842 | hpux9* | hpux10* | hpux11*) |
10843 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10844 | # link against other versions. | |
10845 | version_type=sunos | |
10846 | need_lib_prefix=no | |
10847 | need_version=no | |
10848 | case $host_cpu in | |
10849 | ia64*) | |
10850 | shrext_cmds='.so' | |
10851 | hardcode_into_libs=yes | |
10852 | dynamic_linker="$host_os dld.so" | |
10853 | shlibpath_var=LD_LIBRARY_PATH | |
10854 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10855 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10856 | soname_spec='${libname}${release}${shared_ext}$major' | |
10857 | if test "X$HPUX_IA64_MODE" = X32; then | |
10858 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10859 | else | |
10860 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10861 | fi | |
10862 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10863 | ;; | |
10864 | hppa*64*) | |
10865 | shrext_cmds='.sl' | |
10866 | hardcode_into_libs=yes | |
10867 | dynamic_linker="$host_os dld.sl" | |
10868 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10869 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10870 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10871 | soname_spec='${libname}${release}${shared_ext}$major' | |
10872 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10873 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10874 | ;; | |
10875 | *) | |
10876 | shrext_cmds='.sl' | |
10877 | dynamic_linker="$host_os dld.sl" | |
10878 | shlibpath_var=SHLIB_PATH | |
10879 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10880 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10881 | soname_spec='${libname}${release}${shared_ext}$major' | |
10882 | ;; | |
10883 | esac | |
3725885a | 10884 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
ce2cded5 | 10885 | postinstall_cmds='chmod 555 $lib' |
3725885a RW |
10886 | # or fails outright, so override atomically: |
10887 | install_override_mode=555 | |
ce2cded5 L |
10888 | ;; |
10889 | ||
10890 | interix[3-9]*) | |
10891 | version_type=linux | |
10892 | need_lib_prefix=no | |
10893 | need_version=no | |
10894 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10895 | soname_spec='${libname}${release}${shared_ext}$major' | |
10896 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10897 | shlibpath_var=LD_LIBRARY_PATH | |
10898 | shlibpath_overrides_runpath=no | |
10899 | hardcode_into_libs=yes | |
10900 | ;; | |
10901 | ||
10902 | irix5* | irix6* | nonstopux*) | |
10903 | case $host_os in | |
10904 | nonstopux*) version_type=nonstopux ;; | |
10905 | *) | |
10906 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10907 | version_type=linux | |
10908 | else | |
10909 | version_type=irix | |
10910 | fi ;; | |
10911 | esac | |
10912 | need_lib_prefix=no | |
10913 | need_version=no | |
10914 | soname_spec='${libname}${release}${shared_ext}$major' | |
10915 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10916 | case $host_os in | |
10917 | irix5* | nonstopux*) | |
10918 | libsuff= shlibsuff= | |
10919 | ;; | |
10920 | *) | |
10921 | case $LD in # libtool.m4 will add one of these switches to LD | |
10922 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10923 | libsuff= shlibsuff= libmagic=32-bit;; | |
10924 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10925 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10926 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10927 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10928 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10929 | esac | |
10930 | ;; | |
10931 | esac | |
10932 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10933 | shlibpath_overrides_runpath=no | |
10934 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10935 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10936 | hardcode_into_libs=yes | |
10937 | ;; | |
10938 | ||
10939 | # No shared lib support for Linux oldld, aout, or coff. | |
10940 | linux*oldld* | linux*aout* | linux*coff*) | |
10941 | dynamic_linker=no | |
10942 | ;; | |
10943 | ||
10944 | # This must be Linux ELF. | |
6a6859cb AM |
10945 | |
10946 | # uclinux* changes (here and below) have been submitted to the libtool | |
10947 | # project, but have not yet been accepted: they are GCC-local changes | |
10948 | # for the time being. (See | |
10949 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
10950 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) | |
ce2cded5 L |
10951 | version_type=linux |
10952 | need_lib_prefix=no | |
10953 | need_version=no | |
10954 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10955 | soname_spec='${libname}${release}${shared_ext}$major' | |
10956 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10957 | shlibpath_var=LD_LIBRARY_PATH | |
10958 | shlibpath_overrides_runpath=no | |
39144654 | 10959 | |
ce2cded5 | 10960 | # Some binutils ld are patched to set DT_RUNPATH |
d0ac1c44 | 10961 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
81ecdfbb | 10962 | $as_echo_n "(cached) " >&6 |
39144654 RW |
10963 | else |
10964 | lt_cv_shlibpath_overrides_runpath=no | |
10965 | save_LDFLAGS=$LDFLAGS | |
10966 | save_libdir=$libdir | |
10967 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10968 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 10969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10970 | /* end confdefs.h. */ |
10971 | ||
d7040cdb SE |
10972 | int |
10973 | main () | |
10974 | { | |
ce2cded5 | 10975 | |
d7040cdb SE |
10976 | ; |
10977 | return 0; | |
10978 | } | |
10979 | _ACEOF | |
81ecdfbb RW |
10980 | if ac_fn_c_try_link "$LINENO"; then : |
10981 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 10982 | lt_cv_shlibpath_overrides_runpath=yes |
d7040cdb | 10983 | fi |
d7040cdb | 10984 | fi |
81ecdfbb RW |
10985 | rm -f core conftest.err conftest.$ac_objext \ |
10986 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10987 | LDFLAGS=$save_LDFLAGS |
10988 | libdir=$save_libdir | |
10989 | ||
10990 | fi | |
10991 | ||
10992 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
d7040cdb | 10993 | |
ce2cded5 L |
10994 | # This implies no fast_install, which is unacceptable. |
10995 | # Some rework will be needed to allow for fast_install | |
10996 | # before this can be enabled. | |
10997 | hardcode_into_libs=yes | |
d7040cdb | 10998 | |
ce2cded5 L |
10999 | # Append ld.so.conf contents to the search path |
11000 | if test -f /etc/ld.so.conf; then | |
3725885a | 11001 | 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' ' '` |
ce2cded5 L |
11002 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
11003 | fi | |
d7040cdb | 11004 | |
ce2cded5 L |
11005 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11006 | # powerpc, because MkLinux only supported shared libraries with the | |
11007 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11008 | # most powerpc-linux boxes support dynamic linking these days and | |
11009 | # people can always --disable-shared, the test was removed, and we | |
11010 | # assume the GNU/Linux dynamic linker is in use. | |
11011 | dynamic_linker='GNU/Linux ld.so' | |
11012 | ;; | |
d7040cdb | 11013 | |
ce2cded5 L |
11014 | netbsd*) |
11015 | version_type=sunos | |
11016 | need_lib_prefix=no | |
11017 | need_version=no | |
11018 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11019 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11020 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11021 | dynamic_linker='NetBSD (a.out) ld.so' | |
11022 | else | |
11023 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11024 | soname_spec='${libname}${release}${shared_ext}$major' | |
11025 | dynamic_linker='NetBSD ld.elf_so' | |
11026 | fi | |
11027 | shlibpath_var=LD_LIBRARY_PATH | |
11028 | shlibpath_overrides_runpath=yes | |
11029 | hardcode_into_libs=yes | |
11030 | ;; | |
d7040cdb | 11031 | |
ce2cded5 L |
11032 | newsos6) |
11033 | version_type=linux | |
11034 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11035 | shlibpath_var=LD_LIBRARY_PATH | |
11036 | shlibpath_overrides_runpath=yes | |
11037 | ;; | |
d7040cdb | 11038 | |
ce2cded5 L |
11039 | *nto* | *qnx*) |
11040 | version_type=qnx | |
11041 | need_lib_prefix=no | |
11042 | need_version=no | |
11043 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11044 | soname_spec='${libname}${release}${shared_ext}$major' | |
11045 | shlibpath_var=LD_LIBRARY_PATH | |
11046 | shlibpath_overrides_runpath=no | |
11047 | hardcode_into_libs=yes | |
11048 | dynamic_linker='ldqnx.so' | |
11049 | ;; | |
d7040cdb | 11050 | |
ce2cded5 L |
11051 | openbsd*) |
11052 | version_type=sunos | |
11053 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11054 | need_lib_prefix=no | |
11055 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11056 | case $host_os in | |
11057 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11058 | *) need_version=no ;; | |
11059 | esac | |
11060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11061 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11062 | shlibpath_var=LD_LIBRARY_PATH | |
11063 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11064 | case $host_os in | |
11065 | openbsd2.[89] | openbsd2.[89].*) | |
11066 | shlibpath_overrides_runpath=no | |
11067 | ;; | |
11068 | *) | |
11069 | shlibpath_overrides_runpath=yes | |
11070 | ;; | |
11071 | esac | |
11072 | else | |
11073 | shlibpath_overrides_runpath=yes | |
11074 | fi | |
11075 | ;; | |
d7040cdb | 11076 | |
ce2cded5 L |
11077 | os2*) |
11078 | libname_spec='$name' | |
11079 | shrext_cmds=".dll" | |
11080 | need_lib_prefix=no | |
11081 | library_names_spec='$libname${shared_ext} $libname.a' | |
11082 | dynamic_linker='OS/2 ld.exe' | |
11083 | shlibpath_var=LIBPATH | |
11084 | ;; | |
d7040cdb | 11085 | |
ce2cded5 L |
11086 | osf3* | osf4* | osf5*) |
11087 | version_type=osf | |
11088 | need_lib_prefix=no | |
11089 | need_version=no | |
11090 | soname_spec='${libname}${release}${shared_ext}$major' | |
11091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11092 | shlibpath_var=LD_LIBRARY_PATH | |
11093 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11094 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11095 | ;; | |
d7040cdb | 11096 | |
ce2cded5 L |
11097 | rdos*) |
11098 | dynamic_linker=no | |
11099 | ;; | |
d7040cdb | 11100 | |
ce2cded5 L |
11101 | solaris*) |
11102 | version_type=linux | |
11103 | need_lib_prefix=no | |
11104 | need_version=no | |
11105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11106 | soname_spec='${libname}${release}${shared_ext}$major' | |
11107 | shlibpath_var=LD_LIBRARY_PATH | |
11108 | shlibpath_overrides_runpath=yes | |
11109 | hardcode_into_libs=yes | |
11110 | # ldd complains unless libraries are executable | |
11111 | postinstall_cmds='chmod +x $lib' | |
11112 | ;; | |
d7040cdb | 11113 | |
ce2cded5 L |
11114 | sunos4*) |
11115 | version_type=sunos | |
11116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11117 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11118 | shlibpath_var=LD_LIBRARY_PATH | |
11119 | shlibpath_overrides_runpath=yes | |
11120 | if test "$with_gnu_ld" = yes; then | |
11121 | need_lib_prefix=no | |
11122 | fi | |
11123 | need_version=yes | |
11124 | ;; | |
d7040cdb | 11125 | |
ce2cded5 L |
11126 | sysv4 | sysv4.3*) |
11127 | version_type=linux | |
11128 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11129 | soname_spec='${libname}${release}${shared_ext}$major' | |
11130 | shlibpath_var=LD_LIBRARY_PATH | |
11131 | case $host_vendor in | |
11132 | sni) | |
11133 | shlibpath_overrides_runpath=no | |
11134 | need_lib_prefix=no | |
11135 | runpath_var=LD_RUN_PATH | |
11136 | ;; | |
11137 | siemens) | |
11138 | need_lib_prefix=no | |
11139 | ;; | |
11140 | motorola) | |
11141 | need_lib_prefix=no | |
11142 | need_version=no | |
11143 | shlibpath_overrides_runpath=no | |
11144 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11145 | ;; | |
11146 | esac | |
11147 | ;; | |
d7040cdb | 11148 | |
ce2cded5 L |
11149 | sysv4*MP*) |
11150 | if test -d /usr/nec ;then | |
11151 | version_type=linux | |
11152 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11153 | soname_spec='$libname${shared_ext}.$major' | |
11154 | shlibpath_var=LD_LIBRARY_PATH | |
11155 | fi | |
11156 | ;; | |
d7040cdb | 11157 | |
ce2cded5 L |
11158 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11159 | version_type=freebsd-elf | |
11160 | need_lib_prefix=no | |
11161 | need_version=no | |
11162 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11163 | soname_spec='${libname}${release}${shared_ext}$major' | |
11164 | shlibpath_var=LD_LIBRARY_PATH | |
11165 | shlibpath_overrides_runpath=yes | |
11166 | hardcode_into_libs=yes | |
11167 | if test "$with_gnu_ld" = yes; then | |
11168 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11169 | else | |
11170 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11171 | case $host_os in | |
11172 | sco3.2v5*) | |
11173 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11174 | ;; | |
11175 | esac | |
11176 | fi | |
11177 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11178 | ;; | |
d7040cdb | 11179 | |
ce2cded5 L |
11180 | tpf*) |
11181 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11182 | version_type=linux | |
11183 | need_lib_prefix=no | |
11184 | need_version=no | |
b214d478 | 11185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
ce2cded5 L |
11186 | shlibpath_var=LD_LIBRARY_PATH |
11187 | shlibpath_overrides_runpath=no | |
11188 | hardcode_into_libs=yes | |
11189 | ;; | |
d7040cdb | 11190 | |
ce2cded5 L |
11191 | uts4*) |
11192 | version_type=linux | |
11193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11194 | soname_spec='${libname}${release}${shared_ext}$major' | |
11195 | shlibpath_var=LD_LIBRARY_PATH | |
11196 | ;; | |
d7040cdb | 11197 | |
6a6859cb AM |
11198 | # Shared libraries for VwWorks, >= 7 only at this stage |
11199 | # and (fpic) still incompatible with "large" code models | |
11200 | # in a few configurations. Only for RTP mode in any case, | |
11201 | # and upon explicit request at configure time. | |
11202 | vxworks7*) | |
11203 | dynamic_linker=no | |
11204 | case ${with_multisubdir}-${enable_shared} in | |
11205 | *large*) | |
11206 | ;; | |
11207 | *mrtp*-yes) | |
11208 | version_type=linux | |
11209 | need_lib_prefix=no | |
11210 | need_version=no | |
11211 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11212 | soname_spec='${libname}${release}${shared_ext}$major' | |
11213 | dynamic_linker="$host_os module_loader" | |
11214 | ;; | |
11215 | esac | |
11216 | ;; | |
ce2cded5 L |
11217 | *) |
11218 | dynamic_linker=no | |
11219 | ;; | |
11220 | esac | |
81ecdfbb RW |
11221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11222 | $as_echo "$dynamic_linker" >&6; } | |
ce2cded5 L |
11223 | test "$dynamic_linker" = no && can_build_shared=no |
11224 | ||
11225 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11226 | if test "$GCC" = yes; then | |
11227 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb SE |
11228 | fi |
11229 | ||
b214d478 SE |
11230 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11231 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11232 | fi | |
11233 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11234 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11235 | fi | |
11236 | ||
d7040cdb SE |
11237 | |
11238 | ||
11239 | ||
11240 | ||
11241 | ||
11242 | ||
11243 | ||
11244 | ||
11245 | ||
11246 | ||
11247 | ||
d7040cdb | 11248 | |
d7040cdb | 11249 | |
d7040cdb | 11250 | |
d7040cdb | 11251 | |
d7040cdb SE |
11252 | |
11253 | ||
11254 | ||
11255 | ||
d7040cdb | 11256 | |
d7040cdb SE |
11257 | |
11258 | ||
11259 | ||
11260 | ||
11261 | ||
11262 | ||
11263 | ||
11264 | ||
11265 | ||
11266 | ||
11267 | ||
11268 | ||
11269 | ||
d7040cdb SE |
11270 | |
11271 | ||
11272 | ||
11273 | ||
d7040cdb SE |
11274 | |
11275 | ||
11276 | ||
11277 | ||
d7040cdb | 11278 | |
d7040cdb | 11279 | |
d7040cdb | 11280 | |
d7040cdb | 11281 | |
d7040cdb | 11282 | |
d7040cdb | 11283 | |
d7040cdb | 11284 | |
d7040cdb SE |
11285 | |
11286 | ||
11287 | ||
11288 | ||
11289 | ||
d7040cdb | 11290 | |
d7040cdb | 11291 | |
d7040cdb | 11292 | |
d7040cdb | 11293 | |
d7040cdb | 11294 | |
d7040cdb | 11295 | |
d7040cdb SE |
11296 | |
11297 | ||
11298 | ||
11299 | ||
11300 | ||
d7040cdb SE |
11301 | |
11302 | ||
d7040cdb | 11303 | |
d7040cdb | 11304 | |
d7040cdb | 11305 | |
d7040cdb | 11306 | |
ce2cded5 L |
11307 | |
11308 | ||
11309 | ||
11310 | ||
11311 | ||
11312 | ||
11313 | ||
11314 | ||
11315 | ||
11316 | ||
3725885a RW |
11317 | |
11318 | ||
11319 | ||
11320 | ||
11321 | ||
ce2cded5 L |
11322 | |
11323 | ||
11324 | ||
11325 | ||
11326 | ||
11327 | ||
81ecdfbb RW |
11328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11329 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
ce2cded5 L |
11330 | hardcode_action= |
11331 | if test -n "$hardcode_libdir_flag_spec" || | |
11332 | test -n "$runpath_var" || | |
11333 | test "X$hardcode_automatic" = "Xyes" ; then | |
11334 | ||
11335 | # We can hardcode non-existent directories. | |
11336 | if test "$hardcode_direct" != no && | |
11337 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11338 | # have to relink, otherwise we might link with an installed library | |
11339 | # when we should be linking with a yet-to-be-installed one | |
11340 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11341 | test "$hardcode_minus_L" != no; then | |
11342 | # Linking always hardcodes the temporary library directory. | |
11343 | hardcode_action=relink | |
11344 | else | |
11345 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11346 | hardcode_action=immediate | |
d7040cdb | 11347 | fi |
d7040cdb | 11348 | else |
ce2cded5 L |
11349 | # We cannot hardcode anything, or else we can only hardcode existing |
11350 | # directories. | |
11351 | hardcode_action=unsupported | |
d7040cdb | 11352 | fi |
81ecdfbb RW |
11353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11354 | $as_echo "$hardcode_action" >&6; } | |
d7040cdb | 11355 | |
ce2cded5 L |
11356 | if test "$hardcode_action" = relink || |
11357 | test "$inherit_rpath" = yes; then | |
11358 | # Fast installation is not supported | |
11359 | enable_fast_install=no | |
11360 | elif test "$shlibpath_overrides_runpath" = yes || | |
11361 | test "$enable_shared" = no; then | |
11362 | # Fast installation is not necessary | |
11363 | enable_fast_install=needless | |
d7040cdb SE |
11364 | fi |
11365 | ||
d7040cdb | 11366 | |
d7040cdb | 11367 | |
d7040cdb | 11368 | |
d7040cdb | 11369 | |
d7040cdb | 11370 | |
ce2cded5 L |
11371 | if test "x$enable_dlopen" != xyes; then |
11372 | enable_dlopen=unknown | |
11373 | enable_dlopen_self=unknown | |
11374 | enable_dlopen_self_static=unknown | |
d7040cdb | 11375 | else |
ce2cded5 L |
11376 | lt_cv_dlopen=no |
11377 | lt_cv_dlopen_libs= | |
d7040cdb | 11378 | |
ce2cded5 L |
11379 | case $host_os in |
11380 | beos*) | |
11381 | lt_cv_dlopen="load_add_on" | |
11382 | lt_cv_dlopen_libs= | |
11383 | lt_cv_dlopen_self=yes | |
11384 | ;; | |
d7040cdb | 11385 | |
b214d478 | 11386 | mingw* | pw32* | cegcc*) |
ce2cded5 L |
11387 | lt_cv_dlopen="LoadLibrary" |
11388 | lt_cv_dlopen_libs= | |
11389 | ;; | |
11390 | ||
11391 | cygwin*) | |
11392 | lt_cv_dlopen="dlopen" | |
11393 | lt_cv_dlopen_libs= | |
11394 | ;; | |
11395 | ||
11396 | darwin*) | |
11397 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
11398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11399 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 11400 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
81ecdfbb | 11401 | $as_echo_n "(cached) " >&6 |
d7040cdb | 11402 | else |
ce2cded5 L |
11403 | ac_check_lib_save_LIBS=$LIBS |
11404 | LIBS="-ldl $LIBS" | |
81ecdfbb | 11405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11406 | /* end confdefs.h. */ |
11407 | ||
81ecdfbb RW |
11408 | /* Override any GCC internal prototype to avoid an error. |
11409 | Use char because int might match the return type of a GCC | |
11410 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11411 | #ifdef __cplusplus |
11412 | extern "C" | |
11413 | #endif | |
ce2cded5 L |
11414 | char dlopen (); |
11415 | int | |
11416 | main () | |
11417 | { | |
81ecdfbb | 11418 | return dlopen (); |
ce2cded5 L |
11419 | ; |
11420 | return 0; | |
11421 | } | |
11422 | _ACEOF | |
81ecdfbb | 11423 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
11424 | ac_cv_lib_dl_dlopen=yes |
11425 | else | |
81ecdfbb | 11426 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 11427 | fi |
81ecdfbb RW |
11428 | rm -f core conftest.err conftest.$ac_objext \ |
11429 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11430 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11431 | fi |
81ecdfbb RW |
11432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11433 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 11434 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
ce2cded5 | 11435 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 11436 | else |
d7040cdb | 11437 | |
ce2cded5 L |
11438 | lt_cv_dlopen="dyld" |
11439 | lt_cv_dlopen_libs= | |
11440 | lt_cv_dlopen_self=yes | |
11441 | ||
d7040cdb | 11442 | fi |
ce2cded5 L |
11443 | |
11444 | ;; | |
11445 | ||
11446 | *) | |
81ecdfbb | 11447 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
d0ac1c44 | 11448 | if test "x$ac_cv_func_shl_load" = xyes; then : |
ce2cded5 L |
11449 | lt_cv_dlopen="shl_load" |
11450 | else | |
81ecdfbb RW |
11451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11452 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
d0ac1c44 | 11453 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
81ecdfbb | 11454 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
11455 | else |
11456 | ac_check_lib_save_LIBS=$LIBS | |
11457 | LIBS="-ldld $LIBS" | |
81ecdfbb | 11458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 11459 | /* end confdefs.h. */ |
d7040cdb | 11460 | |
81ecdfbb RW |
11461 | /* Override any GCC internal prototype to avoid an error. |
11462 | Use char because int might match the return type of a GCC | |
11463 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11464 | #ifdef __cplusplus |
11465 | extern "C" | |
11466 | #endif | |
ce2cded5 L |
11467 | char shl_load (); |
11468 | int | |
11469 | main () | |
11470 | { | |
81ecdfbb | 11471 | return shl_load (); |
ce2cded5 L |
11472 | ; |
11473 | return 0; | |
11474 | } | |
11475 | _ACEOF | |
81ecdfbb | 11476 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
11477 | ac_cv_lib_dld_shl_load=yes |
11478 | else | |
81ecdfbb | 11479 | ac_cv_lib_dld_shl_load=no |
ce2cded5 | 11480 | fi |
81ecdfbb RW |
11481 | rm -f core conftest.err conftest.$ac_objext \ |
11482 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
11483 | LIBS=$ac_check_lib_save_LIBS |
11484 | fi | |
81ecdfbb RW |
11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11486 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
d0ac1c44 | 11487 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
b214d478 | 11488 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
ce2cded5 | 11489 | else |
81ecdfbb | 11490 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
d0ac1c44 | 11491 | if test "x$ac_cv_func_dlopen" = xyes; then : |
ce2cded5 L |
11492 | lt_cv_dlopen="dlopen" |
11493 | else | |
81ecdfbb RW |
11494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11495 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 11496 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
81ecdfbb | 11497 | $as_echo_n "(cached) " >&6 |
d7040cdb | 11498 | else |
ce2cded5 L |
11499 | ac_check_lib_save_LIBS=$LIBS |
11500 | LIBS="-ldl $LIBS" | |
81ecdfbb | 11501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
11502 | /* end confdefs.h. */ |
11503 | ||
81ecdfbb RW |
11504 | /* Override any GCC internal prototype to avoid an error. |
11505 | Use char because int might match the return type of a GCC | |
11506 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11507 | #ifdef __cplusplus |
11508 | extern "C" | |
11509 | #endif | |
ce2cded5 | 11510 | char dlopen (); |
d7040cdb SE |
11511 | int |
11512 | main () | |
11513 | { | |
81ecdfbb | 11514 | return dlopen (); |
d7040cdb SE |
11515 | ; |
11516 | return 0; | |
11517 | } | |
11518 | _ACEOF | |
81ecdfbb | 11519 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11520 | ac_cv_lib_dl_dlopen=yes |
d7040cdb | 11521 | else |
81ecdfbb | 11522 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 11523 | fi |
81ecdfbb RW |
11524 | rm -f core conftest.err conftest.$ac_objext \ |
11525 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11526 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11527 | fi |
81ecdfbb RW |
11528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11529 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 11530 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
ce2cded5 | 11531 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 11532 | else |
81ecdfbb RW |
11533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11534 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
d0ac1c44 | 11535 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
81ecdfbb | 11536 | $as_echo_n "(cached) " >&6 |
d7040cdb | 11537 | else |
ce2cded5 L |
11538 | ac_check_lib_save_LIBS=$LIBS |
11539 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 11540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 11541 | /* end confdefs.h. */ |
d7040cdb | 11542 | |
81ecdfbb RW |
11543 | /* Override any GCC internal prototype to avoid an error. |
11544 | Use char because int might match the return type of a GCC | |
11545 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11546 | #ifdef __cplusplus |
11547 | extern "C" | |
11548 | #endif | |
ce2cded5 | 11549 | char dlopen (); |
d7040cdb SE |
11550 | int |
11551 | main () | |
11552 | { | |
81ecdfbb | 11553 | return dlopen (); |
d7040cdb SE |
11554 | ; |
11555 | return 0; | |
11556 | } | |
11557 | _ACEOF | |
81ecdfbb | 11558 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11559 | ac_cv_lib_svld_dlopen=yes |
d7040cdb | 11560 | else |
81ecdfbb | 11561 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 11562 | fi |
81ecdfbb RW |
11563 | rm -f core conftest.err conftest.$ac_objext \ |
11564 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11565 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11566 | fi |
81ecdfbb RW |
11567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11568 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
d0ac1c44 | 11569 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
ce2cded5 L |
11570 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11571 | else | |
81ecdfbb RW |
11572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11573 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
d0ac1c44 | 11574 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
81ecdfbb | 11575 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
11576 | else |
11577 | ac_check_lib_save_LIBS=$LIBS | |
11578 | LIBS="-ldld $LIBS" | |
81ecdfbb | 11579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11580 | /* end confdefs.h. */ |
11581 | ||
81ecdfbb RW |
11582 | /* Override any GCC internal prototype to avoid an error. |
11583 | Use char because int might match the return type of a GCC | |
11584 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11585 | #ifdef __cplusplus |
11586 | extern "C" | |
11587 | #endif | |
ce2cded5 | 11588 | char dld_link (); |
d7040cdb SE |
11589 | int |
11590 | main () | |
11591 | { | |
81ecdfbb | 11592 | return dld_link (); |
d7040cdb SE |
11593 | ; |
11594 | return 0; | |
11595 | } | |
11596 | _ACEOF | |
81ecdfbb | 11597 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11598 | ac_cv_lib_dld_dld_link=yes |
d7040cdb | 11599 | else |
81ecdfbb | 11600 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 11601 | fi |
81ecdfbb RW |
11602 | rm -f core conftest.err conftest.$ac_objext \ |
11603 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
11604 | LIBS=$ac_check_lib_save_LIBS |
11605 | fi | |
81ecdfbb RW |
11606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11607 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
d0ac1c44 | 11608 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
b214d478 | 11609 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
ce2cded5 L |
11610 | fi |
11611 | ||
11612 | ||
11613 | fi | |
11614 | ||
11615 | ||
11616 | fi | |
11617 | ||
11618 | ||
11619 | fi | |
11620 | ||
11621 | ||
11622 | fi | |
11623 | ||
11624 | ||
11625 | fi | |
11626 | ||
11627 | ;; | |
11628 | esac | |
11629 | ||
11630 | if test "x$lt_cv_dlopen" != xno; then | |
11631 | enable_dlopen=yes | |
11632 | else | |
11633 | enable_dlopen=no | |
11634 | fi | |
11635 | ||
11636 | case $lt_cv_dlopen in | |
11637 | dlopen) | |
11638 | save_CPPFLAGS="$CPPFLAGS" | |
11639 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11640 | ||
11641 | save_LDFLAGS="$LDFLAGS" | |
11642 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11643 | ||
11644 | save_LIBS="$LIBS" | |
11645 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11646 | ||
81ecdfbb RW |
11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11648 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
d0ac1c44 | 11649 | if ${lt_cv_dlopen_self+:} false; then : |
81ecdfbb | 11650 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
11651 | else |
11652 | if test "$cross_compiling" = yes; then : | |
11653 | lt_cv_dlopen_self=cross | |
11654 | else | |
11655 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11656 | lt_status=$lt_dlunknown | |
11657 | cat > conftest.$ac_ext <<_LT_EOF | |
b8a0c930 | 11658 | #line 11658 "configure" |
ce2cded5 L |
11659 | #include "confdefs.h" |
11660 | ||
11661 | #if HAVE_DLFCN_H | |
11662 | #include <dlfcn.h> | |
11663 | #endif | |
11664 | ||
11665 | #include <stdio.h> | |
11666 | ||
11667 | #ifdef RTLD_GLOBAL | |
11668 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11669 | #else | |
11670 | # ifdef DL_GLOBAL | |
11671 | # define LT_DLGLOBAL DL_GLOBAL | |
11672 | # else | |
11673 | # define LT_DLGLOBAL 0 | |
11674 | # endif | |
11675 | #endif | |
11676 | ||
11677 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11678 | find out it does not work in some platform. */ | |
11679 | #ifndef LT_DLLAZY_OR_NOW | |
11680 | # ifdef RTLD_LAZY | |
11681 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11682 | # else | |
11683 | # ifdef DL_LAZY | |
11684 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11685 | # else | |
11686 | # ifdef RTLD_NOW | |
11687 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11688 | # else | |
11689 | # ifdef DL_NOW | |
11690 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11691 | # else | |
11692 | # define LT_DLLAZY_OR_NOW 0 | |
11693 | # endif | |
11694 | # endif | |
11695 | # endif | |
11696 | # endif | |
11697 | #endif | |
11698 | ||
3725885a RW |
11699 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11700 | correspondingly for the symbols needed. */ | |
11701 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11702 | void fnord () __attribute__((visibility("default"))); | |
11703 | #endif | |
11704 | ||
11705 | void fnord () { int i=42; } | |
ce2cded5 | 11706 | int main () |
d7040cdb | 11707 | { |
ce2cded5 L |
11708 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11709 | int status = $lt_dlunknown; | |
11710 | ||
11711 | if (self) | |
11712 | { | |
11713 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
11714 | else |
11715 | { | |
11716 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11717 | else puts (dlerror ()); | |
11718 | } | |
ce2cded5 L |
11719 | /* dlclose (self); */ |
11720 | } | |
11721 | else | |
11722 | puts (dlerror ()); | |
11723 | ||
b214d478 | 11724 | return status; |
d7040cdb | 11725 | } |
ce2cded5 | 11726 | _LT_EOF |
81ecdfbb | 11727 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 | 11728 | (eval $ac_link) 2>&5 |
d7040cdb | 11729 | ac_status=$? |
81ecdfbb RW |
11730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11731 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
11732 | (./conftest; exit; ) >&5 2>/dev/null |
11733 | lt_status=$? | |
11734 | case x$lt_status in | |
11735 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11736 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11737 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11738 | esac | |
11739 | else : | |
11740 | # compilation failed | |
11741 | lt_cv_dlopen_self=no | |
11742 | fi | |
11743 | fi | |
11744 | rm -fr conftest* | |
11745 | ||
11746 | ||
11747 | fi | |
81ecdfbb RW |
11748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11749 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
ce2cded5 L |
11750 | |
11751 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11752 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
11753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11754 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
d0ac1c44 | 11755 | if ${lt_cv_dlopen_self_static+:} false; then : |
81ecdfbb | 11756 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
11757 | else |
11758 | if test "$cross_compiling" = yes; then : | |
11759 | lt_cv_dlopen_self_static=cross | |
11760 | else | |
11761 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11762 | lt_status=$lt_dlunknown | |
11763 | cat > conftest.$ac_ext <<_LT_EOF | |
b8a0c930 | 11764 | #line 11764 "configure" |
ce2cded5 L |
11765 | #include "confdefs.h" |
11766 | ||
11767 | #if HAVE_DLFCN_H | |
11768 | #include <dlfcn.h> | |
11769 | #endif | |
11770 | ||
11771 | #include <stdio.h> | |
11772 | ||
11773 | #ifdef RTLD_GLOBAL | |
11774 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11775 | #else | |
11776 | # ifdef DL_GLOBAL | |
11777 | # define LT_DLGLOBAL DL_GLOBAL | |
11778 | # else | |
11779 | # define LT_DLGLOBAL 0 | |
11780 | # endif | |
11781 | #endif | |
11782 | ||
11783 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11784 | find out it does not work in some platform. */ | |
11785 | #ifndef LT_DLLAZY_OR_NOW | |
11786 | # ifdef RTLD_LAZY | |
11787 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11788 | # else | |
11789 | # ifdef DL_LAZY | |
11790 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11791 | # else | |
11792 | # ifdef RTLD_NOW | |
11793 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11794 | # else | |
11795 | # ifdef DL_NOW | |
11796 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11797 | # else | |
11798 | # define LT_DLLAZY_OR_NOW 0 | |
11799 | # endif | |
11800 | # endif | |
11801 | # endif | |
11802 | # endif | |
11803 | #endif | |
11804 | ||
3cb62297 L |
11805 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11806 | correspondingly for the symbols needed. */ | |
11807 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11808 | void fnord () __attribute__((visibility("default"))); | |
11809 | #endif | |
11810 | ||
11811 | void fnord () { int i=42; } | |
11812 | int main () | |
11813 | { | |
11814 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11815 | int status = $lt_dlunknown; | |
11816 | ||
11817 | if (self) | |
11818 | { | |
11819 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11820 | else | |
11821 | { | |
11822 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11823 | else puts (dlerror ()); | |
11824 | } | |
11825 | /* dlclose (self); */ | |
11826 | } | |
11827 | else | |
11828 | puts (dlerror ()); | |
11829 | ||
11830 | return status; | |
11831 | } | |
11832 | _LT_EOF | |
11833 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11834 | (eval $ac_link) 2>&5 | |
11835 | ac_status=$? | |
11836 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11837 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11838 | (./conftest; exit; ) >&5 2>/dev/null | |
11839 | lt_status=$? | |
11840 | case x$lt_status in | |
11841 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11842 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11843 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11844 | esac | |
11845 | else : | |
11846 | # compilation failed | |
11847 | lt_cv_dlopen_self_static=no | |
11848 | fi | |
11849 | fi | |
11850 | rm -fr conftest* | |
11851 | ||
11852 | ||
11853 | fi | |
11854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11855 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11856 | fi | |
11857 | ||
11858 | CPPFLAGS="$save_CPPFLAGS" | |
11859 | LDFLAGS="$save_LDFLAGS" | |
11860 | LIBS="$save_LIBS" | |
11861 | ;; | |
11862 | esac | |
11863 | ||
11864 | case $lt_cv_dlopen_self in | |
11865 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11866 | *) enable_dlopen_self=unknown ;; | |
11867 | esac | |
11868 | ||
11869 | case $lt_cv_dlopen_self_static in | |
11870 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11871 | *) enable_dlopen_self_static=unknown ;; | |
11872 | esac | |
11873 | fi | |
11874 | ||
11875 | ||
11876 | ||
11877 | ||
11878 | ||
11879 | ||
11880 | ||
11881 | ||
11882 | ||
11883 | ||
11884 | ||
11885 | ||
11886 | ||
11887 | ||
11888 | ||
11889 | ||
11890 | ||
11891 | striplib= | |
11892 | old_striplib= | |
11893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11894 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11895 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11896 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11897 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11899 | $as_echo "yes" >&6; } | |
11900 | else | |
11901 | # FIXME - insert some real tests, host_os isn't really good enough | |
11902 | case $host_os in | |
11903 | darwin*) | |
11904 | if test -n "$STRIP" ; then | |
11905 | striplib="$STRIP -x" | |
11906 | old_striplib="$STRIP -S" | |
11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11908 | $as_echo "yes" >&6; } | |
11909 | else | |
11910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11911 | $as_echo "no" >&6; } | |
11912 | fi | |
11913 | ;; | |
11914 | *) | |
11915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11916 | $as_echo "no" >&6; } | |
11917 | ;; | |
11918 | esac | |
11919 | fi | |
11920 | ||
11921 | ||
11922 | ||
11923 | ||
11924 | ||
11925 | ||
11926 | ||
11927 | ||
11928 | ||
11929 | ||
11930 | ||
11931 | ||
11932 | # Report which library types will actually be built | |
11933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
11934 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11936 | $as_echo "$can_build_shared" >&6; } | |
11937 | ||
11938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
11939 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11940 | test "$can_build_shared" = "no" && enable_shared=no | |
11941 | ||
11942 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11943 | # are all built from PIC. | |
11944 | case $host_os in | |
11945 | aix3*) | |
11946 | test "$enable_shared" = yes && enable_static=no | |
11947 | if test -n "$RANLIB"; then | |
11948 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11949 | postinstall_cmds='$RANLIB $lib' | |
11950 | fi | |
11951 | ;; | |
11952 | ||
11953 | aix[4-9]*) | |
11954 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11955 | test "$enable_shared" = yes && enable_static=no | |
11956 | fi | |
11957 | ;; | |
11958 | esac | |
11959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
11960 | $as_echo "$enable_shared" >&6; } | |
11961 | ||
11962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
11963 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11964 | # Make sure either enable_shared or enable_static is yes. | |
11965 | test "$enable_shared" = yes || enable_static=yes | |
11966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
11967 | $as_echo "$enable_static" >&6; } | |
11968 | ||
11969 | ||
11970 | ||
11971 | ||
11972 | fi | |
11973 | ac_ext=c | |
11974 | ac_cpp='$CPP $CPPFLAGS' | |
11975 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11976 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11977 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11978 | ||
11979 | CC="$lt_save_CC" | |
11980 | ||
11981 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
11982 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
11983 | (test "X$CXX" != "Xg++"))) ; then | |
11984 | ac_ext=cpp | |
11985 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11986 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11987 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11988 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
11990 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
11991 | if test -z "$CXXCPP"; then | |
d0ac1c44 | 11992 | if ${ac_cv_prog_CXXCPP+:} false; then : |
3cb62297 L |
11993 | $as_echo_n "(cached) " >&6 |
11994 | else | |
11995 | # Double quotes because CXXCPP needs to be expanded | |
11996 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
11997 | do | |
11998 | ac_preproc_ok=false | |
11999 | for ac_cxx_preproc_warn_flag in '' yes | |
12000 | do | |
12001 | # Use a header file that comes with gcc, so configuring glibc | |
12002 | # with a fresh cross-compiler works. | |
12003 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12004 | # <limits.h> exists even on freestanding compilers. | |
12005 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12006 | # not just through cpp. "Syntax error" is here to catch this case. | |
12007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12008 | /* end confdefs.h. */ | |
12009 | #ifdef __STDC__ | |
12010 | # include <limits.h> | |
12011 | #else | |
12012 | # include <assert.h> | |
12013 | #endif | |
12014 | Syntax error | |
12015 | _ACEOF | |
12016 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12017 | ||
12018 | else | |
12019 | # Broken: fails on valid input. | |
12020 | continue | |
12021 | fi | |
d0ac1c44 | 12022 | rm -f conftest.err conftest.i conftest.$ac_ext |
3cb62297 L |
12023 | |
12024 | # OK, works on sane cases. Now check whether nonexistent headers | |
12025 | # can be detected and how. | |
12026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12027 | /* end confdefs.h. */ | |
12028 | #include <ac_nonexistent.h> | |
12029 | _ACEOF | |
12030 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12031 | # Broken: success on invalid input. | |
12032 | continue | |
12033 | else | |
12034 | # Passes both tests. | |
12035 | ac_preproc_ok=: | |
12036 | break | |
12037 | fi | |
d0ac1c44 | 12038 | rm -f conftest.err conftest.i conftest.$ac_ext |
3cb62297 L |
12039 | |
12040 | done | |
12041 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 12042 | rm -f conftest.i conftest.err conftest.$ac_ext |
3cb62297 L |
12043 | if $ac_preproc_ok; then : |
12044 | break | |
12045 | fi | |
12046 | ||
12047 | done | |
12048 | ac_cv_prog_CXXCPP=$CXXCPP | |
12049 | ||
12050 | fi | |
12051 | CXXCPP=$ac_cv_prog_CXXCPP | |
12052 | else | |
12053 | ac_cv_prog_CXXCPP=$CXXCPP | |
12054 | fi | |
12055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
12056 | $as_echo "$CXXCPP" >&6; } | |
12057 | ac_preproc_ok=false | |
12058 | for ac_cxx_preproc_warn_flag in '' yes | |
12059 | do | |
12060 | # Use a header file that comes with gcc, so configuring glibc | |
12061 | # with a fresh cross-compiler works. | |
12062 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12063 | # <limits.h> exists even on freestanding compilers. | |
12064 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12065 | # not just through cpp. "Syntax error" is here to catch this case. | |
12066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12067 | /* end confdefs.h. */ | |
12068 | #ifdef __STDC__ | |
12069 | # include <limits.h> | |
12070 | #else | |
12071 | # include <assert.h> | |
12072 | #endif | |
12073 | Syntax error | |
12074 | _ACEOF | |
12075 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12076 | ||
12077 | else | |
12078 | # Broken: fails on valid input. | |
12079 | continue | |
12080 | fi | |
d0ac1c44 | 12081 | rm -f conftest.err conftest.i conftest.$ac_ext |
3cb62297 L |
12082 | |
12083 | # OK, works on sane cases. Now check whether nonexistent headers | |
12084 | # can be detected and how. | |
12085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12086 | /* end confdefs.h. */ | |
12087 | #include <ac_nonexistent.h> | |
12088 | _ACEOF | |
12089 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12090 | # Broken: success on invalid input. | |
12091 | continue | |
12092 | else | |
12093 | # Passes both tests. | |
12094 | ac_preproc_ok=: | |
12095 | break | |
12096 | fi | |
d0ac1c44 | 12097 | rm -f conftest.err conftest.i conftest.$ac_ext |
3cb62297 L |
12098 | |
12099 | done | |
12100 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 12101 | rm -f conftest.i conftest.err conftest.$ac_ext |
3cb62297 L |
12102 | if $ac_preproc_ok; then : |
12103 | ||
12104 | else | |
12105 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12106 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
12107 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
12108 | See \`config.log' for more details" "$LINENO" 5; } | |
3cb62297 L |
12109 | fi |
12110 | ||
12111 | ac_ext=c | |
12112 | ac_cpp='$CPP $CPPFLAGS' | |
12113 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12114 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12115 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12116 | ||
12117 | else | |
12118 | _lt_caught_CXX_error=yes | |
12119 | fi | |
12120 | ||
12121 | ac_ext=cpp | |
12122 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12123 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12124 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12125 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12126 | ||
12127 | archive_cmds_need_lc_CXX=no | |
12128 | allow_undefined_flag_CXX= | |
12129 | always_export_symbols_CXX=no | |
12130 | archive_expsym_cmds_CXX= | |
12131 | compiler_needs_object_CXX=no | |
12132 | export_dynamic_flag_spec_CXX= | |
12133 | hardcode_direct_CXX=no | |
12134 | hardcode_direct_absolute_CXX=no | |
12135 | hardcode_libdir_flag_spec_CXX= | |
12136 | hardcode_libdir_flag_spec_ld_CXX= | |
12137 | hardcode_libdir_separator_CXX= | |
12138 | hardcode_minus_L_CXX=no | |
12139 | hardcode_shlibpath_var_CXX=unsupported | |
12140 | hardcode_automatic_CXX=no | |
12141 | inherit_rpath_CXX=no | |
12142 | module_cmds_CXX= | |
12143 | module_expsym_cmds_CXX= | |
12144 | link_all_deplibs_CXX=unknown | |
12145 | old_archive_cmds_CXX=$old_archive_cmds | |
12146 | reload_flag_CXX=$reload_flag | |
12147 | reload_cmds_CXX=$reload_cmds | |
12148 | no_undefined_flag_CXX= | |
12149 | whole_archive_flag_spec_CXX= | |
12150 | enable_shared_with_static_runtimes_CXX=no | |
12151 | ||
12152 | # Source file extension for C++ test sources. | |
12153 | ac_ext=cpp | |
12154 | ||
12155 | # Object file extension for compiled C++ test sources. | |
12156 | objext=o | |
12157 | objext_CXX=$objext | |
12158 | ||
12159 | # No sense in running all these tests if we already determined that | |
12160 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
12161 | # are currently assumed to apply to all compilers on this platform, | |
12162 | # and will be corrupted by setting them based on a non-working compiler. | |
12163 | if test "$_lt_caught_CXX_error" != yes; then | |
12164 | # Code to be used in simple compile tests | |
12165 | lt_simple_compile_test_code="int some_variable = 0;" | |
12166 | ||
12167 | # Code to be used in simple link tests | |
12168 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
12169 | ||
12170 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12171 | ||
12172 | ||
12173 | ||
12174 | ||
12175 | ||
12176 | ||
12177 | # If no C compiler was specified, use CC. | |
12178 | LTCC=${LTCC-"$CC"} | |
12179 | ||
12180 | # If no C compiler flags were specified, use CFLAGS. | |
12181 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12182 | ||
12183 | # Allow CC to be a program name with arguments. | |
12184 | compiler=$CC | |
12185 | ||
12186 | ||
12187 | # save warnings/boilerplate of simple test code | |
12188 | ac_outfile=conftest.$ac_objext | |
12189 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12190 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12191 | _lt_compiler_boilerplate=`cat conftest.err` | |
12192 | $RM conftest* | |
12193 | ||
12194 | ac_outfile=conftest.$ac_objext | |
12195 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12196 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12197 | _lt_linker_boilerplate=`cat conftest.err` | |
12198 | $RM -r conftest* | |
12199 | ||
12200 | ||
12201 | # Allow CC to be a program name with arguments. | |
12202 | lt_save_CC=$CC | |
12203 | lt_save_LD=$LD | |
12204 | lt_save_GCC=$GCC | |
12205 | GCC=$GXX | |
12206 | lt_save_with_gnu_ld=$with_gnu_ld | |
12207 | lt_save_path_LD=$lt_cv_path_LD | |
12208 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12209 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
12210 | else | |
12211 | $as_unset lt_cv_prog_gnu_ld | |
12212 | fi | |
12213 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
12214 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
12215 | else | |
12216 | $as_unset lt_cv_path_LD | |
12217 | fi | |
12218 | test -z "${LDCXX+set}" || LD=$LDCXX | |
12219 | CC=${CXX-"c++"} | |
12220 | compiler=$CC | |
12221 | compiler_CXX=$CC | |
12222 | for cc_temp in $compiler""; do | |
12223 | case $cc_temp in | |
12224 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12225 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12226 | \-*) ;; | |
12227 | *) break;; | |
12228 | esac | |
12229 | done | |
12230 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
12231 | ||
12232 | ||
12233 | if test -n "$compiler"; then | |
12234 | # We don't want -fno-exception when compiling C++ code, so set the | |
12235 | # no_builtin_flag separately | |
12236 | if test "$GXX" = yes; then | |
12237 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12238 | else | |
12239 | lt_prog_compiler_no_builtin_flag_CXX= | |
12240 | fi | |
12241 | ||
12242 | if test "$GXX" = yes; then | |
12243 | # Set up default GNU C++ configuration | |
12244 | ||
12245 | ||
12246 | ||
12247 | # Check whether --with-gnu-ld was given. | |
12248 | if test "${with_gnu_ld+set}" = set; then : | |
12249 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
12250 | else | |
12251 | with_gnu_ld=no | |
12252 | fi | |
12253 | ||
12254 | ac_prog=ld | |
12255 | if test "$GCC" = yes; then | |
12256 | # Check if gcc -print-prog-name=ld gives a path. | |
12257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
12258 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
12259 | case $host in | |
12260 | *-*-mingw*) | |
12261 | # gcc leaves a trailing carriage return which upsets mingw | |
12262 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12263 | *) | |
12264 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12265 | esac | |
12266 | case $ac_prog in | |
12267 | # Accept absolute paths. | |
12268 | [\\/]* | ?:[\\/]*) | |
12269 | re_direlt='/[^/][^/]*/\.\./' | |
12270 | # Canonicalize the pathname of ld | |
12271 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
12272 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
12273 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
12274 | done | |
12275 | test -z "$LD" && LD="$ac_prog" | |
12276 | ;; | |
12277 | "") | |
12278 | # If it fails, then pretend we aren't using GCC. | |
12279 | ac_prog=ld | |
12280 | ;; | |
12281 | *) | |
12282 | # If it is relative, then search for the first ld in PATH. | |
12283 | with_gnu_ld=unknown | |
12284 | ;; | |
12285 | esac | |
12286 | elif test "$with_gnu_ld" = yes; then | |
12287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
12288 | $as_echo_n "checking for GNU ld... " >&6; } | |
12289 | else | |
12290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
12291 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
12292 | fi | |
d0ac1c44 | 12293 | if ${lt_cv_path_LD+:} false; then : |
3cb62297 L |
12294 | $as_echo_n "(cached) " >&6 |
12295 | else | |
12296 | if test -z "$LD"; then | |
12297 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
12298 | for ac_dir in $PATH; do | |
12299 | IFS="$lt_save_ifs" | |
12300 | test -z "$ac_dir" && ac_dir=. | |
12301 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
12302 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
12303 | # Check to see if the program is GNU ld. I'd rather use --version, | |
12304 | # but apparently some variants of GNU ld only accept -v. | |
12305 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
12306 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
12307 | *GNU* | *'with BFD'*) | |
12308 | test "$with_gnu_ld" != no && break | |
12309 | ;; | |
12310 | *) | |
12311 | test "$with_gnu_ld" != yes && break | |
12312 | ;; | |
12313 | esac | |
12314 | fi | |
12315 | done | |
12316 | IFS="$lt_save_ifs" | |
12317 | else | |
12318 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
12319 | fi | |
12320 | fi | |
12321 | ||
12322 | LD="$lt_cv_path_LD" | |
12323 | if test -n "$LD"; then | |
12324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
12325 | $as_echo "$LD" >&6; } | |
12326 | else | |
12327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12328 | $as_echo "no" >&6; } | |
12329 | fi | |
d0ac1c44 | 12330 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
3cb62297 L |
12331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
12332 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d0ac1c44 | 12333 | if ${lt_cv_prog_gnu_ld+:} false; then : |
3cb62297 L |
12334 | $as_echo_n "(cached) " >&6 |
12335 | else | |
12336 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
12337 | case `$LD -v 2>&1 </dev/null` in | |
12338 | *GNU* | *'with BFD'*) | |
12339 | lt_cv_prog_gnu_ld=yes | |
12340 | ;; | |
12341 | *) | |
12342 | lt_cv_prog_gnu_ld=no | |
12343 | ;; | |
12344 | esac | |
12345 | fi | |
12346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
12347 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
12348 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
12349 | ||
12350 | ||
12351 | ||
12352 | ||
12353 | ||
12354 | ||
12355 | ||
12356 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
12357 | # archiving commands below assume that GNU ld is being used. | |
12358 | if test "$with_gnu_ld" = yes; then | |
6e733cce L |
12359 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
12360 | archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
3cb62297 L |
12361 | |
12362 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12363 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12364 | ||
12365 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12366 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
12367 | # investigate it a little bit more. (MM) | |
12368 | wlarc='${wl}' | |
12369 | ||
12370 | # ancient GNU ld didn't support --whole-archive et. al. | |
12371 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
12372 | $GREP 'no-whole-archive' > /dev/null; then | |
12373 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12374 | else | |
12375 | whole_archive_flag_spec_CXX= | |
12376 | fi | |
12377 | else | |
12378 | with_gnu_ld=no | |
12379 | wlarc= | |
12380 | ||
12381 | # A generic and very simple default shared library creation | |
12382 | # command for GNU C++ for the case where it uses the native | |
12383 | # linker, instead of GNU ld. If possible, this setting should | |
12384 | # overridden to take advantage of the native linker features on | |
12385 | # the platform it is being used on. | |
12386 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12387 | fi | |
12388 | ||
12389 | # Commands to make compiler produce verbose output that lists | |
12390 | # what "hidden" libraries, object files and flags are used when | |
12391 | # linking a shared library. | |
12392 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
12393 | ||
12394 | else | |
12395 | GXX=no | |
12396 | with_gnu_ld=no | |
12397 | wlarc= | |
12398 | fi | |
12399 | ||
12400 | # PORTME: fill in a description of your system's C++ link characteristics | |
12401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12402 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12403 | ld_shlibs_CXX=yes | |
12404 | case $host_os in | |
12405 | aix3*) | |
12406 | # FIXME: insert proper C++ library support | |
12407 | ld_shlibs_CXX=no | |
12408 | ;; | |
12409 | aix[4-9]*) | |
12410 | if test "$host_cpu" = ia64; then | |
12411 | # On IA64, the linker does run time linking by default, so we don't | |
12412 | # have to do anything special. | |
12413 | aix_use_runtimelinking=no | |
12414 | exp_sym_flag='-Bexport' | |
12415 | no_entry_flag="" | |
12416 | else | |
12417 | aix_use_runtimelinking=no | |
12418 | ||
12419 | # Test if we are trying to use run time linking or normal | |
12420 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12421 | # need to do runtime linking. | |
12422 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
12423 | for ld_flag in $LDFLAGS; do | |
12424 | case $ld_flag in | |
12425 | *-brtl*) | |
12426 | aix_use_runtimelinking=yes | |
12427 | break | |
12428 | ;; | |
12429 | esac | |
12430 | done | |
12431 | ;; | |
12432 | esac | |
12433 | ||
12434 | exp_sym_flag='-bexport' | |
12435 | no_entry_flag='-bnoentry' | |
12436 | fi | |
12437 | ||
12438 | # When large executables or shared objects are built, AIX ld can | |
12439 | # have problems creating the table of contents. If linking a library | |
12440 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12441 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12442 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12443 | ||
12444 | archive_cmds_CXX='' | |
12445 | hardcode_direct_CXX=yes | |
12446 | hardcode_direct_absolute_CXX=yes | |
12447 | hardcode_libdir_separator_CXX=':' | |
12448 | link_all_deplibs_CXX=yes | |
12449 | file_list_spec_CXX='${wl}-f,' | |
12450 | ||
12451 | if test "$GXX" = yes; then | |
12452 | case $host_os in aix4.[012]|aix4.[012].*) | |
12453 | # We only want to do this on AIX 4.2 and lower, the check | |
12454 | # below for broken collect2 doesn't work under 4.3+ | |
12455 | collect2name=`${CC} -print-prog-name=collect2` | |
12456 | if test -f "$collect2name" && | |
12457 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
12458 | then | |
12459 | # We have reworked collect2 | |
12460 | : | |
12461 | else | |
12462 | # We have old collect2 | |
12463 | hardcode_direct_CXX=unsupported | |
12464 | # It fails to find uninstalled libraries when the uninstalled | |
12465 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12466 | # to unsupported forces relinking | |
12467 | hardcode_minus_L_CXX=yes | |
12468 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12469 | hardcode_libdir_separator_CXX= | |
12470 | fi | |
12471 | esac | |
12472 | shared_flag='-shared' | |
12473 | if test "$aix_use_runtimelinking" = yes; then | |
12474 | shared_flag="$shared_flag "'${wl}-G' | |
12475 | fi | |
12476 | else | |
12477 | # not using gcc | |
12478 | if test "$host_cpu" = ia64; then | |
12479 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12480 | # chokes on -Wl,-G. The following line is correct: | |
12481 | shared_flag='-G' | |
12482 | else | |
12483 | if test "$aix_use_runtimelinking" = yes; then | |
12484 | shared_flag='${wl}-G' | |
12485 | else | |
12486 | shared_flag='${wl}-bM:SRE' | |
12487 | fi | |
12488 | fi | |
12489 | fi | |
12490 | ||
12491 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
12492 | # It seems that -bexpall does not export symbols beginning with | |
12493 | # underscore (_), so it is better to generate a list of symbols to | |
12494 | # export. | |
12495 | always_export_symbols_CXX=yes | |
12496 | if test "$aix_use_runtimelinking" = yes; then | |
12497 | # Warning - without using the other runtime loading flags (-brtl), | |
12498 | # -berok will link without error, but may produce a broken library. | |
12499 | allow_undefined_flag_CXX='-berok' | |
12500 | # Determine the default libpath from the value encoded in an empty | |
12501 | # executable. | |
12502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12503 | /* end confdefs.h. */ | |
12504 | ||
12505 | int | |
12506 | main () | |
12507 | { | |
12508 | ||
12509 | ; | |
12510 | return 0; | |
12511 | } | |
12512 | _ACEOF | |
12513 | if ac_fn_cxx_try_link "$LINENO"; then : | |
12514 | ||
12515 | lt_aix_libpath_sed=' | |
12516 | /Import File Strings/,/^$/ { | |
12517 | /^0/ { | |
12518 | s/^0 *\(.*\)$/\1/ | |
12519 | p | |
12520 | } | |
12521 | }' | |
12522 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12523 | # Check for a 64-bit object if we didn't find anything. | |
12524 | if test -z "$aix_libpath"; then | |
12525 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12526 | fi | |
12527 | fi | |
12528 | rm -f core conftest.err conftest.$ac_objext \ | |
12529 | conftest$ac_exeext conftest.$ac_ext | |
12530 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12531 | ||
12532 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12533 | ||
12534 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
12535 | else | |
12536 | if test "$host_cpu" = ia64; then | |
12537 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
12538 | allow_undefined_flag_CXX="-z nodefs" | |
12539 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
12540 | else | |
12541 | # Determine the default libpath from the value encoded in an | |
12542 | # empty executable. | |
12543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12544 | /* end confdefs.h. */ | |
12545 | ||
12546 | int | |
12547 | main () | |
12548 | { | |
12549 | ||
12550 | ; | |
12551 | return 0; | |
12552 | } | |
12553 | _ACEOF | |
12554 | if ac_fn_cxx_try_link "$LINENO"; then : | |
12555 | ||
12556 | lt_aix_libpath_sed=' | |
12557 | /Import File Strings/,/^$/ { | |
12558 | /^0/ { | |
12559 | s/^0 *\(.*\)$/\1/ | |
12560 | p | |
12561 | } | |
12562 | }' | |
12563 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12564 | # Check for a 64-bit object if we didn't find anything. | |
12565 | if test -z "$aix_libpath"; then | |
12566 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12567 | fi | |
12568 | fi | |
12569 | rm -f core conftest.err conftest.$ac_objext \ | |
12570 | conftest$ac_exeext conftest.$ac_ext | |
12571 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12572 | ||
12573 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12574 | # Warning - without using the other run time loading flags, | |
12575 | # -berok will link without error, but may produce a broken library. | |
12576 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
12577 | allow_undefined_flag_CXX=' ${wl}-berok' | |
12578 | if test "$with_gnu_ld" = yes; then | |
12579 | # We only use this code for GNU lds that support --whole-archive. | |
12580 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12581 | else | |
12582 | # Exported symbols can be pulled into shared objects from archives | |
12583 | whole_archive_flag_spec_CXX='$convenience' | |
12584 | fi | |
12585 | archive_cmds_need_lc_CXX=yes | |
12586 | # This is similar to how AIX traditionally builds its shared | |
12587 | # libraries. | |
12588 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
12589 | fi | |
12590 | fi | |
12591 | ;; | |
12592 | ||
12593 | beos*) | |
12594 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12595 | allow_undefined_flag_CXX=unsupported | |
12596 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12597 | # support --undefined. This deserves some investigation. FIXME | |
12598 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12599 | else | |
12600 | ld_shlibs_CXX=no | |
12601 | fi | |
12602 | ;; | |
12603 | ||
12604 | chorus*) | |
12605 | case $cc_basename in | |
12606 | *) | |
12607 | # FIXME: insert proper C++ library support | |
12608 | ld_shlibs_CXX=no | |
12609 | ;; | |
12610 | esac | |
12611 | ;; | |
12612 | ||
12613 | cygwin* | mingw* | pw32* | cegcc*) | |
12614 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
12615 | # as there is no search path for DLLs. | |
12616 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12617 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | |
12618 | allow_undefined_flag_CXX=unsupported | |
12619 | always_export_symbols_CXX=no | |
12620 | enable_shared_with_static_runtimes_CXX=yes | |
12621 | ||
12622 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
12623 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12624 | # If the export-symbols file already is a .def file (1st line | |
12625 | # is EXPORTS), use it as is; otherwise, prepend... | |
12626 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
12627 | cp $export_symbols $output_objdir/$soname.def; | |
12628 | else | |
12629 | echo EXPORTS > $output_objdir/$soname.def; | |
12630 | cat $export_symbols >> $output_objdir/$soname.def; | |
12631 | fi~ | |
12632 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12633 | else | |
12634 | ld_shlibs_CXX=no | |
12635 | fi | |
12636 | ;; | |
12637 | darwin* | rhapsody*) | |
12638 | ||
12639 | ||
12640 | archive_cmds_need_lc_CXX=no | |
12641 | hardcode_direct_CXX=no | |
12642 | hardcode_automatic_CXX=yes | |
12643 | hardcode_shlibpath_var_CXX=unsupported | |
12644 | if test "$lt_cv_ld_force_load" = "yes"; then | |
12645 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
12646 | else | |
12647 | whole_archive_flag_spec_CXX='' | |
12648 | fi | |
12649 | link_all_deplibs_CXX=yes | |
12650 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
12651 | case $cc_basename in | |
12652 | ifort*) _lt_dar_can_shared=yes ;; | |
12653 | *) _lt_dar_can_shared=$GCC ;; | |
12654 | esac | |
12655 | if test "$_lt_dar_can_shared" = "yes"; then | |
12656 | output_verbose_link_cmd=func_echo_all | |
12657 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
12658 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
12659 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
12660 | module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
12661 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
12662 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" | |
12663 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" | |
12664 | fi | |
12665 | ||
12666 | else | |
12667 | ld_shlibs_CXX=no | |
12668 | fi | |
12669 | ||
12670 | ;; | |
12671 | ||
12672 | dgux*) | |
12673 | case $cc_basename in | |
12674 | ec++*) | |
12675 | # FIXME: insert proper C++ library support | |
12676 | ld_shlibs_CXX=no | |
12677 | ;; | |
12678 | ghcx*) | |
12679 | # Green Hills C++ Compiler | |
12680 | # FIXME: insert proper C++ library support | |
12681 | ld_shlibs_CXX=no | |
12682 | ;; | |
12683 | *) | |
12684 | # FIXME: insert proper C++ library support | |
12685 | ld_shlibs_CXX=no | |
12686 | ;; | |
12687 | esac | |
12688 | ;; | |
12689 | ||
6d2920c8 | 12690 | freebsd2.*) |
3cb62297 L |
12691 | # C++ shared libraries reported to be fairly broken before |
12692 | # switch to ELF | |
12693 | ld_shlibs_CXX=no | |
12694 | ;; | |
12695 | ||
12696 | freebsd-elf*) | |
12697 | archive_cmds_need_lc_CXX=no | |
12698 | ;; | |
12699 | ||
12700 | freebsd* | dragonfly*) | |
12701 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
12702 | # conventions | |
12703 | ld_shlibs_CXX=yes | |
12704 | ;; | |
12705 | ||
12706 | gnu*) | |
12707 | ;; | |
12708 | ||
12709 | haiku*) | |
12710 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12711 | link_all_deplibs_CXX=yes | |
12712 | ;; | |
12713 | ||
12714 | hpux9*) | |
12715 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
12716 | hardcode_libdir_separator_CXX=: | |
12717 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12718 | hardcode_direct_CXX=yes | |
12719 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
12720 | # but as the default | |
12721 | # location of the library. | |
12722 | ||
12723 | case $cc_basename in | |
12724 | CC*) | |
12725 | # FIXME: insert proper C++ library support | |
12726 | ld_shlibs_CXX=no | |
12727 | ;; | |
12728 | aCC*) | |
12729 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
12730 | # Commands to make compiler produce verbose output that lists | |
12731 | # what "hidden" libraries, object files and flags are used when | |
12732 | # linking a shared library. | |
12733 | # | |
12734 | # There doesn't appear to be a way to prevent this compiler from | |
12735 | # explicitly linking system object files so we need to strip them | |
12736 | # from the output so that they don't get included in the library | |
12737 | # dependencies. | |
12738 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
12739 | ;; | |
12740 | *) | |
12741 | if test "$GXX" = yes; then | |
12742 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
12743 | else | |
12744 | # FIXME: insert proper C++ library support | |
12745 | ld_shlibs_CXX=no | |
12746 | fi | |
12747 | ;; | |
12748 | esac | |
12749 | ;; | |
12750 | ||
12751 | hpux10*|hpux11*) | |
12752 | if test $with_gnu_ld = no; then | |
12753 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
12754 | hardcode_libdir_separator_CXX=: | |
12755 | ||
12756 | case $host_cpu in | |
12757 | hppa*64*|ia64*) | |
12758 | ;; | |
12759 | *) | |
12760 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12761 | ;; | |
12762 | esac | |
12763 | fi | |
12764 | case $host_cpu in | |
12765 | hppa*64*|ia64*) | |
12766 | hardcode_direct_CXX=no | |
12767 | hardcode_shlibpath_var_CXX=no | |
12768 | ;; | |
12769 | *) | |
12770 | hardcode_direct_CXX=yes | |
12771 | hardcode_direct_absolute_CXX=yes | |
12772 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
12773 | # but as the default | |
12774 | # location of the library. | |
12775 | ;; | |
12776 | esac | |
12777 | ||
12778 | case $cc_basename in | |
12779 | CC*) | |
12780 | # FIXME: insert proper C++ library support | |
12781 | ld_shlibs_CXX=no | |
12782 | ;; | |
12783 | aCC*) | |
12784 | case $host_cpu in | |
12785 | hppa*64*) | |
6a6859cb | 12786 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
3cb62297 L |
12787 | ;; |
12788 | ia64*) | |
12789 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12790 | ;; | |
12791 | *) | |
12792 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12793 | ;; | |
12794 | esac | |
12795 | # Commands to make compiler produce verbose output that lists | |
12796 | # what "hidden" libraries, object files and flags are used when | |
12797 | # linking a shared library. | |
12798 | # | |
12799 | # There doesn't appear to be a way to prevent this compiler from | |
12800 | # explicitly linking system object files so we need to strip them | |
12801 | # from the output so that they don't get included in the library | |
12802 | # dependencies. | |
12803 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
12804 | ;; | |
12805 | *) | |
12806 | if test "$GXX" = yes; then | |
12807 | if test $with_gnu_ld = no; then | |
12808 | case $host_cpu in | |
12809 | hppa*64*) | |
6a6859cb | 12810 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
3cb62297 L |
12811 | ;; |
12812 | ia64*) | |
12813 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12814 | ;; | |
12815 | *) | |
12816 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12817 | ;; | |
12818 | esac | |
12819 | fi | |
12820 | else | |
12821 | # FIXME: insert proper C++ library support | |
12822 | ld_shlibs_CXX=no | |
12823 | fi | |
12824 | ;; | |
12825 | esac | |
12826 | ;; | |
12827 | ||
12828 | interix[3-9]*) | |
12829 | hardcode_direct_CXX=no | |
12830 | hardcode_shlibpath_var_CXX=no | |
12831 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12832 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12833 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
12834 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
12835 | # default) and relocated if they conflict, which is a slow very memory | |
12836 | # consuming and fragmenting process. To avoid this, we pick a random, | |
12837 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
12838 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
12839 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
12840 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
12841 | ;; | |
12842 | irix5* | irix6*) | |
12843 | case $cc_basename in | |
12844 | CC*) | |
12845 | # SGI C++ | |
12846 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
12847 | ||
12848 | # Archives containing C++ object files must be created using | |
12849 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
12850 | # necessary to make sure instantiated templates are included | |
12851 | # in the archive. | |
12852 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
12853 | ;; | |
12854 | *) | |
12855 | if test "$GXX" = yes; then | |
12856 | if test "$with_gnu_ld" = no; then | |
12857 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12858 | else | |
12859 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' | |
12860 | fi | |
12861 | fi | |
12862 | link_all_deplibs_CXX=yes | |
12863 | ;; | |
12864 | esac | |
12865 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12866 | hardcode_libdir_separator_CXX=: | |
12867 | inherit_rpath_CXX=yes | |
12868 | ;; | |
12869 | ||
12870 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12871 | case $cc_basename in | |
12872 | KCC*) | |
12873 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
12874 | ||
12875 | # KCC will only create a shared library if the output file | |
12876 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12877 | # to its proper name (with version) after linking. | |
12878 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
12879 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
12880 | # Commands to make compiler produce verbose output that lists | |
12881 | # what "hidden" libraries, object files and flags are used when | |
12882 | # linking a shared library. | |
12883 | # | |
12884 | # There doesn't appear to be a way to prevent this compiler from | |
12885 | # explicitly linking system object files so we need to strip them | |
12886 | # from the output so that they don't get included in the library | |
12887 | # dependencies. | |
12888 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
12889 | ||
12890 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12891 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12892 | ||
12893 | # Archives containing C++ object files must be created using | |
12894 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
12895 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
12896 | ;; | |
12897 | icpc* | ecpc* ) | |
12898 | # Intel C++ | |
12899 | with_gnu_ld=yes | |
12900 | # version 8.0 and above of icpc choke on multiply defined symbols | |
12901 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
12902 | # earlier do not add the objects themselves. | |
12903 | case `$CC -V 2>&1` in | |
12904 | *"Version 7."*) | |
12905 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12906 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12907 | ;; | |
12908 | *) # Version 8.0 or newer | |
12909 | tmp_idyn= | |
12910 | case $host_cpu in | |
12911 | ia64*) tmp_idyn=' -i_dynamic';; | |
12912 | esac | |
12913 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12914 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12915 | ;; | |
12916 | esac | |
12917 | archive_cmds_need_lc_CXX=no | |
12918 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12919 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12920 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12921 | ;; | |
12922 | pgCC* | pgcpp*) | |
12923 | # Portland Group C++ compiler | |
12924 | case `$CC -V` in | |
12925 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | |
12926 | prelink_cmds_CXX='tpldir=Template.dir~ | |
12927 | rm -rf $tpldir~ | |
12928 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
6a6859cb | 12929 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
3cb62297 L |
12930 | old_archive_cmds_CXX='tpldir=Template.dir~ |
12931 | rm -rf $tpldir~ | |
12932 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
6a6859cb | 12933 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
3cb62297 L |
12934 | $RANLIB $oldlib' |
12935 | archive_cmds_CXX='tpldir=Template.dir~ | |
12936 | rm -rf $tpldir~ | |
12937 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
6a6859cb | 12938 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
3cb62297 L |
12939 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
12940 | rm -rf $tpldir~ | |
12941 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
6a6859cb | 12942 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
3cb62297 L |
12943 | ;; |
12944 | *) # Version 6 and above use weak symbols | |
12945 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12946 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
12947 | ;; | |
12948 | esac | |
12949 | ||
12950 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
12951 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12952 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
12953 | ;; | |
12954 | cxx*) | |
12955 | # Compaq C++ | |
12956 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12957 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
12958 | ||
12959 | runpath_var=LD_RUN_PATH | |
12960 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12961 | hardcode_libdir_separator_CXX=: | |
12962 | ||
12963 | # Commands to make compiler produce verbose output that lists | |
12964 | # what "hidden" libraries, object files and flags are used when | |
12965 | # linking a shared library. | |
12966 | # | |
12967 | # There doesn't appear to be a way to prevent this compiler from | |
12968 | # explicitly linking system object files so we need to strip them | |
12969 | # from the output so that they don't get included in the library | |
12970 | # dependencies. | |
12971 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' | |
12972 | ;; | |
12973 | xl* | mpixl* | bgxl*) | |
12974 | # IBM XL 8.0 on PPC, with GNU ld | |
12975 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12976 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12977 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12978 | if test "x$supports_anon_versioning" = xyes; then | |
12979 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
12980 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
12981 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12982 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
12983 | fi | |
12984 | ;; | |
12985 | *) | |
12986 | case `$CC -V 2>&1 | sed 5q` in | |
12987 | *Sun\ C*) | |
12988 | # Sun C++ 5.9 | |
12989 | no_undefined_flag_CXX=' -zdefs' | |
12990 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12991 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' | |
12992 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12993 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
12994 | compiler_needs_object_CXX=yes | |
12995 | ||
12996 | # Not sure whether something based on | |
12997 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
12998 | # would be better. | |
12999 | output_verbose_link_cmd='func_echo_all' | |
13000 | ||
13001 | # Archives containing C++ object files must be created using | |
13002 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13003 | # necessary to make sure instantiated templates are included | |
13004 | # in the archive. | |
13005 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13006 | ;; | |
13007 | esac | |
13008 | ;; | |
13009 | esac | |
13010 | ;; | |
13011 | ||
13012 | lynxos*) | |
13013 | # FIXME: insert proper C++ library support | |
13014 | ld_shlibs_CXX=no | |
13015 | ;; | |
13016 | ||
13017 | m88k*) | |
13018 | # FIXME: insert proper C++ library support | |
13019 | ld_shlibs_CXX=no | |
13020 | ;; | |
13021 | ||
13022 | mvs*) | |
13023 | case $cc_basename in | |
13024 | cxx*) | |
13025 | # FIXME: insert proper C++ library support | |
13026 | ld_shlibs_CXX=no | |
13027 | ;; | |
13028 | *) | |
13029 | # FIXME: insert proper C++ library support | |
13030 | ld_shlibs_CXX=no | |
13031 | ;; | |
13032 | esac | |
13033 | ;; | |
13034 | ||
13035 | netbsd*) | |
13036 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13037 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13038 | wlarc= | |
13039 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13040 | hardcode_direct_CXX=yes | |
13041 | hardcode_shlibpath_var_CXX=no | |
13042 | fi | |
13043 | # Workaround some broken pre-1.5 toolchains | |
13044 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
13045 | ;; | |
13046 | ||
13047 | *nto* | *qnx*) | |
13048 | ld_shlibs_CXX=yes | |
13049 | ;; | |
13050 | ||
13051 | openbsd2*) | |
13052 | # C++ shared libraries are fairly broken | |
13053 | ld_shlibs_CXX=no | |
13054 | ;; | |
13055 | ||
13056 | openbsd*) | |
13057 | if test -f /usr/libexec/ld.so; then | |
13058 | hardcode_direct_CXX=yes | |
13059 | hardcode_shlibpath_var_CXX=no | |
13060 | hardcode_direct_absolute_CXX=yes | |
13061 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13062 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13063 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13064 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13065 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13066 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13067 | fi | |
13068 | output_verbose_link_cmd=func_echo_all | |
13069 | else | |
13070 | ld_shlibs_CXX=no | |
13071 | fi | |
13072 | ;; | |
13073 | ||
13074 | osf3* | osf4* | osf5*) | |
13075 | case $cc_basename in | |
13076 | KCC*) | |
13077 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13078 | ||
13079 | # KCC will only create a shared library if the output file | |
13080 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13081 | # to its proper name (with version) after linking. | |
13082 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
13083 | ||
13084 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13085 | hardcode_libdir_separator_CXX=: | |
13086 | ||
13087 | # Archives containing C++ object files must be created using | |
13088 | # the KAI C++ compiler. | |
13089 | case $host in | |
13090 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
13091 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
13092 | esac | |
13093 | ;; | |
13094 | RCC*) | |
13095 | # Rational C++ 2.4.1 | |
13096 | # FIXME: insert proper C++ library support | |
13097 | ld_shlibs_CXX=no | |
13098 | ;; | |
13099 | cxx*) | |
13100 | case $host in | |
13101 | osf3*) | |
13102 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13103 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13104 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13105 | ;; | |
13106 | *) | |
13107 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
13108 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13109 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
13110 | echo "-hidden">> $lib.exp~ | |
13111 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ | |
13112 | $RM $lib.exp' | |
13113 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13114 | ;; | |
13115 | esac | |
13116 | ||
13117 | hardcode_libdir_separator_CXX=: | |
13118 | ||
13119 | # Commands to make compiler produce verbose output that lists | |
13120 | # what "hidden" libraries, object files and flags are used when | |
13121 | # linking a shared library. | |
13122 | # | |
13123 | # There doesn't appear to be a way to prevent this compiler from | |
13124 | # explicitly linking system object files so we need to strip them | |
13125 | # from the output so that they don't get included in the library | |
13126 | # dependencies. | |
13127 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13128 | ;; | |
13129 | *) | |
13130 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13131 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13132 | case $host in | |
13133 | osf3*) | |
13134 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13135 | ;; | |
13136 | *) | |
13137 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13138 | ;; | |
13139 | esac | |
13140 | ||
13141 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13142 | hardcode_libdir_separator_CXX=: | |
13143 | ||
13144 | # Commands to make compiler produce verbose output that lists | |
13145 | # what "hidden" libraries, object files and flags are used when | |
13146 | # linking a shared library. | |
13147 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13148 | ||
13149 | else | |
13150 | # FIXME: insert proper C++ library support | |
13151 | ld_shlibs_CXX=no | |
13152 | fi | |
13153 | ;; | |
13154 | esac | |
13155 | ;; | |
13156 | ||
13157 | psos*) | |
13158 | # FIXME: insert proper C++ library support | |
13159 | ld_shlibs_CXX=no | |
13160 | ;; | |
13161 | ||
13162 | sunos4*) | |
13163 | case $cc_basename in | |
13164 | CC*) | |
13165 | # Sun C++ 4.x | |
13166 | # FIXME: insert proper C++ library support | |
13167 | ld_shlibs_CXX=no | |
13168 | ;; | |
13169 | lcc*) | |
13170 | # Lucid | |
13171 | # FIXME: insert proper C++ library support | |
13172 | ld_shlibs_CXX=no | |
13173 | ;; | |
13174 | *) | |
13175 | # FIXME: insert proper C++ library support | |
13176 | ld_shlibs_CXX=no | |
13177 | ;; | |
13178 | esac | |
13179 | ;; | |
13180 | ||
13181 | solaris*) | |
13182 | case $cc_basename in | |
13183 | CC*) | |
13184 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13185 | archive_cmds_need_lc_CXX=yes | |
13186 | no_undefined_flag_CXX=' -zdefs' | |
13187 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13188 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13189 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13190 | ||
13191 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13192 | hardcode_shlibpath_var_CXX=no | |
13193 | case $host_os in | |
13194 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13195 | *) | |
13196 | # The compiler driver will combine and reorder linker options, | |
13197 | # but understands `-z linker_flag'. | |
13198 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13199 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
13200 | ;; | |
13201 | esac | |
13202 | link_all_deplibs_CXX=yes | |
13203 | ||
13204 | output_verbose_link_cmd='func_echo_all' | |
13205 | ||
13206 | # Archives containing C++ object files must be created using | |
13207 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13208 | # necessary to make sure instantiated templates are included | |
13209 | # in the archive. | |
13210 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13211 | ;; | |
13212 | gcx*) | |
13213 | # Green Hills C++ Compiler | |
13214 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13215 | ||
13216 | # The C++ compiler must be used to create the archive. | |
13217 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
13218 | ;; | |
13219 | *) | |
13220 | # GNU C++ compiler with Solaris linker | |
13221 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13222 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
13223 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
13224 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13225 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13226 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13227 | ||
13228 | # Commands to make compiler produce verbose output that lists | |
13229 | # what "hidden" libraries, object files and flags are used when | |
13230 | # linking a shared library. | |
13231 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13232 | else | |
13233 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
13234 | # platform. | |
13235 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13236 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13237 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13238 | ||
13239 | # Commands to make compiler produce verbose output that lists | |
13240 | # what "hidden" libraries, object files and flags are used when | |
13241 | # linking a shared library. | |
13242 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13243 | fi | |
13244 | ||
13245 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
13246 | case $host_os in | |
13247 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13248 | *) | |
13249 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13250 | ;; | |
13251 | esac | |
13252 | fi | |
13253 | ;; | |
13254 | esac | |
13255 | ;; | |
13256 | ||
13257 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13258 | no_undefined_flag_CXX='${wl}-z,text' | |
13259 | archive_cmds_need_lc_CXX=no | |
13260 | hardcode_shlibpath_var_CXX=no | |
13261 | runpath_var='LD_RUN_PATH' | |
13262 | ||
13263 | case $cc_basename in | |
13264 | CC*) | |
13265 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13266 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13267 | ;; | |
13268 | *) | |
13269 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13270 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13271 | ;; | |
13272 | esac | |
13273 | ;; | |
13274 | ||
13275 | sysv5* | sco3.2v5* | sco5v6*) | |
13276 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13277 | # link with -lc, and that would cause any symbols used from libc to | |
13278 | # always be unresolved, which means just about no library would | |
13279 | # ever link correctly. If we're not using GNU ld we use -z text | |
13280 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13281 | # as -z defs. | |
13282 | no_undefined_flag_CXX='${wl}-z,text' | |
13283 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
13284 | archive_cmds_need_lc_CXX=no | |
13285 | hardcode_shlibpath_var_CXX=no | |
13286 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
13287 | hardcode_libdir_separator_CXX=':' | |
13288 | link_all_deplibs_CXX=yes | |
13289 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
13290 | runpath_var='LD_RUN_PATH' | |
13291 | ||
13292 | case $cc_basename in | |
13293 | CC*) | |
13294 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13295 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13296 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | |
13297 | '"$old_archive_cmds_CXX" | |
13298 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
13299 | '"$reload_cmds_CXX" | |
13300 | ;; | |
13301 | *) | |
13302 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13303 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13304 | ;; | |
13305 | esac | |
13306 | ;; | |
13307 | ||
13308 | tandem*) | |
13309 | case $cc_basename in | |
13310 | NCC*) | |
13311 | # NonStop-UX NCC 3.20 | |
13312 | # FIXME: insert proper C++ library support | |
13313 | ld_shlibs_CXX=no | |
13314 | ;; | |
13315 | *) | |
13316 | # FIXME: insert proper C++ library support | |
13317 | ld_shlibs_CXX=no | |
13318 | ;; | |
13319 | esac | |
13320 | ;; | |
13321 | ||
13322 | vxworks*) | |
6a6859cb AM |
13323 | # For VxWorks ports, we assume the use of a GNU linker with |
13324 | # standard elf conventions. | |
13325 | ld_shlibs_CXX=yes | |
3cb62297 L |
13326 | ;; |
13327 | ||
13328 | *) | |
13329 | # FIXME: insert proper C++ library support | |
13330 | ld_shlibs_CXX=no | |
13331 | ;; | |
13332 | esac | |
13333 | ||
13334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
13335 | $as_echo "$ld_shlibs_CXX" >&6; } | |
13336 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13337 | ||
13338 | GCC_CXX="$GXX" | |
13339 | LD_CXX="$LD" | |
13340 | ||
13341 | ## CAVEAT EMPTOR: | |
13342 | ## There is no encapsulation within the following macros, do not change | |
13343 | ## the running order or otherwise move them around unless you know exactly | |
13344 | ## what you are doing... | |
13345 | # Dependencies to place before and after the object being linked: | |
13346 | predep_objects_CXX= | |
13347 | postdep_objects_CXX= | |
13348 | predeps_CXX= | |
13349 | postdeps_CXX= | |
13350 | compiler_lib_search_path_CXX= | |
13351 | ||
13352 | cat > conftest.$ac_ext <<_LT_EOF | |
13353 | class Foo | |
13354 | { | |
13355 | public: | |
13356 | Foo (void) { a = 0; } | |
13357 | private: | |
13358 | int a; | |
13359 | }; | |
13360 | _LT_EOF | |
13361 | ||
13362 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13363 | (eval $ac_compile) 2>&5 | |
13364 | ac_status=$? | |
13365 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13366 | test $ac_status = 0; }; then | |
13367 | # Parse the compiler output and extract the necessary | |
13368 | # objects, libraries and library flags. | |
13369 | ||
13370 | # Sentinel used to keep track of whether or not we are before | |
13371 | # the conftest object file. | |
13372 | pre_test_object_deps_done=no | |
13373 | ||
13374 | for p in `eval "$output_verbose_link_cmd"`; do | |
13375 | case $p in | |
13376 | ||
13377 | -L* | -R* | -l*) | |
13378 | # Some compilers place space between "-{L,R}" and the path. | |
13379 | # Remove the space. | |
13380 | if test $p = "-L" || | |
13381 | test $p = "-R"; then | |
13382 | prev=$p | |
13383 | continue | |
13384 | else | |
13385 | prev= | |
13386 | fi | |
13387 | ||
13388 | if test "$pre_test_object_deps_done" = no; then | |
13389 | case $p in | |
13390 | -L* | -R*) | |
13391 | # Internal compiler library paths should come after those | |
13392 | # provided the user. The postdeps already come after the | |
13393 | # user supplied libs so there is no need to process them. | |
13394 | if test -z "$compiler_lib_search_path_CXX"; then | |
13395 | compiler_lib_search_path_CXX="${prev}${p}" | |
13396 | else | |
13397 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
13398 | fi | |
13399 | ;; | |
13400 | # The "-l" case would never come before the object being | |
13401 | # linked, so don't bother handling this case. | |
13402 | esac | |
13403 | else | |
13404 | if test -z "$postdeps_CXX"; then | |
13405 | postdeps_CXX="${prev}${p}" | |
13406 | else | |
13407 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
13408 | fi | |
13409 | fi | |
13410 | ;; | |
13411 | ||
13412 | *.$objext) | |
13413 | # This assumes that the test object file only shows up | |
13414 | # once in the compiler output. | |
13415 | if test "$p" = "conftest.$objext"; then | |
13416 | pre_test_object_deps_done=yes | |
13417 | continue | |
13418 | fi | |
13419 | ||
13420 | if test "$pre_test_object_deps_done" = no; then | |
13421 | if test -z "$predep_objects_CXX"; then | |
13422 | predep_objects_CXX="$p" | |
13423 | else | |
13424 | predep_objects_CXX="$predep_objects_CXX $p" | |
13425 | fi | |
13426 | else | |
13427 | if test -z "$postdep_objects_CXX"; then | |
13428 | postdep_objects_CXX="$p" | |
13429 | else | |
13430 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
13431 | fi | |
13432 | fi | |
13433 | ;; | |
13434 | ||
13435 | *) ;; # Ignore the rest. | |
13436 | ||
13437 | esac | |
13438 | done | |
13439 | ||
13440 | # Clean up. | |
13441 | rm -f a.out a.exe | |
13442 | else | |
13443 | echo "libtool.m4: error: problem compiling CXX test program" | |
13444 | fi | |
13445 | ||
13446 | $RM -f confest.$objext | |
13447 | ||
13448 | # PORTME: override above test on systems where it is broken | |
13449 | case $host_os in | |
13450 | interix[3-9]*) | |
13451 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
13452 | # hack all around it, let's just trust "g++" to DTRT. | |
13453 | predep_objects_CXX= | |
13454 | postdep_objects_CXX= | |
13455 | postdeps_CXX= | |
13456 | ;; | |
13457 | ||
13458 | linux*) | |
13459 | case `$CC -V 2>&1 | sed 5q` in | |
13460 | *Sun\ C*) | |
13461 | # Sun C++ 5.9 | |
13462 | ||
13463 | # The more standards-conforming stlport4 library is | |
13464 | # incompatible with the Cstd library. Avoid specifying | |
13465 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13466 | # -library=stlport4 depends on it. | |
13467 | case " $CXX $CXXFLAGS " in | |
13468 | *" -library=stlport4 "*) | |
13469 | solaris_use_stlport4=yes | |
13470 | ;; | |
13471 | esac | |
13472 | ||
13473 | if test "$solaris_use_stlport4" != yes; then | |
13474 | postdeps_CXX='-library=Cstd -library=Crun' | |
13475 | fi | |
13476 | ;; | |
13477 | esac | |
13478 | ;; | |
13479 | ||
13480 | solaris*) | |
13481 | case $cc_basename in | |
13482 | CC*) | |
13483 | # The more standards-conforming stlport4 library is | |
13484 | # incompatible with the Cstd library. Avoid specifying | |
13485 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13486 | # -library=stlport4 depends on it. | |
13487 | case " $CXX $CXXFLAGS " in | |
13488 | *" -library=stlport4 "*) | |
13489 | solaris_use_stlport4=yes | |
13490 | ;; | |
13491 | esac | |
13492 | ||
13493 | # Adding this requires a known-good setup of shared libraries for | |
13494 | # Sun compiler versions before 5.6, else PIC objects from an old | |
13495 | # archive will be linked into the output, leading to subtle bugs. | |
13496 | if test "$solaris_use_stlport4" != yes; then | |
13497 | postdeps_CXX='-library=Cstd -library=Crun' | |
13498 | fi | |
13499 | ;; | |
13500 | esac | |
13501 | ;; | |
13502 | esac | |
13503 | ||
13504 | ||
13505 | case " $postdeps_CXX " in | |
13506 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
13507 | esac | |
13508 | compiler_lib_search_dirs_CXX= | |
13509 | if test -n "${compiler_lib_search_path_CXX}"; then | |
13510 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13511 | fi | |
13512 | ||
13513 | ||
13514 | ||
13515 | ||
13516 | ||
13517 | ||
13518 | ||
13519 | ||
13520 | ||
13521 | ||
13522 | ||
13523 | ||
13524 | ||
13525 | ||
13526 | ||
13527 | ||
13528 | ||
13529 | ||
13530 | ||
13531 | ||
13532 | ||
13533 | ||
13534 | ||
13535 | ||
13536 | ||
13537 | ||
13538 | ||
13539 | ||
13540 | ||
13541 | ||
13542 | ||
13543 | lt_prog_compiler_wl_CXX= | |
13544 | lt_prog_compiler_pic_CXX= | |
13545 | lt_prog_compiler_static_CXX= | |
13546 | ||
13547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
13548 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
13549 | ||
13550 | # C++ specific cases for pic, static, wl, etc. | |
13551 | if test "$GXX" = yes; then | |
13552 | lt_prog_compiler_wl_CXX='-Wl,' | |
13553 | lt_prog_compiler_static_CXX='-static' | |
13554 | ||
13555 | case $host_os in | |
13556 | aix*) | |
13557 | # All AIX code is PIC. | |
13558 | if test "$host_cpu" = ia64; then | |
13559 | # AIX 5 now supports IA64 processor | |
13560 | lt_prog_compiler_static_CXX='-Bstatic' | |
13561 | fi | |
52204357 | 13562 | lt_prog_compiler_pic_CXX='-fPIC' |
3cb62297 L |
13563 | ;; |
13564 | ||
13565 | amigaos*) | |
13566 | case $host_cpu in | |
13567 | powerpc) | |
13568 | # see comment about AmigaOS4 .so support | |
13569 | lt_prog_compiler_pic_CXX='-fPIC' | |
13570 | ;; | |
13571 | m68k) | |
13572 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13573 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13574 | # like `-m68040'. | |
13575 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
13576 | ;; | |
13577 | esac | |
13578 | ;; | |
13579 | ||
13580 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13581 | # PIC is the default for these OSes. | |
13582 | ;; | |
13583 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
13584 | # This hack is so that the source file can tell whether it is being | |
13585 | # built for inclusion in a dll (and should export symbols for example). | |
13586 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13587 | # (--disable-auto-import) libraries | |
13588 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
13589 | ;; | |
13590 | darwin* | rhapsody*) | |
13591 | # PIC is the default on this platform | |
13592 | # Common symbols not allowed in MH_DYLIB files | |
13593 | lt_prog_compiler_pic_CXX='-fno-common' | |
13594 | ;; | |
13595 | *djgpp*) | |
13596 | # DJGPP does not support shared libraries at all | |
13597 | lt_prog_compiler_pic_CXX= | |
13598 | ;; | |
13599 | haiku*) | |
13600 | # PIC is the default for Haiku. | |
13601 | # The "-static" flag exists, but is broken. | |
13602 | lt_prog_compiler_static_CXX= | |
13603 | ;; | |
13604 | interix[3-9]*) | |
13605 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13606 | # Instead, we relocate shared libraries at runtime. | |
13607 | ;; | |
13608 | sysv4*MP*) | |
13609 | if test -d /usr/nec; then | |
13610 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
13611 | fi | |
13612 | ;; | |
13613 | hpux*) | |
13614 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
13615 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13616 | # sets the default TLS model and affects inlining. | |
13617 | case $host_cpu in | |
13618 | hppa*64*) | |
13619 | ;; | |
13620 | *) | |
13621 | lt_prog_compiler_pic_CXX='-fPIC' | |
13622 | ;; | |
13623 | esac | |
13624 | ;; | |
13625 | *qnx* | *nto*) | |
13626 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13627 | # it will coredump. | |
13628 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
13629 | ;; | |
13630 | *) | |
13631 | lt_prog_compiler_pic_CXX='-fPIC' | |
13632 | ;; | |
13633 | esac | |
13634 | else | |
13635 | case $host_os in | |
13636 | aix[4-9]*) | |
13637 | # All AIX code is PIC. | |
13638 | if test "$host_cpu" = ia64; then | |
13639 | # AIX 5 now supports IA64 processor | |
13640 | lt_prog_compiler_static_CXX='-Bstatic' | |
13641 | else | |
13642 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
13643 | fi | |
13644 | ;; | |
13645 | chorus*) | |
13646 | case $cc_basename in | |
13647 | cxch68*) | |
13648 | # Green Hills C++ Compiler | |
13649 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
13650 | ;; | |
13651 | esac | |
13652 | ;; | |
13653 | dgux*) | |
13654 | case $cc_basename in | |
13655 | ec++*) | |
13656 | lt_prog_compiler_pic_CXX='-KPIC' | |
13657 | ;; | |
13658 | ghcx*) | |
13659 | # Green Hills C++ Compiler | |
13660 | lt_prog_compiler_pic_CXX='-pic' | |
13661 | ;; | |
13662 | *) | |
13663 | ;; | |
13664 | esac | |
13665 | ;; | |
13666 | freebsd* | dragonfly*) | |
13667 | # FreeBSD uses GNU C++ | |
13668 | ;; | |
13669 | hpux9* | hpux10* | hpux11*) | |
13670 | case $cc_basename in | |
13671 | CC*) | |
13672 | lt_prog_compiler_wl_CXX='-Wl,' | |
13673 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
13674 | if test "$host_cpu" != ia64; then | |
13675 | lt_prog_compiler_pic_CXX='+Z' | |
13676 | fi | |
13677 | ;; | |
13678 | aCC*) | |
13679 | lt_prog_compiler_wl_CXX='-Wl,' | |
13680 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
13681 | case $host_cpu in | |
13682 | hppa*64*|ia64*) | |
13683 | # +Z the default | |
13684 | ;; | |
13685 | *) | |
13686 | lt_prog_compiler_pic_CXX='+Z' | |
13687 | ;; | |
13688 | esac | |
13689 | ;; | |
13690 | *) | |
13691 | ;; | |
13692 | esac | |
13693 | ;; | |
13694 | interix*) | |
13695 | # This is c89, which is MS Visual C++ (no shared libs) | |
13696 | # Anyone wants to do a port? | |
13697 | ;; | |
13698 | irix5* | irix6* | nonstopux*) | |
13699 | case $cc_basename in | |
13700 | CC*) | |
13701 | lt_prog_compiler_wl_CXX='-Wl,' | |
13702 | lt_prog_compiler_static_CXX='-non_shared' | |
13703 | # CC pic flag -KPIC is the default. | |
13704 | ;; | |
13705 | *) | |
13706 | ;; | |
13707 | esac | |
13708 | ;; | |
13709 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
13710 | case $cc_basename in | |
13711 | KCC*) | |
13712 | # KAI C++ Compiler | |
13713 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
13714 | lt_prog_compiler_pic_CXX='-fPIC' | |
13715 | ;; | |
13716 | ecpc* ) | |
13717 | # old Intel C++ for x86_64 which still supported -KPIC. | |
13718 | lt_prog_compiler_wl_CXX='-Wl,' | |
13719 | lt_prog_compiler_pic_CXX='-KPIC' | |
13720 | lt_prog_compiler_static_CXX='-static' | |
13721 | ;; | |
13722 | icpc* ) | |
13723 | # Intel C++, used to be incompatible with GCC. | |
13724 | # ICC 10 doesn't accept -KPIC any more. | |
13725 | lt_prog_compiler_wl_CXX='-Wl,' | |
13726 | lt_prog_compiler_pic_CXX='-fPIC' | |
13727 | lt_prog_compiler_static_CXX='-static' | |
13728 | ;; | |
13729 | pgCC* | pgcpp*) | |
13730 | # Portland Group C++ compiler | |
13731 | lt_prog_compiler_wl_CXX='-Wl,' | |
13732 | lt_prog_compiler_pic_CXX='-fpic' | |
13733 | lt_prog_compiler_static_CXX='-Bstatic' | |
13734 | ;; | |
13735 | cxx*) | |
13736 | # Compaq C++ | |
13737 | # Make sure the PIC flag is empty. It appears that all Alpha | |
13738 | # Linux and Compaq Tru64 Unix objects are PIC. | |
13739 | lt_prog_compiler_pic_CXX= | |
13740 | lt_prog_compiler_static_CXX='-non_shared' | |
13741 | ;; | |
13742 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | |
13743 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
13744 | lt_prog_compiler_wl_CXX='-Wl,' | |
13745 | lt_prog_compiler_pic_CXX='-qpic' | |
13746 | lt_prog_compiler_static_CXX='-qstaticlink' | |
13747 | ;; | |
13748 | *) | |
13749 | case `$CC -V 2>&1 | sed 5q` in | |
13750 | *Sun\ C*) | |
13751 | # Sun C++ 5.9 | |
13752 | lt_prog_compiler_pic_CXX='-KPIC' | |
13753 | lt_prog_compiler_static_CXX='-Bstatic' | |
13754 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
13755 | ;; | |
13756 | esac | |
13757 | ;; | |
13758 | esac | |
13759 | ;; | |
13760 | lynxos*) | |
13761 | ;; | |
13762 | m88k*) | |
13763 | ;; | |
13764 | mvs*) | |
13765 | case $cc_basename in | |
13766 | cxx*) | |
13767 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
13768 | ;; | |
13769 | *) | |
13770 | ;; | |
13771 | esac | |
13772 | ;; | |
13773 | netbsd*) | |
13774 | ;; | |
13775 | *qnx* | *nto*) | |
13776 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13777 | # it will coredump. | |
13778 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
13779 | ;; | |
13780 | osf3* | osf4* | osf5*) | |
13781 | case $cc_basename in | |
13782 | KCC*) | |
13783 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
13784 | ;; | |
13785 | RCC*) | |
13786 | # Rational C++ 2.4.1 | |
13787 | lt_prog_compiler_pic_CXX='-pic' | |
13788 | ;; | |
13789 | cxx*) | |
13790 | # Digital/Compaq C++ | |
13791 | lt_prog_compiler_wl_CXX='-Wl,' | |
13792 | # Make sure the PIC flag is empty. It appears that all Alpha | |
13793 | # Linux and Compaq Tru64 Unix objects are PIC. | |
13794 | lt_prog_compiler_pic_CXX= | |
13795 | lt_prog_compiler_static_CXX='-non_shared' | |
13796 | ;; | |
13797 | *) | |
13798 | ;; | |
13799 | esac | |
13800 | ;; | |
13801 | psos*) | |
13802 | ;; | |
13803 | solaris*) | |
13804 | case $cc_basename in | |
13805 | CC*) | |
13806 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13807 | lt_prog_compiler_pic_CXX='-KPIC' | |
13808 | lt_prog_compiler_static_CXX='-Bstatic' | |
13809 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
13810 | ;; | |
13811 | gcx*) | |
13812 | # Green Hills C++ Compiler | |
13813 | lt_prog_compiler_pic_CXX='-PIC' | |
13814 | ;; | |
13815 | *) | |
13816 | ;; | |
13817 | esac | |
13818 | ;; | |
13819 | sunos4*) | |
13820 | case $cc_basename in | |
13821 | CC*) | |
13822 | # Sun C++ 4.x | |
13823 | lt_prog_compiler_pic_CXX='-pic' | |
13824 | lt_prog_compiler_static_CXX='-Bstatic' | |
13825 | ;; | |
13826 | lcc*) | |
13827 | # Lucid | |
13828 | lt_prog_compiler_pic_CXX='-pic' | |
13829 | ;; | |
13830 | *) | |
13831 | ;; | |
13832 | esac | |
13833 | ;; | |
13834 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13835 | case $cc_basename in | |
13836 | CC*) | |
13837 | lt_prog_compiler_wl_CXX='-Wl,' | |
13838 | lt_prog_compiler_pic_CXX='-KPIC' | |
13839 | lt_prog_compiler_static_CXX='-Bstatic' | |
13840 | ;; | |
13841 | esac | |
13842 | ;; | |
13843 | tandem*) | |
13844 | case $cc_basename in | |
13845 | NCC*) | |
13846 | # NonStop-UX NCC 3.20 | |
13847 | lt_prog_compiler_pic_CXX='-KPIC' | |
13848 | ;; | |
13849 | *) | |
13850 | ;; | |
13851 | esac | |
13852 | ;; | |
13853 | vxworks*) | |
13854 | ;; | |
13855 | *) | |
13856 | lt_prog_compiler_can_build_shared_CXX=no | |
13857 | ;; | |
13858 | esac | |
13859 | fi | |
13860 | ||
13861 | case $host_os in | |
13862 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13863 | *djgpp*) | |
13864 | lt_prog_compiler_pic_CXX= | |
13865 | ;; | |
13866 | *) | |
13867 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
13868 | ;; | |
13869 | esac | |
13870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
13871 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
13872 | ||
13873 | ||
13874 | ||
13875 | # | |
13876 | # Check to make sure the PIC flag actually works. | |
13877 | # | |
13878 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
13879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
13880 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
d0ac1c44 | 13881 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
3cb62297 L |
13882 | $as_echo_n "(cached) " >&6 |
13883 | else | |
13884 | lt_cv_prog_compiler_pic_works_CXX=no | |
13885 | ac_outfile=conftest.$ac_objext | |
13886 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13887 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
13888 | # Insert the option either (1) after the last *FLAGS variable, or | |
13889 | # (2) before a word containing "conftest.", or (3) at the end. | |
13890 | # Note that $ac_compile itself does not contain backslashes and begins | |
13891 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13892 | # The option is referenced via a variable to avoid confusing sed. | |
13893 | lt_compile=`echo "$ac_compile" | $SED \ | |
13894 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13895 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13896 | -e 's:$: $lt_compiler_flag:'` | |
13897 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
13898 | (eval "$lt_compile" 2>conftest.err) | |
13899 | ac_status=$? | |
13900 | cat conftest.err >&5 | |
13901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13902 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
13903 | # The compiler can only warn and ignore the option if not recognized | |
13904 | # So say no if there are warnings other than the usual output. | |
13905 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
13906 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13907 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
13908 | lt_cv_prog_compiler_pic_works_CXX=yes | |
13909 | fi | |
13910 | fi | |
13911 | $RM conftest* | |
13912 | ||
13913 | fi | |
13914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
13915 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
13916 | ||
13917 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
13918 | case $lt_prog_compiler_pic_CXX in | |
13919 | "" | " "*) ;; | |
13920 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
13921 | esac | |
13922 | else | |
13923 | lt_prog_compiler_pic_CXX= | |
13924 | lt_prog_compiler_can_build_shared_CXX=no | |
13925 | fi | |
13926 | ||
13927 | fi | |
13928 | ||
13929 | ||
13930 | ||
13931 | # | |
13932 | # Check to make sure the static flag actually works. | |
13933 | # | |
13934 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
13935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
13936 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
d0ac1c44 | 13937 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
3cb62297 L |
13938 | $as_echo_n "(cached) " >&6 |
13939 | else | |
13940 | lt_cv_prog_compiler_static_works_CXX=no | |
13941 | save_LDFLAGS="$LDFLAGS" | |
13942 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13943 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
13944 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13945 | # The linker can only warn and ignore the option if not recognized | |
13946 | # So say no if there are warnings | |
13947 | if test -s conftest.err; then | |
13948 | # Append any errors to the config.log. | |
13949 | cat conftest.err 1>&5 | |
13950 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
13951 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13952 | if diff conftest.exp conftest.er2 >/dev/null; then | |
13953 | lt_cv_prog_compiler_static_works_CXX=yes | |
13954 | fi | |
13955 | else | |
13956 | lt_cv_prog_compiler_static_works_CXX=yes | |
13957 | fi | |
13958 | fi | |
13959 | $RM -r conftest* | |
13960 | LDFLAGS="$save_LDFLAGS" | |
13961 | ||
13962 | fi | |
13963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
13964 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
13965 | ||
13966 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
13967 | : | |
13968 | else | |
13969 | lt_prog_compiler_static_CXX= | |
13970 | fi | |
13971 | ||
13972 | ||
13973 | ||
13974 | ||
13975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13976 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 13977 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
3cb62297 L |
13978 | $as_echo_n "(cached) " >&6 |
13979 | else | |
13980 | lt_cv_prog_compiler_c_o_CXX=no | |
13981 | $RM -r conftest 2>/dev/null | |
13982 | mkdir conftest | |
13983 | cd conftest | |
13984 | mkdir out | |
13985 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13986 | ||
13987 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13988 | # Insert the option either (1) after the last *FLAGS variable, or | |
13989 | # (2) before a word containing "conftest.", or (3) at the end. | |
13990 | # Note that $ac_compile itself does not contain backslashes and begins | |
13991 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13992 | lt_compile=`echo "$ac_compile" | $SED \ | |
13993 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13994 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13995 | -e 's:$: $lt_compiler_flag:'` | |
13996 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
13997 | (eval "$lt_compile" 2>out/conftest.err) | |
13998 | ac_status=$? | |
13999 | cat out/conftest.err >&5 | |
14000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14001 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14002 | then | |
14003 | # The compiler can only warn and ignore the option if not recognized | |
14004 | # So say no if there are warnings | |
14005 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14006 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14007 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14008 | lt_cv_prog_compiler_c_o_CXX=yes | |
14009 | fi | |
14010 | fi | |
14011 | chmod u+w . 2>&5 | |
14012 | $RM conftest* | |
14013 | # SGI C++ compiler will create directory out/ii_files/ for | |
14014 | # template instantiation | |
14015 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14016 | $RM out/* && rmdir out | |
14017 | cd .. | |
14018 | $RM -r conftest | |
14019 | $RM conftest* | |
14020 | ||
14021 | fi | |
14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14023 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14024 | ||
14025 | ||
14026 | ||
14027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14028 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 14029 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
3cb62297 L |
14030 | $as_echo_n "(cached) " >&6 |
14031 | else | |
14032 | lt_cv_prog_compiler_c_o_CXX=no | |
14033 | $RM -r conftest 2>/dev/null | |
14034 | mkdir conftest | |
14035 | cd conftest | |
14036 | mkdir out | |
14037 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14038 | ||
14039 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14040 | # Insert the option either (1) after the last *FLAGS variable, or | |
14041 | # (2) before a word containing "conftest.", or (3) at the end. | |
14042 | # Note that $ac_compile itself does not contain backslashes and begins | |
14043 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14044 | lt_compile=`echo "$ac_compile" | $SED \ | |
14045 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14046 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14047 | -e 's:$: $lt_compiler_flag:'` | |
14048 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14049 | (eval "$lt_compile" 2>out/conftest.err) | |
14050 | ac_status=$? | |
14051 | cat out/conftest.err >&5 | |
14052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14053 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14054 | then | |
14055 | # The compiler can only warn and ignore the option if not recognized | |
14056 | # So say no if there are warnings | |
14057 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14058 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14059 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14060 | lt_cv_prog_compiler_c_o_CXX=yes | |
14061 | fi | |
14062 | fi | |
14063 | chmod u+w . 2>&5 | |
14064 | $RM conftest* | |
14065 | # SGI C++ compiler will create directory out/ii_files/ for | |
14066 | # template instantiation | |
14067 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14068 | $RM out/* && rmdir out | |
14069 | cd .. | |
14070 | $RM -r conftest | |
14071 | $RM conftest* | |
14072 | ||
14073 | fi | |
14074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14075 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14076 | ||
14077 | ||
14078 | ||
14079 | ||
14080 | hard_links="nottested" | |
14081 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
14082 | # do not overwrite the value of need_locks provided by the user | |
14083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
14084 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
14085 | hard_links=yes | |
14086 | $RM conftest* | |
14087 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14088 | touch conftest.a | |
14089 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14090 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
14092 | $as_echo "$hard_links" >&6; } | |
14093 | if test "$hard_links" = no; then | |
14094 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14095 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14096 | need_locks=warn | |
14097 | fi | |
14098 | else | |
14099 | need_locks=no | |
14100 | fi | |
14101 | ||
14102 | ||
14103 | ||
14104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14105 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
14106 | ||
14107 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14108 | case $host_os in | |
14109 | aix[4-9]*) | |
14110 | # If we're using GNU nm, then we don't want the "-C" option. | |
14111 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14112 | # Also, AIX nm treats weak defined symbols like other global defined | |
14113 | # symbols, whereas GNU nm marks them as "W". | |
14114 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
14115 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
14116 | else | |
5c14705f | 14117 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
3cb62297 L |
14118 | fi |
14119 | ;; | |
14120 | pw32*) | |
14121 | export_symbols_cmds_CXX="$ltdll_cmds" | |
14122 | ;; | |
14123 | cygwin* | mingw* | cegcc*) | |
14124 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
14125 | ;; | |
14126 | *) | |
14127 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14128 | ;; | |
14129 | esac | |
14130 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
14131 | ||
14132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
14133 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14134 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14135 | ||
14136 | with_gnu_ld_CXX=$with_gnu_ld | |
14137 | ||
14138 | ||
14139 | ||
14140 | ||
14141 | ||
14142 | ||
14143 | # | |
14144 | # Do we need to explicitly link libc? | |
14145 | # | |
14146 | case "x$archive_cmds_need_lc_CXX" in | |
14147 | x|xyes) | |
14148 | # Assume -lc should be added | |
14149 | archive_cmds_need_lc_CXX=yes | |
14150 | ||
14151 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14152 | case $archive_cmds_CXX in | |
14153 | *'~'*) | |
14154 | # FIXME: we may have to deal with multi-command sequences. | |
14155 | ;; | |
14156 | '$CC '*) | |
14157 | # Test whether the compiler implicitly links with -lc since on some | |
14158 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14159 | # to ld, don't add -lc before -lgcc. | |
14160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
14161 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
d0ac1c44 | 14162 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
3cb62297 L |
14163 | $as_echo_n "(cached) " >&6 |
14164 | else | |
14165 | $RM conftest* | |
14166 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14167 | ||
14168 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
14169 | (eval $ac_compile) 2>&5 | |
14170 | ac_status=$? | |
14171 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14172 | test $ac_status = 0; } 2>conftest.err; then | |
14173 | soname=conftest | |
14174 | lib=conftest | |
14175 | libobjs=conftest.$ac_objext | |
14176 | deplibs= | |
14177 | wl=$lt_prog_compiler_wl_CXX | |
14178 | pic_flag=$lt_prog_compiler_pic_CXX | |
14179 | compiler_flags=-v | |
14180 | linker_flags=-v | |
14181 | verstring= | |
14182 | output_objdir=. | |
14183 | libname=conftest | |
14184 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14185 | allow_undefined_flag_CXX= | |
14186 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
14187 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14188 | ac_status=$? | |
14189 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14190 | test $ac_status = 0; } | |
14191 | then | |
14192 | lt_cv_archive_cmds_need_lc_CXX=no | |
14193 | else | |
14194 | lt_cv_archive_cmds_need_lc_CXX=yes | |
14195 | fi | |
14196 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14197 | else | |
14198 | cat conftest.err 1>&5 | |
14199 | fi | |
14200 | $RM conftest* | |
14201 | ||
14202 | fi | |
14203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
14204 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
14205 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
14206 | ;; | |
14207 | esac | |
14208 | fi | |
14209 | ;; | |
14210 | esac | |
14211 | ||
14212 | ||
14213 | ||
14214 | ||
14215 | ||
14216 | ||
14217 | ||
14218 | ||
14219 | ||
14220 | ||
14221 | ||
14222 | ||
14223 | ||
14224 | ||
14225 | ||
14226 | ||
14227 | ||
14228 | ||
14229 | ||
14230 | ||
14231 | ||
14232 | ||
14233 | ||
14234 | ||
14235 | ||
14236 | ||
14237 | ||
14238 | ||
14239 | ||
14240 | ||
14241 | ||
14242 | ||
14243 | ||
14244 | ||
14245 | ||
14246 | ||
14247 | ||
14248 | ||
14249 | ||
14250 | ||
14251 | ||
14252 | ||
14253 | ||
14254 | ||
14255 | ||
14256 | ||
14257 | ||
14258 | ||
14259 | ||
14260 | ||
14261 | ||
14262 | ||
14263 | ||
14264 | ||
14265 | ||
14266 | ||
14267 | ||
14268 | ||
14269 | ||
14270 | ||
14271 | ||
14272 | ||
14273 | ||
14274 | ||
14275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
14276 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
14277 | ||
14278 | library_names_spec= | |
14279 | libname_spec='lib$name' | |
14280 | soname_spec= | |
14281 | shrext_cmds=".so" | |
14282 | postinstall_cmds= | |
14283 | postuninstall_cmds= | |
14284 | finish_cmds= | |
14285 | finish_eval= | |
14286 | shlibpath_var= | |
14287 | shlibpath_overrides_runpath=unknown | |
14288 | version_type=none | |
14289 | dynamic_linker="$host_os ld.so" | |
14290 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14291 | need_lib_prefix=unknown | |
14292 | hardcode_into_libs=no | |
14293 | ||
14294 | # when you set need_version to no, make sure it does not cause -set_version | |
14295 | # flags to be left without arguments | |
14296 | need_version=unknown | |
14297 | ||
14298 | case $host_os in | |
14299 | aix3*) | |
14300 | version_type=linux | |
14301 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14302 | shlibpath_var=LIBPATH | |
14303 | ||
14304 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14305 | soname_spec='${libname}${release}${shared_ext}$major' | |
14306 | ;; | |
14307 | ||
14308 | aix[4-9]*) | |
14309 | version_type=linux | |
14310 | need_lib_prefix=no | |
14311 | need_version=no | |
14312 | hardcode_into_libs=yes | |
14313 | if test "$host_cpu" = ia64; then | |
14314 | # AIX 5 supports IA64 | |
14315 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14316 | shlibpath_var=LD_LIBRARY_PATH | |
14317 | else | |
14318 | # With GCC up to 2.95.x, collect2 would create an import file | |
14319 | # for dependence libraries. The import file would start with | |
14320 | # the line `#! .'. This would cause the generated library to | |
14321 | # depend on `.', always an invalid library. This was fixed in | |
14322 | # development snapshots of GCC prior to 3.0. | |
14323 | case $host_os in | |
14324 | aix4 | aix4.[01] | aix4.[01].*) | |
14325 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14326 | echo ' yes ' | |
14327 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
14328 | : | |
14329 | else | |
14330 | can_build_shared=no | |
14331 | fi | |
14332 | ;; | |
14333 | esac | |
14334 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14335 | # soname into executable. Probably we can add versioning support to | |
14336 | # collect2, so additional links can be useful in future. | |
14337 | if test "$aix_use_runtimelinking" = yes; then | |
14338 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14339 | # instead of lib<name>.a to let people know that these are not | |
14340 | # typical AIX shared libraries. | |
14341 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14342 | else | |
14343 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14344 | # and later when we are not doing run time linking. | |
14345 | library_names_spec='${libname}${release}.a $libname.a' | |
14346 | soname_spec='${libname}${release}${shared_ext}$major' | |
14347 | fi | |
14348 | shlibpath_var=LIBPATH | |
14349 | fi | |
14350 | ;; | |
14351 | ||
14352 | amigaos*) | |
14353 | case $host_cpu in | |
14354 | powerpc) | |
14355 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
14356 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
14357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14358 | ;; | |
14359 | m68k) | |
14360 | library_names_spec='$libname.ixlibrary $libname.a' | |
14361 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14362 | 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' | |
14363 | ;; | |
14364 | esac | |
14365 | ;; | |
14366 | ||
14367 | beos*) | |
14368 | library_names_spec='${libname}${shared_ext}' | |
14369 | dynamic_linker="$host_os ld.so" | |
14370 | shlibpath_var=LIBRARY_PATH | |
14371 | ;; | |
14372 | ||
14373 | bsdi[45]*) | |
14374 | version_type=linux | |
14375 | need_version=no | |
14376 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14377 | soname_spec='${libname}${release}${shared_ext}$major' | |
14378 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14379 | shlibpath_var=LD_LIBRARY_PATH | |
14380 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14381 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14382 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14383 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14384 | # libtool to hard-code these into programs | |
14385 | ;; | |
14386 | ||
14387 | cygwin* | mingw* | pw32* | cegcc*) | |
14388 | version_type=windows | |
14389 | shrext_cmds=".dll" | |
14390 | need_version=no | |
14391 | need_lib_prefix=no | |
14392 | ||
14393 | case $GCC,$host_os in | |
14394 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
14395 | library_names_spec='$libname.dll.a' | |
14396 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14397 | postinstall_cmds='base_file=`basename \${file}`~ | |
14398 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14399 | dldir=$destdir/`dirname \$dlpath`~ | |
14400 | test -d \$dldir || mkdir -p \$dldir~ | |
14401 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14402 | chmod a+x \$dldir/$dlname~ | |
14403 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
14404 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
14405 | fi' | |
14406 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14407 | dlpath=$dir/\$dldll~ | |
14408 | $RM \$dlpath' | |
14409 | shlibpath_overrides_runpath=yes | |
14410 | ||
14411 | case $host_os in | |
14412 | cygwin*) | |
14413 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14414 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14415 | ||
14416 | ;; | |
14417 | mingw* | cegcc*) | |
14418 | # MinGW DLLs use traditional 'lib' prefix | |
14419 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14420 | ;; | |
14421 | pw32*) | |
14422 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14423 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14424 | ;; | |
14425 | esac | |
14426 | ;; | |
14427 | ||
14428 | *) | |
14429 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14430 | ;; | |
14431 | esac | |
14432 | dynamic_linker='Win32 ld.exe' | |
14433 | # FIXME: first we should search . and the directory the executable is in | |
14434 | shlibpath_var=PATH | |
14435 | ;; | |
14436 | ||
14437 | darwin* | rhapsody*) | |
14438 | dynamic_linker="$host_os dyld" | |
14439 | version_type=darwin | |
14440 | need_lib_prefix=no | |
14441 | need_version=no | |
14442 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14443 | soname_spec='${libname}${release}${major}$shared_ext' | |
14444 | shlibpath_overrides_runpath=yes | |
14445 | shlibpath_var=DYLD_LIBRARY_PATH | |
14446 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14447 | ||
14448 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14449 | ;; | |
14450 | ||
14451 | dgux*) | |
14452 | version_type=linux | |
14453 | need_lib_prefix=no | |
14454 | need_version=no | |
14455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14456 | soname_spec='${libname}${release}${shared_ext}$major' | |
14457 | shlibpath_var=LD_LIBRARY_PATH | |
14458 | ;; | |
14459 | ||
3cb62297 L |
14460 | freebsd* | dragonfly*) |
14461 | # DragonFly does not have aout. When/if they implement a new | |
14462 | # versioning mechanism, adjust this. | |
14463 | if test -x /usr/bin/objformat; then | |
14464 | objformat=`/usr/bin/objformat` | |
14465 | else | |
14466 | case $host_os in | |
6d2920c8 | 14467 | freebsd[23].*) objformat=aout ;; |
3cb62297 L |
14468 | *) objformat=elf ;; |
14469 | esac | |
14470 | fi | |
14471 | version_type=freebsd-$objformat | |
14472 | case $version_type in | |
14473 | freebsd-elf*) | |
14474 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14475 | need_version=no | |
14476 | need_lib_prefix=no | |
14477 | ;; | |
14478 | freebsd-*) | |
14479 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14480 | need_version=yes | |
14481 | ;; | |
14482 | esac | |
14483 | shlibpath_var=LD_LIBRARY_PATH | |
14484 | case $host_os in | |
6d2920c8 | 14485 | freebsd2.*) |
3cb62297 L |
14486 | shlibpath_overrides_runpath=yes |
14487 | ;; | |
14488 | freebsd3.[01]* | freebsdelf3.[01]*) | |
14489 | shlibpath_overrides_runpath=yes | |
14490 | hardcode_into_libs=yes | |
14491 | ;; | |
14492 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14493 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14494 | shlibpath_overrides_runpath=no | |
14495 | hardcode_into_libs=yes | |
14496 | ;; | |
14497 | *) # from 4.6 on, and DragonFly | |
14498 | shlibpath_overrides_runpath=yes | |
14499 | hardcode_into_libs=yes | |
14500 | ;; | |
14501 | esac | |
14502 | ;; | |
14503 | ||
3cb62297 L |
14504 | haiku*) |
14505 | version_type=linux | |
14506 | need_lib_prefix=no | |
14507 | need_version=no | |
14508 | dynamic_linker="$host_os runtime_loader" | |
14509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14510 | soname_spec='${libname}${release}${shared_ext}$major' | |
14511 | shlibpath_var=LIBRARY_PATH | |
14512 | shlibpath_overrides_runpath=yes | |
d85e70a3 | 14513 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
3cb62297 L |
14514 | hardcode_into_libs=yes |
14515 | ;; | |
14516 | ||
14517 | hpux9* | hpux10* | hpux11*) | |
14518 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
14519 | # link against other versions. | |
14520 | version_type=sunos | |
14521 | need_lib_prefix=no | |
14522 | need_version=no | |
14523 | case $host_cpu in | |
14524 | ia64*) | |
14525 | shrext_cmds='.so' | |
14526 | hardcode_into_libs=yes | |
14527 | dynamic_linker="$host_os dld.so" | |
14528 | shlibpath_var=LD_LIBRARY_PATH | |
14529 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14530 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14531 | soname_spec='${libname}${release}${shared_ext}$major' | |
14532 | if test "X$HPUX_IA64_MODE" = X32; then | |
14533 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14534 | else | |
14535 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14536 | fi | |
14537 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14538 | ;; | |
14539 | hppa*64*) | |
14540 | shrext_cmds='.sl' | |
14541 | hardcode_into_libs=yes | |
14542 | dynamic_linker="$host_os dld.sl" | |
14543 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14544 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14545 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14546 | soname_spec='${libname}${release}${shared_ext}$major' | |
14547 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14548 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14549 | ;; | |
14550 | *) | |
14551 | shrext_cmds='.sl' | |
14552 | dynamic_linker="$host_os dld.sl" | |
14553 | shlibpath_var=SHLIB_PATH | |
14554 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14556 | soname_spec='${libname}${release}${shared_ext}$major' | |
14557 | ;; | |
14558 | esac | |
14559 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
14560 | postinstall_cmds='chmod 555 $lib' | |
14561 | # or fails outright, so override atomically: | |
14562 | install_override_mode=555 | |
14563 | ;; | |
14564 | ||
14565 | interix[3-9]*) | |
14566 | version_type=linux | |
14567 | need_lib_prefix=no | |
14568 | need_version=no | |
14569 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14570 | soname_spec='${libname}${release}${shared_ext}$major' | |
14571 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14572 | shlibpath_var=LD_LIBRARY_PATH | |
14573 | shlibpath_overrides_runpath=no | |
14574 | hardcode_into_libs=yes | |
14575 | ;; | |
14576 | ||
14577 | irix5* | irix6* | nonstopux*) | |
14578 | case $host_os in | |
14579 | nonstopux*) version_type=nonstopux ;; | |
14580 | *) | |
14581 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
14582 | version_type=linux | |
14583 | else | |
14584 | version_type=irix | |
14585 | fi ;; | |
14586 | esac | |
14587 | need_lib_prefix=no | |
14588 | need_version=no | |
14589 | soname_spec='${libname}${release}${shared_ext}$major' | |
14590 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14591 | case $host_os in | |
14592 | irix5* | nonstopux*) | |
14593 | libsuff= shlibsuff= | |
14594 | ;; | |
14595 | *) | |
14596 | case $LD in # libtool.m4 will add one of these switches to LD | |
14597 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14598 | libsuff= shlibsuff= libmagic=32-bit;; | |
14599 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14600 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14601 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14602 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14603 | *) libsuff= shlibsuff= libmagic=never-match;; | |
14604 | esac | |
14605 | ;; | |
14606 | esac | |
14607 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14608 | shlibpath_overrides_runpath=no | |
14609 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
14610 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14611 | hardcode_into_libs=yes | |
14612 | ;; | |
14613 | ||
14614 | # No shared lib support for Linux oldld, aout, or coff. | |
14615 | linux*oldld* | linux*aout* | linux*coff*) | |
14616 | dynamic_linker=no | |
14617 | ;; | |
14618 | ||
14619 | # This must be Linux ELF. | |
6a6859cb AM |
14620 | |
14621 | # uclinux* changes (here and below) have been submitted to the libtool | |
14622 | # project, but have not yet been accepted: they are GCC-local changes | |
14623 | # for the time being. (See | |
14624 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
14625 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) | |
3cb62297 L |
14626 | version_type=linux |
14627 | need_lib_prefix=no | |
14628 | need_version=no | |
14629 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14630 | soname_spec='${libname}${release}${shared_ext}$major' | |
14631 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
14632 | shlibpath_var=LD_LIBRARY_PATH | |
14633 | shlibpath_overrides_runpath=no | |
14634 | ||
14635 | # Some binutils ld are patched to set DT_RUNPATH | |
d0ac1c44 | 14636 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
3cb62297 L |
14637 | $as_echo_n "(cached) " >&6 |
14638 | else | |
14639 | lt_cv_shlibpath_overrides_runpath=no | |
14640 | save_LDFLAGS=$LDFLAGS | |
14641 | save_libdir=$libdir | |
14642 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
14643 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
14644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14645 | /* end confdefs.h. */ | |
14646 | ||
14647 | int | |
14648 | main () | |
14649 | { | |
14650 | ||
14651 | ; | |
14652 | return 0; | |
14653 | } | |
14654 | _ACEOF | |
14655 | if ac_fn_cxx_try_link "$LINENO"; then : | |
14656 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
14657 | lt_cv_shlibpath_overrides_runpath=yes | |
14658 | fi | |
14659 | fi | |
14660 | rm -f core conftest.err conftest.$ac_objext \ | |
14661 | conftest$ac_exeext conftest.$ac_ext | |
14662 | LDFLAGS=$save_LDFLAGS | |
14663 | libdir=$save_libdir | |
14664 | ||
14665 | fi | |
14666 | ||
14667 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
14668 | ||
14669 | # This implies no fast_install, which is unacceptable. | |
14670 | # Some rework will be needed to allow for fast_install | |
14671 | # before this can be enabled. | |
14672 | hardcode_into_libs=yes | |
14673 | ||
14674 | # Append ld.so.conf contents to the search path | |
14675 | if test -f /etc/ld.so.conf; then | |
14676 | 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' ' '` | |
14677 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
14678 | fi | |
14679 | ||
14680 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
14681 | # powerpc, because MkLinux only supported shared libraries with the | |
14682 | # GNU dynamic linker. Since this was broken with cross compilers, | |
14683 | # most powerpc-linux boxes support dynamic linking these days and | |
14684 | # people can always --disable-shared, the test was removed, and we | |
14685 | # assume the GNU/Linux dynamic linker is in use. | |
14686 | dynamic_linker='GNU/Linux ld.so' | |
14687 | ;; | |
14688 | ||
14689 | netbsd*) | |
14690 | version_type=sunos | |
14691 | need_lib_prefix=no | |
14692 | need_version=no | |
14693 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14695 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14696 | dynamic_linker='NetBSD (a.out) ld.so' | |
14697 | else | |
14698 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14699 | soname_spec='${libname}${release}${shared_ext}$major' | |
14700 | dynamic_linker='NetBSD ld.elf_so' | |
14701 | fi | |
14702 | shlibpath_var=LD_LIBRARY_PATH | |
14703 | shlibpath_overrides_runpath=yes | |
14704 | hardcode_into_libs=yes | |
14705 | ;; | |
14706 | ||
14707 | newsos6) | |
14708 | version_type=linux | |
14709 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14710 | shlibpath_var=LD_LIBRARY_PATH | |
14711 | shlibpath_overrides_runpath=yes | |
14712 | ;; | |
14713 | ||
14714 | *nto* | *qnx*) | |
14715 | version_type=qnx | |
14716 | need_lib_prefix=no | |
14717 | need_version=no | |
14718 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14719 | soname_spec='${libname}${release}${shared_ext}$major' | |
14720 | shlibpath_var=LD_LIBRARY_PATH | |
14721 | shlibpath_overrides_runpath=no | |
14722 | hardcode_into_libs=yes | |
14723 | dynamic_linker='ldqnx.so' | |
14724 | ;; | |
14725 | ||
14726 | openbsd*) | |
14727 | version_type=sunos | |
14728 | sys_lib_dlsearch_path_spec="/usr/lib" | |
14729 | need_lib_prefix=no | |
14730 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
14731 | case $host_os in | |
14732 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
14733 | *) need_version=no ;; | |
14734 | esac | |
14735 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14736 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14737 | shlibpath_var=LD_LIBRARY_PATH | |
14738 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14739 | case $host_os in | |
14740 | openbsd2.[89] | openbsd2.[89].*) | |
14741 | shlibpath_overrides_runpath=no | |
14742 | ;; | |
14743 | *) | |
14744 | shlibpath_overrides_runpath=yes | |
14745 | ;; | |
14746 | esac | |
14747 | else | |
14748 | shlibpath_overrides_runpath=yes | |
14749 | fi | |
14750 | ;; | |
14751 | ||
14752 | os2*) | |
14753 | libname_spec='$name' | |
14754 | shrext_cmds=".dll" | |
14755 | need_lib_prefix=no | |
14756 | library_names_spec='$libname${shared_ext} $libname.a' | |
14757 | dynamic_linker='OS/2 ld.exe' | |
14758 | shlibpath_var=LIBPATH | |
14759 | ;; | |
14760 | ||
14761 | osf3* | osf4* | osf5*) | |
14762 | version_type=osf | |
14763 | need_lib_prefix=no | |
14764 | need_version=no | |
14765 | soname_spec='${libname}${release}${shared_ext}$major' | |
14766 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14767 | shlibpath_var=LD_LIBRARY_PATH | |
14768 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
14769 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
14770 | ;; | |
14771 | ||
14772 | rdos*) | |
14773 | dynamic_linker=no | |
14774 | ;; | |
14775 | ||
14776 | solaris*) | |
14777 | version_type=linux | |
14778 | need_lib_prefix=no | |
14779 | need_version=no | |
14780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14781 | soname_spec='${libname}${release}${shared_ext}$major' | |
14782 | shlibpath_var=LD_LIBRARY_PATH | |
14783 | shlibpath_overrides_runpath=yes | |
14784 | hardcode_into_libs=yes | |
14785 | # ldd complains unless libraries are executable | |
14786 | postinstall_cmds='chmod +x $lib' | |
14787 | ;; | |
14788 | ||
14789 | sunos4*) | |
14790 | version_type=sunos | |
14791 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14792 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
14793 | shlibpath_var=LD_LIBRARY_PATH | |
14794 | shlibpath_overrides_runpath=yes | |
14795 | if test "$with_gnu_ld" = yes; then | |
14796 | need_lib_prefix=no | |
14797 | fi | |
14798 | need_version=yes | |
14799 | ;; | |
14800 | ||
14801 | sysv4 | sysv4.3*) | |
14802 | version_type=linux | |
14803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14804 | soname_spec='${libname}${release}${shared_ext}$major' | |
14805 | shlibpath_var=LD_LIBRARY_PATH | |
14806 | case $host_vendor in | |
14807 | sni) | |
14808 | shlibpath_overrides_runpath=no | |
14809 | need_lib_prefix=no | |
14810 | runpath_var=LD_RUN_PATH | |
14811 | ;; | |
14812 | siemens) | |
14813 | need_lib_prefix=no | |
14814 | ;; | |
14815 | motorola) | |
14816 | need_lib_prefix=no | |
14817 | need_version=no | |
14818 | shlibpath_overrides_runpath=no | |
14819 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14820 | ;; | |
14821 | esac | |
14822 | ;; | |
14823 | ||
14824 | sysv4*MP*) | |
14825 | if test -d /usr/nec ;then | |
14826 | version_type=linux | |
14827 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
14828 | soname_spec='$libname${shared_ext}.$major' | |
14829 | shlibpath_var=LD_LIBRARY_PATH | |
14830 | fi | |
14831 | ;; | |
14832 | ||
14833 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
14834 | version_type=freebsd-elf | |
14835 | need_lib_prefix=no | |
14836 | need_version=no | |
14837 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14838 | soname_spec='${libname}${release}${shared_ext}$major' | |
14839 | shlibpath_var=LD_LIBRARY_PATH | |
14840 | shlibpath_overrides_runpath=yes | |
14841 | hardcode_into_libs=yes | |
14842 | if test "$with_gnu_ld" = yes; then | |
14843 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
14844 | else | |
14845 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
14846 | case $host_os in | |
14847 | sco3.2v5*) | |
14848 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
14849 | ;; | |
14850 | esac | |
14851 | fi | |
14852 | sys_lib_dlsearch_path_spec='/usr/lib' | |
14853 | ;; | |
14854 | ||
14855 | tpf*) | |
14856 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
14857 | version_type=linux | |
14858 | need_lib_prefix=no | |
14859 | need_version=no | |
14860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14861 | shlibpath_var=LD_LIBRARY_PATH | |
14862 | shlibpath_overrides_runpath=no | |
14863 | hardcode_into_libs=yes | |
14864 | ;; | |
14865 | ||
14866 | uts4*) | |
14867 | version_type=linux | |
14868 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14869 | soname_spec='${libname}${release}${shared_ext}$major' | |
14870 | shlibpath_var=LD_LIBRARY_PATH | |
14871 | ;; | |
14872 | ||
6a6859cb AM |
14873 | # Shared libraries for VwWorks, >= 7 only at this stage |
14874 | # and (fpic) still incompatible with "large" code models | |
14875 | # in a few configurations. Only for RTP mode in any case, | |
14876 | # and upon explicit request at configure time. | |
14877 | vxworks7*) | |
14878 | dynamic_linker=no | |
14879 | case ${with_multisubdir}-${enable_shared} in | |
14880 | *large*) | |
14881 | ;; | |
14882 | *mrtp*-yes) | |
14883 | version_type=linux | |
14884 | need_lib_prefix=no | |
14885 | need_version=no | |
14886 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14887 | soname_spec='${libname}${release}${shared_ext}$major' | |
14888 | dynamic_linker="$host_os module_loader" | |
14889 | ;; | |
14890 | esac | |
14891 | ;; | |
3cb62297 L |
14892 | *) |
14893 | dynamic_linker=no | |
14894 | ;; | |
14895 | esac | |
14896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
14897 | $as_echo "$dynamic_linker" >&6; } | |
14898 | test "$dynamic_linker" = no && can_build_shared=no | |
14899 | ||
14900 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
14901 | if test "$GCC" = yes; then | |
14902 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
14903 | fi | |
14904 | ||
14905 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
14906 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
14907 | fi | |
14908 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
14909 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
14910 | fi | |
14911 | ||
3725885a | 14912 | |
ce2cded5 | 14913 | |
ce2cded5 | 14914 | |
ce2cded5 | 14915 | |
d7040cdb | 14916 | |
ce2cded5 | 14917 | |
ce2cded5 | 14918 | |
ce2cded5 | 14919 | |
d7040cdb | 14920 | |
ce2cded5 L |
14921 | |
14922 | ||
14923 | ||
14924 | ||
14925 | ||
14926 | ||
14927 | ||
14928 | ||
14929 | ||
14930 | ||
14931 | ||
14932 | ||
14933 | ||
14934 | ||
14935 | ||
14936 | ||
ce2cded5 L |
14937 | |
14938 | ||
14939 | ||
14940 | ||
14941 | ||
14942 | ||
14943 | ||
14944 | ||
14945 | ||
14946 | ||
14947 | ||
14948 | ||
b879806f AM |
14949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
14950 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
14951 | hardcode_action_CXX= | |
14952 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
14953 | test -n "$runpath_var_CXX" || | |
14954 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
14955 | ||
14956 | # We can hardcode non-existent directories. | |
14957 | if test "$hardcode_direct_CXX" != no && | |
14958 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14959 | # have to relink, otherwise we might link with an installed library | |
14960 | # when we should be linking with a yet-to-be-installed one | |
14961 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
14962 | test "$hardcode_minus_L_CXX" != no; then | |
14963 | # Linking always hardcodes the temporary library directory. | |
14964 | hardcode_action_CXX=relink | |
14965 | else | |
14966 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14967 | hardcode_action_CXX=immediate | |
14968 | fi | |
14969 | else | |
14970 | # We cannot hardcode anything, or else we can only hardcode existing | |
14971 | # directories. | |
14972 | hardcode_action_CXX=unsupported | |
14973 | fi | |
14974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
14975 | $as_echo "$hardcode_action_CXX" >&6; } | |
14976 | ||
14977 | if test "$hardcode_action_CXX" = relink || | |
14978 | test "$inherit_rpath_CXX" = yes; then | |
14979 | # Fast installation is not supported | |
14980 | enable_fast_install=no | |
14981 | elif test "$shlibpath_overrides_runpath" = yes || | |
14982 | test "$enable_shared" = no; then | |
14983 | # Fast installation is not necessary | |
14984 | enable_fast_install=needless | |
14985 | fi | |
14986 | ||
14987 | ||
14988 | ||
14989 | ||
14990 | ||
14991 | ||
14992 | ||
14993 | fi # test -n "$compiler" | |
14994 | ||
14995 | CC=$lt_save_CC | |
14996 | LDCXX=$LD | |
14997 | LD=$lt_save_LD | |
14998 | GCC=$lt_save_GCC | |
14999 | with_gnu_ld=$lt_save_with_gnu_ld | |
15000 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
15001 | lt_cv_path_LD=$lt_save_path_LD | |
15002 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15003 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15004 | fi # test "$_lt_caught_CXX_error" != yes | |
15005 | ||
15006 | ac_ext=c | |
15007 | ac_cpp='$CPP $CPPFLAGS' | |
15008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15011 | ||
15012 | ||
15013 | ||
15014 | ||
15015 | ||
15016 | ||
15017 | ||
15018 | ||
15019 | ||
15020 | ||
15021 | ||
15022 | ||
15023 | ||
15024 | ac_config_commands="$ac_config_commands libtool" | |
15025 | ||
15026 | ||
15027 | ||
15028 | ||
15029 | # Only expand once: | |
15030 | ||
15031 | ||
15032 | ||
15033 | # The tests for host and target for $enable_largefile require | |
15034 | # canonical names. | |
15035 | ||
15036 | ||
15037 | ||
15038 | # As the $enable_largefile decision depends on --enable-plugins we must set it | |
15039 | # even in directories otherwise not depending on the $plugins option. | |
15040 | ||
15041 | ||
15042 | maybe_plugins=no | |
15043 | for ac_header in dlfcn.h | |
15044 | do : | |
15045 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
15046 | " | |
d0ac1c44 | 15047 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
b879806f AM |
15048 | cat >>confdefs.h <<_ACEOF |
15049 | #define HAVE_DLFCN_H 1 | |
15050 | _ACEOF | |
15051 | maybe_plugins=yes | |
15052 | fi | |
15053 | ||
15054 | done | |
15055 | ||
15056 | for ac_header in windows.h | |
15057 | do : | |
15058 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default | |
15059 | " | |
d0ac1c44 | 15060 | if test "x$ac_cv_header_windows_h" = xyes; then : |
b879806f AM |
15061 | cat >>confdefs.h <<_ACEOF |
15062 | #define HAVE_WINDOWS_H 1 | |
15063 | _ACEOF | |
15064 | maybe_plugins=yes | |
15065 | fi | |
15066 | ||
15067 | done | |
15068 | ||
15069 | ||
15070 | # Check whether --enable-plugins was given. | |
15071 | if test "${enable_plugins+set}" = set; then : | |
15072 | enableval=$enable_plugins; case "${enableval}" in | |
15073 | no) plugins=no ;; | |
15074 | *) plugins=yes | |
15075 | if test "$maybe_plugins" != "yes" ; then | |
d0ac1c44 | 15076 | as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 |
b879806f AM |
15077 | fi ;; |
15078 | esac | |
15079 | else | |
15080 | plugins=$maybe_plugins | |
15081 | ||
15082 | fi | |
15083 | ||
2974be62 | 15084 | if test "$plugins" = "yes"; then |
3cba8b6c L |
15085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 |
15086 | $as_echo_n "checking for library containing dlsym... " >&6; } | |
d0ac1c44 | 15087 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
15088 | $as_echo_n "(cached) " >&6 |
15089 | else | |
15090 | ac_func_search_save_LIBS=$LIBS | |
15091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15092 | /* end confdefs.h. */ | |
15093 | ||
15094 | /* Override any GCC internal prototype to avoid an error. | |
15095 | Use char because int might match the return type of a GCC | |
15096 | builtin and then its argument prototype would still apply. */ | |
15097 | #ifdef __cplusplus | |
15098 | extern "C" | |
15099 | #endif | |
3cba8b6c | 15100 | char dlsym (); |
2974be62 AM |
15101 | int |
15102 | main () | |
15103 | { | |
3cba8b6c | 15104 | return dlsym (); |
2974be62 AM |
15105 | ; |
15106 | return 0; | |
15107 | } | |
15108 | _ACEOF | |
15109 | for ac_lib in '' dl; do | |
15110 | if test -z "$ac_lib"; then | |
15111 | ac_res="none required" | |
15112 | else | |
15113 | ac_res=-l$ac_lib | |
15114 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15115 | fi | |
15116 | if ac_fn_c_try_link "$LINENO"; then : | |
3cba8b6c | 15117 | ac_cv_search_dlsym=$ac_res |
2974be62 AM |
15118 | fi |
15119 | rm -f core conftest.err conftest.$ac_objext \ | |
15120 | conftest$ac_exeext | |
d0ac1c44 | 15121 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
15122 | break |
15123 | fi | |
15124 | done | |
d0ac1c44 | 15125 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
15126 | |
15127 | else | |
3cba8b6c | 15128 | ac_cv_search_dlsym=no |
2974be62 AM |
15129 | fi |
15130 | rm conftest.$ac_ext | |
15131 | LIBS=$ac_func_search_save_LIBS | |
15132 | fi | |
3cba8b6c L |
15133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 |
15134 | $as_echo "$ac_cv_search_dlsym" >&6; } | |
15135 | ac_res=$ac_cv_search_dlsym | |
2974be62 AM |
15136 | if test "$ac_res" != no; then : |
15137 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15138 | ||
15139 | fi | |
15140 | ||
15141 | fi | |
b879806f AM |
15142 | |
15143 | ||
15144 | case "${host}" in | |
c8693053 RO |
15145 | sparc-*-solaris*|i?86-*-solaris*) |
15146 | # On native 32-bit Solaris/SPARC and x86, large-file and procfs support | |
15147 | # were mutually exclusive until Solaris 11.3. Without procfs support, | |
15148 | # the bfd/ elf module cannot provide certain routines such as | |
15149 | # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user | |
15150 | # explicitly requested large-file support through the | |
15151 | # --enable-largefile switch, disable large-file support in favor of | |
15152 | # procfs support. | |
15153 | # | |
15154 | # Check if <sys/procfs.h> is incompatible with large-file support. | |
15155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15156 | /* end confdefs.h. */ | |
15157 | #define _FILE_OFFSET_BITS 64 | |
15158 | #define _STRUCTURED_PROC 1 | |
15159 | #include <sys/procfs.h> | |
15160 | int | |
15161 | main () | |
15162 | { | |
15163 | ||
15164 | ; | |
15165 | return 0; | |
15166 | } | |
15167 | _ACEOF | |
15168 | if ac_fn_c_try_compile "$LINENO"; then : | |
15169 | acx_cv_procfs_lfs=yes | |
15170 | else | |
15171 | acx_cv_procfs_lfs=no | |
15172 | fi | |
15173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15174 | # | |
15175 | # Forcefully disable large-file support only if necessary, gdb is in | |
15176 | # tree and enabled. | |
15177 | if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \ | |
15178 | -a -d $srcdir/../gdb -a "$enable_gdb" != no; then | |
15179 | : ${enable_largefile="no"} | |
15180 | if test "$plugins" = yes; then | |
15181 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
15182 | plugin support disabled; require large-file support which is incompatible with GDB." >&5 | |
15183 | $as_echo "$as_me: WARNING: | |
15184 | plugin support disabled; require large-file support which is incompatible with GDB." >&2;} | |
15185 | plugins=no | |
15186 | fi | |
15187 | fi | |
15188 | # | |
15189 | # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the | |
15190 | # benefit of g++ 9+ which predefines it on Solaris. | |
15191 | if test "$enable_largefile" = no; then | |
15192 | LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS" | |
15193 | ||
15194 | fi | |
b879806f AM |
15195 | ;; |
15196 | esac | |
15197 | ||
15198 | # Check whether --enable-largefile was given. | |
15199 | if test "${enable_largefile+set}" = set; then : | |
15200 | enableval=$enable_largefile; | |
15201 | fi | |
15202 | ||
15203 | if test "$enable_largefile" != no; then | |
15204 | ||
15205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
15206 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
d0ac1c44 | 15207 | if ${ac_cv_sys_largefile_CC+:} false; then : |
b879806f AM |
15208 | $as_echo_n "(cached) " >&6 |
15209 | else | |
15210 | ac_cv_sys_largefile_CC=no | |
15211 | if test "$GCC" != yes; then | |
15212 | ac_save_CC=$CC | |
15213 | while :; do | |
15214 | # IRIX 6.2 and later do not support large files by default, | |
15215 | # so use the C compiler's -n32 option if that helps. | |
15216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15217 | /* end confdefs.h. */ | |
15218 | #include <sys/types.h> | |
15219 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15220 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15221 | since some C++ compilers masquerading as C compilers | |
15222 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 15223 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
15224 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
15225 | && LARGE_OFF_T % 2147483647 == 1) | |
15226 | ? 1 : -1]; | |
15227 | int | |
15228 | main () | |
15229 | { | |
15230 | ||
15231 | ; | |
15232 | return 0; | |
15233 | } | |
15234 | _ACEOF | |
15235 | if ac_fn_c_try_compile "$LINENO"; then : | |
15236 | break | |
15237 | fi | |
15238 | rm -f core conftest.err conftest.$ac_objext | |
15239 | CC="$CC -n32" | |
15240 | if ac_fn_c_try_compile "$LINENO"; then : | |
15241 | ac_cv_sys_largefile_CC=' -n32'; break | |
15242 | fi | |
15243 | rm -f core conftest.err conftest.$ac_objext | |
15244 | break | |
15245 | done | |
15246 | CC=$ac_save_CC | |
15247 | rm -f conftest.$ac_ext | |
15248 | fi | |
15249 | fi | |
15250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
15251 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
15252 | if test "$ac_cv_sys_largefile_CC" != no; then | |
15253 | CC=$CC$ac_cv_sys_largefile_CC | |
15254 | fi | |
15255 | ||
15256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
15257 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
d0ac1c44 | 15258 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
b879806f AM |
15259 | $as_echo_n "(cached) " >&6 |
15260 | else | |
15261 | while :; do | |
15262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15263 | /* end confdefs.h. */ | |
15264 | #include <sys/types.h> | |
15265 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15266 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15267 | since some C++ compilers masquerading as C compilers | |
15268 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 15269 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
15270 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
15271 | && LARGE_OFF_T % 2147483647 == 1) | |
15272 | ? 1 : -1]; | |
15273 | int | |
15274 | main () | |
15275 | { | |
15276 | ||
15277 | ; | |
15278 | return 0; | |
15279 | } | |
15280 | _ACEOF | |
15281 | if ac_fn_c_try_compile "$LINENO"; then : | |
15282 | ac_cv_sys_file_offset_bits=no; break | |
15283 | fi | |
15284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15286 | /* end confdefs.h. */ | |
15287 | #define _FILE_OFFSET_BITS 64 | |
15288 | #include <sys/types.h> | |
15289 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15290 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15291 | since some C++ compilers masquerading as C compilers | |
15292 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 15293 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
15294 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
15295 | && LARGE_OFF_T % 2147483647 == 1) | |
15296 | ? 1 : -1]; | |
15297 | int | |
15298 | main () | |
15299 | { | |
15300 | ||
15301 | ; | |
15302 | return 0; | |
15303 | } | |
15304 | _ACEOF | |
15305 | if ac_fn_c_try_compile "$LINENO"; then : | |
15306 | ac_cv_sys_file_offset_bits=64; break | |
15307 | fi | |
15308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15309 | ac_cv_sys_file_offset_bits=unknown | |
15310 | break | |
15311 | done | |
15312 | fi | |
15313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
15314 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
15315 | case $ac_cv_sys_file_offset_bits in #( | |
15316 | no | unknown) ;; | |
15317 | *) | |
15318 | cat >>confdefs.h <<_ACEOF | |
15319 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
15320 | _ACEOF | |
15321 | ;; | |
15322 | esac | |
15323 | rm -rf conftest* | |
15324 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
15325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
15326 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
d0ac1c44 | 15327 | if ${ac_cv_sys_large_files+:} false; then : |
b879806f AM |
15328 | $as_echo_n "(cached) " >&6 |
15329 | else | |
15330 | while :; do | |
15331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15332 | /* end confdefs.h. */ | |
15333 | #include <sys/types.h> | |
15334 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15335 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15336 | since some C++ compilers masquerading as C compilers | |
15337 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 15338 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
15339 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
15340 | && LARGE_OFF_T % 2147483647 == 1) | |
15341 | ? 1 : -1]; | |
15342 | int | |
15343 | main () | |
15344 | { | |
15345 | ||
15346 | ; | |
15347 | return 0; | |
15348 | } | |
15349 | _ACEOF | |
15350 | if ac_fn_c_try_compile "$LINENO"; then : | |
15351 | ac_cv_sys_large_files=no; break | |
15352 | fi | |
15353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15355 | /* end confdefs.h. */ | |
15356 | #define _LARGE_FILES 1 | |
15357 | #include <sys/types.h> | |
15358 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15359 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15360 | since some C++ compilers masquerading as C compilers | |
15361 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 15362 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
15363 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
15364 | && LARGE_OFF_T % 2147483647 == 1) | |
15365 | ? 1 : -1]; | |
15366 | int | |
15367 | main () | |
15368 | { | |
15369 | ||
15370 | ; | |
15371 | return 0; | |
15372 | } | |
15373 | _ACEOF | |
15374 | if ac_fn_c_try_compile "$LINENO"; then : | |
15375 | ac_cv_sys_large_files=1; break | |
15376 | fi | |
15377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15378 | ac_cv_sys_large_files=unknown | |
15379 | break | |
15380 | done | |
15381 | fi | |
15382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
15383 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
15384 | case $ac_cv_sys_large_files in #( | |
15385 | no | unknown) ;; | |
15386 | *) | |
15387 | cat >>confdefs.h <<_ACEOF | |
15388 | #define _LARGE_FILES $ac_cv_sys_large_files | |
15389 | _ACEOF | |
15390 | ;; | |
15391 | esac | |
15392 | rm -rf conftest* | |
15393 | fi | |
d0ac1c44 SM |
15394 | |
15395 | ||
b879806f AM |
15396 | fi |
15397 | ||
15398 | ||
15399 | ||
43e05cd4 AM |
15400 | ac_checking= |
15401 | . ${srcdir}/../bfd/development.sh | |
15402 | test "$development" = true && ac_checking=yes | |
15403 | # Check whether --enable-checking was given. | |
15404 | if test "${enable_checking+set}" = set; then : | |
15405 | enableval=$enable_checking; case "${enableval}" in | |
15406 | no|none) ac_checking= ;; | |
15407 | *) ac_checking=yes ;; | |
15408 | esac | |
15409 | fi | |
15410 | if test x$ac_checking != x ; then | |
15411 | ||
15412 | $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h | |
15413 | ||
15414 | fi | |
15415 | ||
b879806f AM |
15416 | |
15417 | # Check whether --with-lib-path was given. | |
15418 | if test "${with_lib_path+set}" = set; then : | |
15419 | withval=$with_lib_path; LIB_PATH=$withval | |
15420 | fi | |
15421 | ||
15422 | # Check whether --enable-targets was given. | |
15423 | if test "${enable_targets+set}" = set; then : | |
15424 | enableval=$enable_targets; case "${enableval}" in | |
d0ac1c44 | 15425 | yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 |
6c19b93b | 15426 | ;; |
b879806f AM |
15427 | no) enable_targets= ;; |
15428 | *) enable_targets=$enableval ;; | |
15429 | esac | |
15430 | fi | |
1d5269c9 | 15431 | |
b879806f AM |
15432 | # Check whether --enable-64-bit-bfd was given. |
15433 | if test "${enable_64_bit_bfd+set}" = set; then : | |
1d5269c9 MF |
15434 | enableval=$enable_64_bit_bfd; case $enableval in #( |
15435 | yes|no) : | |
15436 | ;; #( | |
15437 | *) : | |
15438 | as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #( | |
15439 | *) : | |
15440 | ;; | |
b879806f AM |
15441 | esac |
15442 | else | |
1d5269c9 MF |
15443 | enable_64_bit_bfd=no |
15444 | fi | |
15445 | ||
15446 | ||
15447 | if test "x$enable_64_bit_bfd" = "xno"; then : | |
15448 | # The cast to long int works around a bug in the HP C Compiler | |
15449 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15450 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15451 | # This bug is HP SR number 8606223364. | |
15452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
15453 | $as_echo_n "checking size of void *... " >&6; } | |
15454 | if ${ac_cv_sizeof_void_p+:} false; then : | |
15455 | $as_echo_n "(cached) " >&6 | |
15456 | else | |
15457 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
15458 | ||
15459 | else | |
15460 | if test "$ac_cv_type_void_p" = yes; then | |
15461 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15462 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15463 | as_fn_error 77 "cannot compute sizeof (void *) | |
15464 | See \`config.log' for more details" "$LINENO" 5; } | |
15465 | else | |
15466 | ac_cv_sizeof_void_p=0 | |
15467 | fi | |
15468 | fi | |
15469 | ||
15470 | fi | |
15471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
15472 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
15473 | ||
15474 | ||
15475 | ||
15476 | cat >>confdefs.h <<_ACEOF | |
15477 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15478 | _ACEOF | |
15479 | ||
15480 | ||
15481 | if test "x$ac_cv_sizeof_void_p" = "x8"; then : | |
15482 | enable_64_bit_bfd=yes | |
b879806f AM |
15483 | fi |
15484 | ||
1d5269c9 MF |
15485 | fi |
15486 | ||
15487 | if test "x$enable_64_bit_bfd" = "xyes"; then | |
15488 | ENABLE_BFD_64_BIT_TRUE= | |
15489 | ENABLE_BFD_64_BIT_FALSE='#' | |
15490 | else | |
15491 | ENABLE_BFD_64_BIT_TRUE='#' | |
15492 | ENABLE_BFD_64_BIT_FALSE= | |
15493 | fi | |
15494 | ||
15495 | ||
15496 | ||
b879806f AM |
15497 | |
15498 | # Check whether --with-sysroot was given. | |
15499 | if test "${with_sysroot+set}" = set; then : | |
15500 | withval=$with_sysroot; | |
15501 | case ${with_sysroot} in | |
15502 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; | |
15503 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; | |
15504 | esac | |
15505 | ||
15506 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
15507 | use_sysroot=yes | |
15508 | ||
15509 | if test "x$prefix" = xNONE; then | |
15510 | test_prefix=/usr/local | |
15511 | else | |
15512 | test_prefix=$prefix | |
15513 | fi | |
15514 | if test "x$exec_prefix" = xNONE; then | |
15515 | test_exec_prefix=$test_prefix | |
15516 | else | |
15517 | test_exec_prefix=$exec_prefix | |
15518 | fi | |
15519 | case ${TARGET_SYSTEM_ROOT} in | |
15520 | "${test_prefix}"|"${test_prefix}/"*|\ | |
15521 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ | |
15522 | '${prefix}'|'${prefix}/'*|\ | |
15523 | '${exec_prefix}'|'${exec_prefix}/'*) | |
15524 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" | |
15525 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
15526 | ;; | |
15527 | esac | |
15528 | ||
15529 | else | |
15530 | ||
15531 | use_sysroot=no | |
15532 | TARGET_SYSTEM_ROOT= | |
15533 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
15534 | ||
15535 | fi | |
15536 | ||
15537 | ||
15538 | ||
15539 | ||
15540 | ||
15541 | # Check whether --enable-gold was given. | |
15542 | if test "${enable_gold+set}" = set; then : | |
15543 | enableval=$enable_gold; case "${enableval}" in | |
15544 | default) | |
15545 | install_as_default=no | |
15546 | installed_linker=ld.bfd | |
15547 | ;; | |
15548 | yes|no) | |
15549 | install_as_default=yes | |
15550 | installed_linker=ld.bfd | |
15551 | ;; | |
15552 | *) | |
d0ac1c44 | 15553 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
b879806f AM |
15554 | ;; |
15555 | esac | |
15556 | else | |
15557 | install_as_default=yes | |
15558 | installed_linker=ld.bfd | |
15559 | fi | |
15560 | ||
15561 | ||
15562 | ||
15563 | ||
15564 | # Check whether --enable-got was given. | |
15565 | if test "${enable_got+set}" = set; then : | |
15566 | enableval=$enable_got; case "${enableval}" in | |
15567 | target | single | negative | multigot) got_handling=$enableval ;; | |
d0ac1c44 | 15568 | *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;; |
b879806f AM |
15569 | esac |
15570 | else | |
15571 | got_handling=target | |
15572 | fi | |
15573 | ||
15574 | ||
15575 | case "${got_handling}" in | |
15576 | target) | |
15577 | ||
15578 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h | |
15579 | ;; | |
15580 | single) | |
15581 | ||
15582 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h | |
15583 | ;; | |
15584 | negative) | |
15585 | ||
15586 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h | |
15587 | ;; | |
15588 | multigot) | |
15589 | ||
15590 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h | |
15591 | ;; | |
d0ac1c44 | 15592 | *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;; |
b879806f AM |
15593 | esac |
15594 | ||
6c3bc0f8 NC |
15595 | # PR gas/19109 |
15596 | # Decide the default method for compressing debug sections. | |
15597 | ac_default_compressed_debug_sections=unset | |
15598 | # Provide a configure time option to override our default. | |
15599 | # Check whether --enable-compressed_debug_sections was given. | |
15600 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
4894d80b | 15601 | enableval=$enable_compressed_debug_sections; case ,"${enableval}", in |
9b4c123c | 15602 | ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;; |
4894d80b | 15603 | ,no, | ,none,) ac_default_compressed_debug_sections=no ;; |
6c3bc0f8 NC |
15604 | esac |
15605 | fi | |
15606 | ||
b0c295e1 ML |
15607 | # Select default compression algorithm. |
15608 | ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_GABI_ZLIB | |
15609 | # Check whether --enable-default_compressed_debug_sections_algorithm was given. | |
15610 | if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then : | |
15611 | enableval=$enable_default_compressed_debug_sections_algorithm; case "${enableval}" in | |
15612 | zstd) ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_ZSTD ;; | |
15613 | esac | |
15614 | fi | |
15615 | ||
6734f10a SB |
15616 | # Decide setting DT_RUNPATH instead of DT_RPATH by default |
15617 | ac_default_new_dtags=unset | |
15618 | # Provide a configure time option to override our default. | |
15619 | # Check whether --enable-new_dtags was given. | |
15620 | if test "${enable_new_dtags+set}" = set; then : | |
15621 | enableval=$enable_new_dtags; case "${enableval}" in | |
15622 | yes) ac_default_new_dtags=1 ;; | |
15623 | no) ac_default_new_dtags=0 ;; | |
15624 | esac | |
15625 | fi | |
15626 | ||
647e4d46 L |
15627 | # Decide if -z relro should be enabled in ELF linker by default. |
15628 | ac_default_ld_z_relro=unset | |
15629 | # Provide a configure time option to override our default. | |
15630 | # Check whether --enable-relro was given. | |
15631 | if test "${enable_relro+set}" = set; then : | |
15632 | enableval=$enable_relro; case "${enableval}" in | |
15633 | yes) ac_default_ld_z_relro=1 ;; | |
15634 | no) ac_default_ld_z_relro=0 ;; | |
15635 | esac | |
15636 | fi | |
15637 | ||
b32632c4 L |
15638 | # Decide if DT_TEXTREL check should be enabled in ELF linker. |
15639 | ac_default_ld_textrel_check=unset | |
15640 | # Check whether --enable-textrel-check was given. | |
15641 | if test "${enable_textrel_check+set}" = set; then : | |
15642 | enableval=$enable_textrel_check; case "${enableval}" in | |
15643 | yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;; | |
15644 | esac | |
15645 | fi | |
15646 | ||
15647 | ||
f6aec96d L |
15648 | # Decide if -z separate-code should be enabled in ELF linker by default. |
15649 | ac_default_ld_z_separate_code=unset | |
15650 | # Check whether --enable-separate-code was given. | |
15651 | if test "${enable_separate_code+set}" = set; then : | |
15652 | enableval=$enable_separate_code; case "${enableval}" in | |
15653 | yes) ac_default_ld_z_separate_code=1 ;; | |
15654 | no) ac_default_ld_z_separate_code=0 ;; | |
15655 | esac | |
15656 | fi | |
15657 | ||
15658 | ||
ba951afb | 15659 | |
bd7d326d AM |
15660 | # By default warn when an executable stack is created due to object files |
15661 | # requesting such, not when the user specifies -z execstack. | |
ed1c7ad8 | 15662 | ac_default_ld_warn_execstack=2 |
ba951afb NC |
15663 | # Check whether --enable-warn-execstack was given. |
15664 | if test "${enable_warn_execstack+set}" = set; then : | |
15665 | enableval=$enable_warn_execstack; case "${enableval}" in | |
15666 | yes) ac_default_ld_warn_execstack=1 ;; | |
bd7d326d | 15667 | no) ac_default_ld_warn_execstack=0 ;; |
ba951afb NC |
15668 | esac |
15669 | fi | |
15670 | ||
15671 | ||
15672 | ac_default_ld_warn_rwx_segments=unset | |
15673 | # Check whether --enable-warn-rwx-segments was given. | |
15674 | if test "${enable_warn_rwx_segments+set}" = set; then : | |
15675 | enableval=$enable_warn_rwx_segments; case "${enableval}" in | |
15676 | yes) ac_default_ld_warn_rwx_segments=1 ;; | |
15677 | no) ac_default_ld_warn_rwx_segments=0 ;; | |
15678 | esac | |
15679 | fi | |
15680 | ||
15681 | ||
15682 | ac_default_ld_default_execstack=unset | |
15683 | # Check whether --enable-default-execstack was given. | |
15684 | if test "${enable_default_execstack+set}" = set; then : | |
15685 | enableval=$enable_default_execstack; case "${enableval}" in | |
15686 | yes) ac_default_ld_default_execstack=1 ;; | |
15687 | no) ac_default_ld_default_execstack=0 ;; | |
15688 | esac | |
15689 | fi | |
15690 | ||
15691 | ||
15692 | ||
23ae20f5 NC |
15693 | # Decide if --error-handling-script should be supported. |
15694 | ac_support_error_handling_script=unset | |
15695 | # Check whether --enable-error-handling-script was given. | |
15696 | if test "${enable_error_handling_script+set}" = set; then : | |
15697 | enableval=$enable_error_handling_script; case "${enableval}" in | |
15698 | yes) ac_support_error_handling_script=1 ;; | |
15699 | no) ac_support_error_handling_script=0 ;; | |
15700 | esac | |
15701 | fi | |
15702 | ||
15703 | ||
2760f24c RG |
15704 | # Decide which "--hash-style" to use by default |
15705 | # Provide a configure time option to override our default. | |
15706 | # Check whether --enable-default-hash-style was given. | |
15707 | if test "${enable_default_hash_style+set}" = set; then : | |
15708 | enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in | |
15709 | sysv | gnu | both) ;; | |
d0ac1c44 | 15710 | *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;; |
2760f24c RG |
15711 | esac |
15712 | else | |
15713 | case "${target}" in | |
15714 | # Enable gnu hash only on GNU targets, but not mips | |
15715 | mips*-*-*) enable_default_hash_style=sysv ;; | |
15716 | *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;; | |
15717 | *) enable_default_hash_style=sysv ;; | |
15718 | esac | |
15719 | fi | |
15720 | ||
15721 | ||
15722 | case "${enable_default_hash_style}" in | |
15723 | sysv | both) ac_default_emit_sysv_hash=1 ;; | |
15724 | *) ac_default_emit_sysv_hash=0 ;; | |
15725 | esac | |
15726 | ||
15727 | case "${enable_default_hash_style}" in | |
15728 | gnu | both) ac_default_emit_gnu_hash=1 ;; | |
15729 | *) ac_default_emit_gnu_hash=0 ;; | |
15730 | esac | |
15731 | ||
c774eab1 AM |
15732 | # Check whether --enable-initfini-array was given. |
15733 | if test "${enable_initfini_array+set}" = set; then : | |
15734 | enableval=$enable_initfini_array; case "${enableval}" in | |
15735 | yes|no) ;; | |
15736 | *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;; | |
15737 | esac | |
15738 | else | |
15739 | enable_initfini_array=yes | |
15740 | fi | |
15741 | ||
15742 | ||
15743 | if test $enable_initfini_array = yes; then | |
15744 | ||
15745 | $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h | |
15746 | ||
15747 | fi | |
15748 | ||
094e34f2 NA |
15749 | # Check whether --enable-libctf was given. |
15750 | if test "${enable_libctf+set}" = set; then : | |
15751 | enableval=$enable_libctf; | |
15752 | case "$enableval" in | |
15753 | yes|no) ;; | |
15754 | *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;; | |
15755 | esac | |
15756 | ||
15757 | else | |
15758 | enable_libctf=yes | |
15759 | fi | |
15760 | ||
15761 | ||
15762 | if test "${enable_libctf}" = yes; then | |
15763 | ||
15764 | $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h | |
15765 | ||
15766 | fi | |
15767 | if test "${enable_libctf}" = yes; then | |
15768 | ENABLE_LIBCTF_TRUE= | |
15769 | ENABLE_LIBCTF_FALSE='#' | |
15770 | else | |
15771 | ENABLE_LIBCTF_TRUE='#' | |
15772 | ENABLE_LIBCTF_FALSE= | |
15773 | fi | |
15774 | ||
15775 | ||
b879806f | 15776 | |
9e2bb0cb LB |
15777 | # Used to validate --package-metadata= input. Disabled by default. |
15778 | # Check whether --enable-jansson was given. | |
15779 | if test "${enable_jansson+set}" = set; then : | |
15780 | enableval=$enable_jansson; enable_jansson=$enableval | |
15781 | else | |
15782 | enable_jansson="no" | |
15783 | fi | |
15784 | ||
15785 | ||
544c5619 | 15786 | if test "x$enable_jansson" != "xno"; then : |
9e2bb0cb LB |
15787 | |
15788 | pkg_failed=no | |
15789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5 | |
15790 | $as_echo_n "checking for jansson... " >&6; } | |
15791 | ||
15792 | if test -n "$JANSSON_CFLAGS"; then | |
15793 | pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS" | |
15794 | elif test -n "$PKG_CONFIG"; then | |
15795 | if test -n "$PKG_CONFIG" && \ | |
15796 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5 | |
15797 | ($PKG_CONFIG --exists --print-errors "jansson") 2>&5 | |
15798 | ac_status=$? | |
15799 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15800 | test $ac_status = 0; }; then | |
15801 | pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null` | |
15802 | test "x$?" != "x0" && pkg_failed=yes | |
15803 | else | |
15804 | pkg_failed=yes | |
15805 | fi | |
15806 | else | |
15807 | pkg_failed=untried | |
15808 | fi | |
15809 | if test -n "$JANSSON_LIBS"; then | |
15810 | pkg_cv_JANSSON_LIBS="$JANSSON_LIBS" | |
15811 | elif test -n "$PKG_CONFIG"; then | |
15812 | if test -n "$PKG_CONFIG" && \ | |
15813 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5 | |
15814 | ($PKG_CONFIG --exists --print-errors "jansson") 2>&5 | |
15815 | ac_status=$? | |
15816 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15817 | test $ac_status = 0; }; then | |
15818 | pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null` | |
15819 | test "x$?" != "x0" && pkg_failed=yes | |
15820 | else | |
15821 | pkg_failed=yes | |
15822 | fi | |
15823 | else | |
15824 | pkg_failed=untried | |
15825 | fi | |
15826 | ||
15827 | if test $pkg_failed = no; then | |
15828 | pkg_save_LDFLAGS="$LDFLAGS" | |
15829 | LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS" | |
15830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15831 | /* end confdefs.h. */ | |
15832 | ||
15833 | int | |
15834 | main () | |
15835 | { | |
15836 | ||
15837 | ; | |
15838 | return 0; | |
15839 | } | |
15840 | _ACEOF | |
15841 | if ac_fn_c_try_link "$LINENO"; then : | |
15842 | ||
15843 | else | |
15844 | pkg_failed=yes | |
15845 | fi | |
15846 | rm -f core conftest.err conftest.$ac_objext \ | |
15847 | conftest$ac_exeext conftest.$ac_ext | |
15848 | LDFLAGS=$pkg_save_LDFLAGS | |
15849 | fi | |
15850 | ||
15851 | ||
15852 | ||
15853 | if test $pkg_failed = yes; then | |
15854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15855 | $as_echo "no" >&6; } | |
15856 | ||
15857 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15858 | _pkg_short_errors_supported=yes | |
15859 | else | |
15860 | _pkg_short_errors_supported=no | |
15861 | fi | |
15862 | if test $_pkg_short_errors_supported = yes; then | |
15863 | JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1` | |
15864 | else | |
15865 | JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1` | |
15866 | fi | |
15867 | # Put the nasty error message in config.log where it belongs | |
15868 | echo "$JANSSON_PKG_ERRORS" >&5 | |
15869 | ||
544c5619 | 15870 | as_fn_error $? "Cannot find jansson library" "$LINENO" 5 |
9e2bb0cb LB |
15871 | elif test $pkg_failed = untried; then |
15872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15873 | $as_echo "no" >&6; } | |
544c5619 | 15874 | as_fn_error $? "Cannot find jansson library" "$LINENO" 5 |
9e2bb0cb LB |
15875 | else |
15876 | JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS | |
15877 | JANSSON_LIBS=$pkg_cv_JANSSON_LIBS | |
15878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15879 | $as_echo "yes" >&6; } | |
15880 | ||
15881 | ||
15882 | $as_echo "#define HAVE_JANSSON 1" >>confdefs.h | |
15883 | ||
15884 | ||
15885 | ||
15886 | ||
15887 | fi | |
15888 | ||
9e2bb0cb LB |
15889 | fi |
15890 | ||
7cdfc346 | 15891 | |
b879806f AM |
15892 | # Set the 'development' global. |
15893 | . $srcdir/../bfd/development.sh | |
15894 | ||
c5da1932 VZ |
15895 | # Set acp_cpp_for_build variable |
15896 | ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" | |
15897 | ||
9780e045 | 15898 | # Default set of GCC warnings to enable. |
b879806f | 15899 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
c5da1932 | 15900 | GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
9780e045 NC |
15901 | |
15902 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
b879806f AM |
15903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15904 | /* end confdefs.h. */ | |
15905 | __GNUC__ | |
15906 | _ACEOF | |
15907 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 15908 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
ce2cded5 | 15909 | |
3cb62297 | 15910 | else |
b879806f | 15911 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" |
3cb62297 | 15912 | fi |
b879806f | 15913 | rm -f conftest* |
ce2cded5 | 15914 | |
ce2cded5 | 15915 | |
9780e045 NC |
15916 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. |
15917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15918 | /* end confdefs.h. */ | |
15919 | __GNUC__ | |
15920 | _ACEOF | |
15921 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 15922 | $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : |
9780e045 NC |
15923 | |
15924 | else | |
491cf317 TO |
15925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15926 | /* end confdefs.h. */ | |
15927 | __clang__ | |
15928 | _ACEOF | |
15929 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15930 | $EGREP "^__clang__$" >/dev/null 2>&1; then : | |
9780e045 NC |
15931 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" |
15932 | fi | |
15933 | rm -f conftest* | |
15934 | ||
491cf317 TO |
15935 | fi |
15936 | rm -f conftest* | |
15937 | ||
9780e045 | 15938 | |
6757cf57 TS |
15939 | # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. |
15940 | WARN_WRITE_STRINGS="" | |
15941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15942 | /* end confdefs.h. */ | |
15943 | __GNUC__ | |
15944 | _ACEOF | |
15945 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 15946 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
6757cf57 TS |
15947 | |
15948 | else | |
15949 | WARN_WRITE_STRINGS="-Wwrite-strings" | |
15950 | fi | |
15951 | rm -f conftest* | |
15952 | ||
9780e045 | 15953 | |
96fe4562 | 15954 | # Verify CC_FOR_BUILD to be compatible with warning flags |
c5da1932 VZ |
15955 | |
15956 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
15957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15958 | /* end confdefs.h. */ | |
15959 | __GNUC__ | |
15960 | _ACEOF | |
15961 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
3107326d | 15962 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
c5da1932 VZ |
15963 | |
15964 | else | |
15965 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" | |
15966 | fi | |
15967 | rm -f conftest* | |
15968 | ||
15969 | ||
15970 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. | |
15971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15972 | /* end confdefs.h. */ | |
15973 | __GNUC__ | |
15974 | _ACEOF | |
15975 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
3107326d | 15976 | $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : |
c5da1932 VZ |
15977 | |
15978 | else | |
491cf317 TO |
15979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15980 | /* end confdefs.h. */ | |
15981 | __clang__ | |
15982 | _ACEOF | |
15983 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
15984 | $EGREP "^__clang__$" >/dev/null 2>&1; then : | |
c5da1932 VZ |
15985 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" |
15986 | fi | |
15987 | rm -f conftest* | |
15988 | ||
491cf317 TO |
15989 | fi |
15990 | rm -f conftest* | |
15991 | ||
c5da1932 | 15992 | |
b879806f AM |
15993 | # Check whether --enable-werror was given. |
15994 | if test "${enable_werror+set}" = set; then : | |
15995 | enableval=$enable_werror; case "${enableval}" in | |
15996 | yes | y) ERROR_ON_WARNING="yes" ;; | |
15997 | no | n) ERROR_ON_WARNING="no" ;; | |
d0ac1c44 | 15998 | *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
b879806f AM |
15999 | esac |
16000 | fi | |
ce2cded5 L |
16001 | |
16002 | ||
b879806f AM |
16003 | # Disable -Wformat by default when using gcc on mingw |
16004 | case "${host}" in | |
16005 | *-*-mingw32*) | |
16006 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
16007 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
c5da1932 | 16008 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" |
b879806f AM |
16009 | fi |
16010 | ;; | |
16011 | *) ;; | |
16012 | esac | |
ce2cded5 | 16013 | |
b879806f AM |
16014 | # Enable -Werror by default when using gcc. Turn it off for releases. |
16015 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then | |
16016 | ERROR_ON_WARNING=yes | |
16017 | fi | |
d7040cdb | 16018 | |
b879806f AM |
16019 | NO_WERROR= |
16020 | if test "${ERROR_ON_WARNING}" = yes ; then | |
9780e045 | 16021 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
c5da1932 | 16022 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" |
b879806f AM |
16023 | NO_WERROR="-Wno-error" |
16024 | fi | |
3cb62297 | 16025 | |
b879806f AM |
16026 | if test "${GCC}" = yes ; then |
16027 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
c5da1932 | 16028 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" |
b879806f | 16029 | fi |
67310ccd | 16030 | |
b879806f AM |
16031 | # Check whether --enable-build-warnings was given. |
16032 | if test "${enable_build_warnings+set}" = set; then : | |
16033 | enableval=$enable_build_warnings; case "${enableval}" in | |
c5da1932 VZ |
16034 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" |
16035 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
b879806f AM |
16036 | no) if test "${GCC}" = yes ; then |
16037 | WARN_CFLAGS="-w" | |
c5da1932 | 16038 | WARN_CFLAGS_FOR_BUILD="-w" |
b879806f AM |
16039 | fi;; |
16040 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
c5da1932 VZ |
16041 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" |
16042 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; | |
b879806f | 16043 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
c5da1932 VZ |
16044 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" |
16045 | WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
16046 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` | |
16047 | WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
b879806f AM |
16048 | esac |
16049 | fi | |
67310ccd | 16050 | |
d7040cdb | 16051 | |
b879806f AM |
16052 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
16053 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
16054 | fi | |
d7040cdb | 16055 | |
d7040cdb | 16056 | |
d7040cdb | 16057 | |
d7040cdb | 16058 | |
ce2cded5 L |
16059 | |
16060 | ||
6757cf57 | 16061 | |
c5da1932 | 16062 | |
b879806f AM |
16063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
16064 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
d0ac1c44 | 16065 | if ${am_cv_val_LC_MESSAGES+:} false; then : |
b879806f AM |
16066 | $as_echo_n "(cached) " >&6 |
16067 | else | |
16068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16069 | /* end confdefs.h. */ | |
16070 | #include <locale.h> | |
16071 | int | |
16072 | main () | |
16073 | { | |
16074 | return LC_MESSAGES | |
16075 | ; | |
16076 | return 0; | |
16077 | } | |
16078 | _ACEOF | |
16079 | if ac_fn_c_try_link "$LINENO"; then : | |
16080 | am_cv_val_LC_MESSAGES=yes | |
16081 | else | |
16082 | am_cv_val_LC_MESSAGES=no | |
16083 | fi | |
16084 | rm -f core conftest.err conftest.$ac_objext \ | |
16085 | conftest$ac_exeext conftest.$ac_ext | |
16086 | fi | |
16087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 | |
16088 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
16089 | if test $am_cv_val_LC_MESSAGES = yes; then | |
ce2cded5 | 16090 | |
b879806f | 16091 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
ce2cded5 | 16092 | |
b879806f | 16093 | fi |
ce2cded5 | 16094 | |
ce2cded5 | 16095 | |
b879806f | 16096 | ac_config_headers="$ac_config_headers config.h:config.in" |
ce2cded5 L |
16097 | |
16098 | ||
b879806f | 16099 | # PR 14072 |
ce2cded5 | 16100 | |
ce2cded5 | 16101 | |
b879806f | 16102 | if test -z "$target" ; then |
d0ac1c44 | 16103 | as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5 |
b879806f AM |
16104 | fi |
16105 | if test -z "$host" ; then | |
d0ac1c44 | 16106 | as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5 |
b879806f | 16107 | fi |
d7040cdb | 16108 | |
b879806f | 16109 | # host-specific stuff: |
d7040cdb | 16110 | |
e184813f | 16111 | ALL_LINGUAS="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW" |
d7040cdb SE |
16112 | # If we haven't got the data from the intl directory, |
16113 | # assume NLS is disabled. | |
16114 | USE_NLS=no | |
16115 | LIBINTL= | |
16116 | LIBINTL_DEP= | |
16117 | INCINTL= | |
16118 | XGETTEXT= | |
16119 | GMSGFMT= | |
16120 | POSUB= | |
16121 | ||
16122 | if test -f ../intl/config.intl; then | |
16123 | . ../intl/config.intl | |
16124 | fi | |
81ecdfbb RW |
16125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
16126 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 16127 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
16128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16129 | $as_echo "no" >&6; } | |
d7040cdb | 16130 | else |
81ecdfbb RW |
16131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16132 | $as_echo "yes" >&6; } | |
d7040cdb | 16133 | |
81ecdfbb | 16134 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
16135 | |
16136 | ||
81ecdfbb RW |
16137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
16138 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
16139 | # Look for .po and .gmo files in the source directory. |
16140 | CATALOGS= | |
16141 | XLINGUAS= | |
16142 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
16143 | # If there aren't any .gmo files the shell will give us the | |
16144 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
16145 | # weeded out. | |
16146 | case "$cat" in *\**) | |
16147 | continue;; | |
16148 | esac | |
16149 | # The quadruple backslash is collapsed to a double backslash | |
16150 | # by the backticks, then collapsed again by the double quotes, | |
16151 | # leaving us with one backslash in the sed expression (right | |
16152 | # before the dot that mustn't act as a wildcard). | |
16153 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
16154 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
16155 | # The user is allowed to set LINGUAS to a list of languages to | |
16156 | # install catalogs for. If it's empty that means "all of them." | |
16157 | if test "x$LINGUAS" = x; then | |
16158 | CATALOGS="$CATALOGS $cat" | |
16159 | XLINGUAS="$XLINGUAS $lang" | |
16160 | else | |
16161 | case "$LINGUAS" in *$lang*) | |
16162 | CATALOGS="$CATALOGS $cat" | |
16163 | XLINGUAS="$XLINGUAS $lang" | |
16164 | ;; | |
16165 | esac | |
16166 | fi | |
16167 | done | |
16168 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
16169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
16170 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
16171 | |
16172 | ||
16173 | DATADIRNAME=share | |
16174 | ||
16175 | INSTOBJEXT=.mo | |
16176 | ||
16177 | GENCAT=gencat | |
16178 | ||
16179 | CATOBJEXT=.gmo | |
16180 | ||
16181 | fi | |
16182 | ||
16183 | MKINSTALLDIRS= | |
16184 | if test -n "$ac_aux_dir"; then | |
16185 | case "$ac_aux_dir" in | |
16186 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
16187 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
16188 | esac | |
16189 | fi | |
16190 | if test -z "$MKINSTALLDIRS"; then | |
16191 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
16192 | fi | |
16193 | ||
16194 | ||
16195 | ||
81ecdfbb RW |
16196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
16197 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
16198 | # Check whether --enable-nls was given. | |
16199 | if test "${enable_nls+set}" = set; then : | |
16200 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
16201 | else |
16202 | USE_NLS=yes | |
81ecdfbb RW |
16203 | fi |
16204 | ||
16205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
16206 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
16207 | |
16208 | ||
16209 | ||
16210 | ||
16211 | ||
16212 | ||
16213 | # Prepare PATH_SEPARATOR. | |
16214 | # The user is always right. | |
16215 | if test "${PATH_SEPARATOR+set}" != set; then | |
16216 | echo "#! /bin/sh" >conf$$.sh | |
16217 | echo "exit 0" >>conf$$.sh | |
16218 | chmod +x conf$$.sh | |
16219 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
16220 | PATH_SEPARATOR=';' | |
16221 | else | |
16222 | PATH_SEPARATOR=: | |
16223 | fi | |
16224 | rm -f conf$$.sh | |
16225 | fi | |
16226 | ||
16227 | # Find out how to test for executable files. Don't use a zero-byte file, | |
16228 | # as systems may use methods other than mode bits to determine executability. | |
16229 | cat >conf$$.file <<_ASEOF | |
16230 | #! /bin/sh | |
16231 | exit 0 | |
16232 | _ASEOF | |
16233 | chmod +x conf$$.file | |
16234 | if test -x conf$$.file >/dev/null 2>&1; then | |
16235 | ac_executable_p="test -x" | |
16236 | else | |
16237 | ac_executable_p="test -f" | |
16238 | fi | |
16239 | rm -f conf$$.file | |
16240 | ||
16241 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
16242 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
16243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16244 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16245 | if ${ac_cv_path_MSGFMT+:} false; then : |
81ecdfbb | 16246 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
16247 | else |
16248 | case "$MSGFMT" in | |
16249 | [\\/]* | ?:[\\/]*) | |
16250 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
16251 | ;; | |
16252 | *) | |
16253 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
16254 | for ac_dir in $PATH; do | |
16255 | IFS="$ac_save_IFS" | |
16256 | test -z "$ac_dir" && ac_dir=. | |
16257 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16258 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
16259 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
16260 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
16261 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
16262 | break 2 | |
16263 | fi | |
16264 | fi | |
16265 | done | |
16266 | done | |
16267 | IFS="$ac_save_IFS" | |
16268 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
16269 | ;; | |
16270 | esac | |
16271 | fi | |
16272 | MSGFMT="$ac_cv_path_MSGFMT" | |
16273 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
16274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
16275 | $as_echo "$MSGFMT" >&6; } | |
d7040cdb | 16276 | else |
81ecdfbb RW |
16277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16278 | $as_echo "no" >&6; } | |
d7040cdb SE |
16279 | fi |
16280 | ||
16281 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
16282 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
16283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16284 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16285 | if ${ac_cv_path_GMSGFMT+:} false; then : |
81ecdfbb | 16286 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
16287 | else |
16288 | case $GMSGFMT in | |
16289 | [\\/]* | ?:[\\/]*) | |
16290 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
16291 | ;; | |
16292 | *) | |
16293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16294 | for as_dir in $PATH | |
16295 | do | |
16296 | IFS=$as_save_IFS | |
16297 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16298 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16299 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 16300 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 16301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
16302 | break 2 |
16303 | fi | |
16304 | done | |
81ecdfbb RW |
16305 | done |
16306 | IFS=$as_save_IFS | |
d7040cdb SE |
16307 | |
16308 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
16309 | ;; | |
16310 | esac | |
16311 | fi | |
16312 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 16313 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
16314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
16315 | $as_echo "$GMSGFMT" >&6; } | |
d7040cdb | 16316 | else |
81ecdfbb RW |
16317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16318 | $as_echo "no" >&6; } | |
20e95c23 | 16319 | fi |
42ecbf5e | 16320 | |
20e95c23 | 16321 | |
252b5132 | 16322 | |
81ecdfbb | 16323 | |
d7040cdb SE |
16324 | # Prepare PATH_SEPARATOR. |
16325 | # The user is always right. | |
16326 | if test "${PATH_SEPARATOR+set}" != set; then | |
16327 | echo "#! /bin/sh" >conf$$.sh | |
16328 | echo "exit 0" >>conf$$.sh | |
16329 | chmod +x conf$$.sh | |
16330 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
16331 | PATH_SEPARATOR=';' | |
16332 | else | |
16333 | PATH_SEPARATOR=: | |
16334 | fi | |
16335 | rm -f conf$$.sh | |
20e95c23 | 16336 | fi |
252b5132 | 16337 | |
d7040cdb SE |
16338 | # Find out how to test for executable files. Don't use a zero-byte file, |
16339 | # as systems may use methods other than mode bits to determine executability. | |
16340 | cat >conf$$.file <<_ASEOF | |
16341 | #! /bin/sh | |
16342 | exit 0 | |
16343 | _ASEOF | |
16344 | chmod +x conf$$.file | |
16345 | if test -x conf$$.file >/dev/null 2>&1; then | |
16346 | ac_executable_p="test -x" | |
20e95c23 | 16347 | else |
d7040cdb SE |
16348 | ac_executable_p="test -f" |
16349 | fi | |
16350 | rm -f conf$$.file | |
20e95c23 | 16351 | |
d7040cdb SE |
16352 | # Extract the first word of "xgettext", so it can be a program name with args. |
16353 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
16354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16355 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16356 | if ${ac_cv_path_XGETTEXT+:} false; then : |
81ecdfbb | 16357 | $as_echo_n "(cached) " >&6 |
252b5132 | 16358 | else |
d7040cdb SE |
16359 | case "$XGETTEXT" in |
16360 | [\\/]* | ?:[\\/]*) | |
16361 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
16362 | ;; | |
16363 | *) | |
16364 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
16365 | for ac_dir in $PATH; do | |
16366 | IFS="$ac_save_IFS" | |
16367 | test -z "$ac_dir" && ac_dir=. | |
16368 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16369 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
16370 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
16371 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
16372 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
16373 | break 2 | |
16374 | fi | |
16375 | fi | |
16376 | done | |
16377 | done | |
16378 | IFS="$ac_save_IFS" | |
16379 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
16380 | ;; | |
16381 | esac | |
252b5132 | 16382 | fi |
d7040cdb SE |
16383 | XGETTEXT="$ac_cv_path_XGETTEXT" |
16384 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
16385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
16386 | $as_echo "$XGETTEXT" >&6; } | |
d5fbea21 | 16387 | else |
81ecdfbb RW |
16388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16389 | $as_echo "no" >&6; } | |
d5fbea21 DJ |
16390 | fi |
16391 | ||
d7040cdb | 16392 | rm -f messages.po |
d5fbea21 | 16393 | |
20e95c23 | 16394 | |
d7040cdb SE |
16395 | # Prepare PATH_SEPARATOR. |
16396 | # The user is always right. | |
16397 | if test "${PATH_SEPARATOR+set}" != set; then | |
16398 | echo "#! /bin/sh" >conf$$.sh | |
16399 | echo "exit 0" >>conf$$.sh | |
16400 | chmod +x conf$$.sh | |
16401 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
16402 | PATH_SEPARATOR=';' | |
16403 | else | |
16404 | PATH_SEPARATOR=: | |
16405 | fi | |
16406 | rm -f conf$$.sh | |
16407 | fi | |
20e95c23 | 16408 | |
d7040cdb SE |
16409 | # Find out how to test for executable files. Don't use a zero-byte file, |
16410 | # as systems may use methods other than mode bits to determine executability. | |
16411 | cat >conf$$.file <<_ASEOF | |
16412 | #! /bin/sh | |
16413 | exit 0 | |
16414 | _ASEOF | |
16415 | chmod +x conf$$.file | |
16416 | if test -x conf$$.file >/dev/null 2>&1; then | |
16417 | ac_executable_p="test -x" | |
16418 | else | |
16419 | ac_executable_p="test -f" | |
16420 | fi | |
16421 | rm -f conf$$.file | |
20e95c23 | 16422 | |
d7040cdb SE |
16423 | # Extract the first word of "msgmerge", so it can be a program name with args. |
16424 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
16425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16426 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16427 | if ${ac_cv_path_MSGMERGE+:} false; then : |
81ecdfbb | 16428 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
16429 | else |
16430 | case "$MSGMERGE" in | |
16431 | [\\/]* | ?:[\\/]*) | |
16432 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
16433 | ;; | |
16434 | *) | |
16435 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
16436 | for ac_dir in $PATH; do | |
16437 | IFS="$ac_save_IFS" | |
16438 | test -z "$ac_dir" && ac_dir=. | |
16439 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16440 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
16441 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
16442 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
16443 | break 2 | |
16444 | fi | |
16445 | fi | |
16446 | done | |
16447 | done | |
16448 | IFS="$ac_save_IFS" | |
16449 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
16450 | ;; | |
16451 | esac | |
16452 | fi | |
16453 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
16454 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
16455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
16456 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 16457 | else |
81ecdfbb RW |
16458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16459 | $as_echo "no" >&6; } | |
d7040cdb | 16460 | fi |
20e95c23 DJ |
16461 | |
16462 | ||
d7040cdb SE |
16463 | if test "$GMSGFMT" != ":"; then |
16464 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
16465 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
16466 | : ; | |
16467 | else | |
16468 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
16469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
16470 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
16471 | GMSGFMT=":" |
16472 | fi | |
16473 | fi | |
20e95c23 | 16474 | |
d7040cdb SE |
16475 | if test "$XGETTEXT" != ":"; then |
16476 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
16477 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
16478 | : ; | |
16479 | else | |
81ecdfbb RW |
16480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
16481 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
16482 | XGETTEXT=":" |
16483 | fi | |
16484 | rm -f messages.po | |
20e95c23 | 16485 | fi |
42ecbf5e | 16486 | |
81ecdfbb | 16487 | ac_config_commands="$ac_config_commands default-1" |
252b5132 | 16488 | |
42ecbf5e | 16489 | |
252b5132 | 16490 | |
42ecbf5e DJ |
16491 | |
16492 | ||
d7040cdb | 16493 | for ac_prog in 'bison -y' byacc |
20e95c23 | 16494 | do |
d7040cdb SE |
16495 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
16496 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
16497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16498 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16499 | if ${ac_cv_prog_YACC+:} false; then : |
81ecdfbb | 16500 | $as_echo_n "(cached) " >&6 |
20e95c23 | 16501 | else |
d7040cdb SE |
16502 | if test -n "$YACC"; then |
16503 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
42ecbf5e | 16504 | else |
d7040cdb SE |
16505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16506 | for as_dir in $PATH | |
16507 | do | |
16508 | IFS=$as_save_IFS | |
16509 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16510 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16511 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 16512 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 16513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
16514 | break 2 |
16515 | fi | |
16516 | done | |
81ecdfbb RW |
16517 | done |
16518 | IFS=$as_save_IFS | |
42ecbf5e | 16519 | |
42ecbf5e | 16520 | fi |
e5a52504 | 16521 | fi |
d7040cdb SE |
16522 | YACC=$ac_cv_prog_YACC |
16523 | if test -n "$YACC"; then | |
81ecdfbb RW |
16524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
16525 | $as_echo "$YACC" >&6; } | |
42ecbf5e | 16526 | else |
81ecdfbb RW |
16527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16528 | $as_echo "no" >&6; } | |
42ecbf5e | 16529 | fi |
252b5132 | 16530 | |
81ecdfbb | 16531 | |
d7040cdb | 16532 | test -n "$YACC" && break |
42ecbf5e | 16533 | done |
d7040cdb | 16534 | test -n "$YACC" || YACC="yacc" |
d15b04bd | 16535 | |
d7040cdb SE |
16536 | for ac_prog in flex lex |
16537 | do | |
16538 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
16539 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
16540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16541 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16542 | if ${ac_cv_prog_LEX+:} false; then : |
81ecdfbb | 16543 | $as_echo_n "(cached) " >&6 |
d15b04bd | 16544 | else |
d7040cdb SE |
16545 | if test -n "$LEX"; then |
16546 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
16547 | else | |
16548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16549 | for as_dir in $PATH | |
16550 | do | |
16551 | IFS=$as_save_IFS | |
16552 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16553 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16554 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 16555 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 16556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
16557 | break 2 |
16558 | fi | |
16559 | done | |
81ecdfbb RW |
16560 | done |
16561 | IFS=$as_save_IFS | |
d7040cdb SE |
16562 | |
16563 | fi | |
16564 | fi | |
16565 | LEX=$ac_cv_prog_LEX | |
16566 | if test -n "$LEX"; then | |
81ecdfbb RW |
16567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
16568 | $as_echo "$LEX" >&6; } | |
d7040cdb | 16569 | else |
81ecdfbb RW |
16570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16571 | $as_echo "no" >&6; } | |
d15b04bd | 16572 | fi |
e5a52504 | 16573 | |
81ecdfbb | 16574 | |
d7040cdb SE |
16575 | test -n "$LEX" && break |
16576 | done | |
16577 | test -n "$LEX" || LEX=":" | |
42ecbf5e | 16578 | |
3d961d0d AM |
16579 | case "$LEX" in |
16580 | :|*"missing "*) ;; | |
16581 | *) cat >conftest.l <<_ACEOF | |
81ecdfbb RW |
16582 | %% |
16583 | a { ECHO; } | |
16584 | b { REJECT; } | |
16585 | c { yymore (); } | |
16586 | d { yyless (1); } | |
d0ac1c44 SM |
16587 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
16588 | yyless ((input () != 0)); } | |
81ecdfbb RW |
16589 | f { unput (yytext[0]); } |
16590 | . { BEGIN INITIAL; } | |
16591 | %% | |
16592 | #ifdef YYTEXT_POINTER | |
16593 | extern char *yytext; | |
d7040cdb | 16594 | #endif |
42ecbf5e | 16595 | int |
81ecdfbb | 16596 | main (void) |
42ecbf5e | 16597 | { |
81ecdfbb | 16598 | return ! yylex () + ! yywrap (); |
42ecbf5e DJ |
16599 | } |
16600 | _ACEOF | |
81ecdfbb RW |
16601 | { { ac_try="$LEX conftest.l" |
16602 | case "(($ac_try" in | |
16603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16604 | *) ac_try_echo=$ac_try;; | |
16605 | esac | |
16606 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
16607 | $as_echo "$ac_try_echo"; } >&5 | |
16608 | (eval "$LEX conftest.l") 2>&5 | |
42ecbf5e | 16609 | ac_status=$? |
81ecdfbb RW |
16610 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16611 | test $ac_status = 0; } | |
16612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
16613 | $as_echo_n "checking lex output file root... " >&6; } | |
d0ac1c44 | 16614 | if ${ac_cv_prog_lex_root+:} false; then : |
81ecdfbb | 16615 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 16616 | else |
42ecbf5e | 16617 | |
81ecdfbb RW |
16618 | if test -f lex.yy.c; then |
16619 | ac_cv_prog_lex_root=lex.yy | |
16620 | elif test -f lexyy.c; then | |
16621 | ac_cv_prog_lex_root=lexyy | |
16622 | else | |
d0ac1c44 | 16623 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
42ecbf5e | 16624 | fi |
42ecbf5e | 16625 | fi |
81ecdfbb RW |
16626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
16627 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
16628 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
20e95c23 | 16629 | |
81ecdfbb RW |
16630 | if test -z "${LEXLIB+set}"; then |
16631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
16632 | $as_echo_n "checking lex library... " >&6; } | |
d0ac1c44 | 16633 | if ${ac_cv_lib_lex+:} false; then : |
81ecdfbb | 16634 | $as_echo_n "(cached) " >&6 |
252b5132 | 16635 | else |
20e95c23 | 16636 | |
81ecdfbb RW |
16637 | ac_save_LIBS=$LIBS |
16638 | ac_cv_lib_lex='none needed' | |
16639 | for ac_lib in '' -lfl -ll; do | |
16640 | LIBS="$ac_lib $ac_save_LIBS" | |
16641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16642 | /* end confdefs.h. */ | |
16643 | `cat $LEX_OUTPUT_ROOT.c` | |
16644 | _ACEOF | |
16645 | if ac_fn_c_try_link "$LINENO"; then : | |
16646 | ac_cv_lib_lex=$ac_lib | |
20e95c23 | 16647 | fi |
81ecdfbb RW |
16648 | rm -f core conftest.err conftest.$ac_objext \ |
16649 | conftest$ac_exeext conftest.$ac_ext | |
16650 | test "$ac_cv_lib_lex" != 'none needed' && break | |
16651 | done | |
16652 | LIBS=$ac_save_LIBS | |
20e95c23 DJ |
16653 | |
16654 | fi | |
81ecdfbb RW |
16655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
16656 | $as_echo "$ac_cv_lib_lex" >&6; } | |
16657 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
d7040cdb | 16658 | fi |
20e95c23 | 16659 | |
20e95c23 | 16660 | |
81ecdfbb RW |
16661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
16662 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
d0ac1c44 | 16663 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
81ecdfbb | 16664 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
16665 | else |
16666 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
81ecdfbb | 16667 | # default is implementation-dependent. Figure out which it is, since |
d7040cdb SE |
16668 | # not all implementations provide the %pointer and %array declarations. |
16669 | ac_cv_prog_lex_yytext_pointer=no | |
d7040cdb | 16670 | ac_save_LIBS=$LIBS |
81ecdfbb RW |
16671 | LIBS="$LEXLIB $ac_save_LIBS" |
16672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16673 | /* end confdefs.h. */ | |
d0ac1c44 SM |
16674 | |
16675 | #define YYTEXT_POINTER 1 | |
d7040cdb | 16676 | `cat $LEX_OUTPUT_ROOT.c` |
20e95c23 | 16677 | _ACEOF |
81ecdfbb | 16678 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 16679 | ac_cv_prog_lex_yytext_pointer=yes |
d7040cdb | 16680 | fi |
81ecdfbb RW |
16681 | rm -f core conftest.err conftest.$ac_objext \ |
16682 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 16683 | LIBS=$ac_save_LIBS |
d7040cdb SE |
16684 | |
16685 | fi | |
81ecdfbb RW |
16686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
16687 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
d7040cdb SE |
16688 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
16689 | ||
81ecdfbb | 16690 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
d7040cdb SE |
16691 | |
16692 | fi | |
81ecdfbb | 16693 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
3d961d0d AM |
16694 | ;; |
16695 | esac | |
d7040cdb SE |
16696 | if test "$LEX" = :; then |
16697 | LEX=${am_missing_run}flex | |
16698 | fi | |
16699 | ||
81ecdfbb RW |
16700 | |
16701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
16702 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
16703 | # Check whether --enable-maintainer-mode was given. | |
16704 | if test "${enable_maintainer_mode+set}" = set; then : | |
16705 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
252b5132 | 16706 | else |
d7040cdb | 16707 | USE_MAINTAINER_MODE=no |
81ecdfbb | 16708 | fi |
d7040cdb | 16709 | |
81ecdfbb RW |
16710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
16711 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
16712 | if test $USE_MAINTAINER_MODE = yes; then | |
d7040cdb SE |
16713 | MAINTAINER_MODE_TRUE= |
16714 | MAINTAINER_MODE_FALSE='#' | |
16715 | else | |
16716 | MAINTAINER_MODE_TRUE='#' | |
16717 | MAINTAINER_MODE_FALSE= | |
252b5132 | 16718 | fi |
252b5132 | 16719 | |
d7040cdb SE |
16720 | MAINT=$MAINTAINER_MODE_TRUE |
16721 | ||
16722 | ||
81ecdfbb | 16723 | if false; then |
d7040cdb SE |
16724 | GENINSRC_NEVER_TRUE= |
16725 | GENINSRC_NEVER_FALSE='#' | |
16726 | else | |
16727 | GENINSRC_NEVER_TRUE='#' | |
16728 | GENINSRC_NEVER_FALSE= | |
252b5132 RH |
16729 | fi |
16730 | ||
81ecdfbb RW |
16731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
16732 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
d0ac1c44 | 16733 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
81ecdfbb | 16734 | $as_echo_n "(cached) " >&6 |
eccbf555 AM |
16735 | else |
16736 | echo abfoo >t1 | |
16737 | echo cdfoo >t2 | |
da17fe9d | 16738 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
eccbf555 AM |
16739 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
16740 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
16741 | : | |
16742 | else | |
16743 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
16744 | fi | |
16745 | fi | |
16746 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then | |
16747 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
16748 | : | |
16749 | else | |
16750 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
16751 | fi | |
16752 | fi | |
16753 | rm t1 t2 | |
16754 | ||
16755 | fi | |
81ecdfbb RW |
16756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
16757 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
eccbf555 AM |
16758 | do_compare="$gcc_cv_prog_cmp_skip" |
16759 | ||
16760 | ||
d7040cdb SE |
16761 | |
16762 | . ${srcdir}/configure.host | |
16763 | ||
16764 | ||
16765 | ||
c774eab1 AM |
16766 | |
16767 | # We use headers from include/ that check various HAVE_*_H macros, thus | |
16768 | # should ensure they are set by configure. This is true even when C99 | |
16769 | # guarantees they are available. | |
16770 | # sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H | |
16771 | # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H | |
16772 | # Besides those, we need to check anything used in ld/ not in C99. | |
16773 | for ac_header in fcntl.h elf-hints.h limits.h inttypes.h stdint.h \ | |
16774 | sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \ | |
16775 | sys/types.h unistd.h | |
5d3236ee DK |
16776 | do : |
16777 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16778 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
d0ac1c44 | 16779 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
5d3236ee DK |
16780 | cat >>confdefs.h <<_ACEOF |
16781 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16782 | _ACEOF | |
16783 | ||
16784 | fi | |
16785 | ||
16786 | done | |
16787 | ||
6577f365 | 16788 | for ac_func in close glob lseek mkstemp open realpath waitpid |
81ecdfbb RW |
16789 | do : |
16790 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16791 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d0ac1c44 | 16792 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
42ecbf5e | 16793 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16794 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
42ecbf5e | 16795 | _ACEOF |
252b5132 | 16796 | |
252b5132 RH |
16797 | fi |
16798 | done | |
16799 | ||
5d3236ee | 16800 | |
42ecbf5e | 16801 | |
c774eab1 AM |
16802 | case "${host}" in |
16803 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) | |
42ecbf5e | 16804 | |
c774eab1 AM |
16805 | $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h |
16806 | ;; | |
16807 | esac | |
42ecbf5e | 16808 | |
c774eab1 AM |
16809 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
16810 | if test "x$ac_cv_have_decl_asprintf" = xyes; then : | |
16811 | ac_have_decl=1 | |
42ecbf5e | 16812 | else |
c774eab1 | 16813 | ac_have_decl=0 |
81ecdfbb | 16814 | fi |
e5a52504 | 16815 | |
c774eab1 AM |
16816 | cat >>confdefs.h <<_ACEOF |
16817 | #define HAVE_DECL_ASPRINTF $ac_have_decl | |
16818 | _ACEOF | |
16819 | ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" | |
16820 | if test "x$ac_cv_have_decl_environ" = xyes; then : | |
16821 | ac_have_decl=1 | |
42ecbf5e | 16822 | else |
c774eab1 | 16823 | ac_have_decl=0 |
d15b04bd | 16824 | fi |
252b5132 | 16825 | |
c774eab1 AM |
16826 | cat >>confdefs.h <<_ACEOF |
16827 | #define HAVE_DECL_ENVIRON $ac_have_decl | |
42ecbf5e | 16828 | _ACEOF |
eaf1fa5a AM |
16829 | ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" |
16830 | if test "x$ac_cv_have_decl_stpcpy" = xyes; then : | |
16831 | ac_have_decl=1 | |
16832 | else | |
16833 | ac_have_decl=0 | |
16834 | fi | |
16835 | ||
16836 | cat >>confdefs.h <<_ACEOF | |
16837 | #define HAVE_DECL_STPCPY $ac_have_decl | |
16838 | _ACEOF | |
252b5132 RH |
16839 | |
16840 | ||
d0ac1c44 SM |
16841 | |
16842 | ||
16843 | ||
16844 | for ac_header in $ac_header_list | |
2aec968d L |
16845 | do : |
16846 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d0ac1c44 SM |
16847 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
16848 | " | |
16849 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
2aec968d L |
16850 | cat >>confdefs.h <<_ACEOF |
16851 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16852 | _ACEOF | |
16853 | ||
16854 | fi | |
16855 | ||
16856 | done | |
16857 | ||
d0ac1c44 SM |
16858 | |
16859 | ||
16860 | ||
16861 | ||
16862 | ||
16863 | ||
16864 | ||
2aec968d L |
16865 | for ac_func in getpagesize |
16866 | do : | |
16867 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
d0ac1c44 | 16868 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
2aec968d L |
16869 | cat >>confdefs.h <<_ACEOF |
16870 | #define HAVE_GETPAGESIZE 1 | |
16871 | _ACEOF | |
16872 | ||
16873 | fi | |
16874 | done | |
16875 | ||
16876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
16877 | $as_echo_n "checking for working mmap... " >&6; } | |
d0ac1c44 | 16878 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
2aec968d L |
16879 | $as_echo_n "(cached) " >&6 |
16880 | else | |
16881 | if test "$cross_compiling" = yes; then : | |
16882 | ac_cv_func_mmap_fixed_mapped=no | |
16883 | else | |
16884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16885 | /* end confdefs.h. */ | |
16886 | $ac_includes_default | |
16887 | /* malloc might have been renamed as rpl_malloc. */ | |
16888 | #undef malloc | |
16889 | ||
16890 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
16891 | Here is a matrix of mmap possibilities: | |
16892 | mmap private not fixed | |
16893 | mmap private fixed at somewhere currently unmapped | |
16894 | mmap private fixed at somewhere already mapped | |
16895 | mmap shared not fixed | |
16896 | mmap shared fixed at somewhere currently unmapped | |
16897 | mmap shared fixed at somewhere already mapped | |
16898 | For private mappings, we should verify that changes cannot be read() | |
16899 | back from the file, nor mmap's back from the file at a different | |
16900 | address. (There have been systems where private was not correctly | |
16901 | implemented like the infamous i386 svr4.0, and systems where the | |
16902 | VM page cache was not coherent with the file system buffer cache | |
16903 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
16904 | For shared mappings, we should conversely verify that changes get | |
16905 | propagated back to all the places they're supposed to be. | |
16906 | ||
16907 | Grep wants private fixed already mapped. | |
16908 | The main things grep needs to know about mmap are: | |
16909 | * does it exist and is it safe to write into the mmap'd area | |
16910 | * how to use it (BSD variants) */ | |
16911 | ||
16912 | #include <fcntl.h> | |
16913 | #include <sys/mman.h> | |
16914 | ||
16915 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
16916 | char *malloc (); | |
16917 | #endif | |
16918 | ||
16919 | /* This mess was copied from the GNU getpagesize.h. */ | |
16920 | #ifndef HAVE_GETPAGESIZE | |
2aec968d L |
16921 | # ifdef _SC_PAGESIZE |
16922 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
16923 | # else /* no _SC_PAGESIZE */ | |
16924 | # ifdef HAVE_SYS_PARAM_H | |
16925 | # include <sys/param.h> | |
16926 | # ifdef EXEC_PAGESIZE | |
16927 | # define getpagesize() EXEC_PAGESIZE | |
16928 | # else /* no EXEC_PAGESIZE */ | |
16929 | # ifdef NBPG | |
16930 | # define getpagesize() NBPG * CLSIZE | |
16931 | # ifndef CLSIZE | |
16932 | # define CLSIZE 1 | |
16933 | # endif /* no CLSIZE */ | |
16934 | # else /* no NBPG */ | |
16935 | # ifdef NBPC | |
16936 | # define getpagesize() NBPC | |
16937 | # else /* no NBPC */ | |
16938 | # ifdef PAGESIZE | |
16939 | # define getpagesize() PAGESIZE | |
16940 | # endif /* PAGESIZE */ | |
16941 | # endif /* no NBPC */ | |
16942 | # endif /* no NBPG */ | |
16943 | # endif /* no EXEC_PAGESIZE */ | |
16944 | # else /* no HAVE_SYS_PARAM_H */ | |
16945 | # define getpagesize() 8192 /* punt totally */ | |
16946 | # endif /* no HAVE_SYS_PARAM_H */ | |
16947 | # endif /* no _SC_PAGESIZE */ | |
16948 | ||
16949 | #endif /* no HAVE_GETPAGESIZE */ | |
16950 | ||
16951 | int | |
16952 | main () | |
16953 | { | |
16954 | char *data, *data2, *data3; | |
d0ac1c44 | 16955 | const char *cdata2; |
2aec968d | 16956 | int i, pagesize; |
d0ac1c44 | 16957 | int fd, fd2; |
2aec968d L |
16958 | |
16959 | pagesize = getpagesize (); | |
16960 | ||
16961 | /* First, make a file with some known garbage in it. */ | |
16962 | data = (char *) malloc (pagesize); | |
16963 | if (!data) | |
16964 | return 1; | |
16965 | for (i = 0; i < pagesize; ++i) | |
16966 | *(data + i) = rand (); | |
16967 | umask (0); | |
16968 | fd = creat ("conftest.mmap", 0600); | |
16969 | if (fd < 0) | |
d0ac1c44 | 16970 | return 2; |
2aec968d | 16971 | if (write (fd, data, pagesize) != pagesize) |
d0ac1c44 | 16972 | return 3; |
2aec968d L |
16973 | close (fd); |
16974 | ||
d0ac1c44 SM |
16975 | /* Next, check that the tail of a page is zero-filled. File must have |
16976 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
16977 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
16978 | if (fd2 < 0) | |
16979 | return 4; | |
16980 | cdata2 = ""; | |
16981 | if (write (fd2, cdata2, 1) != 1) | |
16982 | return 5; | |
16983 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
16984 | if (data2 == MAP_FAILED) | |
16985 | return 6; | |
16986 | for (i = 0; i < pagesize; ++i) | |
16987 | if (*(data2 + i)) | |
16988 | return 7; | |
16989 | close (fd2); | |
16990 | if (munmap (data2, pagesize)) | |
16991 | return 8; | |
16992 | ||
2aec968d L |
16993 | /* Next, try to mmap the file at a fixed address which already has |
16994 | something else allocated at it. If we can, also make sure that | |
16995 | we see the same garbage. */ | |
16996 | fd = open ("conftest.mmap", O_RDWR); | |
16997 | if (fd < 0) | |
d0ac1c44 | 16998 | return 9; |
2aec968d L |
16999 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
17000 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
d0ac1c44 | 17001 | return 10; |
2aec968d L |
17002 | for (i = 0; i < pagesize; ++i) |
17003 | if (*(data + i) != *(data2 + i)) | |
d0ac1c44 | 17004 | return 11; |
2aec968d L |
17005 | |
17006 | /* Finally, make sure that changes to the mapped area do not | |
17007 | percolate back to the file as seen by read(). (This is a bug on | |
17008 | some variants of i386 svr4.0.) */ | |
17009 | for (i = 0; i < pagesize; ++i) | |
17010 | *(data2 + i) = *(data2 + i) + 1; | |
17011 | data3 = (char *) malloc (pagesize); | |
17012 | if (!data3) | |
d0ac1c44 | 17013 | return 12; |
2aec968d | 17014 | if (read (fd, data3, pagesize) != pagesize) |
d0ac1c44 | 17015 | return 13; |
2aec968d L |
17016 | for (i = 0; i < pagesize; ++i) |
17017 | if (*(data + i) != *(data3 + i)) | |
d0ac1c44 | 17018 | return 14; |
2aec968d L |
17019 | close (fd); |
17020 | return 0; | |
17021 | } | |
17022 | _ACEOF | |
17023 | if ac_fn_c_try_run "$LINENO"; then : | |
17024 | ac_cv_func_mmap_fixed_mapped=yes | |
17025 | else | |
17026 | ac_cv_func_mmap_fixed_mapped=no | |
17027 | fi | |
17028 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
17029 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
17030 | fi | |
17031 | ||
17032 | fi | |
17033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
17034 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
17035 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
17036 | ||
17037 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h | |
17038 | ||
17039 | fi | |
d0ac1c44 | 17040 | rm -f conftest.mmap conftest.txt |
2aec968d L |
17041 | |
17042 | ||
5d3236ee DK |
17043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
17044 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
d0ac1c44 | 17045 | if ${ac_cv_search_dlopen+:} false; then : |
5d3236ee DK |
17046 | $as_echo_n "(cached) " >&6 |
17047 | else | |
17048 | ac_func_search_save_LIBS=$LIBS | |
17049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17050 | /* end confdefs.h. */ | |
17051 | ||
17052 | /* Override any GCC internal prototype to avoid an error. | |
17053 | Use char because int might match the return type of a GCC | |
17054 | builtin and then its argument prototype would still apply. */ | |
17055 | #ifdef __cplusplus | |
17056 | extern "C" | |
17057 | #endif | |
17058 | char dlopen (); | |
17059 | int | |
17060 | main () | |
17061 | { | |
17062 | return dlopen (); | |
17063 | ; | |
17064 | return 0; | |
17065 | } | |
17066 | _ACEOF | |
17067 | for ac_lib in '' dl; do | |
17068 | if test -z "$ac_lib"; then | |
17069 | ac_res="none required" | |
17070 | else | |
17071 | ac_res=-l$ac_lib | |
17072 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
17073 | fi | |
17074 | if ac_fn_c_try_link "$LINENO"; then : | |
17075 | ac_cv_search_dlopen=$ac_res | |
17076 | fi | |
17077 | rm -f core conftest.err conftest.$ac_objext \ | |
17078 | conftest$ac_exeext | |
d0ac1c44 | 17079 | if ${ac_cv_search_dlopen+:} false; then : |
5d3236ee DK |
17080 | break |
17081 | fi | |
17082 | done | |
d0ac1c44 | 17083 | if ${ac_cv_search_dlopen+:} false; then : |
5d3236ee DK |
17084 | |
17085 | else | |
17086 | ac_cv_search_dlopen=no | |
17087 | fi | |
17088 | rm conftest.$ac_ext | |
17089 | LIBS=$ac_func_search_save_LIBS | |
17090 | fi | |
17091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
17092 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
17093 | ac_res=$ac_cv_search_dlopen | |
17094 | if test "$ac_res" != no; then : | |
17095 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
17096 | ||
3917d5d5 DK |
17097 | fi |
17098 | ||
5d3236ee | 17099 | |
81ecdfbb RW |
17100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
17101 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
d0ac1c44 | 17102 | if ${ld_cv_decl_getopt_unistd_h+:} false; then : |
81ecdfbb | 17103 | $as_echo_n "(cached) " >&6 |
34875e64 | 17104 | else |
81ecdfbb | 17105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 17106 | /* end confdefs.h. */ |
34875e64 | 17107 | #include <unistd.h> |
42ecbf5e DJ |
17108 | int |
17109 | main () | |
17110 | { | |
34875e64 | 17111 | extern int getopt (int, char *const*, const char *); |
42ecbf5e DJ |
17112 | ; |
17113 | return 0; | |
17114 | } | |
17115 | _ACEOF | |
81ecdfbb | 17116 | if ac_fn_c_try_compile "$LINENO"; then : |
34875e64 NC |
17117 | ld_cv_decl_getopt_unistd_h=yes |
17118 | else | |
81ecdfbb | 17119 | ld_cv_decl_getopt_unistd_h=no |
34875e64 | 17120 | fi |
81ecdfbb | 17121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
34875e64 NC |
17122 | fi |
17123 | ||
81ecdfbb RW |
17124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5 |
17125 | $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; } | |
34875e64 | 17126 | if test $ld_cv_decl_getopt_unistd_h = yes; then |
42ecbf5e | 17127 | |
81ecdfbb | 17128 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h |
34875e64 NC |
17129 | |
17130 | fi | |
42ecbf5e | 17131 | |
2cac01e3 FS |
17132 | # Link in zlib/zstd if we can. This allows us to read and write |
17133 | # compressed debug sections. | |
1ff6de03 NA |
17134 | |
17135 | # Use the system's zlib library. | |
17136 | zlibdir="-L\$(top_builddir)/../zlib" | |
17137 | zlibinc="-I\$(top_srcdir)/../zlib" | |
17138 | ||
17139 | # Check whether --with-system-zlib was given. | |
17140 | if test "${with_system_zlib+set}" = set; then : | |
17141 | withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then | |
17142 | zlibdir= | |
17143 | zlibinc= | |
17144 | fi | |
17145 | ||
17146 | fi | |
17147 | ||
17148 | ||
17149 | ||
17150 | ||
17151 | ||
2cac01e3 FS |
17152 | |
17153 | # Check whether --with-zstd was given. | |
17154 | if test "${with_zstd+set}" = set; then : | |
17155 | withval=$with_zstd; | |
17156 | else | |
17157 | with_zstd=auto | |
17158 | fi | |
17159 | ||
17160 | ||
17161 | if test "$with_zstd" != no; then : | |
17162 | ||
17163 | pkg_failed=no | |
200164d4 CL |
17164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5 |
17165 | $as_echo_n "checking for libzstd >= 1.4.0... " >&6; } | |
2cac01e3 FS |
17166 | |
17167 | if test -n "$ZSTD_CFLAGS"; then | |
17168 | pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS" | |
17169 | elif test -n "$PKG_CONFIG"; then | |
17170 | if test -n "$PKG_CONFIG" && \ | |
200164d4 CL |
17171 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5 |
17172 | ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5 | |
2cac01e3 FS |
17173 | ac_status=$? |
17174 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17175 | test $ac_status = 0; }; then | |
200164d4 | 17176 | pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null` |
2cac01e3 FS |
17177 | test "x$?" != "x0" && pkg_failed=yes |
17178 | else | |
17179 | pkg_failed=yes | |
17180 | fi | |
17181 | else | |
17182 | pkg_failed=untried | |
17183 | fi | |
17184 | if test -n "$ZSTD_LIBS"; then | |
17185 | pkg_cv_ZSTD_LIBS="$ZSTD_LIBS" | |
17186 | elif test -n "$PKG_CONFIG"; then | |
17187 | if test -n "$PKG_CONFIG" && \ | |
200164d4 CL |
17188 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5 |
17189 | ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5 | |
2cac01e3 FS |
17190 | ac_status=$? |
17191 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17192 | test $ac_status = 0; }; then | |
200164d4 | 17193 | pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null` |
2cac01e3 FS |
17194 | test "x$?" != "x0" && pkg_failed=yes |
17195 | else | |
17196 | pkg_failed=yes | |
17197 | fi | |
17198 | else | |
17199 | pkg_failed=untried | |
17200 | fi | |
17201 | ||
17202 | if test $pkg_failed = no; then | |
17203 | pkg_save_LDFLAGS="$LDFLAGS" | |
17204 | LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS" | |
17205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17206 | /* end confdefs.h. */ | |
17207 | ||
17208 | int | |
17209 | main () | |
17210 | { | |
17211 | ||
17212 | ; | |
17213 | return 0; | |
17214 | } | |
17215 | _ACEOF | |
17216 | if ac_fn_c_try_link "$LINENO"; then : | |
17217 | ||
17218 | else | |
17219 | pkg_failed=yes | |
17220 | fi | |
17221 | rm -f core conftest.err conftest.$ac_objext \ | |
17222 | conftest$ac_exeext conftest.$ac_ext | |
17223 | LDFLAGS=$pkg_save_LDFLAGS | |
17224 | fi | |
17225 | ||
17226 | ||
17227 | ||
17228 | if test $pkg_failed = yes; then | |
17229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17230 | $as_echo "no" >&6; } | |
17231 | ||
17232 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
17233 | _pkg_short_errors_supported=yes | |
17234 | else | |
17235 | _pkg_short_errors_supported=no | |
17236 | fi | |
17237 | if test $_pkg_short_errors_supported = yes; then | |
200164d4 | 17238 | ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1` |
2cac01e3 | 17239 | else |
200164d4 | 17240 | ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1` |
2cac01e3 FS |
17241 | fi |
17242 | # Put the nasty error message in config.log where it belongs | |
17243 | echo "$ZSTD_PKG_ERRORS" >&5 | |
17244 | ||
17245 | ||
17246 | if test "$with_zstd" = yes; then | |
17247 | as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5 | |
17248 | fi | |
17249 | ||
17250 | elif test $pkg_failed = untried; then | |
17251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17252 | $as_echo "no" >&6; } | |
17253 | ||
17254 | if test "$with_zstd" = yes; then | |
17255 | as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5 | |
17256 | fi | |
17257 | ||
17258 | else | |
17259 | ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS | |
17260 | ZSTD_LIBS=$pkg_cv_ZSTD_LIBS | |
17261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17262 | $as_echo "yes" >&6; } | |
17263 | ||
17264 | ||
17265 | $as_echo "#define HAVE_ZSTD 1" >>confdefs.h | |
17266 | ||
17267 | ||
17268 | fi | |
17269 | ||
17270 | fi | |
17271 | ||
17272 | ||
81ecdfbb RW |
17273 | # target-specific stuff: |
17274 | ||
17275 | all_targets= | |
17276 | EMUL= | |
17277 | all_emuls= | |
17278 | all_emul_extras= | |
17279 | all_libpath= | |
50ff67e6 | 17280 | TDIRS= |
81ecdfbb | 17281 | |
f38a2680 AM |
17282 | elf_list_options=false |
17283 | elf_shlib_list_options=false | |
17284 | elf_plt_unwind_list_options=false | |
81ecdfbb RW |
17285 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` |
17286 | do | |
17287 | if test "$targ_alias" = "all"; then | |
17288 | all_targets=true | |
f38a2680 AM |
17289 | elf_list_options=true |
17290 | elf_shlib_list_options=true | |
17291 | elf_plt_unwind_list_options=true | |
81ecdfbb RW |
17292 | else |
17293 | # Canonicalize the secondary target names. | |
17294 | result=`$ac_config_sub $targ_alias 2>/dev/null` | |
17295 | if test -n "$result"; then | |
17296 | targ=$result | |
17297 | else | |
17298 | targ=$targ_alias | |
17299 | fi | |
17300 | ||
17301 | . ${srcdir}/configure.tgt | |
17302 | ||
17303 | if test "$targ" = "$target"; then | |
17304 | EMUL=$targ_emul | |
17305 | fi | |
17306 | ||
1d5269c9 | 17307 | if test x${enable_64_bit_bfd} = xno; then |
81ecdfbb RW |
17308 | . ${srcdir}/../bfd/config.bfd |
17309 | fi | |
17310 | ||
1d5269c9 | 17311 | if test x${enable_64_bit_bfd} = xyes; then |
81ecdfbb RW |
17312 | targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls" |
17313 | targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath" | |
17314 | fi | |
17315 | ||
17316 | for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do | |
17317 | case " $all_emuls " in | |
8c3fff59 AM |
17318 | *" e${i}.o "*) ;; |
17319 | *) | |
17320 | all_emuls="$all_emuls e${i}.o" | |
17321 | eval result=\$tdir_$i | |
17322 | test -z "$result" && result=$targ_alias | |
50ff67e6 AM |
17323 | TDIRS="$TDIRS |
17324 | tdir_$i=$result" | |
c58212ea L |
17325 | case "${i}" in |
17326 | *elf*) | |
f38a2680 | 17327 | elf_list_options=true |
68880f31 CLT |
17328 | ;; |
17329 | *) | |
075a2b89 | 17330 | if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then |
f38a2680 | 17331 | elf_list_options=true |
68880f31 CLT |
17332 | fi |
17333 | ;; | |
17334 | esac | |
f38a2680 | 17335 | if test "$elf_list_options" = "true"; then |
c40e31a1 AM |
17336 | source_sh() |
17337 | { | |
17338 | . $1 | |
17339 | } | |
17340 | source_sh ${srcdir}/emulparams/${i}.sh | |
c58212ea | 17341 | if test x${GENERATE_SHLIB_SCRIPT} = xyes; then |
f38a2680 | 17342 | elf_shlib_list_options=true |
c58212ea L |
17343 | fi |
17344 | if test x${PLT_UNWIND} = xyes; then | |
f38a2680 | 17345 | elf_plt_unwind_list_options=true |
c58212ea | 17346 | fi |
68880f31 | 17347 | fi |
c58212ea | 17348 | ;; |
81ecdfbb RW |
17349 | esac |
17350 | done | |
17351 | ||
17352 | for i in $targ_emul $targ_extra_libpath; do | |
17353 | case " $all_libpath " in | |
17354 | *" ${i} "*) ;; | |
17355 | *) | |
17356 | if test -z "$all_libpath"; then | |
17357 | all_libpath=${i} | |
17358 | else | |
17359 | all_libpath="$all_libpath ${i}" | |
17360 | fi | |
17361 | ;; | |
17362 | esac | |
17363 | done | |
17364 | ||
17365 | for i in $targ_extra_ofiles; do | |
17366 | case " $all_emul_extras " in | |
17367 | *" ${i} "*) ;; | |
17368 | *) | |
17369 | all_emul_extras="$all_emul_extras ${i}" | |
17370 | ;; | |
17371 | esac | |
17372 | done | |
5063daf7 | 17373 | |
81ecdfbb RW |
17374 | fi |
17375 | done | |
17376 | ||
621ff761 | 17377 | if test x$ac_default_compressed_debug_sections = xyes ; then |
6c3bc0f8 NC |
17378 | |
17379 | $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h | |
17380 | ||
17381 | fi | |
17382 | ||
b0c295e1 ML |
17383 | |
17384 | cat >>confdefs.h <<_ACEOF | |
17385 | #define DEFAULT_COMPRESSED_DEBUG_ALGORITHM $ac_default_compressed_debug_sections_algorithm | |
17386 | _ACEOF | |
17387 | ||
17388 | ||
6734f10a SB |
17389 | if test "${ac_default_new_dtags}" = unset; then |
17390 | ac_default_new_dtags=0 | |
17391 | fi | |
17392 | ||
17393 | cat >>confdefs.h <<_ACEOF | |
17394 | #define DEFAULT_NEW_DTAGS $ac_default_new_dtags | |
17395 | _ACEOF | |
17396 | ||
17397 | ||
647e4d46 L |
17398 | if test "${ac_default_ld_z_relro}" = unset; then |
17399 | ac_default_ld_z_relro=0 | |
17400 | fi | |
17401 | ||
17402 | cat >>confdefs.h <<_ACEOF | |
17403 | #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro | |
17404 | _ACEOF | |
17405 | ||
17406 | ||
b32632c4 L |
17407 | ac_default_ld_textrel_check_warning=0 |
17408 | case "${ac_default_ld_textrel_check}" in | |
17409 | unset|no) | |
17410 | ac_default_ld_textrel_check=textrel_check_none | |
17411 | ;; | |
17412 | yes|warning) | |
17413 | ac_default_ld_textrel_check=textrel_check_warning | |
17414 | ac_default_ld_textrel_check_warning=1 | |
17415 | ;; | |
17416 | error) | |
17417 | ac_default_ld_textrel_check=textrel_check_error | |
17418 | ;; | |
17419 | esac | |
17420 | ||
17421 | cat >>confdefs.h <<_ACEOF | |
17422 | #define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check | |
17423 | _ACEOF | |
17424 | ||
17425 | ||
17426 | cat >>confdefs.h <<_ACEOF | |
17427 | #define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning | |
17428 | _ACEOF | |
17429 | ||
17430 | ||
f6aec96d L |
17431 | if test "${ac_default_ld_z_separate_code}" = unset; then |
17432 | ac_default_ld_z_separate_code=0 | |
17433 | fi | |
17434 | ||
17435 | cat >>confdefs.h <<_ACEOF | |
17436 | #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code | |
17437 | _ACEOF | |
17438 | ||
17439 | ||
ba951afb | 17440 | |
ba951afb NC |
17441 | |
17442 | cat >>confdefs.h <<_ACEOF | |
17443 | #define DEFAULT_LD_WARN_EXECSTACK $ac_default_ld_warn_execstack | |
17444 | _ACEOF | |
17445 | ||
17446 | ||
17447 | if test "${ac_default_ld_warn_rwx_segments}" = unset; then | |
ed1c7ad8 | 17448 | ac_default_ld_warn_rwx_segments=1 |
ba951afb NC |
17449 | fi |
17450 | ||
17451 | cat >>confdefs.h <<_ACEOF | |
17452 | #define DEFAULT_LD_WARN_RWX_SEGMENTS $ac_default_ld_warn_rwx_segments | |
17453 | _ACEOF | |
17454 | ||
17455 | ||
17456 | if test "${ac_default_ld_default_execstack}" = unset; then | |
17457 | ac_default_ld_default_execstack=1 | |
17458 | fi | |
17459 | ||
17460 | cat >>confdefs.h <<_ACEOF | |
17461 | #define DEFAULT_LD_EXECSTACK $ac_default_ld_default_execstack | |
17462 | _ACEOF | |
17463 | ||
17464 | ||
17465 | ||
23ae20f5 NC |
17466 | if test "${ac_support_error_handling_script}" = unset; then |
17467 | ac_support_error_handling_script=1 | |
17468 | fi | |
17469 | ||
17470 | cat >>confdefs.h <<_ACEOF | |
17471 | #define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script | |
17472 | _ACEOF | |
17473 | ||
17474 | ||
81ecdfbb | 17475 | |
2760f24c RG |
17476 | cat >>confdefs.h <<_ACEOF |
17477 | #define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash | |
17478 | _ACEOF | |
17479 | ||
17480 | ||
17481 | ||
17482 | cat >>confdefs.h <<_ACEOF | |
17483 | #define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash | |
17484 | _ACEOF | |
17485 | ||
17486 | ||
17487 | ||
81ecdfbb | 17488 | |
c58212ea L |
17489 | |
17490 | ||
17491 | ||
50ff67e6 | 17492 | |
81ecdfbb RW |
17493 | |
17494 | ||
17495 | if test x${all_targets} = xtrue; then | |
1d5269c9 | 17496 | if test x${enable_64_bit_bfd} = xyes; then |
42ecbf5e | 17497 | EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)' |
9d069ac3 | 17498 | EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)' |
42ecbf5e DJ |
17499 | else |
17500 | EMULATION_OFILES='$(ALL_EMULATIONS)' | |
9d069ac3 | 17501 | EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)' |
42ecbf5e | 17502 | fi |
42ecbf5e DJ |
17503 | else |
17504 | EMULATION_OFILES=$all_emuls | |
17505 | EMUL_EXTRA_OFILES=$all_emul_extras | |
17506 | fi | |
17507 | ||
17508 | ||
17509 | ||
17510 | ||
17511 | EMULATION_LIBPATH=$all_libpath | |
17512 | ||
17513 | ||
17514 | if test x${enable_static} = xno; then | |
9165f454 | 17515 | TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so" |
87279e3c | 17516 | TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so" |
cf0e0a0b | 17517 | TESTSFRAMELIB="-Wl,--rpath,../libsframe/.libs ../libsframe/.libs/libsframe.so" |
42ecbf5e DJ |
17518 | else |
17519 | TESTBFDLIB="../bfd/.libs/libbfd.a" | |
87279e3c | 17520 | TESTCTFLIB="../libctf/.libs/libctf.a" |
cf0e0a0b | 17521 | TESTSFRAMELIB="../libsframe/.libs/libsframe.a" |
42ecbf5e | 17522 | fi |
094e34f2 NA |
17523 | if test "${enable_libctf}" = no; then |
17524 | TESTCTFLIB= | |
17525 | fi | |
42ecbf5e DJ |
17526 | |
17527 | ||
87279e3c | 17528 | |
cf0e0a0b | 17529 | |
42ecbf5e DJ |
17530 | target_vendor=${target_vendor=$host_vendor} |
17531 | case "$target_vendor" in | |
17532 | hp) EXTRA_SHLIB_EXTENSION=".sl" ;; | |
17533 | *) EXTRA_SHLIB_EXTENSION= ;; | |
17534 | esac | |
17535 | ||
17536 | case "$target_os" in | |
17537 | lynxos) EXTRA_SHLIB_EXTENSION=".a" ;; | |
17538 | esac | |
17539 | ||
17540 | if test x${EXTRA_SHLIB_EXTENSION} != x ; then | |
17541 | ||
17542 | cat >>confdefs.h <<_ACEOF | |
17543 | #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION" | |
17544 | _ACEOF | |
17545 | ||
17546 | fi | |
17547 | ||
33589acb AM |
17548 | ac_config_commands="$ac_config_commands default" |
17549 | ||
17550 | ||
108a6f8e CD |
17551 | |
17552 | ||
17553 | ||
17554 | ||
31dd3154 | 17555 | |
81ecdfbb | 17556 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
da594c4a | 17557 | |
42ecbf5e DJ |
17558 | cat >confcache <<\_ACEOF |
17559 | # This file is a shell script that caches the results of configure | |
17560 | # tests run on this system so they can be shared between configure | |
17561 | # scripts and configure runs, see configure's option --config-cache. | |
17562 | # It is not useful on other systems. If it contains results you don't | |
17563 | # want to keep, you may remove or edit it. | |
17564 | # | |
17565 | # config.status only pays attention to the cache file if you give it | |
17566 | # the --recheck option to rerun configure. | |
17567 | # | |
17568 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17569 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17570 | # following values. | |
17571 | ||
17572 | _ACEOF | |
17573 | ||
17574 | # The following way of writing the cache mishandles newlines in values, | |
17575 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 17576 | # So, we kill variables containing newlines. |
42ecbf5e DJ |
17577 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17578 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
17579 | ( |
17580 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17581 | eval ac_val=\$$ac_var | |
17582 | case $ac_val in #( | |
17583 | *${as_nl}*) | |
17584 | case $ac_var in #( | |
17585 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17586 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17587 | esac | |
17588 | case $ac_var in #( | |
17589 | _ | IFS | as_nl) ;; #( | |
17590 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17591 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17592 | esac ;; | |
17593 | esac | |
17594 | done | |
17595 | ||
42ecbf5e | 17596 | (set) 2>&1 | |
81ecdfbb RW |
17597 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17598 | *${as_nl}ac_space=\ *) | |
17599 | # `set' does not quote correctly, so add quotes: double-quote | |
17600 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
42ecbf5e DJ |
17601 | sed -n \ |
17602 | "s/'/'\\\\''/g; | |
17603 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 17604 | ;; #( |
42ecbf5e DJ |
17605 | *) |
17606 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 17607 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
42ecbf5e | 17608 | ;; |
81ecdfbb RW |
17609 | esac | |
17610 | sort | |
17611 | ) | | |
42ecbf5e | 17612 | sed ' |
81ecdfbb | 17613 | /^ac_cv_env_/b end |
42ecbf5e | 17614 | t clear |
81ecdfbb | 17615 | :clear |
42ecbf5e DJ |
17616 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17617 | t end | |
81ecdfbb RW |
17618 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17619 | :end' >>confcache | |
17620 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17621 | if test -w "$cache_file"; then | |
d0ac1c44 | 17622 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
17623 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17624 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
17625 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17626 | cat confcache >"$cache_file" | |
17627 | else | |
17628 | case $cache_file in #( | |
17629 | */* | ?:*) | |
17630 | mv -f confcache "$cache_file"$$ && | |
17631 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17632 | *) | |
17633 | mv -f confcache "$cache_file" ;; | |
17634 | esac | |
17635 | fi | |
17636 | fi | |
42ecbf5e | 17637 | else |
81ecdfbb RW |
17638 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17639 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
42ecbf5e DJ |
17640 | fi |
17641 | fi | |
17642 | rm -f confcache | |
17643 | ||
17644 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17645 | # Let make expand exec_prefix. | |
17646 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17647 | ||
42ecbf5e DJ |
17648 | DEFS=-DHAVE_CONFIG_H |
17649 | ||
17650 | ac_libobjs= | |
17651 | ac_ltlibobjs= | |
d0ac1c44 | 17652 | U= |
42ecbf5e DJ |
17653 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17654 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
17655 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
17656 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
17657 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
17658 | # will be set to the directory where LIBOBJS objects are built. | |
17659 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17660 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
42ecbf5e DJ |
17661 | done |
17662 | LIBOBJS=$ac_libobjs | |
17663 | ||
17664 | LTLIBOBJS=$ac_ltlibobjs | |
17665 | ||
17666 | ||
d0ac1c44 SM |
17667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
17668 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
17669 | if test -n "$am_sleep_pid"; then | |
17670 | # Hide warnings about reused PIDs. | |
17671 | wait $am_sleep_pid 2>/dev/null | |
17672 | fi | |
17673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
17674 | $as_echo "done" >&6; } | |
81ecdfbb RW |
17675 | if test -n "$EXEEXT"; then |
17676 | am__EXEEXT_TRUE= | |
17677 | am__EXEEXT_FALSE='#' | |
17678 | else | |
17679 | am__EXEEXT_TRUE='#' | |
17680 | am__EXEEXT_FALSE= | |
42ecbf5e | 17681 | fi |
81ecdfbb | 17682 | |
64ac50ac | 17683 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
d0ac1c44 | 17684 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
64ac50ac RW |
17685 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17686 | fi | |
c774eab1 AM |
17687 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
17688 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
17689 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17690 | fi | |
17691 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
17692 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
17693 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17694 | fi | |
3cb62297 | 17695 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
d0ac1c44 | 17696 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
3cb62297 L |
17697 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17698 | fi | |
1d5269c9 MF |
17699 | if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then |
17700 | as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined. | |
17701 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17702 | fi | |
094e34f2 NA |
17703 | if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then |
17704 | as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined. | |
17705 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17706 | fi | |
42ecbf5e | 17707 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
d0ac1c44 | 17708 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
81ecdfbb | 17709 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
42ecbf5e | 17710 | fi |
d5fbea21 | 17711 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
d0ac1c44 | 17712 | as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined. |
81ecdfbb | 17713 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
d5fbea21 | 17714 | fi |
42ecbf5e | 17715 | |
d0ac1c44 | 17716 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 17717 | ac_write_fail=0 |
42ecbf5e DJ |
17718 | ac_clean_files_save=$ac_clean_files |
17719 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
17720 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17721 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17722 | as_write_fail=0 | |
17723 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
42ecbf5e DJ |
17724 | #! $SHELL |
17725 | # Generated by $as_me. | |
17726 | # Run this file to recreate the current configuration. | |
17727 | # Compiler output produced by configure, useful for debugging | |
17728 | # configure, is in config.log if it exists. | |
17729 | ||
17730 | debug=false | |
17731 | ac_cs_recheck=false | |
17732 | ac_cs_silent=false | |
42ecbf5e | 17733 | |
81ecdfbb RW |
17734 | SHELL=\${CONFIG_SHELL-$SHELL} |
17735 | export SHELL | |
17736 | _ASEOF | |
17737 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
17738 | ## -------------------- ## | |
17739 | ## M4sh Initialization. ## | |
17740 | ## -------------------- ## | |
42ecbf5e | 17741 | |
81ecdfbb RW |
17742 | # Be more Bourne compatible |
17743 | DUALCASE=1; export DUALCASE # for MKS sh | |
17744 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
42ecbf5e DJ |
17745 | emulate sh |
17746 | NULLCMD=: | |
81ecdfbb | 17747 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
42ecbf5e DJ |
17748 | # is contrary to our usage. Disable this feature. |
17749 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
17750 | setopt NO_GLOB_SUBST |
17751 | else | |
17752 | case `(set -o) 2>/dev/null` in #( | |
17753 | *posix*) : | |
17754 | set -o posix ;; #( | |
17755 | *) : | |
17756 | ;; | |
17757 | esac | |
42ecbf5e | 17758 | fi |
42ecbf5e | 17759 | |
81ecdfbb RW |
17760 | |
17761 | as_nl=' | |
17762 | ' | |
17763 | export as_nl | |
17764 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
17765 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
17766 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
17767 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
17768 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
17769 | # but without wasting forks for bash or zsh. | |
17770 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
17771 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17772 | as_echo='print -r --' | |
17773 | as_echo_n='print -rn --' | |
17774 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17775 | as_echo='printf %s\n' | |
17776 | as_echo_n='printf %s' | |
17777 | else | |
17778 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
17779 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
17780 | as_echo_n='/usr/ucb/echo -n' | |
17781 | else | |
17782 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
17783 | as_echo_n_body='eval | |
17784 | arg=$1; | |
17785 | case $arg in #( | |
17786 | *"$as_nl"*) | |
17787 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
17788 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
17789 | esac; | |
17790 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
17791 | ' | |
17792 | export as_echo_n_body | |
17793 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
17794 | fi | |
17795 | export as_echo_body | |
17796 | as_echo='sh -c $as_echo_body as_echo' | |
17797 | fi | |
17798 | ||
17799 | # The user is always right. | |
17800 | if test "${PATH_SEPARATOR+set}" != set; then | |
17801 | PATH_SEPARATOR=: | |
17802 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
17803 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
17804 | PATH_SEPARATOR=';' | |
17805 | } | |
42ecbf5e DJ |
17806 | fi |
17807 | ||
17808 | ||
81ecdfbb RW |
17809 | # IFS |
17810 | # We need space, tab and new line, in precisely that order. Quoting is | |
17811 | # there to prevent editors from complaining about space-tab. | |
17812 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
17813 | # splitting by setting IFS to empty value.) | |
17814 | IFS=" "" $as_nl" | |
17815 | ||
17816 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 17817 | as_myself= |
81ecdfbb RW |
17818 | case $0 in #(( |
17819 | *[\\/]* ) as_myself=$0 ;; | |
17820 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17821 | for as_dir in $PATH | |
17822 | do | |
17823 | IFS=$as_save_IFS | |
17824 | test -z "$as_dir" && as_dir=. | |
17825 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
17826 | done | |
17827 | IFS=$as_save_IFS | |
17828 | ||
17829 | ;; | |
17830 | esac | |
17831 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17832 | # in which case we are not to be found in the path. | |
17833 | if test "x$as_myself" = x; then | |
17834 | as_myself=$0 | |
17835 | fi | |
17836 | if test ! -f "$as_myself"; then | |
17837 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
17838 | exit 1 | |
17839 | fi | |
17840 | ||
17841 | # Unset variables that we do not need and which cause bugs (e.g. in | |
17842 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
17843 | # suppresses any "Segmentation fault" message there. '((' could | |
17844 | # trigger a bug in pdksh 5.2.14. | |
17845 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
17846 | do eval test x\${$as_var+set} = xset \ | |
17847 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
17848 | done | |
42ecbf5e DJ |
17849 | PS1='$ ' |
17850 | PS2='> ' | |
17851 | PS4='+ ' | |
17852 | ||
17853 | # NLS nuisances. | |
81ecdfbb RW |
17854 | LC_ALL=C |
17855 | export LC_ALL | |
17856 | LANGUAGE=C | |
17857 | export LANGUAGE | |
17858 | ||
17859 | # CDPATH. | |
17860 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17861 | ||
17862 | ||
d0ac1c44 SM |
17863 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
17864 | # ---------------------------------------- | |
81ecdfbb RW |
17865 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
17866 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 17867 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
17868 | as_fn_error () |
17869 | { | |
d0ac1c44 SM |
17870 | as_status=$1; test $as_status -eq 0 && as_status=1 |
17871 | if test "$4"; then | |
17872 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
17873 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
42ecbf5e | 17874 | fi |
d0ac1c44 | 17875 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
17876 | as_fn_exit $as_status |
17877 | } # as_fn_error | |
17878 | ||
17879 | ||
17880 | # as_fn_set_status STATUS | |
17881 | # ----------------------- | |
17882 | # Set $? to STATUS, without forking. | |
17883 | as_fn_set_status () | |
17884 | { | |
17885 | return $1 | |
17886 | } # as_fn_set_status | |
17887 | ||
17888 | # as_fn_exit STATUS | |
17889 | # ----------------- | |
17890 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
17891 | as_fn_exit () | |
17892 | { | |
17893 | set +e | |
17894 | as_fn_set_status $1 | |
17895 | exit $1 | |
17896 | } # as_fn_exit | |
17897 | ||
17898 | # as_fn_unset VAR | |
17899 | # --------------- | |
17900 | # Portably unset VAR. | |
17901 | as_fn_unset () | |
17902 | { | |
17903 | { eval $1=; unset $1;} | |
17904 | } | |
17905 | as_unset=as_fn_unset | |
17906 | # as_fn_append VAR VALUE | |
17907 | # ---------------------- | |
17908 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
17909 | # advantage of any shell optimizations that allow amortized linear growth over | |
17910 | # repeated appends, instead of the typical quadratic growth present in naive | |
17911 | # implementations. | |
17912 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
17913 | eval 'as_fn_append () | |
17914 | { | |
17915 | eval $1+=\$2 | |
17916 | }' | |
17917 | else | |
17918 | as_fn_append () | |
17919 | { | |
17920 | eval $1=\$$1\$2 | |
17921 | } | |
17922 | fi # as_fn_append | |
17923 | ||
17924 | # as_fn_arith ARG... | |
17925 | # ------------------ | |
17926 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
17927 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
17928 | # must be portable across $(()) and expr. | |
17929 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
17930 | eval 'as_fn_arith () | |
17931 | { | |
17932 | as_val=$(( $* )) | |
17933 | }' | |
17934 | else | |
17935 | as_fn_arith () | |
17936 | { | |
17937 | as_val=`expr "$@" || test $? -eq 1` | |
17938 | } | |
17939 | fi # as_fn_arith | |
17940 | ||
42ecbf5e | 17941 | |
81ecdfbb RW |
17942 | if expr a : '\(a\)' >/dev/null 2>&1 && |
17943 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
42ecbf5e DJ |
17944 | as_expr=expr |
17945 | else | |
17946 | as_expr=false | |
17947 | fi | |
17948 | ||
81ecdfbb | 17949 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
42ecbf5e DJ |
17950 | as_basename=basename |
17951 | else | |
17952 | as_basename=false | |
17953 | fi | |
17954 | ||
81ecdfbb RW |
17955 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
17956 | as_dirname=dirname | |
17957 | else | |
17958 | as_dirname=false | |
17959 | fi | |
42ecbf5e | 17960 | |
81ecdfbb | 17961 | as_me=`$as_basename -- "$0" || |
42ecbf5e DJ |
17962 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
17963 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
17964 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
17965 | $as_echo X/"$0" | | |
17966 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
17967 | s//\1/ | |
17968 | q | |
17969 | } | |
17970 | /^X\/\(\/\/\)$/{ | |
17971 | s//\1/ | |
17972 | q | |
17973 | } | |
17974 | /^X\/\(\/\).*/{ | |
17975 | s//\1/ | |
17976 | q | |
17977 | } | |
17978 | s/.*/./; q'` | |
42ecbf5e | 17979 | |
42ecbf5e DJ |
17980 | # Avoid depending upon Character Ranges. |
17981 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
17982 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
17983 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
17984 | as_cr_digits='0123456789' | |
17985 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
17986 | ||
81ecdfbb RW |
17987 | ECHO_C= ECHO_N= ECHO_T= |
17988 | case `echo -n x` in #((((( | |
17989 | -n*) | |
17990 | case `echo 'xy\c'` in | |
17991 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
17992 | xy) ECHO_C='\c';; | |
17993 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
17994 | ECHO_T=' ';; | |
17995 | esac;; | |
17996 | *) | |
17997 | ECHO_N='-n';; | |
42ecbf5e | 17998 | esac |
252b5132 | 17999 | |
81ecdfbb RW |
18000 | rm -f conf$$ conf$$.exe conf$$.file |
18001 | if test -d conf$$.dir; then | |
18002 | rm -f conf$$.dir/conf$$.file | |
42ecbf5e | 18003 | else |
81ecdfbb RW |
18004 | rm -f conf$$.dir |
18005 | mkdir conf$$.dir 2>/dev/null | |
42ecbf5e | 18006 | fi |
81ecdfbb RW |
18007 | if (echo >conf$$.file) 2>/dev/null; then |
18008 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42ecbf5e | 18009 | as_ln_s='ln -s' |
81ecdfbb RW |
18010 | # ... but there are two gotchas: |
18011 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18012 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 18013 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 18014 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 18015 | as_ln_s='cp -pR' |
81ecdfbb RW |
18016 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18017 | as_ln_s=ln | |
18018 | else | |
d0ac1c44 | 18019 | as_ln_s='cp -pR' |
252b5132 | 18020 | fi |
e5a52504 | 18021 | else |
d0ac1c44 | 18022 | as_ln_s='cp -pR' |
e5a52504 | 18023 | fi |
81ecdfbb RW |
18024 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18025 | rmdir conf$$.dir 2>/dev/null | |
18026 | ||
18027 | ||
18028 | # as_fn_mkdir_p | |
18029 | # ------------- | |
18030 | # Create "$as_dir" as a directory, including parents if necessary. | |
18031 | as_fn_mkdir_p () | |
18032 | { | |
18033 | ||
18034 | case $as_dir in #( | |
18035 | -*) as_dir=./$as_dir;; | |
18036 | esac | |
18037 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18038 | as_dirs= | |
18039 | while :; do | |
18040 | case $as_dir in #( | |
18041 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18042 | *) as_qdir=$as_dir;; | |
18043 | esac | |
18044 | as_dirs="'$as_qdir' $as_dirs" | |
18045 | as_dir=`$as_dirname -- "$as_dir" || | |
18046 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18047 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18048 | X"$as_dir" : 'X\(//\)$' \| \ | |
18049 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18050 | $as_echo X"$as_dir" | | |
18051 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18052 | s//\1/ | |
18053 | q | |
18054 | } | |
18055 | /^X\(\/\/\)[^/].*/{ | |
18056 | s//\1/ | |
18057 | q | |
18058 | } | |
18059 | /^X\(\/\/\)$/{ | |
18060 | s//\1/ | |
18061 | q | |
18062 | } | |
18063 | /^X\(\/\).*/{ | |
18064 | s//\1/ | |
18065 | q | |
18066 | } | |
18067 | s/.*/./; q'` | |
18068 | test -d "$as_dir" && break | |
18069 | done | |
18070 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 18071 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb | 18072 | |
252b5132 | 18073 | |
81ecdfbb | 18074 | } # as_fn_mkdir_p |
42ecbf5e | 18075 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 18076 | as_mkdir_p='mkdir -p "$as_dir"' |
42ecbf5e DJ |
18077 | else |
18078 | test -d ./-p && rmdir ./-p | |
18079 | as_mkdir_p=false | |
18080 | fi | |
252b5132 | 18081 | |
d0ac1c44 SM |
18082 | |
18083 | # as_fn_executable_p FILE | |
18084 | # ----------------------- | |
18085 | # Test if FILE is an executable regular file. | |
18086 | as_fn_executable_p () | |
18087 | { | |
18088 | test -f "$1" && test -x "$1" | |
18089 | } # as_fn_executable_p | |
18090 | as_test_x='test -x' | |
18091 | as_executable_p=as_fn_executable_p | |
252b5132 | 18092 | |
42ecbf5e DJ |
18093 | # Sed expression to map a string onto a valid CPP name. |
18094 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
f234d5fe | 18095 | |
42ecbf5e DJ |
18096 | # Sed expression to map a string onto a valid variable name. |
18097 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
e5a52504 | 18098 | |
e5a52504 | 18099 | |
42ecbf5e | 18100 | exec 6>&1 |
81ecdfbb RW |
18101 | ## ----------------------------------- ## |
18102 | ## Main body of $CONFIG_STATUS script. ## | |
18103 | ## ----------------------------------- ## | |
18104 | _ASEOF | |
18105 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
e5a52504 | 18106 | |
81ecdfbb RW |
18107 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18108 | # Save the log message, to keep $0 and so on meaningful, and to | |
42ecbf5e | 18109 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
18110 | # values after options handling. |
18111 | ac_log=" | |
b5c37946 | 18112 | This file was extended by ld $as_me 2.41.50, which was |
d0ac1c44 | 18113 | generated by GNU Autoconf 2.69. Invocation command line was |
42ecbf5e DJ |
18114 | |
18115 | CONFIG_FILES = $CONFIG_FILES | |
18116 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18117 | CONFIG_LINKS = $CONFIG_LINKS | |
18118 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18119 | $ $0 $@ | |
e5a52504 | 18120 | |
81ecdfbb RW |
18121 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18122 | " | |
18123 | ||
42ecbf5e DJ |
18124 | _ACEOF |
18125 | ||
81ecdfbb RW |
18126 | case $ac_config_files in *" |
18127 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18128 | esac | |
e5a52504 | 18129 | |
81ecdfbb RW |
18130 | case $ac_config_headers in *" |
18131 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18132 | esac | |
42ecbf5e | 18133 | |
42ecbf5e | 18134 | |
81ecdfbb RW |
18135 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18136 | # Files that config.status was made for. | |
18137 | config_files="$ac_config_files" | |
18138 | config_headers="$ac_config_headers" | |
18139 | config_commands="$ac_config_commands" | |
42ecbf5e | 18140 | |
81ecdfbb | 18141 | _ACEOF |
42ecbf5e | 18142 | |
81ecdfbb | 18143 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 18144 | ac_cs_usage="\ |
81ecdfbb RW |
18145 | \`$as_me' instantiates files and other configuration actions |
18146 | from templates according to the current configuration. Unless the files | |
18147 | and actions are specified as TAGs, all are instantiated by default. | |
42ecbf5e | 18148 | |
81ecdfbb | 18149 | Usage: $0 [OPTION]... [TAG]... |
42ecbf5e DJ |
18150 | |
18151 | -h, --help print this help, then exit | |
81ecdfbb | 18152 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 18153 | --config print configuration, then exit |
81ecdfbb RW |
18154 | -q, --quiet, --silent |
18155 | do not print progress messages | |
42ecbf5e DJ |
18156 | -d, --debug don't remove temporary files |
18157 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
18158 | --file=FILE[:TEMPLATE] |
18159 | instantiate the configuration file FILE | |
18160 | --header=FILE[:TEMPLATE] | |
18161 | instantiate the configuration header FILE | |
42ecbf5e DJ |
18162 | |
18163 | Configuration files: | |
18164 | $config_files | |
18165 | ||
18166 | Configuration headers: | |
18167 | $config_headers | |
18168 | ||
18169 | Configuration commands: | |
18170 | $config_commands | |
18171 | ||
81ecdfbb | 18172 | Report bugs to the package provider." |
42ecbf5e | 18173 | |
81ecdfbb RW |
18174 | _ACEOF |
18175 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 18176 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
42ecbf5e | 18177 | ac_cs_version="\\ |
b5c37946 | 18178 | ld config.status 2.41.50 |
d0ac1c44 SM |
18179 | configured by $0, generated by GNU Autoconf 2.69, |
18180 | with options \\"\$ac_cs_config\\" | |
42ecbf5e | 18181 | |
d0ac1c44 | 18182 | Copyright (C) 2012 Free Software Foundation, Inc. |
42ecbf5e DJ |
18183 | This config.status script is free software; the Free Software Foundation |
18184 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
18185 | |
18186 | ac_pwd='$ac_pwd' | |
18187 | srcdir='$srcdir' | |
18188 | INSTALL='$INSTALL' | |
18189 | MKDIR_P='$MKDIR_P' | |
18190 | AWK='$AWK' | |
18191 | test -n "\$AWK" || AWK=awk | |
42ecbf5e DJ |
18192 | _ACEOF |
18193 | ||
81ecdfbb RW |
18194 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18195 | # The default lists apply if the user does not specify any file. | |
42ecbf5e DJ |
18196 | ac_need_defaults=: |
18197 | while test $# != 0 | |
18198 | do | |
18199 | case $1 in | |
d0ac1c44 | 18200 | --*=?*) |
81ecdfbb RW |
18201 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18202 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
42ecbf5e | 18203 | ac_shift=: |
252b5132 | 18204 | ;; |
d0ac1c44 SM |
18205 | --*=) |
18206 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18207 | ac_optarg= | |
18208 | ac_shift=: | |
18209 | ;; | |
81ecdfbb | 18210 | *) |
42ecbf5e DJ |
18211 | ac_option=$1 |
18212 | ac_optarg=$2 | |
18213 | ac_shift=shift | |
252b5132 | 18214 | ;; |
42ecbf5e | 18215 | esac |
252b5132 | 18216 | |
42ecbf5e DJ |
18217 | case $ac_option in |
18218 | # Handling of the options. | |
42ecbf5e DJ |
18219 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18220 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
18221 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
18222 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
18223 | --config | --confi | --conf | --con | --co | --c ) |
18224 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 18225 | --debug | --debu | --deb | --de | --d | -d ) |
42ecbf5e DJ |
18226 | debug=: ;; |
18227 | --file | --fil | --fi | --f ) | |
18228 | $ac_shift | |
81ecdfbb RW |
18229 | case $ac_optarg in |
18230 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 18231 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
18232 | esac |
18233 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
42ecbf5e DJ |
18234 | ac_need_defaults=false;; |
18235 | --header | --heade | --head | --hea ) | |
18236 | $ac_shift | |
81ecdfbb RW |
18237 | case $ac_optarg in |
18238 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18239 | esac | |
18240 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
42ecbf5e | 18241 | ac_need_defaults=false;; |
81ecdfbb RW |
18242 | --he | --h) |
18243 | # Conflict between --help and --header | |
d0ac1c44 | 18244 | as_fn_error $? "ambiguous option: \`$1' |
81ecdfbb RW |
18245 | Try \`$0 --help' for more information.";; |
18246 | --help | --hel | -h ) | |
18247 | $as_echo "$ac_cs_usage"; exit ;; | |
42ecbf5e DJ |
18248 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18249 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18250 | ac_cs_silent=: ;; | |
252b5132 | 18251 | |
42ecbf5e | 18252 | # This is an error. |
d0ac1c44 | 18253 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 18254 | Try \`$0 --help' for more information." ;; |
252b5132 | 18255 | |
81ecdfbb RW |
18256 | *) as_fn_append ac_config_targets " $1" |
18257 | ac_need_defaults=false ;; | |
252b5132 | 18258 | |
42ecbf5e DJ |
18259 | esac |
18260 | shift | |
18261 | done | |
d15b04bd | 18262 | |
42ecbf5e | 18263 | ac_configure_extra_args= |
e5a52504 | 18264 | |
42ecbf5e DJ |
18265 | if $ac_cs_silent; then |
18266 | exec 6>/dev/null | |
18267 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18268 | fi | |
e5a52504 | 18269 | |
42ecbf5e | 18270 | _ACEOF |
81ecdfbb | 18271 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
42ecbf5e | 18272 | if \$ac_cs_recheck; then |
d0ac1c44 | 18273 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
18274 | shift |
18275 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18276 | CONFIG_SHELL='$SHELL' | |
18277 | export CONFIG_SHELL | |
18278 | exec "\$@" | |
42ecbf5e DJ |
18279 | fi |
18280 | ||
18281 | _ACEOF | |
81ecdfbb RW |
18282 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18283 | exec 5>>config.log | |
18284 | { | |
18285 | echo | |
18286 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18287 | ## Running $as_me. ## | |
18288 | _ASBOX | |
18289 | $as_echo "$ac_log" | |
18290 | } >&5 | |
42ecbf5e | 18291 | |
81ecdfbb RW |
18292 | _ACEOF |
18293 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
252b5132 | 18294 | # |
81ecdfbb | 18295 | # INIT-COMMANDS |
252b5132 | 18296 | # |
5bbe6ec5 | 18297 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
18298 | |
18299 | ||
18300 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18301 | # if CDPATH is set. | |
18302 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18303 | ||
18304 | sed_quote_subst='$sed_quote_subst' | |
18305 | double_quote_subst='$double_quote_subst' | |
18306 | delay_variable_subst='$delay_variable_subst' | |
3725885a RW |
18307 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
18308 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
18309 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
18310 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
18311 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
18312 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
18313 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
18314 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
18315 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
18316 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
18317 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
18318 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
18319 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
18320 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
18321 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
18322 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
18323 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
18324 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
18325 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
18326 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
18327 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
18328 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
18329 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
18330 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
18331 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
18332 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
18333 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
18334 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
18335 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
18336 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
18337 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
18338 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
18339 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
18340 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
18341 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
18342 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
18343 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
18344 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18345 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18346 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18347 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
18348 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
18349 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
18350 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
18351 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
18352 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
18353 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
18354 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
18355 | 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"`' | |
18356 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
18357 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
18358 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
18359 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
18360 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
18361 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
18362 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
18363 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
18364 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
18365 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
18366 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
18367 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
18368 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
18369 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
18370 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
18371 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18372 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
18373 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
18374 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18375 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18376 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
18377 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
18378 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18379 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18380 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18381 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
18382 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18383 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
18384 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18385 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18386 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18387 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
18388 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
18389 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
18390 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
18391 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
18392 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18393 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
18394 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
18395 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
18396 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
18397 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
18398 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
18399 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
18400 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
18401 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
18402 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18403 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
18404 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18405 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
18406 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
18407 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
18408 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18409 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
18410 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
18411 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
18412 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
18413 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
18414 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18415 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18416 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
18417 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
18418 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
18419 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
18420 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
18421 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
18422 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
18423 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
18424 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
18425 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
18426 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
3cb62297 L |
18427 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
18428 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
18429 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
18430 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
18431 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
18432 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
18433 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
18434 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18435 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18436 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18437 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
18438 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
18439 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18440 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
18441 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
18442 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
18443 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
18444 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
18445 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
18446 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18447 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18448 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
18449 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18450 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18451 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18452 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18453 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18454 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18455 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
18456 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18457 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18458 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18459 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
18460 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' | |
18461 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
18462 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
18463 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
18464 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
18465 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
18466 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
18467 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
18468 | fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' | |
18469 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
18470 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18471 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
18472 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
18473 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18474 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18475 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
18476 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
18477 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
18478 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
18479 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
18480 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
18481 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
d7040cdb SE |
18482 | |
18483 | LTCC='$LTCC' | |
18484 | LTCFLAGS='$LTCFLAGS' | |
18485 | compiler='$compiler_DEFAULT' | |
18486 | ||
3725885a RW |
18487 | # A function that is used when there is no print builtin or printf. |
18488 | func_fallback_echo () | |
18489 | { | |
18490 | eval 'cat <<_LTECHO_EOF | |
18491 | \$1 | |
18492 | _LTECHO_EOF' | |
18493 | } | |
18494 | ||
d7040cdb | 18495 | # Quote evaled strings. |
3725885a RW |
18496 | for var in SHELL \ |
18497 | ECHO \ | |
18498 | SED \ | |
d7040cdb SE |
18499 | GREP \ |
18500 | EGREP \ | |
18501 | FGREP \ | |
18502 | LD \ | |
18503 | NM \ | |
18504 | LN_S \ | |
18505 | lt_SP2NL \ | |
18506 | lt_NL2SP \ | |
18507 | reload_flag \ | |
b214d478 | 18508 | OBJDUMP \ |
d7040cdb SE |
18509 | deplibs_check_method \ |
18510 | file_magic_cmd \ | |
18511 | AR \ | |
18512 | AR_FLAGS \ | |
18513 | STRIP \ | |
18514 | RANLIB \ | |
18515 | CC \ | |
18516 | CFLAGS \ | |
18517 | compiler \ | |
18518 | lt_cv_sys_global_symbol_pipe \ | |
18519 | lt_cv_sys_global_symbol_to_cdecl \ | |
18520 | lt_cv_sys_global_symbol_to_c_name_address \ | |
b214d478 | 18521 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
18522 | lt_prog_compiler_no_builtin_flag \ |
18523 | lt_prog_compiler_wl \ | |
18524 | lt_prog_compiler_pic \ | |
18525 | lt_prog_compiler_static \ | |
18526 | lt_cv_prog_compiler_c_o \ | |
18527 | need_locks \ | |
b214d478 SE |
18528 | DSYMUTIL \ |
18529 | NMEDIT \ | |
18530 | LIPO \ | |
18531 | OTOOL \ | |
18532 | OTOOL64 \ | |
d7040cdb SE |
18533 | shrext_cmds \ |
18534 | export_dynamic_flag_spec \ | |
18535 | whole_archive_flag_spec \ | |
18536 | compiler_needs_object \ | |
18537 | with_gnu_ld \ | |
18538 | allow_undefined_flag \ | |
18539 | no_undefined_flag \ | |
18540 | hardcode_libdir_flag_spec \ | |
18541 | hardcode_libdir_flag_spec_ld \ | |
18542 | hardcode_libdir_separator \ | |
18543 | fix_srcfile_path \ | |
18544 | exclude_expsyms \ | |
18545 | include_expsyms \ | |
18546 | file_list_spec \ | |
18547 | variables_saved_for_relink \ | |
18548 | libname_spec \ | |
18549 | library_names_spec \ | |
18550 | soname_spec \ | |
3725885a | 18551 | install_override_mode \ |
d7040cdb SE |
18552 | finish_eval \ |
18553 | old_striplib \ | |
3cb62297 L |
18554 | striplib \ |
18555 | compiler_lib_search_dirs \ | |
18556 | predep_objects \ | |
18557 | postdep_objects \ | |
18558 | predeps \ | |
18559 | postdeps \ | |
18560 | compiler_lib_search_path \ | |
18561 | LD_CXX \ | |
18562 | reload_flag_CXX \ | |
18563 | compiler_CXX \ | |
18564 | lt_prog_compiler_no_builtin_flag_CXX \ | |
18565 | lt_prog_compiler_wl_CXX \ | |
18566 | lt_prog_compiler_pic_CXX \ | |
18567 | lt_prog_compiler_static_CXX \ | |
18568 | lt_cv_prog_compiler_c_o_CXX \ | |
18569 | export_dynamic_flag_spec_CXX \ | |
18570 | whole_archive_flag_spec_CXX \ | |
18571 | compiler_needs_object_CXX \ | |
18572 | with_gnu_ld_CXX \ | |
18573 | allow_undefined_flag_CXX \ | |
18574 | no_undefined_flag_CXX \ | |
18575 | hardcode_libdir_flag_spec_CXX \ | |
18576 | hardcode_libdir_flag_spec_ld_CXX \ | |
18577 | hardcode_libdir_separator_CXX \ | |
18578 | fix_srcfile_path_CXX \ | |
18579 | exclude_expsyms_CXX \ | |
18580 | include_expsyms_CXX \ | |
18581 | file_list_spec_CXX \ | |
18582 | compiler_lib_search_dirs_CXX \ | |
18583 | predep_objects_CXX \ | |
18584 | postdep_objects_CXX \ | |
18585 | predeps_CXX \ | |
18586 | postdeps_CXX \ | |
18587 | compiler_lib_search_path_CXX; do | |
3725885a | 18588 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 18589 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 18590 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
18591 | ;; |
18592 | *) | |
18593 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18594 | ;; | |
18595 | esac | |
18596 | done | |
18597 | ||
18598 | # Double-quote double-evaled strings. | |
18599 | for var in reload_cmds \ | |
18600 | old_postinstall_cmds \ | |
18601 | old_postuninstall_cmds \ | |
18602 | old_archive_cmds \ | |
18603 | extract_expsyms_cmds \ | |
18604 | old_archive_from_new_cmds \ | |
18605 | old_archive_from_expsyms_cmds \ | |
18606 | archive_cmds \ | |
18607 | archive_expsym_cmds \ | |
18608 | module_cmds \ | |
18609 | module_expsym_cmds \ | |
18610 | export_symbols_cmds \ | |
18611 | prelink_cmds \ | |
18612 | postinstall_cmds \ | |
18613 | postuninstall_cmds \ | |
18614 | finish_cmds \ | |
18615 | sys_lib_search_path_spec \ | |
3cb62297 L |
18616 | sys_lib_dlsearch_path_spec \ |
18617 | reload_cmds_CXX \ | |
18618 | old_archive_cmds_CXX \ | |
18619 | old_archive_from_new_cmds_CXX \ | |
18620 | old_archive_from_expsyms_cmds_CXX \ | |
18621 | archive_cmds_CXX \ | |
18622 | archive_expsym_cmds_CXX \ | |
18623 | module_cmds_CXX \ | |
18624 | module_expsym_cmds_CXX \ | |
18625 | export_symbols_cmds_CXX \ | |
18626 | prelink_cmds_CXX; do | |
3725885a | 18627 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 18628 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 18629 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
18630 | ;; |
18631 | *) | |
18632 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18633 | ;; | |
18634 | esac | |
18635 | done | |
18636 | ||
d7040cdb SE |
18637 | ac_aux_dir='$ac_aux_dir' |
18638 | xsi_shell='$xsi_shell' | |
18639 | lt_shell_append='$lt_shell_append' | |
18640 | ||
18641 | # See if we are running on zsh, and set the options which allow our | |
18642 | # commands through without removal of \ escapes INIT. | |
18643 | if test -n "\${ZSH_VERSION+set}" ; then | |
18644 | setopt NO_GLOB_SUBST | |
18645 | fi | |
18646 | ||
18647 | ||
18648 | PACKAGE='$PACKAGE' | |
18649 | VERSION='$VERSION' | |
18650 | TIMESTAMP='$TIMESTAMP' | |
18651 | RM='$RM' | |
18652 | ofile='$ofile' | |
18653 | ||
18654 | ||
18655 | ||
3cb62297 L |
18656 | |
18657 | ||
20e95c23 DJ |
18658 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
18659 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
18660 | # from automake. | |
18661 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
18662 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
18663 | LINGUAS="${LINGUAS-%UNSET%}" | |
18664 | ||
42ecbf5e | 18665 | |
33589acb | 18666 | |
42ecbf5e DJ |
18667 | _ACEOF |
18668 | ||
81ecdfbb | 18669 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 18670 | |
81ecdfbb | 18671 | # Handling of arguments. |
42ecbf5e | 18672 | for ac_config_target in $ac_config_targets |
252b5132 | 18673 | do |
81ecdfbb RW |
18674 | case $ac_config_target in |
18675 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
81ecdfbb | 18676 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
b879806f | 18677 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
81ecdfbb | 18678 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
33589acb | 18679 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
81ecdfbb RW |
18680 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
18681 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
18682 | ||
d0ac1c44 | 18683 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
252b5132 RH |
18684 | esac |
18685 | done | |
18686 | ||
81ecdfbb | 18687 | |
42ecbf5e DJ |
18688 | # If the user did not use the arguments to specify the items to instantiate, |
18689 | # then the envvar interface is used. Set only those that are not. | |
18690 | # We use the long form for the default assignment because of an extremely | |
18691 | # bizarre bug on SunOS 4.1.3. | |
18692 | if $ac_need_defaults; then | |
18693 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18694 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
18695 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
18696 | fi | |
18697 | ||
18698 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 18699 | # simply because there is no reason against having it here, and in addition, |
42ecbf5e | 18700 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
18701 | # Hook for its removal unless debugging. |
18702 | # Note that there is a small window in which the directory will not be cleaned: | |
18703 | # after its creation but before its name has been assigned to `$tmp'. | |
42ecbf5e DJ |
18704 | $debug || |
18705 | { | |
d0ac1c44 | 18706 | tmp= ac_tmp= |
81ecdfbb | 18707 | trap 'exit_status=$? |
d0ac1c44 SM |
18708 | : "${ac_tmp:=$tmp}" |
18709 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
18710 | ' 0 |
18711 | trap 'as_fn_exit 1' 1 2 13 15 | |
42ecbf5e | 18712 | } |
42ecbf5e | 18713 | # Create a (secure) tmp directory for tmp files. |
e5a52504 | 18714 | |
42ecbf5e | 18715 | { |
81ecdfbb | 18716 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 18717 | test -d "$tmp" |
42ecbf5e DJ |
18718 | } || |
18719 | { | |
81ecdfbb RW |
18720 | tmp=./conf$$-$RANDOM |
18721 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
18722 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
18723 | ac_tmp=$tmp | |
81ecdfbb RW |
18724 | |
18725 | # Set up the scripts for CONFIG_FILES section. | |
18726 | # No need to generate them if there are no CONFIG_FILES. | |
18727 | # This happens for instance with `./config.status config.h'. | |
18728 | if test -n "$CONFIG_FILES"; then | |
18729 | ||
50ff67e6 | 18730 | |
81ecdfbb RW |
18731 | ac_cr=`echo X | tr X '\015'` |
18732 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18733 | # But we know of no other shell where ac_cr would be empty at this | |
18734 | # point, so we can use a bashism as a fallback. | |
18735 | if test "x$ac_cr" = x; then | |
18736 | eval ac_cr=\$\'\\r\' | |
18737 | fi | |
18738 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18739 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 18740 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
18741 | else |
18742 | ac_cs_awk_cr=$ac_cr | |
18743 | fi | |
18744 | ||
d0ac1c44 | 18745 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
18746 | _ACEOF |
18747 | ||
e5a52504 | 18748 | |
81ecdfbb RW |
18749 | { |
18750 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18751 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18752 | echo "_ACEOF" | |
18753 | } >conf$$subs.sh || | |
d0ac1c44 SM |
18754 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
18755 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
18756 | ac_delim='%!_!# ' |
18757 | for ac_last_try in false false false false false :; do | |
18758 | . ./conf$$subs.sh || | |
d0ac1c44 | 18759 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
18760 | |
18761 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18762 | if test $ac_delim_n = $ac_delim_num; then | |
18763 | break | |
18764 | elif $ac_last_try; then | |
d0ac1c44 | 18765 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
18766 | else |
18767 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18768 | fi | |
18769 | done | |
18770 | rm -f conf$$subs.sh | |
18771 | ||
18772 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 18773 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
18774 | _ACEOF |
18775 | sed -n ' | |
18776 | h | |
18777 | s/^/S["/; s/!.*/"]=/ | |
18778 | p | |
18779 | g | |
18780 | s/^[^!]*!// | |
18781 | :repl | |
18782 | t repl | |
18783 | s/'"$ac_delim"'$// | |
18784 | t delim | |
18785 | :nl | |
18786 | h | |
d0ac1c44 | 18787 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
18788 | t more1 |
18789 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18790 | p | |
18791 | n | |
18792 | b repl | |
18793 | :more1 | |
18794 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18795 | p | |
18796 | g | |
18797 | s/.\{148\}// | |
18798 | t nl | |
18799 | :delim | |
18800 | h | |
d0ac1c44 | 18801 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
18802 | t more2 |
18803 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18804 | p | |
18805 | b | |
18806 | :more2 | |
18807 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18808 | p | |
18809 | g | |
18810 | s/.\{148\}// | |
18811 | t delim | |
18812 | ' <conf$$subs.awk | sed ' | |
18813 | /^[^""]/{ | |
18814 | N | |
18815 | s/\n// | |
18816 | } | |
18817 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18818 | rm -f conf$$subs.awk | |
18819 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18820 | _ACAWK | |
d0ac1c44 | 18821 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
18822 | for (key in S) S_is_set[key] = 1 |
18823 | FS = "\a" | |
50ff67e6 | 18824 | |
81ecdfbb RW |
18825 | } |
18826 | { | |
18827 | line = $ 0 | |
18828 | nfields = split(line, field, "@") | |
18829 | substed = 0 | |
18830 | len = length(field[1]) | |
18831 | for (i = 2; i < nfields; i++) { | |
18832 | key = field[i] | |
18833 | keylen = length(key) | |
18834 | if (S_is_set[key]) { | |
18835 | value = S[key] | |
18836 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18837 | len += length(value) + length(field[++i]) | |
18838 | substed = 1 | |
18839 | } else | |
18840 | len += 1 + keylen | |
18841 | } | |
50ff67e6 | 18842 | |
81ecdfbb RW |
18843 | print line |
18844 | } | |
50ff67e6 | 18845 | |
81ecdfbb RW |
18846 | _ACAWK |
18847 | _ACEOF | |
18848 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18849 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18850 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18851 | else | |
18852 | cat | |
d0ac1c44 SM |
18853 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
18854 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
42ecbf5e | 18855 | _ACEOF |
d15b04bd | 18856 | |
d0ac1c44 SM |
18857 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
18858 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
18859 | # trailing colons and then remove the whole line if VPATH becomes empty |
18860 | # (actually we leave an empty line to preserve line numbers). | |
18861 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
18862 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
18863 | h | |
18864 | s/// | |
18865 | s/^/:/ | |
18866 | s/[ ]*$/:/ | |
18867 | s/:\$(srcdir):/:/g | |
18868 | s/:\${srcdir}:/:/g | |
18869 | s/:@srcdir@:/:/g | |
18870 | s/^:*// | |
81ecdfbb | 18871 | s/:*$// |
d0ac1c44 SM |
18872 | x |
18873 | s/\(=[ ]*\).*/\1/ | |
18874 | G | |
18875 | s/\n// | |
81ecdfbb RW |
18876 | s/^[^=]*=[ ]*$// |
18877 | }' | |
18878 | fi | |
18879 | ||
18880 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18881 | fi # test -n "$CONFIG_FILES" | |
42ecbf5e | 18882 | |
81ecdfbb RW |
18883 | # Set up the scripts for CONFIG_HEADERS section. |
18884 | # No need to generate them if there are no CONFIG_HEADERS. | |
18885 | # This happens for instance with `./config.status Makefile'. | |
18886 | if test -n "$CONFIG_HEADERS"; then | |
d0ac1c44 | 18887 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
81ecdfbb RW |
18888 | BEGIN { |
18889 | _ACEOF | |
42ecbf5e | 18890 | |
81ecdfbb RW |
18891 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
18892 | # here-document in config.status, that substitutes the proper values into | |
18893 | # config.h.in to produce config.h. | |
252b5132 | 18894 | |
81ecdfbb RW |
18895 | # Create a delimiter string that does not exist in confdefs.h, to ease |
18896 | # handling of long lines. | |
18897 | ac_delim='%!_!# ' | |
18898 | for ac_last_try in false false :; do | |
d0ac1c44 SM |
18899 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
18900 | if test -z "$ac_tt"; then | |
81ecdfbb RW |
18901 | break |
18902 | elif $ac_last_try; then | |
d0ac1c44 | 18903 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
81ecdfbb RW |
18904 | else |
18905 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18906 | fi | |
18907 | done | |
18908 | ||
18909 | # For the awk script, D is an array of macro values keyed by name, | |
18910 | # likewise P contains macro parameters if any. Preserve backslash | |
18911 | # newline sequences. | |
18912 | ||
18913 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
18914 | sed -n ' | |
18915 | s/.\{148\}/&'"$ac_delim"'/g | |
18916 | t rset | |
18917 | :rset | |
18918 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18919 | t def | |
18920 | d | |
18921 | :def | |
18922 | s/\\$// | |
18923 | t bsnl | |
18924 | s/["\\]/\\&/g | |
18925 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18926 | D["\1"]=" \3"/p | |
18927 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
18928 | d | |
18929 | :bsnl | |
18930 | s/["\\]/\\&/g | |
18931 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18932 | D["\1"]=" \3\\\\\\n"\\/p | |
18933 | t cont | |
18934 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
18935 | t cont | |
18936 | d | |
18937 | :cont | |
18938 | n | |
18939 | s/.\{148\}/&'"$ac_delim"'/g | |
18940 | t clear | |
18941 | :clear | |
18942 | s/\\$// | |
18943 | t bsnlc | |
18944 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
18945 | d | |
18946 | :bsnlc | |
18947 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
18948 | b cont | |
18949 | ' <confdefs.h | sed ' | |
18950 | s/'"$ac_delim"'/"\\\ | |
18951 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
18952 | ||
18953 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18954 | for (key in D) D_is_set[key] = 1 | |
18955 | FS = "\a" | |
18956 | } | |
18957 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
18958 | line = \$ 0 | |
18959 | split(line, arg, " ") | |
18960 | if (arg[1] == "#") { | |
18961 | defundef = arg[2] | |
18962 | mac1 = arg[3] | |
18963 | } else { | |
18964 | defundef = substr(arg[1], 2) | |
18965 | mac1 = arg[2] | |
18966 | } | |
18967 | split(mac1, mac2, "(") #) | |
18968 | macro = mac2[1] | |
18969 | prefix = substr(line, 1, index(line, defundef) - 1) | |
18970 | if (D_is_set[macro]) { | |
18971 | # Preserve the white space surrounding the "#". | |
18972 | print prefix "define", macro P[macro] D[macro] | |
18973 | next | |
18974 | } else { | |
18975 | # Replace #undef with comments. This is necessary, for example, | |
18976 | # in the case of _POSIX_SOURCE, which is predefined and required | |
18977 | # on some systems where configure will not decide to define it. | |
18978 | if (defundef == "undef") { | |
18979 | print "/*", prefix defundef, macro, "*/" | |
18980 | next | |
18981 | } | |
18982 | } | |
18983 | } | |
18984 | { print } | |
18985 | _ACAWK | |
42ecbf5e | 18986 | _ACEOF |
81ecdfbb | 18987 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d0ac1c44 | 18988 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
81ecdfbb | 18989 | fi # test -n "$CONFIG_HEADERS" |
42ecbf5e | 18990 | |
81ecdfbb RW |
18991 | |
18992 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
18993 | shift | |
18994 | for ac_tag | |
18995 | do | |
18996 | case $ac_tag in | |
18997 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
18998 | esac | |
18999 | case $ac_mode$ac_tag in | |
19000 | :[FHL]*:*);; | |
d0ac1c44 | 19001 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
19002 | :[FH]-) ac_tag=-:-;; |
19003 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19004 | esac | |
19005 | ac_save_IFS=$IFS | |
19006 | IFS=: | |
19007 | set x $ac_tag | |
19008 | IFS=$ac_save_IFS | |
19009 | shift | |
19010 | ac_file=$1 | |
19011 | shift | |
19012 | ||
19013 | case $ac_mode in | |
19014 | :L) ac_source=$1;; | |
19015 | :[FH]) | |
19016 | ac_file_inputs= | |
19017 | for ac_f | |
19018 | do | |
19019 | case $ac_f in | |
d0ac1c44 | 19020 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
19021 | *) # Look for the file first in the build tree, then in the source tree |
19022 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19023 | # because $ac_f cannot contain `:'. | |
19024 | test -f "$ac_f" || | |
19025 | case $ac_f in | |
19026 | [\\/$]*) false;; | |
19027 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19028 | esac || | |
d0ac1c44 | 19029 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
19030 | esac |
19031 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19032 | as_fn_append ac_file_inputs " '$ac_f'" | |
19033 | done | |
19034 | ||
19035 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19036 | # use $as_me), people would be surprised to read: | |
19037 | # /* config.h. Generated by config.status. */ | |
19038 | configure_input='Generated from '` | |
19039 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19040 | `' by configure.' | |
19041 | if test x"$ac_file" != x-; then | |
19042 | configure_input="$ac_file. $configure_input" | |
19043 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19044 | $as_echo "$as_me: creating $ac_file" >&6;} | |
252b5132 | 19045 | fi |
81ecdfbb RW |
19046 | # Neutralize special characters interpreted by sed in replacement strings. |
19047 | case $configure_input in #( | |
19048 | *\&* | *\|* | *\\* ) | |
19049 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19050 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19051 | *) ac_sed_conf_input=$configure_input;; | |
19052 | esac | |
252b5132 | 19053 | |
81ecdfbb | 19054 | case $ac_tag in |
d0ac1c44 SM |
19055 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19056 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
19057 | esac |
19058 | ;; | |
252b5132 RH |
19059 | esac |
19060 | ||
81ecdfbb | 19061 | ac_dir=`$as_dirname -- "$ac_file" || |
42ecbf5e DJ |
19062 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19063 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19064 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
19065 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
19066 | $as_echo X"$ac_file" | | |
19067 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19068 | s//\1/ | |
19069 | q | |
19070 | } | |
19071 | /^X\(\/\/\)[^/].*/{ | |
19072 | s//\1/ | |
19073 | q | |
19074 | } | |
19075 | /^X\(\/\/\)$/{ | |
19076 | s//\1/ | |
19077 | q | |
19078 | } | |
19079 | /^X\(\/\).*/{ | |
19080 | s//\1/ | |
19081 | q | |
19082 | } | |
19083 | s/.*/./; q'` | |
19084 | as_dir="$ac_dir"; as_fn_mkdir_p | |
42ecbf5e DJ |
19085 | ac_builddir=. |
19086 | ||
81ecdfbb RW |
19087 | case "$ac_dir" in |
19088 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19089 | *) | |
19090 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19091 | # A ".." for each directory in $ac_dir_suffix. | |
19092 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19093 | case $ac_top_builddir_sub in | |
19094 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19095 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19096 | esac ;; | |
19097 | esac | |
19098 | ac_abs_top_builddir=$ac_pwd | |
19099 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19100 | # for backward compatibility: | |
19101 | ac_top_builddir=$ac_top_build_prefix | |
252b5132 | 19102 | |
42ecbf5e | 19103 | case $srcdir in |
81ecdfbb | 19104 | .) # We are building in place. |
42ecbf5e | 19105 | ac_srcdir=. |
81ecdfbb RW |
19106 | ac_top_srcdir=$ac_top_builddir_sub |
19107 | ac_abs_top_srcdir=$ac_pwd ;; | |
19108 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
42ecbf5e | 19109 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
19110 | ac_top_srcdir=$srcdir |
19111 | ac_abs_top_srcdir=$srcdir ;; | |
19112 | *) # Relative name. | |
19113 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19114 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19115 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
42ecbf5e | 19116 | esac |
81ecdfbb | 19117 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
42ecbf5e | 19118 | |
252b5132 | 19119 | |
81ecdfbb RW |
19120 | case $ac_mode in |
19121 | :F) | |
19122 | # | |
19123 | # CONFIG_FILE | |
19124 | # | |
e5a52504 | 19125 | |
42ecbf5e DJ |
19126 | case $INSTALL in |
19127 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
19128 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
19129 | esac | |
19130 | ac_MKDIR_P=$MKDIR_P | |
19131 | case $MKDIR_P in | |
19132 | [\\/$]* | ?:[\\/]* ) ;; | |
19133 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
d15b04bd | 19134 | esac |
81ecdfbb | 19135 | _ACEOF |
e5a52504 | 19136 | |
81ecdfbb RW |
19137 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19138 | # If the template does not know about datarootdir, expand it. | |
19139 | # FIXME: This hack should be removed a few years after 2.60. | |
19140 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19141 | ac_sed_dataroot=' | |
19142 | /datarootdir/ { | |
19143 | p | |
19144 | q | |
19145 | } | |
19146 | /@datadir@/p | |
19147 | /@docdir@/p | |
19148 | /@infodir@/p | |
19149 | /@localedir@/p | |
19150 | /@mandir@/p' | |
19151 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19152 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19153 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19154 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19155 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
19156 | _ACEOF | |
19157 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19158 | ac_datarootdir_hack=' | |
19159 | s&@datadir@&$datadir&g | |
19160 | s&@docdir@&$docdir&g | |
19161 | s&@infodir@&$infodir&g | |
19162 | s&@localedir@&$localedir&g | |
19163 | s&@mandir@&$mandir&g | |
19164 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19165 | esac | |
42ecbf5e | 19166 | _ACEOF |
81ecdfbb RW |
19167 | |
19168 | # Neutralize VPATH when `$srcdir' = `.'. | |
19169 | # Shell code in configure.ac might set extrasub. | |
19170 | # FIXME: do we really want to maintain this feature? | |
19171 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19172 | ac_sed_extra="$ac_vpsub | |
42ecbf5e DJ |
19173 | $extrasub |
19174 | _ACEOF | |
81ecdfbb | 19175 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e DJ |
19176 | :t |
19177 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
19178 | s|@configure_input@|$ac_sed_conf_input|;t t |
19179 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19180 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19181 | s&@srcdir@&$ac_srcdir&;t t | |
19182 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19183 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19184 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19185 | s&@builddir@&$ac_builddir&;t t | |
19186 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19187 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19188 | s&@INSTALL@&$ac_INSTALL&;t t | |
19189 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
19190 | $ac_datarootdir_hack | |
19191 | " | |
50ff67e6 | 19192 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
d0ac1c44 | 19193 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb RW |
19194 | |
19195 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
19196 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19197 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19198 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 19199 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 19200 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 19201 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 19202 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 19203 | |
d0ac1c44 | 19204 | rm -f "$ac_tmp/stdin" |
42ecbf5e | 19205 | case $ac_file in |
d0ac1c44 SM |
19206 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19207 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 19208 | esac \ |
d0ac1c44 | 19209 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb RW |
19210 | ;; |
19211 | :H) | |
19212 | # | |
19213 | # CONFIG_HEADER | |
19214 | # | |
42ecbf5e | 19215 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
19216 | { |
19217 | $as_echo "/* $configure_input */" \ | |
d0ac1c44 SM |
19218 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
19219 | } >"$ac_tmp/config.h" \ | |
19220 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19221 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
81ecdfbb RW |
19222 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
19223 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
42ecbf5e | 19224 | else |
81ecdfbb | 19225 | rm -f "$ac_file" |
d0ac1c44 SM |
19226 | mv "$ac_tmp/config.h" "$ac_file" \ |
19227 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
252b5132 | 19228 | fi |
42ecbf5e | 19229 | else |
81ecdfbb | 19230 | $as_echo "/* $configure_input */" \ |
d0ac1c44 SM |
19231 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
19232 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
e5a52504 | 19233 | fi |
81ecdfbb RW |
19234 | # Compute "$ac_file"'s index in $config_headers. |
19235 | _am_arg="$ac_file" | |
42ecbf5e DJ |
19236 | _am_stamp_count=1 |
19237 | for _am_header in $config_headers :; do | |
19238 | case $_am_header in | |
81ecdfbb | 19239 | $_am_arg | $_am_arg:* ) |
42ecbf5e DJ |
19240 | break ;; |
19241 | * ) | |
19242 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
19243 | esac | |
19244 | done | |
81ecdfbb RW |
19245 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
19246 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19247 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
19248 | X"$_am_arg" : 'X\(//\)$' \| \ | |
19249 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
19250 | $as_echo X"$_am_arg" | | |
19251 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19252 | s//\1/ | |
19253 | q | |
19254 | } | |
19255 | /^X\(\/\/\)[^/].*/{ | |
19256 | s//\1/ | |
19257 | q | |
19258 | } | |
19259 | /^X\(\/\/\)$/{ | |
19260 | s//\1/ | |
19261 | q | |
19262 | } | |
19263 | /^X\(\/\).*/{ | |
19264 | s//\1/ | |
19265 | q | |
19266 | } | |
19267 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
19268 | ;; | |
42ecbf5e | 19269 | |
81ecdfbb RW |
19270 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
19271 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19272 | ;; | |
19273 | esac | |
42ecbf5e DJ |
19274 | |
19275 | ||
81ecdfbb RW |
19276 | case $ac_file$ac_mode in |
19277 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
d0ac1c44 | 19278 | # Older Autoconf quotes --file arguments for eval, but not when files |
81ecdfbb RW |
19279 | # are listed without --file. Let's play safe and only enable the eval |
19280 | # if we detect the quoting. | |
5bbe6ec5 NC |
19281 | case $CONFIG_FILES in |
19282 | *\'*) eval set x "$CONFIG_FILES" ;; | |
19283 | *) set x $CONFIG_FILES ;; | |
19284 | esac | |
81ecdfbb | 19285 | shift |
5bbe6ec5 | 19286 | for mf |
81ecdfbb RW |
19287 | do |
19288 | # Strip MF so we end up with the name of the file. | |
5bbe6ec5 NC |
19289 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
19290 | # Check whether this is an Automake generated Makefile or not. | |
19291 | # We used to match only the files named 'Makefile.in', but | |
19292 | # some people rename them; so instead we look at the file content. | |
19293 | # Grep'ing the first line is not enough: some people post-process | |
19294 | # each Makefile.in and add a new line on top of each file to say so. | |
19295 | # Grep'ing the whole file is not good either: AIX grep has a line | |
81ecdfbb | 19296 | # limit of 2048, but all sed's we know have understand at least 4000. |
5bbe6ec5 NC |
19297 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
19298 | dirpart=`$as_dirname -- "$mf" || | |
19299 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19300 | X"$mf" : 'X\(//\)[^/]' \| \ | |
19301 | X"$mf" : 'X\(//\)$' \| \ | |
19302 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
19303 | $as_echo X"$mf" | | |
81ecdfbb RW |
19304 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19305 | s//\1/ | |
19306 | q | |
19307 | } | |
19308 | /^X\(\/\/\)[^/].*/{ | |
19309 | s//\1/ | |
19310 | q | |
19311 | } | |
19312 | /^X\(\/\/\)$/{ | |
19313 | s//\1/ | |
19314 | q | |
19315 | } | |
19316 | /^X\(\/\).*/{ | |
19317 | s//\1/ | |
19318 | q | |
19319 | } | |
19320 | s/.*/./; q'` | |
5bbe6ec5 NC |
19321 | else |
19322 | continue | |
19323 | fi | |
19324 | # Extract the definition of DEPDIR, am__include, and am__quote | |
19325 | # from the Makefile without running 'make'. | |
19326 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
19327 | test -z "$DEPDIR" && continue | |
19328 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
19329 | test -z "$am__include" && continue | |
19330 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
19331 | # Find all dependency output files, they are included files with | |
19332 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
19333 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
19334 | # expansion. | |
19335 | for file in `sed -n " | |
19336 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
19337 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
19338 | # Make sure the directory exists. | |
19339 | test -f "$dirpart/$file" && continue | |
19340 | fdir=`$as_dirname -- "$file" || | |
19341 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19342 | X"$file" : 'X\(//\)[^/]' \| \ | |
19343 | X"$file" : 'X\(//\)$' \| \ | |
19344 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
19345 | $as_echo X"$file" | | |
19346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
81ecdfbb RW |
19347 | s//\1/ |
19348 | q | |
19349 | } | |
5bbe6ec5 | 19350 | /^X\(\/\/\)[^/].*/{ |
b232f81a NA |
19351 | s//\1/ |
19352 | q | |
19353 | } | |
5bbe6ec5 NC |
19354 | /^X\(\/\/\)$/{ |
19355 | s//\1/ | |
19356 | q | |
19357 | } | |
19358 | /^X\(\/\).*/{ | |
81ecdfbb RW |
19359 | s//\1/ |
19360 | q | |
19361 | } | |
19362 | s/.*/./; q'` | |
5bbe6ec5 NC |
19363 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
19364 | # echo "creating $dirpart/$file" | |
19365 | echo '# dummy' > "$dirpart/$file" | |
19366 | done | |
42ecbf5e | 19367 | done |
81ecdfbb | 19368 | } |
d7040cdb | 19369 | ;; |
81ecdfbb | 19370 | "libtool":C) |
d7040cdb SE |
19371 | |
19372 | # See if we are running on zsh, and set the options which allow our | |
19373 | # commands through without removal of \ escapes. | |
19374 | if test -n "${ZSH_VERSION+set}" ; then | |
19375 | setopt NO_GLOB_SUBST | |
19376 | fi | |
19377 | ||
19378 | cfgfile="${ofile}T" | |
19379 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19380 | $RM "$cfgfile" | |
19381 | ||
19382 | cat <<_LT_EOF >> "$cfgfile" | |
19383 | #! $SHELL | |
19384 | ||
19385 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
b214d478 | 19386 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
19387 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19388 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19389 | # | |
b214d478 | 19390 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
3725885a | 19391 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
b214d478 | 19392 | # Written by Gordon Matzigkeit, 1996 |
d7040cdb | 19393 | # |
b214d478 | 19394 | # This file is part of GNU Libtool. |
d7040cdb | 19395 | # |
b214d478 SE |
19396 | # GNU Libtool is free software; you can redistribute it and/or |
19397 | # modify it under the terms of the GNU General Public License as | |
19398 | # published by the Free Software Foundation; either version 2 of | |
19399 | # the License, or (at your option) any later version. | |
d7040cdb | 19400 | # |
b214d478 SE |
19401 | # As a special exception to the GNU General Public License, |
19402 | # if you distribute this file as part of a program or library that | |
19403 | # is built using GNU Libtool, you may include this file under the | |
19404 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 19405 | # |
b214d478 SE |
19406 | # GNU Libtool is distributed in the hope that it will be useful, |
19407 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19408 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19409 | # GNU General Public License for more details. | |
d7040cdb | 19410 | # |
b214d478 SE |
19411 | # You should have received a copy of the GNU General Public License |
19412 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19413 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19414 | # obtained by writing to the Free Software Foundation, Inc., | |
19415 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
19416 | |
19417 | ||
19418 | # The names of the tagged configurations supported by this script. | |
3cb62297 | 19419 | available_tags="CXX " |
d7040cdb SE |
19420 | |
19421 | # ### BEGIN LIBTOOL CONFIG | |
19422 | ||
19423 | # Which release of libtool.m4 was used? | |
19424 | macro_version=$macro_version | |
19425 | macro_revision=$macro_revision | |
19426 | ||
19427 | # Whether or not to build shared libraries. | |
19428 | build_libtool_libs=$enable_shared | |
19429 | ||
19430 | # Whether or not to build static libraries. | |
19431 | build_old_libs=$enable_static | |
19432 | ||
19433 | # What type of objects to build. | |
19434 | pic_mode=$pic_mode | |
19435 | ||
19436 | # Whether or not to optimize for fast installation. | |
19437 | fast_install=$enable_fast_install | |
19438 | ||
3725885a RW |
19439 | # Shell to use when invoking shell scripts. |
19440 | SHELL=$lt_SHELL | |
19441 | ||
19442 | # An echo program that protects backslashes. | |
19443 | ECHO=$lt_ECHO | |
19444 | ||
d7040cdb SE |
19445 | # The host system. |
19446 | host_alias=$host_alias | |
19447 | host=$host | |
19448 | host_os=$host_os | |
19449 | ||
19450 | # The build system. | |
19451 | build_alias=$build_alias | |
19452 | build=$build | |
19453 | build_os=$build_os | |
19454 | ||
19455 | # A sed program that does not truncate output. | |
19456 | SED=$lt_SED | |
19457 | ||
19458 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19459 | Xsed="\$SED -e 1s/^X//" | |
19460 | ||
19461 | # A grep program that handles long lines. | |
19462 | GREP=$lt_GREP | |
19463 | ||
19464 | # An ERE matcher. | |
19465 | EGREP=$lt_EGREP | |
19466 | ||
19467 | # A literal string matcher. | |
19468 | FGREP=$lt_FGREP | |
19469 | ||
19470 | # A BSD- or MS-compatible name lister. | |
19471 | NM=$lt_NM | |
19472 | ||
19473 | # Whether we need soft or hard links. | |
19474 | LN_S=$lt_LN_S | |
19475 | ||
19476 | # What is the maximum length of a command? | |
19477 | max_cmd_len=$max_cmd_len | |
19478 | ||
19479 | # Object file suffix (normally "o"). | |
19480 | objext=$ac_objext | |
19481 | ||
19482 | # Executable file suffix (normally ""). | |
19483 | exeext=$exeext | |
19484 | ||
19485 | # whether the shell understands "unset". | |
19486 | lt_unset=$lt_unset | |
19487 | ||
19488 | # turn spaces into newlines. | |
19489 | SP2NL=$lt_lt_SP2NL | |
19490 | ||
19491 | # turn newlines into spaces. | |
19492 | NL2SP=$lt_lt_NL2SP | |
19493 | ||
b214d478 SE |
19494 | # An object symbol dumper. |
19495 | OBJDUMP=$lt_OBJDUMP | |
19496 | ||
d7040cdb SE |
19497 | # Method to check whether dependent libraries are shared objects. |
19498 | deplibs_check_method=$lt_deplibs_check_method | |
19499 | ||
19500 | # Command to use when deplibs_check_method == "file_magic". | |
19501 | file_magic_cmd=$lt_file_magic_cmd | |
19502 | ||
19503 | # The archiver. | |
19504 | AR=$lt_AR | |
19505 | AR_FLAGS=$lt_AR_FLAGS | |
19506 | ||
19507 | # A symbol stripping program. | |
19508 | STRIP=$lt_STRIP | |
19509 | ||
19510 | # Commands used to install an old-style archive. | |
19511 | RANLIB=$lt_RANLIB | |
19512 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
19513 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19514 | ||
3725885a RW |
19515 | # Whether to use a lock for old archive extraction. |
19516 | lock_old_archive_extraction=$lock_old_archive_extraction | |
19517 | ||
d7040cdb SE |
19518 | # A C compiler. |
19519 | LTCC=$lt_CC | |
19520 | ||
19521 | # LTCC compiler flags. | |
19522 | LTCFLAGS=$lt_CFLAGS | |
19523 | ||
19524 | # Take the output of nm and produce a listing of raw symbols and C names. | |
19525 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19526 | ||
19527 | # Transform the output of nm in a proper C declaration. | |
19528 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19529 | ||
19530 | # Transform the output of nm in a C name address pair. | |
19531 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19532 | ||
b214d478 SE |
19533 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
19534 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
19535 | ||
d7040cdb SE |
19536 | # The name of the directory that contains temporary libtool files. |
19537 | objdir=$objdir | |
19538 | ||
d7040cdb SE |
19539 | # Used to examine libraries when file_magic_cmd begins with "file". |
19540 | MAGIC_CMD=$MAGIC_CMD | |
19541 | ||
19542 | # Must we lock files when doing compilation? | |
19543 | need_locks=$lt_need_locks | |
19544 | ||
b214d478 SE |
19545 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
19546 | DSYMUTIL=$lt_DSYMUTIL | |
19547 | ||
19548 | # Tool to change global to local symbols on Mac OS X. | |
19549 | NMEDIT=$lt_NMEDIT | |
19550 | ||
19551 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19552 | LIPO=$lt_LIPO | |
19553 | ||
19554 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19555 | OTOOL=$lt_OTOOL | |
19556 | ||
19557 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19558 | OTOOL64=$lt_OTOOL64 | |
19559 | ||
d7040cdb SE |
19560 | # Old archive suffix (normally "a"). |
19561 | libext=$libext | |
19562 | ||
19563 | # Shared library suffix (normally ".so"). | |
19564 | shrext_cmds=$lt_shrext_cmds | |
19565 | ||
19566 | # The commands to extract the exported symbol list from a shared archive. | |
19567 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19568 | ||
19569 | # Variables whose values should be saved in libtool wrapper scripts and | |
19570 | # restored at link time. | |
19571 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
19572 | ||
19573 | # Do we need the "lib" prefix for modules? | |
19574 | need_lib_prefix=$need_lib_prefix | |
19575 | ||
19576 | # Do we need a version for libraries? | |
19577 | need_version=$need_version | |
19578 | ||
19579 | # Library versioning type. | |
19580 | version_type=$version_type | |
19581 | ||
19582 | # Shared library runtime path variable. | |
19583 | runpath_var=$runpath_var | |
19584 | ||
19585 | # Shared library path variable. | |
19586 | shlibpath_var=$shlibpath_var | |
19587 | ||
19588 | # Is shlibpath searched before the hard-coded library search path? | |
19589 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19590 | ||
19591 | # Format of library name prefix. | |
19592 | libname_spec=$lt_libname_spec | |
19593 | ||
19594 | # List of archive names. First name is the real one, the rest are links. | |
19595 | # The last name is the one that the linker finds with -lNAME | |
19596 | library_names_spec=$lt_library_names_spec | |
19597 | ||
19598 | # The coded name of the library, if different from the real name. | |
19599 | soname_spec=$lt_soname_spec | |
19600 | ||
3725885a RW |
19601 | # Permission mode override for installation of shared libraries. |
19602 | install_override_mode=$lt_install_override_mode | |
19603 | ||
d7040cdb SE |
19604 | # Command to use after installation of a shared archive. |
19605 | postinstall_cmds=$lt_postinstall_cmds | |
19606 | ||
19607 | # Command to use after uninstallation of a shared archive. | |
19608 | postuninstall_cmds=$lt_postuninstall_cmds | |
19609 | ||
19610 | # Commands used to finish a libtool library installation in a directory. | |
19611 | finish_cmds=$lt_finish_cmds | |
19612 | ||
19613 | # As "finish_cmds", except a single script fragment to be evaled but | |
19614 | # not shown. | |
19615 | finish_eval=$lt_finish_eval | |
19616 | ||
19617 | # Whether we should hardcode library paths into libraries. | |
19618 | hardcode_into_libs=$hardcode_into_libs | |
19619 | ||
19620 | # Compile-time system search path for libraries. | |
19621 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19622 | ||
19623 | # Run-time system search path for libraries. | |
19624 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19625 | ||
19626 | # Whether dlopen is supported. | |
19627 | dlopen_support=$enable_dlopen | |
19628 | ||
19629 | # Whether dlopen of programs is supported. | |
19630 | dlopen_self=$enable_dlopen_self | |
19631 | ||
19632 | # Whether dlopen of statically linked programs is supported. | |
19633 | dlopen_self_static=$enable_dlopen_self_static | |
19634 | ||
19635 | # Commands to strip libraries. | |
19636 | old_striplib=$lt_old_striplib | |
19637 | striplib=$lt_striplib | |
19638 | ||
19639 | ||
19640 | # The linker used to build libraries. | |
19641 | LD=$lt_LD | |
19642 | ||
3725885a RW |
19643 | # How to create reloadable object files. |
19644 | reload_flag=$lt_reload_flag | |
19645 | reload_cmds=$lt_reload_cmds | |
19646 | ||
d7040cdb SE |
19647 | # Commands used to build an old-style archive. |
19648 | old_archive_cmds=$lt_old_archive_cmds | |
19649 | ||
19650 | # A language specific compiler. | |
19651 | CC=$lt_compiler | |
19652 | ||
19653 | # Is the compiler the GNU compiler? | |
19654 | with_gcc=$GCC | |
19655 | ||
19656 | # Compiler flag to turn off builtin functions. | |
19657 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
19658 | ||
19659 | # How to pass a linker flag through the compiler. | |
19660 | wl=$lt_lt_prog_compiler_wl | |
19661 | ||
19662 | # Additional compiler flags for building library objects. | |
19663 | pic_flag=$lt_lt_prog_compiler_pic | |
19664 | ||
19665 | # Compiler flag to prevent dynamic linking. | |
19666 | link_static_flag=$lt_lt_prog_compiler_static | |
19667 | ||
19668 | # Does compiler simultaneously support -c and -o options? | |
19669 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
19670 | ||
19671 | # Whether or not to add -lc for building shared libraries. | |
19672 | build_libtool_need_lc=$archive_cmds_need_lc | |
19673 | ||
19674 | # Whether or not to disallow shared libs when runtime libs are static. | |
19675 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
19676 | ||
19677 | # Compiler flag to allow reflexive dlopens. | |
19678 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
19679 | ||
19680 | # Compiler flag to generate shared objects directly from archives. | |
19681 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
19682 | ||
19683 | # Whether the compiler copes with passing no objects directly. | |
19684 | compiler_needs_object=$lt_compiler_needs_object | |
19685 | ||
19686 | # Create an old-style archive from a shared archive. | |
19687 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19688 | ||
19689 | # Create a temporary old-style archive to link instead of a shared archive. | |
19690 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
19691 | ||
19692 | # Commands used to build a shared archive. | |
19693 | archive_cmds=$lt_archive_cmds | |
19694 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
19695 | ||
19696 | # Commands used to build a loadable module if different from building | |
19697 | # a shared archive. | |
19698 | module_cmds=$lt_module_cmds | |
19699 | module_expsym_cmds=$lt_module_expsym_cmds | |
19700 | ||
19701 | # Whether we are building with GNU ld or not. | |
19702 | with_gnu_ld=$lt_with_gnu_ld | |
19703 | ||
19704 | # Flag that allows shared libraries with undefined symbols to be built. | |
19705 | allow_undefined_flag=$lt_allow_undefined_flag | |
19706 | ||
19707 | # Flag that enforces no undefined symbols. | |
19708 | no_undefined_flag=$lt_no_undefined_flag | |
19709 | ||
19710 | # Flag to hardcode \$libdir into a binary during linking. | |
19711 | # This must work even if \$libdir does not exist | |
19712 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19713 | ||
19714 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19715 | # during linking. This must work even if \$libdir does not exist. | |
19716 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
19717 | ||
19718 | # Whether we need a single "-rpath" flag with a separated argument. | |
19719 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19720 | ||
19721 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19722 | # DIR into the resulting binary. | |
19723 | hardcode_direct=$hardcode_direct | |
19724 | ||
19725 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19726 | # DIR into the resulting binary and the resulting library dependency is | |
19727 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19728 | # library is relocated. | |
19729 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19730 | ||
19731 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19732 | # into the resulting binary. | |
19733 | hardcode_minus_L=$hardcode_minus_L | |
19734 | ||
19735 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19736 | # into the resulting binary. | |
19737 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19738 | ||
19739 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19740 | # into the library and all subsequent libraries and executables linked | |
19741 | # against it. | |
19742 | hardcode_automatic=$hardcode_automatic | |
19743 | ||
19744 | # Set to yes if linker adds runtime paths of dependent libraries | |
19745 | # to runtime path list. | |
19746 | inherit_rpath=$inherit_rpath | |
19747 | ||
19748 | # Whether libtool must link a program against all its dependency libraries. | |
19749 | link_all_deplibs=$link_all_deplibs | |
19750 | ||
19751 | # Fix the shell variable \$srcfile for the compiler. | |
19752 | fix_srcfile_path=$lt_fix_srcfile_path | |
19753 | ||
19754 | # Set to "yes" if exported symbols are required. | |
19755 | always_export_symbols=$always_export_symbols | |
19756 | ||
19757 | # The commands to list exported symbols. | |
19758 | export_symbols_cmds=$lt_export_symbols_cmds | |
19759 | ||
19760 | # Symbols that should not be listed in the preloaded symbols. | |
19761 | exclude_expsyms=$lt_exclude_expsyms | |
19762 | ||
19763 | # Symbols that must always be exported. | |
19764 | include_expsyms=$lt_include_expsyms | |
19765 | ||
19766 | # Commands necessary for linking programs (against libraries) with templates. | |
19767 | prelink_cmds=$lt_prelink_cmds | |
19768 | ||
19769 | # Specify filename containing input files. | |
19770 | file_list_spec=$lt_file_list_spec | |
19771 | ||
19772 | # How to hardcode a shared library path into an executable. | |
19773 | hardcode_action=$hardcode_action | |
19774 | ||
3cb62297 L |
19775 | # The directories searched by this compiler when creating a shared library. |
19776 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
19777 | ||
19778 | # Dependencies to place before and after the objects being linked to | |
19779 | # create a shared library. | |
19780 | predep_objects=$lt_predep_objects | |
19781 | postdep_objects=$lt_postdep_objects | |
19782 | predeps=$lt_predeps | |
19783 | postdeps=$lt_postdeps | |
19784 | ||
19785 | # The library search path used internally by the compiler when linking | |
19786 | # a shared library. | |
19787 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
19788 | ||
d7040cdb SE |
19789 | # ### END LIBTOOL CONFIG |
19790 | ||
19791 | _LT_EOF | |
19792 | ||
19793 | case $host_os in | |
19794 | aix3*) | |
19795 | cat <<\_LT_EOF >> "$cfgfile" | |
19796 | # AIX sometimes has problems with the GCC collect2 program. For some | |
19797 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
19798 | # vanish in a puff of smoke. | |
19799 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
19800 | COLLECT_NAMES= | |
19801 | export COLLECT_NAMES | |
19802 | fi | |
19803 | _LT_EOF | |
19804 | ;; | |
19805 | esac | |
19806 | ||
19807 | ||
19808 | ltmain="$ac_aux_dir/ltmain.sh" | |
19809 | ||
19810 | ||
19811 | # We use sed instead of cat because bash on DJGPP gets confused if | |
19812 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
19813 | # text mode, it properly converts lines to CR/LF. This bash problem | |
19814 | # is reportedly fixed, but why not run on old versions too? | |
19815 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
19816 | || (rm -f "$cfgfile"; exit 1) | |
19817 | ||
19818 | case $xsi_shell in | |
19819 | yes) | |
19820 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 19821 | |
d7040cdb SE |
19822 | # func_dirname file append nondir_replacement |
19823 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19824 | # otherwise set result to NONDIR_REPLACEMENT. | |
19825 | func_dirname () | |
19826 | { | |
19827 | case ${1} in | |
19828 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19829 | * ) func_dirname_result="${3}" ;; | |
19830 | esac | |
19831 | } | |
19832 | ||
19833 | # func_basename file | |
19834 | func_basename () | |
19835 | { | |
19836 | func_basename_result="${1##*/}" | |
19837 | } | |
19838 | ||
b214d478 SE |
19839 | # func_dirname_and_basename file append nondir_replacement |
19840 | # perform func_basename and func_dirname in a single function | |
19841 | # call: | |
19842 | # dirname: Compute the dirname of FILE. If nonempty, | |
19843 | # add APPEND to the result, otherwise set result | |
19844 | # to NONDIR_REPLACEMENT. | |
19845 | # value returned in "$func_dirname_result" | |
19846 | # basename: Compute filename of FILE. | |
19847 | # value retuned in "$func_basename_result" | |
19848 | # Implementation must be kept synchronized with func_dirname | |
19849 | # and func_basename. For efficiency, we do not delegate to | |
19850 | # those functions but instead duplicate the functionality here. | |
19851 | func_dirname_and_basename () | |
19852 | { | |
19853 | case ${1} in | |
19854 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19855 | * ) func_dirname_result="${3}" ;; | |
19856 | esac | |
19857 | func_basename_result="${1##*/}" | |
19858 | } | |
19859 | ||
d7040cdb SE |
19860 | # func_stripname prefix suffix name |
19861 | # strip PREFIX and SUFFIX off of NAME. | |
19862 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19863 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19864 | # dot (in which case that matches only a dot). | |
19865 | func_stripname () | |
19866 | { | |
19867 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
19868 | # positional parameters, so assign one to ordinary parameter first. | |
19869 | func_stripname_result=${3} | |
19870 | func_stripname_result=${func_stripname_result#"${1}"} | |
19871 | func_stripname_result=${func_stripname_result%"${2}"} | |
19872 | } | |
19873 | ||
19874 | # func_opt_split | |
19875 | func_opt_split () | |
19876 | { | |
19877 | func_opt_split_opt=${1%%=*} | |
19878 | func_opt_split_arg=${1#*=} | |
19879 | } | |
19880 | ||
19881 | # func_lo2o object | |
19882 | func_lo2o () | |
19883 | { | |
19884 | case ${1} in | |
19885 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
19886 | *) func_lo2o_result=${1} ;; | |
19887 | esac | |
19888 | } | |
b214d478 SE |
19889 | |
19890 | # func_xform libobj-or-source | |
19891 | func_xform () | |
19892 | { | |
19893 | func_xform_result=${1%.*}.lo | |
19894 | } | |
19895 | ||
19896 | # func_arith arithmetic-term... | |
19897 | func_arith () | |
19898 | { | |
19899 | func_arith_result=$(( $* )) | |
19900 | } | |
19901 | ||
19902 | # func_len string | |
19903 | # STRING may not start with a hyphen. | |
19904 | func_len () | |
19905 | { | |
19906 | func_len_result=${#1} | |
19907 | } | |
19908 | ||
d7040cdb SE |
19909 | _LT_EOF |
19910 | ;; | |
19911 | *) # Bourne compatible functions. | |
19912 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 19913 | |
d7040cdb SE |
19914 | # func_dirname file append nondir_replacement |
19915 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19916 | # otherwise set result to NONDIR_REPLACEMENT. | |
19917 | func_dirname () | |
19918 | { | |
19919 | # Extract subdirectory from the argument. | |
3725885a | 19920 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
d7040cdb SE |
19921 | if test "X$func_dirname_result" = "X${1}"; then |
19922 | func_dirname_result="${3}" | |
19923 | else | |
19924 | func_dirname_result="$func_dirname_result${2}" | |
19925 | fi | |
19926 | } | |
19927 | ||
19928 | # func_basename file | |
19929 | func_basename () | |
19930 | { | |
3725885a | 19931 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
d7040cdb SE |
19932 | } |
19933 | ||
b214d478 | 19934 | |
d7040cdb SE |
19935 | # func_stripname prefix suffix name |
19936 | # strip PREFIX and SUFFIX off of NAME. | |
19937 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19938 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19939 | # dot (in which case that matches only a dot). | |
19940 | # func_strip_suffix prefix name | |
19941 | func_stripname () | |
19942 | { | |
19943 | case ${2} in | |
3725885a RW |
19944 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
19945 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
d7040cdb SE |
19946 | esac |
19947 | } | |
19948 | ||
19949 | # sed scripts: | |
19950 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
19951 | my_sed_long_arg='1s/^-[^=]*=//' | |
19952 | ||
19953 | # func_opt_split | |
19954 | func_opt_split () | |
19955 | { | |
3725885a RW |
19956 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
19957 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
d7040cdb SE |
19958 | } |
19959 | ||
19960 | # func_lo2o object | |
19961 | func_lo2o () | |
19962 | { | |
3725885a | 19963 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
d7040cdb | 19964 | } |
b214d478 SE |
19965 | |
19966 | # func_xform libobj-or-source | |
19967 | func_xform () | |
19968 | { | |
3725885a | 19969 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
b214d478 SE |
19970 | } |
19971 | ||
19972 | # func_arith arithmetic-term... | |
19973 | func_arith () | |
19974 | { | |
19975 | func_arith_result=`expr "$@"` | |
19976 | } | |
19977 | ||
19978 | # func_len string | |
19979 | # STRING may not start with a hyphen. | |
19980 | func_len () | |
19981 | { | |
19982 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
19983 | } | |
19984 | ||
d7040cdb SE |
19985 | _LT_EOF |
19986 | esac | |
19987 | ||
19988 | case $lt_shell_append in | |
19989 | yes) | |
19990 | cat << \_LT_EOF >> "$cfgfile" | |
19991 | ||
19992 | # func_append var value | |
19993 | # Append VALUE to the end of shell variable VAR. | |
19994 | func_append () | |
19995 | { | |
19996 | eval "$1+=\$2" | |
19997 | } | |
19998 | _LT_EOF | |
19999 | ;; | |
20000 | *) | |
20001 | cat << \_LT_EOF >> "$cfgfile" | |
20002 | ||
20003 | # func_append var value | |
20004 | # Append VALUE to the end of shell variable VAR. | |
20005 | func_append () | |
20006 | { | |
20007 | eval "$1=\$$1\$2" | |
20008 | } | |
b214d478 | 20009 | |
d7040cdb SE |
20010 | _LT_EOF |
20011 | ;; | |
20012 | esac | |
20013 | ||
20014 | ||
20015 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
20016 | || (rm -f "$cfgfile"; exit 1) | |
20017 | ||
20018 | mv -f "$cfgfile" "$ofile" || | |
20019 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
20020 | chmod +x "$ofile" | |
20021 | ||
3cb62297 L |
20022 | |
20023 | cat <<_LT_EOF >> "$ofile" | |
20024 | ||
20025 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
20026 | ||
20027 | # The linker used to build libraries. | |
20028 | LD=$lt_LD_CXX | |
20029 | ||
20030 | # How to create reloadable object files. | |
20031 | reload_flag=$lt_reload_flag_CXX | |
20032 | reload_cmds=$lt_reload_cmds_CXX | |
20033 | ||
20034 | # Commands used to build an old-style archive. | |
20035 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
20036 | ||
20037 | # A language specific compiler. | |
20038 | CC=$lt_compiler_CXX | |
20039 | ||
20040 | # Is the compiler the GNU compiler? | |
20041 | with_gcc=$GCC_CXX | |
20042 | ||
20043 | # Compiler flag to turn off builtin functions. | |
20044 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
20045 | ||
20046 | # How to pass a linker flag through the compiler. | |
20047 | wl=$lt_lt_prog_compiler_wl_CXX | |
20048 | ||
20049 | # Additional compiler flags for building library objects. | |
20050 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
20051 | ||
20052 | # Compiler flag to prevent dynamic linking. | |
20053 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
20054 | ||
20055 | # Does compiler simultaneously support -c and -o options? | |
20056 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
20057 | ||
20058 | # Whether or not to add -lc for building shared libraries. | |
20059 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
20060 | ||
20061 | # Whether or not to disallow shared libs when runtime libs are static. | |
20062 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
20063 | ||
20064 | # Compiler flag to allow reflexive dlopens. | |
20065 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
20066 | ||
20067 | # Compiler flag to generate shared objects directly from archives. | |
20068 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
20069 | ||
20070 | # Whether the compiler copes with passing no objects directly. | |
20071 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
20072 | ||
20073 | # Create an old-style archive from a shared archive. | |
20074 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
20075 | ||
20076 | # Create a temporary old-style archive to link instead of a shared archive. | |
20077 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
20078 | ||
20079 | # Commands used to build a shared archive. | |
20080 | archive_cmds=$lt_archive_cmds_CXX | |
20081 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
20082 | ||
20083 | # Commands used to build a loadable module if different from building | |
20084 | # a shared archive. | |
20085 | module_cmds=$lt_module_cmds_CXX | |
20086 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
20087 | ||
20088 | # Whether we are building with GNU ld or not. | |
20089 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
20090 | ||
20091 | # Flag that allows shared libraries with undefined symbols to be built. | |
20092 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
20093 | ||
20094 | # Flag that enforces no undefined symbols. | |
20095 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
20096 | ||
20097 | # Flag to hardcode \$libdir into a binary during linking. | |
20098 | # This must work even if \$libdir does not exist | |
20099 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
20100 | ||
20101 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
20102 | # during linking. This must work even if \$libdir does not exist. | |
20103 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
20104 | ||
20105 | # Whether we need a single "-rpath" flag with a separated argument. | |
20106 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
20107 | ||
20108 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
20109 | # DIR into the resulting binary. | |
20110 | hardcode_direct=$hardcode_direct_CXX | |
20111 | ||
20112 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
20113 | # DIR into the resulting binary and the resulting library dependency is | |
20114 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
20115 | # library is relocated. | |
20116 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
20117 | ||
20118 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
20119 | # into the resulting binary. | |
20120 | hardcode_minus_L=$hardcode_minus_L_CXX | |
20121 | ||
20122 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
20123 | # into the resulting binary. | |
20124 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
20125 | ||
20126 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
20127 | # into the library and all subsequent libraries and executables linked | |
20128 | # against it. | |
20129 | hardcode_automatic=$hardcode_automatic_CXX | |
20130 | ||
20131 | # Set to yes if linker adds runtime paths of dependent libraries | |
20132 | # to runtime path list. | |
20133 | inherit_rpath=$inherit_rpath_CXX | |
20134 | ||
20135 | # Whether libtool must link a program against all its dependency libraries. | |
20136 | link_all_deplibs=$link_all_deplibs_CXX | |
20137 | ||
20138 | # Fix the shell variable \$srcfile for the compiler. | |
20139 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
20140 | ||
20141 | # Set to "yes" if exported symbols are required. | |
20142 | always_export_symbols=$always_export_symbols_CXX | |
20143 | ||
20144 | # The commands to list exported symbols. | |
20145 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
20146 | ||
20147 | # Symbols that should not be listed in the preloaded symbols. | |
20148 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
20149 | ||
20150 | # Symbols that must always be exported. | |
20151 | include_expsyms=$lt_include_expsyms_CXX | |
20152 | ||
20153 | # Commands necessary for linking programs (against libraries) with templates. | |
20154 | prelink_cmds=$lt_prelink_cmds_CXX | |
20155 | ||
20156 | # Specify filename containing input files. | |
20157 | file_list_spec=$lt_file_list_spec_CXX | |
20158 | ||
20159 | # How to hardcode a shared library path into an executable. | |
20160 | hardcode_action=$hardcode_action_CXX | |
20161 | ||
20162 | # The directories searched by this compiler when creating a shared library. | |
20163 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
20164 | ||
20165 | # Dependencies to place before and after the objects being linked to | |
20166 | # create a shared library. | |
20167 | predep_objects=$lt_predep_objects_CXX | |
20168 | postdep_objects=$lt_postdep_objects_CXX | |
20169 | predeps=$lt_predeps_CXX | |
20170 | postdeps=$lt_postdeps_CXX | |
20171 | ||
20172 | # The library search path used internally by the compiler when linking | |
20173 | # a shared library. | |
20174 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
20175 | ||
20176 | # ### END LIBTOOL TAG CONFIG: CXX | |
20177 | _LT_EOF | |
20178 | ||
42ecbf5e | 20179 | ;; |
81ecdfbb | 20180 | "default-1":C) |
20e95c23 DJ |
20181 | for ac_file in $CONFIG_FILES; do |
20182 | # Support "outfile[:infile[:infile...]]" | |
20183 | case "$ac_file" in | |
20184 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20185 | esac | |
20186 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
20187 | case "$ac_file" in */Makefile.in) | |
20188 | # Adjust a relative srcdir. | |
20189 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
3cac54d2 | 20190 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
20e95c23 DJ |
20191 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
20192 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
20193 | # In autoconf-2.50 it is called $srcdir. | |
20194 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
20195 | case "$ac_given_srcdir" in | |
20196 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
20197 | /*) top_srcdir="$ac_given_srcdir" ;; | |
20198 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
20199 | esac | |
20200 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
20201 | rm -f "$ac_dir/POTFILES" | |
20202 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
20203 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
20204 | POMAKEFILEDEPS="POTFILES.in" | |
20205 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
20206 | # on $ac_dir but don't depend on user-specified configuration | |
20207 | # parameters. | |
20208 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
20209 | # The LINGUAS file contains the set of available languages. | |
20210 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
37a42ee9 | 20211 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" |
20e95c23 DJ |
20212 | fi |
20213 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
20214 | # Hide the ALL_LINGUAS assigment from automake. | |
20215 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
20216 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
20217 | else | |
37a42ee9 | 20218 | # The set of available languages was given in configure.ac. |
20e95c23 DJ |
20219 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
20220 | fi | |
20221 | case "$ac_given_srcdir" in | |
20222 | .) srcdirpre= ;; | |
20223 | *) srcdirpre='$(srcdir)/' ;; | |
20224 | esac | |
20225 | POFILES= | |
20226 | GMOFILES= | |
20227 | UPDATEPOFILES= | |
20228 | DUMMYPOFILES= | |
20229 | for lang in $ALL_LINGUAS; do | |
20230 | POFILES="$POFILES $srcdirpre$lang.po" | |
20231 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
20232 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
20233 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
20234 | done | |
20235 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
20236 | # environment variable. | |
20237 | INST_LINGUAS= | |
20238 | if test -n "$ALL_LINGUAS"; then | |
20239 | for presentlang in $ALL_LINGUAS; do | |
20240 | useit=no | |
20241 | if test "%UNSET%" != "$LINGUAS"; then | |
20242 | desiredlanguages="$LINGUAS" | |
20243 | else | |
20244 | desiredlanguages="$ALL_LINGUAS" | |
20245 | fi | |
20246 | for desiredlang in $desiredlanguages; do | |
20247 | # Use the presentlang catalog if desiredlang is | |
20248 | # a. equal to presentlang, or | |
20249 | # b. a variant of presentlang (because in this case, | |
20250 | # presentlang can be used as a fallback for messages | |
20251 | # which are not translated in the desiredlang catalog). | |
20252 | case "$desiredlang" in | |
20253 | "$presentlang"*) useit=yes;; | |
20254 | esac | |
20255 | done | |
20256 | if test $useit = yes; then | |
20257 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
20258 | fi | |
20259 | done | |
20260 | fi | |
20261 | CATALOGS= | |
20262 | if test -n "$INST_LINGUAS"; then | |
20263 | for lang in $INST_LINGUAS; do | |
20264 | CATALOGS="$CATALOGS $lang.gmo" | |
20265 | done | |
20266 | fi | |
20267 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
20268 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
20269 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
20270 | if test -f "$f"; then | |
20271 | case "$f" in | |
20272 | *.orig | *.bak | *~) ;; | |
20273 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
20274 | esac | |
20275 | fi | |
20276 | done | |
20277 | fi | |
20278 | ;; | |
20279 | esac | |
20280 | done ;; | |
33589acb AM |
20281 | "default":C) |
20282 | case "$srcdir" in | |
20283 | .) srcdirpre= ;; | |
20284 | *) srcdirpre='$(srcdir)/' ;; | |
20285 | esac | |
20286 | POFILES= | |
20287 | GMOFILES= | |
20288 | for lang in dummy $OBSOLETE_ALL_LINGUAS; do | |
20289 | if test $lang != dummy; then | |
20290 | POFILES="$POFILES $srcdirpre$lang.po" | |
20291 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
20292 | fi | |
20293 | done | |
20294 | sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \ | |
20295 | -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \ | |
20296 | -e "s,@POFILES@,$POFILES," \ | |
20297 | -e "s,@GMOFILES@,$GMOFILES," \ | |
20298 | po/Makefile.in > po/Makefile ;; | |
81ecdfbb | 20299 | |
42ecbf5e | 20300 | esac |
81ecdfbb | 20301 | done # for ac_tag |
42ecbf5e | 20302 | |
42ecbf5e | 20303 | |
81ecdfbb | 20304 | as_fn_exit 0 |
42ecbf5e | 20305 | _ACEOF |
42ecbf5e DJ |
20306 | ac_clean_files=$ac_clean_files_save |
20307 | ||
81ecdfbb | 20308 | test $ac_write_fail = 0 || |
d0ac1c44 | 20309 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 20310 | |
42ecbf5e DJ |
20311 | |
20312 | # configure is writing to config.log, and then calls config.status. | |
20313 | # config.status does its own redirection, appending to config.log. | |
20314 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20315 | # by configure, so config.status won't be able to write to it; its | |
20316 | # output is simply discarded. So we exec the FD to /dev/null, | |
20317 | # effectively closing config.log, so it can be properly (re)opened and | |
20318 | # appended to by config.status. When coming back to configure, we | |
20319 | # need to make the FD available again. | |
20320 | if test "$no_create" != yes; then | |
20321 | ac_cs_success=: | |
20322 | ac_config_status_args= | |
20323 | test "$silent" = yes && | |
20324 | ac_config_status_args="$ac_config_status_args --quiet" | |
20325 | exec 5>/dev/null | |
20326 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20327 | exec 5>>config.log | |
20328 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20329 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 20330 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
20331 | fi |
20332 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
20333 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20334 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
42ecbf5e | 20335 | fi |
252b5132 | 20336 | |
d546b610 L |
20337 | |
20338 | ||
20339 | touch config.status.tmp | |
20340 | if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then | |
20341 | sed '/as_fn_exit 0/i \ | |
20342 | sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \ | |
20343 | touch --reference=Makefile Makefile.tmp \ | |
20344 | mv Makefile.tmp Makefile \ | |
20345 | ' config.status > config.status.tmp | |
20346 | touch --reference=config.status config.status.tmp | |
20347 | mv config.status.tmp config.status | |
20348 | chmod +x config.status | |
20349 | sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp | |
20350 | touch --reference=Makefile Makefile.tmp | |
20351 | mv Makefile.tmp Makefile | |
20352 | else | |
20353 | rm -f config.status.tmp | |
20354 | fi |