Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
b19d852d | 3 | # Generated by GNU Autoconf 2.69 for ld 2.35.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' | |
b19d852d NC |
590 | PACKAGE_VERSION='2.35.50' |
591 | PACKAGE_STRING='ld 2.35.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 | |
87279e3c | 637 | TESTCTFLIB |
81ecdfbb RW |
638 | TESTBFDLIB |
639 | EMULATION_LIBPATH | |
640 | LIB_PATH | |
641 | EMUL_EXTRA_OFILES | |
642 | EMULATION_OFILES | |
50ff67e6 | 643 | TDIRS |
81ecdfbb | 644 | EMUL |
c58212ea L |
645 | elf_plt_unwind_list_options |
646 | elf_shlib_list_options | |
647 | elf_list_options | |
81ecdfbb | 648 | STRINGIFY |
1ff6de03 NA |
649 | zlibinc |
650 | zlibdir | |
02ecc8e9 | 651 | enable_initfini_array |
81ecdfbb | 652 | NATIVE_LIB_DIRS |
81ecdfbb RW |
653 | HDEFINES |
654 | do_compare | |
655 | GENINSRC_NEVER_FALSE | |
656 | GENINSRC_NEVER_TRUE | |
81ecdfbb RW |
657 | LEXLIB |
658 | LEX_OUTPUT_ROOT | |
659 | LEX | |
660 | YFLAGS | |
661 | YACC | |
662 | MSGMERGE | |
663 | MSGFMT | |
664 | MKINSTALLDIRS | |
665 | CATOBJEXT | |
666 | GENCAT | |
667 | INSTOBJEXT | |
668 | DATADIRNAME | |
669 | CATALOGS | |
670 | POSUB | |
671 | GMSGFMT | |
672 | XGETTEXT | |
673 | INCINTL | |
674 | LIBINTL_DEP | |
675 | LIBINTL | |
676 | USE_NLS | |
6757cf57 | 677 | WARN_WRITE_STRINGS |
b879806f | 678 | NO_WERROR |
c5da1932 | 679 | WARN_CFLAGS_FOR_BUILD |
b879806f | 680 | WARN_CFLAGS |
7cdfc346 | 681 | enable_libctf |
094e34f2 NA |
682 | ENABLE_LIBCTF_FALSE |
683 | ENABLE_LIBCTF_TRUE | |
b879806f AM |
684 | installed_linker |
685 | install_as_default | |
686 | TARGET_SYSTEM_ROOT_DEFINE | |
687 | TARGET_SYSTEM_ROOT | |
688 | use_sysroot | |
c8693053 | 689 | LARGEFILE_CPPFLAGS |
3cb62297 | 690 | CXXCPP |
81ecdfbb RW |
691 | OTOOL64 |
692 | OTOOL | |
693 | LIPO | |
694 | NMEDIT | |
695 | DSYMUTIL | |
81ecdfbb RW |
696 | RANLIB |
697 | AR | |
698 | OBJDUMP | |
699 | LN_S | |
700 | NM | |
701 | ac_ct_DUMPBIN | |
702 | DUMPBIN | |
703 | LD | |
704 | FGREP | |
705 | SED | |
706 | LIBTOOL | |
b879806f | 707 | EGREP |
b879806f | 708 | CPP |
68880f31 | 709 | GREP |
3cb62297 L |
710 | am__fastdepCXX_FALSE |
711 | am__fastdepCXX_TRUE | |
712 | CXXDEPMODE | |
713 | ac_ct_CXX | |
714 | CXXFLAGS | |
715 | CXX | |
64ac50ac RW |
716 | MAINT |
717 | MAINTAINER_MODE_FALSE | |
718 | MAINTAINER_MODE_TRUE | |
d0ac1c44 SM |
719 | AM_BACKSLASH |
720 | AM_DEFAULT_VERBOSITY | |
721 | AM_DEFAULT_V | |
722 | AM_V | |
81ecdfbb RW |
723 | am__fastdepCC_FALSE |
724 | am__fastdepCC_TRUE | |
725 | CCDEPMODE | |
6eb7d830 | 726 | am__nodep |
81ecdfbb RW |
727 | AMDEPBACKSLASH |
728 | AMDEP_FALSE | |
729 | AMDEP_TRUE | |
730 | am__quote | |
731 | am__include | |
732 | DEPDIR | |
733 | am__untar | |
734 | am__tar | |
735 | AMTAR | |
736 | am__leading_dot | |
737 | SET_MAKE | |
738 | AWK | |
739 | mkdir_p | |
740 | MKDIR_P | |
741 | INSTALL_STRIP_PROGRAM | |
742 | STRIP | |
743 | install_sh | |
744 | MAKEINFO | |
745 | AUTOHEADER | |
746 | AUTOMAKE | |
747 | AUTOCONF | |
748 | ACLOCAL | |
749 | VERSION | |
750 | PACKAGE | |
751 | CYGPATH_W | |
752 | am__isrc | |
753 | INSTALL_DATA | |
754 | INSTALL_SCRIPT | |
755 | INSTALL_PROGRAM | |
756 | OBJEXT | |
757 | EXEEXT | |
758 | ac_ct_CC | |
759 | CPPFLAGS | |
760 | LDFLAGS | |
761 | CFLAGS | |
762 | CC | |
763 | target_os | |
764 | target_vendor | |
765 | target_cpu | |
766 | target | |
767 | host_os | |
768 | host_vendor | |
769 | host_cpu | |
770 | host | |
771 | build_os | |
772 | build_vendor | |
773 | build_cpu | |
774 | build | |
775 | target_alias | |
776 | host_alias | |
777 | build_alias | |
778 | LIBS | |
779 | ECHO_T | |
780 | ECHO_N | |
781 | ECHO_C | |
782 | DEFS | |
783 | mandir | |
784 | localedir | |
785 | libdir | |
786 | psdir | |
787 | pdfdir | |
788 | dvidir | |
789 | htmldir | |
790 | infodir | |
791 | docdir | |
792 | oldincludedir | |
793 | includedir | |
794 | localstatedir | |
795 | sharedstatedir | |
796 | sysconfdir | |
797 | datadir | |
798 | datarootdir | |
799 | libexecdir | |
800 | sbindir | |
801 | bindir | |
802 | program_transform_name | |
803 | prefix | |
804 | exec_prefix | |
805 | PACKAGE_URL | |
806 | PACKAGE_BUGREPORT | |
807 | PACKAGE_STRING | |
808 | PACKAGE_VERSION | |
809 | PACKAGE_TARNAME | |
810 | PACKAGE_NAME | |
811 | PATH_SEPARATOR | |
812 | SHELL' | |
50ff67e6 | 813 | ac_subst_files='' |
81ecdfbb RW |
814 | ac_user_opts=' |
815 | enable_option_checking | |
816 | enable_dependency_tracking | |
d0ac1c44 | 817 | enable_silent_rules |
64ac50ac | 818 | enable_maintainer_mode |
b879806f AM |
819 | enable_shared |
820 | enable_static | |
821 | with_pic | |
822 | enable_fast_install | |
823 | with_gnu_ld | |
824 | enable_libtool_lock | |
825 | enable_plugins | |
826 | enable_largefile | |
81ecdfbb RW |
827 | with_lib_path |
828 | enable_targets | |
829 | enable_64_bit_bfd | |
830 | with_sysroot | |
4fda8867 | 831 | enable_gold |
81ecdfbb | 832 | enable_got |
6c3bc0f8 | 833 | enable_compressed_debug_sections |
6734f10a | 834 | enable_new_dtags |
647e4d46 | 835 | enable_relro |
b32632c4 | 836 | enable_textrel_check |
f6aec96d | 837 | enable_separate_code |
2760f24c | 838 | enable_default_hash_style |
094e34f2 | 839 | enable_libctf |
81ecdfbb RW |
840 | enable_werror |
841 | enable_build_warnings | |
81ecdfbb | 842 | enable_nls |
02ecc8e9 | 843 | enable_initfini_array |
1ff6de03 | 844 | with_system_zlib |
81ecdfbb RW |
845 | ' |
846 | ac_precious_vars='build_alias | |
847 | host_alias | |
848 | target_alias | |
849 | CC | |
850 | CFLAGS | |
851 | LDFLAGS | |
852 | LIBS | |
853 | CPPFLAGS | |
3cb62297 L |
854 | CXX |
855 | CXXFLAGS | |
856 | CCC | |
b879806f | 857 | CPP |
3cb62297 | 858 | CXXCPP |
81ecdfbb RW |
859 | YACC |
860 | YFLAGS' | |
861 | ||
252b5132 RH |
862 | |
863 | # Initialize some variables set by options. | |
42ecbf5e DJ |
864 | ac_init_help= |
865 | ac_init_version=false | |
81ecdfbb RW |
866 | ac_unrecognized_opts= |
867 | ac_unrecognized_sep= | |
252b5132 RH |
868 | # The variables have the same names as the options, with |
869 | # dashes changed to underlines. | |
42ecbf5e | 870 | cache_file=/dev/null |
252b5132 | 871 | exec_prefix=NONE |
252b5132 | 872 | no_create= |
252b5132 RH |
873 | no_recursion= |
874 | prefix=NONE | |
875 | program_prefix=NONE | |
876 | program_suffix=NONE | |
877 | program_transform_name=s,x,x, | |
878 | silent= | |
879 | site= | |
880 | srcdir= | |
252b5132 RH |
881 | verbose= |
882 | x_includes=NONE | |
883 | x_libraries=NONE | |
42ecbf5e DJ |
884 | |
885 | # Installation directory options. | |
886 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
887 | # and all the variables that are supposed to be based on exec_prefix | |
888 | # by default will actually change. | |
889 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 890 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
891 | bindir='${exec_prefix}/bin' |
892 | sbindir='${exec_prefix}/sbin' | |
893 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
894 | datarootdir='${prefix}/share' |
895 | datadir='${datarootdir}' | |
252b5132 RH |
896 | sysconfdir='${prefix}/etc' |
897 | sharedstatedir='${prefix}/com' | |
898 | localstatedir='${prefix}/var' | |
252b5132 RH |
899 | includedir='${prefix}/include' |
900 | oldincludedir='/usr/include' | |
2e98a7bd | 901 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
902 | infodir='${datarootdir}/info' |
903 | htmldir='${docdir}' | |
904 | dvidir='${docdir}' | |
905 | pdfdir='${docdir}' | |
906 | psdir='${docdir}' | |
907 | libdir='${exec_prefix}/lib' | |
908 | localedir='${datarootdir}/locale' | |
909 | mandir='${datarootdir}/man' | |
252b5132 | 910 | |
252b5132 | 911 | ac_prev= |
81ecdfbb | 912 | ac_dashdash= |
252b5132 RH |
913 | for ac_option |
914 | do | |
252b5132 RH |
915 | # If the previous option needs an argument, assign it. |
916 | if test -n "$ac_prev"; then | |
81ecdfbb | 917 | eval $ac_prev=\$ac_option |
252b5132 RH |
918 | ac_prev= |
919 | continue | |
920 | fi | |
921 | ||
81ecdfbb | 922 | case $ac_option in |
d0ac1c44 SM |
923 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
924 | *=) ac_optarg= ;; | |
925 | *) ac_optarg=yes ;; | |
81ecdfbb | 926 | esac |
252b5132 RH |
927 | |
928 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
929 | ||
81ecdfbb RW |
930 | case $ac_dashdash$ac_option in |
931 | --) | |
932 | ac_dashdash=yes ;; | |
252b5132 RH |
933 | |
934 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
935 | ac_prev=bindir ;; | |
936 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
42ecbf5e | 937 | bindir=$ac_optarg ;; |
252b5132 RH |
938 | |
939 | -build | --build | --buil | --bui | --bu) | |
42ecbf5e | 940 | ac_prev=build_alias ;; |
252b5132 | 941 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
42ecbf5e | 942 | build_alias=$ac_optarg ;; |
252b5132 RH |
943 | |
944 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
945 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
946 | ac_prev=cache_file ;; | |
947 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
948 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
42ecbf5e DJ |
949 | cache_file=$ac_optarg ;; |
950 | ||
951 | --config-cache | -C) | |
952 | cache_file=config.cache ;; | |
252b5132 | 953 | |
81ecdfbb | 954 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 955 | ac_prev=datadir ;; |
81ecdfbb | 956 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
42ecbf5e | 957 | datadir=$ac_optarg ;; |
252b5132 | 958 | |
81ecdfbb RW |
959 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
960 | | --dataroo | --dataro | --datar) | |
961 | ac_prev=datarootdir ;; | |
962 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
963 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
964 | datarootdir=$ac_optarg ;; | |
965 | ||
252b5132 | 966 | -disable-* | --disable-*) |
81ecdfbb | 967 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 968 | # Reject names that are not valid shell variable names. |
81ecdfbb | 969 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 970 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
971 | ac_useropt_orig=$ac_useropt |
972 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
973 | case $ac_user_opts in | |
974 | *" | |
975 | "enable_$ac_useropt" | |
976 | "*) ;; | |
977 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
978 | ac_unrecognized_sep=', ';; | |
979 | esac | |
980 | eval enable_$ac_useropt=no ;; | |
981 | ||
982 | -docdir | --docdir | --docdi | --doc | --do) | |
983 | ac_prev=docdir ;; | |
984 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
985 | docdir=$ac_optarg ;; | |
986 | ||
987 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
988 | ac_prev=dvidir ;; | |
989 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
990 | dvidir=$ac_optarg ;; | |
252b5132 RH |
991 | |
992 | -enable-* | --enable-*) | |
81ecdfbb | 993 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 994 | # Reject names that are not valid shell variable names. |
81ecdfbb | 995 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 996 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
997 | ac_useropt_orig=$ac_useropt |
998 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
999 | case $ac_user_opts in | |
1000 | *" | |
1001 | "enable_$ac_useropt" | |
1002 | "*) ;; | |
1003 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1004 | ac_unrecognized_sep=', ';; | |
252b5132 | 1005 | esac |
81ecdfbb | 1006 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1007 | |
1008 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1009 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1010 | | --exec | --exe | --ex) | |
1011 | ac_prev=exec_prefix ;; | |
1012 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1013 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1014 | | --exec=* | --exe=* | --ex=*) | |
42ecbf5e | 1015 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
1016 | |
1017 | -gas | --gas | --ga | --g) | |
1018 | # Obsolete; use --with-gas. | |
1019 | with_gas=yes ;; | |
1020 | ||
42ecbf5e DJ |
1021 | -help | --help | --hel | --he | -h) |
1022 | ac_init_help=long ;; | |
1023 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1024 | ac_init_help=recursive ;; | |
1025 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1026 | ac_init_help=short ;; | |
252b5132 RH |
1027 | |
1028 | -host | --host | --hos | --ho) | |
42ecbf5e | 1029 | ac_prev=host_alias ;; |
252b5132 | 1030 | -host=* | --host=* | --hos=* | --ho=*) |
42ecbf5e | 1031 | host_alias=$ac_optarg ;; |
252b5132 | 1032 | |
81ecdfbb RW |
1033 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1034 | ac_prev=htmldir ;; | |
1035 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1036 | | --ht=*) | |
1037 | htmldir=$ac_optarg ;; | |
1038 | ||
252b5132 RH |
1039 | -includedir | --includedir | --includedi | --included | --include \ |
1040 | | --includ | --inclu | --incl | --inc) | |
1041 | ac_prev=includedir ;; | |
1042 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1043 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
42ecbf5e | 1044 | includedir=$ac_optarg ;; |
252b5132 RH |
1045 | |
1046 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1047 | ac_prev=infodir ;; | |
1048 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
42ecbf5e | 1049 | infodir=$ac_optarg ;; |
252b5132 RH |
1050 | |
1051 | -libdir | --libdir | --libdi | --libd) | |
1052 | ac_prev=libdir ;; | |
1053 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
42ecbf5e | 1054 | libdir=$ac_optarg ;; |
252b5132 RH |
1055 | |
1056 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1057 | | --libexe | --libex | --libe) | |
1058 | ac_prev=libexecdir ;; | |
1059 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1060 | | --libexe=* | --libex=* | --libe=*) | |
42ecbf5e | 1061 | libexecdir=$ac_optarg ;; |
252b5132 | 1062 | |
81ecdfbb RW |
1063 | -localedir | --localedir | --localedi | --localed | --locale) |
1064 | ac_prev=localedir ;; | |
1065 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1066 | localedir=$ac_optarg ;; | |
1067 | ||
252b5132 | 1068 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1069 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1070 | ac_prev=localstatedir ;; |
1071 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1072 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
42ecbf5e | 1073 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1074 | |
1075 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1076 | ac_prev=mandir ;; | |
1077 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
42ecbf5e | 1078 | mandir=$ac_optarg ;; |
252b5132 RH |
1079 | |
1080 | -nfp | --nfp | --nf) | |
1081 | # Obsolete; use --without-fp. | |
1082 | with_fp=no ;; | |
1083 | ||
1084 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
42ecbf5e | 1085 | | --no-cr | --no-c | -n) |
252b5132 RH |
1086 | no_create=yes ;; |
1087 | ||
1088 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1089 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1090 | no_recursion=yes ;; | |
1091 | ||
1092 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1093 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1094 | | --oldin | --oldi | --old | --ol | --o) | |
1095 | ac_prev=oldincludedir ;; | |
1096 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1097 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1098 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
42ecbf5e | 1099 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1100 | |
1101 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1102 | ac_prev=prefix ;; | |
1103 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42ecbf5e | 1104 | prefix=$ac_optarg ;; |
252b5132 RH |
1105 | |
1106 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1107 | | --program-pre | --program-pr | --program-p) | |
1108 | ac_prev=program_prefix ;; | |
1109 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1110 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
42ecbf5e | 1111 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1112 | |
1113 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1114 | | --program-suf | --program-su | --program-s) | |
1115 | ac_prev=program_suffix ;; | |
1116 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1117 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
42ecbf5e | 1118 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1119 | |
1120 | -program-transform-name | --program-transform-name \ | |
1121 | | --program-transform-nam | --program-transform-na \ | |
1122 | | --program-transform-n | --program-transform- \ | |
1123 | | --program-transform | --program-transfor \ | |
1124 | | --program-transfo | --program-transf \ | |
1125 | | --program-trans | --program-tran \ | |
1126 | | --progr-tra | --program-tr | --program-t) | |
1127 | ac_prev=program_transform_name ;; | |
1128 | -program-transform-name=* | --program-transform-name=* \ | |
1129 | | --program-transform-nam=* | --program-transform-na=* \ | |
1130 | | --program-transform-n=* | --program-transform-=* \ | |
1131 | | --program-transform=* | --program-transfor=* \ | |
1132 | | --program-transfo=* | --program-transf=* \ | |
1133 | | --program-trans=* | --program-tran=* \ | |
1134 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
42ecbf5e | 1135 | program_transform_name=$ac_optarg ;; |
252b5132 | 1136 | |
81ecdfbb RW |
1137 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1138 | ac_prev=pdfdir ;; | |
1139 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1140 | pdfdir=$ac_optarg ;; | |
1141 | ||
1142 | -psdir | --psdir | --psdi | --psd | --ps) | |
1143 | ac_prev=psdir ;; | |
1144 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1145 | psdir=$ac_optarg ;; | |
1146 | ||
252b5132 RH |
1147 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1148 | | -silent | --silent | --silen | --sile | --sil) | |
1149 | silent=yes ;; | |
1150 | ||
1151 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1152 | ac_prev=sbindir ;; | |
1153 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1154 | | --sbi=* | --sb=*) | |
42ecbf5e | 1155 | sbindir=$ac_optarg ;; |
252b5132 RH |
1156 | |
1157 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1158 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1159 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1160 | | --sha | --sh) | |
1161 | ac_prev=sharedstatedir ;; | |
1162 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1163 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1164 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1165 | | --sha=* | --sh=*) | |
42ecbf5e | 1166 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1167 | |
1168 | -site | --site | --sit) | |
1169 | ac_prev=site ;; | |
1170 | -site=* | --site=* | --sit=*) | |
42ecbf5e | 1171 | site=$ac_optarg ;; |
85fbca6a | 1172 | |
252b5132 RH |
1173 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1174 | ac_prev=srcdir ;; | |
1175 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42ecbf5e | 1176 | srcdir=$ac_optarg ;; |
252b5132 RH |
1177 | |
1178 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1179 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1180 | ac_prev=sysconfdir ;; | |
1181 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1182 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
42ecbf5e | 1183 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1184 | |
1185 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
42ecbf5e | 1186 | ac_prev=target_alias ;; |
252b5132 | 1187 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
42ecbf5e | 1188 | target_alias=$ac_optarg ;; |
252b5132 RH |
1189 | |
1190 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1191 | verbose=yes ;; | |
1192 | ||
42ecbf5e DJ |
1193 | -version | --version | --versio | --versi | --vers | -V) |
1194 | ac_init_version=: ;; | |
252b5132 RH |
1195 | |
1196 | -with-* | --with-*) | |
81ecdfbb | 1197 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1198 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1199 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1200 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1201 | ac_useropt_orig=$ac_useropt |
1202 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1203 | case $ac_user_opts in | |
1204 | *" | |
1205 | "with_$ac_useropt" | |
1206 | "*) ;; | |
1207 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1208 | ac_unrecognized_sep=', ';; | |
252b5132 | 1209 | esac |
81ecdfbb | 1210 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1211 | |
1212 | -without-* | --without-*) | |
81ecdfbb | 1213 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1214 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1215 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1216 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1217 | ac_useropt_orig=$ac_useropt |
1218 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1219 | case $ac_user_opts in | |
1220 | *" | |
1221 | "with_$ac_useropt" | |
1222 | "*) ;; | |
1223 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1224 | ac_unrecognized_sep=', ';; | |
1225 | esac | |
1226 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1227 | |
1228 | --x) | |
1229 | # Obsolete; use --with-x. | |
1230 | with_x=yes ;; | |
1231 | ||
1232 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1233 | | --x-incl | --x-inc | --x-in | --x-i) | |
1234 | ac_prev=x_includes ;; | |
1235 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1236 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
42ecbf5e | 1237 | x_includes=$ac_optarg ;; |
252b5132 RH |
1238 | |
1239 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1240 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1241 | ac_prev=x_libraries ;; | |
1242 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1243 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
42ecbf5e | 1244 | x_libraries=$ac_optarg ;; |
252b5132 | 1245 | |
d0ac1c44 SM |
1246 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1247 | Try \`$0 --help' for more information" | |
252b5132 RH |
1248 | ;; |
1249 | ||
42ecbf5e DJ |
1250 | *=*) |
1251 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1252 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1253 | case $ac_envvar in #( |
1254 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1255 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1256 | esac |
1257 | eval $ac_envvar=\$ac_optarg | |
42ecbf5e DJ |
1258 | export $ac_envvar ;; |
1259 | ||
252b5132 | 1260 | *) |
42ecbf5e | 1261 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1262 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
42ecbf5e | 1263 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1264 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1265 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
252b5132 RH |
1266 | ;; |
1267 | ||
1268 | esac | |
1269 | done | |
1270 | ||
1271 | if test -n "$ac_prev"; then | |
42ecbf5e | 1272 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1273 | as_fn_error $? "missing argument to $ac_option" |
252b5132 | 1274 | fi |
252b5132 | 1275 | |
81ecdfbb RW |
1276 | if test -n "$ac_unrecognized_opts"; then |
1277 | case $enable_option_checking in | |
1278 | no) ;; | |
d0ac1c44 | 1279 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1280 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
42ecbf5e | 1281 | esac |
81ecdfbb | 1282 | fi |
252b5132 | 1283 | |
81ecdfbb RW |
1284 | # Check all directory arguments for consistency. |
1285 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1286 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1287 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
e0b2a78c | 1288 | libdir localedir mandir |
252b5132 | 1289 | do |
81ecdfbb RW |
1290 | eval ac_val=\$$ac_var |
1291 | # Remove trailing slashes. | |
1292 | case $ac_val in | |
1293 | */ ) | |
1294 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1295 | eval $ac_var=\$ac_val;; | |
1296 | esac | |
1297 | # Be sure to have absolute directory names. | |
42ecbf5e | 1298 | case $ac_val in |
81ecdfbb RW |
1299 | [\\/$]* | ?:[\\/]* ) continue;; |
1300 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
252b5132 | 1301 | esac |
d0ac1c44 | 1302 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1303 | done |
1304 | ||
42ecbf5e DJ |
1305 | # There might be people who depend on the old broken behavior: `$host' |
1306 | # used to hold the argument of --host etc. | |
1307 | # FIXME: To remove some day. | |
1308 | build=$build_alias | |
1309 | host=$host_alias | |
1310 | target=$target_alias | |
1311 | ||
1312 | # FIXME: To remove some day. | |
1313 | if test "x$host_alias" != x; then | |
1314 | if test "x$build_alias" = x; then | |
1315 | cross_compiling=maybe | |
42ecbf5e DJ |
1316 | elif test "x$build_alias" != "x$host_alias"; then |
1317 | cross_compiling=yes | |
1318 | fi | |
1319 | fi | |
e5a52504 | 1320 | |
42ecbf5e DJ |
1321 | ac_tool_prefix= |
1322 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1323 | ||
1324 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1325 | |
252b5132 | 1326 | |
81ecdfbb RW |
1327 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1328 | ac_ls_di=`ls -di .` && | |
1329 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1330 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1331 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1332 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1333 | |
1334 | ||
252b5132 RH |
1335 | # Find the source files, if location was not specified. |
1336 | if test -z "$srcdir"; then | |
1337 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1338 | # Try the directory containing this script, then the parent directory. |
1339 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1340 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1341 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1342 | X"$as_myself" : 'X\(//\)$' \| \ | |
1343 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1344 | $as_echo X"$as_myself" | | |
1345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1346 | s//\1/ | |
1347 | q | |
1348 | } | |
1349 | /^X\(\/\/\)[^/].*/{ | |
1350 | s//\1/ | |
1351 | q | |
1352 | } | |
1353 | /^X\(\/\/\)$/{ | |
1354 | s//\1/ | |
1355 | q | |
1356 | } | |
1357 | /^X\(\/\).*/{ | |
1358 | s//\1/ | |
1359 | q | |
1360 | } | |
1361 | s/.*/./; q'` | |
252b5132 | 1362 | srcdir=$ac_confdir |
81ecdfbb | 1363 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1364 | srcdir=.. |
1365 | fi | |
1366 | else | |
1367 | ac_srcdir_defaulted=no | |
1368 | fi | |
81ecdfbb RW |
1369 | if test ! -r "$srcdir/$ac_unique_file"; then |
1370 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1371 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1372 | fi |
1373 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1374 | ac_abs_confdir=`( | |
d0ac1c44 | 1375 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1376 | pwd)` |
1377 | # When building in place, set srcdir=. | |
1378 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1379 | srcdir=. | |
1380 | fi | |
1381 | # Remove unnecessary trailing slashes from srcdir. | |
1382 | # Double slashes in file names in object file debugging info | |
1383 | # mess up M-x gdb in Emacs. | |
1384 | case $srcdir in | |
1385 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1386 | esac | |
1387 | for ac_var in $ac_precious_vars; do | |
1388 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1389 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1390 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1391 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1392 | done | |
252b5132 | 1393 | |
42ecbf5e DJ |
1394 | # |
1395 | # Report the --help message. | |
1396 | # | |
1397 | if test "$ac_init_help" = "long"; then | |
1398 | # Omit some internal or obsolete options to make the list less imposing. | |
1399 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1400 | cat <<_ACEOF | |
b19d852d | 1401 | \`configure' configures ld 2.35.50 to adapt to many kinds of systems. |
252b5132 | 1402 | |
42ecbf5e | 1403 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 1404 | |
42ecbf5e DJ |
1405 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1406 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 1407 | |
42ecbf5e | 1408 | Defaults for the options are specified in brackets. |
ac48eca1 | 1409 | |
42ecbf5e DJ |
1410 | Configuration: |
1411 | -h, --help display this help and exit | |
1412 | --help=short display options specific to this package | |
1413 | --help=recursive display the short help of all the included packages | |
1414 | -V, --version display version information and exit | |
d0ac1c44 | 1415 | -q, --quiet, --silent do not print \`checking ...' messages |
42ecbf5e DJ |
1416 | --cache-file=FILE cache test results in FILE [disabled] |
1417 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1418 | -n, --no-create do not create output files | |
1419 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1420 | ||
42ecbf5e DJ |
1421 | Installation directories: |
1422 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1423 | [$ac_default_prefix] |
42ecbf5e | 1424 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1425 | [PREFIX] |
ac48eca1 | 1426 | |
42ecbf5e DJ |
1427 | By default, \`make install' will install all the files in |
1428 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1429 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1430 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 1431 | |
42ecbf5e | 1432 | For better control, use the options below. |
ac48eca1 | 1433 | |
42ecbf5e | 1434 | Fine tuning of the installation directories: |
81ecdfbb RW |
1435 | --bindir=DIR user executables [EPREFIX/bin] |
1436 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1437 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1438 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1439 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1440 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1441 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1442 | --includedir=DIR C header files [PREFIX/include] | |
1443 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1444 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1445 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1446 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1447 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1448 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
2e98a7bd | 1449 | --docdir=DIR documentation root [DATAROOTDIR/doc/ld] |
81ecdfbb RW |
1450 | --htmldir=DIR html documentation [DOCDIR] |
1451 | --dvidir=DIR dvi documentation [DOCDIR] | |
1452 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1453 | --psdir=DIR ps documentation [DOCDIR] | |
42ecbf5e | 1454 | _ACEOF |
ac48eca1 | 1455 | |
42ecbf5e | 1456 | cat <<\_ACEOF |
252b5132 | 1457 | |
42ecbf5e DJ |
1458 | Program names: |
1459 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1460 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1461 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 1462 | |
42ecbf5e DJ |
1463 | System types: |
1464 | --build=BUILD configure for building on BUILD [guessed] | |
1465 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1466 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1467 | _ACEOF | |
252b5132 | 1468 | fi |
252b5132 | 1469 | |
42ecbf5e | 1470 | if test -n "$ac_init_help"; then |
2e98a7bd | 1471 | case $ac_init_help in |
b19d852d | 1472 | short | recursive ) echo "Configuration of ld 2.35.50:";; |
2e98a7bd | 1473 | esac |
42ecbf5e | 1474 | cat <<\_ACEOF |
e5a52504 | 1475 | |
42ecbf5e | 1476 | Optional Features: |
81ecdfbb | 1477 | --disable-option-checking ignore unrecognized --enable/--with options |
42ecbf5e DJ |
1478 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1479 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
d0ac1c44 SM |
1480 | --enable-dependency-tracking |
1481 | do not reject slow dependency extractors | |
1482 | --disable-dependency-tracking | |
1483 | speeds up one-time build | |
1484 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1485 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1486 | --enable-maintainer-mode | |
1487 | enable make rules and dependencies not useful (and | |
1488 | sometimes confusing) to the casual installer | |
b879806f AM |
1489 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1490 | --enable-static[=PKGS] build static libraries [default=yes] | |
1491 | --enable-fast-install[=PKGS] | |
1492 | optimize for fast installation [default=yes] | |
1493 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1494 | --enable-plugins Enable support for plugins | |
1495 | --disable-largefile omit support for large files | |
ce2cded5 L |
1496 | --enable-targets alternative target configurations |
1497 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
c7791212 | 1498 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7fb9f789 NC |
1499 | --enable-got=<type> GOT handling scheme (target, single, negative, |
1500 | multigot) | |
4894d80b L |
1501 | --enable-compressed-debug-sections={all,ld,none} |
1502 | compress debug sections by default] | |
6734f10a | 1503 | --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default] |
647e4d46 | 1504 | --enable-relro enable -z relro in ELF linker by default |
b32632c4 L |
1505 | --enable-textrel-check=[yes|no|warning|error] |
1506 | enable DT_TEXTREL check in ELF linker | |
f6aec96d | 1507 | --enable-separate-code enable -z separate-code in ELF linker by default |
2760f24c RG |
1508 | --enable-default-hash-style={sysv,gnu,both} |
1509 | use this default hash style | |
094e34f2 | 1510 | --enable-libctf Handle .ctf type-info sections [default=yes] |
ce2cded5 L |
1511 | --enable-werror treat compile warnings as errors |
1512 | --enable-build-warnings enable build-time compiler warnings | |
42ecbf5e | 1513 | --disable-nls do not use Native Language Support |
26e3a0c9 | 1514 | --disable-initfini-array do not use .init_array/.fini_array sections |
42ecbf5e DJ |
1515 | |
1516 | Optional Packages: | |
1517 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1518 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1519 | --with-pic try to use only PIC/non-PIC objects [default=use |
1520 | both] | |
1521 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
b879806f AM |
1522 | --with-lib-path=dir1:dir2... set default LIB_PATH |
1523 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
1ff6de03 | 1524 | --with-system-zlib use installed libz |
42ecbf5e DJ |
1525 | |
1526 | Some influential environment variables: | |
1527 | CC C compiler command | |
1528 | CFLAGS C compiler flags | |
1529 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1530 | nonstandard directory <lib dir> | |
81ecdfbb | 1531 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1532 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1533 | you have headers in a nonstandard directory <include dir> |
3cb62297 L |
1534 | CXX C++ compiler command |
1535 | CXXFLAGS C++ compiler flags | |
b879806f | 1536 | CPP C preprocessor |
3cb62297 | 1537 | CXXCPP C++ preprocessor |
d0ac1c44 SM |
1538 | YACC The `Yet Another Compiler Compiler' implementation to use. |
1539 | Defaults to the first program found out of: `bison -y', `byacc', | |
1540 | `yacc'. | |
81ecdfbb RW |
1541 | YFLAGS The list of arguments that will be passed by default to $YACC. |
1542 | This script will default YFLAGS to the empty string to avoid a | |
1543 | default value of `-d' given by some make applications. | |
42ecbf5e DJ |
1544 | |
1545 | Use these variables to override the choices made by `configure' or to help | |
1546 | it to find libraries and programs with nonstandard names/locations. | |
1547 | ||
81ecdfbb | 1548 | Report bugs to the package provider. |
42ecbf5e | 1549 | _ACEOF |
81ecdfbb | 1550 | ac_status=$? |
42ecbf5e DJ |
1551 | fi |
1552 | ||
1553 | if test "$ac_init_help" = "recursive"; then | |
1554 | # If there are subdirs, report their specific --help. | |
42ecbf5e | 1555 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1556 | test -d "$ac_dir" || |
1557 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1558 | continue | |
42ecbf5e DJ |
1559 | ac_builddir=. |
1560 | ||
81ecdfbb RW |
1561 | case "$ac_dir" in |
1562 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1563 | *) | |
1564 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1565 | # A ".." for each directory in $ac_dir_suffix. | |
1566 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1567 | case $ac_top_builddir_sub in | |
1568 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1569 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1570 | esac ;; | |
1571 | esac | |
1572 | ac_abs_top_builddir=$ac_pwd | |
1573 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1574 | # for backward compatibility: | |
1575 | ac_top_builddir=$ac_top_build_prefix | |
42ecbf5e DJ |
1576 | |
1577 | case $srcdir in | |
81ecdfbb | 1578 | .) # We are building in place. |
42ecbf5e | 1579 | ac_srcdir=. |
81ecdfbb RW |
1580 | ac_top_srcdir=$ac_top_builddir_sub |
1581 | ac_abs_top_srcdir=$ac_pwd ;; | |
1582 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
42ecbf5e | 1583 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1584 | ac_top_srcdir=$srcdir |
1585 | ac_abs_top_srcdir=$srcdir ;; | |
1586 | *) # Relative name. | |
1587 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1588 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1589 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
42ecbf5e | 1590 | esac |
81ecdfbb RW |
1591 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1592 | ||
1593 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1594 | # Check for guested configure. | |
1595 | if test -f "$ac_srcdir/configure.gnu"; then | |
1596 | echo && | |
1597 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1598 | elif test -f "$ac_srcdir/configure"; then | |
1599 | echo && | |
1600 | $SHELL "$ac_srcdir/configure" --help=recursive | |
42ecbf5e | 1601 | else |
81ecdfbb RW |
1602 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1603 | fi || ac_status=$? | |
1604 | cd "$ac_pwd" || { ac_status=$?; break; } | |
42ecbf5e | 1605 | done |
a2d91340 AC |
1606 | fi |
1607 | ||
81ecdfbb | 1608 | test -n "$ac_init_help" && exit $ac_status |
42ecbf5e DJ |
1609 | if $ac_init_version; then |
1610 | cat <<\_ACEOF | |
b19d852d | 1611 | ld configure 2.35.50 |
d0ac1c44 | 1612 | generated by GNU Autoconf 2.69 |
a2d91340 | 1613 | |
d0ac1c44 | 1614 | Copyright (C) 2012 Free Software Foundation, Inc. |
42ecbf5e DJ |
1615 | This configure script is free software; the Free Software Foundation |
1616 | gives unlimited permission to copy, distribute and modify it. | |
1617 | _ACEOF | |
81ecdfbb | 1618 | exit |
42ecbf5e | 1619 | fi |
a2d91340 | 1620 | |
81ecdfbb RW |
1621 | ## ------------------------ ## |
1622 | ## Autoconf initialization. ## | |
1623 | ## ------------------------ ## | |
a2d91340 | 1624 | |
81ecdfbb RW |
1625 | # ac_fn_c_try_compile LINENO |
1626 | # -------------------------- | |
1627 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1628 | ac_fn_c_try_compile () | |
1629 | { | |
1630 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1631 | rm -f conftest.$ac_objext | |
1632 | if { { ac_try="$ac_compile" | |
1633 | case "(($ac_try" in | |
1634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1635 | *) ac_try_echo=$ac_try;; | |
1636 | esac | |
1637 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1638 | $as_echo "$ac_try_echo"; } >&5 | |
1639 | (eval "$ac_compile") 2>conftest.err | |
1640 | ac_status=$? | |
1641 | if test -s conftest.err; then | |
1642 | grep -v '^ *+' conftest.err >conftest.er1 | |
1643 | cat conftest.er1 >&5 | |
1644 | mv -f conftest.er1 conftest.err | |
1645 | fi | |
1646 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1647 | test $ac_status = 0; } && { | |
1648 | test -z "$ac_c_werror_flag" || | |
1649 | test ! -s conftest.err | |
1650 | } && test -s conftest.$ac_objext; then : | |
1651 | ac_retval=0 | |
1652 | else | |
1653 | $as_echo "$as_me: failed program was:" >&5 | |
1654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a2d91340 | 1655 | |
81ecdfbb RW |
1656 | ac_retval=1 |
1657 | fi | |
d0ac1c44 SM |
1658 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1659 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1660 | |
1661 | } # ac_fn_c_try_compile | |
1662 | ||
1663 | # ac_fn_c_try_link LINENO | |
1664 | # ----------------------- | |
1665 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1666 | ac_fn_c_try_link () | |
42ecbf5e | 1667 | { |
81ecdfbb RW |
1668 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1669 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1670 | if { { ac_try="$ac_link" | |
1671 | case "(($ac_try" in | |
1672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1673 | *) ac_try_echo=$ac_try;; | |
1674 | esac | |
1675 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1676 | $as_echo "$ac_try_echo"; } >&5 | |
1677 | (eval "$ac_link") 2>conftest.err | |
1678 | ac_status=$? | |
1679 | if test -s conftest.err; then | |
1680 | grep -v '^ *+' conftest.err >conftest.er1 | |
1681 | cat conftest.er1 >&5 | |
1682 | mv -f conftest.er1 conftest.err | |
1683 | fi | |
1684 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1685 | test $ac_status = 0; } && { | |
1686 | test -z "$ac_c_werror_flag" || | |
1687 | test ! -s conftest.err | |
1688 | } && test -s conftest$ac_exeext && { | |
1689 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1690 | test -x conftest$ac_exeext |
81ecdfbb RW |
1691 | }; then : |
1692 | ac_retval=0 | |
1693 | else | |
1694 | $as_echo "$as_me: failed program was:" >&5 | |
1695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42ecbf5e | 1696 | |
81ecdfbb RW |
1697 | ac_retval=1 |
1698 | fi | |
1699 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1700 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1701 | # interfere with the next link command; also delete a directory that is | |
1702 | # left behind by Apple's compiler. We do this before executing the actions. | |
1703 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1704 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1705 | as_fn_set_status $ac_retval | |
42ecbf5e | 1706 | |
81ecdfbb | 1707 | } # ac_fn_c_try_link |
42ecbf5e | 1708 | |
b879806f AM |
1709 | # ac_fn_cxx_try_compile LINENO |
1710 | # ---------------------------- | |
1711 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1712 | ac_fn_cxx_try_compile () | |
81ecdfbb RW |
1713 | { |
1714 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
b879806f AM |
1715 | rm -f conftest.$ac_objext |
1716 | if { { ac_try="$ac_compile" | |
81ecdfbb RW |
1717 | case "(($ac_try" in |
1718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1719 | *) ac_try_echo=$ac_try;; | |
1720 | esac | |
1721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1722 | $as_echo "$ac_try_echo"; } >&5 | |
b879806f | 1723 | (eval "$ac_compile") 2>conftest.err |
81ecdfbb RW |
1724 | ac_status=$? |
1725 | if test -s conftest.err; then | |
1726 | grep -v '^ *+' conftest.err >conftest.er1 | |
1727 | cat conftest.er1 >&5 | |
1728 | mv -f conftest.er1 conftest.err | |
1729 | fi | |
1730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
b879806f AM |
1731 | test $ac_status = 0; } && { |
1732 | test -z "$ac_cxx_werror_flag" || | |
81ecdfbb | 1733 | test ! -s conftest.err |
b879806f | 1734 | } && test -s conftest.$ac_objext; then : |
81ecdfbb RW |
1735 | ac_retval=0 |
1736 | else | |
1737 | $as_echo "$as_me: failed program was:" >&5 | |
1738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1739 | ||
b879806f | 1740 | ac_retval=1 |
81ecdfbb | 1741 | fi |
d0ac1c44 SM |
1742 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1743 | as_fn_set_status $ac_retval | |
81ecdfbb | 1744 | |
b879806f | 1745 | } # ac_fn_cxx_try_compile |
81ecdfbb | 1746 | |
b879806f AM |
1747 | # ac_fn_c_try_cpp LINENO |
1748 | # ---------------------- | |
1749 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1750 | ac_fn_c_try_cpp () | |
3cb62297 L |
1751 | { |
1752 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
b879806f | 1753 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
3cb62297 L |
1754 | case "(($ac_try" in |
1755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1756 | *) ac_try_echo=$ac_try;; | |
1757 | esac | |
1758 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1759 | $as_echo "$ac_try_echo"; } >&5 | |
b879806f | 1760 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
3cb62297 L |
1761 | ac_status=$? |
1762 | if test -s conftest.err; then | |
1763 | grep -v '^ *+' conftest.err >conftest.er1 | |
1764 | cat conftest.er1 >&5 | |
1765 | mv -f conftest.er1 conftest.err | |
1766 | fi | |
1767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d0ac1c44 | 1768 | test $ac_status = 0; } > conftest.i && { |
b879806f | 1769 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3cb62297 | 1770 | test ! -s conftest.err |
b879806f | 1771 | }; then : |
3cb62297 L |
1772 | ac_retval=0 |
1773 | else | |
1774 | $as_echo "$as_me: failed program was:" >&5 | |
1775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1776 | ||
b879806f | 1777 | ac_retval=1 |
3cb62297 | 1778 | fi |
d0ac1c44 SM |
1779 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1780 | as_fn_set_status $ac_retval | |
3cb62297 | 1781 | |
b879806f | 1782 | } # ac_fn_c_try_cpp |
3cb62297 | 1783 | |
81ecdfbb RW |
1784 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1785 | # ------------------------------------------------------- | |
1786 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1787 | # the include files in INCLUDES and setting the cache variable VAR | |
1788 | # accordingly. | |
1789 | ac_fn_c_check_header_mongrel () | |
1790 | { | |
1791 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d0ac1c44 | 1792 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1794 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1795 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1796 | $as_echo_n "(cached) " >&6 |
1797 | fi | |
1798 | eval ac_res=\$$3 | |
1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1800 | $as_echo "$ac_res" >&6; } | |
1801 | else | |
1802 | # Is the header compilable? | |
1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1804 | $as_echo_n "checking $2 usability... " >&6; } | |
1805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1806 | /* end confdefs.h. */ | |
1807 | $4 | |
1808 | #include <$2> | |
1809 | _ACEOF | |
1810 | if ac_fn_c_try_compile "$LINENO"; then : | |
1811 | ac_header_compiler=yes | |
1812 | else | |
1813 | ac_header_compiler=no | |
1814 | fi | |
1815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1817 | $as_echo "$ac_header_compiler" >&6; } | |
1818 | ||
1819 | # Is the header present? | |
1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1821 | $as_echo_n "checking $2 presence... " >&6; } | |
1822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1823 | /* end confdefs.h. */ | |
1824 | #include <$2> | |
1825 | _ACEOF | |
1826 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1827 | ac_header_preproc=yes | |
1828 | else | |
1829 | ac_header_preproc=no | |
1830 | fi | |
d0ac1c44 | 1831 | rm -f conftest.err conftest.i conftest.$ac_ext |
81ecdfbb RW |
1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1833 | $as_echo "$ac_header_preproc" >&6; } | |
1834 | ||
1835 | # So? What about this header? | |
1836 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1837 | yes:no: ) | |
1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1839 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1841 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1842 | ;; | |
1843 | no:yes:* ) | |
1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1845 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1847 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1849 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1851 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1853 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1854 | ;; | |
1855 | esac | |
1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1857 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1858 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1859 | $as_echo_n "(cached) " >&6 |
1860 | else | |
1861 | eval "$3=\$ac_header_compiler" | |
1862 | fi | |
1863 | eval ac_res=\$$3 | |
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1865 | $as_echo "$ac_res" >&6; } | |
1866 | fi | |
d0ac1c44 | 1867 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1868 | |
1869 | } # ac_fn_c_check_header_mongrel | |
1870 | ||
1871 | # ac_fn_c_try_run LINENO | |
1872 | # ---------------------- | |
1873 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1874 | # that executables *can* be run. | |
1875 | ac_fn_c_try_run () | |
1876 | { | |
1877 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1878 | if { { ac_try="$ac_link" | |
1879 | case "(($ac_try" in | |
1880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1881 | *) ac_try_echo=$ac_try;; | |
1882 | esac | |
1883 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1884 | $as_echo "$ac_try_echo"; } >&5 | |
1885 | (eval "$ac_link") 2>&5 | |
1886 | ac_status=$? | |
1887 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1888 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1889 | { { case "(($ac_try" in | |
1890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1891 | *) ac_try_echo=$ac_try;; | |
1892 | esac | |
1893 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1894 | $as_echo "$ac_try_echo"; } >&5 | |
1895 | (eval "$ac_try") 2>&5 | |
1896 | ac_status=$? | |
1897 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1898 | test $ac_status = 0; }; }; then : | |
1899 | ac_retval=0 | |
1900 | else | |
1901 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1902 | $as_echo "$as_me: failed program was:" >&5 | |
1903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1904 | ||
1905 | ac_retval=$ac_status | |
1906 | fi | |
1907 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1908 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1909 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1910 | |
1911 | } # ac_fn_c_try_run | |
1912 | ||
1913 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1914 | # ------------------------------------------------------- | |
1915 | # Tests whether HEADER exists and can be compiled using the include files in | |
1916 | # INCLUDES, setting the cache variable VAR accordingly. | |
1917 | ac_fn_c_check_header_compile () | |
1918 | { | |
1919 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1921 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1922 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1923 | $as_echo_n "(cached) " >&6 |
1924 | else | |
1925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1926 | /* end confdefs.h. */ | |
1927 | $4 | |
1928 | #include <$2> | |
1929 | _ACEOF | |
1930 | if ac_fn_c_try_compile "$LINENO"; then : | |
1931 | eval "$3=yes" | |
1932 | else | |
1933 | eval "$3=no" | |
1934 | fi | |
1935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1936 | fi | |
1937 | eval ac_res=\$$3 | |
1938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1939 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1940 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1941 | |
1942 | } # ac_fn_c_check_header_compile | |
1943 | ||
1944 | # ac_fn_c_check_func LINENO FUNC VAR | |
1945 | # ---------------------------------- | |
1946 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1947 | ac_fn_c_check_func () | |
1948 | { | |
1949 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1951 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1952 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1953 | $as_echo_n "(cached) " >&6 |
1954 | else | |
1955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1956 | /* end confdefs.h. */ | |
1957 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1958 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1959 | #define $2 innocuous_$2 | |
1960 | ||
1961 | /* System header to define __stub macros and hopefully few prototypes, | |
1962 | which can conflict with char $2 (); below. | |
1963 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1964 | <limits.h> exists even on freestanding compilers. */ | |
1965 | ||
1966 | #ifdef __STDC__ | |
1967 | # include <limits.h> | |
1968 | #else | |
1969 | # include <assert.h> | |
1970 | #endif | |
1971 | ||
1972 | #undef $2 | |
1973 | ||
1974 | /* Override any GCC internal prototype to avoid an error. | |
1975 | Use char because int might match the return type of a GCC | |
1976 | builtin and then its argument prototype would still apply. */ | |
1977 | #ifdef __cplusplus | |
1978 | extern "C" | |
1979 | #endif | |
1980 | char $2 (); | |
1981 | /* The GNU C library defines this for functions which it implements | |
1982 | to always fail with ENOSYS. Some functions are actually named | |
1983 | something starting with __ and the normal name is an alias. */ | |
1984 | #if defined __stub_$2 || defined __stub___$2 | |
1985 | choke me | |
1986 | #endif | |
1987 | ||
1988 | int | |
1989 | main () | |
1990 | { | |
1991 | return $2 (); | |
1992 | ; | |
1993 | return 0; | |
1994 | } | |
1995 | _ACEOF | |
1996 | if ac_fn_c_try_link "$LINENO"; then : | |
1997 | eval "$3=yes" | |
1998 | else | |
1999 | eval "$3=no" | |
2000 | fi | |
2001 | rm -f core conftest.err conftest.$ac_objext \ | |
2002 | conftest$ac_exeext conftest.$ac_ext | |
2003 | fi | |
2004 | eval ac_res=\$$3 | |
2005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2006 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 2007 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
2008 | |
2009 | } # ac_fn_c_check_func | |
2010 | ||
3cb62297 L |
2011 | # ac_fn_cxx_try_cpp LINENO |
2012 | # ------------------------ | |
2013 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
2014 | ac_fn_cxx_try_cpp () | |
2015 | { | |
2016 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2017 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2018 | case "(($ac_try" in | |
2019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2020 | *) ac_try_echo=$ac_try;; | |
2021 | esac | |
2022 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2023 | $as_echo "$ac_try_echo"; } >&5 | |
2024 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2025 | ac_status=$? | |
2026 | if test -s conftest.err; then | |
2027 | grep -v '^ *+' conftest.err >conftest.er1 | |
2028 | cat conftest.er1 >&5 | |
2029 | mv -f conftest.er1 conftest.err | |
2030 | fi | |
2031 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d0ac1c44 | 2032 | test $ac_status = 0; } > conftest.i && { |
3cb62297 L |
2033 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
2034 | test ! -s conftest.err | |
2035 | }; then : | |
2036 | ac_retval=0 | |
2037 | else | |
2038 | $as_echo "$as_me: failed program was:" >&5 | |
2039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2040 | ||
2041 | ac_retval=1 | |
2042 | fi | |
d0ac1c44 SM |
2043 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2044 | as_fn_set_status $ac_retval | |
3cb62297 L |
2045 | |
2046 | } # ac_fn_cxx_try_cpp | |
2047 | ||
2048 | # ac_fn_cxx_try_link LINENO | |
2049 | # ------------------------- | |
2050 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2051 | ac_fn_cxx_try_link () | |
2052 | { | |
2053 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2055 | if { { ac_try="$ac_link" | |
2056 | case "(($ac_try" in | |
2057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2058 | *) ac_try_echo=$ac_try;; | |
2059 | esac | |
2060 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2061 | $as_echo "$ac_try_echo"; } >&5 | |
2062 | (eval "$ac_link") 2>conftest.err | |
2063 | ac_status=$? | |
2064 | if test -s conftest.err; then | |
2065 | grep -v '^ *+' conftest.err >conftest.er1 | |
2066 | cat conftest.er1 >&5 | |
2067 | mv -f conftest.er1 conftest.err | |
2068 | fi | |
2069 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2070 | test $ac_status = 0; } && { | |
2071 | test -z "$ac_cxx_werror_flag" || | |
2072 | test ! -s conftest.err | |
2073 | } && test -s conftest$ac_exeext && { | |
2074 | test "$cross_compiling" = yes || | |
d0ac1c44 | 2075 | test -x conftest$ac_exeext |
3cb62297 L |
2076 | }; then : |
2077 | ac_retval=0 | |
2078 | else | |
2079 | $as_echo "$as_me: failed program was:" >&5 | |
2080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2081 | ||
2082 | ac_retval=1 | |
2083 | fi | |
2084 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2085 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2086 | # interfere with the next link command; also delete a directory that is | |
2087 | # left behind by Apple's compiler. We do this before executing the actions. | |
2088 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
2089 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2090 | as_fn_set_status $ac_retval | |
3cb62297 L |
2091 | |
2092 | } # ac_fn_cxx_try_link | |
2093 | ||
d0ac1c44 SM |
2094 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2095 | # --------------------------------------------- | |
2096 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2097 | # accordingly. | |
81ecdfbb RW |
2098 | ac_fn_c_check_decl () |
2099 | { | |
2100 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
360cfc9c AM |
2101 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2102 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2104 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
d0ac1c44 | 2105 | if eval \${$3+:} false; then : |
81ecdfbb RW |
2106 | $as_echo_n "(cached) " >&6 |
2107 | else | |
2108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2109 | /* end confdefs.h. */ | |
2110 | $4 | |
2111 | int | |
2112 | main () | |
2113 | { | |
360cfc9c AM |
2114 | #ifndef $as_decl_name |
2115 | #ifdef __cplusplus | |
2116 | (void) $as_decl_use; | |
2117 | #else | |
2118 | (void) $as_decl_name; | |
2119 | #endif | |
81ecdfbb RW |
2120 | #endif |
2121 | ||
2122 | ; | |
2123 | return 0; | |
2124 | } | |
2125 | _ACEOF | |
2126 | if ac_fn_c_try_compile "$LINENO"; then : | |
2127 | eval "$3=yes" | |
2128 | else | |
2129 | eval "$3=no" | |
2130 | fi | |
2131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2132 | fi | |
2133 | eval ac_res=\$$3 | |
2134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2135 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 2136 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
2137 | |
2138 | } # ac_fn_c_check_decl | |
2139 | ||
2140 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2141 | # -------------------------------------------- | |
2142 | # Tries to find the compile-time value of EXPR in a program that includes | |
2143 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2144 | # computed | |
2145 | ac_fn_c_compute_int () | |
2146 | { | |
2147 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2148 | if test "$cross_compiling" = yes; then | |
2149 | # Depending upon the size, compute the lo and hi bounds. | |
2150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2151 | /* end confdefs.h. */ | |
2152 | $4 | |
2153 | int | |
2154 | main () | |
2155 | { | |
2156 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
d0ac1c44 SM |
2157 | test_array [0] = 0; |
2158 | return test_array [0]; | |
81ecdfbb RW |
2159 | |
2160 | ; | |
2161 | return 0; | |
2162 | } | |
2163 | _ACEOF | |
2164 | if ac_fn_c_try_compile "$LINENO"; then : | |
2165 | ac_lo=0 ac_mid=0 | |
2166 | while :; do | |
2167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2168 | /* end confdefs.h. */ | |
2169 | $4 | |
2170 | int | |
2171 | main () | |
2172 | { | |
2173 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
d0ac1c44 SM |
2174 | test_array [0] = 0; |
2175 | return test_array [0]; | |
81ecdfbb RW |
2176 | |
2177 | ; | |
2178 | return 0; | |
2179 | } | |
2180 | _ACEOF | |
2181 | if ac_fn_c_try_compile "$LINENO"; then : | |
2182 | ac_hi=$ac_mid; break | |
2183 | else | |
2184 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2185 | if test $ac_lo -le $ac_mid; then | |
2186 | ac_lo= ac_hi= | |
2187 | break | |
2188 | fi | |
2189 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2190 | fi | |
2191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2192 | done | |
2193 | else | |
2194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2195 | /* end confdefs.h. */ | |
2196 | $4 | |
2197 | int | |
2198 | main () | |
2199 | { | |
2200 | static int test_array [1 - 2 * !(($2) < 0)]; | |
d0ac1c44 SM |
2201 | test_array [0] = 0; |
2202 | return test_array [0]; | |
81ecdfbb RW |
2203 | |
2204 | ; | |
2205 | return 0; | |
2206 | } | |
2207 | _ACEOF | |
2208 | if ac_fn_c_try_compile "$LINENO"; then : | |
2209 | ac_hi=-1 ac_mid=-1 | |
2210 | while :; do | |
2211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2212 | /* end confdefs.h. */ | |
2213 | $4 | |
2214 | int | |
2215 | main () | |
2216 | { | |
2217 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
d0ac1c44 SM |
2218 | test_array [0] = 0; |
2219 | return test_array [0]; | |
81ecdfbb RW |
2220 | |
2221 | ; | |
2222 | return 0; | |
2223 | } | |
2224 | _ACEOF | |
2225 | if ac_fn_c_try_compile "$LINENO"; then : | |
2226 | ac_lo=$ac_mid; break | |
2227 | else | |
2228 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2229 | if test $ac_mid -le $ac_hi; then | |
2230 | ac_lo= ac_hi= | |
2231 | break | |
2232 | fi | |
2233 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2234 | fi | |
2235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2236 | done | |
2237 | else | |
2238 | ac_lo= ac_hi= | |
2239 | fi | |
2240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2241 | fi | |
2242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2243 | # Binary search between lo and hi bounds. | |
2244 | while test "x$ac_lo" != "x$ac_hi"; do | |
2245 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2247 | /* end confdefs.h. */ | |
2248 | $4 | |
2249 | int | |
2250 | main () | |
2251 | { | |
2252 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
d0ac1c44 SM |
2253 | test_array [0] = 0; |
2254 | return test_array [0]; | |
81ecdfbb RW |
2255 | |
2256 | ; | |
2257 | return 0; | |
2258 | } | |
2259 | _ACEOF | |
2260 | if ac_fn_c_try_compile "$LINENO"; then : | |
2261 | ac_hi=$ac_mid | |
2262 | else | |
2263 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2264 | fi | |
2265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2266 | done | |
2267 | case $ac_lo in #(( | |
2268 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2269 | '') ac_retval=1 ;; | |
2270 | esac | |
2271 | else | |
2272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2273 | /* end confdefs.h. */ | |
2274 | $4 | |
2275 | static long int longval () { return $2; } | |
2276 | static unsigned long int ulongval () { return $2; } | |
2277 | #include <stdio.h> | |
2278 | #include <stdlib.h> | |
2279 | int | |
2280 | main () | |
2281 | { | |
2282 | ||
2283 | FILE *f = fopen ("conftest.val", "w"); | |
2284 | if (! f) | |
2285 | return 1; | |
2286 | if (($2) < 0) | |
2287 | { | |
2288 | long int i = longval (); | |
2289 | if (i != ($2)) | |
2290 | return 1; | |
2291 | fprintf (f, "%ld", i); | |
2292 | } | |
2293 | else | |
2294 | { | |
2295 | unsigned long int i = ulongval (); | |
2296 | if (i != ($2)) | |
2297 | return 1; | |
2298 | fprintf (f, "%lu", i); | |
2299 | } | |
2300 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2301 | on some platforms. */ | |
2302 | return ferror (f) || fclose (f) != 0; | |
2303 | ||
2304 | ; | |
2305 | return 0; | |
2306 | } | |
2307 | _ACEOF | |
2308 | if ac_fn_c_try_run "$LINENO"; then : | |
2309 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2310 | else | |
2311 | ac_retval=1 | |
2312 | fi | |
2313 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2314 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2315 | rm -f conftest.val | |
2316 | ||
2317 | fi | |
d0ac1c44 SM |
2318 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2319 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
2320 | |
2321 | } # ac_fn_c_compute_int | |
2322 | cat >config.log <<_ACEOF | |
2323 | This file contains any messages produced by compilers while | |
2324 | running configure, to aid debugging if configure makes a mistake. | |
2325 | ||
b19d852d | 2326 | It was created by ld $as_me 2.35.50, which was |
d0ac1c44 | 2327 | generated by GNU Autoconf 2.69. Invocation command line was |
81ecdfbb RW |
2328 | |
2329 | $ $0 $@ | |
2330 | ||
2331 | _ACEOF | |
2332 | exec 5>>config.log | |
2333 | { | |
2334 | cat <<_ASUNAME | |
2335 | ## --------- ## | |
2336 | ## Platform. ## | |
2337 | ## --------- ## | |
2338 | ||
2339 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2340 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2341 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2342 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2343 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2344 | ||
2345 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2346 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2347 | ||
2348 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2349 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2350 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2351 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
42ecbf5e DJ |
2352 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2353 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2354 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2355 | ||
2356 | _ASUNAME | |
2357 | ||
2358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2359 | for as_dir in $PATH | |
2360 | do | |
2361 | IFS=$as_save_IFS | |
2362 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2363 | $as_echo "PATH: $as_dir" |
2364 | done | |
2365 | IFS=$as_save_IFS | |
252b5132 | 2366 | |
42ecbf5e | 2367 | } >&5 |
5d64ca4e | 2368 | |
42ecbf5e | 2369 | cat >&5 <<_ACEOF |
5d64ca4e | 2370 | |
5d64ca4e | 2371 | |
42ecbf5e DJ |
2372 | ## ----------- ## |
2373 | ## Core tests. ## | |
2374 | ## ----------- ## | |
5d64ca4e | 2375 | |
42ecbf5e | 2376 | _ACEOF |
2469cfa2 | 2377 | |
42ecbf5e DJ |
2378 | |
2379 | # Keep a trace of the command line. | |
2380 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2381 | # Strip out --silent because we don't want to record it for future runs. | |
2382 | # Also quote any args containing shell meta-characters. | |
2383 | # Make two passes to allow for proper duplicate-argument suppression. | |
2384 | ac_configure_args= | |
2385 | ac_configure_args0= | |
2386 | ac_configure_args1= | |
42ecbf5e DJ |
2387 | ac_must_keep_next=false |
2388 | for ac_pass in 1 2 | |
2389 | do | |
2390 | for ac_arg | |
2391 | do | |
2392 | case $ac_arg in | |
2393 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2394 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2395 | | -silent | --silent | --silen | --sile | --sil) | |
2396 | continue ;; | |
81ecdfbb RW |
2397 | *\'*) |
2398 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
42ecbf5e DJ |
2399 | esac |
2400 | case $ac_pass in | |
81ecdfbb | 2401 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
42ecbf5e | 2402 | 2) |
81ecdfbb | 2403 | as_fn_append ac_configure_args1 " '$ac_arg'" |
42ecbf5e DJ |
2404 | if test $ac_must_keep_next = true; then |
2405 | ac_must_keep_next=false # Got value, back to normal. | |
2406 | else | |
2407 | case $ac_arg in | |
2408 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2409 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2410 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2411 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2412 | case "$ac_configure_args0 " in | |
2413 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2414 | esac | |
2415 | ;; | |
2416 | -* ) ac_must_keep_next=true ;; | |
2417 | esac | |
2418 | fi | |
81ecdfbb | 2419 | as_fn_append ac_configure_args " '$ac_arg'" |
42ecbf5e DJ |
2420 | ;; |
2421 | esac | |
2422 | done | |
2423 | done | |
81ecdfbb RW |
2424 | { ac_configure_args0=; unset ac_configure_args0;} |
2425 | { ac_configure_args1=; unset ac_configure_args1;} | |
42ecbf5e DJ |
2426 | |
2427 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2428 | # config.log. We remove comments because anyway the quotes in there | |
2429 | # would cause problems or look ugly. | |
81ecdfbb RW |
2430 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2431 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
42ecbf5e DJ |
2432 | trap 'exit_status=$? |
2433 | # Save into config.log some information that might help in debugging. | |
2434 | { | |
2435 | echo | |
2436 | ||
d0ac1c44 | 2437 | $as_echo "## ---------------- ## |
42ecbf5e | 2438 | ## Cache variables. ## |
d0ac1c44 | 2439 | ## ---------------- ##" |
42ecbf5e DJ |
2440 | echo |
2441 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2442 | ( |
2443 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2444 | eval ac_val=\$$ac_var | |
2445 | case $ac_val in #( | |
2446 | *${as_nl}*) | |
2447 | case $ac_var in #( | |
2448 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2449 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2450 | esac | |
2451 | case $ac_var in #( | |
2452 | _ | IFS | as_nl) ;; #( | |
2453 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2454 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2455 | esac ;; | |
2456 | esac | |
2457 | done | |
42ecbf5e | 2458 | (set) 2>&1 | |
81ecdfbb RW |
2459 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2460 | *${as_nl}ac_space=\ *) | |
42ecbf5e | 2461 | sed -n \ |
81ecdfbb RW |
2462 | "s/'\''/'\''\\\\'\'''\''/g; |
2463 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2464 | ;; #( | |
42ecbf5e | 2465 | *) |
81ecdfbb | 2466 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
42ecbf5e | 2467 | ;; |
81ecdfbb RW |
2468 | esac | |
2469 | sort | |
2470 | ) | |
42ecbf5e DJ |
2471 | echo |
2472 | ||
d0ac1c44 | 2473 | $as_echo "## ----------------- ## |
42ecbf5e | 2474 | ## Output variables. ## |
d0ac1c44 | 2475 | ## ----------------- ##" |
42ecbf5e DJ |
2476 | echo |
2477 | for ac_var in $ac_subst_vars | |
2478 | do | |
81ecdfbb RW |
2479 | eval ac_val=\$$ac_var |
2480 | case $ac_val in | |
2481 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2482 | esac | |
2483 | $as_echo "$ac_var='\''$ac_val'\''" | |
42ecbf5e DJ |
2484 | done | sort |
2485 | echo | |
2486 | ||
2487 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2488 | $as_echo "## ------------------- ## |
81ecdfbb | 2489 | ## File substitutions. ## |
d0ac1c44 | 2490 | ## ------------------- ##" |
42ecbf5e DJ |
2491 | echo |
2492 | for ac_var in $ac_subst_files | |
2493 | do | |
81ecdfbb RW |
2494 | eval ac_val=\$$ac_var |
2495 | case $ac_val in | |
2496 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2497 | esac | |
2498 | $as_echo "$ac_var='\''$ac_val'\''" | |
42ecbf5e DJ |
2499 | done | sort |
2500 | echo | |
2501 | fi | |
2502 | ||
2503 | if test -s confdefs.h; then | |
d0ac1c44 | 2504 | $as_echo "## ----------- ## |
42ecbf5e | 2505 | ## confdefs.h. ## |
d0ac1c44 | 2506 | ## ----------- ##" |
42ecbf5e | 2507 | echo |
81ecdfbb | 2508 | cat confdefs.h |
42ecbf5e DJ |
2509 | echo |
2510 | fi | |
2511 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2512 | $as_echo "$as_me: caught signal $ac_signal" |
2513 | $as_echo "$as_me: exit $exit_status" | |
42ecbf5e | 2514 | } >&5 |
81ecdfbb RW |
2515 | rm -f core *.core core.conftest.* && |
2516 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
42ecbf5e | 2517 | exit $exit_status |
81ecdfbb | 2518 | ' 0 |
42ecbf5e | 2519 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2520 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
42ecbf5e DJ |
2521 | done |
2522 | ac_signal=0 | |
2523 | ||
2524 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2525 | rm -f -r conftest* confdefs.h |
2526 | ||
2527 | $as_echo "/* confdefs.h */" > confdefs.h | |
42ecbf5e DJ |
2528 | |
2529 | # Predefined preprocessor variables. | |
2530 | ||
2531 | cat >>confdefs.h <<_ACEOF | |
2532 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2533 | _ACEOF | |
2534 | ||
42ecbf5e DJ |
2535 | cat >>confdefs.h <<_ACEOF |
2536 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2537 | _ACEOF | |
2538 | ||
42ecbf5e DJ |
2539 | cat >>confdefs.h <<_ACEOF |
2540 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2541 | _ACEOF | |
2542 | ||
42ecbf5e DJ |
2543 | cat >>confdefs.h <<_ACEOF |
2544 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2545 | _ACEOF | |
2546 | ||
42ecbf5e DJ |
2547 | cat >>confdefs.h <<_ACEOF |
2548 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2549 | _ACEOF | |
2550 | ||
81ecdfbb RW |
2551 | cat >>confdefs.h <<_ACEOF |
2552 | #define PACKAGE_URL "$PACKAGE_URL" | |
2553 | _ACEOF | |
2554 | ||
42ecbf5e DJ |
2555 | |
2556 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2557 | # Prefer an explicitly selected file to automatically selected ones. |
2558 | ac_site_file1=NONE | |
2559 | ac_site_file2=NONE | |
2560 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2561 | # We do not want a PATH search for config.site. |
2562 | case $CONFIG_SITE in #(( | |
2563 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2564 | */*) ac_site_file1=$CONFIG_SITE;; | |
2565 | *) ac_site_file1=./$CONFIG_SITE;; | |
2566 | esac | |
81ecdfbb RW |
2567 | elif test "x$prefix" != xNONE; then |
2568 | ac_site_file1=$prefix/share/config.site | |
2569 | ac_site_file2=$prefix/etc/config.site | |
2570 | else | |
2571 | ac_site_file1=$ac_default_prefix/share/config.site | |
2572 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2573 | fi | |
2574 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2575 | do | |
2576 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2577 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2579 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
42ecbf5e | 2580 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2581 | . "$ac_site_file" \ |
2582 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2583 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2584 | as_fn_error $? "failed to load site script $ac_site_file | |
2585 | See \`config.log' for more details" "$LINENO" 5; } | |
42ecbf5e DJ |
2586 | fi |
2587 | done | |
2588 | ||
2589 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2590 | # Some versions of bash will fail to source /dev/null (special files |
2591 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2592 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2594 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
42ecbf5e | 2595 | case $cache_file in |
81ecdfbb RW |
2596 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2597 | *) . "./$cache_file";; | |
42ecbf5e DJ |
2598 | esac |
2599 | fi | |
2600 | else | |
81ecdfbb RW |
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2602 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
42ecbf5e DJ |
2603 | >$cache_file |
2604 | fi | |
2605 | ||
d0ac1c44 SM |
2606 | as_fn_append ac_header_list " stdlib.h" |
2607 | as_fn_append ac_header_list " unistd.h" | |
2608 | as_fn_append ac_header_list " sys/param.h" | |
42ecbf5e DJ |
2609 | # Check that the precious variables saved in the cache have kept the same |
2610 | # value. | |
2611 | ac_cache_corrupted=false | |
81ecdfbb | 2612 | for ac_var in $ac_precious_vars; do |
42ecbf5e DJ |
2613 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2614 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2615 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2616 | eval ac_new_val=\$ac_env_${ac_var}_value | |
42ecbf5e DJ |
2617 | case $ac_old_set,$ac_new_set in |
2618 | set,) | |
81ecdfbb RW |
2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2620 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
42ecbf5e DJ |
2621 | ac_cache_corrupted=: ;; |
2622 | ,set) | |
81ecdfbb RW |
2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2624 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
42ecbf5e DJ |
2625 | ac_cache_corrupted=: ;; |
2626 | ,);; | |
2627 | *) | |
2628 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2629 | # differences in whitespace do not lead to failure. |
2630 | ac_old_val_w=`echo x $ac_old_val` | |
2631 | ac_new_val_w=`echo x $ac_new_val` | |
2632 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2634 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2635 | ac_cache_corrupted=: | |
2636 | else | |
2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2638 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2639 | eval $ac_var=\$ac_old_val | |
2640 | fi | |
2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2642 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2644 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
42ecbf5e DJ |
2645 | fi;; |
2646 | esac | |
2647 | # Pass precious variables to config.status. | |
2648 | if test "$ac_new_set" = set; then | |
2649 | case $ac_new_val in | |
81ecdfbb | 2650 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
42ecbf5e DJ |
2651 | *) ac_arg=$ac_var=$ac_new_val ;; |
2652 | esac | |
2653 | case " $ac_configure_args " in | |
2654 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2655 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
42ecbf5e DJ |
2656 | esac |
2657 | fi | |
2658 | done | |
2659 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2661 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2663 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2664 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
42ecbf5e | 2665 | fi |
81ecdfbb RW |
2666 | ## -------------------- ## |
2667 | ## Main body of script. ## | |
2668 | ## -------------------- ## | |
42ecbf5e DJ |
2669 | |
2670 | ac_ext=c | |
2671 | ac_cpp='$CPP $CPPFLAGS' | |
2672 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2673 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2674 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2675 | ||
2676 | ||
2677 | ||
42ecbf5e | 2678 | |
da594c4a | 2679 | |
42ecbf5e DJ |
2680 | |
2681 | ||
2682 | ac_aux_dir= | |
81ecdfbb | 2683 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
d0ac1c44 SM |
2684 | if test -f "$ac_dir/install-sh"; then |
2685 | ac_aux_dir=$ac_dir | |
2686 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2687 | break | |
2688 | elif test -f "$ac_dir/install.sh"; then | |
2689 | ac_aux_dir=$ac_dir | |
2690 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2691 | break | |
2692 | elif test -f "$ac_dir/shtool"; then | |
2693 | ac_aux_dir=$ac_dir | |
2694 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2695 | break | |
2696 | fi | |
42ecbf5e DJ |
2697 | done |
2698 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2699 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
42ecbf5e | 2700 | fi |
81ecdfbb RW |
2701 | |
2702 | # These three variables are undocumented and unsupported, | |
2703 | # and are intended to be withdrawn in a future Autoconf release. | |
2704 | # They can cause serious problems if a builder's source tree is in a directory | |
2705 | # whose full name contains unusual characters. | |
2706 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2707 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2708 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2709 | ||
42ecbf5e DJ |
2710 | |
2711 | # Make sure we can run config.sub. | |
81ecdfbb | 2712 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d0ac1c44 | 2713 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2714 | |
2715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2716 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2717 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2718 | $as_echo_n "(cached) " >&6 |
2719 | else | |
2720 | ac_build_alias=$build_alias | |
2721 | test "x$ac_build_alias" = x && | |
2722 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2723 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2724 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2725 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2726 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2727 | |
2728 | fi | |
2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2730 | $as_echo "$ac_cv_build" >&6; } | |
2731 | case $ac_cv_build in | |
2732 | *-*-*) ;; | |
d0ac1c44 | 2733 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2734 | esac |
42ecbf5e | 2735 | build=$ac_cv_build |
81ecdfbb RW |
2736 | ac_save_IFS=$IFS; IFS='-' |
2737 | set x $ac_cv_build | |
2738 | shift | |
2739 | build_cpu=$1 | |
2740 | build_vendor=$2 | |
2741 | shift; shift | |
2742 | # Remember, the first character of IFS is used to create $*, | |
2743 | # except with old shells: | |
2744 | build_os=$* | |
2745 | IFS=$ac_save_IFS | |
2746 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2747 | |
2748 | ||
81ecdfbb RW |
2749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2750 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2751 | if ${ac_cv_host+:} false; then : |
81ecdfbb RW |
2752 | $as_echo_n "(cached) " >&6 |
2753 | else | |
2754 | if test "x$host_alias" = x; then | |
2755 | ac_cv_host=$ac_cv_build | |
42ecbf5e | 2756 | else |
81ecdfbb | 2757 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
d0ac1c44 | 2758 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2759 | fi |
42ecbf5e DJ |
2760 | |
2761 | fi | |
81ecdfbb RW |
2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2763 | $as_echo "$ac_cv_host" >&6; } | |
2764 | case $ac_cv_host in | |
2765 | *-*-*) ;; | |
d0ac1c44 | 2766 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2767 | esac |
42ecbf5e | 2768 | host=$ac_cv_host |
81ecdfbb RW |
2769 | ac_save_IFS=$IFS; IFS='-' |
2770 | set x $ac_cv_host | |
2771 | shift | |
2772 | host_cpu=$1 | |
2773 | host_vendor=$2 | |
2774 | shift; shift | |
2775 | # Remember, the first character of IFS is used to create $*, | |
2776 | # except with old shells: | |
2777 | host_os=$* | |
2778 | IFS=$ac_save_IFS | |
2779 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2780 | |
2781 | ||
81ecdfbb RW |
2782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2783 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 2784 | if ${ac_cv_target+:} false; then : |
81ecdfbb | 2785 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 2786 | else |
81ecdfbb RW |
2787 | if test "x$target_alias" = x; then |
2788 | ac_cv_target=$ac_cv_host | |
2789 | else | |
2790 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
d0ac1c44 | 2791 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
81ecdfbb | 2792 | fi |
42ecbf5e DJ |
2793 | |
2794 | fi | |
81ecdfbb RW |
2795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2796 | $as_echo "$ac_cv_target" >&6; } | |
2797 | case $ac_cv_target in | |
2798 | *-*-*) ;; | |
d0ac1c44 | 2799 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb | 2800 | esac |
42ecbf5e | 2801 | target=$ac_cv_target |
81ecdfbb RW |
2802 | ac_save_IFS=$IFS; IFS='-' |
2803 | set x $ac_cv_target | |
2804 | shift | |
2805 | target_cpu=$1 | |
2806 | target_vendor=$2 | |
2807 | shift; shift | |
2808 | # Remember, the first character of IFS is used to create $*, | |
2809 | # except with old shells: | |
2810 | target_os=$* | |
2811 | IFS=$ac_save_IFS | |
2812 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2813 | |
2814 | ||
2815 | # The aliases save the names the user supplied, while $host etc. | |
2816 | # will get canonicalized. | |
2817 | test -n "$target_alias" && | |
2818 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2819 | NONENONEs,x,x, && | |
2820 | program_prefix=${target_alias}- | |
02ecc8e9 | 2821 | |
d0ac1c44 SM |
2822 | # Expand $ac_aux_dir to an absolute path. |
2823 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2824 | ||
42ecbf5e DJ |
2825 | ac_ext=c |
2826 | ac_cpp='$CPP $CPPFLAGS' | |
2827 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2828 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2829 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2830 | if test -n "$ac_tool_prefix"; then | |
2831 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2832 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2834 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2835 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 2836 | $as_echo_n "(cached) " >&6 |
42ecbf5e DJ |
2837 | else |
2838 | if test -n "$CC"; then | |
2839 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2840 | else | |
2841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2842 | for as_dir in $PATH | |
2843 | do | |
2844 | IFS=$as_save_IFS | |
2845 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2846 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2847 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
42ecbf5e | 2848 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2850 | break 2 |
2851 | fi | |
2852 | done | |
81ecdfbb RW |
2853 | done |
2854 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2855 | |
2856 | fi | |
2857 | fi | |
2858 | CC=$ac_cv_prog_CC | |
2859 | if test -n "$CC"; then | |
81ecdfbb RW |
2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2861 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2862 | else |
81ecdfbb RW |
2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2864 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2865 | fi |
2866 | ||
81ecdfbb | 2867 | |
42ecbf5e DJ |
2868 | fi |
2869 | if test -z "$ac_cv_prog_CC"; then | |
2870 | ac_ct_CC=$CC | |
2871 | # Extract the first word of "gcc", so it can be a program name with args. | |
2872 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2874 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2875 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 2876 | $as_echo_n "(cached) " >&6 |
42ecbf5e DJ |
2877 | else |
2878 | if test -n "$ac_ct_CC"; then | |
2879 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2880 | else | |
2881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2882 | for as_dir in $PATH | |
2883 | do | |
2884 | IFS=$as_save_IFS | |
2885 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2886 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2887 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
42ecbf5e | 2888 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2889 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2890 | break 2 |
2891 | fi | |
2892 | done | |
81ecdfbb RW |
2893 | done |
2894 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2895 | |
2896 | fi | |
2897 | fi | |
2898 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2899 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2901 | $as_echo "$ac_ct_CC" >&6; } | |
42ecbf5e | 2902 | else |
81ecdfbb RW |
2903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2904 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2905 | fi |
2906 | ||
81ecdfbb RW |
2907 | if test "x$ac_ct_CC" = x; then |
2908 | CC="" | |
2909 | else | |
2910 | case $cross_compiling:$ac_tool_warned in | |
2911 | yes:) | |
2912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2913 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2914 | ac_tool_warned=yes ;; | |
2915 | esac | |
2916 | CC=$ac_ct_CC | |
2917 | fi | |
42ecbf5e DJ |
2918 | else |
2919 | CC="$ac_cv_prog_CC" | |
2920 | fi | |
2921 | ||
2922 | if test -z "$CC"; then | |
81ecdfbb RW |
2923 | if test -n "$ac_tool_prefix"; then |
2924 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
42ecbf5e | 2925 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2927 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2928 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 2929 | $as_echo_n "(cached) " >&6 |
42ecbf5e DJ |
2930 | else |
2931 | if test -n "$CC"; then | |
2932 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2933 | else | |
2934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2935 | for as_dir in $PATH | |
2936 | do | |
2937 | IFS=$as_save_IFS | |
2938 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2939 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2940 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
42ecbf5e | 2941 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2942 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2943 | break 2 |
2944 | fi | |
2945 | done | |
81ecdfbb RW |
2946 | done |
2947 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2948 | |
2949 | fi | |
2950 | fi | |
2951 | CC=$ac_cv_prog_CC | |
2952 | if test -n "$CC"; then | |
81ecdfbb RW |
2953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2954 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2955 | else |
81ecdfbb RW |
2956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2957 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2958 | fi |
2959 | ||
42ecbf5e | 2960 | |
81ecdfbb | 2961 | fi |
42ecbf5e DJ |
2962 | fi |
2963 | if test -z "$CC"; then | |
2964 | # Extract the first word of "cc", so it can be a program name with args. | |
2965 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2967 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2968 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 2969 | $as_echo_n "(cached) " >&6 |
42ecbf5e DJ |
2970 | else |
2971 | if test -n "$CC"; then | |
2972 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2973 | else | |
2974 | ac_prog_rejected=no | |
2975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2976 | for as_dir in $PATH | |
2977 | do | |
2978 | IFS=$as_save_IFS | |
2979 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2980 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2981 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
42ecbf5e DJ |
2982 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2983 | ac_prog_rejected=yes | |
2984 | continue | |
2985 | fi | |
2986 | ac_cv_prog_CC="cc" | |
81ecdfbb | 2987 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2988 | break 2 |
2989 | fi | |
2990 | done | |
81ecdfbb RW |
2991 | done |
2992 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2993 | |
2994 | if test $ac_prog_rejected = yes; then | |
2995 | # We found a bogon in the path, so make sure we never use it. | |
2996 | set dummy $ac_cv_prog_CC | |
2997 | shift | |
2998 | if test $# != 0; then | |
2999 | # We chose a different compiler from the bogus one. | |
3000 | # However, it has the same basename, so the bogon will be chosen | |
3001 | # first if we set CC to just the basename; use the full file name. | |
3002 | shift | |
3003 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3004 | fi | |
3005 | fi | |
3006 | fi | |
3007 | fi | |
3008 | CC=$ac_cv_prog_CC | |
3009 | if test -n "$CC"; then | |
81ecdfbb RW |
3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3011 | $as_echo "$CC" >&6; } | |
42ecbf5e | 3012 | else |
81ecdfbb RW |
3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3014 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
3015 | fi |
3016 | ||
81ecdfbb | 3017 | |
42ecbf5e DJ |
3018 | fi |
3019 | if test -z "$CC"; then | |
3020 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 3021 | for ac_prog in cl.exe |
42ecbf5e DJ |
3022 | do |
3023 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3024 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3026 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3027 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3028 | $as_echo_n "(cached) " >&6 |
42ecbf5e DJ |
3029 | else |
3030 | if test -n "$CC"; then | |
3031 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3032 | else | |
3033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3034 | for as_dir in $PATH | |
3035 | do | |
3036 | IFS=$as_save_IFS | |
3037 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3038 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3039 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
42ecbf5e | 3040 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 3041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
3042 | break 2 |
3043 | fi | |
3044 | done | |
81ecdfbb RW |
3045 | done |
3046 | IFS=$as_save_IFS | |
42ecbf5e DJ |
3047 | |
3048 | fi | |
3049 | fi | |
3050 | CC=$ac_cv_prog_CC | |
3051 | if test -n "$CC"; then | |
81ecdfbb RW |
3052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3053 | $as_echo "$CC" >&6; } | |
42ecbf5e | 3054 | else |
81ecdfbb RW |
3055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3056 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
3057 | fi |
3058 | ||
81ecdfbb | 3059 | |
42ecbf5e DJ |
3060 | test -n "$CC" && break |
3061 | done | |
3062 | fi | |
3063 | if test -z "$CC"; then | |
3064 | ac_ct_CC=$CC | |
81ecdfbb | 3065 | for ac_prog in cl.exe |
42ecbf5e DJ |
3066 | do |
3067 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3068 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3070 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3071 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 3072 | $as_echo_n "(cached) " >&6 |
42ecbf5e DJ |
3073 | else |
3074 | if test -n "$ac_ct_CC"; then | |
3075 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3076 | else | |
3077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3078 | for as_dir in $PATH | |
3079 | do | |
3080 | IFS=$as_save_IFS | |
3081 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3082 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3083 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
42ecbf5e | 3084 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 3085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
3086 | break 2 |
3087 | fi | |
3088 | done | |
81ecdfbb RW |
3089 | done |
3090 | IFS=$as_save_IFS | |
42ecbf5e DJ |
3091 | |
3092 | fi | |
3093 | fi | |
3094 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3095 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3097 | $as_echo "$ac_ct_CC" >&6; } | |
42ecbf5e | 3098 | else |
81ecdfbb RW |
3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3100 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
3101 | fi |
3102 | ||
81ecdfbb | 3103 | |
42ecbf5e DJ |
3104 | test -n "$ac_ct_CC" && break |
3105 | done | |
3106 | ||
81ecdfbb RW |
3107 | if test "x$ac_ct_CC" = x; then |
3108 | CC="" | |
3109 | else | |
3110 | case $cross_compiling:$ac_tool_warned in | |
3111 | yes:) | |
3112 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3113 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3114 | ac_tool_warned=yes ;; | |
3115 | esac | |
3116 | CC=$ac_ct_CC | |
3117 | fi | |
42ecbf5e DJ |
3118 | fi |
3119 | ||
3120 | fi | |
3121 | ||
3122 | ||
81ecdfbb RW |
3123 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3124 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3125 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3126 | See \`config.log' for more details" "$LINENO" 5; } | |
42ecbf5e DJ |
3127 | |
3128 | # Provide some information about the compiler. | |
81ecdfbb RW |
3129 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3130 | set X $ac_compile | |
3131 | ac_compiler=$2 | |
3132 | for ac_option in --version -v -V -qversion; do | |
3133 | { { ac_try="$ac_compiler $ac_option >&5" | |
3134 | case "(($ac_try" in | |
3135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3136 | *) ac_try_echo=$ac_try;; | |
3137 | esac | |
3138 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3139 | $as_echo "$ac_try_echo"; } >&5 | |
3140 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
42ecbf5e | 3141 | ac_status=$? |
81ecdfbb RW |
3142 | if test -s conftest.err; then |
3143 | sed '10a\ | |
3144 | ... rest of stderr output deleted ... | |
3145 | 10q' conftest.err >conftest.er1 | |
3146 | cat conftest.er1 >&5 | |
81ecdfbb | 3147 | fi |
d0ac1c44 | 3148 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
3149 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3150 | test $ac_status = 0; } | |
3151 | done | |
42ecbf5e | 3152 | |
81ecdfbb | 3153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3154 | /* end confdefs.h. */ |
3155 | ||
3156 | int | |
3157 | main () | |
3158 | { | |
3159 | ||
3160 | ; | |
3161 | return 0; | |
3162 | } | |
3163 | _ACEOF | |
3164 | ac_clean_files_save=$ac_clean_files | |
d0ac1c44 | 3165 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
42ecbf5e DJ |
3166 | # Try to create an executable without -o first, disregard a.out. |
3167 | # It will help us diagnose broken compilers, and finding out an intuition | |
3168 | # of exeext. | |
d0ac1c44 SM |
3169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3170 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
81ecdfbb RW |
3171 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3172 | ||
3173 | # The possible output files: | |
3174 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3175 | ||
3176 | ac_rmfiles= | |
3177 | for ac_file in $ac_files | |
3178 | do | |
3179 | case $ac_file in | |
3180 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3181 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3182 | esac | |
3183 | done | |
3184 | rm -f $ac_rmfiles | |
3185 | ||
3186 | if { { ac_try="$ac_link_default" | |
3187 | case "(($ac_try" in | |
3188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3189 | *) ac_try_echo=$ac_try;; | |
3190 | esac | |
3191 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3192 | $as_echo "$ac_try_echo"; } >&5 | |
3193 | (eval "$ac_link_default") 2>&5 | |
3194 | ac_status=$? | |
3195 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3196 | test $ac_status = 0; }; then : | |
3197 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3198 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3199 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3200 | # so that the user can short-circuit this test for compilers unknown to | |
3201 | # Autoconf. | |
3202 | for ac_file in $ac_files '' | |
42ecbf5e DJ |
3203 | do |
3204 | test -f "$ac_file" || continue | |
3205 | case $ac_file in | |
81ecdfbb | 3206 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
42ecbf5e DJ |
3207 | ;; |
3208 | [ab].out ) | |
3209 | # We found the default executable, but exeext='' is most | |
3210 | # certainly right. | |
3211 | break;; | |
3212 | *.* ) | |
81ecdfbb RW |
3213 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3214 | then :; else | |
3215 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3216 | fi | |
3217 | # We set ac_cv_exeext here because the later test for it is not | |
3218 | # safe: cross compilers may not add the suffix if given an `-o' | |
3219 | # argument, so we may need to know it at that point already. | |
3220 | # Even if this section looks crufty: it has the advantage of | |
3221 | # actually working. | |
42ecbf5e DJ |
3222 | break;; |
3223 | * ) | |
3224 | break;; | |
3225 | esac | |
3226 | done | |
81ecdfbb RW |
3227 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3228 | ||
42ecbf5e | 3229 | else |
81ecdfbb RW |
3230 | ac_file='' |
3231 | fi | |
81ecdfbb | 3232 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3234 | $as_echo "no" >&6; } | |
3235 | $as_echo "$as_me: failed program was:" >&5 | |
42ecbf5e DJ |
3236 | sed 's/^/| /' conftest.$ac_ext >&5 |
3237 | ||
81ecdfbb RW |
3238 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3239 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3240 | as_fn_error 77 "C compiler cannot create executables |
3241 | See \`config.log' for more details" "$LINENO" 5; } | |
3242 | else | |
3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3244 | $as_echo "yes" >&6; } | |
42ecbf5e | 3245 | fi |
d0ac1c44 SM |
3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3247 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3249 | $as_echo "$ac_file" >&6; } | |
42ecbf5e | 3250 | ac_exeext=$ac_cv_exeext |
42ecbf5e | 3251 | |
d0ac1c44 | 3252 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
42ecbf5e | 3253 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3255 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3256 | if { { ac_try="$ac_link" | |
3257 | case "(($ac_try" in | |
3258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3259 | *) ac_try_echo=$ac_try;; | |
3260 | esac | |
3261 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3262 | $as_echo "$ac_try_echo"; } >&5 | |
3263 | (eval "$ac_link") 2>&5 | |
42ecbf5e | 3264 | ac_status=$? |
81ecdfbb RW |
3265 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3266 | test $ac_status = 0; }; then : | |
42ecbf5e DJ |
3267 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3268 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3269 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3270 | # `rm'. | |
3271 | for ac_file in conftest.exe conftest conftest.*; do | |
3272 | test -f "$ac_file" || continue | |
3273 | case $ac_file in | |
81ecdfbb | 3274 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
42ecbf5e | 3275 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
42ecbf5e DJ |
3276 | break;; |
3277 | * ) break;; | |
3278 | esac | |
3279 | done | |
3280 | else | |
81ecdfbb RW |
3281 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3282 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3283 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3284 | See \`config.log' for more details" "$LINENO" 5; } | |
42ecbf5e | 3285 | fi |
d0ac1c44 | 3286 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3288 | $as_echo "$ac_cv_exeext" >&6; } | |
42ecbf5e DJ |
3289 | |
3290 | rm -f conftest.$ac_ext | |
3291 | EXEEXT=$ac_cv_exeext | |
3292 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
3293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3294 | /* end confdefs.h. */ | |
3295 | #include <stdio.h> | |
3296 | int | |
3297 | main () | |
3298 | { | |
3299 | FILE *f = fopen ("conftest.out", "w"); | |
3300 | return ferror (f) || fclose (f) != 0; | |
3301 | ||
3302 | ; | |
3303 | return 0; | |
3304 | } | |
3305 | _ACEOF | |
3306 | ac_clean_files="$ac_clean_files conftest.out" | |
3307 | # Check that the compiler produces executables we can run. If not, either | |
3308 | # the compiler is broken, or we cross compile. | |
3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3310 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3311 | if test "$cross_compiling" != yes; then | |
3312 | { { ac_try="$ac_link" | |
3313 | case "(($ac_try" in | |
3314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3315 | *) ac_try_echo=$ac_try;; | |
3316 | esac | |
3317 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3318 | $as_echo "$ac_try_echo"; } >&5 | |
3319 | (eval "$ac_link") 2>&5 | |
3320 | ac_status=$? | |
3321 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3322 | test $ac_status = 0; } | |
3323 | if { ac_try='./conftest$ac_cv_exeext' | |
3324 | { { case "(($ac_try" in | |
3325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3326 | *) ac_try_echo=$ac_try;; | |
3327 | esac | |
3328 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3329 | $as_echo "$ac_try_echo"; } >&5 | |
3330 | (eval "$ac_try") 2>&5 | |
3331 | ac_status=$? | |
3332 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3333 | test $ac_status = 0; }; }; then | |
3334 | cross_compiling=no | |
3335 | else | |
3336 | if test "$cross_compiling" = maybe; then | |
3337 | cross_compiling=yes | |
3338 | else | |
3339 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3340 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3341 | as_fn_error $? "cannot run C compiled programs. | |
3342 | If you meant to cross compile, use \`--host'. | |
3343 | See \`config.log' for more details" "$LINENO" 5; } | |
3344 | fi | |
3345 | fi | |
3346 | fi | |
3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3348 | $as_echo "$cross_compiling" >&6; } | |
3349 | ||
3350 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3351 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3353 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 3354 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 3355 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 3356 | else |
81ecdfbb | 3357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3358 | /* end confdefs.h. */ |
3359 | ||
3360 | int | |
3361 | main () | |
3362 | { | |
3363 | ||
3364 | ; | |
3365 | return 0; | |
3366 | } | |
3367 | _ACEOF | |
3368 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3369 | if { { ac_try="$ac_compile" |
3370 | case "(($ac_try" in | |
3371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3372 | *) ac_try_echo=$ac_try;; | |
3373 | esac | |
3374 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3375 | $as_echo "$ac_try_echo"; } >&5 | |
3376 | (eval "$ac_compile") 2>&5 | |
3377 | ac_status=$? | |
3378 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3379 | test $ac_status = 0; }; then : | |
3380 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3381 | test -f "$ac_file" || continue; | |
42ecbf5e | 3382 | case $ac_file in |
81ecdfbb | 3383 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
42ecbf5e DJ |
3384 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3385 | break;; | |
3386 | esac | |
3387 | done | |
3388 | else | |
81ecdfbb | 3389 | $as_echo "$as_me: failed program was:" >&5 |
42ecbf5e DJ |
3390 | sed 's/^/| /' conftest.$ac_ext >&5 |
3391 | ||
81ecdfbb RW |
3392 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3393 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3394 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3395 | See \`config.log' for more details" "$LINENO" 5; } | |
42ecbf5e | 3396 | fi |
42ecbf5e DJ |
3397 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3398 | fi | |
81ecdfbb RW |
3399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3400 | $as_echo "$ac_cv_objext" >&6; } | |
42ecbf5e DJ |
3401 | OBJEXT=$ac_cv_objext |
3402 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3404 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 3405 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 3406 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 3407 | else |
81ecdfbb | 3408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3409 | /* end confdefs.h. */ |
3410 | ||
3411 | int | |
3412 | main () | |
3413 | { | |
3414 | #ifndef __GNUC__ | |
3415 | choke me | |
3416 | #endif | |
3417 | ||
3418 | ; | |
3419 | return 0; | |
3420 | } | |
3421 | _ACEOF | |
81ecdfbb | 3422 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
3423 | ac_compiler_gnu=yes |
3424 | else | |
81ecdfbb | 3425 | ac_compiler_gnu=no |
42ecbf5e | 3426 | fi |
81ecdfbb | 3427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
42ecbf5e DJ |
3428 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3429 | ||
3430 | fi | |
81ecdfbb RW |
3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3432 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3433 | if test $ac_compiler_gnu = yes; then | |
3434 | GCC=yes | |
3435 | else | |
3436 | GCC= | |
3437 | fi | |
42ecbf5e DJ |
3438 | ac_test_CFLAGS=${CFLAGS+set} |
3439 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3441 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 3442 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
3443 | $as_echo_n "(cached) " >&6 |
3444 | else | |
3445 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3446 | ac_c_werror_flag=yes | |
3447 | ac_cv_prog_cc_g=no | |
3448 | CFLAGS="-g" | |
3449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
42ecbf5e DJ |
3450 | /* end confdefs.h. */ |
3451 | ||
3452 | int | |
3453 | main () | |
3454 | { | |
3455 | ||
3456 | ; | |
3457 | return 0; | |
3458 | } | |
3459 | _ACEOF | |
81ecdfbb | 3460 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
3461 | ac_cv_prog_cc_g=yes |
3462 | else | |
81ecdfbb RW |
3463 | CFLAGS="" |
3464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3465 | /* end confdefs.h. */ | |
3466 | ||
3467 | int | |
3468 | main () | |
3469 | { | |
3470 | ||
3471 | ; | |
3472 | return 0; | |
3473 | } | |
3474 | _ACEOF | |
3475 | if ac_fn_c_try_compile "$LINENO"; then : | |
3476 | ||
3477 | else | |
3478 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3479 | CFLAGS="-g" | |
3480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3481 | /* end confdefs.h. */ | |
3482 | ||
3483 | int | |
3484 | main () | |
3485 | { | |
42ecbf5e | 3486 | |
81ecdfbb RW |
3487 | ; |
3488 | return 0; | |
3489 | } | |
3490 | _ACEOF | |
3491 | if ac_fn_c_try_compile "$LINENO"; then : | |
3492 | ac_cv_prog_cc_g=yes | |
3493 | fi | |
3494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3495 | fi | |
3496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
42ecbf5e | 3497 | fi |
81ecdfbb RW |
3498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3499 | ac_c_werror_flag=$ac_save_c_werror_flag | |
42ecbf5e | 3500 | fi |
81ecdfbb RW |
3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3502 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
42ecbf5e DJ |
3503 | if test "$ac_test_CFLAGS" = set; then |
3504 | CFLAGS=$ac_save_CFLAGS | |
3505 | elif test $ac_cv_prog_cc_g = yes; then | |
3506 | if test "$GCC" = yes; then | |
3507 | CFLAGS="-g -O2" | |
3508 | else | |
3509 | CFLAGS="-g" | |
3510 | fi | |
3511 | else | |
3512 | if test "$GCC" = yes; then | |
3513 | CFLAGS="-O2" | |
3514 | else | |
3515 | CFLAGS= | |
3516 | fi | |
3517 | fi | |
81ecdfbb RW |
3518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3519 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 3520 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 3521 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 3522 | else |
81ecdfbb | 3523 | ac_cv_prog_cc_c89=no |
42ecbf5e | 3524 | ac_save_CC=$CC |
81ecdfbb | 3525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3526 | /* end confdefs.h. */ |
3527 | #include <stdarg.h> | |
3528 | #include <stdio.h> | |
d0ac1c44 | 3529 | struct stat; |
42ecbf5e DJ |
3530 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3531 | struct buf { int x; }; | |
3532 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3533 | static char *e (p, i) | |
3534 | char **p; | |
3535 | int i; | |
3536 | { | |
3537 | return p[i]; | |
3538 | } | |
3539 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3540 | { | |
3541 | char *s; | |
3542 | va_list v; | |
3543 | va_start (v,p); | |
3544 | s = g (p, va_arg (v,int)); | |
3545 | va_end (v); | |
3546 | return s; | |
3547 | } | |
3548 | ||
3549 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3550 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3551 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3552 | as 'x'. The following induces an error, until -std is added to get |
42ecbf5e DJ |
3553 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3554 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3555 | that's true only with -std. */ |
42ecbf5e DJ |
3556 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3557 | ||
81ecdfbb RW |
3558 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3559 | inside strings and character constants. */ | |
3560 | #define FOO(x) 'x' | |
3561 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3562 | ||
42ecbf5e DJ |
3563 | int test (int i, double x); |
3564 | struct s1 {int (*f) (int a);}; | |
3565 | struct s2 {int (*f) (double a);}; | |
3566 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3567 | int argc; | |
3568 | char **argv; | |
3569 | int | |
3570 | main () | |
3571 | { | |
3572 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3573 | ; | |
3574 | return 0; | |
3575 | } | |
3576 | _ACEOF | |
81ecdfbb RW |
3577 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3578 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
42ecbf5e DJ |
3579 | do |
3580 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3581 | if ac_fn_c_try_compile "$LINENO"; then : |
3582 | ac_cv_prog_cc_c89=$ac_arg | |
42ecbf5e | 3583 | fi |
81ecdfbb RW |
3584 | rm -f core conftest.err conftest.$ac_objext |
3585 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
42ecbf5e | 3586 | done |
81ecdfbb | 3587 | rm -f conftest.$ac_ext |
42ecbf5e DJ |
3588 | CC=$ac_save_CC |
3589 | ||
3590 | fi | |
81ecdfbb RW |
3591 | # AC_CACHE_VAL |
3592 | case "x$ac_cv_prog_cc_c89" in | |
3593 | x) | |
3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3595 | $as_echo "none needed" >&6; } ;; | |
3596 | xno) | |
3597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3598 | $as_echo "unsupported" >&6; } ;; | |
42ecbf5e | 3599 | *) |
81ecdfbb RW |
3600 | CC="$CC $ac_cv_prog_cc_c89" |
3601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3602 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
42ecbf5e | 3603 | esac |
81ecdfbb | 3604 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
42ecbf5e | 3605 | |
42ecbf5e DJ |
3606 | fi |
3607 | ||
42ecbf5e DJ |
3608 | ac_ext=c |
3609 | ac_cpp='$CPP $CPPFLAGS' | |
3610 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3611 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3612 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3613 | ||
d0ac1c44 SM |
3614 | ac_ext=c |
3615 | ac_cpp='$CPP $CPPFLAGS' | |
3616 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3617 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3618 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3620 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3621 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3622 | $as_echo_n "(cached) " >&6 | |
3623 | else | |
3624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3625 | /* end confdefs.h. */ | |
3626 | ||
3627 | int | |
3628 | main () | |
3629 | { | |
3630 | ||
3631 | ; | |
3632 | return 0; | |
3633 | } | |
3634 | _ACEOF | |
3635 | # Make sure it works both with $CC and with simple cc. | |
3636 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3637 | # compilers refuse to overwrite an existing .o file with -o, | |
3638 | # though they will create one. | |
3639 | am_cv_prog_cc_c_o=yes | |
3640 | for am_i in 1 2; do | |
3641 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3642 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3643 | ac_status=$? | |
3644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3645 | (exit $ac_status); } \ | |
3646 | && test -f conftest2.$ac_objext; then | |
3647 | : OK | |
3648 | else | |
3649 | am_cv_prog_cc_c_o=no | |
3650 | break | |
3651 | fi | |
3652 | done | |
3653 | rm -f core conftest* | |
3654 | unset am_i | |
3655 | fi | |
3656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3657 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3658 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3659 | # Losing compiler, so override with the script. | |
3660 | # FIXME: It is wrong to rewrite CC. | |
3661 | # But if we don't then we get into trouble of one sort or another. | |
3662 | # A longer-term fix would be to have automake use am__CC in this case, | |
3663 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3664 | CC="$am_aux_dir/compile $CC" | |
3665 | fi | |
3666 | ac_ext=c | |
3667 | ac_cpp='$CPP $CPPFLAGS' | |
3668 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3669 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3670 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3671 | ||
3672 | ||
42ecbf5e | 3673 | |
81ecdfbb RW |
3674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
3675 | $as_echo_n "checking for library containing strerror... " >&6; } | |
d0ac1c44 | 3676 | if ${ac_cv_search_strerror+:} false; then : |
81ecdfbb | 3677 | $as_echo_n "(cached) " >&6 |
42ecbf5e DJ |
3678 | else |
3679 | ac_func_search_save_LIBS=$LIBS | |
81ecdfbb | 3680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3681 | /* end confdefs.h. */ |
3682 | ||
81ecdfbb RW |
3683 | /* Override any GCC internal prototype to avoid an error. |
3684 | Use char because int might match the return type of a GCC | |
3685 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
3686 | #ifdef __cplusplus |
3687 | extern "C" | |
3688 | #endif | |
42ecbf5e DJ |
3689 | char strerror (); |
3690 | int | |
3691 | main () | |
3692 | { | |
81ecdfbb | 3693 | return strerror (); |
42ecbf5e DJ |
3694 | ; |
3695 | return 0; | |
3696 | } | |
3697 | _ACEOF | |
81ecdfbb RW |
3698 | for ac_lib in '' cposix; do |
3699 | if test -z "$ac_lib"; then | |
3700 | ac_res="none required" | |
3701 | else | |
3702 | ac_res=-l$ac_lib | |
42ecbf5e | 3703 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
3704 | fi |
3705 | if ac_fn_c_try_link "$LINENO"; then : | |
3706 | ac_cv_search_strerror=$ac_res | |
3707 | fi | |
3708 | rm -f core conftest.err conftest.$ac_objext \ | |
3709 | conftest$ac_exeext | |
d0ac1c44 | 3710 | if ${ac_cv_search_strerror+:} false; then : |
81ecdfbb RW |
3711 | break |
3712 | fi | |
3713 | done | |
d0ac1c44 | 3714 | if ${ac_cv_search_strerror+:} false; then : |
42ecbf5e | 3715 | |
42ecbf5e | 3716 | else |
81ecdfbb | 3717 | ac_cv_search_strerror=no |
42ecbf5e | 3718 | fi |
81ecdfbb | 3719 | rm conftest.$ac_ext |
42ecbf5e DJ |
3720 | LIBS=$ac_func_search_save_LIBS |
3721 | fi | |
81ecdfbb RW |
3722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
3723 | $as_echo "$ac_cv_search_strerror" >&6; } | |
3724 | ac_res=$ac_cv_search_strerror | |
3725 | if test "$ac_res" != no; then : | |
3726 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e DJ |
3727 | |
3728 | fi | |
e5a52504 MM |
3729 | |
3730 | ||
d0ac1c44 | 3731 | am__api_version='1.15' |
81ecdfbb | 3732 | |
e5a52504 MM |
3733 | # Find a good install program. We prefer a C program (faster), |
3734 | # so one script is as good as another. But avoid the broken or | |
3735 | # incompatible versions: | |
3736 | # SysV /etc/install, /usr/sbin/install | |
3737 | # SunOS /usr/etc/install | |
3738 | # IRIX /sbin/install | |
3739 | # AIX /bin/install | |
42ecbf5e | 3740 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5a52504 MM |
3741 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3742 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3743 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
42ecbf5e | 3744 | # OS/2's system install, which has a completely different semantic |
e5a52504 | 3745 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 3746 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3748 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5a52504 | 3749 | if test -z "$INSTALL"; then |
d0ac1c44 | 3750 | if ${ac_cv_path_install+:} false; then : |
81ecdfbb | 3751 | $as_echo_n "(cached) " >&6 |
e5a52504 | 3752 | else |
42ecbf5e DJ |
3753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3754 | for as_dir in $PATH | |
3755 | do | |
3756 | IFS=$as_save_IFS | |
3757 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3758 | # Account for people who put trailing slashes in PATH elements. |
3759 | case $as_dir/ in #(( | |
3760 | ./ | .// | /[cC]/* | \ | |
42ecbf5e | 3761 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 3762 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
42ecbf5e DJ |
3763 | /usr/ucb/* ) ;; |
3764 | *) | |
3765 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3766 | # Don't use installbsd from OSF since it installs stuff as root | |
3767 | # by default. | |
3768 | for ac_prog in ginstall scoinst install; do | |
3769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 3770 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
252b5132 | 3771 | if test $ac_prog = install && |
42ecbf5e | 3772 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
3773 | # AIX install. It has an incompatible calling convention. |
3774 | : | |
42ecbf5e DJ |
3775 | elif test $ac_prog = install && |
3776 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3777 | # program-specific install script used by HP pwplus--don't use. | |
3778 | : | |
252b5132 | 3779 | else |
58c85be7 RW |
3780 | rm -rf conftest.one conftest.two conftest.dir |
3781 | echo one > conftest.one | |
3782 | echo two > conftest.two | |
3783 | mkdir conftest.dir | |
3784 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3785 | test -s conftest.one && test -s conftest.two && | |
3786 | test -s conftest.dir/conftest.one && | |
3787 | test -s conftest.dir/conftest.two | |
3788 | then | |
3789 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3790 | break 3 | |
3791 | fi | |
252b5132 RH |
3792 | fi |
3793 | fi | |
3794 | done | |
42ecbf5e DJ |
3795 | done |
3796 | ;; | |
3797 | esac | |
81ecdfbb RW |
3798 | |
3799 | done | |
3800 | IFS=$as_save_IFS | |
42ecbf5e | 3801 | |
58c85be7 | 3802 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
3803 | |
3804 | fi | |
3805 | if test "${ac_cv_path_install+set}" = set; then | |
42ecbf5e | 3806 | INSTALL=$ac_cv_path_install |
252b5132 | 3807 | else |
58c85be7 RW |
3808 | # As a last resort, use the slow shell script. Don't cache a |
3809 | # value for INSTALL within a source directory, because that will | |
252b5132 | 3810 | # break other packages using the cache if that directory is |
58c85be7 | 3811 | # removed, or if the value is a relative name. |
42ecbf5e | 3812 | INSTALL=$ac_install_sh |
252b5132 RH |
3813 | fi |
3814 | fi | |
81ecdfbb RW |
3815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3816 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
3817 | |
3818 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3819 | # It thinks the first close brace ends the variable substitution. | |
3820 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3821 | ||
42ecbf5e | 3822 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
3823 | |
3824 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3825 | ||
81ecdfbb RW |
3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3827 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
81ecdfbb RW |
3828 | # Reject unsafe characters in $srcdir or the absolute working directory |
3829 | # name. Accept space and tab only in the latter. | |
3830 | am_lf=' | |
3831 | ' | |
3832 | case `pwd` in | |
3833 | *[\\\"\#\$\&\'\`$am_lf]*) | |
d0ac1c44 | 3834 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
81ecdfbb RW |
3835 | esac |
3836 | case $srcdir in | |
3837 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
d0ac1c44 | 3838 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
81ecdfbb RW |
3839 | esac |
3840 | ||
d0ac1c44 | 3841 | # Do 'set' in a subshell so we don't clobber the current shell's |
252b5132 RH |
3842 | # arguments. Must try -L first in case configure is actually a |
3843 | # symlink; some systems play weird games with the mod time of symlinks | |
3844 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3845 | # directory). | |
3846 | if ( | |
d0ac1c44 SM |
3847 | am_has_slept=no |
3848 | for am_try in 1 2; do | |
3849 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
3850 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3851 | if test "$*" = "X"; then | |
3852 | # -L didn't work. | |
3853 | set X `ls -t "$srcdir/configure" conftest.file` | |
3854 | fi | |
3855 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3856 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3857 | ||
3858 | # If neither matched, then we have a broken ls. This can happen | |
3859 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3860 | # broken ls alias from the environment. This has actually | |
3861 | # happened. Such a system could not be considered "sane". | |
3862 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3863 | alias in your environment" "$LINENO" 5 | |
3864 | fi | |
3865 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
3866 | break | |
3867 | fi | |
3868 | # Just in case. | |
3869 | sleep 1 | |
3870 | am_has_slept=yes | |
3871 | done | |
42ecbf5e | 3872 | test "$2" = conftest.file |
252b5132 RH |
3873 | ) |
3874 | then | |
3875 | # Ok. | |
3876 | : | |
3877 | else | |
d0ac1c44 | 3878 | as_fn_error $? "newly created file is older than distributed files! |
81ecdfbb | 3879 | Check your system clock" "$LINENO" 5 |
252b5132 | 3880 | fi |
81ecdfbb RW |
3881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3882 | $as_echo "yes" >&6; } | |
d0ac1c44 SM |
3883 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
3884 | # generated files are strictly newer. | |
3885 | am_sleep_pid= | |
3886 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
3887 | ( sleep 1 ) & | |
3888 | am_sleep_pid=$! | |
3889 | fi | |
3890 | ||
3891 | rm -f conftest.file | |
3892 | ||
252b5132 | 3893 | test "$program_prefix" != NONE && |
81ecdfbb | 3894 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
252b5132 RH |
3895 | # Use a double $ so make ignores it. |
3896 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
3897 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3898 | # Double any \ or $. | |
42ecbf5e | 3899 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
3900 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3901 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
42ecbf5e | 3902 | |
81ecdfbb RW |
3903 | if test x"${MISSING+set}" != xset; then |
3904 | case $am_aux_dir in | |
3905 | *\ * | *\ *) | |
3906 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3907 | *) | |
3908 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3909 | esac | |
3910 | fi | |
42ecbf5e | 3911 | # Use eval to expand $SHELL |
d0ac1c44 SM |
3912 | if eval "$MISSING --is-lightweight"; then |
3913 | am_missing_run="$MISSING " | |
42ecbf5e DJ |
3914 | else |
3915 | am_missing_run= | |
d0ac1c44 SM |
3916 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
3917 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
81ecdfbb RW |
3918 | fi |
3919 | ||
d0ac1c44 | 3920 | if test x"${install_sh+set}" != xset; then |
81ecdfbb RW |
3921 | case $am_aux_dir in |
3922 | *\ * | *\ *) | |
3923 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3924 | *) | |
3925 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3926 | esac | |
3927 | fi | |
3928 | ||
d0ac1c44 SM |
3929 | # Installed binaries are usually stripped using 'strip' when the user |
3930 | # run "make install-strip". However 'strip' might not be the right | |
81ecdfbb | 3931 | # tool to use in cross-compilation environments, therefore Automake |
d0ac1c44 | 3932 | # will honor the 'STRIP' environment variable to overrule this program. |
81ecdfbb RW |
3933 | if test "$cross_compiling" != no; then |
3934 | if test -n "$ac_tool_prefix"; then | |
3935 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3936 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3938 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3939 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb RW |
3940 | $as_echo_n "(cached) " >&6 |
3941 | else | |
3942 | if test -n "$STRIP"; then | |
3943 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3944 | else | |
3945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3946 | for as_dir in $PATH | |
3947 | do | |
3948 | IFS=$as_save_IFS | |
3949 | test -z "$as_dir" && as_dir=. | |
3950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 3951 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
3952 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3954 | break 2 | |
3955 | fi | |
3956 | done | |
3957 | done | |
3958 | IFS=$as_save_IFS | |
3959 | ||
3960 | fi | |
3961 | fi | |
3962 | STRIP=$ac_cv_prog_STRIP | |
3963 | if test -n "$STRIP"; then | |
3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3965 | $as_echo "$STRIP" >&6; } | |
3966 | else | |
3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3968 | $as_echo "no" >&6; } | |
3969 | fi | |
3970 | ||
3971 | ||
3972 | fi | |
3973 | if test -z "$ac_cv_prog_STRIP"; then | |
3974 | ac_ct_STRIP=$STRIP | |
3975 | # Extract the first word of "strip", so it can be a program name with args. | |
3976 | set dummy strip; ac_word=$2 | |
3977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3978 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3979 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
81ecdfbb RW |
3980 | $as_echo_n "(cached) " >&6 |
3981 | else | |
3982 | if test -n "$ac_ct_STRIP"; then | |
3983 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3984 | else | |
3985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3986 | for as_dir in $PATH | |
3987 | do | |
3988 | IFS=$as_save_IFS | |
3989 | test -z "$as_dir" && as_dir=. | |
3990 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 3991 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
3992 | ac_cv_prog_ac_ct_STRIP="strip" |
3993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3994 | break 2 | |
3995 | fi | |
3996 | done | |
3997 | done | |
3998 | IFS=$as_save_IFS | |
3999 | ||
4000 | fi | |
4001 | fi | |
4002 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4003 | if test -n "$ac_ct_STRIP"; then | |
4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4005 | $as_echo "$ac_ct_STRIP" >&6; } | |
4006 | else | |
4007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4008 | $as_echo "no" >&6; } | |
4009 | fi | |
4010 | ||
4011 | if test "x$ac_ct_STRIP" = x; then | |
4012 | STRIP=":" | |
4013 | else | |
4014 | case $cross_compiling:$ac_tool_warned in | |
4015 | yes:) | |
4016 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4017 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4018 | ac_tool_warned=yes ;; | |
4019 | esac | |
4020 | STRIP=$ac_ct_STRIP | |
4021 | fi | |
4022 | else | |
4023 | STRIP="$ac_cv_prog_STRIP" | |
4024 | fi | |
4025 | ||
4026 | fi | |
4027 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
4028 | ||
4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
4030 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4031 | if test -z "$MKDIR_P"; then | |
d0ac1c44 | 4032 | if ${ac_cv_path_mkdir+:} false; then : |
81ecdfbb RW |
4033 | $as_echo_n "(cached) " >&6 |
4034 | else | |
4035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4036 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4037 | do | |
4038 | IFS=$as_save_IFS | |
4039 | test -z "$as_dir" && as_dir=. | |
4040 | for ac_prog in mkdir gmkdir; do | |
4041 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 4042 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
81ecdfbb RW |
4043 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
4044 | 'mkdir (GNU coreutils) '* | \ | |
4045 | 'mkdir (coreutils) '* | \ | |
4046 | 'mkdir (fileutils) '4.1*) | |
4047 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4048 | break 3;; | |
4049 | esac | |
4050 | done | |
4051 | done | |
42ecbf5e | 4052 | done |
81ecdfbb RW |
4053 | IFS=$as_save_IFS |
4054 | ||
4055 | fi | |
4056 | ||
d0ac1c44 | 4057 | test -d ./--version && rmdir ./--version |
81ecdfbb RW |
4058 | if test "${ac_cv_path_mkdir+set}" = set; then |
4059 | MKDIR_P="$ac_cv_path_mkdir -p" | |
42ecbf5e | 4060 | else |
81ecdfbb RW |
4061 | # As a last resort, use the slow shell script. Don't cache a |
4062 | # value for MKDIR_P within a source directory, because that will | |
4063 | # break other packages using the cache if that directory is | |
4064 | # removed, or if the value is a relative name. | |
81ecdfbb | 4065 | MKDIR_P="$ac_install_sh -d" |
42ecbf5e DJ |
4066 | fi |
4067 | fi | |
81ecdfbb RW |
4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4069 | $as_echo "$MKDIR_P" >&6; } | |
4070 | ||
42ecbf5e DJ |
4071 | for ac_prog in gawk mawk nawk awk |
4072 | do | |
4073 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4074 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4076 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4077 | if ${ac_cv_prog_AWK+:} false; then : |
81ecdfbb | 4078 | $as_echo_n "(cached) " >&6 |
42ecbf5e DJ |
4079 | else |
4080 | if test -n "$AWK"; then | |
4081 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4082 | else | |
4083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4084 | for as_dir in $PATH | |
4085 | do | |
4086 | IFS=$as_save_IFS | |
4087 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4088 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4089 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
42ecbf5e | 4090 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 4091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
4092 | break 2 |
4093 | fi | |
4094 | done | |
81ecdfbb RW |
4095 | done |
4096 | IFS=$as_save_IFS | |
42ecbf5e DJ |
4097 | |
4098 | fi | |
4099 | fi | |
4100 | AWK=$ac_cv_prog_AWK | |
4101 | if test -n "$AWK"; then | |
81ecdfbb RW |
4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
4103 | $as_echo "$AWK" >&6; } | |
42ecbf5e | 4104 | else |
81ecdfbb RW |
4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4106 | $as_echo "no" >&6; } | |
42ecbf5e | 4107 | fi |
252b5132 | 4108 | |
81ecdfbb | 4109 | |
42ecbf5e DJ |
4110 | test -n "$AWK" && break |
4111 | done | |
252b5132 | 4112 | |
81ecdfbb RW |
4113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4114 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4115 | set x ${MAKE-make} | |
4116 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0ac1c44 | 4117 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
81ecdfbb | 4118 | $as_echo_n "(cached) " >&6 |
252b5132 | 4119 | else |
42ecbf5e | 4120 | cat >conftest.make <<\_ACEOF |
81ecdfbb | 4121 | SHELL = /bin/sh |
252b5132 | 4122 | all: |
81ecdfbb | 4123 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
42ecbf5e | 4124 | _ACEOF |
d0ac1c44 | 4125 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
81ecdfbb RW |
4126 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4127 | *@@@%%%=?*=@@@%%%*) | |
4128 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4129 | *) | |
4130 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4131 | esac | |
42ecbf5e | 4132 | rm -f conftest.make |
252b5132 | 4133 | fi |
81ecdfbb RW |
4134 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
4135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4136 | $as_echo "yes" >&6; } | |
252b5132 RH |
4137 | SET_MAKE= |
4138 | else | |
81ecdfbb RW |
4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4140 | $as_echo "no" >&6; } | |
252b5132 RH |
4141 | SET_MAKE="MAKE=${MAKE-make}" |
4142 | fi | |
4143 | ||
42ecbf5e DJ |
4144 | rm -rf .tst 2>/dev/null |
4145 | mkdir .tst 2>/dev/null | |
4146 | if test -d .tst; then | |
4147 | am__leading_dot=. | |
4148 | else | |
4149 | am__leading_dot=_ | |
4150 | fi | |
4151 | rmdir .tst 2>/dev/null | |
4152 | ||
4153 | DEPDIR="${am__leading_dot}deps" | |
4154 | ||
81ecdfbb | 4155 | ac_config_commands="$ac_config_commands depfiles" |
42ecbf5e DJ |
4156 | |
4157 | ||
4158 | am_make=${MAKE-make} | |
4159 | cat > confinc << 'END' | |
4160 | am__doit: | |
81ecdfbb | 4161 | @echo this is the am__doit target |
42ecbf5e DJ |
4162 | .PHONY: am__doit |
4163 | END | |
4164 | # If we don't find an include directive, just comment out the code. | |
81ecdfbb RW |
4165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
4166 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
42ecbf5e DJ |
4167 | am__include="#" |
4168 | am__quote= | |
4169 | _am_result=none | |
4170 | # First try GNU make style include. | |
4171 | echo "include confinc" > confmf | |
d0ac1c44 | 4172 | # Ignore all kinds of additional output from 'make'. |
81ecdfbb RW |
4173 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4174 | *the\ am__doit\ target*) | |
4175 | am__include=include | |
4176 | am__quote= | |
4177 | _am_result=GNU | |
4178 | ;; | |
4179 | esac | |
42ecbf5e DJ |
4180 | # Now try BSD make style include. |
4181 | if test "$am__include" = "#"; then | |
4182 | echo '.include "confinc"' > confmf | |
81ecdfbb RW |
4183 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4184 | *the\ am__doit\ target*) | |
4185 | am__include=.include | |
4186 | am__quote="\"" | |
4187 | _am_result=BSD | |
4188 | ;; | |
4189 | esac | |
42ecbf5e DJ |
4190 | fi |
4191 | ||
4192 | ||
81ecdfbb RW |
4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4194 | $as_echo "$_am_result" >&6; } | |
42ecbf5e DJ |
4195 | rm -f confinc confmf |
4196 | ||
81ecdfbb RW |
4197 | # Check whether --enable-dependency-tracking was given. |
4198 | if test "${enable_dependency_tracking+set}" = set; then : | |
4199 | enableval=$enable_dependency_tracking; | |
4200 | fi | |
42ecbf5e | 4201 | |
42ecbf5e DJ |
4202 | if test "x$enable_dependency_tracking" != xno; then |
4203 | am_depcomp="$ac_aux_dir/depcomp" | |
4204 | AMDEPBACKSLASH='\' | |
6eb7d830 | 4205 | am__nodep='_no' |
42ecbf5e | 4206 | fi |
81ecdfbb | 4207 | if test "x$enable_dependency_tracking" != xno; then |
42ecbf5e DJ |
4208 | AMDEP_TRUE= |
4209 | AMDEP_FALSE='#' | |
4210 | else | |
4211 | AMDEP_TRUE='#' | |
4212 | AMDEP_FALSE= | |
4213 | fi | |
4214 | ||
e5a52504 | 4215 | |
d0ac1c44 SM |
4216 | # Check whether --enable-silent-rules was given. |
4217 | if test "${enable_silent_rules+set}" = set; then : | |
4218 | enableval=$enable_silent_rules; | |
4219 | fi | |
4220 | ||
4221 | case $enable_silent_rules in # ((( | |
4222 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4223 | no) AM_DEFAULT_VERBOSITY=1;; | |
4224 | *) AM_DEFAULT_VERBOSITY=1;; | |
4225 | esac | |
4226 | am_make=${MAKE-make} | |
4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4228 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4229 | if ${am_cv_make_support_nested_variables+:} false; then : | |
4230 | $as_echo_n "(cached) " >&6 | |
4231 | else | |
4232 | if $as_echo 'TRUE=$(BAR$(V)) | |
4233 | BAR0=false | |
4234 | BAR1=true | |
4235 | V=1 | |
4236 | am__doit: | |
4237 | @$(TRUE) | |
4238 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
4239 | am_cv_make_support_nested_variables=yes | |
4240 | else | |
4241 | am_cv_make_support_nested_variables=no | |
4242 | fi | |
4243 | fi | |
4244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
4245 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
4246 | if test $am_cv_make_support_nested_variables = yes; then | |
4247 | AM_V='$(V)' | |
4248 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
4249 | else | |
4250 | AM_V=$AM_DEFAULT_VERBOSITY | |
4251 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
4252 | fi | |
4253 | AM_BACKSLASH='\' | |
4254 | ||
81ecdfbb RW |
4255 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4256 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4257 | # is not polluted with repeated "-I." | |
4258 | am__isrc=' -I$(srcdir)' | |
4259 | # test to see if srcdir already configured | |
4260 | if test -f $srcdir/config.status; then | |
d0ac1c44 | 4261 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
81ecdfbb | 4262 | fi |
42ecbf5e | 4263 | fi |
252b5132 | 4264 | |
42ecbf5e DJ |
4265 | # test whether we have cygpath |
4266 | if test -z "$CYGPATH_W"; then | |
4267 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4268 | CYGPATH_W='cygpath -w' | |
4269 | else | |
4270 | CYGPATH_W=echo | |
4271 | fi | |
252b5132 | 4272 | fi |
42ecbf5e DJ |
4273 | |
4274 | ||
4275 | # Define the identity of the package. | |
2e98a7bd | 4276 | PACKAGE='ld' |
b19d852d | 4277 | VERSION='2.35.50' |
42ecbf5e DJ |
4278 | |
4279 | ||
4280 | cat >>confdefs.h <<_ACEOF | |
e5a52504 | 4281 | #define PACKAGE "$PACKAGE" |
42ecbf5e DJ |
4282 | _ACEOF |
4283 | ||
252b5132 | 4284 | |
42ecbf5e | 4285 | cat >>confdefs.h <<_ACEOF |
e5a52504 | 4286 | #define VERSION "$VERSION" |
42ecbf5e DJ |
4287 | _ACEOF |
4288 | ||
4289 | # Some tools Automake needs. | |
4290 | ||
4291 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
4292 | ||
4293 | ||
4294 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
4295 | ||
4296 | ||
4297 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
4298 | ||
4299 | ||
4300 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
4301 | ||
e5a52504 | 4302 | |
42ecbf5e | 4303 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
e5a52504 | 4304 | |
d0ac1c44 SM |
4305 | # For better backward compatibility. To be removed once Automake 1.9.x |
4306 | # dies out for good. For more background, see: | |
4307 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
4308 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
4309 | mkdir_p='$(MKDIR_P)' | |
4310 | ||
4311 | # We need awk for the "check" target (and possibly the TAP driver). The | |
4312 | # system "awk" is bad on some platforms. | |
6eb7d830 AM |
4313 | # Always define AMTAR for backward compatibility. Yes, it's still used |
4314 | # in the wild :-( We should find a proper way to deprecate it ... | |
4315 | AMTAR='$${TAR-tar}' | |
42ecbf5e | 4316 | |
d0ac1c44 SM |
4317 | |
4318 | # We'll loop over all known methods to create a tar archive until one works. | |
4319 | _am_tools='gnutar pax cpio none' | |
4320 | ||
6eb7d830 | 4321 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
42ecbf5e DJ |
4322 | |
4323 | ||
4324 | ||
4325 | ||
d0ac1c44 | 4326 | |
42ecbf5e DJ |
4327 | depcc="$CC" am_compiler_list= |
4328 | ||
81ecdfbb RW |
4329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4330 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
d0ac1c44 | 4331 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
81ecdfbb | 4332 | $as_echo_n "(cached) " >&6 |
42ecbf5e DJ |
4333 | else |
4334 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4335 | # We make a subdir and do the tests there. Otherwise we can end up | |
4336 | # making bogus files that we don't know about and never remove. For | |
4337 | # instance it was reported that on HP-UX the gcc test will end up | |
d0ac1c44 SM |
4338 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4339 | # in D". | |
6eb7d830 | 4340 | rm -rf conftest.dir |
42ecbf5e DJ |
4341 | mkdir conftest.dir |
4342 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4343 | # using a relative directory. | |
4344 | cp "$am_depcomp" conftest.dir | |
4345 | cd conftest.dir | |
4346 | # We will build objects and dependencies in a subdirectory because | |
4347 | # it helps to detect inapplicable dependency modes. For instance | |
4348 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4349 | # side effect of compilation, but ICC will put the dependencies in | |
4350 | # the current directory while Tru64 will put them in the object | |
4351 | # directory. | |
4352 | mkdir sub | |
4353 | ||
4354 | am_cv_CC_dependencies_compiler_type=none | |
4355 | if test "$am_compiler_list" = ""; then | |
4356 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4357 | fi | |
81ecdfbb RW |
4358 | am__universal=false |
4359 | case " $depcc " in #( | |
4360 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4361 | esac | |
4362 | ||
42ecbf5e DJ |
4363 | for depmode in $am_compiler_list; do |
4364 | # Setup a source with many dependencies, because some compilers | |
4365 | # like to wrap large dependency lists on column 80 (with \), and | |
4366 | # we should not choose a depcomp mode which is confused by this. | |
4367 | # | |
4368 | # We need to recreate these files for each test, as the compiler may | |
4369 | # overwrite some of them when testing with obscure command lines. | |
4370 | # This happens at least with the AIX C compiler. | |
4371 | : > sub/conftest.c | |
4372 | for i in 1 2 3 4 5 6; do | |
4373 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
d0ac1c44 SM |
4374 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4375 | # Solaris 10 /bin/sh. | |
4376 | echo '/* dummy */' > sub/conftst$i.h | |
42ecbf5e DJ |
4377 | done |
4378 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4379 | ||
d0ac1c44 | 4380 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
81ecdfbb | 4381 | # mode. It turns out that the SunPro C++ compiler does not properly |
d0ac1c44 SM |
4382 | # handle '-M -o', and we need to detect this. Also, some Intel |
4383 | # versions had trouble with output in subdirs. | |
81ecdfbb RW |
4384 | am__obj=sub/conftest.${OBJEXT-o} |
4385 | am__minus_obj="-o $am__obj" | |
42ecbf5e | 4386 | case $depmode in |
81ecdfbb RW |
4387 | gcc) |
4388 | # This depmode causes a compiler race in universal mode. | |
4389 | test "$am__universal" = false || continue | |
4390 | ;; | |
42ecbf5e | 4391 | nosideeffect) |
d0ac1c44 SM |
4392 | # After this tag, mechanisms are not by side-effect, so they'll |
4393 | # only be used when explicitly requested. | |
42ecbf5e DJ |
4394 | if test "x$enable_dependency_tracking" = xyes; then |
4395 | continue | |
4396 | else | |
4397 | break | |
4398 | fi | |
4399 | ;; | |
6eb7d830 | 4400 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
d0ac1c44 | 4401 | # This compiler won't grok '-c -o', but also, the minuso test has |
81ecdfbb RW |
4402 | # not run yet. These depmodes are late enough in the game, and |
4403 | # so weak that their functioning should not be impacted. | |
4404 | am__obj=conftest.${OBJEXT-o} | |
4405 | am__minus_obj= | |
4406 | ;; | |
42ecbf5e DJ |
4407 | none) break ;; |
4408 | esac | |
42ecbf5e | 4409 | if depmode=$depmode \ |
81ecdfbb | 4410 | source=sub/conftest.c object=$am__obj \ |
42ecbf5e | 4411 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
81ecdfbb | 4412 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
42ecbf5e | 4413 | >/dev/null 2>conftest.err && |
81ecdfbb | 4414 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
42ecbf5e | 4415 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
81ecdfbb | 4416 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
42ecbf5e DJ |
4417 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4418 | # icc doesn't choke on unknown options, it will just issue warnings | |
4419 | # or remarks (even with -Werror). So we grep stderr for any message | |
4420 | # that says an option was ignored or not supported. | |
4421 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4422 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4423 | # The diagnosis changed in icc 8.0: | |
4424 | # icc: Command line remark: option '-MP' not supported | |
4425 | if (grep 'ignoring option' conftest.err || | |
4426 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4427 | am_cv_CC_dependencies_compiler_type=$depmode | |
4428 | break | |
4429 | fi | |
4430 | fi | |
4431 | done | |
2469cfa2 | 4432 | |
42ecbf5e DJ |
4433 | cd .. |
4434 | rm -rf conftest.dir | |
2469cfa2 | 4435 | else |
42ecbf5e DJ |
4436 | am_cv_CC_dependencies_compiler_type=none |
4437 | fi | |
4438 | ||
2469cfa2 | 4439 | fi |
81ecdfbb RW |
4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4441 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
42ecbf5e DJ |
4442 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4443 | ||
81ecdfbb | 4444 | if |
42ecbf5e DJ |
4445 | test "x$enable_dependency_tracking" != xno \ |
4446 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4447 | am__fastdepCC_TRUE= | |
4448 | am__fastdepCC_FALSE='#' | |
2469cfa2 | 4449 | else |
42ecbf5e DJ |
4450 | am__fastdepCC_TRUE='#' |
4451 | am__fastdepCC_FALSE= | |
2469cfa2 | 4452 | fi |
2469cfa2 | 4453 | |
2469cfa2 | 4454 | |
e5a52504 | 4455 | |
d0ac1c44 SM |
4456 | # POSIX will say in a future version that running "rm -f" with no argument |
4457 | # is OK; and we want to be able to make that assumption in our Makefile | |
4458 | # recipes. So use an aggressive probe to check that the usage we want is | |
4459 | # actually supported "in the wild" to an acceptable degree. | |
4460 | # See automake bug#10828. | |
4461 | # To make any issue more visible, cause the running configure to be aborted | |
4462 | # by default if the 'rm' program in use doesn't match our expectations; the | |
4463 | # user can still override this though. | |
4464 | if rm -f && rm -fr && rm -rf; then : OK; else | |
4465 | cat >&2 <<'END' | |
4466 | Oops! | |
4467 | ||
4468 | Your 'rm' program seems unable to run without file operands specified | |
4469 | on the command line, even when the '-f' option is present. This is contrary | |
4470 | to the behaviour of most rm programs out there, and not conforming with | |
4471 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
4472 | ||
4473 | Please tell bug-automake@gnu.org about your system, including the value | |
4474 | of your $PATH and any error possibly output before this message. This | |
4475 | can help us improve future automake versions. | |
4476 | ||
4477 | END | |
4478 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
4479 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
4480 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
4481 | echo >&2 | |
4482 | else | |
4483 | cat >&2 <<'END' | |
4484 | Aborting the configuration process, to ensure you take notice of the issue. | |
4485 | ||
4486 | You can download and install GNU coreutils to get an 'rm' implementation | |
4487 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
4488 | ||
4489 | If you want to complete the configuration process using your problematic | |
4490 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
4491 | to "yes", and re-run configure. | |
4492 | ||
4493 | END | |
4494 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
4495 | fi | |
4496 | fi | |
4497 | ||
42ecbf5e | 4498 | |
64ac50ac RW |
4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4500 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
4501 | # Check whether --enable-maintainer-mode was given. | |
4502 | if test "${enable_maintainer_mode+set}" = set; then : | |
4503 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4504 | else | |
4505 | USE_MAINTAINER_MODE=no | |
4506 | fi | |
4507 | ||
4508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
4509 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
4510 | if test $USE_MAINTAINER_MODE = yes; then | |
4511 | MAINTAINER_MODE_TRUE= | |
4512 | MAINTAINER_MODE_FALSE='#' | |
4513 | else | |
4514 | MAINTAINER_MODE_TRUE='#' | |
4515 | MAINTAINER_MODE_FALSE= | |
4516 | fi | |
4517 | ||
4518 | MAINT=$MAINTAINER_MODE_TRUE | |
4519 | ||
4520 | ||
4521 | ||
b879806f AM |
4522 | ac_ext=c |
4523 | ac_cpp='$CPP $CPPFLAGS' | |
4524 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4525 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4526 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4527 | if test -n "$ac_tool_prefix"; then | |
4528 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4529 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4531 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4532 | if ${ac_cv_prog_CC+:} false; then : |
b879806f AM |
4533 | $as_echo_n "(cached) " >&6 |
4534 | else | |
4535 | if test -n "$CC"; then | |
4536 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4537 | else | |
4538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4539 | for as_dir in $PATH | |
4540 | do | |
4541 | IFS=$as_save_IFS | |
4542 | test -z "$as_dir" && as_dir=. | |
4543 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 4544 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b879806f AM |
4545 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
4546 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4547 | break 2 | |
4548 | fi | |
4549 | done | |
4550 | done | |
4551 | IFS=$as_save_IFS | |
d7040cdb | 4552 | |
81ecdfbb | 4553 | fi |
81ecdfbb | 4554 | fi |
b879806f AM |
4555 | CC=$ac_cv_prog_CC |
4556 | if test -n "$CC"; then | |
4557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4558 | $as_echo "$CC" >&6; } | |
2469cfa2 | 4559 | else |
b879806f AM |
4560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4561 | $as_echo "no" >&6; } | |
81ecdfbb | 4562 | fi |
d7040cdb SE |
4563 | |
4564 | ||
b879806f AM |
4565 | fi |
4566 | if test -z "$ac_cv_prog_CC"; then | |
4567 | ac_ct_CC=$CC | |
4568 | # Extract the first word of "gcc", so it can be a program name with args. | |
4569 | set dummy gcc; ac_word=$2 | |
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_ac_ct_CC+:} false; then : |
b879806f | 4573 | $as_echo_n "(cached) " >&6 |
e5a52504 | 4574 | else |
b879806f AM |
4575 | if test -n "$ac_ct_CC"; then |
4576 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
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 AM |
4585 | ac_cv_prog_ac_ct_CC="gcc" |
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 | |
d7040cdb | 4592 | |
81ecdfbb | 4593 | fi |
b879806f AM |
4594 | fi |
4595 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4596 | if test -n "$ac_ct_CC"; then | |
4597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4598 | $as_echo "$ac_ct_CC" >&6; } | |
4fda8867 | 4599 | else |
b879806f AM |
4600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4601 | $as_echo "no" >&6; } | |
4fda8867 NC |
4602 | fi |
4603 | ||
b879806f AM |
4604 | if test "x$ac_ct_CC" = x; then |
4605 | CC="" | |
4606 | else | |
4607 | case $cross_compiling:$ac_tool_warned in | |
4608 | yes:) | |
4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4610 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4611 | ac_tool_warned=yes ;; | |
7fb9f789 | 4612 | esac |
b879806f AM |
4613 | CC=$ac_ct_CC |
4614 | fi | |
7fb9f789 | 4615 | else |
b879806f | 4616 | CC="$ac_cv_prog_CC" |
81ecdfbb RW |
4617 | fi |
4618 | ||
b879806f AM |
4619 | if test -z "$CC"; then |
4620 | if test -n "$ac_tool_prefix"; then | |
4621 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4622 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4624 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4625 | if ${ac_cv_prog_CC+:} false; then : |
397841b5 AM |
4626 | $as_echo_n "(cached) " >&6 |
4627 | else | |
b879806f AM |
4628 | if test -n "$CC"; then |
4629 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4630 | else | |
4631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4632 | for as_dir in $PATH | |
397841b5 | 4633 | do |
b879806f AM |
4634 | IFS=$as_save_IFS |
4635 | test -z "$as_dir" && as_dir=. | |
4636 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 4637 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b879806f AM |
4638 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
4639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4640 | break 2 | |
4641 | fi | |
4642 | done | |
4643 | done | |
4644 | IFS=$as_save_IFS | |
d7040cdb | 4645 | |
ce2cded5 | 4646 | fi |
ce2cded5 | 4647 | fi |
b879806f AM |
4648 | CC=$ac_cv_prog_CC |
4649 | if test -n "$CC"; then | |
4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4651 | $as_echo "$CC" >&6; } | |
4652 | else | |
4653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4654 | $as_echo "no" >&6; } | |
81ecdfbb RW |
4655 | fi |
4656 | ||
d7040cdb | 4657 | |
b879806f | 4658 | fi |
ce2cded5 | 4659 | fi |
b879806f AM |
4660 | if test -z "$CC"; then |
4661 | # Extract the first word of "cc", so it can be a program name with args. | |
4662 | set dummy cc; ac_word=$2 | |
4663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4664 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4665 | if ${ac_cv_prog_CC+:} false; then : |
b879806f | 4666 | $as_echo_n "(cached) " >&6 |
397841b5 | 4667 | else |
b879806f AM |
4668 | if test -n "$CC"; then |
4669 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4670 | else | |
4671 | ac_prog_rejected=no | |
4672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4673 | for as_dir in $PATH | |
397841b5 | 4674 | do |
b879806f AM |
4675 | IFS=$as_save_IFS |
4676 | test -z "$as_dir" && as_dir=. | |
4677 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 4678 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b879806f AM |
4679 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4680 | ac_prog_rejected=yes | |
4681 | continue | |
4682 | fi | |
4683 | ac_cv_prog_CC="cc" | |
4684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4685 | break 2 | |
4686 | fi | |
4687 | done | |
4688 | done | |
4689 | IFS=$as_save_IFS | |
d7040cdb | 4690 | |
b879806f AM |
4691 | if test $ac_prog_rejected = yes; then |
4692 | # We found a bogon in the path, so make sure we never use it. | |
4693 | set dummy $ac_cv_prog_CC | |
4694 | shift | |
4695 | if test $# != 0; then | |
4696 | # We chose a different compiler from the bogus one. | |
4697 | # However, it has the same basename, so the bogon will be chosen | |
4698 | # first if we set CC to just the basename; use the full file name. | |
4699 | shift | |
4700 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4701 | fi | |
397841b5 | 4702 | fi |
397841b5 | 4703 | fi |
b879806f AM |
4704 | fi |
4705 | CC=$ac_cv_prog_CC | |
4706 | if test -n "$CC"; then | |
4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4708 | $as_echo "$CC" >&6; } | |
397841b5 | 4709 | else |
b879806f AM |
4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4711 | $as_echo "no" >&6; } | |
ce2cded5 | 4712 | fi |
d7040cdb | 4713 | |
397841b5 | 4714 | |
b879806f AM |
4715 | fi |
4716 | if test -z "$CC"; then | |
4717 | if test -n "$ac_tool_prefix"; then | |
4718 | for ac_prog in cl.exe | |
4719 | do | |
4720 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4721 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4723 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4724 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4725 | $as_echo_n "(cached) " >&6 |
d7040cdb | 4726 | else |
b879806f AM |
4727 | if test -n "$CC"; then |
4728 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4729 | else | |
4730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4731 | for as_dir in $PATH | |
d7040cdb SE |
4732 | do |
4733 | IFS=$as_save_IFS | |
4734 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4735 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4736 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b879806f AM |
4737 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
4738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4739 | break 2 | |
4740 | fi | |
4741 | done | |
397841b5 AM |
4742 | done |
4743 | IFS=$as_save_IFS | |
d7040cdb | 4744 | |
252b5132 | 4745 | fi |
b879806f AM |
4746 | fi |
4747 | CC=$ac_cv_prog_CC | |
4748 | if test -n "$CC"; then | |
4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4750 | $as_echo "$CC" >&6; } | |
4751 | else | |
4752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4753 | $as_echo "no" >&6; } | |
4754 | fi | |
397841b5 AM |
4755 | |
4756 | ||
b879806f AM |
4757 | test -n "$CC" && break |
4758 | done | |
4759 | fi | |
4760 | if test -z "$CC"; then | |
4761 | ac_ct_CC=$CC | |
4762 | for ac_prog in cl.exe | |
4763 | do | |
4764 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4765 | set dummy $ac_prog; ac_word=$2 | |
4766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4767 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4768 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
397841b5 AM |
4769 | $as_echo_n "(cached) " >&6 |
4770 | else | |
b879806f AM |
4771 | if test -n "$ac_ct_CC"; then |
4772 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4773 | else | |
4774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4775 | for as_dir in $PATH | |
397841b5 AM |
4776 | do |
4777 | IFS=$as_save_IFS | |
4778 | test -z "$as_dir" && as_dir=. | |
397841b5 | 4779 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4780 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b879806f AM |
4781 | ac_cv_prog_ac_ct_CC="$ac_prog" |
4782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4783 | break 2 | |
4784 | fi | |
4785 | done | |
397841b5 AM |
4786 | done |
4787 | IFS=$as_save_IFS | |
397841b5 | 4788 | |
397841b5 | 4789 | fi |
397841b5 | 4790 | fi |
b879806f AM |
4791 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4792 | if test -n "$ac_ct_CC"; then | |
4793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4794 | $as_echo "$ac_ct_CC" >&6; } | |
4795 | else | |
4796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4797 | $as_echo "no" >&6; } | |
397841b5 AM |
4798 | fi |
4799 | ||
397841b5 | 4800 | |
b879806f AM |
4801 | test -n "$ac_ct_CC" && break |
4802 | done | |
397841b5 | 4803 | |
b879806f AM |
4804 | if test "x$ac_ct_CC" = x; then |
4805 | CC="" | |
4806 | else | |
4807 | case $cross_compiling:$ac_tool_warned in | |
4808 | yes:) | |
4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4810 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4811 | ac_tool_warned=yes ;; | |
397841b5 | 4812 | esac |
b879806f AM |
4813 | CC=$ac_ct_CC |
4814 | fi | |
397841b5 AM |
4815 | fi |
4816 | ||
397841b5 AM |
4817 | fi |
4818 | ||
4819 | ||
b879806f AM |
4820 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4821 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4822 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4823 | See \`config.log' for more details" "$LINENO" 5; } | |
397841b5 | 4824 | |
b879806f AM |
4825 | # Provide some information about the compiler. |
4826 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4827 | set X $ac_compile | |
4828 | ac_compiler=$2 | |
4829 | for ac_option in --version -v -V -qversion; do | |
4830 | { { ac_try="$ac_compiler $ac_option >&5" | |
4831 | case "(($ac_try" in | |
4832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4833 | *) ac_try_echo=$ac_try;; | |
4834 | esac | |
4835 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4836 | $as_echo "$ac_try_echo"; } >&5 | |
4837 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4838 | ac_status=$? | |
4839 | if test -s conftest.err; then | |
4840 | sed '10a\ | |
4841 | ... rest of stderr output deleted ... | |
4842 | 10q' conftest.err >conftest.er1 | |
4843 | cat conftest.er1 >&5 | |
b879806f | 4844 | fi |
d0ac1c44 | 4845 | rm -f conftest.er1 conftest.err |
b879806f AM |
4846 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4847 | test $ac_status = 0; } | |
4848 | done | |
397841b5 | 4849 | |
b879806f AM |
4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4851 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 4852 | if ${ac_cv_c_compiler_gnu+:} false; then : |
44350750 NC |
4853 | $as_echo_n "(cached) " >&6 |
4854 | else | |
4855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4856 | /* end confdefs.h. */ | |
b879806f | 4857 | |
44350750 NC |
4858 | int |
4859 | main () | |
4860 | { | |
b879806f AM |
4861 | #ifndef __GNUC__ |
4862 | choke me | |
4863 | #endif | |
4864 | ||
4865 | ; | |
44350750 NC |
4866 | return 0; |
4867 | } | |
4868 | _ACEOF | |
b879806f AM |
4869 | if ac_fn_c_try_compile "$LINENO"; then : |
4870 | ac_compiler_gnu=yes | |
44350750 | 4871 | else |
b879806f | 4872 | ac_compiler_gnu=no |
44350750 | 4873 | fi |
b879806f AM |
4874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4875 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4876 | ||
44350750 | 4877 | fi |
b879806f AM |
4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4879 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4880 | if test $ac_compiler_gnu = yes; then | |
4881 | GCC=yes | |
4882 | else | |
4883 | GCC= | |
4884 | fi | |
4885 | ac_test_CFLAGS=${CFLAGS+set} | |
4886 | ac_save_CFLAGS=$CFLAGS | |
4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4888 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 4889 | if ${ac_cv_prog_cc_g+:} false; then : |
b879806f AM |
4890 | $as_echo_n "(cached) " >&6 |
4891 | else | |
4892 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4893 | ac_c_werror_flag=yes | |
4894 | ac_cv_prog_cc_g=no | |
4895 | CFLAGS="-g" | |
4896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4897 | /* end confdefs.h. */ | |
44350750 | 4898 | |
b879806f AM |
4899 | int |
4900 | main () | |
4901 | { | |
44350750 | 4902 | |
b879806f AM |
4903 | ; |
4904 | return 0; | |
4905 | } | |
4906 | _ACEOF | |
4907 | if ac_fn_c_try_compile "$LINENO"; then : | |
4908 | ac_cv_prog_cc_g=yes | |
4909 | else | |
4910 | CFLAGS="" | |
4911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4912 | /* end confdefs.h. */ | |
4913 | ||
4914 | int | |
4915 | main () | |
4916 | { | |
44350750 | 4917 | |
b879806f AM |
4918 | ; |
4919 | return 0; | |
4920 | } | |
4921 | _ACEOF | |
4922 | if ac_fn_c_try_compile "$LINENO"; then : | |
44350750 | 4923 | |
b879806f AM |
4924 | else |
4925 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4926 | CFLAGS="-g" | |
4927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4928 | /* end confdefs.h. */ | |
397841b5 | 4929 | |
b879806f AM |
4930 | int |
4931 | main () | |
4932 | { | |
397841b5 | 4933 | |
b879806f AM |
4934 | ; |
4935 | return 0; | |
4936 | } | |
4937 | _ACEOF | |
4938 | if ac_fn_c_try_compile "$LINENO"; then : | |
4939 | ac_cv_prog_cc_g=yes | |
4940 | fi | |
4941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4942 | fi | |
4943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4944 | fi | |
4945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4946 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4947 | fi | |
4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4949 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4950 | if test "$ac_test_CFLAGS" = set; then | |
4951 | CFLAGS=$ac_save_CFLAGS | |
4952 | elif test $ac_cv_prog_cc_g = yes; then | |
4953 | if test "$GCC" = yes; then | |
4954 | CFLAGS="-g -O2" | |
4955 | else | |
4956 | CFLAGS="-g" | |
4957 | fi | |
4958 | else | |
4959 | if test "$GCC" = yes; then | |
4960 | CFLAGS="-O2" | |
4961 | else | |
4962 | CFLAGS= | |
4963 | fi | |
4964 | fi | |
4965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4966 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 4967 | if ${ac_cv_prog_cc_c89+:} false; then : |
b879806f AM |
4968 | $as_echo_n "(cached) " >&6 |
4969 | else | |
4970 | ac_cv_prog_cc_c89=no | |
4971 | ac_save_CC=$CC | |
4972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4973 | /* end confdefs.h. */ | |
4974 | #include <stdarg.h> | |
4975 | #include <stdio.h> | |
d0ac1c44 | 4976 | struct stat; |
b879806f AM |
4977 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4978 | struct buf { int x; }; | |
4979 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4980 | static char *e (p, i) | |
4981 | char **p; | |
4982 | int i; | |
4983 | { | |
4984 | return p[i]; | |
4985 | } | |
4986 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4987 | { | |
4988 | char *s; | |
4989 | va_list v; | |
4990 | va_start (v,p); | |
4991 | s = g (p, va_arg (v,int)); | |
4992 | va_end (v); | |
4993 | return s; | |
4994 | } | |
df7b86aa | 4995 | |
b879806f AM |
4996 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4997 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4998 | These don't provoke an error unfortunately, instead are silently treated | |
4999 | as 'x'. The following induces an error, until -std is added to get | |
5000 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5001 | array size at least. It's necessary to write '\x00'==0 to get something | |
5002 | that's true only with -std. */ | |
5003 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
df7b86aa | 5004 | |
b879806f AM |
5005 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
5006 | inside strings and character constants. */ | |
5007 | #define FOO(x) 'x' | |
5008 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5009 | ||
5010 | int test (int i, double x); | |
5011 | struct s1 {int (*f) (int a);}; | |
5012 | struct s2 {int (*f) (double a);}; | |
5013 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5014 | int argc; | |
5015 | char **argv; | |
5016 | int | |
5017 | main () | |
5018 | { | |
5019 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5020 | ; | |
5021 | return 0; | |
5022 | } | |
5023 | _ACEOF | |
5024 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5025 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5026 | do | |
5027 | CC="$ac_save_CC $ac_arg" | |
5028 | if ac_fn_c_try_compile "$LINENO"; then : | |
5029 | ac_cv_prog_cc_c89=$ac_arg | |
397841b5 | 5030 | fi |
b879806f AM |
5031 | rm -f core conftest.err conftest.$ac_objext |
5032 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5033 | done | |
5034 | rm -f conftest.$ac_ext | |
5035 | CC=$ac_save_CC | |
5036 | ||
397841b5 | 5037 | fi |
b879806f AM |
5038 | # AC_CACHE_VAL |
5039 | case "x$ac_cv_prog_cc_c89" in | |
5040 | x) | |
5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5042 | $as_echo "none needed" >&6; } ;; | |
5043 | xno) | |
5044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5045 | $as_echo "unsupported" >&6; } ;; | |
5046 | *) | |
5047 | CC="$CC $ac_cv_prog_cc_c89" | |
5048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5049 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5050 | esac | |
5051 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
397841b5 | 5052 | |
b879806f | 5053 | fi |
397841b5 AM |
5054 | |
5055 | ac_ext=c | |
5056 | ac_cpp='$CPP $CPPFLAGS' | |
5057 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5058 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5059 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b879806f | 5060 | |
d0ac1c44 SM |
5061 | ac_ext=c |
5062 | ac_cpp='$CPP $CPPFLAGS' | |
5063 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5064 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5065 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
5067 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
5068 | if ${am_cv_prog_cc_c_o+:} false; then : | |
5069 | $as_echo_n "(cached) " >&6 | |
5070 | else | |
5071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5072 | /* end confdefs.h. */ | |
5073 | ||
5074 | int | |
5075 | main () | |
5076 | { | |
5077 | ||
5078 | ; | |
5079 | return 0; | |
5080 | } | |
5081 | _ACEOF | |
5082 | # Make sure it works both with $CC and with simple cc. | |
5083 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5084 | # compilers refuse to overwrite an existing .o file with -o, | |
5085 | # though they will create one. | |
5086 | am_cv_prog_cc_c_o=yes | |
5087 | for am_i in 1 2; do | |
5088 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
5089 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
5090 | ac_status=$? | |
5091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5092 | (exit $ac_status); } \ | |
5093 | && test -f conftest2.$ac_objext; then | |
5094 | : OK | |
5095 | else | |
5096 | am_cv_prog_cc_c_o=no | |
5097 | break | |
5098 | fi | |
5099 | done | |
5100 | rm -f core conftest* | |
5101 | unset am_i | |
5102 | fi | |
5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5104 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5105 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5106 | # Losing compiler, so override with the script. | |
5107 | # FIXME: It is wrong to rewrite CC. | |
5108 | # But if we don't then we get into trouble of one sort or another. | |
5109 | # A longer-term fix would be to have automake use am__CC in this case, | |
5110 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5111 | CC="$am_aux_dir/compile $CC" | |
5112 | fi | |
5113 | ac_ext=c | |
5114 | ac_cpp='$CPP $CPPFLAGS' | |
5115 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5116 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5117 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5118 | ||
5119 | ||
b879806f AM |
5120 | ac_ext=cpp |
5121 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5122 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5123 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5124 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5125 | if test -z "$CXX"; then | |
5126 | if test -n "$CCC"; then | |
5127 | CXX=$CCC | |
5128 | else | |
5129 | if test -n "$ac_tool_prefix"; then | |
5130 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5131 | do | |
5132 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5133 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
397841b5 AM |
5134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5135 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5136 | if ${ac_cv_prog_CXX+:} false; then : |
397841b5 AM |
5137 | $as_echo_n "(cached) " >&6 |
5138 | else | |
b879806f AM |
5139 | if test -n "$CXX"; then |
5140 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
397841b5 AM |
5141 | else |
5142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5143 | for as_dir in $PATH | |
5144 | do | |
5145 | IFS=$as_save_IFS | |
5146 | test -z "$as_dir" && as_dir=. | |
5147 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 5148 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b879806f | 5149 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
397841b5 AM |
5150 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5151 | break 2 | |
5152 | fi | |
5153 | done | |
5154 | done | |
5155 | IFS=$as_save_IFS | |
5156 | ||
5157 | fi | |
5158 | fi | |
b879806f AM |
5159 | CXX=$ac_cv_prog_CXX |
5160 | if test -n "$CXX"; then | |
5161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
5162 | $as_echo "$CXX" >&6; } | |
397841b5 AM |
5163 | else |
5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5165 | $as_echo "no" >&6; } | |
5166 | fi | |
5167 | ||
5168 | ||
b879806f AM |
5169 | test -n "$CXX" && break |
5170 | done | |
397841b5 | 5171 | fi |
b879806f AM |
5172 | if test -z "$CXX"; then |
5173 | ac_ct_CXX=$CXX | |
5174 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5175 | do | |
5176 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5177 | set dummy $ac_prog; ac_word=$2 | |
397841b5 AM |
5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5179 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5180 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
81ecdfbb | 5181 | $as_echo_n "(cached) " >&6 |
252b5132 | 5182 | else |
b879806f AM |
5183 | if test -n "$ac_ct_CXX"; then |
5184 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
252b5132 | 5185 | else |
ce2cded5 L |
5186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5187 | for as_dir in $PATH | |
5188 | do | |
5189 | IFS=$as_save_IFS | |
5190 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5191 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5192 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b879806f | 5193 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 5194 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5195 | break 2 |
5196 | fi | |
5197 | done | |
81ecdfbb RW |
5198 | done |
5199 | IFS=$as_save_IFS | |
5200 | ||
252b5132 RH |
5201 | fi |
5202 | fi | |
b879806f AM |
5203 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5204 | if test -n "$ac_ct_CXX"; then | |
5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
5206 | $as_echo "$ac_ct_CXX" >&6; } | |
d7040cdb | 5207 | else |
81ecdfbb RW |
5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5209 | $as_echo "no" >&6; } | |
d7040cdb SE |
5210 | fi |
5211 | ||
81ecdfbb | 5212 | |
b879806f | 5213 | test -n "$ac_ct_CXX" && break |
d7040cdb | 5214 | done |
d7040cdb | 5215 | |
b879806f AM |
5216 | if test "x$ac_ct_CXX" = x; then |
5217 | CXX="g++" | |
81ecdfbb RW |
5218 | else |
5219 | case $cross_compiling:$ac_tool_warned in | |
5220 | yes:) | |
5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5222 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5223 | ac_tool_warned=yes ;; | |
5224 | esac | |
b879806f | 5225 | CXX=$ac_ct_CXX |
81ecdfbb | 5226 | fi |
d7040cdb SE |
5227 | fi |
5228 | ||
b879806f | 5229 | fi |
d7040cdb | 5230 | fi |
ce2cded5 | 5231 | # Provide some information about the compiler. |
b879806f | 5232 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
81ecdfbb RW |
5233 | set X $ac_compile |
5234 | ac_compiler=$2 | |
5235 | for ac_option in --version -v -V -qversion; do | |
5236 | { { ac_try="$ac_compiler $ac_option >&5" | |
5237 | case "(($ac_try" in | |
5238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5239 | *) ac_try_echo=$ac_try;; | |
5240 | esac | |
5241 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5242 | $as_echo "$ac_try_echo"; } >&5 | |
5243 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
ce2cded5 | 5244 | ac_status=$? |
81ecdfbb RW |
5245 | if test -s conftest.err; then |
5246 | sed '10a\ | |
5247 | ... rest of stderr output deleted ... | |
5248 | 10q' conftest.err >conftest.er1 | |
5249 | cat conftest.er1 >&5 | |
81ecdfbb | 5250 | fi |
d0ac1c44 | 5251 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
5252 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5253 | test $ac_status = 0; } | |
5254 | done | |
d7040cdb | 5255 | |
b879806f AM |
5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5257 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
d0ac1c44 | 5258 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
81ecdfbb | 5259 | $as_echo_n "(cached) " >&6 |
d7040cdb | 5260 | else |
81ecdfbb | 5261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 5262 | /* end confdefs.h. */ |
d7040cdb | 5263 | |
ce2cded5 L |
5264 | int |
5265 | main () | |
5266 | { | |
5267 | #ifndef __GNUC__ | |
5268 | choke me | |
5269 | #endif | |
5270 | ||
5271 | ; | |
5272 | return 0; | |
5273 | } | |
5274 | _ACEOF | |
b879806f | 5275 | if ac_fn_cxx_try_compile "$LINENO"; then : |
ce2cded5 | 5276 | ac_compiler_gnu=yes |
d7040cdb | 5277 | else |
81ecdfbb | 5278 | ac_compiler_gnu=no |
d7040cdb | 5279 | fi |
81ecdfbb | 5280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b879806f | 5281 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
d7040cdb | 5282 | |
ce2cded5 | 5283 | fi |
b879806f AM |
5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5285 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
81ecdfbb | 5286 | if test $ac_compiler_gnu = yes; then |
b879806f | 5287 | GXX=yes |
81ecdfbb | 5288 | else |
b879806f | 5289 | GXX= |
81ecdfbb | 5290 | fi |
b879806f AM |
5291 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5292 | ac_save_CXXFLAGS=$CXXFLAGS | |
5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
5294 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
d0ac1c44 | 5295 | if ${ac_cv_prog_cxx_g+:} false; then : |
81ecdfbb RW |
5296 | $as_echo_n "(cached) " >&6 |
5297 | else | |
b879806f AM |
5298 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5299 | ac_cxx_werror_flag=yes | |
5300 | ac_cv_prog_cxx_g=no | |
5301 | CXXFLAGS="-g" | |
81ecdfbb | 5302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 5303 | /* end confdefs.h. */ |
d7040cdb | 5304 | |
ce2cded5 L |
5305 | int |
5306 | main () | |
5307 | { | |
d7040cdb | 5308 | |
ce2cded5 L |
5309 | ; |
5310 | return 0; | |
5311 | } | |
5312 | _ACEOF | |
b879806f AM |
5313 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5314 | ac_cv_prog_cxx_g=yes | |
ce2cded5 | 5315 | else |
b879806f | 5316 | CXXFLAGS="" |
81ecdfbb RW |
5317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5318 | /* end confdefs.h. */ | |
5319 | ||
5320 | int | |
5321 | main () | |
5322 | { | |
5323 | ||
5324 | ; | |
5325 | return 0; | |
5326 | } | |
5327 | _ACEOF | |
b879806f | 5328 | if ac_fn_cxx_try_compile "$LINENO"; then : |
81ecdfbb RW |
5329 | |
5330 | else | |
b879806f AM |
5331 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5332 | CXXFLAGS="-g" | |
81ecdfbb RW |
5333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5334 | /* end confdefs.h. */ | |
5335 | ||
5336 | int | |
5337 | main () | |
5338 | { | |
d7040cdb | 5339 | |
81ecdfbb RW |
5340 | ; |
5341 | return 0; | |
5342 | } | |
5343 | _ACEOF | |
b879806f AM |
5344 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5345 | ac_cv_prog_cxx_g=yes | |
81ecdfbb RW |
5346 | fi |
5347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5348 | fi | |
5349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d7040cdb | 5350 | fi |
81ecdfbb | 5351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b879806f | 5352 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
ce2cded5 | 5353 | fi |
b879806f AM |
5354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
5355 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5356 | if test "$ac_test_CXXFLAGS" = set; then | |
5357 | CXXFLAGS=$ac_save_CXXFLAGS | |
5358 | elif test $ac_cv_prog_cxx_g = yes; then | |
5359 | if test "$GXX" = yes; then | |
5360 | CXXFLAGS="-g -O2" | |
ce2cded5 | 5361 | else |
b879806f | 5362 | CXXFLAGS="-g" |
ce2cded5 | 5363 | fi |
d7040cdb | 5364 | else |
b879806f AM |
5365 | if test "$GXX" = yes; then |
5366 | CXXFLAGS="-O2" | |
ce2cded5 | 5367 | else |
b879806f | 5368 | CXXFLAGS= |
ce2cded5 | 5369 | fi |
d7040cdb | 5370 | fi |
b879806f AM |
5371 | ac_ext=c |
5372 | ac_cpp='$CPP $CPPFLAGS' | |
5373 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5374 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5375 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5376 | ||
5377 | depcc="$CXX" am_compiler_list= | |
5378 | ||
5379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5380 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
d0ac1c44 | 5381 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
81ecdfbb | 5382 | $as_echo_n "(cached) " >&6 |
d7040cdb | 5383 | else |
b879806f AM |
5384 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5385 | # We make a subdir and do the tests there. Otherwise we can end up | |
5386 | # making bogus files that we don't know about and never remove. For | |
5387 | # instance it was reported that on HP-UX the gcc test will end up | |
d0ac1c44 SM |
5388 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5389 | # in D". | |
6eb7d830 | 5390 | rm -rf conftest.dir |
b879806f AM |
5391 | mkdir conftest.dir |
5392 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5393 | # using a relative directory. | |
5394 | cp "$am_depcomp" conftest.dir | |
5395 | cd conftest.dir | |
5396 | # We will build objects and dependencies in a subdirectory because | |
5397 | # it helps to detect inapplicable dependency modes. For instance | |
5398 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5399 | # side effect of compilation, but ICC will put the dependencies in | |
5400 | # the current directory while Tru64 will put them in the object | |
5401 | # directory. | |
5402 | mkdir sub | |
d7040cdb | 5403 | |
b879806f AM |
5404 | am_cv_CXX_dependencies_compiler_type=none |
5405 | if test "$am_compiler_list" = ""; then | |
5406 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5407 | fi | |
5408 | am__universal=false | |
5409 | case " $depcc " in #( | |
5410 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5411 | esac | |
d7040cdb | 5412 | |
b879806f AM |
5413 | for depmode in $am_compiler_list; do |
5414 | # Setup a source with many dependencies, because some compilers | |
5415 | # like to wrap large dependency lists on column 80 (with \), and | |
5416 | # we should not choose a depcomp mode which is confused by this. | |
5417 | # | |
5418 | # We need to recreate these files for each test, as the compiler may | |
5419 | # overwrite some of them when testing with obscure command lines. | |
5420 | # This happens at least with the AIX C compiler. | |
5421 | : > sub/conftest.c | |
5422 | for i in 1 2 3 4 5 6; do | |
5423 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
d0ac1c44 SM |
5424 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5425 | # Solaris 10 /bin/sh. | |
5426 | echo '/* dummy */' > sub/conftst$i.h | |
b879806f AM |
5427 | done |
5428 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
81ecdfbb | 5429 | |
d0ac1c44 | 5430 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
b879806f | 5431 | # mode. It turns out that the SunPro C++ compiler does not properly |
d0ac1c44 SM |
5432 | # handle '-M -o', and we need to detect this. Also, some Intel |
5433 | # versions had trouble with output in subdirs. | |
b879806f AM |
5434 | am__obj=sub/conftest.${OBJEXT-o} |
5435 | am__minus_obj="-o $am__obj" | |
5436 | case $depmode in | |
5437 | gcc) | |
5438 | # This depmode causes a compiler race in universal mode. | |
5439 | test "$am__universal" = false || continue | |
5440 | ;; | |
5441 | nosideeffect) | |
d0ac1c44 SM |
5442 | # After this tag, mechanisms are not by side-effect, so they'll |
5443 | # only be used when explicitly requested. | |
b879806f AM |
5444 | if test "x$enable_dependency_tracking" = xyes; then |
5445 | continue | |
5446 | else | |
5447 | break | |
5448 | fi | |
5449 | ;; | |
6eb7d830 | 5450 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
d0ac1c44 | 5451 | # This compiler won't grok '-c -o', but also, the minuso test has |
b879806f AM |
5452 | # not run yet. These depmodes are late enough in the game, and |
5453 | # so weak that their functioning should not be impacted. | |
5454 | am__obj=conftest.${OBJEXT-o} | |
5455 | am__minus_obj= | |
5456 | ;; | |
5457 | none) break ;; | |
5458 | esac | |
5459 | if depmode=$depmode \ | |
5460 | source=sub/conftest.c object=$am__obj \ | |
5461 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5462 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5463 | >/dev/null 2>conftest.err && | |
5464 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5465 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5466 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5467 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5468 | # icc doesn't choke on unknown options, it will just issue warnings | |
5469 | # or remarks (even with -Werror). So we grep stderr for any message | |
5470 | # that says an option was ignored or not supported. | |
5471 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5472 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5473 | # The diagnosis changed in icc 8.0: | |
5474 | # icc: Command line remark: option '-MP' not supported | |
5475 | if (grep 'ignoring option' conftest.err || | |
5476 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5477 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5478 | break | |
5479 | fi | |
5480 | fi | |
5481 | done | |
5482 | ||
5483 | cd .. | |
5484 | rm -rf conftest.dir | |
5485 | else | |
5486 | am_cv_CXX_dependencies_compiler_type=none | |
ce2cded5 | 5487 | fi |
d7040cdb | 5488 | |
ce2cded5 | 5489 | fi |
b879806f AM |
5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5491 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
5492 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
d7040cdb | 5493 | |
b879806f AM |
5494 | if |
5495 | test "x$enable_dependency_tracking" != xno \ | |
5496 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
5497 | am__fastdepCXX_TRUE= | |
5498 | am__fastdepCXX_FALSE='#' | |
5499 | else | |
5500 | am__fastdepCXX_TRUE='#' | |
5501 | am__fastdepCXX_FALSE= | |
ce2cded5 | 5502 | fi |
d7040cdb | 5503 | |
b879806f | 5504 | |
68880f31 CLT |
5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5506 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
d0ac1c44 | 5507 | if ${ac_cv_path_GREP+:} false; then : |
68880f31 CLT |
5508 | $as_echo_n "(cached) " >&6 |
5509 | else | |
5510 | if test -z "$GREP"; then | |
5511 | ac_path_GREP_found=false | |
5512 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5514 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5515 | do | |
5516 | IFS=$as_save_IFS | |
5517 | test -z "$as_dir" && as_dir=. | |
5518 | for ac_prog in grep ggrep; do | |
5519 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5520 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 5521 | as_fn_executable_p "$ac_path_GREP" || continue |
68880f31 CLT |
5522 | # Check for GNU ac_path_GREP and select it if it is found. |
5523 | # Check for GNU $ac_path_GREP | |
5524 | case `"$ac_path_GREP" --version 2>&1` in | |
5525 | *GNU*) | |
5526 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5527 | *) | |
5528 | ac_count=0 | |
5529 | $as_echo_n 0123456789 >"conftest.in" | |
5530 | while : | |
5531 | do | |
5532 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5533 | mv "conftest.tmp" "conftest.in" | |
5534 | cp "conftest.in" "conftest.nl" | |
5535 | $as_echo 'GREP' >> "conftest.nl" | |
5536 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5537 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5538 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5539 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5540 | # Best one so far, save it but keep looking for a better one | |
5541 | ac_cv_path_GREP="$ac_path_GREP" | |
5542 | ac_path_GREP_max=$ac_count | |
5543 | fi | |
5544 | # 10*(2^10) chars as input seems more than enough | |
5545 | test $ac_count -gt 10 && break | |
5546 | done | |
5547 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5548 | esac | |
5549 | ||
5550 | $ac_path_GREP_found && break 3 | |
5551 | done | |
5552 | done | |
5553 | done | |
5554 | IFS=$as_save_IFS | |
5555 | if test -z "$ac_cv_path_GREP"; then | |
d0ac1c44 | 5556 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
68880f31 CLT |
5557 | fi |
5558 | else | |
5559 | ac_cv_path_GREP=$GREP | |
5560 | fi | |
5561 | ||
5562 | fi | |
5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5564 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5565 | GREP="$ac_cv_path_GREP" | |
5566 | ||
5567 | ||
ce2cded5 L |
5568 | ac_ext=c |
5569 | ac_cpp='$CPP $CPPFLAGS' | |
5570 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5571 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5572 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b879806f AM |
5573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
5574 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
5575 | # On Suns, sometimes $CPP names a directory. | |
5576 | if test -n "$CPP" && test -d "$CPP"; then | |
5577 | CPP= | |
7357c5b6 | 5578 | fi |
b879806f | 5579 | if test -z "$CPP"; then |
d0ac1c44 | 5580 | if ${ac_cv_prog_CPP+:} false; then : |
3cb62297 L |
5581 | $as_echo_n "(cached) " >&6 |
5582 | else | |
b879806f AM |
5583 | # Double quotes because CPP needs to be expanded |
5584 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5585 | do | |
5586 | ac_preproc_ok=false | |
5587 | for ac_c_preproc_warn_flag in '' yes | |
3cb62297 | 5588 | do |
b879806f AM |
5589 | # Use a header file that comes with gcc, so configuring glibc |
5590 | # with a fresh cross-compiler works. | |
5591 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5592 | # <limits.h> exists even on freestanding compilers. | |
5593 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5594 | # not just through cpp. "Syntax error" is here to catch this case. | |
5595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5596 | /* end confdefs.h. */ | |
5597 | #ifdef __STDC__ | |
5598 | # include <limits.h> | |
5599 | #else | |
5600 | # include <assert.h> | |
5601 | #endif | |
5602 | Syntax error | |
5603 | _ACEOF | |
5604 | if ac_fn_c_try_cpp "$LINENO"; then : | |
252b5132 | 5605 | |
3cb62297 | 5606 | else |
b879806f AM |
5607 | # Broken: fails on valid input. |
5608 | continue | |
7357c5b6 | 5609 | fi |
d0ac1c44 | 5610 | rm -f conftest.err conftest.i conftest.$ac_ext |
252b5132 | 5611 | |
b879806f AM |
5612 | # OK, works on sane cases. Now check whether nonexistent headers |
5613 | # can be detected and how. | |
5614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5615 | /* end confdefs.h. */ | |
5616 | #include <ac_nonexistent.h> | |
5617 | _ACEOF | |
5618 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5619 | # Broken: success on invalid input. | |
5620 | continue | |
5621 | else | |
5622 | # Passes both tests. | |
5623 | ac_preproc_ok=: | |
5624 | break | |
5625 | fi | |
d0ac1c44 | 5626 | rm -f conftest.err conftest.i conftest.$ac_ext |
42ecbf5e | 5627 | |
3cb62297 | 5628 | done |
b879806f | 5629 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
d0ac1c44 | 5630 | rm -f conftest.i conftest.err conftest.$ac_ext |
b879806f AM |
5631 | if $ac_preproc_ok; then : |
5632 | break | |
7357c5b6 | 5633 | fi |
ac48eca1 | 5634 | |
b879806f AM |
5635 | done |
5636 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 5637 | |
b879806f AM |
5638 | fi |
5639 | CPP=$ac_cv_prog_CPP | |
7357c5b6 | 5640 | else |
b879806f AM |
5641 | ac_cv_prog_CPP=$CPP |
5642 | fi | |
5643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
5644 | $as_echo "$CPP" >&6; } | |
5645 | ac_preproc_ok=false | |
5646 | for ac_c_preproc_warn_flag in '' yes | |
5647 | do | |
5648 | # Use a header file that comes with gcc, so configuring glibc | |
5649 | # with a fresh cross-compiler works. | |
5650 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5651 | # <limits.h> exists even on freestanding compilers. | |
5652 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5653 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 5655 | /* end confdefs.h. */ |
b879806f AM |
5656 | #ifdef __STDC__ |
5657 | # include <limits.h> | |
5658 | #else | |
5659 | # include <assert.h> | |
3cb62297 | 5660 | #endif |
b879806f | 5661 | Syntax error |
7357c5b6 | 5662 | _ACEOF |
b879806f AM |
5663 | if ac_fn_c_try_cpp "$LINENO"; then : |
5664 | ||
81ecdfbb | 5665 | else |
b879806f AM |
5666 | # Broken: fails on valid input. |
5667 | continue | |
7357c5b6 | 5668 | fi |
d0ac1c44 | 5669 | rm -f conftest.err conftest.i conftest.$ac_ext |
81ecdfbb | 5670 | |
b879806f AM |
5671 | # OK, works on sane cases. Now check whether nonexistent headers |
5672 | # can be detected and how. | |
5673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5674 | /* end confdefs.h. */ | |
5675 | #include <ac_nonexistent.h> | |
5676 | _ACEOF | |
5677 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5678 | # Broken: success on invalid input. | |
5679 | continue | |
3cb62297 | 5680 | else |
b879806f AM |
5681 | # Passes both tests. |
5682 | ac_preproc_ok=: | |
5683 | break | |
7357c5b6 | 5684 | fi |
d0ac1c44 | 5685 | rm -f conftest.err conftest.i conftest.$ac_ext |
252b5132 | 5686 | |
b879806f AM |
5687 | done |
5688 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 5689 | rm -f conftest.i conftest.err conftest.$ac_ext |
b879806f | 5690 | if $ac_preproc_ok; then : |
252b5132 | 5691 | |
3cb62297 | 5692 | else |
b879806f AM |
5693 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5694 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
5695 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
5696 | See \`config.log' for more details" "$LINENO" 5; } | |
b879806f | 5697 | fi |
42ecbf5e | 5698 | |
b879806f AM |
5699 | ac_ext=c |
5700 | ac_cpp='$CPP $CPPFLAGS' | |
5701 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5702 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5703 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42ecbf5e DJ |
5704 | |
5705 | ||
b879806f AM |
5706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
5707 | $as_echo_n "checking for egrep... " >&6; } | |
d0ac1c44 | 5708 | if ${ac_cv_path_EGREP+:} false; then : |
b879806f AM |
5709 | $as_echo_n "(cached) " >&6 |
5710 | else | |
5711 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5712 | then ac_cv_path_EGREP="$GREP -E" | |
5713 | else | |
5714 | if test -z "$EGREP"; then | |
5715 | ac_path_EGREP_found=false | |
5716 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5718 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5719 | do | |
5720 | IFS=$as_save_IFS | |
5721 | test -z "$as_dir" && as_dir=. | |
5722 | for ac_prog in egrep; do | |
5723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5724 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 5725 | as_fn_executable_p "$ac_path_EGREP" || continue |
b879806f AM |
5726 | # Check for GNU ac_path_EGREP and select it if it is found. |
5727 | # Check for GNU $ac_path_EGREP | |
5728 | case `"$ac_path_EGREP" --version 2>&1` in | |
5729 | *GNU*) | |
5730 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5731 | *) | |
5732 | ac_count=0 | |
5733 | $as_echo_n 0123456789 >"conftest.in" | |
5734 | while : | |
5735 | do | |
5736 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5737 | mv "conftest.tmp" "conftest.in" | |
5738 | cp "conftest.in" "conftest.nl" | |
5739 | $as_echo 'EGREP' >> "conftest.nl" | |
5740 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5741 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5742 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5743 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5744 | # Best one so far, save it but keep looking for a better one | |
5745 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5746 | ac_path_EGREP_max=$ac_count | |
5747 | fi | |
5748 | # 10*(2^10) chars as input seems more than enough | |
5749 | test $ac_count -gt 10 && break | |
5750 | done | |
5751 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5752 | esac | |
5753 | ||
5754 | $ac_path_EGREP_found && break 3 | |
5755 | done | |
5756 | done | |
5757 | done | |
5758 | IFS=$as_save_IFS | |
5759 | if test -z "$ac_cv_path_EGREP"; then | |
d0ac1c44 | 5760 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
b879806f AM |
5761 | fi |
5762 | else | |
5763 | ac_cv_path_EGREP=$EGREP | |
5764 | fi | |
5765 | ||
5766 | fi | |
5767 | fi | |
5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5769 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5770 | EGREP="$ac_cv_path_EGREP" | |
5771 | ||
5772 | ||
5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
5774 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
d0ac1c44 | 5775 | if ${ac_cv_header_stdc+:} false; then : |
b879806f AM |
5776 | $as_echo_n "(cached) " >&6 |
5777 | else | |
5778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3cb62297 | 5779 | /* end confdefs.h. */ |
b879806f AM |
5780 | #include <stdlib.h> |
5781 | #include <stdarg.h> | |
5782 | #include <string.h> | |
5783 | #include <float.h> | |
42ecbf5e | 5784 | |
3cb62297 L |
5785 | int |
5786 | main () | |
5787 | { | |
42ecbf5e | 5788 | |
3cb62297 L |
5789 | ; |
5790 | return 0; | |
5791 | } | |
5792 | _ACEOF | |
b879806f AM |
5793 | if ac_fn_c_try_compile "$LINENO"; then : |
5794 | ac_cv_header_stdc=yes | |
5795 | else | |
5796 | ac_cv_header_stdc=no | |
3cb62297 L |
5797 | fi |
5798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b879806f AM |
5799 | |
5800 | if test $ac_cv_header_stdc = yes; then | |
5801 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5803 | /* end confdefs.h. */ | |
5804 | #include <string.h> | |
5805 | ||
5806 | _ACEOF | |
5807 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5808 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5809 | ||
5810 | else | |
5811 | ac_cv_header_stdc=no | |
3cb62297 | 5812 | fi |
b879806f AM |
5813 | rm -f conftest* |
5814 | ||
3cb62297 | 5815 | fi |
b879806f AM |
5816 | |
5817 | if test $ac_cv_header_stdc = yes; then | |
5818 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5820 | /* end confdefs.h. */ | |
5821 | #include <stdlib.h> | |
5822 | ||
5823 | _ACEOF | |
5824 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5825 | $EGREP "free" >/dev/null 2>&1; then : | |
5826 | ||
ce2cded5 | 5827 | else |
b879806f | 5828 | ac_cv_header_stdc=no |
ce2cded5 | 5829 | fi |
b879806f | 5830 | rm -f conftest* |
42ecbf5e | 5831 | |
b879806f | 5832 | fi |
e5a52504 | 5833 | |
b879806f AM |
5834 | if test $ac_cv_header_stdc = yes; then |
5835 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5836 | if test "$cross_compiling" = yes; then : | |
5837 | : | |
3cb62297 | 5838 | else |
b879806f AM |
5839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5840 | /* end confdefs.h. */ | |
5841 | #include <ctype.h> | |
5842 | #include <stdlib.h> | |
5843 | #if ((' ' & 0x0FF) == 0x020) | |
5844 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5845 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5846 | #else | |
5847 | # define ISLOWER(c) \ | |
5848 | (('a' <= (c) && (c) <= 'i') \ | |
5849 | || ('j' <= (c) && (c) <= 'r') \ | |
5850 | || ('s' <= (c) && (c) <= 'z')) | |
5851 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5852 | #endif | |
3cb62297 L |
5853 | |
5854 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5855 | int | |
5856 | main () | |
5857 | { | |
5858 | int i; | |
5859 | for (i = 0; i < 256; i++) | |
5860 | if (XOR (islower (i), ISLOWER (i)) | |
5861 | || toupper (i) != TOUPPER (i)) | |
5862 | return 2; | |
5863 | return 0; | |
5864 | } | |
5865 | _ACEOF | |
5866 | if ac_fn_c_try_run "$LINENO"; then : | |
5867 | ||
5868 | else | |
5869 | ac_cv_header_stdc=no | |
5870 | fi | |
5871 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5872 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5873 | fi | |
5874 | ||
5875 | fi | |
5876 | fi | |
5877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5878 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5879 | if test $ac_cv_header_stdc = yes; then | |
5880 | ||
5881 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5882 | ||
5883 | fi | |
5884 | ||
5885 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5886 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5887 | inttypes.h stdint.h unistd.h | |
5888 | do : | |
5889 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5890 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5891 | " | |
d0ac1c44 | 5892 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
3cb62297 L |
5893 | cat >>confdefs.h <<_ACEOF |
5894 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5895 | _ACEOF | |
5896 | ||
5897 | fi | |
5898 | ||
5899 | done | |
5900 | ||
5901 | ||
5902 | ||
5903 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
d0ac1c44 | 5904 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
3cb62297 L |
5905 | MINIX=yes |
5906 | else | |
5907 | MINIX= | |
5908 | fi | |
5909 | ||
5910 | ||
5911 | if test "$MINIX" = yes; then | |
5912 | ||
5913 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
5914 | ||
5915 | ||
5916 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
5917 | ||
5918 | ||
5919 | $as_echo "#define _MINIX 1" >>confdefs.h | |
5920 | ||
5921 | fi | |
5922 | ||
5923 | ||
5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
5925 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
d0ac1c44 | 5926 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
3cb62297 L |
5927 | $as_echo_n "(cached) " >&6 |
5928 | else | |
5929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5930 | /* end confdefs.h. */ | |
5931 | ||
d0ac1c44 SM |
5932 | # define __EXTENSIONS__ 1 |
5933 | $ac_includes_default | |
3cb62297 L |
5934 | int |
5935 | main () | |
5936 | { | |
5937 | ||
5938 | ; | |
5939 | return 0; | |
5940 | } | |
5941 | _ACEOF | |
5942 | if ac_fn_c_try_compile "$LINENO"; then : | |
5943 | ac_cv_safe_to_define___extensions__=yes | |
5944 | else | |
5945 | ac_cv_safe_to_define___extensions__=no | |
5946 | fi | |
5947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5948 | fi | |
5949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5950 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5951 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5952 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
5953 | ||
5954 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
5955 | ||
5956 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
5957 | ||
5958 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
5959 | ||
5960 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5961 | ||
5962 | ||
5963 | ||
5964 | ||
5965 | ||
3cb62297 | 5966 | |
b879806f AM |
5967 | case `pwd` in |
5968 | *\ * | *\ *) | |
5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5970 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5971 | esac | |
3cb62297 L |
5972 | |
5973 | ||
da2f07f1 | 5974 | |
b879806f AM |
5975 | macro_version='2.2.7a' |
5976 | macro_revision='1.3134' | |
d7040cdb | 5977 | |
d7040cdb SE |
5978 | |
5979 | ||
d7040cdb | 5980 | |
d7040cdb | 5981 | |
42ecbf5e | 5982 | |
d7040cdb | 5983 | |
252b5132 | 5984 | |
252b5132 | 5985 | |
252b5132 | 5986 | |
252b5132 RH |
5987 | |
5988 | ||
ce2cded5 | 5989 | |
b214d478 | 5990 | ltmain="$ac_aux_dir/ltmain.sh" |
ce2cded5 | 5991 | |
3725885a RW |
5992 | # Backslashify metacharacters that are still active within |
5993 | # double-quoted strings. | |
5994 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5995 | ||
5996 | # Same as above, but do not quote variable references. | |
5997 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5998 | ||
5999 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6000 | # double_quote_subst'ed string. | |
6001 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6002 | ||
6003 | # Sed substitution to delay expansion of an escaped single quote. | |
6004 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6005 | ||
6006 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6007 | no_glob_subst='s/\*/\\\*/g' | |
6008 | ||
6009 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6010 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
6011 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
6012 | ||
6013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
6014 | $as_echo_n "checking how to print strings... " >&6; } | |
6015 | # Test print first, because it will be a builtin if present. | |
6016 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
6017 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6018 | ECHO='print -r --' | |
6019 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6020 | ECHO='printf %s\n' | |
6021 | else | |
6022 | # Use this function as a fallback that always works. | |
6023 | func_fallback_echo () | |
6024 | { | |
6025 | eval 'cat <<_LTECHO_EOF | |
6026 | $1 | |
6027 | _LTECHO_EOF' | |
6028 | } | |
6029 | ECHO='func_fallback_echo' | |
6030 | fi | |
6031 | ||
6032 | # func_echo_all arg... | |
6033 | # Invoke $ECHO with all args, space-separated. | |
6034 | func_echo_all () | |
6035 | { | |
6036 | $ECHO "" | |
6037 | } | |
6038 | ||
6039 | case "$ECHO" in | |
6040 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
6041 | $as_echo "printf" >&6; } ;; | |
6042 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
6043 | $as_echo "print -r" >&6; } ;; | |
6044 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
6045 | $as_echo "cat" >&6; } ;; | |
6046 | esac | |
6047 | ||
6048 | ||
6049 | ||
6050 | ||
6051 | ||
6052 | ||
6053 | ||
6054 | ||
6055 | ||
6056 | ||
6057 | ||
6058 | ||
6059 | ||
6060 | ||
81ecdfbb RW |
6061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
6062 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 6063 | if ${ac_cv_path_SED+:} false; then : |
81ecdfbb RW |
6064 | $as_echo_n "(cached) " >&6 |
6065 | else | |
6066 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
6067 | for ac_i in 1 2 3 4 5 6 7; do | |
6068 | ac_script="$ac_script$as_nl$ac_script" | |
6069 | done | |
6070 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6071 | { ac_script=; unset ac_script;} | |
6072 | if test -z "$SED"; then | |
6073 | ac_path_SED_found=false | |
6074 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
6076 | for as_dir in $PATH |
6077 | do | |
6078 | IFS=$as_save_IFS | |
6079 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6080 | for ac_prog in sed gsed; do |
7357c5b6 | 6081 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb | 6082 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
d0ac1c44 | 6083 | as_fn_executable_p "$ac_path_SED" || continue |
81ecdfbb RW |
6084 | # Check for GNU ac_path_SED and select it if it is found. |
6085 | # Check for GNU $ac_path_SED | |
6086 | case `"$ac_path_SED" --version 2>&1` in | |
6087 | *GNU*) | |
6088 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6089 | *) | |
6090 | ac_count=0 | |
6091 | $as_echo_n 0123456789 >"conftest.in" | |
6092 | while : | |
6093 | do | |
6094 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6095 | mv "conftest.tmp" "conftest.in" | |
6096 | cp "conftest.in" "conftest.nl" | |
6097 | $as_echo '' >> "conftest.nl" | |
6098 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6099 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6100 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6101 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6102 | # Best one so far, save it but keep looking for a better one | |
6103 | ac_cv_path_SED="$ac_path_SED" | |
6104 | ac_path_SED_max=$ac_count | |
6105 | fi | |
6106 | # 10*(2^10) chars as input seems more than enough | |
6107 | test $ac_count -gt 10 && break | |
6108 | done | |
6109 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6110 | esac | |
6111 | ||
6112 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
6113 | done |
6114 | done | |
81ecdfbb | 6115 | done |
7357c5b6 | 6116 | IFS=$as_save_IFS |
81ecdfbb | 6117 | if test -z "$ac_cv_path_SED"; then |
d0ac1c44 | 6118 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
ce2cded5 | 6119 | fi |
81ecdfbb RW |
6120 | else |
6121 | ac_cv_path_SED=$SED | |
7357c5b6 | 6122 | fi |
20e95c23 | 6123 | |
81ecdfbb RW |
6124 | fi |
6125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
6126 | $as_echo "$ac_cv_path_SED" >&6; } | |
6127 | SED="$ac_cv_path_SED" | |
6128 | rm -f conftest.sed | |
20e95c23 | 6129 | |
7357c5b6 AM |
6130 | test -z "$SED" && SED=sed |
6131 | Xsed="$SED -e 1s/^X//" | |
20e95c23 DJ |
6132 | |
6133 | ||
6134 | ||
6135 | ||
6136 | ||
6137 | ||
20e95c23 | 6138 | |
20e95c23 | 6139 | |
d7040cdb | 6140 | |
d7040cdb | 6141 | |
7357c5b6 | 6142 | |
81ecdfbb RW |
6143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
6144 | $as_echo_n "checking for fgrep... " >&6; } | |
d0ac1c44 | 6145 | if ${ac_cv_path_FGREP+:} false; then : |
81ecdfbb | 6146 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 6147 | else |
81ecdfbb RW |
6148 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
6149 | then ac_cv_path_FGREP="$GREP -F" | |
6150 | else | |
6151 | if test -z "$FGREP"; then | |
6152 | ac_path_FGREP_found=false | |
6153 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6155 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6156 | do | |
6157 | IFS=$as_save_IFS | |
6158 | test -z "$as_dir" && as_dir=. | |
6159 | for ac_prog in fgrep; do | |
6160 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6161 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 6162 | as_fn_executable_p "$ac_path_FGREP" || continue |
81ecdfbb RW |
6163 | # Check for GNU ac_path_FGREP and select it if it is found. |
6164 | # Check for GNU $ac_path_FGREP | |
6165 | case `"$ac_path_FGREP" --version 2>&1` in | |
6166 | *GNU*) | |
6167 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
6168 | *) | |
6169 | ac_count=0 | |
6170 | $as_echo_n 0123456789 >"conftest.in" | |
6171 | while : | |
6172 | do | |
6173 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6174 | mv "conftest.tmp" "conftest.in" | |
6175 | cp "conftest.in" "conftest.nl" | |
6176 | $as_echo 'FGREP' >> "conftest.nl" | |
6177 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6178 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6179 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6180 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
6181 | # Best one so far, save it but keep looking for a better one | |
6182 | ac_cv_path_FGREP="$ac_path_FGREP" | |
6183 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 6184 | fi |
81ecdfbb RW |
6185 | # 10*(2^10) chars as input seems more than enough |
6186 | test $ac_count -gt 10 && break | |
6187 | done | |
6188 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6189 | esac | |
6190 | ||
6191 | $ac_path_FGREP_found && break 3 | |
6192 | done | |
6193 | done | |
6194 | done | |
6195 | IFS=$as_save_IFS | |
6196 | if test -z "$ac_cv_path_FGREP"; then | |
d0ac1c44 | 6197 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
6198 | fi |
6199 | else | |
6200 | ac_cv_path_FGREP=$FGREP | |
6201 | fi | |
6202 | ||
6203 | fi | |
20e95c23 | 6204 | fi |
81ecdfbb RW |
6205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
6206 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
6207 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
6208 | |
6209 | ||
6210 | test -z "$GREP" && GREP=grep | |
6211 | ||
d7040cdb SE |
6212 | |
6213 | ||
6214 | ||
6215 | ||
6216 | ||
6217 | ||
6218 | ||
6219 | ||
6220 | ||
6221 | ||
6222 | ||
20e95c23 | 6223 | |
ce2cded5 | 6224 | |
d7040cdb | 6225 | |
7357c5b6 AM |
6226 | |
6227 | ||
6228 | ||
6229 | ||
81ecdfbb RW |
6230 | # Check whether --with-gnu-ld was given. |
6231 | if test "${with_gnu_ld+set}" = set; then : | |
6232 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7357c5b6 AM |
6233 | else |
6234 | with_gnu_ld=no | |
81ecdfbb RW |
6235 | fi |
6236 | ||
7357c5b6 AM |
6237 | ac_prog=ld |
6238 | if test "$GCC" = yes; then | |
6239 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
6240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
6241 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
7357c5b6 AM |
6242 | case $host in |
6243 | *-*-mingw*) | |
6244 | # gcc leaves a trailing carriage return which upsets mingw | |
6245 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6246 | *) | |
6247 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6248 | esac | |
6249 | case $ac_prog in | |
6250 | # Accept absolute paths. | |
6251 | [\\/]* | ?:[\\/]*) | |
6252 | re_direlt='/[^/][^/]*/\.\./' | |
6253 | # Canonicalize the pathname of ld | |
6254 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6255 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6256 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6257 | done | |
6258 | test -z "$LD" && LD="$ac_prog" | |
6259 | ;; | |
6260 | "") | |
6261 | # If it fails, then pretend we aren't using GCC. | |
6262 | ac_prog=ld | |
6263 | ;; | |
6264 | *) | |
6265 | # If it is relative, then search for the first ld in PATH. | |
6266 | with_gnu_ld=unknown | |
6267 | ;; | |
6268 | esac | |
6269 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
6270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
6271 | $as_echo_n "checking for GNU ld... " >&6; } | |
7357c5b6 | 6272 | else |
81ecdfbb RW |
6273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
6274 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
ce2cded5 | 6275 | fi |
d0ac1c44 | 6276 | if ${lt_cv_path_LD+:} false; then : |
81ecdfbb | 6277 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 6278 | else |
7357c5b6 AM |
6279 | if test -z "$LD"; then |
6280 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6281 | for ac_dir in $PATH; do | |
6282 | IFS="$lt_save_ifs" | |
6283 | test -z "$ac_dir" && ac_dir=. | |
6284 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6285 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6286 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6287 | # but apparently some variants of GNU ld only accept -v. | |
6288 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6289 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6290 | *GNU* | *'with BFD'*) | |
6291 | test "$with_gnu_ld" != no && break | |
6292 | ;; | |
6293 | *) | |
6294 | test "$with_gnu_ld" != yes && break | |
6295 | ;; | |
6296 | esac | |
6297 | fi | |
6298 | done | |
6299 | IFS="$lt_save_ifs" | |
ce2cded5 | 6300 | else |
7357c5b6 | 6301 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
ce2cded5 L |
6302 | fi |
6303 | fi | |
7357c5b6 AM |
6304 | |
6305 | LD="$lt_cv_path_LD" | |
6306 | if test -n "$LD"; then | |
81ecdfbb RW |
6307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
6308 | $as_echo "$LD" >&6; } | |
ce2cded5 | 6309 | else |
81ecdfbb RW |
6310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6311 | $as_echo "no" >&6; } | |
ce2cded5 | 6312 | fi |
d0ac1c44 | 6313 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
81ecdfbb RW |
6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
6315 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d0ac1c44 | 6316 | if ${lt_cv_prog_gnu_ld+:} false; then : |
81ecdfbb | 6317 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 6318 | else |
7357c5b6 AM |
6319 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
6320 | case `$LD -v 2>&1 </dev/null` in | |
6321 | *GNU* | *'with BFD'*) | |
6322 | lt_cv_prog_gnu_ld=yes | |
6323 | ;; | |
6324 | *) | |
6325 | lt_cv_prog_gnu_ld=no | |
6326 | ;; | |
6327 | esac | |
ce2cded5 | 6328 | fi |
81ecdfbb RW |
6329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
6330 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
7357c5b6 | 6331 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d7040cdb SE |
6332 | |
6333 | ||
6334 | ||
6335 | ||
6336 | ||
6337 | ||
6338 | ||
6339 | ||
6340 | ||
81ecdfbb RW |
6341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
6342 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
d0ac1c44 | 6343 | if ${lt_cv_path_NM+:} false; then : |
81ecdfbb | 6344 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 6345 | else |
7357c5b6 AM |
6346 | if test -n "$NM"; then |
6347 | # Let the user override the test. | |
6348 | lt_cv_path_NM="$NM" | |
ce2cded5 | 6349 | else |
7357c5b6 AM |
6350 | lt_nm_to_check="${ac_tool_prefix}nm" |
6351 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6352 | lt_nm_to_check="$lt_nm_to_check nm" | |
20e95c23 | 6353 | fi |
7357c5b6 AM |
6354 | for lt_tmp_nm in $lt_nm_to_check; do |
6355 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6356 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6357 | IFS="$lt_save_ifs" | |
6358 | test -z "$ac_dir" && ac_dir=. | |
6359 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6360 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6361 | # Check to see if the nm accepts a BSD-compat flag. | |
6362 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6363 | # nm: unknown option "B" ignored | |
6364 | # Tru64's nm complains that /dev/null is an invalid object file | |
6365 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6366 | */dev/null* | *'Invalid file or object type'*) | |
6367 | lt_cv_path_NM="$tmp_nm -B" | |
6368 | break | |
6369 | ;; | |
6370 | *) | |
6371 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6372 | */dev/null*) | |
6373 | lt_cv_path_NM="$tmp_nm -p" | |
6374 | break | |
6375 | ;; | |
6376 | *) | |
6377 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6378 | continue # so that we can try to find one that supports BSD flags | |
6379 | ;; | |
6380 | esac | |
6381 | ;; | |
6382 | esac | |
6383 | fi | |
6384 | done | |
6385 | IFS="$lt_save_ifs" | |
6386 | done | |
6387 | : ${lt_cv_path_NM=no} | |
ce2cded5 L |
6388 | fi |
6389 | fi | |
81ecdfbb RW |
6390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
6391 | $as_echo "$lt_cv_path_NM" >&6; } | |
7357c5b6 AM |
6392 | if test "$lt_cv_path_NM" != "no"; then |
6393 | NM="$lt_cv_path_NM" | |
ce2cded5 | 6394 | else |
7357c5b6 | 6395 | # Didn't find any BSD compatible name lister, look for dumpbin. |
3725885a RW |
6396 | if test -n "$DUMPBIN"; then : |
6397 | # Let the user override the test. | |
6398 | else | |
6399 | if test -n "$ac_tool_prefix"; then | |
6400 | for ac_prog in dumpbin "link -dump" | |
7357c5b6 AM |
6401 | do |
6402 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6403 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
6404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6405 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6406 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
81ecdfbb | 6407 | $as_echo_n "(cached) " >&6 |
20e95c23 | 6408 | else |
7357c5b6 AM |
6409 | if test -n "$DUMPBIN"; then |
6410 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
6411 | else |
6412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6413 | for as_dir in $PATH | |
6414 | do | |
6415 | IFS=$as_save_IFS | |
6416 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6417 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6418 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 6419 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 6420 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6421 | break 2 |
6422 | fi | |
6423 | done | |
81ecdfbb RW |
6424 | done |
6425 | IFS=$as_save_IFS | |
d7040cdb | 6426 | |
20e95c23 | 6427 | fi |
ce2cded5 | 6428 | fi |
7357c5b6 AM |
6429 | DUMPBIN=$ac_cv_prog_DUMPBIN |
6430 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
6431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
6432 | $as_echo "$DUMPBIN" >&6; } | |
42ecbf5e | 6433 | else |
81ecdfbb RW |
6434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6435 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
6436 | fi |
6437 | ||
81ecdfbb | 6438 | |
7357c5b6 AM |
6439 | test -n "$DUMPBIN" && break |
6440 | done | |
ce2cded5 | 6441 | fi |
7357c5b6 AM |
6442 | if test -z "$DUMPBIN"; then |
6443 | ac_ct_DUMPBIN=$DUMPBIN | |
3725885a | 6444 | for ac_prog in dumpbin "link -dump" |
7357c5b6 AM |
6445 | do |
6446 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6447 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
6448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6449 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6450 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
81ecdfbb | 6451 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 6452 | else |
7357c5b6 AM |
6453 | if test -n "$ac_ct_DUMPBIN"; then |
6454 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
6455 | else |
6456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6457 | for as_dir in $PATH | |
6458 | do | |
6459 | IFS=$as_save_IFS | |
6460 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6461 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6462 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 6463 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 6464 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6465 | break 2 |
6466 | fi | |
6467 | done | |
81ecdfbb RW |
6468 | done |
6469 | IFS=$as_save_IFS | |
d7040cdb | 6470 | |
ce2cded5 L |
6471 | fi |
6472 | fi | |
7357c5b6 AM |
6473 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
6474 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
6475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
6476 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ce2cded5 | 6477 | else |
81ecdfbb RW |
6478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6479 | $as_echo "no" >&6; } | |
ce2cded5 | 6480 | fi |
d7040cdb | 6481 | |
81ecdfbb | 6482 | |
7357c5b6 | 6483 | test -n "$ac_ct_DUMPBIN" && break |
ce2cded5 | 6484 | done |
d7040cdb | 6485 | |
81ecdfbb RW |
6486 | if test "x$ac_ct_DUMPBIN" = x; then |
6487 | DUMPBIN=":" | |
6488 | else | |
6489 | case $cross_compiling:$ac_tool_warned in | |
6490 | yes:) | |
6491 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6492 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6493 | ac_tool_warned=yes ;; | |
6494 | esac | |
6495 | DUMPBIN=$ac_ct_DUMPBIN | |
6496 | fi | |
ce2cded5 | 6497 | fi |
7357c5b6 | 6498 | |
3725885a RW |
6499 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
6500 | *COFF*) | |
6501 | DUMPBIN="$DUMPBIN -symbols" | |
6502 | ;; | |
6503 | *) | |
6504 | DUMPBIN=: | |
6505 | ;; | |
6506 | esac | |
6507 | fi | |
7357c5b6 AM |
6508 | |
6509 | if test "$DUMPBIN" != ":"; then | |
6510 | NM="$DUMPBIN" | |
6511 | fi | |
ce2cded5 | 6512 | fi |
7357c5b6 AM |
6513 | test -z "$NM" && NM=nm |
6514 | ||
6515 | ||
6516 | ||
6517 | ||
6518 | ||
6519 | ||
81ecdfbb RW |
6520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
6521 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
d0ac1c44 | 6522 | if ${lt_cv_nm_interface+:} false; then : |
81ecdfbb | 6523 | $as_echo_n "(cached) " >&6 |
20e95c23 | 6524 | else |
7357c5b6 AM |
6525 | lt_cv_nm_interface="BSD nm" |
6526 | echo "int some_variable = 0;" > conftest.$ac_ext | |
3725885a | 6527 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
7357c5b6 AM |
6528 | (eval "$ac_compile" 2>conftest.err) |
6529 | cat conftest.err >&5 | |
3725885a | 6530 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
7357c5b6 AM |
6531 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
6532 | cat conftest.err >&5 | |
3725885a | 6533 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
7357c5b6 AM |
6534 | cat conftest.out >&5 |
6535 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6536 | lt_cv_nm_interface="MS dumpbin" | |
6537 | fi | |
6538 | rm -f conftest* | |
20e95c23 | 6539 | fi |
81ecdfbb RW |
6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
6541 | $as_echo "$lt_cv_nm_interface" >&6; } | |
20e95c23 | 6542 | |
81ecdfbb RW |
6543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
6544 | $as_echo_n "checking whether ln -s works... " >&6; } | |
7357c5b6 AM |
6545 | LN_S=$as_ln_s |
6546 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
6547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6548 | $as_echo "yes" >&6; } | |
ce2cded5 | 6549 | else |
81ecdfbb RW |
6550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
6551 | $as_echo "no, using $LN_S" >&6; } | |
d7040cdb | 6552 | fi |
20e95c23 | 6553 | |
7357c5b6 | 6554 | # find the maximum length of command line arguments |
81ecdfbb RW |
6555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
6556 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
d0ac1c44 | 6557 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
81ecdfbb | 6558 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
6559 | else |
6560 | i=0 | |
6561 | teststring="ABCD" | |
20e95c23 | 6562 | |
7357c5b6 AM |
6563 | case $build_os in |
6564 | msdosdjgpp*) | |
6565 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6566 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6567 | # during glob expansion). Even if it were fixed, the result of this | |
6568 | # check would be larger than it should be. | |
6569 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6570 | ;; | |
20e95c23 | 6571 | |
7357c5b6 AM |
6572 | gnu*) |
6573 | # Under GNU Hurd, this test is not required because there is | |
6574 | # no limit to the length of command line arguments. | |
6575 | # Libtool will interpret -1 as no limit whatsoever | |
6576 | lt_cv_sys_max_cmd_len=-1; | |
6577 | ;; | |
20e95c23 | 6578 | |
b214d478 | 6579 | cygwin* | mingw* | cegcc*) |
7357c5b6 AM |
6580 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6581 | # about 5 minutes as the teststring grows exponentially. | |
6582 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6583 | # you end up with a "frozen" computer, even though with patience | |
6584 | # the test eventually succeeds (with a max line length of 256k). | |
6585 | # Instead, let's just punt: use the minimum linelength reported by | |
6586 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6587 | lt_cv_sys_max_cmd_len=8192; | |
6588 | ;; | |
20e95c23 | 6589 | |
3725885a RW |
6590 | mint*) |
6591 | # On MiNT this can take a long time and run out of memory. | |
6592 | lt_cv_sys_max_cmd_len=8192; | |
6593 | ;; | |
6594 | ||
7357c5b6 AM |
6595 | amigaos*) |
6596 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6597 | # So we just punt and use a minimum line length of 8192. | |
6598 | lt_cv_sys_max_cmd_len=8192; | |
6599 | ;; | |
20e95c23 | 6600 | |
7357c5b6 AM |
6601 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6602 | # This has been around since 386BSD, at least. Likely further. | |
6603 | if test -x /sbin/sysctl; then | |
6604 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6605 | elif test -x /usr/sbin/sysctl; then | |
6606 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6607 | else | |
6608 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6609 | fi | |
6610 | # And add a safety zone | |
6611 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6612 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6613 | ;; | |
d7040cdb | 6614 | |
7357c5b6 AM |
6615 | interix*) |
6616 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6617 | lt_cv_sys_max_cmd_len=196608 | |
6618 | ;; | |
d7040cdb | 6619 | |
7357c5b6 AM |
6620 | osf*) |
6621 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6622 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6623 | # nice to cause kernel panics so lets avoid the loop below. | |
6624 | # First set a reasonable default. | |
6625 | lt_cv_sys_max_cmd_len=16384 | |
6626 | # | |
6627 | if test -x /sbin/sysconfig; then | |
6628 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6629 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6630 | esac | |
6631 | fi | |
6632 | ;; | |
6633 | sco3.2v5*) | |
6634 | lt_cv_sys_max_cmd_len=102400 | |
6635 | ;; | |
6636 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6637 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6638 | if test -n "$kargmax"; then | |
6639 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6640 | else | |
6641 | lt_cv_sys_max_cmd_len=32768 | |
6642 | fi | |
ce2cded5 L |
6643 | ;; |
6644 | *) | |
b214d478 SE |
6645 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6646 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
7357c5b6 AM |
6647 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6648 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6649 | else | |
6650 | # Make teststring a little bigger before we do anything with it. | |
6651 | # a 1K string should be a reasonable start. | |
6652 | for i in 1 2 3 4 5 6 7 8 ; do | |
6653 | teststring=$teststring$teststring | |
6654 | done | |
6655 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6656 | # If test is not a shell built-in, we'll probably end up computing a | |
6657 | # maximum length that is only half of the actual maximum length, but | |
6658 | # we can't tell. | |
3725885a RW |
6659 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
6660 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
7357c5b6 AM |
6661 | test $i != 17 # 1/2 MB should be enough |
6662 | do | |
6663 | i=`expr $i + 1` | |
6664 | teststring=$teststring$teststring | |
6665 | done | |
6666 | # Only check the string length outside the loop. | |
6667 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6668 | teststring= | |
6669 | # Add a significant safety factor because C++ compilers can tack on | |
6670 | # massive amounts of additional arguments before passing them to the | |
6671 | # linker. It appears as though 1/2 is a usable value. | |
6672 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6673 | fi | |
ce2cded5 L |
6674 | ;; |
6675 | esac | |
d7040cdb | 6676 | |
7357c5b6 | 6677 | fi |
d7040cdb | 6678 | |
7357c5b6 | 6679 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
6680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
6681 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
7357c5b6 | 6682 | else |
81ecdfbb RW |
6683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
6684 | $as_echo "none" >&6; } | |
7357c5b6 AM |
6685 | fi |
6686 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
d7040cdb SE |
6687 | |
6688 | ||
6689 | ||
6690 | ||
6691 | ||
d7040cdb | 6692 | |
7357c5b6 AM |
6693 | : ${CP="cp -f"} |
6694 | : ${MV="mv -f"} | |
6695 | : ${RM="rm -f"} | |
d7040cdb | 6696 | |
81ecdfbb RW |
6697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
6698 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
7357c5b6 AM |
6699 | # Try some XSI features |
6700 | xsi_shell=no | |
6701 | ( _lt_dummy="a/b/c" | |
6702 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
b214d478 SE |
6703 | = c,a/b,, \ |
6704 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6705 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
7357c5b6 | 6706 | && xsi_shell=yes |
81ecdfbb RW |
6707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
6708 | $as_echo "$xsi_shell" >&6; } | |
d7040cdb | 6709 | |
d7040cdb | 6710 | |
81ecdfbb RW |
6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
6712 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
7357c5b6 AM |
6713 | lt_shell_append=no |
6714 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6715 | >/dev/null 2>&1 \ | |
6716 | && lt_shell_append=yes | |
81ecdfbb RW |
6717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
6718 | $as_echo "$lt_shell_append" >&6; } | |
d7040cdb SE |
6719 | |
6720 | ||
7357c5b6 AM |
6721 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6722 | lt_unset=unset | |
6723 | else | |
6724 | lt_unset=false | |
6725 | fi | |
d7040cdb | 6726 | |
d7040cdb | 6727 | |
d7040cdb | 6728 | |
d7040cdb | 6729 | |
d7040cdb | 6730 | |
7357c5b6 AM |
6731 | # test EBCDIC or ASCII |
6732 | case `echo X|tr X '\101'` in | |
6733 | A) # ASCII based system | |
6734 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6735 | lt_SP2NL='tr \040 \012' | |
6736 | lt_NL2SP='tr \015\012 \040\040' | |
6737 | ;; | |
6738 | *) # EBCDIC based system | |
6739 | lt_SP2NL='tr \100 \n' | |
6740 | lt_NL2SP='tr \r\n \100\100' | |
6741 | ;; | |
6742 | esac | |
42ecbf5e | 6743 | |
d7040cdb SE |
6744 | |
6745 | ||
6746 | ||
6747 | ||
6748 | ||
6749 | ||
d7040cdb | 6750 | |
d7040cdb | 6751 | |
81ecdfbb RW |
6752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6753 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
d0ac1c44 | 6754 | if ${lt_cv_ld_reload_flag+:} false; then : |
81ecdfbb | 6755 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
6756 | else |
6757 | lt_cv_ld_reload_flag='-r' | |
6758 | fi | |
81ecdfbb RW |
6759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
6760 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
7357c5b6 AM |
6761 | reload_flag=$lt_cv_ld_reload_flag |
6762 | case $reload_flag in | |
6763 | "" | " "*) ;; | |
6764 | *) reload_flag=" $reload_flag" ;; | |
6765 | esac | |
6766 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6767 | case $host_os in | |
6768 | darwin*) | |
6769 | if test "$GCC" = yes; then | |
6770 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6771 | else | |
6772 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6773 | fi | |
6774 | ;; | |
6775 | esac | |
d7040cdb | 6776 | |
d7040cdb | 6777 | |
d7040cdb | 6778 | |
d7040cdb | 6779 | |
d7040cdb | 6780 | |
d7040cdb | 6781 | |
d7040cdb | 6782 | |
d7040cdb | 6783 | |
d7040cdb | 6784 | |
b214d478 SE |
6785 | if test -n "$ac_tool_prefix"; then |
6786 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6787 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
6788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6789 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6790 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 6791 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
6792 | else |
6793 | if test -n "$OBJDUMP"; then | |
6794 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6795 | else | |
6796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6797 | for as_dir in $PATH | |
6798 | do | |
6799 | IFS=$as_save_IFS | |
6800 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6801 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6802 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 6803 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 6804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
6805 | break 2 |
6806 | fi | |
6807 | done | |
81ecdfbb RW |
6808 | done |
6809 | IFS=$as_save_IFS | |
b214d478 SE |
6810 | |
6811 | fi | |
6812 | fi | |
6813 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6814 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
6815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
6816 | $as_echo "$OBJDUMP" >&6; } | |
b214d478 | 6817 | else |
81ecdfbb RW |
6818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6819 | $as_echo "no" >&6; } | |
b214d478 SE |
6820 | fi |
6821 | ||
81ecdfbb | 6822 | |
b214d478 SE |
6823 | fi |
6824 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6825 | ac_ct_OBJDUMP=$OBJDUMP | |
6826 | # Extract the first word of "objdump", so it can be a program name with args. | |
6827 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
6828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6829 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6830 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
81ecdfbb | 6831 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
6832 | else |
6833 | if test -n "$ac_ct_OBJDUMP"; then | |
6834 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6835 | else | |
6836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6837 | for as_dir in $PATH | |
6838 | do | |
6839 | IFS=$as_save_IFS | |
6840 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6841 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6842 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 6843 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 6844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
6845 | break 2 |
6846 | fi | |
6847 | done | |
81ecdfbb RW |
6848 | done |
6849 | IFS=$as_save_IFS | |
b214d478 | 6850 | |
b214d478 SE |
6851 | fi |
6852 | fi | |
6853 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6854 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
6855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
6856 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
b214d478 | 6857 | else |
81ecdfbb RW |
6858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6859 | $as_echo "no" >&6; } | |
b214d478 SE |
6860 | fi |
6861 | ||
81ecdfbb RW |
6862 | if test "x$ac_ct_OBJDUMP" = x; then |
6863 | OBJDUMP="false" | |
6864 | else | |
6865 | case $cross_compiling:$ac_tool_warned in | |
6866 | yes:) | |
6867 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6868 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6869 | ac_tool_warned=yes ;; | |
6870 | esac | |
6871 | OBJDUMP=$ac_ct_OBJDUMP | |
6872 | fi | |
b214d478 SE |
6873 | else |
6874 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6875 | fi | |
6876 | ||
6877 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6878 | ||
6879 | ||
6880 | ||
6881 | ||
6882 | ||
6883 | ||
6884 | ||
6885 | ||
d7040cdb | 6886 | |
81ecdfbb RW |
6887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6888 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
d0ac1c44 | 6889 | if ${lt_cv_deplibs_check_method+:} false; then : |
81ecdfbb | 6890 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 6891 | else |
7357c5b6 AM |
6892 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6893 | lt_cv_file_magic_test_file= | |
6894 | lt_cv_deplibs_check_method='unknown' | |
6895 | # Need to set the preceding variable on all platforms that support | |
6896 | # interlibrary dependencies. | |
6897 | # 'none' -- dependencies not supported. | |
6898 | # `unknown' -- same as none, but documents that we really don't know. | |
6899 | # 'pass_all' -- all dependencies passed with no checks. | |
6900 | # 'test_compile' -- check by making test program. | |
6901 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6902 | # which responds to the $file_magic_cmd with a given extended regex. | |
6903 | # If you have `file' or equivalent on your system and you're not sure | |
6904 | # whether `pass_all' will *always* work, you probably want this one. | |
d7040cdb | 6905 | |
ce2cded5 | 6906 | case $host_os in |
7357c5b6 AM |
6907 | aix[4-9]*) |
6908 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6909 | ;; |
7357c5b6 AM |
6910 | |
6911 | beos*) | |
6912 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6913 | ;; |
7357c5b6 AM |
6914 | |
6915 | bsdi[45]*) | |
6916 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6917 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6918 | lt_cv_file_magic_test_file=/shlib/libc.so | |
ce2cded5 | 6919 | ;; |
7357c5b6 AM |
6920 | |
6921 | cygwin*) | |
6922 | # func_win32_libid is a shell function defined in ltmain.sh | |
6923 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6924 | lt_cv_file_magic_cmd='func_win32_libid' | |
ce2cded5 | 6925 | ;; |
7357c5b6 AM |
6926 | |
6927 | mingw* | pw32*) | |
6928 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6929 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6930 | # unless we find 'file', for example because we are cross-compiling. | |
3725885a RW |
6931 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
6932 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
7357c5b6 AM |
6933 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6934 | lt_cv_file_magic_cmd='func_win32_libid' | |
6935 | else | |
6936 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6937 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6938 | fi | |
ce2cded5 | 6939 | ;; |
7357c5b6 | 6940 | |
3725885a | 6941 | cegcc*) |
b214d478 SE |
6942 | # use the weaker test based on 'objdump'. See mingw*. |
6943 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6944 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6945 | ;; | |
6946 | ||
7357c5b6 AM |
6947 | darwin* | rhapsody*) |
6948 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6949 | ;; |
7357c5b6 AM |
6950 | |
6951 | freebsd* | dragonfly*) | |
6952 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6953 | case $host_cpu in | |
6954 | i*86 ) | |
6955 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6956 | # Let's accept both of them until this is cleared up. | |
6957 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6958 | lt_cv_file_magic_cmd=/usr/bin/file | |
6959 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6960 | ;; | |
6961 | esac | |
6962 | else | |
6963 | lt_cv_deplibs_check_method=pass_all | |
6964 | fi | |
ce2cded5 | 6965 | ;; |
7357c5b6 AM |
6966 | |
6967 | gnu*) | |
6968 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6969 | ;; |
7357c5b6 | 6970 | |
3725885a RW |
6971 | haiku*) |
6972 | lt_cv_deplibs_check_method=pass_all | |
6973 | ;; | |
6974 | ||
7357c5b6 AM |
6975 | hpux10.20* | hpux11*) |
6976 | lt_cv_file_magic_cmd=/usr/bin/file | |
6977 | case $host_cpu in | |
6978 | ia64*) | |
6979 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6980 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6981 | ;; | |
6982 | hppa*64*) | |
3725885a | 6983 | 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 |
6984 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
6985 | ;; | |
6986 | *) | |
3725885a | 6987 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
7357c5b6 AM |
6988 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
6989 | ;; | |
6990 | esac | |
ce2cded5 | 6991 | ;; |
d7040cdb | 6992 | |
7357c5b6 AM |
6993 | interix[3-9]*) |
6994 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6995 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6996 | ;; | |
d7040cdb | 6997 | |
7357c5b6 AM |
6998 | irix5* | irix6* | nonstopux*) |
6999 | case $LD in | |
7000 | *-32|*"-32 ") libmagic=32-bit;; | |
7001 | *-n32|*"-n32 ") libmagic=N32;; | |
7002 | *-64|*"-64 ") libmagic=64-bit;; | |
7003 | *) libmagic=never-match;; | |
7004 | esac | |
7005 | lt_cv_deplibs_check_method=pass_all | |
7006 | ;; | |
d7040cdb | 7007 | |
7357c5b6 | 7008 | # This must be Linux ELF. |
58e24671 | 7009 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
7357c5b6 AM |
7010 | lt_cv_deplibs_check_method=pass_all |
7011 | ;; | |
d7040cdb | 7012 | |
7357c5b6 AM |
7013 | netbsd*) |
7014 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7015 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7016 | else | |
7017 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
7018 | fi | |
ce2cded5 | 7019 | ;; |
d7040cdb | 7020 | |
7357c5b6 AM |
7021 | newos6*) |
7022 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
7023 | lt_cv_file_magic_cmd=/usr/bin/file | |
7024 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
7025 | ;; | |
d7040cdb | 7026 | |
7357c5b6 AM |
7027 | *nto* | *qnx*) |
7028 | lt_cv_deplibs_check_method=pass_all | |
7029 | ;; | |
d7040cdb | 7030 | |
7357c5b6 AM |
7031 | openbsd*) |
7032 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7033 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
ce2cded5 | 7034 | else |
7357c5b6 | 7035 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
ce2cded5 | 7036 | fi |
7357c5b6 | 7037 | ;; |
d7040cdb | 7038 | |
7357c5b6 AM |
7039 | osf3* | osf4* | osf5*) |
7040 | lt_cv_deplibs_check_method=pass_all | |
7041 | ;; | |
d7040cdb | 7042 | |
7357c5b6 AM |
7043 | rdos*) |
7044 | lt_cv_deplibs_check_method=pass_all | |
7045 | ;; | |
d7040cdb | 7046 | |
7357c5b6 AM |
7047 | solaris*) |
7048 | lt_cv_deplibs_check_method=pass_all | |
7049 | ;; | |
d7040cdb | 7050 | |
7357c5b6 AM |
7051 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
7052 | lt_cv_deplibs_check_method=pass_all | |
7053 | ;; | |
d7040cdb | 7054 | |
7357c5b6 AM |
7055 | sysv4 | sysv4.3*) |
7056 | case $host_vendor in | |
7057 | motorola) | |
7058 | 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]' | |
7059 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
7060 | ;; | |
7061 | ncr) | |
7062 | lt_cv_deplibs_check_method=pass_all | |
7063 | ;; | |
7064 | sequent) | |
7065 | lt_cv_file_magic_cmd='/bin/file' | |
7066 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
7067 | ;; | |
7068 | sni) | |
7069 | lt_cv_file_magic_cmd='/bin/file' | |
7070 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
7071 | lt_cv_file_magic_test_file=/lib/libc.so | |
7072 | ;; | |
7073 | siemens) | |
7074 | lt_cv_deplibs_check_method=pass_all | |
7075 | ;; | |
7076 | pc) | |
7077 | lt_cv_deplibs_check_method=pass_all | |
7078 | ;; | |
7079 | esac | |
7080 | ;; | |
d7040cdb | 7081 | |
7357c5b6 AM |
7082 | tpf*) |
7083 | lt_cv_deplibs_check_method=pass_all | |
7084 | ;; | |
7085 | esac | |
d7040cdb | 7086 | |
7357c5b6 | 7087 | fi |
81ecdfbb RW |
7088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
7089 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
7357c5b6 AM |
7090 | file_magic_cmd=$lt_cv_file_magic_cmd |
7091 | deplibs_check_method=$lt_cv_deplibs_check_method | |
7092 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb SE |
7093 | |
7094 | ||
7095 | ||
7357c5b6 AM |
7096 | |
7097 | ||
7098 | ||
7099 | ||
7100 | ||
7101 | ||
7102 | ||
7103 | ||
7104 | ||
7105 | if test -n "$ac_tool_prefix"; then | |
7106 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
7107 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
7108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7109 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7110 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 7111 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
7112 | else |
7113 | if test -n "$AR"; then | |
7114 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7115 | else | |
7116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7117 | for as_dir in $PATH | |
7118 | do | |
7119 | IFS=$as_save_IFS | |
7120 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7121 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7122 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 7123 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 7124 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 7125 | break 2 |
ce2cded5 L |
7126 | fi |
7127 | done | |
81ecdfbb RW |
7128 | done |
7129 | IFS=$as_save_IFS | |
d7040cdb | 7130 | |
42ecbf5e | 7131 | fi |
ce2cded5 | 7132 | fi |
7357c5b6 AM |
7133 | AR=$ac_cv_prog_AR |
7134 | if test -n "$AR"; then | |
81ecdfbb RW |
7135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7136 | $as_echo "$AR" >&6; } | |
42ecbf5e | 7137 | else |
81ecdfbb RW |
7138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7139 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
7140 | fi |
7141 | ||
81ecdfbb | 7142 | |
7357c5b6 AM |
7143 | fi |
7144 | if test -z "$ac_cv_prog_AR"; then | |
7145 | ac_ct_AR=$AR | |
7146 | # Extract the first word of "ar", so it can be a program name with args. | |
7147 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
7148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7149 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7150 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 7151 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
7152 | else |
7153 | if test -n "$ac_ct_AR"; then | |
7154 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7155 | else | |
7156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7157 | for as_dir in $PATH | |
7158 | do | |
7159 | IFS=$as_save_IFS | |
7160 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7161 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7162 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 7163 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 7164 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
7165 | break 2 |
7166 | fi | |
7167 | done | |
81ecdfbb RW |
7168 | done |
7169 | IFS=$as_save_IFS | |
42ecbf5e | 7170 | |
7357c5b6 AM |
7171 | fi |
7172 | fi | |
7173 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
7174 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
7175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
7176 | $as_echo "$ac_ct_AR" >&6; } | |
7357c5b6 | 7177 | else |
81ecdfbb RW |
7178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7179 | $as_echo "no" >&6; } | |
7357c5b6 | 7180 | fi |
d7040cdb | 7181 | |
81ecdfbb RW |
7182 | if test "x$ac_ct_AR" = x; then |
7183 | AR="false" | |
7184 | else | |
7185 | case $cross_compiling:$ac_tool_warned in | |
7186 | yes:) | |
7187 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7188 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7189 | ac_tool_warned=yes ;; | |
7190 | esac | |
7191 | AR=$ac_ct_AR | |
7192 | fi | |
7357c5b6 AM |
7193 | else |
7194 | AR="$ac_cv_prog_AR" | |
7195 | fi | |
d7040cdb | 7196 | |
7357c5b6 AM |
7197 | test -z "$AR" && AR=ar |
7198 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d7040cdb SE |
7199 | |
7200 | ||
7201 | ||
20e95c23 | 7202 | |
d7040cdb | 7203 | |
d7040cdb SE |
7204 | |
7205 | ||
7206 | ||
7207 | ||
7208 | ||
7209 | ||
7357c5b6 AM |
7210 | if test -n "$ac_tool_prefix"; then |
7211 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7212 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
7213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7214 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7215 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 7216 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
7217 | else |
7218 | if test -n "$STRIP"; then | |
7219 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7220 | else | |
7221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7222 | for as_dir in $PATH | |
7223 | do | |
7224 | IFS=$as_save_IFS | |
7225 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7226 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7227 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 7228 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 7229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 7230 | break 2 |
ce2cded5 | 7231 | fi |
7357c5b6 | 7232 | done |
81ecdfbb RW |
7233 | done |
7234 | IFS=$as_save_IFS | |
d7040cdb | 7235 | |
7357c5b6 AM |
7236 | fi |
7237 | fi | |
7238 | STRIP=$ac_cv_prog_STRIP | |
7239 | if test -n "$STRIP"; then | |
81ecdfbb RW |
7240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
7241 | $as_echo "$STRIP" >&6; } | |
7357c5b6 | 7242 | else |
81ecdfbb RW |
7243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7244 | $as_echo "no" >&6; } | |
7357c5b6 AM |
7245 | fi |
7246 | ||
81ecdfbb | 7247 | |
7357c5b6 AM |
7248 | fi |
7249 | if test -z "$ac_cv_prog_STRIP"; then | |
7250 | ac_ct_STRIP=$STRIP | |
7251 | # Extract the first word of "strip", so it can be a program name with args. | |
7252 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
7253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7254 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7255 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
81ecdfbb | 7256 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
7257 | else |
7258 | if test -n "$ac_ct_STRIP"; then | |
7259 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7260 | else | |
7261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7262 | for as_dir in $PATH | |
7263 | do | |
7264 | IFS=$as_save_IFS | |
7265 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7266 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7267 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 7268 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 7269 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 7270 | break 2 |
ce2cded5 | 7271 | fi |
7357c5b6 | 7272 | done |
81ecdfbb RW |
7273 | done |
7274 | IFS=$as_save_IFS | |
d7040cdb | 7275 | |
7357c5b6 AM |
7276 | fi |
7277 | fi | |
7278 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
7279 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
7280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
7281 | $as_echo "$ac_ct_STRIP" >&6; } | |
20e95c23 | 7282 | else |
81ecdfbb RW |
7283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7284 | $as_echo "no" >&6; } | |
7357c5b6 | 7285 | fi |
d7040cdb | 7286 | |
81ecdfbb RW |
7287 | if test "x$ac_ct_STRIP" = x; then |
7288 | STRIP=":" | |
7289 | else | |
7290 | case $cross_compiling:$ac_tool_warned in | |
7291 | yes:) | |
7292 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7293 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7294 | ac_tool_warned=yes ;; | |
7295 | esac | |
7296 | STRIP=$ac_ct_STRIP | |
7297 | fi | |
7357c5b6 AM |
7298 | else |
7299 | STRIP="$ac_cv_prog_STRIP" | |
7300 | fi | |
d7040cdb | 7301 | |
7357c5b6 | 7302 | test -z "$STRIP" && STRIP=: |
d7040cdb | 7303 | |
d7040cdb SE |
7304 | |
7305 | ||
7306 | ||
d7040cdb | 7307 | |
7357c5b6 AM |
7308 | |
7309 | if test -n "$ac_tool_prefix"; then | |
7310 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7311 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
7312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7313 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7314 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 7315 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 7316 | else |
7357c5b6 AM |
7317 | if test -n "$RANLIB"; then |
7318 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7319 | else | |
7320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7321 | for as_dir in $PATH | |
ce2cded5 | 7322 | do |
7357c5b6 AM |
7323 | IFS=$as_save_IFS |
7324 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7325 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7326 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 7327 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 7328 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 7329 | break 2 |
ce2cded5 | 7330 | fi |
7357c5b6 | 7331 | done |
81ecdfbb RW |
7332 | done |
7333 | IFS=$as_save_IFS | |
7357c5b6 | 7334 | |
ce2cded5 | 7335 | fi |
7357c5b6 AM |
7336 | fi |
7337 | RANLIB=$ac_cv_prog_RANLIB | |
7338 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
7339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
7340 | $as_echo "$RANLIB" >&6; } | |
ce2cded5 | 7341 | else |
81ecdfbb RW |
7342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7343 | $as_echo "no" >&6; } | |
ce2cded5 | 7344 | fi |
d7040cdb | 7345 | |
81ecdfbb | 7346 | |
7357c5b6 AM |
7347 | fi |
7348 | if test -z "$ac_cv_prog_RANLIB"; then | |
7349 | ac_ct_RANLIB=$RANLIB | |
7350 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7351 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
7352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7353 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7354 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 7355 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 7356 | else |
7357c5b6 AM |
7357 | if test -n "$ac_ct_RANLIB"; then |
7358 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7359 | else | |
7360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7361 | for as_dir in $PATH | |
7362 | do | |
7363 | IFS=$as_save_IFS | |
7364 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7365 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7366 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7357c5b6 | 7367 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 7368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
7369 | break 2 |
7370 | fi | |
7371 | done | |
81ecdfbb RW |
7372 | done |
7373 | IFS=$as_save_IFS | |
7357c5b6 | 7374 | |
ce2cded5 | 7375 | fi |
7357c5b6 AM |
7376 | fi |
7377 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7378 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
7379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
7380 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ce2cded5 | 7381 | else |
81ecdfbb RW |
7382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7383 | $as_echo "no" >&6; } | |
ce2cded5 | 7384 | fi |
d7040cdb | 7385 | |
81ecdfbb RW |
7386 | if test "x$ac_ct_RANLIB" = x; then |
7387 | RANLIB=":" | |
7388 | else | |
7389 | case $cross_compiling:$ac_tool_warned in | |
7390 | yes:) | |
7391 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7392 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7393 | ac_tool_warned=yes ;; | |
7394 | esac | |
7395 | RANLIB=$ac_ct_RANLIB | |
7396 | fi | |
7357c5b6 AM |
7397 | else |
7398 | RANLIB="$ac_cv_prog_RANLIB" | |
ce2cded5 | 7399 | fi |
d7040cdb | 7400 | |
7357c5b6 | 7401 | test -z "$RANLIB" && RANLIB=: |
d7040cdb | 7402 | |
7357c5b6 AM |
7403 | |
7404 | ||
7405 | ||
7406 | ||
7407 | ||
7408 | # Determine commands to create old-style static archives. | |
b214d478 | 7409 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
7357c5b6 AM |
7410 | old_postinstall_cmds='chmod 644 $oldlib' |
7411 | old_postuninstall_cmds= | |
7412 | ||
7413 | if test -n "$RANLIB"; then | |
7414 | case $host_os in | |
7415 | openbsd*) | |
7416 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7417 | ;; | |
7418 | *) | |
7419 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7420 | ;; | |
7421 | esac | |
7422 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
ce2cded5 | 7423 | fi |
7357c5b6 | 7424 | |
3725885a RW |
7425 | case $host_os in |
7426 | darwin*) | |
7427 | lock_old_archive_extraction=yes ;; | |
7428 | *) | |
7429 | lock_old_archive_extraction=no ;; | |
7430 | esac | |
7431 | ||
7432 | ||
7433 | ||
7434 | ||
7435 | ||
7436 | ||
7357c5b6 AM |
7437 | |
7438 | ||
7439 | ||
7440 | ||
7441 | ||
7442 | ||
7443 | ||
7444 | ||
7445 | ||
7446 | ||
7447 | ||
7448 | ||
7449 | ||
7450 | ||
7451 | ||
7452 | ||
7453 | ||
7454 | ||
7455 | ||
7456 | ||
7457 | ||
7458 | ||
7459 | ||
7460 | ||
7461 | ||
7462 | ||
7463 | ||
7464 | ||
7465 | ||
7466 | ||
7467 | ||
7468 | ||
7469 | ||
7470 | # If no C compiler was specified, use CC. | |
7471 | LTCC=${LTCC-"$CC"} | |
7472 | ||
7473 | # If no C compiler flags were specified, use CFLAGS. | |
7474 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7475 | ||
7476 | # Allow CC to be a program name with arguments. | |
7477 | compiler=$CC | |
7478 | ||
7479 | ||
7480 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
81ecdfbb RW |
7481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
7482 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
d0ac1c44 | 7483 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
81ecdfbb | 7484 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 7485 | else |
d7040cdb | 7486 | |
7357c5b6 AM |
7487 | # These are sane defaults that work on at least a few old systems. |
7488 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d7040cdb | 7489 | |
7357c5b6 AM |
7490 | # Character class describing NM global symbol codes. |
7491 | symcode='[BCDEGRST]' | |
7492 | ||
7493 | # Regexp to match symbols that can be accessed directly from C. | |
7494 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7495 | ||
7496 | # Define system-specific variables. | |
7497 | case $host_os in | |
7498 | aix*) | |
7499 | symcode='[BCDT]' | |
7500 | ;; | |
b214d478 | 7501 | cygwin* | mingw* | pw32* | cegcc*) |
7357c5b6 AM |
7502 | symcode='[ABCDGISTW]' |
7503 | ;; | |
7504 | hpux*) | |
7505 | if test "$host_cpu" = ia64; then | |
7506 | symcode='[ABCDEGRST]' | |
ce2cded5 | 7507 | fi |
7357c5b6 AM |
7508 | ;; |
7509 | irix* | nonstopux*) | |
7510 | symcode='[BCDEGRST]' | |
7511 | ;; | |
7512 | osf*) | |
7513 | symcode='[BCDEGQRST]' | |
7514 | ;; | |
7515 | solaris*) | |
7516 | symcode='[BDRT]' | |
7517 | ;; | |
7518 | sco3.2v5*) | |
7519 | symcode='[DT]' | |
7520 | ;; | |
7521 | sysv4.2uw2*) | |
7522 | symcode='[DT]' | |
7523 | ;; | |
7524 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7525 | symcode='[ABDT]' | |
7526 | ;; | |
7527 | sysv4) | |
7528 | symcode='[DFNSTU]' | |
7529 | ;; | |
7530 | esac | |
d7040cdb | 7531 | |
7357c5b6 AM |
7532 | # If we're using GNU nm, then use its standard symbol codes. |
7533 | case `$NM -V 2>&1` in | |
7534 | *GNU* | *'with BFD'*) | |
7535 | symcode='[ABCDGIRSTW]' ;; | |
7536 | esac | |
d7040cdb | 7537 | |
7357c5b6 AM |
7538 | # Transform an extracted symbol line into a proper C declaration. |
7539 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7540 | # so use this general approach. | |
7541 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7542 | ||
7543 | # Transform an extracted symbol line into symbol name and symbol address | |
7544 | 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 | 7545 | 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 |
7546 | |
7547 | # Handle CRLF in mingw tool chain | |
7548 | opt_cr= | |
7549 | case $build_os in | |
7550 | mingw*) | |
7551 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7552 | ;; | |
7553 | esac | |
d7040cdb | 7554 | |
7357c5b6 AM |
7555 | # Try without a prefix underscore, then with it. |
7556 | for ac_symprfx in "" "_"; do | |
d7040cdb | 7557 | |
7357c5b6 AM |
7558 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7559 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 7560 | |
7357c5b6 AM |
7561 | # Write the raw and C identifiers. |
7562 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7563 | # Fake it for dumpbin and say T for any non-static function | |
7564 | # and D for any global variable. | |
7565 | # Also find C++ and __fastcall symbols from MSVC++, | |
7566 | # which start with @ or ?. | |
7567 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7568 | " {last_section=section; section=\$ 3};"\ | |
7569 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7570 | " \$ 0!~/External *\|/{next};"\ | |
7571 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7572 | " {if(hide[section]) next};"\ | |
7573 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7574 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7575 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7576 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7577 | " ' prfx=^$ac_symprfx" | |
7578 | else | |
7579 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7580 | fi | |
d7040cdb | 7581 | |
7357c5b6 AM |
7582 | # Check to see that the pipe works correctly. |
7583 | pipe_works=no | |
d7040cdb | 7584 | |
7357c5b6 AM |
7585 | rm -f conftest* |
7586 | cat > conftest.$ac_ext <<_LT_EOF | |
7587 | #ifdef __cplusplus | |
7588 | extern "C" { | |
7589 | #endif | |
7590 | char nm_test_var; | |
7591 | void nm_test_func(void); | |
7592 | void nm_test_func(void){} | |
7593 | #ifdef __cplusplus | |
20e95c23 | 7594 | } |
7357c5b6 AM |
7595 | #endif |
7596 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7597 | _LT_EOF | |
7598 | ||
81ecdfbb | 7599 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 7600 | (eval $ac_compile) 2>&5 |
20e95c23 | 7601 | ac_status=$? |
81ecdfbb RW |
7602 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7603 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7604 | # Now try to grab the symbols. |
7605 | nlist=conftest.nm | |
3725885a RW |
7606 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
7607 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
20e95c23 | 7608 | ac_status=$? |
81ecdfbb RW |
7609 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7610 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
7611 | # Try sorting and uniquifying the output. |
7612 | if sort "$nlist" | uniq > "$nlist"T; then | |
7613 | mv -f "$nlist"T "$nlist" | |
7614 | else | |
7615 | rm -f "$nlist"T | |
7616 | fi | |
d7040cdb | 7617 | |
7357c5b6 AM |
7618 | # Make sure that we snagged all the symbols we need. |
7619 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7620 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7621 | cat <<_LT_EOF > conftest.$ac_ext | |
7622 | #ifdef __cplusplus | |
7623 | extern "C" { | |
7624 | #endif | |
ce2cded5 | 7625 | |
7357c5b6 AM |
7626 | _LT_EOF |
7627 | # Now generate the symbol file. | |
7628 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
ce2cded5 | 7629 | |
7357c5b6 | 7630 | cat <<_LT_EOF >> conftest.$ac_ext |
42ecbf5e | 7631 | |
7357c5b6 AM |
7632 | /* The mapping between symbol names and symbols. */ |
7633 | const struct { | |
7634 | const char *name; | |
7635 | void *address; | |
7636 | } | |
7637 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7638 | { | |
7639 | { "@PROGRAM@", (void *) 0 }, | |
7640 | _LT_EOF | |
7641 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7642 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7643 | {0, (void *) 0} | |
7644 | }; | |
d7040cdb | 7645 | |
7357c5b6 AM |
7646 | /* This works around a problem in FreeBSD linker */ |
7647 | #ifdef FREEBSD_WORKAROUND | |
7648 | static const void *lt_preloaded_setup() { | |
7649 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7650 | } | |
ce2cded5 | 7651 | #endif |
42ecbf5e | 7652 | |
7357c5b6 | 7653 | #ifdef __cplusplus |
ce2cded5 | 7654 | } |
7357c5b6 AM |
7655 | #endif |
7656 | _LT_EOF | |
7657 | # Now try linking the two files. | |
7658 | mv conftest.$ac_objext conftstm.$ac_objext | |
7659 | lt_save_LIBS="$LIBS" | |
7660 | lt_save_CFLAGS="$CFLAGS" | |
7661 | LIBS="conftstm.$ac_objext" | |
7662 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 7663 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
7664 | (eval $ac_link) 2>&5 |
7665 | ac_status=$? | |
81ecdfbb RW |
7666 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7667 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
7668 | pipe_works=yes |
7669 | fi | |
7670 | LIBS="$lt_save_LIBS" | |
7671 | CFLAGS="$lt_save_CFLAGS" | |
7672 | else | |
7673 | echo "cannot find nm_test_func in $nlist" >&5 | |
7674 | fi | |
7675 | else | |
7676 | echo "cannot find nm_test_var in $nlist" >&5 | |
7677 | fi | |
7678 | else | |
7679 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7680 | fi | |
7681 | else | |
7682 | echo "$progname: failed program was:" >&5 | |
7683 | cat conftest.$ac_ext >&5 | |
7684 | fi | |
b214d478 | 7685 | rm -rf conftest* conftst* |
7357c5b6 AM |
7686 | |
7687 | # Do not use the global_symbol_pipe unless it works. | |
7688 | if test "$pipe_works" = yes; then | |
7689 | break | |
7690 | else | |
7691 | lt_cv_sys_global_symbol_pipe= | |
7692 | fi | |
7693 | done | |
42ecbf5e | 7694 | |
ce2cded5 | 7695 | fi |
7357c5b6 AM |
7696 | |
7697 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7698 | lt_cv_sys_global_symbol_to_cdecl= | |
ce2cded5 | 7699 | fi |
7357c5b6 | 7700 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
7701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
7702 | $as_echo "failed" >&6; } | |
7357c5b6 | 7703 | else |
81ecdfbb RW |
7704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7705 | $as_echo "ok" >&6; } | |
ce2cded5 | 7706 | fi |
e5a52504 | 7707 | |
d7040cdb | 7708 | |
e5a52504 | 7709 | |
d7040cdb | 7710 | |
d7040cdb | 7711 | |
d7040cdb | 7712 | |
d7040cdb | 7713 | |
d7040cdb | 7714 | |
d7040cdb | 7715 | |
d7040cdb | 7716 | |
d7040cdb | 7717 | |
d7040cdb | 7718 | |
7357c5b6 AM |
7719 | |
7720 | ||
7721 | ||
b214d478 SE |
7722 | |
7723 | ||
7724 | ||
7725 | ||
7726 | ||
7357c5b6 AM |
7727 | |
7728 | ||
81ecdfbb RW |
7729 | # Check whether --enable-libtool-lock was given. |
7730 | if test "${enable_libtool_lock+set}" = set; then : | |
7731 | enableval=$enable_libtool_lock; | |
7732 | fi | |
7357c5b6 | 7733 | |
7357c5b6 AM |
7734 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7735 | ||
7736 | # Some flags need to be propagated to the compiler or linker for good | |
7737 | # libtool support. | |
7738 | case $host in | |
7739 | ia64-*-hpux*) | |
7740 | # Find out which ABI we are using. | |
7741 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7742 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7743 | (eval $ac_compile) 2>&5 |
7744 | ac_status=$? | |
81ecdfbb RW |
7745 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7746 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7747 | case `/usr/bin/file conftest.$ac_objext` in |
7748 | *ELF-32*) | |
7749 | HPUX_IA64_MODE="32" | |
7750 | ;; | |
7751 | *ELF-64*) | |
7752 | HPUX_IA64_MODE="64" | |
7753 | ;; | |
7754 | esac | |
7755 | fi | |
7756 | rm -rf conftest* | |
7757 | ;; | |
7758 | *-*-irix6*) | |
7759 | # Find out which ABI we are using. | |
3725885a | 7760 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
81ecdfbb | 7761 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7762 | (eval $ac_compile) 2>&5 |
7763 | ac_status=$? | |
81ecdfbb RW |
7764 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7765 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7766 | if test "$lt_cv_prog_gnu_ld" = yes; then |
7767 | case `/usr/bin/file conftest.$ac_objext` in | |
7768 | *32-bit*) | |
7769 | LD="${LD-ld} -melf32bsmip" | |
7770 | ;; | |
7771 | *N32*) | |
7772 | LD="${LD-ld} -melf32bmipn32" | |
7773 | ;; | |
7774 | *64-bit*) | |
7775 | LD="${LD-ld} -melf64bmip" | |
7776 | ;; | |
7777 | esac | |
7778 | else | |
7779 | case `/usr/bin/file conftest.$ac_objext` in | |
7780 | *32-bit*) | |
7781 | LD="${LD-ld} -32" | |
7782 | ;; | |
7783 | *N32*) | |
7784 | LD="${LD-ld} -n32" | |
7785 | ;; | |
7786 | *64-bit*) | |
7787 | LD="${LD-ld} -64" | |
7788 | ;; | |
7789 | esac | |
7790 | fi | |
7791 | fi | |
7792 | rm -rf conftest* | |
7793 | ;; | |
7794 | ||
cc9afea3 | 7795 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7357c5b6 AM |
7796 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
7797 | # Find out which ABI we are using. | |
7798 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7799 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7800 | (eval $ac_compile) 2>&5 |
7801 | ac_status=$? | |
81ecdfbb RW |
7802 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7803 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7804 | case `/usr/bin/file conftest.o` in |
7805 | *32-bit*) | |
7806 | case $host in | |
7807 | x86_64-*kfreebsd*-gnu) | |
7808 | LD="${LD-ld} -m elf_i386_fbsd" | |
7809 | ;; | |
7810 | x86_64-*linux*) | |
6d2920c8 L |
7811 | case `/usr/bin/file conftest.o` in |
7812 | *x86-64*) | |
7813 | LD="${LD-ld} -m elf32_x86_64" | |
7814 | ;; | |
7815 | *) | |
7816 | LD="${LD-ld} -m elf_i386" | |
7817 | ;; | |
7818 | esac | |
7357c5b6 | 7819 | ;; |
cc9afea3 AM |
7820 | powerpc64le-*linux*) |
7821 | LD="${LD-ld} -m elf32lppclinux" | |
7822 | ;; | |
7823 | powerpc64-*linux*) | |
7357c5b6 AM |
7824 | LD="${LD-ld} -m elf32ppclinux" |
7825 | ;; | |
7826 | s390x-*linux*) | |
7827 | LD="${LD-ld} -m elf_s390" | |
7828 | ;; | |
7829 | sparc64-*linux*) | |
7830 | LD="${LD-ld} -m elf32_sparc" | |
7831 | ;; | |
7832 | esac | |
7833 | ;; | |
7834 | *64-bit*) | |
7835 | case $host in | |
7836 | x86_64-*kfreebsd*-gnu) | |
7837 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7838 | ;; | |
7839 | x86_64-*linux*) | |
7840 | LD="${LD-ld} -m elf_x86_64" | |
7841 | ;; | |
cc9afea3 AM |
7842 | powerpcle-*linux*) |
7843 | LD="${LD-ld} -m elf64lppc" | |
7844 | ;; | |
7845 | powerpc-*linux*) | |
7357c5b6 AM |
7846 | LD="${LD-ld} -m elf64ppc" |
7847 | ;; | |
7848 | s390*-*linux*|s390*-*tpf*) | |
7849 | LD="${LD-ld} -m elf64_s390" | |
7850 | ;; | |
7851 | sparc*-*linux*) | |
7852 | LD="${LD-ld} -m elf64_sparc" | |
7853 | ;; | |
7854 | esac | |
7855 | ;; | |
7856 | esac | |
7857 | fi | |
7858 | rm -rf conftest* | |
7859 | ;; | |
7860 | ||
7861 | *-*-sco3.2v5*) | |
7862 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7863 | SAVE_CFLAGS="$CFLAGS" | |
7864 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
7865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
7866 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
d0ac1c44 | 7867 | if ${lt_cv_cc_needs_belf+:} false; then : |
81ecdfbb | 7868 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 7869 | else |
7357c5b6 AM |
7870 | ac_ext=c |
7871 | ac_cpp='$CPP $CPPFLAGS' | |
7872 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7873 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7874 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7875 | ||
81ecdfbb | 7876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 7877 | /* end confdefs.h. */ |
d7040cdb | 7878 | |
7357c5b6 AM |
7879 | int |
7880 | main () | |
7881 | { | |
7882 | ||
7883 | ; | |
7884 | return 0; | |
7885 | } | |
ce2cded5 | 7886 | _ACEOF |
81ecdfbb | 7887 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 7888 | lt_cv_cc_needs_belf=yes |
ce2cded5 | 7889 | else |
81ecdfbb | 7890 | lt_cv_cc_needs_belf=no |
ce2cded5 | 7891 | fi |
81ecdfbb RW |
7892 | rm -f core conftest.err conftest.$ac_objext \ |
7893 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
7894 | ac_ext=c |
7895 | ac_cpp='$CPP $CPPFLAGS' | |
7896 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7897 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7898 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 7899 | |
b214d478 | 7900 | fi |
81ecdfbb RW |
7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
7902 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
b214d478 SE |
7903 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
7904 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7905 | CFLAGS="$SAVE_CFLAGS" | |
7906 | fi | |
7907 | ;; | |
7908 | sparc*-*solaris*) | |
7909 | # Find out which ABI we are using. | |
7910 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7911 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
b214d478 SE |
7912 | (eval $ac_compile) 2>&5 |
7913 | ac_status=$? | |
81ecdfbb RW |
7914 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7915 | test $ac_status = 0; }; then | |
b214d478 SE |
7916 | case `/usr/bin/file conftest.o` in |
7917 | *64-bit*) | |
7918 | case $lt_cv_prog_gnu_ld in | |
7919 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7920 | *) | |
7921 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7922 | LD="${LD-ld} -64" | |
7923 | fi | |
7924 | ;; | |
7925 | esac | |
7926 | ;; | |
7927 | esac | |
7928 | fi | |
7929 | rm -rf conftest* | |
7930 | ;; | |
7931 | esac | |
7932 | ||
7933 | need_locks="$enable_libtool_lock" | |
7934 | ||
7935 | ||
7936 | case $host_os in | |
7937 | rhapsody* | darwin*) | |
7938 | if test -n "$ac_tool_prefix"; then | |
7939 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7940 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7942 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7943 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
81ecdfbb | 7944 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
7945 | else |
7946 | if test -n "$DSYMUTIL"; then | |
7947 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7948 | else | |
7949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7950 | for as_dir in $PATH | |
7951 | do | |
7952 | IFS=$as_save_IFS | |
7953 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7954 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 7956 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 7957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7958 | break 2 |
7959 | fi | |
7960 | done | |
81ecdfbb RW |
7961 | done |
7962 | IFS=$as_save_IFS | |
b214d478 SE |
7963 | |
7964 | fi | |
7965 | fi | |
7966 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7967 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
7968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7969 | $as_echo "$DSYMUTIL" >&6; } | |
b214d478 | 7970 | else |
81ecdfbb RW |
7971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7972 | $as_echo "no" >&6; } | |
b214d478 SE |
7973 | fi |
7974 | ||
81ecdfbb | 7975 | |
b214d478 SE |
7976 | fi |
7977 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7978 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7979 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7980 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7982 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7983 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
81ecdfbb | 7984 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
7985 | else |
7986 | if test -n "$ac_ct_DSYMUTIL"; then | |
7987 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7988 | else | |
7989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7990 | for as_dir in $PATH | |
7991 | do | |
7992 | IFS=$as_save_IFS | |
7993 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7994 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7995 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 7996 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 7997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7998 | break 2 |
7999 | fi | |
8000 | done | |
81ecdfbb RW |
8001 | done |
8002 | IFS=$as_save_IFS | |
b214d478 | 8003 | |
b214d478 SE |
8004 | fi |
8005 | fi | |
8006 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
8007 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
8009 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
b214d478 | 8010 | else |
81ecdfbb RW |
8011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8012 | $as_echo "no" >&6; } | |
b214d478 SE |
8013 | fi |
8014 | ||
81ecdfbb RW |
8015 | if test "x$ac_ct_DSYMUTIL" = x; then |
8016 | DSYMUTIL=":" | |
8017 | else | |
8018 | case $cross_compiling:$ac_tool_warned in | |
8019 | yes:) | |
8020 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8021 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8022 | ac_tool_warned=yes ;; | |
8023 | esac | |
8024 | DSYMUTIL=$ac_ct_DSYMUTIL | |
8025 | fi | |
b214d478 SE |
8026 | else |
8027 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
8028 | fi | |
8029 | ||
8030 | if test -n "$ac_tool_prefix"; then | |
8031 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
8032 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8034 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8035 | if ${ac_cv_prog_NMEDIT+:} false; then : |
81ecdfbb | 8036 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
8037 | else |
8038 | if test -n "$NMEDIT"; then | |
8039 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
8040 | else | |
8041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8042 | for as_dir in $PATH | |
8043 | do | |
8044 | IFS=$as_save_IFS | |
8045 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8046 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8047 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 8048 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 8049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8050 | break 2 |
8051 | fi | |
8052 | done | |
81ecdfbb RW |
8053 | done |
8054 | IFS=$as_save_IFS | |
b214d478 SE |
8055 | |
8056 | fi | |
8057 | fi | |
8058 | NMEDIT=$ac_cv_prog_NMEDIT | |
8059 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
8060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
8061 | $as_echo "$NMEDIT" >&6; } | |
b214d478 | 8062 | else |
81ecdfbb RW |
8063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8064 | $as_echo "no" >&6; } | |
b214d478 SE |
8065 | fi |
8066 | ||
81ecdfbb | 8067 | |
b214d478 SE |
8068 | fi |
8069 | if test -z "$ac_cv_prog_NMEDIT"; then | |
8070 | ac_ct_NMEDIT=$NMEDIT | |
8071 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8072 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
8073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8074 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8075 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
81ecdfbb | 8076 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
8077 | else |
8078 | if test -n "$ac_ct_NMEDIT"; then | |
8079 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
8080 | else | |
8081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8082 | for as_dir in $PATH | |
8083 | do | |
8084 | IFS=$as_save_IFS | |
8085 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8086 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8087 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 8088 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 8089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8090 | break 2 |
8091 | fi | |
8092 | done | |
81ecdfbb RW |
8093 | done |
8094 | IFS=$as_save_IFS | |
b214d478 | 8095 | |
b214d478 SE |
8096 | fi |
8097 | fi | |
8098 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
8099 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
8100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
8101 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
b214d478 | 8102 | else |
81ecdfbb RW |
8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8104 | $as_echo "no" >&6; } | |
b214d478 SE |
8105 | fi |
8106 | ||
81ecdfbb RW |
8107 | if test "x$ac_ct_NMEDIT" = x; then |
8108 | NMEDIT=":" | |
8109 | else | |
8110 | case $cross_compiling:$ac_tool_warned in | |
8111 | yes:) | |
8112 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8113 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8114 | ac_tool_warned=yes ;; | |
8115 | esac | |
8116 | NMEDIT=$ac_ct_NMEDIT | |
8117 | fi | |
b214d478 SE |
8118 | else |
8119 | NMEDIT="$ac_cv_prog_NMEDIT" | |
8120 | fi | |
8121 | ||
8122 | if test -n "$ac_tool_prefix"; then | |
8123 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
8124 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
8125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8126 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8127 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8128 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
8129 | else |
8130 | if test -n "$LIPO"; then | |
8131 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8132 | else | |
8133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8134 | for as_dir in $PATH | |
8135 | do | |
8136 | IFS=$as_save_IFS | |
8137 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8138 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8139 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 8140 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 8141 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8142 | break 2 |
8143 | fi | |
8144 | done | |
81ecdfbb RW |
8145 | done |
8146 | IFS=$as_save_IFS | |
b214d478 SE |
8147 | |
8148 | fi | |
8149 | fi | |
8150 | LIPO=$ac_cv_prog_LIPO | |
8151 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8153 | $as_echo "$LIPO" >&6; } | |
b214d478 | 8154 | else |
81ecdfbb RW |
8155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8156 | $as_echo "no" >&6; } | |
b214d478 SE |
8157 | fi |
8158 | ||
81ecdfbb | 8159 | |
b214d478 SE |
8160 | fi |
8161 | if test -z "$ac_cv_prog_LIPO"; then | |
8162 | ac_ct_LIPO=$LIPO | |
8163 | # Extract the first word of "lipo", so it can be a program name with args. | |
8164 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
8165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8166 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8167 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
81ecdfbb | 8168 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
8169 | else |
8170 | if test -n "$ac_ct_LIPO"; then | |
8171 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8172 | else | |
8173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8174 | for as_dir in $PATH | |
8175 | do | |
8176 | IFS=$as_save_IFS | |
8177 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8178 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8179 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 8180 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 8181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8182 | break 2 |
8183 | fi | |
8184 | done | |
81ecdfbb RW |
8185 | done |
8186 | IFS=$as_save_IFS | |
b214d478 | 8187 | |
b214d478 SE |
8188 | fi |
8189 | fi | |
8190 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8191 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
8192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
8193 | $as_echo "$ac_ct_LIPO" >&6; } | |
b214d478 | 8194 | else |
81ecdfbb RW |
8195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8196 | $as_echo "no" >&6; } | |
b214d478 SE |
8197 | fi |
8198 | ||
81ecdfbb RW |
8199 | if test "x$ac_ct_LIPO" = x; then |
8200 | LIPO=":" | |
8201 | else | |
8202 | case $cross_compiling:$ac_tool_warned in | |
8203 | yes:) | |
8204 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8205 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8206 | ac_tool_warned=yes ;; | |
8207 | esac | |
8208 | LIPO=$ac_ct_LIPO | |
8209 | fi | |
b214d478 SE |
8210 | else |
8211 | LIPO="$ac_cv_prog_LIPO" | |
8212 | fi | |
8213 | ||
8214 | if test -n "$ac_tool_prefix"; then | |
8215 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8216 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8218 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8219 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 8220 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
8221 | else |
8222 | if test -n "$OTOOL"; then | |
8223 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8224 | else | |
8225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8226 | for as_dir in $PATH | |
8227 | do | |
8228 | IFS=$as_save_IFS | |
8229 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8230 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8231 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 8232 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 8233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8234 | break 2 |
8235 | fi | |
8236 | done | |
81ecdfbb RW |
8237 | done |
8238 | IFS=$as_save_IFS | |
b214d478 SE |
8239 | |
8240 | fi | |
8241 | fi | |
8242 | OTOOL=$ac_cv_prog_OTOOL | |
8243 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
8245 | $as_echo "$OTOOL" >&6; } | |
b214d478 | 8246 | else |
81ecdfbb RW |
8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8248 | $as_echo "no" >&6; } | |
b214d478 SE |
8249 | fi |
8250 | ||
81ecdfbb | 8251 | |
b214d478 SE |
8252 | fi |
8253 | if test -z "$ac_cv_prog_OTOOL"; then | |
8254 | ac_ct_OTOOL=$OTOOL | |
8255 | # Extract the first word of "otool", so it can be a program name with args. | |
8256 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
8257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8258 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8259 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
81ecdfbb | 8260 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
8261 | else |
8262 | if test -n "$ac_ct_OTOOL"; then | |
8263 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8264 | else | |
8265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8266 | for as_dir in $PATH | |
8267 | do | |
8268 | IFS=$as_save_IFS | |
8269 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8270 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8271 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 8272 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 8273 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8274 | break 2 |
8275 | fi | |
8276 | done | |
81ecdfbb RW |
8277 | done |
8278 | IFS=$as_save_IFS | |
b214d478 | 8279 | |
b214d478 SE |
8280 | fi |
8281 | fi | |
8282 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8283 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
8284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
8285 | $as_echo "$ac_ct_OTOOL" >&6; } | |
b214d478 | 8286 | else |
81ecdfbb RW |
8287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8288 | $as_echo "no" >&6; } | |
b214d478 SE |
8289 | fi |
8290 | ||
81ecdfbb RW |
8291 | if test "x$ac_ct_OTOOL" = x; then |
8292 | OTOOL=":" | |
8293 | else | |
8294 | case $cross_compiling:$ac_tool_warned in | |
8295 | yes:) | |
8296 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8297 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8298 | ac_tool_warned=yes ;; | |
8299 | esac | |
8300 | OTOOL=$ac_ct_OTOOL | |
8301 | fi | |
b214d478 SE |
8302 | else |
8303 | OTOOL="$ac_cv_prog_OTOOL" | |
8304 | fi | |
8305 | ||
8306 | if test -n "$ac_tool_prefix"; then | |
8307 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8308 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
8309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8310 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8311 | if ${ac_cv_prog_OTOOL64+:} false; then : |
81ecdfbb | 8312 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
8313 | else |
8314 | if test -n "$OTOOL64"; then | |
8315 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8316 | else | |
8317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8318 | for as_dir in $PATH | |
8319 | do | |
8320 | IFS=$as_save_IFS | |
8321 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8322 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8323 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 8324 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 8325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8326 | break 2 |
8327 | fi | |
8328 | done | |
81ecdfbb RW |
8329 | done |
8330 | IFS=$as_save_IFS | |
b214d478 SE |
8331 | |
8332 | fi | |
8333 | fi | |
8334 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8335 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
8336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
8337 | $as_echo "$OTOOL64" >&6; } | |
b214d478 | 8338 | else |
81ecdfbb RW |
8339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8340 | $as_echo "no" >&6; } | |
b214d478 SE |
8341 | fi |
8342 | ||
81ecdfbb | 8343 | |
b214d478 SE |
8344 | fi |
8345 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8346 | ac_ct_OTOOL64=$OTOOL64 | |
8347 | # Extract the first word of "otool64", so it can be a program name with args. | |
8348 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
8349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8350 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8351 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
81ecdfbb | 8352 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
8353 | else |
8354 | if test -n "$ac_ct_OTOOL64"; then | |
8355 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8356 | else | |
8357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8358 | for as_dir in $PATH | |
8359 | do | |
8360 | IFS=$as_save_IFS | |
8361 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8362 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8363 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b214d478 | 8364 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 8365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8366 | break 2 |
8367 | fi | |
8368 | done | |
81ecdfbb RW |
8369 | done |
8370 | IFS=$as_save_IFS | |
b214d478 | 8371 | |
b214d478 SE |
8372 | fi |
8373 | fi | |
8374 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8375 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
8376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
8377 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
b214d478 | 8378 | else |
81ecdfbb RW |
8379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8380 | $as_echo "no" >&6; } | |
b214d478 SE |
8381 | fi |
8382 | ||
81ecdfbb RW |
8383 | if test "x$ac_ct_OTOOL64" = x; then |
8384 | OTOOL64=":" | |
8385 | else | |
8386 | case $cross_compiling:$ac_tool_warned in | |
8387 | yes:) | |
8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8389 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8390 | ac_tool_warned=yes ;; | |
8391 | esac | |
8392 | OTOOL64=$ac_ct_OTOOL64 | |
8393 | fi | |
b214d478 SE |
8394 | else |
8395 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8396 | fi | |
8397 | ||
8398 | ||
8399 | ||
8400 | ||
8401 | ||
8402 | ||
8403 | ||
8404 | ||
8405 | ||
8406 | ||
8407 | ||
8408 | ||
8409 | ||
8410 | ||
8411 | ||
8412 | ||
8413 | ||
8414 | ||
8415 | ||
8416 | ||
8417 | ||
8418 | ||
8419 | ||
8420 | ||
8421 | ||
8422 | ||
8423 | ||
81ecdfbb RW |
8424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8425 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
d0ac1c44 | 8426 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
81ecdfbb | 8427 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
8428 | else |
8429 | lt_cv_apple_cc_single_mod=no | |
8430 | if test -z "${LT_MULTI_MODULE}"; then | |
8431 | # By default we will add the -single_module flag. You can override | |
8432 | # by either setting the environment variable LT_MULTI_MODULE | |
8433 | # non-empty at configure time, or by adding -multi_module to the | |
8434 | # link flags. | |
8435 | rm -rf libconftest.dylib* | |
8436 | echo "int foo(void){return 1;}" > conftest.c | |
8437 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8438 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8439 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8440 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8441 | _lt_result=$? | |
8442 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8443 | lt_cv_apple_cc_single_mod=yes | |
8444 | else | |
8445 | cat conftest.err >&5 | |
8446 | fi | |
8447 | rm -rf libconftest.dylib* | |
8448 | rm -f conftest.* | |
8449 | fi | |
8450 | fi | |
81ecdfbb RW |
8451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8452 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8454 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
d0ac1c44 | 8455 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
81ecdfbb | 8456 | $as_echo_n "(cached) " >&6 |
b214d478 SE |
8457 | else |
8458 | lt_cv_ld_exported_symbols_list=no | |
8459 | save_LDFLAGS=$LDFLAGS | |
8460 | echo "_main" > conftest.sym | |
8461 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 8462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b214d478 SE |
8463 | /* end confdefs.h. */ |
8464 | ||
8465 | int | |
8466 | main () | |
8467 | { | |
8468 | ||
8469 | ; | |
8470 | return 0; | |
8471 | } | |
8472 | _ACEOF | |
81ecdfbb | 8473 | if ac_fn_c_try_link "$LINENO"; then : |
b214d478 SE |
8474 | lt_cv_ld_exported_symbols_list=yes |
8475 | else | |
81ecdfbb | 8476 | lt_cv_ld_exported_symbols_list=no |
b214d478 | 8477 | fi |
81ecdfbb RW |
8478 | rm -f core conftest.err conftest.$ac_objext \ |
8479 | conftest$ac_exeext conftest.$ac_ext | |
b214d478 SE |
8480 | LDFLAGS="$save_LDFLAGS" |
8481 | ||
8482 | fi | |
81ecdfbb RW |
8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8484 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
3725885a RW |
8485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8486 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
d0ac1c44 | 8487 | if ${lt_cv_ld_force_load+:} false; then : |
3725885a RW |
8488 | $as_echo_n "(cached) " >&6 |
8489 | else | |
8490 | lt_cv_ld_force_load=no | |
8491 | cat > conftest.c << _LT_EOF | |
8492 | int forced_loaded() { return 2;} | |
8493 | _LT_EOF | |
8494 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8495 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8496 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8497 | $AR cru libconftest.a conftest.o 2>&5 | |
8498 | cat > conftest.c << _LT_EOF | |
8499 | int main() { return 0;} | |
8500 | _LT_EOF | |
8501 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8502 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8503 | _lt_result=$? | |
8504 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8505 | lt_cv_ld_force_load=yes | |
8506 | else | |
8507 | cat conftest.err >&5 | |
8508 | fi | |
8509 | rm -f conftest.err libconftest.a conftest conftest.c | |
8510 | rm -rf conftest.dSYM | |
8511 | ||
8512 | fi | |
8513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8514 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
b214d478 SE |
8515 | case $host_os in |
8516 | rhapsody* | darwin1.[012]) | |
8517 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8518 | darwin1.*) | |
8519 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8520 | darwin*) # darwin 5.x on | |
8521 | # if running on 10.5 or later, the deployment target defaults | |
8522 | # to the OS version, if on x86, and 10.4, the deployment | |
8523 | # target defaults to 10.4. Don't you love it? | |
8524 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8525 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8526 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6e733cce | 8527 | 10.[012][,.]*) |
b214d478 SE |
8528 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
8529 | 10.*) | |
8530 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8531 | esac | |
8532 | ;; | |
8533 | esac | |
8534 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8535 | _lt_dar_single_mod='$single_module' | |
8536 | fi | |
8537 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8538 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8539 | else | |
8540 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8541 | fi | |
3725885a | 8542 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
b214d478 SE |
8543 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
8544 | else | |
8545 | _lt_dsymutil= | |
8546 | fi | |
8547 | ;; | |
8548 | esac | |
8549 | ||
b214d478 | 8550 | for ac_header in dlfcn.h |
81ecdfbb RW |
8551 | do : |
8552 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8553 | " | |
d0ac1c44 | 8554 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
b214d478 | 8555 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 8556 | #define HAVE_DLFCN_H 1 |
b214d478 SE |
8557 | _ACEOF |
8558 | ||
8559 | fi | |
8560 | ||
8561 | done | |
8562 | ||
8563 | ||
8564 | ||
3725885a RW |
8565 | |
8566 | ||
3cb62297 | 8567 | |
b214d478 SE |
8568 | # Set options |
8569 | ||
8570 | ||
8571 | ||
8572 | enable_dlopen=no | |
8573 | ||
8574 | ||
8575 | enable_win32_dll=no | |
8576 | ||
8577 | ||
81ecdfbb RW |
8578 | # Check whether --enable-shared was given. |
8579 | if test "${enable_shared+set}" = set; then : | |
8580 | enableval=$enable_shared; p=${PACKAGE-default} | |
b214d478 SE |
8581 | case $enableval in |
8582 | yes) enable_shared=yes ;; | |
8583 | no) enable_shared=no ;; | |
8584 | *) | |
8585 | enable_shared=no | |
8586 | # Look at the argument we got. We use all the common list separators. | |
8587 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8588 | for pkg in $enableval; do | |
8589 | IFS="$lt_save_ifs" | |
8590 | if test "X$pkg" = "X$p"; then | |
8591 | enable_shared=yes | |
8592 | fi | |
8593 | done | |
8594 | IFS="$lt_save_ifs" | |
8595 | ;; | |
8596 | esac | |
8597 | else | |
8598 | enable_shared=yes | |
81ecdfbb | 8599 | fi |
b214d478 SE |
8600 | |
8601 | ||
8602 | ||
8603 | ||
8604 | ||
8605 | ||
8606 | ||
8607 | ||
81ecdfbb RW |
8608 | |
8609 | # Check whether --enable-static was given. | |
8610 | if test "${enable_static+set}" = set; then : | |
8611 | enableval=$enable_static; p=${PACKAGE-default} | |
b214d478 SE |
8612 | case $enableval in |
8613 | yes) enable_static=yes ;; | |
8614 | no) enable_static=no ;; | |
8615 | *) | |
8616 | enable_static=no | |
8617 | # Look at the argument we got. We use all the common list separators. | |
8618 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8619 | for pkg in $enableval; do | |
8620 | IFS="$lt_save_ifs" | |
8621 | if test "X$pkg" = "X$p"; then | |
8622 | enable_static=yes | |
8623 | fi | |
8624 | done | |
8625 | IFS="$lt_save_ifs" | |
8626 | ;; | |
8627 | esac | |
8628 | else | |
8629 | enable_static=yes | |
81ecdfbb | 8630 | fi |
b214d478 SE |
8631 | |
8632 | ||
8633 | ||
8634 | ||
8635 | ||
8636 | ||
8637 | ||
8638 | ||
8639 | ||
81ecdfbb RW |
8640 | |
8641 | # Check whether --with-pic was given. | |
8642 | if test "${with_pic+set}" = set; then : | |
8643 | withval=$with_pic; pic_mode="$withval" | |
b214d478 SE |
8644 | else |
8645 | pic_mode=default | |
81ecdfbb RW |
8646 | fi |
8647 | ||
b214d478 SE |
8648 | |
8649 | test -z "$pic_mode" && pic_mode=default | |
8650 | ||
8651 | ||
8652 | ||
8653 | ||
8654 | ||
8655 | ||
8656 | ||
81ecdfbb RW |
8657 | # Check whether --enable-fast-install was given. |
8658 | if test "${enable_fast_install+set}" = set; then : | |
8659 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
b214d478 SE |
8660 | case $enableval in |
8661 | yes) enable_fast_install=yes ;; | |
8662 | no) enable_fast_install=no ;; | |
8663 | *) | |
8664 | enable_fast_install=no | |
8665 | # Look at the argument we got. We use all the common list separators. | |
8666 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8667 | for pkg in $enableval; do | |
8668 | IFS="$lt_save_ifs" | |
8669 | if test "X$pkg" = "X$p"; then | |
8670 | enable_fast_install=yes | |
8671 | fi | |
8672 | done | |
8673 | IFS="$lt_save_ifs" | |
7357c5b6 AM |
8674 | ;; |
8675 | esac | |
b214d478 SE |
8676 | else |
8677 | enable_fast_install=yes | |
81ecdfbb RW |
8678 | fi |
8679 | ||
ce2cded5 | 8680 | |
ce2cded5 L |
8681 | |
8682 | ||
ce2cded5 | 8683 | |
42ecbf5e | 8684 | |
d7040cdb | 8685 | |
d7040cdb | 8686 | |
d7040cdb | 8687 | |
d7040cdb | 8688 | |
d7040cdb | 8689 | |
ce2cded5 L |
8690 | # This can be used to rebuild libtool when needed |
8691 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 8692 | |
ce2cded5 L |
8693 | # Always use our own libtool. |
8694 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 8695 | |
d7040cdb | 8696 | |
d7040cdb | 8697 | |
d7040cdb | 8698 | |
d7040cdb | 8699 | |
d7040cdb | 8700 | |
d7040cdb | 8701 | |
d7040cdb | 8702 | |
d7040cdb | 8703 | |
d7040cdb | 8704 | |
d7040cdb | 8705 | |
d7040cdb | 8706 | |
d7040cdb | 8707 | |
d7040cdb | 8708 | |
d7040cdb | 8709 | |
d7040cdb | 8710 | |
d7040cdb SE |
8711 | |
8712 | ||
8713 | ||
8714 | ||
8715 | ||
8716 | ||
8717 | ||
3725885a | 8718 | |
d7040cdb SE |
8719 | |
8720 | ||
ce2cded5 | 8721 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
8722 | |
8723 | ||
8724 | ||
8725 | ||
8726 | ||
8727 | ||
d7040cdb SE |
8728 | |
8729 | ||
8730 | ||
8731 | ||
8732 | ||
8733 | ||
8734 | ||
8735 | ||
ce2cded5 L |
8736 | if test -n "${ZSH_VERSION+set}" ; then |
8737 | setopt NO_GLOB_SUBST | |
8738 | fi | |
d7040cdb | 8739 | |
81ecdfbb RW |
8740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8741 | $as_echo_n "checking for objdir... " >&6; } | |
d0ac1c44 | 8742 | if ${lt_cv_objdir+:} false; then : |
81ecdfbb | 8743 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
8744 | else |
8745 | rm -f .libs 2>/dev/null | |
8746 | mkdir .libs 2>/dev/null | |
8747 | if test -d .libs; then | |
8748 | lt_cv_objdir=.libs | |
8749 | else | |
8750 | # MS-DOS does not allow filenames that begin with a dot. | |
8751 | lt_cv_objdir=_libs | |
8752 | fi | |
8753 | rmdir .libs 2>/dev/null | |
8754 | fi | |
81ecdfbb RW |
8755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8756 | $as_echo "$lt_cv_objdir" >&6; } | |
ce2cded5 | 8757 | objdir=$lt_cv_objdir |
d7040cdb SE |
8758 | |
8759 | ||
8760 | ||
8761 | ||
8762 | ||
ce2cded5 L |
8763 | cat >>confdefs.h <<_ACEOF |
8764 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8765 | _ACEOF | |
d7040cdb SE |
8766 | |
8767 | ||
8768 | ||
8769 | ||
ce2cded5 L |
8770 | case $host_os in |
8771 | aix3*) | |
8772 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8773 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8774 | # vanish in a puff of smoke. | |
8775 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8776 | COLLECT_NAMES= | |
8777 | export COLLECT_NAMES | |
8778 | fi | |
8779 | ;; | |
8780 | esac | |
d7040cdb | 8781 | |
ce2cded5 L |
8782 | # Global variables: |
8783 | ofile=libtool | |
8784 | can_build_shared=yes | |
d7040cdb | 8785 | |
ce2cded5 L |
8786 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8787 | # which needs '.lib'). | |
8788 | libext=a | |
d7040cdb | 8789 | |
ce2cded5 | 8790 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 8791 | |
ce2cded5 L |
8792 | old_CC="$CC" |
8793 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 8794 | |
ce2cded5 L |
8795 | # Set sane defaults for various variables |
8796 | test -z "$CC" && CC=cc | |
8797 | test -z "$LTCC" && LTCC=$CC | |
8798 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8799 | test -z "$LD" && LD=ld | |
8800 | test -z "$ac_objext" && ac_objext=o | |
d7040cdb | 8801 | |
ce2cded5 L |
8802 | for cc_temp in $compiler""; do |
8803 | case $cc_temp in | |
8804 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8805 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8806 | \-*) ;; | |
8807 | *) break;; | |
8808 | esac | |
8809 | done | |
3725885a | 8810 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
d7040cdb SE |
8811 | |
8812 | ||
ce2cded5 L |
8813 | # Only perform the check for file, if the check method requires it |
8814 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8815 | case $deplibs_check_method in | |
8816 | file_magic*) | |
8817 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
8818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8819 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
d0ac1c44 | 8820 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
81ecdfbb | 8821 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
8822 | else |
8823 | case $MAGIC_CMD in | |
8824 | [\\/*] | ?:[\\/]*) | |
8825 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8826 | ;; | |
8827 | *) | |
8828 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8829 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8830 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8831 | for ac_dir in $ac_dummy; do | |
8832 | IFS="$lt_save_ifs" | |
8833 | test -z "$ac_dir" && ac_dir=. | |
8834 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8835 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8836 | if test -n "$file_magic_test_file"; then | |
8837 | case $deplibs_check_method in | |
8838 | "file_magic "*) | |
8839 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8840 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8841 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8842 | $EGREP "$file_magic_regex" > /dev/null; then | |
8843 | : | |
8844 | else | |
8845 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8846 | |
ce2cded5 L |
8847 | *** Warning: the command libtool uses to detect shared libraries, |
8848 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8849 | *** The result is that libtool may fail to recognize shared libraries | |
8850 | *** as such. This will affect the creation of libtool libraries that | |
8851 | *** depend on shared libraries, but programs linked with such libtool | |
8852 | *** libraries will work regardless of this problem. Nevertheless, you | |
8853 | *** may want to report the problem to your system manager and/or to | |
8854 | *** bug-libtool@gnu.org | |
d7040cdb | 8855 | |
ce2cded5 L |
8856 | _LT_EOF |
8857 | fi ;; | |
8858 | esac | |
8859 | fi | |
8860 | break | |
8861 | fi | |
8862 | done | |
8863 | IFS="$lt_save_ifs" | |
8864 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8865 | ;; | |
8866 | esac | |
8867 | fi | |
d7040cdb | 8868 | |
ce2cded5 L |
8869 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8870 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8872 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 8873 | else |
81ecdfbb RW |
8874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8875 | $as_echo "no" >&6; } | |
ce2cded5 | 8876 | fi |
d7040cdb SE |
8877 | |
8878 | ||
8879 | ||
8880 | ||
8881 | ||
ce2cded5 L |
8882 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8883 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
8884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8885 | $as_echo_n "checking for file... " >&6; } | |
d0ac1c44 | 8886 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
81ecdfbb | 8887 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
8888 | else |
8889 | case $MAGIC_CMD in | |
8890 | [\\/*] | ?:[\\/]*) | |
8891 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8892 | ;; | |
8893 | *) | |
8894 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8895 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8896 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8897 | for ac_dir in $ac_dummy; do | |
8898 | IFS="$lt_save_ifs" | |
8899 | test -z "$ac_dir" && ac_dir=. | |
8900 | if test -f $ac_dir/file; then | |
8901 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8902 | if test -n "$file_magic_test_file"; then | |
8903 | case $deplibs_check_method in | |
8904 | "file_magic "*) | |
8905 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8906 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8907 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8908 | $EGREP "$file_magic_regex" > /dev/null; then | |
8909 | : | |
8910 | else | |
8911 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8912 | |
ce2cded5 L |
8913 | *** Warning: the command libtool uses to detect shared libraries, |
8914 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8915 | *** The result is that libtool may fail to recognize shared libraries | |
8916 | *** as such. This will affect the creation of libtool libraries that | |
8917 | *** depend on shared libraries, but programs linked with such libtool | |
8918 | *** libraries will work regardless of this problem. Nevertheless, you | |
8919 | *** may want to report the problem to your system manager and/or to | |
8920 | *** bug-libtool@gnu.org | |
d7040cdb | 8921 | |
ce2cded5 L |
8922 | _LT_EOF |
8923 | fi ;; | |
8924 | esac | |
8925 | fi | |
8926 | break | |
8927 | fi | |
8928 | done | |
8929 | IFS="$lt_save_ifs" | |
8930 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8931 | ;; | |
8932 | esac | |
8933 | fi | |
d7040cdb | 8934 | |
ce2cded5 L |
8935 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8936 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8938 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 8939 | else |
81ecdfbb RW |
8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8941 | $as_echo "no" >&6; } | |
ce2cded5 | 8942 | fi |
d7040cdb SE |
8943 | |
8944 | ||
ce2cded5 L |
8945 | else |
8946 | MAGIC_CMD=: | |
8947 | fi | |
8948 | fi | |
d7040cdb | 8949 | |
ce2cded5 L |
8950 | fi |
8951 | ;; | |
8952 | esac | |
d7040cdb | 8953 | |
ce2cded5 | 8954 | # Use C for the default configuration in the libtool script |
d7040cdb | 8955 | |
ce2cded5 L |
8956 | lt_save_CC="$CC" |
8957 | ac_ext=c | |
8958 | ac_cpp='$CPP $CPPFLAGS' | |
8959 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8960 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8961 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
8962 | |
8963 | ||
ce2cded5 L |
8964 | # Source file extension for C test sources. |
8965 | ac_ext=c | |
d7040cdb | 8966 | |
ce2cded5 L |
8967 | # Object file extension for compiled C test sources. |
8968 | objext=o | |
8969 | objext=$objext | |
d7040cdb | 8970 | |
ce2cded5 L |
8971 | # Code to be used in simple compile tests |
8972 | lt_simple_compile_test_code="int some_variable = 0;" | |
d7040cdb | 8973 | |
ce2cded5 L |
8974 | # Code to be used in simple link tests |
8975 | lt_simple_link_test_code='int main(){return(0);}' | |
d7040cdb SE |
8976 | |
8977 | ||
8978 | ||
8979 | ||
8980 | ||
8981 | ||
8982 | ||
ce2cded5 L |
8983 | # If no C compiler was specified, use CC. |
8984 | LTCC=${LTCC-"$CC"} | |
d7040cdb | 8985 | |
ce2cded5 L |
8986 | # If no C compiler flags were specified, use CFLAGS. |
8987 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d7040cdb | 8988 | |
ce2cded5 L |
8989 | # Allow CC to be a program name with arguments. |
8990 | compiler=$CC | |
d7040cdb | 8991 | |
ce2cded5 L |
8992 | # Save the default compiler, since it gets overwritten when the other |
8993 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8994 | compiler_DEFAULT=$CC | |
d7040cdb | 8995 | |
ce2cded5 L |
8996 | # save warnings/boilerplate of simple test code |
8997 | ac_outfile=conftest.$ac_objext | |
8998 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8999 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9000 | _lt_compiler_boilerplate=`cat conftest.err` | |
9001 | $RM conftest* | |
d7040cdb | 9002 | |
ce2cded5 L |
9003 | ac_outfile=conftest.$ac_objext |
9004 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9005 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9006 | _lt_linker_boilerplate=`cat conftest.err` | |
b214d478 | 9007 | $RM -r conftest* |
d7040cdb SE |
9008 | |
9009 | ||
ce2cded5 L |
9010 | ## CAVEAT EMPTOR: |
9011 | ## There is no encapsulation within the following macros, do not change | |
9012 | ## the running order or otherwise move them around unless you know exactly | |
9013 | ## what you are doing... | |
9014 | if test -n "$compiler"; then | |
d7040cdb | 9015 | |
ce2cded5 | 9016 | lt_prog_compiler_no_builtin_flag= |
d7040cdb | 9017 | |
ce2cded5 | 9018 | if test "$GCC" = yes; then |
3725885a RW |
9019 | case $cc_basename in |
9020 | nvcc*) | |
9021 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9022 | *) | |
9023 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9024 | esac | |
d7040cdb | 9025 | |
81ecdfbb RW |
9026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9027 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
d0ac1c44 | 9028 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
81ecdfbb | 9029 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
9030 | else |
9031 | lt_cv_prog_compiler_rtti_exceptions=no | |
9032 | ac_outfile=conftest.$ac_objext | |
9033 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9034 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9035 | # Insert the option either (1) after the last *FLAGS variable, or | |
9036 | # (2) before a word containing "conftest.", or (3) at the end. | |
9037 | # Note that $ac_compile itself does not contain backslashes and begins | |
9038 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9039 | # The option is referenced via a variable to avoid confusing sed. | |
9040 | lt_compile=`echo "$ac_compile" | $SED \ | |
9041 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9042 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9043 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9044 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9045 | (eval "$lt_compile" 2>conftest.err) |
9046 | ac_status=$? | |
9047 | cat conftest.err >&5 | |
3725885a | 9048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9049 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9050 | # The compiler can only warn and ignore the option if not recognized | |
9051 | # So say no if there are warnings other than the usual output. | |
3725885a | 9052 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
9053 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9054 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9055 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9056 | fi | |
9057 | fi | |
9058 | $RM conftest* | |
d7040cdb | 9059 | |
ce2cded5 | 9060 | fi |
81ecdfbb RW |
9061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
9062 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
d7040cdb | 9063 | |
ce2cded5 L |
9064 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
9065 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9066 | else | |
9067 | : | |
9068 | fi | |
d7040cdb | 9069 | |
ce2cded5 | 9070 | fi |
d7040cdb SE |
9071 | |
9072 | ||
9073 | ||
9074 | ||
9075 | ||
9076 | ||
ce2cded5 L |
9077 | lt_prog_compiler_wl= |
9078 | lt_prog_compiler_pic= | |
9079 | lt_prog_compiler_static= | |
d7040cdb | 9080 | |
81ecdfbb RW |
9081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9082 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
d7040cdb | 9083 | |
ce2cded5 L |
9084 | if test "$GCC" = yes; then |
9085 | lt_prog_compiler_wl='-Wl,' | |
9086 | lt_prog_compiler_static='-static' | |
d7040cdb | 9087 | |
ce2cded5 L |
9088 | case $host_os in |
9089 | aix*) | |
9090 | # All AIX code is PIC. | |
9091 | if test "$host_cpu" = ia64; then | |
9092 | # AIX 5 now supports IA64 processor | |
9093 | lt_prog_compiler_static='-Bstatic' | |
9094 | fi | |
52204357 | 9095 | lt_prog_compiler_pic='-fPIC' |
ce2cded5 | 9096 | ;; |
d7040cdb | 9097 | |
ce2cded5 | 9098 | amigaos*) |
b214d478 SE |
9099 | case $host_cpu in |
9100 | powerpc) | |
9101 | # see comment about AmigaOS4 .so support | |
9102 | lt_prog_compiler_pic='-fPIC' | |
9103 | ;; | |
9104 | m68k) | |
9105 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9106 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9107 | # like `-m68040'. | |
9108 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9109 | ;; | |
9110 | esac | |
ce2cded5 | 9111 | ;; |
d7040cdb | 9112 | |
ce2cded5 L |
9113 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9114 | # PIC is the default for these OSes. | |
9115 | ;; | |
d7040cdb | 9116 | |
b214d478 | 9117 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
9118 | # This hack is so that the source file can tell whether it is being |
9119 | # built for inclusion in a dll (and should export symbols for example). | |
9120 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9121 | # (--disable-auto-import) libraries | |
9122 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9123 | ;; | |
d7040cdb | 9124 | |
ce2cded5 L |
9125 | darwin* | rhapsody*) |
9126 | # PIC is the default on this platform | |
9127 | # Common symbols not allowed in MH_DYLIB files | |
9128 | lt_prog_compiler_pic='-fno-common' | |
9129 | ;; | |
d7040cdb | 9130 | |
3725885a RW |
9131 | haiku*) |
9132 | # PIC is the default for Haiku. | |
9133 | # The "-static" flag exists, but is broken. | |
9134 | lt_prog_compiler_static= | |
9135 | ;; | |
9136 | ||
ce2cded5 | 9137 | hpux*) |
b214d478 SE |
9138 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
9139 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9140 | # sets the default TLS model and affects inlining. | |
ce2cded5 | 9141 | case $host_cpu in |
b214d478 | 9142 | hppa*64*) |
ce2cded5 L |
9143 | # +Z the default |
9144 | ;; | |
9145 | *) | |
9146 | lt_prog_compiler_pic='-fPIC' | |
9147 | ;; | |
9148 | esac | |
9149 | ;; | |
d7040cdb | 9150 | |
ce2cded5 L |
9151 | interix[3-9]*) |
9152 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9153 | # Instead, we relocate shared libraries at runtime. | |
9154 | ;; | |
d7040cdb | 9155 | |
ce2cded5 L |
9156 | msdosdjgpp*) |
9157 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9158 | # on systems that don't support them. | |
9159 | lt_prog_compiler_can_build_shared=no | |
9160 | enable_shared=no | |
9161 | ;; | |
d7040cdb | 9162 | |
ce2cded5 L |
9163 | *nto* | *qnx*) |
9164 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9165 | # it will coredump. | |
9166 | lt_prog_compiler_pic='-fPIC -shared' | |
9167 | ;; | |
d7040cdb | 9168 | |
ce2cded5 L |
9169 | sysv4*MP*) |
9170 | if test -d /usr/nec; then | |
9171 | lt_prog_compiler_pic=-Kconform_pic | |
9172 | fi | |
9173 | ;; | |
d7040cdb | 9174 | |
ce2cded5 L |
9175 | *) |
9176 | lt_prog_compiler_pic='-fPIC' | |
9177 | ;; | |
9178 | esac | |
3725885a RW |
9179 | |
9180 | case $cc_basename in | |
9181 | nvcc*) # Cuda Compiler Driver 2.2 | |
9182 | lt_prog_compiler_wl='-Xlinker ' | |
9183 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9184 | ;; | |
9185 | esac | |
ce2cded5 L |
9186 | else |
9187 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9188 | case $host_os in | |
9189 | aix*) | |
9190 | lt_prog_compiler_wl='-Wl,' | |
9191 | if test "$host_cpu" = ia64; then | |
9192 | # AIX 5 now supports IA64 processor | |
9193 | lt_prog_compiler_static='-Bstatic' | |
9194 | else | |
9195 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9196 | fi | |
9197 | ;; | |
d7040cdb | 9198 | |
b214d478 | 9199 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
9200 | # This hack is so that the source file can tell whether it is being |
9201 | # built for inclusion in a dll (and should export symbols for example). | |
9202 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9203 | ;; | |
d7040cdb | 9204 | |
ce2cded5 L |
9205 | hpux9* | hpux10* | hpux11*) |
9206 | lt_prog_compiler_wl='-Wl,' | |
9207 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9208 | # not for PA HP-UX. | |
9209 | case $host_cpu in | |
9210 | hppa*64*|ia64*) | |
9211 | # +Z the default | |
9212 | ;; | |
9213 | *) | |
9214 | lt_prog_compiler_pic='+Z' | |
9215 | ;; | |
9216 | esac | |
9217 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9218 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9219 | ;; | |
d7040cdb | 9220 | |
ce2cded5 L |
9221 | irix5* | irix6* | nonstopux*) |
9222 | lt_prog_compiler_wl='-Wl,' | |
9223 | # PIC (with -KPIC) is the default. | |
9224 | lt_prog_compiler_static='-non_shared' | |
9225 | ;; | |
d7040cdb | 9226 | |
58e24671 | 9227 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 9228 | case $cc_basename in |
b214d478 SE |
9229 | # old Intel for x86_64 which still supported -KPIC. |
9230 | ecc*) | |
ce2cded5 L |
9231 | lt_prog_compiler_wl='-Wl,' |
9232 | lt_prog_compiler_pic='-KPIC' | |
9233 | lt_prog_compiler_static='-static' | |
9234 | ;; | |
b214d478 SE |
9235 | # icc used to be incompatible with GCC. |
9236 | # ICC 10 doesn't accept -KPIC any more. | |
9237 | icc* | ifort*) | |
9238 | lt_prog_compiler_wl='-Wl,' | |
9239 | lt_prog_compiler_pic='-fPIC' | |
9240 | lt_prog_compiler_static='-static' | |
9241 | ;; | |
9242 | # Lahey Fortran 8.1. | |
9243 | lf95*) | |
9244 | lt_prog_compiler_wl='-Wl,' | |
9245 | lt_prog_compiler_pic='--shared' | |
9246 | lt_prog_compiler_static='--static' | |
9247 | ;; | |
3725885a | 9248 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
ce2cded5 L |
9249 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9250 | # which looks to be a dead project) | |
9251 | lt_prog_compiler_wl='-Wl,' | |
9252 | lt_prog_compiler_pic='-fpic' | |
9253 | lt_prog_compiler_static='-Bstatic' | |
9254 | ;; | |
9255 | ccc*) | |
9256 | lt_prog_compiler_wl='-Wl,' | |
9257 | # All Alpha code is PIC. | |
9258 | lt_prog_compiler_static='-non_shared' | |
9259 | ;; | |
3725885a RW |
9260 | xl* | bgxl* | bgf* | mpixl*) |
9261 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
b214d478 SE |
9262 | lt_prog_compiler_wl='-Wl,' |
9263 | lt_prog_compiler_pic='-qpic' | |
9264 | lt_prog_compiler_static='-qstaticlink' | |
9265 | ;; | |
ce2cded5 L |
9266 | *) |
9267 | case `$CC -V 2>&1 | sed 5q` in | |
3725885a RW |
9268 | *Sun\ F* | *Sun*Fortran*) |
9269 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
ce2cded5 L |
9270 | lt_prog_compiler_pic='-KPIC' |
9271 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 9272 | lt_prog_compiler_wl='' |
ce2cded5 | 9273 | ;; |
3725885a RW |
9274 | *Sun\ C*) |
9275 | # Sun C 5.9 | |
ce2cded5 L |
9276 | lt_prog_compiler_pic='-KPIC' |
9277 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 9278 | lt_prog_compiler_wl='-Wl,' |
ce2cded5 L |
9279 | ;; |
9280 | esac | |
9281 | ;; | |
9282 | esac | |
9283 | ;; | |
d7040cdb | 9284 | |
ce2cded5 L |
9285 | newsos6) |
9286 | lt_prog_compiler_pic='-KPIC' | |
9287 | lt_prog_compiler_static='-Bstatic' | |
9288 | ;; | |
d7040cdb | 9289 | |
ce2cded5 L |
9290 | *nto* | *qnx*) |
9291 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9292 | # it will coredump. | |
9293 | lt_prog_compiler_pic='-fPIC -shared' | |
9294 | ;; | |
d7040cdb | 9295 | |
ce2cded5 L |
9296 | osf3* | osf4* | osf5*) |
9297 | lt_prog_compiler_wl='-Wl,' | |
9298 | # All OSF/1 code is PIC. | |
9299 | lt_prog_compiler_static='-non_shared' | |
9300 | ;; | |
d7040cdb | 9301 | |
ce2cded5 L |
9302 | rdos*) |
9303 | lt_prog_compiler_static='-non_shared' | |
9304 | ;; | |
d7040cdb | 9305 | |
ce2cded5 L |
9306 | solaris*) |
9307 | lt_prog_compiler_pic='-KPIC' | |
9308 | lt_prog_compiler_static='-Bstatic' | |
9309 | case $cc_basename in | |
9310 | f77* | f90* | f95*) | |
9311 | lt_prog_compiler_wl='-Qoption ld ';; | |
9312 | *) | |
9313 | lt_prog_compiler_wl='-Wl,';; | |
9314 | esac | |
9315 | ;; | |
d7040cdb | 9316 | |
ce2cded5 L |
9317 | sunos4*) |
9318 | lt_prog_compiler_wl='-Qoption ld ' | |
9319 | lt_prog_compiler_pic='-PIC' | |
9320 | lt_prog_compiler_static='-Bstatic' | |
9321 | ;; | |
d7040cdb | 9322 | |
ce2cded5 L |
9323 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9324 | lt_prog_compiler_wl='-Wl,' | |
9325 | lt_prog_compiler_pic='-KPIC' | |
9326 | lt_prog_compiler_static='-Bstatic' | |
9327 | ;; | |
d7040cdb | 9328 | |
ce2cded5 L |
9329 | sysv4*MP*) |
9330 | if test -d /usr/nec ;then | |
9331 | lt_prog_compiler_pic='-Kconform_pic' | |
9332 | lt_prog_compiler_static='-Bstatic' | |
9333 | fi | |
9334 | ;; | |
d7040cdb | 9335 | |
ce2cded5 L |
9336 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9337 | lt_prog_compiler_wl='-Wl,' | |
9338 | lt_prog_compiler_pic='-KPIC' | |
9339 | lt_prog_compiler_static='-Bstatic' | |
9340 | ;; | |
d7040cdb | 9341 | |
ce2cded5 L |
9342 | unicos*) |
9343 | lt_prog_compiler_wl='-Wl,' | |
9344 | lt_prog_compiler_can_build_shared=no | |
9345 | ;; | |
d7040cdb | 9346 | |
ce2cded5 L |
9347 | uts4*) |
9348 | lt_prog_compiler_pic='-pic' | |
9349 | lt_prog_compiler_static='-Bstatic' | |
9350 | ;; | |
d7040cdb | 9351 | |
ce2cded5 L |
9352 | *) |
9353 | lt_prog_compiler_can_build_shared=no | |
9354 | ;; | |
9355 | esac | |
9356 | fi | |
d7040cdb | 9357 | |
ce2cded5 L |
9358 | case $host_os in |
9359 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9360 | *djgpp*) | |
9361 | lt_prog_compiler_pic= | |
9362 | ;; | |
9363 | *) | |
9364 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9365 | ;; | |
9366 | esac | |
81ecdfbb RW |
9367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
9368 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d7040cdb SE |
9369 | |
9370 | ||
9371 | ||
9372 | ||
9373 | ||
9374 | ||
ce2cded5 L |
9375 | # |
9376 | # Check to make sure the PIC flag actually works. | |
9377 | # | |
9378 | if test -n "$lt_prog_compiler_pic"; then | |
81ecdfbb RW |
9379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
9380 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
d0ac1c44 | 9381 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
81ecdfbb | 9382 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 9383 | else |
b214d478 | 9384 | lt_cv_prog_compiler_pic_works=no |
ce2cded5 L |
9385 | ac_outfile=conftest.$ac_objext |
9386 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9387 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9388 | # Insert the option either (1) after the last *FLAGS variable, or | |
9389 | # (2) before a word containing "conftest.", or (3) at the end. | |
9390 | # Note that $ac_compile itself does not contain backslashes and begins | |
9391 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9392 | # The option is referenced via a variable to avoid confusing sed. | |
9393 | lt_compile=`echo "$ac_compile" | $SED \ | |
9394 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9395 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9396 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9397 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9398 | (eval "$lt_compile" 2>conftest.err) |
9399 | ac_status=$? | |
9400 | cat conftest.err >&5 | |
3725885a | 9401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9402 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9403 | # The compiler can only warn and ignore the option if not recognized | |
9404 | # So say no if there are warnings other than the usual output. | |
3725885a | 9405 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
9406 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9407 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 9408 | lt_cv_prog_compiler_pic_works=yes |
ce2cded5 L |
9409 | fi |
9410 | fi | |
9411 | $RM conftest* | |
d7040cdb | 9412 | |
ce2cded5 | 9413 | fi |
81ecdfbb RW |
9414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
9415 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
ce2cded5 | 9416 | |
b214d478 | 9417 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
ce2cded5 L |
9418 | case $lt_prog_compiler_pic in |
9419 | "" | " "*) ;; | |
9420 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9421 | esac | |
9422 | else | |
9423 | lt_prog_compiler_pic= | |
9424 | lt_prog_compiler_can_build_shared=no | |
9425 | fi | |
9426 | ||
9427 | fi | |
d7040cdb SE |
9428 | |
9429 | ||
9430 | ||
9431 | ||
9432 | ||
9433 | ||
ce2cded5 L |
9434 | # |
9435 | # Check to make sure the static flag actually works. | |
9436 | # | |
9437 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
9438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
9439 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
d0ac1c44 | 9440 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
81ecdfbb | 9441 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 9442 | else |
b214d478 | 9443 | lt_cv_prog_compiler_static_works=no |
ce2cded5 L |
9444 | save_LDFLAGS="$LDFLAGS" |
9445 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9446 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9447 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9448 | # The linker can only warn and ignore the option if not recognized | |
9449 | # So say no if there are warnings | |
9450 | if test -s conftest.err; then | |
9451 | # Append any errors to the config.log. | |
9452 | cat conftest.err 1>&5 | |
3725885a | 9453 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
ce2cded5 L |
9454 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9455 | if diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 9456 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
9457 | fi |
9458 | else | |
b214d478 | 9459 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
9460 | fi |
9461 | fi | |
b214d478 | 9462 | $RM -r conftest* |
ce2cded5 | 9463 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 9464 | |
ce2cded5 | 9465 | fi |
81ecdfbb RW |
9466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
9467 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 9468 | |
b214d478 | 9469 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
ce2cded5 L |
9470 | : |
9471 | else | |
9472 | lt_prog_compiler_static= | |
9473 | fi | |
d7040cdb SE |
9474 | |
9475 | ||
9476 | ||
9477 | ||
9478 | ||
9479 | ||
9480 | ||
81ecdfbb RW |
9481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9482 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 9483 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
81ecdfbb | 9484 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
9485 | else |
9486 | lt_cv_prog_compiler_c_o=no | |
9487 | $RM -r conftest 2>/dev/null | |
9488 | mkdir conftest | |
9489 | cd conftest | |
9490 | mkdir out | |
9491 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9492 | |
ce2cded5 L |
9493 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9494 | # Insert the option either (1) after the last *FLAGS variable, or | |
9495 | # (2) before a word containing "conftest.", or (3) at the end. | |
9496 | # Note that $ac_compile itself does not contain backslashes and begins | |
9497 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9498 | lt_compile=`echo "$ac_compile" | $SED \ | |
9499 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9500 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9501 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9502 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9503 | (eval "$lt_compile" 2>out/conftest.err) |
9504 | ac_status=$? | |
9505 | cat out/conftest.err >&5 | |
3725885a | 9506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9507 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9508 | then | |
9509 | # The compiler can only warn and ignore the option if not recognized | |
9510 | # So say no if there are warnings | |
3725885a | 9511 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
9512 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9513 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9514 | lt_cv_prog_compiler_c_o=yes | |
9515 | fi | |
9516 | fi | |
9517 | chmod u+w . 2>&5 | |
9518 | $RM conftest* | |
9519 | # SGI C++ compiler will create directory out/ii_files/ for | |
9520 | # template instantiation | |
9521 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9522 | $RM out/* && rmdir out | |
9523 | cd .. | |
9524 | $RM -r conftest | |
9525 | $RM conftest* | |
d7040cdb | 9526 | |
ce2cded5 | 9527 | fi |
81ecdfbb RW |
9528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9529 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
9530 | |
9531 | ||
9532 | ||
9533 | ||
9534 | ||
9535 | ||
81ecdfbb RW |
9536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9537 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 9538 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
81ecdfbb | 9539 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
9540 | else |
9541 | lt_cv_prog_compiler_c_o=no | |
9542 | $RM -r conftest 2>/dev/null | |
9543 | mkdir conftest | |
9544 | cd conftest | |
9545 | mkdir out | |
9546 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9547 | |
ce2cded5 L |
9548 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9549 | # Insert the option either (1) after the last *FLAGS variable, or | |
9550 | # (2) before a word containing "conftest.", or (3) at the end. | |
9551 | # Note that $ac_compile itself does not contain backslashes and begins | |
9552 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9553 | lt_compile=`echo "$ac_compile" | $SED \ | |
9554 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9555 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9556 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9557 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9558 | (eval "$lt_compile" 2>out/conftest.err) |
9559 | ac_status=$? | |
9560 | cat out/conftest.err >&5 | |
3725885a | 9561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9562 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9563 | then | |
9564 | # The compiler can only warn and ignore the option if not recognized | |
9565 | # So say no if there are warnings | |
3725885a | 9566 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
9567 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9568 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9569 | lt_cv_prog_compiler_c_o=yes | |
9570 | fi | |
9571 | fi | |
9572 | chmod u+w . 2>&5 | |
9573 | $RM conftest* | |
9574 | # SGI C++ compiler will create directory out/ii_files/ for | |
9575 | # template instantiation | |
9576 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9577 | $RM out/* && rmdir out | |
9578 | cd .. | |
9579 | $RM -r conftest | |
9580 | $RM conftest* | |
9581 | ||
9582 | fi | |
81ecdfbb RW |
9583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9584 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
ce2cded5 L |
9585 | |
9586 | ||
9587 | ||
9588 | ||
9589 | hard_links="nottested" | |
9590 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9591 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
9592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
9593 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
ce2cded5 L |
9594 | hard_links=yes |
9595 | $RM conftest* | |
9596 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9597 | touch conftest.a | |
9598 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9599 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
9600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
9601 | $as_echo "$hard_links" >&6; } | |
ce2cded5 | 9602 | if test "$hard_links" = no; then |
81ecdfbb RW |
9603 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
9604 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
ce2cded5 | 9605 | need_locks=warn |
d7040cdb | 9606 | fi |
d7040cdb | 9607 | else |
ce2cded5 | 9608 | need_locks=no |
d7040cdb | 9609 | fi |
d7040cdb | 9610 | |
d7040cdb | 9611 | |
d7040cdb | 9612 | |
d7040cdb | 9613 | |
d7040cdb | 9614 | |
d7040cdb | 9615 | |
81ecdfbb RW |
9616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9617 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 9618 | |
ce2cded5 L |
9619 | runpath_var= |
9620 | allow_undefined_flag= | |
9621 | always_export_symbols=no | |
9622 | archive_cmds= | |
9623 | archive_expsym_cmds= | |
9624 | compiler_needs_object=no | |
9625 | enable_shared_with_static_runtimes=no | |
9626 | export_dynamic_flag_spec= | |
9627 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9628 | hardcode_automatic=no | |
9629 | hardcode_direct=no | |
9630 | hardcode_direct_absolute=no | |
9631 | hardcode_libdir_flag_spec= | |
9632 | hardcode_libdir_flag_spec_ld= | |
9633 | hardcode_libdir_separator= | |
9634 | hardcode_minus_L=no | |
9635 | hardcode_shlibpath_var=unsupported | |
9636 | inherit_rpath=no | |
9637 | link_all_deplibs=unknown | |
9638 | module_cmds= | |
9639 | module_expsym_cmds= | |
9640 | old_archive_from_new_cmds= | |
9641 | old_archive_from_expsyms_cmds= | |
9642 | thread_safe_flag_spec= | |
9643 | whole_archive_flag_spec= | |
9644 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9645 | # included in the symbol list | |
9646 | include_expsyms= | |
9647 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9648 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9649 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9650 | # as well as any symbol that contains `d'. | |
b214d478 | 9651 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
ce2cded5 L |
9652 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9653 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9654 | # the symbol is explicitly referenced. Since portable code cannot | |
9655 | # rely on this symbol name, it's probably fine to never include it in | |
9656 | # preloaded symbol tables. | |
b214d478 | 9657 | # Exclude shared library initialization/finalization symbols. |
ce2cded5 | 9658 | extract_expsyms_cmds= |
d7040cdb | 9659 | |
ce2cded5 | 9660 | case $host_os in |
b214d478 | 9661 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9662 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
9663 | # When not using gcc, we currently assume that we are using | |
9664 | # Microsoft Visual C++. | |
9665 | if test "$GCC" != yes; then | |
9666 | with_gnu_ld=no | |
9667 | fi | |
d7040cdb | 9668 | ;; |
ce2cded5 L |
9669 | interix*) |
9670 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9671 | with_gnu_ld=yes | |
9672 | ;; | |
9673 | openbsd*) | |
9674 | with_gnu_ld=no | |
d7040cdb SE |
9675 | ;; |
9676 | esac | |
d7040cdb | 9677 | |
ce2cded5 | 9678 | ld_shlibs=yes |
3725885a RW |
9679 | |
9680 | # On some targets, GNU ld is compatible enough with the native linker | |
9681 | # that we're better off using the native interface for both. | |
9682 | lt_use_gnu_ld_interface=no | |
ce2cded5 | 9683 | if test "$with_gnu_ld" = yes; then |
3725885a RW |
9684 | case $host_os in |
9685 | aix*) | |
9686 | # The AIX port of GNU ld has always aspired to compatibility | |
9687 | # with the native linker. However, as the warning in the GNU ld | |
9688 | # block says, versions before 2.19.5* couldn't really create working | |
9689 | # shared libraries, regardless of the interface used. | |
9690 | case `$LD -v 2>&1` in | |
9691 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9692 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9693 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9694 | *) | |
9695 | lt_use_gnu_ld_interface=yes | |
9696 | ;; | |
9697 | esac | |
9698 | ;; | |
9699 | *) | |
9700 | lt_use_gnu_ld_interface=yes | |
9701 | ;; | |
9702 | esac | |
9703 | fi | |
9704 | ||
9705 | if test "$lt_use_gnu_ld_interface" = yes; then | |
ce2cded5 L |
9706 | # If archive_cmds runs LD, not CC, wlarc should be empty |
9707 | wlarc='${wl}' | |
d7040cdb | 9708 | |
ce2cded5 L |
9709 | # Set some defaults for GNU ld with shared library support. These |
9710 | # are reset later if shared libraries are not supported. Putting them | |
9711 | # here allows them to be overridden if necessary. | |
9712 | runpath_var=LD_RUN_PATH | |
9713 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9714 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9715 | # ancient GNU ld didn't support --whole-archive et. al. | |
9716 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9717 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9718 | else | |
9719 | whole_archive_flag_spec= | |
9720 | fi | |
9721 | supports_anon_versioning=no | |
9722 | case `$LD -v 2>&1` in | |
3725885a | 9723 | *GNU\ gold*) supports_anon_versioning=yes ;; |
ce2cded5 L |
9724 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9725 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9726 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9727 | *\ 2.11.*) ;; # other 2.11 versions | |
9728 | *) supports_anon_versioning=yes ;; | |
9729 | esac | |
d7040cdb | 9730 | |
ce2cded5 L |
9731 | # See if GNU ld supports shared libraries. |
9732 | case $host_os in | |
50e7d84b | 9733 | aix[3-9]*) |
ce2cded5 L |
9734 | # On AIX/PPC, the GNU linker is very broken |
9735 | if test "$host_cpu" != ia64; then | |
9736 | ld_shlibs=no | |
9737 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 9738 | |
3725885a | 9739 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
ce2cded5 L |
9740 | *** to be unable to reliably create shared libraries on AIX. |
9741 | *** Therefore, libtool is disabling shared libraries support. If you | |
3725885a RW |
9742 | *** really care for shared libraries, you may want to install binutils |
9743 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9744 | *** You will then need to restart the configuration process. | |
d7040cdb | 9745 | |
ce2cded5 L |
9746 | _LT_EOF |
9747 | fi | |
d7040cdb | 9748 | ;; |
d7040cdb | 9749 | |
ce2cded5 | 9750 | amigaos*) |
b214d478 SE |
9751 | case $host_cpu in |
9752 | powerpc) | |
9753 | # see comment about AmigaOS4 .so support | |
9754 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9755 | archive_expsym_cmds='' | |
9756 | ;; | |
9757 | m68k) | |
9758 | 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)' | |
9759 | hardcode_libdir_flag_spec='-L$libdir' | |
9760 | hardcode_minus_L=yes | |
9761 | ;; | |
9762 | esac | |
ce2cded5 | 9763 | ;; |
d7040cdb | 9764 | |
ce2cded5 L |
9765 | beos*) |
9766 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9767 | allow_undefined_flag=unsupported | |
9768 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9769 | # support --undefined. This deserves some investigation. FIXME | |
9770 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9771 | else | |
9772 | ld_shlibs=no | |
9773 | fi | |
9774 | ;; | |
d7040cdb | 9775 | |
b214d478 | 9776 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9777 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9778 | # as there is no search path for DLLs. | |
9779 | hardcode_libdir_flag_spec='-L$libdir' | |
3725885a | 9780 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
ce2cded5 L |
9781 | allow_undefined_flag=unsupported |
9782 | always_export_symbols=no | |
9783 | enable_shared_with_static_runtimes=yes | |
9784 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9785 | ||
9786 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9787 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9788 | # If the export-symbols file already is a .def file (1st line | |
9789 | # is EXPORTS), use it as is; otherwise, prepend... | |
9790 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9791 | cp $export_symbols $output_objdir/$soname.def; | |
d7040cdb | 9792 | else |
ce2cded5 L |
9793 | echo EXPORTS > $output_objdir/$soname.def; |
9794 | cat $export_symbols >> $output_objdir/$soname.def; | |
9795 | fi~ | |
9796 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9797 | else | |
9798 | ld_shlibs=no | |
9799 | fi | |
9800 | ;; | |
d7040cdb | 9801 | |
3725885a RW |
9802 | haiku*) |
9803 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9804 | link_all_deplibs=yes | |
9805 | ;; | |
9806 | ||
ce2cded5 L |
9807 | interix[3-9]*) |
9808 | hardcode_direct=no | |
9809 | hardcode_shlibpath_var=no | |
9810 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9811 | export_dynamic_flag_spec='${wl}-E' | |
9812 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9813 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9814 | # default) and relocated if they conflict, which is a slow very memory | |
9815 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9816 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9817 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9818 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9819 | 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' | |
9820 | ;; | |
d7040cdb | 9821 | |
58e24671 | 9822 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
9823 | tmp_diet=no |
9824 | if test "$host_os" = linux-dietlibc; then | |
9825 | case $cc_basename in | |
9826 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9827 | esac | |
9828 | fi | |
9829 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9830 | && test "$tmp_diet" = no | |
9831 | then | |
6e733cce | 9832 | tmp_addflag=' $pic_flag' |
b214d478 | 9833 | tmp_sharedflag='-shared' |
ce2cded5 L |
9834 | case $cc_basename,$host_cpu in |
9835 | pgcc*) # Portland Group C compiler | |
3725885a | 9836 | 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 |
9837 | tmp_addflag=' $pic_flag' |
9838 | ;; | |
3725885a RW |
9839 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9840 | # Portland Group f77 and f90 compilers | |
9841 | 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 |
9842 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9843 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9844 | tmp_addflag=' -i_dynamic' ;; | |
9845 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9846 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9847 | ifc* | ifort*) # Intel Fortran compiler | |
9848 | tmp_addflag=' -nofor_main' ;; | |
b214d478 SE |
9849 | lf95*) # Lahey Fortran 8.1 |
9850 | whole_archive_flag_spec= | |
9851 | tmp_sharedflag='--shared' ;; | |
3725885a | 9852 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
b214d478 SE |
9853 | tmp_sharedflag='-qmkshrobj' |
9854 | tmp_addflag= ;; | |
3725885a RW |
9855 | nvcc*) # Cuda Compiler Driver 2.2 |
9856 | 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' | |
9857 | compiler_needs_object=yes | |
9858 | ;; | |
ce2cded5 L |
9859 | esac |
9860 | case `$CC -V 2>&1 | sed 5q` in | |
9861 | *Sun\ C*) # Sun C 5.9 | |
3725885a | 9862 | 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 |
9863 | compiler_needs_object=yes |
9864 | tmp_sharedflag='-G' ;; | |
9865 | *Sun\ F*) # Sun Fortran 8.3 | |
9866 | tmp_sharedflag='-G' ;; | |
ce2cded5 L |
9867 | esac |
9868 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 9869 | |
ce2cded5 L |
9870 | if test "x$supports_anon_versioning" = xyes; then |
9871 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9872 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9873 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9874 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9875 | fi | |
b214d478 SE |
9876 | |
9877 | case $cc_basename in | |
3725885a | 9878 | xlf* | bgf* | bgxlf* | mpixlf*) |
b214d478 SE |
9879 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9880 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9881 | hardcode_libdir_flag_spec= | |
9882 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9883 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9884 | if test "x$supports_anon_versioning" = xyes; then | |
9885 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9886 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9887 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9888 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9889 | fi | |
9890 | ;; | |
9891 | esac | |
ce2cded5 L |
9892 | else |
9893 | ld_shlibs=no | |
9894 | fi | |
9895 | ;; | |
d7040cdb | 9896 | |
ce2cded5 L |
9897 | netbsd*) |
9898 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9899 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9900 | wlarc= | |
9901 | else | |
9902 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9903 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9904 | fi | |
9905 | ;; | |
9906 | ||
9907 | solaris*) | |
9908 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9909 | ld_shlibs=no | |
9910 | cat <<_LT_EOF 1>&2 | |
9911 | ||
9912 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9913 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9914 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9915 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9916 | *** your PATH or compiler configuration so that the native linker is | |
9917 | *** used, and then restart. | |
9918 | ||
9919 | _LT_EOF | |
9920 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9921 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9922 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9923 | else | |
9924 | ld_shlibs=no | |
9925 | fi | |
9926 | ;; | |
9927 | ||
9928 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9929 | case `$LD -v 2>&1` in | |
9930 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9931 | ld_shlibs=no | |
9932 | cat <<_LT_EOF 1>&2 | |
9933 | ||
9934 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9935 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9936 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9937 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9938 | *** your PATH or compiler configuration so that the native linker is | |
9939 | *** used, and then restart. | |
9940 | ||
9941 | _LT_EOF | |
9942 | ;; | |
9943 | *) | |
9944 | # For security reasons, it is highly recommended that you always | |
9945 | # use absolute paths for naming shared libraries, and exclude the | |
9946 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9947 | # requires that you compile everything twice, which is a pain. | |
9948 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9949 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9950 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9951 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9952 | else | |
9953 | ld_shlibs=no | |
9954 | fi | |
9955 | ;; | |
9956 | esac | |
9957 | ;; | |
9958 | ||
9959 | sunos4*) | |
9960 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9961 | wlarc= | |
9962 | hardcode_direct=yes | |
9963 | hardcode_shlibpath_var=no | |
9964 | ;; | |
9965 | ||
9966 | *) | |
9967 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9968 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9969 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9970 | else | |
9971 | ld_shlibs=no | |
9972 | fi | |
9973 | ;; | |
9974 | esac | |
9975 | ||
9976 | if test "$ld_shlibs" = no; then | |
9977 | runpath_var= | |
9978 | hardcode_libdir_flag_spec= | |
9979 | export_dynamic_flag_spec= | |
9980 | whole_archive_flag_spec= | |
9981 | fi | |
9982 | else | |
9983 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9984 | case $host_os in | |
9985 | aix3*) | |
9986 | allow_undefined_flag=unsupported | |
9987 | always_export_symbols=yes | |
9988 | 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' | |
9989 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9990 | # are no directories specified by -L. | |
9991 | hardcode_minus_L=yes | |
9992 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9993 | # Neither direct hardcoding nor static linking is supported with a | |
9994 | # broken collect2. | |
9995 | hardcode_direct=unsupported | |
9996 | fi | |
9997 | ;; | |
9998 | ||
50e7d84b | 9999 | aix[4-9]*) |
ce2cded5 L |
10000 | if test "$host_cpu" = ia64; then |
10001 | # On IA64, the linker does run time linking by default, so we don't | |
10002 | # have to do anything special. | |
10003 | aix_use_runtimelinking=no | |
10004 | exp_sym_flag='-Bexport' | |
10005 | no_entry_flag="" | |
10006 | else | |
10007 | # If we're using GNU nm, then we don't want the "-C" option. | |
10008 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
3725885a RW |
10009 | # Also, AIX nm treats weak defined symbols like other global |
10010 | # defined symbols, whereas GNU nm marks them as "W". | |
ce2cded5 | 10011 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
3725885a | 10012 | 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 | 10013 | else |
5c14705f | 10014 | 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 |
10015 | fi |
10016 | aix_use_runtimelinking=no | |
10017 | ||
10018 | # Test if we are trying to use run time linking or normal | |
10019 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10020 | # need to do runtime linking. | |
50e7d84b | 10021 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
10022 | for ld_flag in $LDFLAGS; do |
10023 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10024 | aix_use_runtimelinking=yes | |
10025 | break | |
10026 | fi | |
10027 | done | |
10028 | ;; | |
10029 | esac | |
10030 | ||
10031 | exp_sym_flag='-bexport' | |
10032 | no_entry_flag='-bnoentry' | |
10033 | fi | |
10034 | ||
10035 | # When large executables or shared objects are built, AIX ld can | |
10036 | # have problems creating the table of contents. If linking a library | |
10037 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10038 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10039 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10040 | ||
10041 | archive_cmds='' | |
10042 | hardcode_direct=yes | |
10043 | hardcode_direct_absolute=yes | |
10044 | hardcode_libdir_separator=':' | |
10045 | link_all_deplibs=yes | |
10046 | file_list_spec='${wl}-f,' | |
10047 | ||
10048 | if test "$GCC" = yes; then | |
10049 | case $host_os in aix4.[012]|aix4.[012].*) | |
10050 | # We only want to do this on AIX 4.2 and lower, the check | |
10051 | # below for broken collect2 doesn't work under 4.3+ | |
10052 | collect2name=`${CC} -print-prog-name=collect2` | |
10053 | if test -f "$collect2name" && | |
10054 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10055 | then | |
10056 | # We have reworked collect2 | |
10057 | : | |
10058 | else | |
10059 | # We have old collect2 | |
10060 | hardcode_direct=unsupported | |
10061 | # It fails to find uninstalled libraries when the uninstalled | |
10062 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10063 | # to unsupported forces relinking | |
10064 | hardcode_minus_L=yes | |
10065 | hardcode_libdir_flag_spec='-L$libdir' | |
10066 | hardcode_libdir_separator= | |
10067 | fi | |
10068 | ;; | |
10069 | esac | |
10070 | shared_flag='-shared' | |
10071 | if test "$aix_use_runtimelinking" = yes; then | |
10072 | shared_flag="$shared_flag "'${wl}-G' | |
10073 | fi | |
10074 | else | |
10075 | # not using gcc | |
10076 | if test "$host_cpu" = ia64; then | |
10077 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10078 | # chokes on -Wl,-G. The following line is correct: | |
10079 | shared_flag='-G' | |
10080 | else | |
10081 | if test "$aix_use_runtimelinking" = yes; then | |
10082 | shared_flag='${wl}-G' | |
10083 | else | |
10084 | shared_flag='${wl}-bM:SRE' | |
10085 | fi | |
10086 | fi | |
10087 | fi | |
10088 | ||
b214d478 | 10089 | export_dynamic_flag_spec='${wl}-bexpall' |
ce2cded5 L |
10090 | # It seems that -bexpall does not export symbols beginning with |
10091 | # underscore (_), so it is better to generate a list of symbols to export. | |
10092 | always_export_symbols=yes | |
10093 | if test "$aix_use_runtimelinking" = yes; then | |
10094 | # Warning - without using the other runtime loading flags (-brtl), | |
10095 | # -berok will link without error, but may produce a broken library. | |
10096 | allow_undefined_flag='-berok' | |
10097 | # Determine the default libpath from the value encoded in an | |
10098 | # empty executable. | |
81ecdfbb | 10099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
10100 | /* end confdefs.h. */ |
10101 | ||
10102 | int | |
10103 | main () | |
10104 | { | |
10105 | ||
10106 | ; | |
10107 | return 0; | |
10108 | } | |
10109 | _ACEOF | |
81ecdfbb | 10110 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 10111 | |
ce2cded5 L |
10112 | lt_aix_libpath_sed=' |
10113 | /Import File Strings/,/^$/ { | |
10114 | /^0/ { | |
10115 | s/^0 *\(.*\)$/\1/ | |
10116 | p | |
10117 | } | |
10118 | }' | |
10119 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10120 | # Check for a 64-bit object if we didn't find anything. | |
10121 | if test -z "$aix_libpath"; then | |
10122 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10123 | fi | |
d7040cdb | 10124 | fi |
81ecdfbb RW |
10125 | rm -f core conftest.err conftest.$ac_objext \ |
10126 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 10127 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 10128 | |
ce2cded5 | 10129 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
3725885a | 10130 | 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 |
10131 | else |
10132 | if test "$host_cpu" = ia64; then | |
10133 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10134 | allow_undefined_flag="-z nodefs" | |
10135 | 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" | |
10136 | else | |
10137 | # Determine the default libpath from the value encoded in an | |
10138 | # empty executable. | |
81ecdfbb | 10139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 10140 | /* end confdefs.h. */ |
d7040cdb | 10141 | |
ce2cded5 L |
10142 | int |
10143 | main () | |
10144 | { | |
d7040cdb | 10145 | |
ce2cded5 L |
10146 | ; |
10147 | return 0; | |
10148 | } | |
10149 | _ACEOF | |
81ecdfbb | 10150 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 10151 | |
ce2cded5 L |
10152 | lt_aix_libpath_sed=' |
10153 | /Import File Strings/,/^$/ { | |
10154 | /^0/ { | |
10155 | s/^0 *\(.*\)$/\1/ | |
10156 | p | |
10157 | } | |
10158 | }' | |
10159 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10160 | # Check for a 64-bit object if we didn't find anything. | |
10161 | if test -z "$aix_libpath"; then | |
10162 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10163 | fi | |
ce2cded5 | 10164 | fi |
81ecdfbb RW |
10165 | rm -f core conftest.err conftest.$ac_objext \ |
10166 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 10167 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 10168 | |
ce2cded5 L |
10169 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10170 | # Warning - without using the other run time loading flags, | |
10171 | # -berok will link without error, but may produce a broken library. | |
10172 | no_undefined_flag=' ${wl}-bernotok' | |
10173 | allow_undefined_flag=' ${wl}-berok' | |
3725885a RW |
10174 | if test "$with_gnu_ld" = yes; then |
10175 | # We only use this code for GNU lds that support --whole-archive. | |
10176 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10177 | else | |
10178 | # Exported symbols can be pulled into shared objects from archives | |
10179 | whole_archive_flag_spec='$convenience' | |
10180 | fi | |
ce2cded5 L |
10181 | archive_cmds_need_lc=yes |
10182 | # This is similar to how AIX traditionally builds its shared libraries. | |
10183 | 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' | |
10184 | fi | |
10185 | fi | |
10186 | ;; | |
d7040cdb | 10187 | |
ce2cded5 | 10188 | amigaos*) |
b214d478 SE |
10189 | case $host_cpu in |
10190 | powerpc) | |
10191 | # see comment about AmigaOS4 .so support | |
10192 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10193 | archive_expsym_cmds='' | |
10194 | ;; | |
10195 | m68k) | |
10196 | 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)' | |
10197 | hardcode_libdir_flag_spec='-L$libdir' | |
10198 | hardcode_minus_L=yes | |
10199 | ;; | |
10200 | esac | |
ce2cded5 L |
10201 | ;; |
10202 | ||
10203 | bsdi[45]*) | |
10204 | export_dynamic_flag_spec=-rdynamic | |
10205 | ;; | |
10206 | ||
b214d478 | 10207 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10208 | # When not using gcc, we currently assume that we are using |
10209 | # Microsoft Visual C++. | |
10210 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10211 | # no search path for DLLs. | |
10212 | hardcode_libdir_flag_spec=' ' | |
10213 | allow_undefined_flag=unsupported | |
10214 | # Tell ltmain to make .lib files, not .a files. | |
10215 | libext=lib | |
10216 | # Tell ltmain to make .dll files, not .so files. | |
10217 | shrext_cmds=".dll" | |
10218 | # FIXME: Setting linknames here is a bad hack. | |
3725885a | 10219 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
ce2cded5 L |
10220 | # The linker will automatically build a .lib file if we build a DLL. |
10221 | old_archive_from_new_cmds='true' | |
10222 | # FIXME: Should let the user specify the lib program. | |
10223 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10224 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10225 | enable_shared_with_static_runtimes=yes | |
10226 | ;; | |
10227 | ||
10228 | darwin* | rhapsody*) | |
d7040cdb | 10229 | |
b214d478 SE |
10230 | |
10231 | archive_cmds_need_lc=no | |
10232 | hardcode_direct=no | |
10233 | hardcode_automatic=yes | |
10234 | hardcode_shlibpath_var=unsupported | |
3725885a RW |
10235 | if test "$lt_cv_ld_force_load" = "yes"; then |
10236 | 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\"`' | |
10237 | else | |
10238 | whole_archive_flag_spec='' | |
10239 | fi | |
b214d478 SE |
10240 | link_all_deplibs=yes |
10241 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10242 | case $cc_basename in | |
10243 | ifort*) _lt_dar_can_shared=yes ;; | |
10244 | *) _lt_dar_can_shared=$GCC ;; | |
10245 | esac | |
10246 | if test "$_lt_dar_can_shared" = "yes"; then | |
3725885a | 10247 | output_verbose_link_cmd=func_echo_all |
b214d478 SE |
10248 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10249 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10250 | 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}" | |
10251 | 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}" | |
10252 | ||
10253 | else | |
10254 | ld_shlibs=no | |
10255 | fi | |
10256 | ||
ce2cded5 | 10257 | ;; |
d7040cdb | 10258 | |
ce2cded5 L |
10259 | dgux*) |
10260 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10261 | hardcode_libdir_flag_spec='-L$libdir' | |
10262 | hardcode_shlibpath_var=no | |
10263 | ;; | |
d7040cdb | 10264 | |
ce2cded5 L |
10265 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10266 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10267 | # does not break anything, and helps significantly (at the cost of a little | |
10268 | # extra space). | |
10269 | freebsd2.2*) | |
10270 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10271 | hardcode_libdir_flag_spec='-R$libdir' | |
10272 | hardcode_direct=yes | |
10273 | hardcode_shlibpath_var=no | |
d7040cdb | 10274 | ;; |
d7040cdb | 10275 | |
ce2cded5 | 10276 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
6d2920c8 | 10277 | freebsd2.*) |
ce2cded5 L |
10278 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10279 | hardcode_direct=yes | |
10280 | hardcode_minus_L=yes | |
10281 | hardcode_shlibpath_var=no | |
10282 | ;; | |
d7040cdb | 10283 | |
ce2cded5 L |
10284 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
10285 | freebsd* | dragonfly*) | |
10286 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10287 | hardcode_libdir_flag_spec='-R$libdir' | |
10288 | hardcode_direct=yes | |
10289 | hardcode_shlibpath_var=no | |
10290 | ;; | |
d7040cdb | 10291 | |
ce2cded5 L |
10292 | hpux9*) |
10293 | if test "$GCC" = yes; then | |
10294 | 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' | |
10295 | else | |
10296 | 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' | |
10297 | fi | |
10298 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10299 | hardcode_libdir_separator=: | |
10300 | hardcode_direct=yes | |
d7040cdb | 10301 | |
ce2cded5 L |
10302 | # hardcode_minus_L: Not really in the search PATH, |
10303 | # but as the default location of the library. | |
10304 | hardcode_minus_L=yes | |
10305 | export_dynamic_flag_spec='${wl}-E' | |
10306 | ;; | |
d7040cdb | 10307 | |
ce2cded5 | 10308 | hpux10*) |
3725885a | 10309 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
ce2cded5 L |
10310 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10311 | else | |
10312 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10313 | fi | |
10314 | if test "$with_gnu_ld" = no; then | |
10315 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10316 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10317 | hardcode_libdir_separator=: | |
10318 | hardcode_direct=yes | |
10319 | hardcode_direct_absolute=yes | |
10320 | export_dynamic_flag_spec='${wl}-E' | |
10321 | # hardcode_minus_L: Not really in the search PATH, | |
10322 | # but as the default location of the library. | |
10323 | hardcode_minus_L=yes | |
10324 | fi | |
10325 | ;; | |
d7040cdb | 10326 | |
ce2cded5 | 10327 | hpux11*) |
3725885a | 10328 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
ce2cded5 L |
10329 | case $host_cpu in |
10330 | hppa*64*) | |
10331 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10332 | ;; | |
10333 | ia64*) | |
b214d478 | 10334 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
10335 | ;; |
10336 | *) | |
10337 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10338 | ;; | |
10339 | esac | |
10340 | else | |
10341 | case $host_cpu in | |
10342 | hppa*64*) | |
10343 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10344 | ;; | |
10345 | ia64*) | |
10346 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10347 | ;; | |
10348 | *) | |
3725885a RW |
10349 | |
10350 | # Older versions of the 11.00 compiler do not understand -b yet | |
10351 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10353 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
d0ac1c44 | 10354 | if ${lt_cv_prog_compiler__b+:} false; then : |
3725885a RW |
10355 | $as_echo_n "(cached) " >&6 |
10356 | else | |
10357 | lt_cv_prog_compiler__b=no | |
10358 | save_LDFLAGS="$LDFLAGS" | |
10359 | LDFLAGS="$LDFLAGS -b" | |
10360 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10361 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10362 | # The linker can only warn and ignore the option if not recognized | |
10363 | # So say no if there are warnings | |
10364 | if test -s conftest.err; then | |
10365 | # Append any errors to the config.log. | |
10366 | cat conftest.err 1>&5 | |
10367 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10368 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10369 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10370 | lt_cv_prog_compiler__b=yes | |
10371 | fi | |
10372 | else | |
10373 | lt_cv_prog_compiler__b=yes | |
10374 | fi | |
10375 | fi | |
10376 | $RM -r conftest* | |
10377 | LDFLAGS="$save_LDFLAGS" | |
10378 | ||
10379 | fi | |
10380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10381 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10382 | ||
10383 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10384 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10385 | else | |
10386 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10387 | fi | |
10388 | ||
ce2cded5 L |
10389 | ;; |
10390 | esac | |
10391 | fi | |
10392 | if test "$with_gnu_ld" = no; then | |
10393 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10394 | hardcode_libdir_separator=: | |
d7040cdb | 10395 | |
ce2cded5 L |
10396 | case $host_cpu in |
10397 | hppa*64*|ia64*) | |
10398 | hardcode_direct=no | |
10399 | hardcode_shlibpath_var=no | |
10400 | ;; | |
10401 | *) | |
10402 | hardcode_direct=yes | |
10403 | hardcode_direct_absolute=yes | |
10404 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 10405 | |
ce2cded5 L |
10406 | # hardcode_minus_L: Not really in the search PATH, |
10407 | # but as the default location of the library. | |
10408 | hardcode_minus_L=yes | |
10409 | ;; | |
10410 | esac | |
10411 | fi | |
10412 | ;; | |
d7040cdb | 10413 | |
ce2cded5 L |
10414 | irix5* | irix6* | nonstopux*) |
10415 | if test "$GCC" = yes; then | |
3725885a | 10416 | 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 |
10417 | # Try to use the -exported_symbol ld option, if it does not |
10418 | # work, assume that -exports_file does not work either and | |
10419 | # implicitly export all symbols. | |
10420 | save_LDFLAGS="$LDFLAGS" | |
10421 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
81ecdfbb RW |
10422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10423 | /* end confdefs.h. */ | |
ce2cded5 L |
10424 | int foo(void) {} |
10425 | _ACEOF | |
81ecdfbb | 10426 | if ac_fn_c_try_link "$LINENO"; then : |
3725885a | 10427 | 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 | 10428 | |
ce2cded5 | 10429 | fi |
81ecdfbb RW |
10430 | rm -f core conftest.err conftest.$ac_objext \ |
10431 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10432 | LDFLAGS="$save_LDFLAGS" |
10433 | else | |
3725885a RW |
10434 | 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' |
10435 | 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 |
10436 | fi |
10437 | archive_cmds_need_lc='no' | |
10438 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10439 | hardcode_libdir_separator=: | |
10440 | inherit_rpath=yes | |
10441 | link_all_deplibs=yes | |
10442 | ;; | |
d7040cdb | 10443 | |
ce2cded5 L |
10444 | netbsd*) |
10445 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10446 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10447 | else | |
10448 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10449 | fi | |
10450 | hardcode_libdir_flag_spec='-R$libdir' | |
10451 | hardcode_direct=yes | |
10452 | hardcode_shlibpath_var=no | |
10453 | ;; | |
d7040cdb | 10454 | |
ce2cded5 L |
10455 | newsos6) |
10456 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10457 | hardcode_direct=yes | |
10458 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10459 | hardcode_libdir_separator=: | |
10460 | hardcode_shlibpath_var=no | |
10461 | ;; | |
d7040cdb | 10462 | |
ce2cded5 L |
10463 | *nto* | *qnx*) |
10464 | ;; | |
d7040cdb | 10465 | |
ce2cded5 | 10466 | openbsd*) |
b214d478 SE |
10467 | if test -f /usr/libexec/ld.so; then |
10468 | hardcode_direct=yes | |
10469 | hardcode_shlibpath_var=no | |
10470 | hardcode_direct_absolute=yes | |
10471 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
ce2cded5 | 10472 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
b214d478 | 10473 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
ce2cded5 | 10474 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
b214d478 SE |
10475 | export_dynamic_flag_spec='${wl}-E' |
10476 | else | |
10477 | case $host_os in | |
10478 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10479 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10480 | hardcode_libdir_flag_spec='-R$libdir' | |
10481 | ;; | |
10482 | *) | |
10483 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10484 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10485 | ;; | |
10486 | esac | |
10487 | fi | |
10488 | else | |
10489 | ld_shlibs=no | |
ce2cded5 L |
10490 | fi |
10491 | ;; | |
d7040cdb | 10492 | |
ce2cded5 L |
10493 | os2*) |
10494 | hardcode_libdir_flag_spec='-L$libdir' | |
10495 | hardcode_minus_L=yes | |
10496 | allow_undefined_flag=unsupported | |
3725885a | 10497 | 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 |
10498 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
10499 | ;; | |
d7040cdb | 10500 | |
ce2cded5 L |
10501 | osf3*) |
10502 | if test "$GCC" = yes; then | |
10503 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 10504 | 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 |
10505 | else |
10506 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 10507 | 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 |
10508 | fi |
10509 | archive_cmds_need_lc='no' | |
10510 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10511 | hardcode_libdir_separator=: | |
10512 | ;; | |
d7040cdb | 10513 | |
ce2cded5 L |
10514 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
10515 | if test "$GCC" = yes; then | |
10516 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 10517 | 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 |
10518 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10519 | else | |
10520 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 10521 | 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 | 10522 | 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 | 10523 | $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 | 10524 | |
ce2cded5 L |
10525 | # Both c and cxx compiler support -rpath directly |
10526 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10527 | fi | |
10528 | archive_cmds_need_lc='no' | |
10529 | hardcode_libdir_separator=: | |
10530 | ;; | |
d7040cdb | 10531 | |
ce2cded5 L |
10532 | solaris*) |
10533 | no_undefined_flag=' -z defs' | |
10534 | if test "$GCC" = yes; then | |
10535 | wlarc='${wl}' | |
10536 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10537 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10538 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10539 | else | |
10540 | case `$CC -V 2>&1` in | |
10541 | *"Compilers 5.0"*) | |
10542 | wlarc='' | |
10543 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10544 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10545 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10546 | ;; | |
10547 | *) | |
10548 | wlarc='${wl}' | |
10549 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10550 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10551 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10552 | ;; | |
10553 | esac | |
10554 | fi | |
10555 | hardcode_libdir_flag_spec='-R$libdir' | |
10556 | hardcode_shlibpath_var=no | |
10557 | case $host_os in | |
10558 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10559 | *) | |
10560 | # The compiler driver will combine and reorder linker options, | |
10561 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10562 | # but is careful enough not to reorder. | |
10563 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10564 | if test "$GCC" = yes; then | |
10565 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10566 | else | |
10567 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10568 | fi | |
10569 | ;; | |
10570 | esac | |
10571 | link_all_deplibs=yes | |
10572 | ;; | |
d7040cdb | 10573 | |
ce2cded5 L |
10574 | sunos4*) |
10575 | if test "x$host_vendor" = xsequent; then | |
10576 | # Use $CC to link under sequent, because it throws in some extra .o | |
10577 | # files that make .init and .fini sections work. | |
10578 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10579 | else | |
10580 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10581 | fi | |
10582 | hardcode_libdir_flag_spec='-L$libdir' | |
10583 | hardcode_direct=yes | |
10584 | hardcode_minus_L=yes | |
10585 | hardcode_shlibpath_var=no | |
10586 | ;; | |
d7040cdb | 10587 | |
ce2cded5 L |
10588 | sysv4) |
10589 | case $host_vendor in | |
10590 | sni) | |
10591 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10592 | hardcode_direct=yes # is this really true??? | |
10593 | ;; | |
10594 | siemens) | |
10595 | ## LD is ld it makes a PLAMLIB | |
10596 | ## CC just makes a GrossModule. | |
10597 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10598 | reload_cmds='$CC -r -o $output$reload_objs' | |
10599 | hardcode_direct=no | |
10600 | ;; | |
10601 | motorola) | |
10602 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10603 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10604 | ;; | |
10605 | esac | |
10606 | runpath_var='LD_RUN_PATH' | |
10607 | hardcode_shlibpath_var=no | |
10608 | ;; | |
d7040cdb | 10609 | |
ce2cded5 L |
10610 | sysv4.3*) |
10611 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10612 | hardcode_shlibpath_var=no | |
10613 | export_dynamic_flag_spec='-Bexport' | |
10614 | ;; | |
d7040cdb | 10615 | |
ce2cded5 L |
10616 | sysv4*MP*) |
10617 | if test -d /usr/nec; then | |
10618 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10619 | hardcode_shlibpath_var=no | |
10620 | runpath_var=LD_RUN_PATH | |
10621 | hardcode_runpath_var=yes | |
10622 | ld_shlibs=yes | |
10623 | fi | |
10624 | ;; | |
d7040cdb | 10625 | |
ce2cded5 L |
10626 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10627 | no_undefined_flag='${wl}-z,text' | |
10628 | archive_cmds_need_lc=no | |
10629 | hardcode_shlibpath_var=no | |
10630 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 10631 | |
ce2cded5 L |
10632 | if test "$GCC" = yes; then |
10633 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10634 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10635 | else | |
10636 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10637 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10638 | fi | |
10639 | ;; | |
d7040cdb | 10640 | |
ce2cded5 L |
10641 | sysv5* | sco3.2v5* | sco5v6*) |
10642 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10643 | # link with -lc, and that would cause any symbols used from libc to | |
10644 | # always be unresolved, which means just about no library would | |
10645 | # ever link correctly. If we're not using GNU ld we use -z text | |
10646 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10647 | # as -z defs. | |
10648 | no_undefined_flag='${wl}-z,text' | |
10649 | allow_undefined_flag='${wl}-z,nodefs' | |
10650 | archive_cmds_need_lc=no | |
10651 | hardcode_shlibpath_var=no | |
10652 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10653 | hardcode_libdir_separator=':' | |
10654 | link_all_deplibs=yes | |
10655 | export_dynamic_flag_spec='${wl}-Bexport' | |
10656 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 10657 | |
ce2cded5 L |
10658 | if test "$GCC" = yes; then |
10659 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10660 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10661 | else | |
10662 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10663 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10664 | fi | |
10665 | ;; | |
d7040cdb | 10666 | |
ce2cded5 L |
10667 | uts4*) |
10668 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10669 | hardcode_libdir_flag_spec='-L$libdir' | |
10670 | hardcode_shlibpath_var=no | |
10671 | ;; | |
d7040cdb | 10672 | |
ce2cded5 L |
10673 | *) |
10674 | ld_shlibs=no | |
10675 | ;; | |
10676 | esac | |
d7040cdb | 10677 | |
ce2cded5 L |
10678 | if test x$host_vendor = xsni; then |
10679 | case $host in | |
10680 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10681 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10682 | ;; | |
10683 | esac | |
10684 | fi | |
10685 | fi | |
d7040cdb | 10686 | |
81ecdfbb RW |
10687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10688 | $as_echo "$ld_shlibs" >&6; } | |
ce2cded5 | 10689 | test "$ld_shlibs" = no && can_build_shared=no |
d7040cdb | 10690 | |
ce2cded5 | 10691 | with_gnu_ld=$with_gnu_ld |
d7040cdb SE |
10692 | |
10693 | ||
10694 | ||
10695 | ||
10696 | ||
10697 | ||
10698 | ||
10699 | ||
10700 | ||
10701 | ||
10702 | ||
10703 | ||
10704 | ||
10705 | ||
10706 | ||
ce2cded5 L |
10707 | # |
10708 | # Do we need to explicitly link libc? | |
10709 | # | |
10710 | case "x$archive_cmds_need_lc" in | |
10711 | x|xyes) | |
10712 | # Assume -lc should be added | |
10713 | archive_cmds_need_lc=yes | |
d7040cdb | 10714 | |
ce2cded5 L |
10715 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
10716 | case $archive_cmds in | |
10717 | *'~'*) | |
10718 | # FIXME: we may have to deal with multi-command sequences. | |
10719 | ;; | |
10720 | '$CC '*) | |
10721 | # Test whether the compiler implicitly links with -lc since on some | |
10722 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10723 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
10724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10725 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
d0ac1c44 | 10726 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
81ecdfbb | 10727 | $as_echo_n "(cached) " >&6 |
39144654 RW |
10728 | else |
10729 | $RM conftest* | |
10730 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 10731 | |
81ecdfbb | 10732 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
ce2cded5 L |
10733 | (eval $ac_compile) 2>&5 |
10734 | ac_status=$? | |
81ecdfbb RW |
10735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10736 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
10737 | soname=conftest |
10738 | lib=conftest | |
10739 | libobjs=conftest.$ac_objext | |
10740 | deplibs= | |
10741 | wl=$lt_prog_compiler_wl | |
10742 | pic_flag=$lt_prog_compiler_pic | |
10743 | compiler_flags=-v | |
10744 | linker_flags=-v | |
10745 | verstring= | |
10746 | output_objdir=. | |
10747 | libname=conftest | |
10748 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10749 | allow_undefined_flag= | |
81ecdfbb | 10750 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
ce2cded5 L |
10751 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10752 | ac_status=$? | |
81ecdfbb RW |
10753 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10754 | test $ac_status = 0; } | |
39144654 RW |
10755 | then |
10756 | lt_cv_archive_cmds_need_lc=no | |
10757 | else | |
10758 | lt_cv_archive_cmds_need_lc=yes | |
10759 | fi | |
10760 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10761 | else | |
10762 | cat conftest.err 1>&5 | |
10763 | fi | |
10764 | $RM conftest* | |
10765 | ||
10766 | fi | |
81ecdfbb RW |
10767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10768 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 10769 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
ce2cded5 L |
10770 | ;; |
10771 | esac | |
10772 | fi | |
10773 | ;; | |
10774 | esac | |
d7040cdb SE |
10775 | |
10776 | ||
10777 | ||
10778 | ||
10779 | ||
10780 | ||
10781 | ||
10782 | ||
10783 | ||
10784 | ||
10785 | ||
10786 | ||
10787 | ||
10788 | ||
10789 | ||
10790 | ||
10791 | ||
10792 | ||
10793 | ||
10794 | ||
10795 | ||
10796 | ||
10797 | ||
10798 | ||
10799 | ||
10800 | ||
10801 | ||
d7040cdb | 10802 | |
d7040cdb | 10803 | |
d7040cdb SE |
10804 | |
10805 | ||
10806 | ||
10807 | ||
10808 | ||
10809 | ||
d7040cdb | 10810 | |
d7040cdb | 10811 | |
d7040cdb | 10812 | |
d7040cdb | 10813 | |
d7040cdb | 10814 | |
d7040cdb | 10815 | |
d7040cdb | 10816 | |
d7040cdb | 10817 | |
d7040cdb | 10818 | |
d7040cdb | 10819 | |
d7040cdb | 10820 | |
d7040cdb | 10821 | |
d7040cdb | 10822 | |
d7040cdb | 10823 | |
d7040cdb | 10824 | |
d7040cdb | 10825 | |
d7040cdb | 10826 | |
d7040cdb | 10827 | |
d7040cdb | 10828 | |
d7040cdb | 10829 | |
d7040cdb | 10830 | |
d7040cdb | 10831 | |
d7040cdb | 10832 | |
d7040cdb | 10833 | |
d7040cdb | 10834 | |
d7040cdb | 10835 | |
d7040cdb | 10836 | |
d7040cdb | 10837 | |
ce2cded5 L |
10838 | |
10839 | ||
10840 | ||
10841 | ||
10842 | ||
10843 | ||
10844 | ||
10845 | ||
10846 | ||
10847 | ||
10848 | ||
10849 | ||
10850 | ||
10851 | ||
10852 | ||
10853 | ||
10854 | ||
10855 | ||
10856 | ||
10857 | ||
10858 | ||
10859 | ||
10860 | ||
10861 | ||
10862 | ||
10863 | ||
10864 | ||
10865 | ||
10866 | ||
10867 | ||
10868 | ||
10869 | ||
10870 | ||
10871 | ||
10872 | ||
10873 | ||
10874 | ||
10875 | ||
10876 | ||
10877 | ||
10878 | ||
10879 | ||
10880 | ||
10881 | ||
10882 | ||
10883 | ||
10884 | ||
10885 | ||
10886 | ||
10887 | ||
10888 | ||
10889 | ||
10890 | ||
10891 | ||
10892 | ||
10893 | ||
10894 | ||
10895 | ||
10896 | ||
10897 | ||
10898 | ||
10899 | ||
10900 | ||
10901 | ||
10902 | ||
10903 | ||
10904 | ||
10905 | ||
10906 | ||
10907 | ||
10908 | ||
10909 | ||
10910 | ||
10911 | ||
10912 | ||
10913 | ||
10914 | ||
10915 | ||
10916 | ||
10917 | ||
10918 | ||
10919 | ||
10920 | ||
10921 | ||
10922 | ||
10923 | ||
10924 | ||
10925 | ||
10926 | ||
10927 | ||
10928 | ||
10929 | ||
10930 | ||
10931 | ||
81ecdfbb RW |
10932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10933 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
b214d478 SE |
10934 | |
10935 | if test "$GCC" = yes; then | |
ce2cded5 L |
10936 | case $host_os in |
10937 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10938 | *) lt_awk_arg="/^libraries:/" ;; | |
10939 | esac | |
3725885a RW |
10940 | case $host_os in |
10941 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10942 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10943 | esac | |
10944 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10945 | case $lt_search_path_spec in | |
10946 | *\;*) | |
ce2cded5 L |
10947 | # if the path contains ";" then we assume it to be the separator |
10948 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10949 | # assumed that no part of a normal pathname contains ";" but that should | |
10950 | # okay in the real world where ";" in dirpaths is itself problematic. | |
3725885a RW |
10951 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10952 | ;; | |
10953 | *) | |
10954 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10955 | ;; | |
10956 | esac | |
ce2cded5 L |
10957 | # Ok, now we have the path, separated by spaces, we can step through it |
10958 | # and add multilib dir if necessary. | |
10959 | lt_tmp_lt_search_path_spec= | |
10960 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10961 | for lt_sys_path in $lt_search_path_spec; do | |
10962 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10963 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10964 | else | |
10965 | test -d "$lt_sys_path" && \ | |
10966 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10967 | fi | |
10968 | done | |
3725885a | 10969 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
ce2cded5 L |
10970 | BEGIN {RS=" "; FS="/|\n";} { |
10971 | lt_foo=""; | |
10972 | lt_count=0; | |
10973 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10974 | if ($lt_i != "" && $lt_i != ".") { | |
10975 | if ($lt_i == "..") { | |
10976 | lt_count++; | |
10977 | } else { | |
10978 | if (lt_count == 0) { | |
10979 | lt_foo="/" $lt_i lt_foo; | |
10980 | } else { | |
10981 | lt_count--; | |
10982 | } | |
10983 | } | |
10984 | } | |
10985 | } | |
10986 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10987 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10988 | }'` | |
3725885a RW |
10989 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10990 | # for these hosts. | |
10991 | case $host_os in | |
10992 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10993 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10994 | esac | |
10995 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
d7040cdb | 10996 | else |
ce2cded5 L |
10997 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10998 | fi | |
10999 | library_names_spec= | |
11000 | libname_spec='lib$name' | |
11001 | soname_spec= | |
11002 | shrext_cmds=".so" | |
11003 | postinstall_cmds= | |
11004 | postuninstall_cmds= | |
11005 | finish_cmds= | |
11006 | finish_eval= | |
11007 | shlibpath_var= | |
11008 | shlibpath_overrides_runpath=unknown | |
11009 | version_type=none | |
11010 | dynamic_linker="$host_os ld.so" | |
11011 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11012 | need_lib_prefix=unknown | |
11013 | hardcode_into_libs=no | |
11014 | ||
11015 | # when you set need_version to no, make sure it does not cause -set_version | |
11016 | # flags to be left without arguments | |
11017 | need_version=unknown | |
11018 | ||
11019 | case $host_os in | |
11020 | aix3*) | |
11021 | version_type=linux | |
11022 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11023 | shlibpath_var=LIBPATH | |
11024 | ||
11025 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11026 | soname_spec='${libname}${release}${shared_ext}$major' | |
11027 | ;; | |
11028 | ||
50e7d84b | 11029 | aix[4-9]*) |
ce2cded5 L |
11030 | version_type=linux |
11031 | need_lib_prefix=no | |
11032 | need_version=no | |
11033 | hardcode_into_libs=yes | |
11034 | if test "$host_cpu" = ia64; then | |
11035 | # AIX 5 supports IA64 | |
11036 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11037 | shlibpath_var=LD_LIBRARY_PATH | |
11038 | else | |
11039 | # With GCC up to 2.95.x, collect2 would create an import file | |
11040 | # for dependence libraries. The import file would start with | |
11041 | # the line `#! .'. This would cause the generated library to | |
11042 | # depend on `.', always an invalid library. This was fixed in | |
11043 | # development snapshots of GCC prior to 3.0. | |
11044 | case $host_os in | |
11045 | aix4 | aix4.[01] | aix4.[01].*) | |
11046 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11047 | echo ' yes ' | |
11048 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11049 | : | |
11050 | else | |
11051 | can_build_shared=no | |
11052 | fi | |
11053 | ;; | |
11054 | esac | |
11055 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11056 | # soname into executable. Probably we can add versioning support to | |
11057 | # collect2, so additional links can be useful in future. | |
11058 | if test "$aix_use_runtimelinking" = yes; then | |
11059 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11060 | # instead of lib<name>.a to let people know that these are not | |
11061 | # typical AIX shared libraries. | |
11062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11063 | else | |
11064 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11065 | # and later when we are not doing run time linking. | |
11066 | library_names_spec='${libname}${release}.a $libname.a' | |
11067 | soname_spec='${libname}${release}${shared_ext}$major' | |
11068 | fi | |
11069 | shlibpath_var=LIBPATH | |
11070 | fi | |
11071 | ;; | |
11072 | ||
11073 | amigaos*) | |
b214d478 SE |
11074 | case $host_cpu in |
11075 | powerpc) | |
11076 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11077 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11078 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11079 | ;; | |
11080 | m68k) | |
ce2cded5 L |
11081 | library_names_spec='$libname.ixlibrary $libname.a' |
11082 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
3725885a | 11083 | 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 |
11084 | ;; |
11085 | esac | |
ce2cded5 L |
11086 | ;; |
11087 | ||
11088 | beos*) | |
11089 | library_names_spec='${libname}${shared_ext}' | |
11090 | dynamic_linker="$host_os ld.so" | |
11091 | shlibpath_var=LIBRARY_PATH | |
11092 | ;; | |
11093 | ||
11094 | bsdi[45]*) | |
11095 | version_type=linux | |
11096 | need_version=no | |
11097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11098 | soname_spec='${libname}${release}${shared_ext}$major' | |
11099 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11100 | shlibpath_var=LD_LIBRARY_PATH | |
11101 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11102 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11103 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11104 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11105 | # libtool to hard-code these into programs | |
11106 | ;; | |
11107 | ||
b214d478 | 11108 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
11109 | version_type=windows |
11110 | shrext_cmds=".dll" | |
11111 | need_version=no | |
11112 | need_lib_prefix=no | |
11113 | ||
b214d478 SE |
11114 | case $GCC,$host_os in |
11115 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
ce2cded5 L |
11116 | library_names_spec='$libname.dll.a' |
11117 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11118 | postinstall_cmds='base_file=`basename \${file}`~ | |
11119 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11120 | dldir=$destdir/`dirname \$dlpath`~ | |
11121 | test -d \$dldir || mkdir -p \$dldir~ | |
11122 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11123 | chmod a+x \$dldir/$dlname~ | |
11124 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11125 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11126 | fi' | |
11127 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11128 | dlpath=$dir/\$dldll~ | |
11129 | $RM \$dlpath' | |
11130 | shlibpath_overrides_runpath=yes | |
11131 | ||
11132 | case $host_os in | |
11133 | cygwin*) | |
11134 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11135 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
3725885a RW |
11136 | |
11137 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
ce2cded5 | 11138 | ;; |
b214d478 | 11139 | mingw* | cegcc*) |
ce2cded5 L |
11140 | # MinGW DLLs use traditional 'lib' prefix |
11141 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
ce2cded5 L |
11142 | ;; |
11143 | pw32*) | |
11144 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11145 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11146 | ;; | |
11147 | esac | |
11148 | ;; | |
11149 | ||
11150 | *) | |
11151 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11152 | ;; | |
11153 | esac | |
11154 | dynamic_linker='Win32 ld.exe' | |
11155 | # FIXME: first we should search . and the directory the executable is in | |
11156 | shlibpath_var=PATH | |
11157 | ;; | |
11158 | ||
11159 | darwin* | rhapsody*) | |
11160 | dynamic_linker="$host_os dyld" | |
11161 | version_type=darwin | |
11162 | need_lib_prefix=no | |
11163 | need_version=no | |
11164 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11165 | soname_spec='${libname}${release}${major}$shared_ext' | |
11166 | shlibpath_overrides_runpath=yes | |
11167 | shlibpath_var=DYLD_LIBRARY_PATH | |
11168 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11169 | ||
11170 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11171 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11172 | ;; | |
11173 | ||
11174 | dgux*) | |
11175 | version_type=linux | |
11176 | need_lib_prefix=no | |
11177 | need_version=no | |
11178 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11179 | soname_spec='${libname}${release}${shared_ext}$major' | |
11180 | shlibpath_var=LD_LIBRARY_PATH | |
11181 | ;; | |
11182 | ||
ce2cded5 L |
11183 | freebsd* | dragonfly*) |
11184 | # DragonFly does not have aout. When/if they implement a new | |
11185 | # versioning mechanism, adjust this. | |
11186 | if test -x /usr/bin/objformat; then | |
11187 | objformat=`/usr/bin/objformat` | |
11188 | else | |
11189 | case $host_os in | |
6d2920c8 | 11190 | freebsd[23].*) objformat=aout ;; |
ce2cded5 L |
11191 | *) objformat=elf ;; |
11192 | esac | |
11193 | fi | |
11194 | version_type=freebsd-$objformat | |
11195 | case $version_type in | |
11196 | freebsd-elf*) | |
11197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11198 | need_version=no | |
11199 | need_lib_prefix=no | |
11200 | ;; | |
11201 | freebsd-*) | |
11202 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11203 | need_version=yes | |
11204 | ;; | |
11205 | esac | |
11206 | shlibpath_var=LD_LIBRARY_PATH | |
11207 | case $host_os in | |
6d2920c8 | 11208 | freebsd2.*) |
ce2cded5 L |
11209 | shlibpath_overrides_runpath=yes |
11210 | ;; | |
11211 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11212 | shlibpath_overrides_runpath=yes | |
11213 | hardcode_into_libs=yes | |
11214 | ;; | |
11215 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11216 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11217 | shlibpath_overrides_runpath=no | |
11218 | hardcode_into_libs=yes | |
11219 | ;; | |
11220 | *) # from 4.6 on, and DragonFly | |
11221 | shlibpath_overrides_runpath=yes | |
11222 | hardcode_into_libs=yes | |
11223 | ;; | |
11224 | esac | |
11225 | ;; | |
11226 | ||
11227 | gnu*) | |
11228 | version_type=linux | |
11229 | need_lib_prefix=no | |
11230 | need_version=no | |
11231 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11232 | soname_spec='${libname}${release}${shared_ext}$major' | |
11233 | shlibpath_var=LD_LIBRARY_PATH | |
11234 | hardcode_into_libs=yes | |
11235 | ;; | |
11236 | ||
3725885a RW |
11237 | haiku*) |
11238 | version_type=linux | |
11239 | need_lib_prefix=no | |
11240 | need_version=no | |
11241 | dynamic_linker="$host_os runtime_loader" | |
11242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11243 | soname_spec='${libname}${release}${shared_ext}$major' | |
11244 | shlibpath_var=LIBRARY_PATH | |
11245 | shlibpath_overrides_runpath=yes | |
11246 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
11247 | hardcode_into_libs=yes | |
11248 | ;; | |
11249 | ||
ce2cded5 L |
11250 | hpux9* | hpux10* | hpux11*) |
11251 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11252 | # link against other versions. | |
11253 | version_type=sunos | |
11254 | need_lib_prefix=no | |
11255 | need_version=no | |
11256 | case $host_cpu in | |
11257 | ia64*) | |
11258 | shrext_cmds='.so' | |
11259 | hardcode_into_libs=yes | |
11260 | dynamic_linker="$host_os dld.so" | |
11261 | shlibpath_var=LD_LIBRARY_PATH | |
11262 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11264 | soname_spec='${libname}${release}${shared_ext}$major' | |
11265 | if test "X$HPUX_IA64_MODE" = X32; then | |
11266 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11267 | else | |
11268 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11269 | fi | |
11270 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11271 | ;; | |
11272 | hppa*64*) | |
11273 | shrext_cmds='.sl' | |
11274 | hardcode_into_libs=yes | |
11275 | dynamic_linker="$host_os dld.sl" | |
11276 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11277 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11278 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11279 | soname_spec='${libname}${release}${shared_ext}$major' | |
11280 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11281 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11282 | ;; | |
11283 | *) | |
11284 | shrext_cmds='.sl' | |
11285 | dynamic_linker="$host_os dld.sl" | |
11286 | shlibpath_var=SHLIB_PATH | |
11287 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11288 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11289 | soname_spec='${libname}${release}${shared_ext}$major' | |
11290 | ;; | |
11291 | esac | |
3725885a | 11292 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
ce2cded5 | 11293 | postinstall_cmds='chmod 555 $lib' |
3725885a RW |
11294 | # or fails outright, so override atomically: |
11295 | install_override_mode=555 | |
ce2cded5 L |
11296 | ;; |
11297 | ||
11298 | interix[3-9]*) | |
11299 | version_type=linux | |
11300 | need_lib_prefix=no | |
11301 | need_version=no | |
11302 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11303 | soname_spec='${libname}${release}${shared_ext}$major' | |
11304 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11305 | shlibpath_var=LD_LIBRARY_PATH | |
11306 | shlibpath_overrides_runpath=no | |
11307 | hardcode_into_libs=yes | |
11308 | ;; | |
11309 | ||
11310 | irix5* | irix6* | nonstopux*) | |
11311 | case $host_os in | |
11312 | nonstopux*) version_type=nonstopux ;; | |
11313 | *) | |
11314 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11315 | version_type=linux | |
11316 | else | |
11317 | version_type=irix | |
11318 | fi ;; | |
11319 | esac | |
11320 | need_lib_prefix=no | |
11321 | need_version=no | |
11322 | soname_spec='${libname}${release}${shared_ext}$major' | |
11323 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11324 | case $host_os in | |
11325 | irix5* | nonstopux*) | |
11326 | libsuff= shlibsuff= | |
11327 | ;; | |
11328 | *) | |
11329 | case $LD in # libtool.m4 will add one of these switches to LD | |
11330 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11331 | libsuff= shlibsuff= libmagic=32-bit;; | |
11332 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11333 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11334 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11335 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11336 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11337 | esac | |
11338 | ;; | |
11339 | esac | |
11340 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11341 | shlibpath_overrides_runpath=no | |
11342 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11343 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11344 | hardcode_into_libs=yes | |
11345 | ;; | |
11346 | ||
11347 | # No shared lib support for Linux oldld, aout, or coff. | |
11348 | linux*oldld* | linux*aout* | linux*coff*) | |
11349 | dynamic_linker=no | |
11350 | ;; | |
11351 | ||
11352 | # This must be Linux ELF. | |
58e24671 | 11353 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
11354 | version_type=linux |
11355 | need_lib_prefix=no | |
11356 | need_version=no | |
11357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11358 | soname_spec='${libname}${release}${shared_ext}$major' | |
11359 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11360 | shlibpath_var=LD_LIBRARY_PATH | |
11361 | shlibpath_overrides_runpath=no | |
39144654 | 11362 | |
ce2cded5 | 11363 | # Some binutils ld are patched to set DT_RUNPATH |
d0ac1c44 | 11364 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
81ecdfbb | 11365 | $as_echo_n "(cached) " >&6 |
39144654 RW |
11366 | else |
11367 | lt_cv_shlibpath_overrides_runpath=no | |
11368 | save_LDFLAGS=$LDFLAGS | |
11369 | save_libdir=$libdir | |
11370 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11371 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 11372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
11373 | /* end confdefs.h. */ |
11374 | ||
d7040cdb SE |
11375 | int |
11376 | main () | |
11377 | { | |
ce2cded5 | 11378 | |
d7040cdb SE |
11379 | ; |
11380 | return 0; | |
11381 | } | |
11382 | _ACEOF | |
81ecdfbb RW |
11383 | if ac_fn_c_try_link "$LINENO"; then : |
11384 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 11385 | lt_cv_shlibpath_overrides_runpath=yes |
d7040cdb | 11386 | fi |
d7040cdb | 11387 | fi |
81ecdfbb RW |
11388 | rm -f core conftest.err conftest.$ac_objext \ |
11389 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
11390 | LDFLAGS=$save_LDFLAGS |
11391 | libdir=$save_libdir | |
11392 | ||
11393 | fi | |
11394 | ||
11395 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
d7040cdb | 11396 | |
ce2cded5 L |
11397 | # This implies no fast_install, which is unacceptable. |
11398 | # Some rework will be needed to allow for fast_install | |
11399 | # before this can be enabled. | |
11400 | hardcode_into_libs=yes | |
d7040cdb | 11401 | |
ce2cded5 L |
11402 | # Append ld.so.conf contents to the search path |
11403 | if test -f /etc/ld.so.conf; then | |
3725885a | 11404 | 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 |
11405 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
11406 | fi | |
d7040cdb | 11407 | |
ce2cded5 L |
11408 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11409 | # powerpc, because MkLinux only supported shared libraries with the | |
11410 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11411 | # most powerpc-linux boxes support dynamic linking these days and | |
11412 | # people can always --disable-shared, the test was removed, and we | |
11413 | # assume the GNU/Linux dynamic linker is in use. | |
11414 | dynamic_linker='GNU/Linux ld.so' | |
11415 | ;; | |
d7040cdb | 11416 | |
ce2cded5 L |
11417 | netbsd*) |
11418 | version_type=sunos | |
11419 | need_lib_prefix=no | |
11420 | need_version=no | |
11421 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11422 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11423 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11424 | dynamic_linker='NetBSD (a.out) ld.so' | |
11425 | else | |
11426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11427 | soname_spec='${libname}${release}${shared_ext}$major' | |
11428 | dynamic_linker='NetBSD ld.elf_so' | |
11429 | fi | |
11430 | shlibpath_var=LD_LIBRARY_PATH | |
11431 | shlibpath_overrides_runpath=yes | |
11432 | hardcode_into_libs=yes | |
11433 | ;; | |
d7040cdb | 11434 | |
ce2cded5 L |
11435 | newsos6) |
11436 | version_type=linux | |
11437 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11438 | shlibpath_var=LD_LIBRARY_PATH | |
11439 | shlibpath_overrides_runpath=yes | |
11440 | ;; | |
d7040cdb | 11441 | |
ce2cded5 L |
11442 | *nto* | *qnx*) |
11443 | version_type=qnx | |
11444 | need_lib_prefix=no | |
11445 | need_version=no | |
11446 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11447 | soname_spec='${libname}${release}${shared_ext}$major' | |
11448 | shlibpath_var=LD_LIBRARY_PATH | |
11449 | shlibpath_overrides_runpath=no | |
11450 | hardcode_into_libs=yes | |
11451 | dynamic_linker='ldqnx.so' | |
11452 | ;; | |
d7040cdb | 11453 | |
ce2cded5 L |
11454 | openbsd*) |
11455 | version_type=sunos | |
11456 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11457 | need_lib_prefix=no | |
11458 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11459 | case $host_os in | |
11460 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11461 | *) need_version=no ;; | |
11462 | esac | |
11463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11464 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11465 | shlibpath_var=LD_LIBRARY_PATH | |
11466 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11467 | case $host_os in | |
11468 | openbsd2.[89] | openbsd2.[89].*) | |
11469 | shlibpath_overrides_runpath=no | |
11470 | ;; | |
11471 | *) | |
11472 | shlibpath_overrides_runpath=yes | |
11473 | ;; | |
11474 | esac | |
11475 | else | |
11476 | shlibpath_overrides_runpath=yes | |
11477 | fi | |
11478 | ;; | |
d7040cdb | 11479 | |
ce2cded5 L |
11480 | os2*) |
11481 | libname_spec='$name' | |
11482 | shrext_cmds=".dll" | |
11483 | need_lib_prefix=no | |
11484 | library_names_spec='$libname${shared_ext} $libname.a' | |
11485 | dynamic_linker='OS/2 ld.exe' | |
11486 | shlibpath_var=LIBPATH | |
11487 | ;; | |
d7040cdb | 11488 | |
ce2cded5 L |
11489 | osf3* | osf4* | osf5*) |
11490 | version_type=osf | |
11491 | need_lib_prefix=no | |
11492 | need_version=no | |
11493 | soname_spec='${libname}${release}${shared_ext}$major' | |
11494 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11495 | shlibpath_var=LD_LIBRARY_PATH | |
11496 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11497 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11498 | ;; | |
d7040cdb | 11499 | |
ce2cded5 L |
11500 | rdos*) |
11501 | dynamic_linker=no | |
11502 | ;; | |
d7040cdb | 11503 | |
ce2cded5 L |
11504 | solaris*) |
11505 | version_type=linux | |
11506 | need_lib_prefix=no | |
11507 | need_version=no | |
11508 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11509 | soname_spec='${libname}${release}${shared_ext}$major' | |
11510 | shlibpath_var=LD_LIBRARY_PATH | |
11511 | shlibpath_overrides_runpath=yes | |
11512 | hardcode_into_libs=yes | |
11513 | # ldd complains unless libraries are executable | |
11514 | postinstall_cmds='chmod +x $lib' | |
11515 | ;; | |
d7040cdb | 11516 | |
ce2cded5 L |
11517 | sunos4*) |
11518 | version_type=sunos | |
11519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11520 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11521 | shlibpath_var=LD_LIBRARY_PATH | |
11522 | shlibpath_overrides_runpath=yes | |
11523 | if test "$with_gnu_ld" = yes; then | |
11524 | need_lib_prefix=no | |
11525 | fi | |
11526 | need_version=yes | |
11527 | ;; | |
d7040cdb | 11528 | |
ce2cded5 L |
11529 | sysv4 | sysv4.3*) |
11530 | version_type=linux | |
11531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11532 | soname_spec='${libname}${release}${shared_ext}$major' | |
11533 | shlibpath_var=LD_LIBRARY_PATH | |
11534 | case $host_vendor in | |
11535 | sni) | |
11536 | shlibpath_overrides_runpath=no | |
11537 | need_lib_prefix=no | |
11538 | runpath_var=LD_RUN_PATH | |
11539 | ;; | |
11540 | siemens) | |
11541 | need_lib_prefix=no | |
11542 | ;; | |
11543 | motorola) | |
11544 | need_lib_prefix=no | |
11545 | need_version=no | |
11546 | shlibpath_overrides_runpath=no | |
11547 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11548 | ;; | |
11549 | esac | |
11550 | ;; | |
d7040cdb | 11551 | |
ce2cded5 L |
11552 | sysv4*MP*) |
11553 | if test -d /usr/nec ;then | |
11554 | version_type=linux | |
11555 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11556 | soname_spec='$libname${shared_ext}.$major' | |
11557 | shlibpath_var=LD_LIBRARY_PATH | |
11558 | fi | |
11559 | ;; | |
d7040cdb | 11560 | |
ce2cded5 L |
11561 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11562 | version_type=freebsd-elf | |
11563 | need_lib_prefix=no | |
11564 | need_version=no | |
11565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11566 | soname_spec='${libname}${release}${shared_ext}$major' | |
11567 | shlibpath_var=LD_LIBRARY_PATH | |
11568 | shlibpath_overrides_runpath=yes | |
11569 | hardcode_into_libs=yes | |
11570 | if test "$with_gnu_ld" = yes; then | |
11571 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11572 | else | |
11573 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11574 | case $host_os in | |
11575 | sco3.2v5*) | |
11576 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11577 | ;; | |
11578 | esac | |
11579 | fi | |
11580 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11581 | ;; | |
d7040cdb | 11582 | |
ce2cded5 L |
11583 | tpf*) |
11584 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11585 | version_type=linux | |
11586 | need_lib_prefix=no | |
11587 | need_version=no | |
b214d478 | 11588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
ce2cded5 L |
11589 | shlibpath_var=LD_LIBRARY_PATH |
11590 | shlibpath_overrides_runpath=no | |
11591 | hardcode_into_libs=yes | |
11592 | ;; | |
d7040cdb | 11593 | |
ce2cded5 L |
11594 | uts4*) |
11595 | version_type=linux | |
11596 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11597 | soname_spec='${libname}${release}${shared_ext}$major' | |
11598 | shlibpath_var=LD_LIBRARY_PATH | |
11599 | ;; | |
d7040cdb | 11600 | |
ce2cded5 L |
11601 | *) |
11602 | dynamic_linker=no | |
11603 | ;; | |
11604 | esac | |
81ecdfbb RW |
11605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11606 | $as_echo "$dynamic_linker" >&6; } | |
ce2cded5 L |
11607 | test "$dynamic_linker" = no && can_build_shared=no |
11608 | ||
11609 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11610 | if test "$GCC" = yes; then | |
11611 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb SE |
11612 | fi |
11613 | ||
b214d478 SE |
11614 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11615 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11616 | fi | |
11617 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11618 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11619 | fi | |
11620 | ||
d7040cdb SE |
11621 | |
11622 | ||
11623 | ||
11624 | ||
11625 | ||
11626 | ||
11627 | ||
11628 | ||
11629 | ||
11630 | ||
11631 | ||
d7040cdb | 11632 | |
d7040cdb | 11633 | |
d7040cdb | 11634 | |
d7040cdb | 11635 | |
d7040cdb SE |
11636 | |
11637 | ||
11638 | ||
11639 | ||
d7040cdb | 11640 | |
d7040cdb SE |
11641 | |
11642 | ||
11643 | ||
11644 | ||
11645 | ||
11646 | ||
11647 | ||
11648 | ||
11649 | ||
11650 | ||
11651 | ||
11652 | ||
11653 | ||
d7040cdb SE |
11654 | |
11655 | ||
11656 | ||
11657 | ||
d7040cdb SE |
11658 | |
11659 | ||
11660 | ||
11661 | ||
d7040cdb | 11662 | |
d7040cdb | 11663 | |
d7040cdb | 11664 | |
d7040cdb | 11665 | |
d7040cdb | 11666 | |
d7040cdb | 11667 | |
d7040cdb | 11668 | |
d7040cdb SE |
11669 | |
11670 | ||
11671 | ||
11672 | ||
11673 | ||
d7040cdb | 11674 | |
d7040cdb | 11675 | |
d7040cdb | 11676 | |
d7040cdb | 11677 | |
d7040cdb | 11678 | |
d7040cdb | 11679 | |
d7040cdb SE |
11680 | |
11681 | ||
11682 | ||
11683 | ||
11684 | ||
d7040cdb SE |
11685 | |
11686 | ||
d7040cdb | 11687 | |
d7040cdb | 11688 | |
d7040cdb | 11689 | |
d7040cdb | 11690 | |
ce2cded5 L |
11691 | |
11692 | ||
11693 | ||
11694 | ||
11695 | ||
11696 | ||
11697 | ||
11698 | ||
11699 | ||
11700 | ||
3725885a RW |
11701 | |
11702 | ||
11703 | ||
11704 | ||
11705 | ||
ce2cded5 L |
11706 | |
11707 | ||
11708 | ||
11709 | ||
11710 | ||
11711 | ||
81ecdfbb RW |
11712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11713 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
ce2cded5 L |
11714 | hardcode_action= |
11715 | if test -n "$hardcode_libdir_flag_spec" || | |
11716 | test -n "$runpath_var" || | |
11717 | test "X$hardcode_automatic" = "Xyes" ; then | |
11718 | ||
11719 | # We can hardcode non-existent directories. | |
11720 | if test "$hardcode_direct" != no && | |
11721 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11722 | # have to relink, otherwise we might link with an installed library | |
11723 | # when we should be linking with a yet-to-be-installed one | |
11724 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11725 | test "$hardcode_minus_L" != no; then | |
11726 | # Linking always hardcodes the temporary library directory. | |
11727 | hardcode_action=relink | |
11728 | else | |
11729 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11730 | hardcode_action=immediate | |
d7040cdb | 11731 | fi |
d7040cdb | 11732 | else |
ce2cded5 L |
11733 | # We cannot hardcode anything, or else we can only hardcode existing |
11734 | # directories. | |
11735 | hardcode_action=unsupported | |
d7040cdb | 11736 | fi |
81ecdfbb RW |
11737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11738 | $as_echo "$hardcode_action" >&6; } | |
d7040cdb | 11739 | |
ce2cded5 L |
11740 | if test "$hardcode_action" = relink || |
11741 | test "$inherit_rpath" = yes; then | |
11742 | # Fast installation is not supported | |
11743 | enable_fast_install=no | |
11744 | elif test "$shlibpath_overrides_runpath" = yes || | |
11745 | test "$enable_shared" = no; then | |
11746 | # Fast installation is not necessary | |
11747 | enable_fast_install=needless | |
d7040cdb SE |
11748 | fi |
11749 | ||
d7040cdb | 11750 | |
d7040cdb | 11751 | |
d7040cdb | 11752 | |
d7040cdb | 11753 | |
d7040cdb | 11754 | |
ce2cded5 L |
11755 | if test "x$enable_dlopen" != xyes; then |
11756 | enable_dlopen=unknown | |
11757 | enable_dlopen_self=unknown | |
11758 | enable_dlopen_self_static=unknown | |
d7040cdb | 11759 | else |
ce2cded5 L |
11760 | lt_cv_dlopen=no |
11761 | lt_cv_dlopen_libs= | |
d7040cdb | 11762 | |
ce2cded5 L |
11763 | case $host_os in |
11764 | beos*) | |
11765 | lt_cv_dlopen="load_add_on" | |
11766 | lt_cv_dlopen_libs= | |
11767 | lt_cv_dlopen_self=yes | |
11768 | ;; | |
d7040cdb | 11769 | |
b214d478 | 11770 | mingw* | pw32* | cegcc*) |
ce2cded5 L |
11771 | lt_cv_dlopen="LoadLibrary" |
11772 | lt_cv_dlopen_libs= | |
11773 | ;; | |
11774 | ||
11775 | cygwin*) | |
11776 | lt_cv_dlopen="dlopen" | |
11777 | lt_cv_dlopen_libs= | |
11778 | ;; | |
11779 | ||
11780 | darwin*) | |
11781 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
11782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11783 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 11784 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
81ecdfbb | 11785 | $as_echo_n "(cached) " >&6 |
d7040cdb | 11786 | else |
ce2cded5 L |
11787 | ac_check_lib_save_LIBS=$LIBS |
11788 | LIBS="-ldl $LIBS" | |
81ecdfbb | 11789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11790 | /* end confdefs.h. */ |
11791 | ||
81ecdfbb RW |
11792 | /* Override any GCC internal prototype to avoid an error. |
11793 | Use char because int might match the return type of a GCC | |
11794 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11795 | #ifdef __cplusplus |
11796 | extern "C" | |
11797 | #endif | |
ce2cded5 L |
11798 | char dlopen (); |
11799 | int | |
11800 | main () | |
11801 | { | |
81ecdfbb | 11802 | return dlopen (); |
ce2cded5 L |
11803 | ; |
11804 | return 0; | |
11805 | } | |
11806 | _ACEOF | |
81ecdfbb | 11807 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
11808 | ac_cv_lib_dl_dlopen=yes |
11809 | else | |
81ecdfbb | 11810 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 11811 | fi |
81ecdfbb RW |
11812 | rm -f core conftest.err conftest.$ac_objext \ |
11813 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11814 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11815 | fi |
81ecdfbb RW |
11816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11817 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 11818 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
ce2cded5 | 11819 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 11820 | else |
d7040cdb | 11821 | |
ce2cded5 L |
11822 | lt_cv_dlopen="dyld" |
11823 | lt_cv_dlopen_libs= | |
11824 | lt_cv_dlopen_self=yes | |
11825 | ||
d7040cdb | 11826 | fi |
ce2cded5 L |
11827 | |
11828 | ;; | |
11829 | ||
11830 | *) | |
81ecdfbb | 11831 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
d0ac1c44 | 11832 | if test "x$ac_cv_func_shl_load" = xyes; then : |
ce2cded5 L |
11833 | lt_cv_dlopen="shl_load" |
11834 | else | |
81ecdfbb RW |
11835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11836 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
d0ac1c44 | 11837 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
81ecdfbb | 11838 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
11839 | else |
11840 | ac_check_lib_save_LIBS=$LIBS | |
11841 | LIBS="-ldld $LIBS" | |
81ecdfbb | 11842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 11843 | /* end confdefs.h. */ |
d7040cdb | 11844 | |
81ecdfbb RW |
11845 | /* Override any GCC internal prototype to avoid an error. |
11846 | Use char because int might match the return type of a GCC | |
11847 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11848 | #ifdef __cplusplus |
11849 | extern "C" | |
11850 | #endif | |
ce2cded5 L |
11851 | char shl_load (); |
11852 | int | |
11853 | main () | |
11854 | { | |
81ecdfbb | 11855 | return shl_load (); |
ce2cded5 L |
11856 | ; |
11857 | return 0; | |
11858 | } | |
11859 | _ACEOF | |
81ecdfbb | 11860 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
11861 | ac_cv_lib_dld_shl_load=yes |
11862 | else | |
81ecdfbb | 11863 | ac_cv_lib_dld_shl_load=no |
ce2cded5 | 11864 | fi |
81ecdfbb RW |
11865 | rm -f core conftest.err conftest.$ac_objext \ |
11866 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
11867 | LIBS=$ac_check_lib_save_LIBS |
11868 | fi | |
81ecdfbb RW |
11869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11870 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
d0ac1c44 | 11871 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
b214d478 | 11872 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
ce2cded5 | 11873 | else |
81ecdfbb | 11874 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
d0ac1c44 | 11875 | if test "x$ac_cv_func_dlopen" = xyes; then : |
ce2cded5 L |
11876 | lt_cv_dlopen="dlopen" |
11877 | else | |
81ecdfbb RW |
11878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11879 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 11880 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
81ecdfbb | 11881 | $as_echo_n "(cached) " >&6 |
d7040cdb | 11882 | else |
ce2cded5 L |
11883 | ac_check_lib_save_LIBS=$LIBS |
11884 | LIBS="-ldl $LIBS" | |
81ecdfbb | 11885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
11886 | /* end confdefs.h. */ |
11887 | ||
81ecdfbb RW |
11888 | /* Override any GCC internal prototype to avoid an error. |
11889 | Use char because int might match the return type of a GCC | |
11890 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11891 | #ifdef __cplusplus |
11892 | extern "C" | |
11893 | #endif | |
ce2cded5 | 11894 | char dlopen (); |
d7040cdb SE |
11895 | int |
11896 | main () | |
11897 | { | |
81ecdfbb | 11898 | return dlopen (); |
d7040cdb SE |
11899 | ; |
11900 | return 0; | |
11901 | } | |
11902 | _ACEOF | |
81ecdfbb | 11903 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11904 | ac_cv_lib_dl_dlopen=yes |
d7040cdb | 11905 | else |
81ecdfbb | 11906 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 11907 | fi |
81ecdfbb RW |
11908 | rm -f core conftest.err conftest.$ac_objext \ |
11909 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11910 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11911 | fi |
81ecdfbb RW |
11912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11913 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 11914 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
ce2cded5 | 11915 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 11916 | else |
81ecdfbb RW |
11917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11918 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
d0ac1c44 | 11919 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
81ecdfbb | 11920 | $as_echo_n "(cached) " >&6 |
d7040cdb | 11921 | else |
ce2cded5 L |
11922 | ac_check_lib_save_LIBS=$LIBS |
11923 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 11924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 11925 | /* end confdefs.h. */ |
d7040cdb | 11926 | |
81ecdfbb RW |
11927 | /* Override any GCC internal prototype to avoid an error. |
11928 | Use char because int might match the return type of a GCC | |
11929 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11930 | #ifdef __cplusplus |
11931 | extern "C" | |
11932 | #endif | |
ce2cded5 | 11933 | char dlopen (); |
d7040cdb SE |
11934 | int |
11935 | main () | |
11936 | { | |
81ecdfbb | 11937 | return dlopen (); |
d7040cdb SE |
11938 | ; |
11939 | return 0; | |
11940 | } | |
11941 | _ACEOF | |
81ecdfbb | 11942 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11943 | ac_cv_lib_svld_dlopen=yes |
d7040cdb | 11944 | else |
81ecdfbb | 11945 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 11946 | fi |
81ecdfbb RW |
11947 | rm -f core conftest.err conftest.$ac_objext \ |
11948 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11949 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11950 | fi |
81ecdfbb RW |
11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11952 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
d0ac1c44 | 11953 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
ce2cded5 L |
11954 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11955 | else | |
81ecdfbb RW |
11956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11957 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
d0ac1c44 | 11958 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
81ecdfbb | 11959 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
11960 | else |
11961 | ac_check_lib_save_LIBS=$LIBS | |
11962 | LIBS="-ldld $LIBS" | |
81ecdfbb | 11963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11964 | /* end confdefs.h. */ |
11965 | ||
81ecdfbb RW |
11966 | /* Override any GCC internal prototype to avoid an error. |
11967 | Use char because int might match the return type of a GCC | |
11968 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11969 | #ifdef __cplusplus |
11970 | extern "C" | |
11971 | #endif | |
ce2cded5 | 11972 | char dld_link (); |
d7040cdb SE |
11973 | int |
11974 | main () | |
11975 | { | |
81ecdfbb | 11976 | return dld_link (); |
d7040cdb SE |
11977 | ; |
11978 | return 0; | |
11979 | } | |
11980 | _ACEOF | |
81ecdfbb | 11981 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11982 | ac_cv_lib_dld_dld_link=yes |
d7040cdb | 11983 | else |
81ecdfbb | 11984 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 11985 | fi |
81ecdfbb RW |
11986 | rm -f core conftest.err conftest.$ac_objext \ |
11987 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
11988 | LIBS=$ac_check_lib_save_LIBS |
11989 | fi | |
81ecdfbb RW |
11990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11991 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
d0ac1c44 | 11992 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
b214d478 | 11993 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
ce2cded5 L |
11994 | fi |
11995 | ||
11996 | ||
11997 | fi | |
11998 | ||
11999 | ||
12000 | fi | |
12001 | ||
12002 | ||
12003 | fi | |
12004 | ||
12005 | ||
12006 | fi | |
12007 | ||
12008 | ||
12009 | fi | |
12010 | ||
12011 | ;; | |
12012 | esac | |
12013 | ||
12014 | if test "x$lt_cv_dlopen" != xno; then | |
12015 | enable_dlopen=yes | |
12016 | else | |
12017 | enable_dlopen=no | |
12018 | fi | |
12019 | ||
12020 | case $lt_cv_dlopen in | |
12021 | dlopen) | |
12022 | save_CPPFLAGS="$CPPFLAGS" | |
12023 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12024 | ||
12025 | save_LDFLAGS="$LDFLAGS" | |
12026 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12027 | ||
12028 | save_LIBS="$LIBS" | |
12029 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12030 | ||
81ecdfbb RW |
12031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12032 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
d0ac1c44 | 12033 | if ${lt_cv_dlopen_self+:} false; then : |
81ecdfbb | 12034 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
12035 | else |
12036 | if test "$cross_compiling" = yes; then : | |
12037 | lt_cv_dlopen_self=cross | |
12038 | else | |
12039 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12040 | lt_status=$lt_dlunknown | |
12041 | cat > conftest.$ac_ext <<_LT_EOF | |
c8693053 | 12042 | #line 12042 "configure" |
ce2cded5 L |
12043 | #include "confdefs.h" |
12044 | ||
12045 | #if HAVE_DLFCN_H | |
12046 | #include <dlfcn.h> | |
12047 | #endif | |
12048 | ||
12049 | #include <stdio.h> | |
12050 | ||
12051 | #ifdef RTLD_GLOBAL | |
12052 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12053 | #else | |
12054 | # ifdef DL_GLOBAL | |
12055 | # define LT_DLGLOBAL DL_GLOBAL | |
12056 | # else | |
12057 | # define LT_DLGLOBAL 0 | |
12058 | # endif | |
12059 | #endif | |
12060 | ||
12061 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12062 | find out it does not work in some platform. */ | |
12063 | #ifndef LT_DLLAZY_OR_NOW | |
12064 | # ifdef RTLD_LAZY | |
12065 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12066 | # else | |
12067 | # ifdef DL_LAZY | |
12068 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12069 | # else | |
12070 | # ifdef RTLD_NOW | |
12071 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12072 | # else | |
12073 | # ifdef DL_NOW | |
12074 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12075 | # else | |
12076 | # define LT_DLLAZY_OR_NOW 0 | |
12077 | # endif | |
12078 | # endif | |
12079 | # endif | |
12080 | # endif | |
12081 | #endif | |
12082 | ||
3725885a RW |
12083 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12084 | correspondingly for the symbols needed. */ | |
12085 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12086 | void fnord () __attribute__((visibility("default"))); | |
12087 | #endif | |
12088 | ||
12089 | void fnord () { int i=42; } | |
ce2cded5 | 12090 | int main () |
d7040cdb | 12091 | { |
ce2cded5 L |
12092 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12093 | int status = $lt_dlunknown; | |
12094 | ||
12095 | if (self) | |
12096 | { | |
12097 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
12098 | else |
12099 | { | |
12100 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12101 | else puts (dlerror ()); | |
12102 | } | |
ce2cded5 L |
12103 | /* dlclose (self); */ |
12104 | } | |
12105 | else | |
12106 | puts (dlerror ()); | |
12107 | ||
b214d478 | 12108 | return status; |
d7040cdb | 12109 | } |
ce2cded5 | 12110 | _LT_EOF |
81ecdfbb | 12111 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 | 12112 | (eval $ac_link) 2>&5 |
d7040cdb | 12113 | ac_status=$? |
81ecdfbb RW |
12114 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12115 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
12116 | (./conftest; exit; ) >&5 2>/dev/null |
12117 | lt_status=$? | |
12118 | case x$lt_status in | |
12119 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12120 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12121 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12122 | esac | |
12123 | else : | |
12124 | # compilation failed | |
12125 | lt_cv_dlopen_self=no | |
12126 | fi | |
12127 | fi | |
12128 | rm -fr conftest* | |
12129 | ||
12130 | ||
12131 | fi | |
81ecdfbb RW |
12132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12133 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
ce2cded5 L |
12134 | |
12135 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12136 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
12137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
12138 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
d0ac1c44 | 12139 | if ${lt_cv_dlopen_self_static+:} false; then : |
81ecdfbb | 12140 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
12141 | else |
12142 | if test "$cross_compiling" = yes; then : | |
12143 | lt_cv_dlopen_self_static=cross | |
12144 | else | |
12145 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12146 | lt_status=$lt_dlunknown | |
12147 | cat > conftest.$ac_ext <<_LT_EOF | |
c8693053 | 12148 | #line 12148 "configure" |
ce2cded5 L |
12149 | #include "confdefs.h" |
12150 | ||
12151 | #if HAVE_DLFCN_H | |
12152 | #include <dlfcn.h> | |
12153 | #endif | |
12154 | ||
12155 | #include <stdio.h> | |
12156 | ||
12157 | #ifdef RTLD_GLOBAL | |
12158 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12159 | #else | |
12160 | # ifdef DL_GLOBAL | |
12161 | # define LT_DLGLOBAL DL_GLOBAL | |
12162 | # else | |
12163 | # define LT_DLGLOBAL 0 | |
12164 | # endif | |
12165 | #endif | |
12166 | ||
12167 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12168 | find out it does not work in some platform. */ | |
12169 | #ifndef LT_DLLAZY_OR_NOW | |
12170 | # ifdef RTLD_LAZY | |
12171 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12172 | # else | |
12173 | # ifdef DL_LAZY | |
12174 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12175 | # else | |
12176 | # ifdef RTLD_NOW | |
12177 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12178 | # else | |
12179 | # ifdef DL_NOW | |
12180 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12181 | # else | |
12182 | # define LT_DLLAZY_OR_NOW 0 | |
12183 | # endif | |
12184 | # endif | |
12185 | # endif | |
12186 | # endif | |
12187 | #endif | |
12188 | ||
3cb62297 L |
12189 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12190 | correspondingly for the symbols needed. */ | |
12191 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12192 | void fnord () __attribute__((visibility("default"))); | |
12193 | #endif | |
12194 | ||
12195 | void fnord () { int i=42; } | |
12196 | int main () | |
12197 | { | |
12198 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12199 | int status = $lt_dlunknown; | |
12200 | ||
12201 | if (self) | |
12202 | { | |
12203 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12204 | else | |
12205 | { | |
12206 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12207 | else puts (dlerror ()); | |
12208 | } | |
12209 | /* dlclose (self); */ | |
12210 | } | |
12211 | else | |
12212 | puts (dlerror ()); | |
12213 | ||
12214 | return status; | |
12215 | } | |
12216 | _LT_EOF | |
12217 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12218 | (eval $ac_link) 2>&5 | |
12219 | ac_status=$? | |
12220 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12221 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12222 | (./conftest; exit; ) >&5 2>/dev/null | |
12223 | lt_status=$? | |
12224 | case x$lt_status in | |
12225 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12226 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12227 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12228 | esac | |
12229 | else : | |
12230 | # compilation failed | |
12231 | lt_cv_dlopen_self_static=no | |
12232 | fi | |
12233 | fi | |
12234 | rm -fr conftest* | |
12235 | ||
12236 | ||
12237 | fi | |
12238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12239 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12240 | fi | |
12241 | ||
12242 | CPPFLAGS="$save_CPPFLAGS" | |
12243 | LDFLAGS="$save_LDFLAGS" | |
12244 | LIBS="$save_LIBS" | |
12245 | ;; | |
12246 | esac | |
12247 | ||
12248 | case $lt_cv_dlopen_self in | |
12249 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12250 | *) enable_dlopen_self=unknown ;; | |
12251 | esac | |
12252 | ||
12253 | case $lt_cv_dlopen_self_static in | |
12254 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12255 | *) enable_dlopen_self_static=unknown ;; | |
12256 | esac | |
12257 | fi | |
12258 | ||
12259 | ||
12260 | ||
12261 | ||
12262 | ||
12263 | ||
12264 | ||
12265 | ||
12266 | ||
12267 | ||
12268 | ||
12269 | ||
12270 | ||
12271 | ||
12272 | ||
12273 | ||
12274 | ||
12275 | striplib= | |
12276 | old_striplib= | |
12277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12278 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12279 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12280 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12281 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12283 | $as_echo "yes" >&6; } | |
12284 | else | |
12285 | # FIXME - insert some real tests, host_os isn't really good enough | |
12286 | case $host_os in | |
12287 | darwin*) | |
12288 | if test -n "$STRIP" ; then | |
12289 | striplib="$STRIP -x" | |
12290 | old_striplib="$STRIP -S" | |
12291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12292 | $as_echo "yes" >&6; } | |
12293 | else | |
12294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12295 | $as_echo "no" >&6; } | |
12296 | fi | |
12297 | ;; | |
12298 | *) | |
12299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12300 | $as_echo "no" >&6; } | |
12301 | ;; | |
12302 | esac | |
12303 | fi | |
12304 | ||
12305 | ||
12306 | ||
12307 | ||
12308 | ||
12309 | ||
12310 | ||
12311 | ||
12312 | ||
12313 | ||
12314 | ||
12315 | ||
12316 | # Report which library types will actually be built | |
12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12318 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12320 | $as_echo "$can_build_shared" >&6; } | |
12321 | ||
12322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12323 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12324 | test "$can_build_shared" = "no" && enable_shared=no | |
12325 | ||
12326 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12327 | # are all built from PIC. | |
12328 | case $host_os in | |
12329 | aix3*) | |
12330 | test "$enable_shared" = yes && enable_static=no | |
12331 | if test -n "$RANLIB"; then | |
12332 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12333 | postinstall_cmds='$RANLIB $lib' | |
12334 | fi | |
12335 | ;; | |
12336 | ||
12337 | aix[4-9]*) | |
12338 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12339 | test "$enable_shared" = yes && enable_static=no | |
12340 | fi | |
12341 | ;; | |
12342 | esac | |
12343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12344 | $as_echo "$enable_shared" >&6; } | |
12345 | ||
12346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12347 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12348 | # Make sure either enable_shared or enable_static is yes. | |
12349 | test "$enable_shared" = yes || enable_static=yes | |
12350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12351 | $as_echo "$enable_static" >&6; } | |
12352 | ||
12353 | ||
12354 | ||
12355 | ||
12356 | fi | |
12357 | ac_ext=c | |
12358 | ac_cpp='$CPP $CPPFLAGS' | |
12359 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12360 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12361 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12362 | ||
12363 | CC="$lt_save_CC" | |
12364 | ||
12365 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
12366 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
12367 | (test "X$CXX" != "Xg++"))) ; then | |
12368 | ac_ext=cpp | |
12369 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12370 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12371 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12372 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
12374 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
12375 | if test -z "$CXXCPP"; then | |
d0ac1c44 | 12376 | if ${ac_cv_prog_CXXCPP+:} false; then : |
3cb62297 L |
12377 | $as_echo_n "(cached) " >&6 |
12378 | else | |
12379 | # Double quotes because CXXCPP needs to be expanded | |
12380 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
12381 | do | |
12382 | ac_preproc_ok=false | |
12383 | for ac_cxx_preproc_warn_flag in '' yes | |
12384 | do | |
12385 | # Use a header file that comes with gcc, so configuring glibc | |
12386 | # with a fresh cross-compiler works. | |
12387 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12388 | # <limits.h> exists even on freestanding compilers. | |
12389 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12390 | # not just through cpp. "Syntax error" is here to catch this case. | |
12391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12392 | /* end confdefs.h. */ | |
12393 | #ifdef __STDC__ | |
12394 | # include <limits.h> | |
12395 | #else | |
12396 | # include <assert.h> | |
12397 | #endif | |
12398 | Syntax error | |
12399 | _ACEOF | |
12400 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12401 | ||
12402 | else | |
12403 | # Broken: fails on valid input. | |
12404 | continue | |
12405 | fi | |
d0ac1c44 | 12406 | rm -f conftest.err conftest.i conftest.$ac_ext |
3cb62297 L |
12407 | |
12408 | # OK, works on sane cases. Now check whether nonexistent headers | |
12409 | # can be detected and how. | |
12410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12411 | /* end confdefs.h. */ | |
12412 | #include <ac_nonexistent.h> | |
12413 | _ACEOF | |
12414 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12415 | # Broken: success on invalid input. | |
12416 | continue | |
12417 | else | |
12418 | # Passes both tests. | |
12419 | ac_preproc_ok=: | |
12420 | break | |
12421 | fi | |
d0ac1c44 | 12422 | rm -f conftest.err conftest.i conftest.$ac_ext |
3cb62297 L |
12423 | |
12424 | done | |
12425 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 12426 | rm -f conftest.i conftest.err conftest.$ac_ext |
3cb62297 L |
12427 | if $ac_preproc_ok; then : |
12428 | break | |
12429 | fi | |
12430 | ||
12431 | done | |
12432 | ac_cv_prog_CXXCPP=$CXXCPP | |
12433 | ||
12434 | fi | |
12435 | CXXCPP=$ac_cv_prog_CXXCPP | |
12436 | else | |
12437 | ac_cv_prog_CXXCPP=$CXXCPP | |
12438 | fi | |
12439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
12440 | $as_echo "$CXXCPP" >&6; } | |
12441 | ac_preproc_ok=false | |
12442 | for ac_cxx_preproc_warn_flag in '' yes | |
12443 | do | |
12444 | # Use a header file that comes with gcc, so configuring glibc | |
12445 | # with a fresh cross-compiler works. | |
12446 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12447 | # <limits.h> exists even on freestanding compilers. | |
12448 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12449 | # not just through cpp. "Syntax error" is here to catch this case. | |
12450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12451 | /* end confdefs.h. */ | |
12452 | #ifdef __STDC__ | |
12453 | # include <limits.h> | |
12454 | #else | |
12455 | # include <assert.h> | |
12456 | #endif | |
12457 | Syntax error | |
12458 | _ACEOF | |
12459 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12460 | ||
12461 | else | |
12462 | # Broken: fails on valid input. | |
12463 | continue | |
12464 | fi | |
d0ac1c44 | 12465 | rm -f conftest.err conftest.i conftest.$ac_ext |
3cb62297 L |
12466 | |
12467 | # OK, works on sane cases. Now check whether nonexistent headers | |
12468 | # can be detected and how. | |
12469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12470 | /* end confdefs.h. */ | |
12471 | #include <ac_nonexistent.h> | |
12472 | _ACEOF | |
12473 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12474 | # Broken: success on invalid input. | |
12475 | continue | |
12476 | else | |
12477 | # Passes both tests. | |
12478 | ac_preproc_ok=: | |
12479 | break | |
12480 | fi | |
d0ac1c44 | 12481 | rm -f conftest.err conftest.i conftest.$ac_ext |
3cb62297 L |
12482 | |
12483 | done | |
12484 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 12485 | rm -f conftest.i conftest.err conftest.$ac_ext |
3cb62297 L |
12486 | if $ac_preproc_ok; then : |
12487 | ||
12488 | else | |
12489 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12490 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
12491 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
12492 | See \`config.log' for more details" "$LINENO" 5; } | |
3cb62297 L |
12493 | fi |
12494 | ||
12495 | ac_ext=c | |
12496 | ac_cpp='$CPP $CPPFLAGS' | |
12497 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12498 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12499 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12500 | ||
12501 | else | |
12502 | _lt_caught_CXX_error=yes | |
12503 | fi | |
12504 | ||
12505 | ac_ext=cpp | |
12506 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12507 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12508 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12509 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12510 | ||
12511 | archive_cmds_need_lc_CXX=no | |
12512 | allow_undefined_flag_CXX= | |
12513 | always_export_symbols_CXX=no | |
12514 | archive_expsym_cmds_CXX= | |
12515 | compiler_needs_object_CXX=no | |
12516 | export_dynamic_flag_spec_CXX= | |
12517 | hardcode_direct_CXX=no | |
12518 | hardcode_direct_absolute_CXX=no | |
12519 | hardcode_libdir_flag_spec_CXX= | |
12520 | hardcode_libdir_flag_spec_ld_CXX= | |
12521 | hardcode_libdir_separator_CXX= | |
12522 | hardcode_minus_L_CXX=no | |
12523 | hardcode_shlibpath_var_CXX=unsupported | |
12524 | hardcode_automatic_CXX=no | |
12525 | inherit_rpath_CXX=no | |
12526 | module_cmds_CXX= | |
12527 | module_expsym_cmds_CXX= | |
12528 | link_all_deplibs_CXX=unknown | |
12529 | old_archive_cmds_CXX=$old_archive_cmds | |
12530 | reload_flag_CXX=$reload_flag | |
12531 | reload_cmds_CXX=$reload_cmds | |
12532 | no_undefined_flag_CXX= | |
12533 | whole_archive_flag_spec_CXX= | |
12534 | enable_shared_with_static_runtimes_CXX=no | |
12535 | ||
12536 | # Source file extension for C++ test sources. | |
12537 | ac_ext=cpp | |
12538 | ||
12539 | # Object file extension for compiled C++ test sources. | |
12540 | objext=o | |
12541 | objext_CXX=$objext | |
12542 | ||
12543 | # No sense in running all these tests if we already determined that | |
12544 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
12545 | # are currently assumed to apply to all compilers on this platform, | |
12546 | # and will be corrupted by setting them based on a non-working compiler. | |
12547 | if test "$_lt_caught_CXX_error" != yes; then | |
12548 | # Code to be used in simple compile tests | |
12549 | lt_simple_compile_test_code="int some_variable = 0;" | |
12550 | ||
12551 | # Code to be used in simple link tests | |
12552 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
12553 | ||
12554 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12555 | ||
12556 | ||
12557 | ||
12558 | ||
12559 | ||
12560 | ||
12561 | # If no C compiler was specified, use CC. | |
12562 | LTCC=${LTCC-"$CC"} | |
12563 | ||
12564 | # If no C compiler flags were specified, use CFLAGS. | |
12565 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12566 | ||
12567 | # Allow CC to be a program name with arguments. | |
12568 | compiler=$CC | |
12569 | ||
12570 | ||
12571 | # save warnings/boilerplate of simple test code | |
12572 | ac_outfile=conftest.$ac_objext | |
12573 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12574 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12575 | _lt_compiler_boilerplate=`cat conftest.err` | |
12576 | $RM conftest* | |
12577 | ||
12578 | ac_outfile=conftest.$ac_objext | |
12579 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12580 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12581 | _lt_linker_boilerplate=`cat conftest.err` | |
12582 | $RM -r conftest* | |
12583 | ||
12584 | ||
12585 | # Allow CC to be a program name with arguments. | |
12586 | lt_save_CC=$CC | |
12587 | lt_save_LD=$LD | |
12588 | lt_save_GCC=$GCC | |
12589 | GCC=$GXX | |
12590 | lt_save_with_gnu_ld=$with_gnu_ld | |
12591 | lt_save_path_LD=$lt_cv_path_LD | |
12592 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12593 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
12594 | else | |
12595 | $as_unset lt_cv_prog_gnu_ld | |
12596 | fi | |
12597 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
12598 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
12599 | else | |
12600 | $as_unset lt_cv_path_LD | |
12601 | fi | |
12602 | test -z "${LDCXX+set}" || LD=$LDCXX | |
12603 | CC=${CXX-"c++"} | |
12604 | compiler=$CC | |
12605 | compiler_CXX=$CC | |
12606 | for cc_temp in $compiler""; do | |
12607 | case $cc_temp in | |
12608 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12609 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12610 | \-*) ;; | |
12611 | *) break;; | |
12612 | esac | |
12613 | done | |
12614 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
12615 | ||
12616 | ||
12617 | if test -n "$compiler"; then | |
12618 | # We don't want -fno-exception when compiling C++ code, so set the | |
12619 | # no_builtin_flag separately | |
12620 | if test "$GXX" = yes; then | |
12621 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12622 | else | |
12623 | lt_prog_compiler_no_builtin_flag_CXX= | |
12624 | fi | |
12625 | ||
12626 | if test "$GXX" = yes; then | |
12627 | # Set up default GNU C++ configuration | |
12628 | ||
12629 | ||
12630 | ||
12631 | # Check whether --with-gnu-ld was given. | |
12632 | if test "${with_gnu_ld+set}" = set; then : | |
12633 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
12634 | else | |
12635 | with_gnu_ld=no | |
12636 | fi | |
12637 | ||
12638 | ac_prog=ld | |
12639 | if test "$GCC" = yes; then | |
12640 | # Check if gcc -print-prog-name=ld gives a path. | |
12641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
12642 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
12643 | case $host in | |
12644 | *-*-mingw*) | |
12645 | # gcc leaves a trailing carriage return which upsets mingw | |
12646 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12647 | *) | |
12648 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12649 | esac | |
12650 | case $ac_prog in | |
12651 | # Accept absolute paths. | |
12652 | [\\/]* | ?:[\\/]*) | |
12653 | re_direlt='/[^/][^/]*/\.\./' | |
12654 | # Canonicalize the pathname of ld | |
12655 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
12656 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
12657 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
12658 | done | |
12659 | test -z "$LD" && LD="$ac_prog" | |
12660 | ;; | |
12661 | "") | |
12662 | # If it fails, then pretend we aren't using GCC. | |
12663 | ac_prog=ld | |
12664 | ;; | |
12665 | *) | |
12666 | # If it is relative, then search for the first ld in PATH. | |
12667 | with_gnu_ld=unknown | |
12668 | ;; | |
12669 | esac | |
12670 | elif test "$with_gnu_ld" = yes; then | |
12671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
12672 | $as_echo_n "checking for GNU ld... " >&6; } | |
12673 | else | |
12674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
12675 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
12676 | fi | |
d0ac1c44 | 12677 | if ${lt_cv_path_LD+:} false; then : |
3cb62297 L |
12678 | $as_echo_n "(cached) " >&6 |
12679 | else | |
12680 | if test -z "$LD"; then | |
12681 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
12682 | for ac_dir in $PATH; do | |
12683 | IFS="$lt_save_ifs" | |
12684 | test -z "$ac_dir" && ac_dir=. | |
12685 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
12686 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
12687 | # Check to see if the program is GNU ld. I'd rather use --version, | |
12688 | # but apparently some variants of GNU ld only accept -v. | |
12689 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
12690 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
12691 | *GNU* | *'with BFD'*) | |
12692 | test "$with_gnu_ld" != no && break | |
12693 | ;; | |
12694 | *) | |
12695 | test "$with_gnu_ld" != yes && break | |
12696 | ;; | |
12697 | esac | |
12698 | fi | |
12699 | done | |
12700 | IFS="$lt_save_ifs" | |
12701 | else | |
12702 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
12703 | fi | |
12704 | fi | |
12705 | ||
12706 | LD="$lt_cv_path_LD" | |
12707 | if test -n "$LD"; then | |
12708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
12709 | $as_echo "$LD" >&6; } | |
12710 | else | |
12711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12712 | $as_echo "no" >&6; } | |
12713 | fi | |
d0ac1c44 | 12714 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
3cb62297 L |
12715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
12716 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d0ac1c44 | 12717 | if ${lt_cv_prog_gnu_ld+:} false; then : |
3cb62297 L |
12718 | $as_echo_n "(cached) " >&6 |
12719 | else | |
12720 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
12721 | case `$LD -v 2>&1 </dev/null` in | |
12722 | *GNU* | *'with BFD'*) | |
12723 | lt_cv_prog_gnu_ld=yes | |
12724 | ;; | |
12725 | *) | |
12726 | lt_cv_prog_gnu_ld=no | |
12727 | ;; | |
12728 | esac | |
12729 | fi | |
12730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
12731 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
12732 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
12733 | ||
12734 | ||
12735 | ||
12736 | ||
12737 | ||
12738 | ||
12739 | ||
12740 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
12741 | # archiving commands below assume that GNU ld is being used. | |
12742 | if test "$with_gnu_ld" = yes; then | |
6e733cce L |
12743 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
12744 | 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 |
12745 | |
12746 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12747 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12748 | ||
12749 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12750 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
12751 | # investigate it a little bit more. (MM) | |
12752 | wlarc='${wl}' | |
12753 | ||
12754 | # ancient GNU ld didn't support --whole-archive et. al. | |
12755 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
12756 | $GREP 'no-whole-archive' > /dev/null; then | |
12757 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12758 | else | |
12759 | whole_archive_flag_spec_CXX= | |
12760 | fi | |
12761 | else | |
12762 | with_gnu_ld=no | |
12763 | wlarc= | |
12764 | ||
12765 | # A generic and very simple default shared library creation | |
12766 | # command for GNU C++ for the case where it uses the native | |
12767 | # linker, instead of GNU ld. If possible, this setting should | |
12768 | # overridden to take advantage of the native linker features on | |
12769 | # the platform it is being used on. | |
12770 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12771 | fi | |
12772 | ||
12773 | # Commands to make compiler produce verbose output that lists | |
12774 | # what "hidden" libraries, object files and flags are used when | |
12775 | # linking a shared library. | |
12776 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
12777 | ||
12778 | else | |
12779 | GXX=no | |
12780 | with_gnu_ld=no | |
12781 | wlarc= | |
12782 | fi | |
12783 | ||
12784 | # PORTME: fill in a description of your system's C++ link characteristics | |
12785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12786 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12787 | ld_shlibs_CXX=yes | |
12788 | case $host_os in | |
12789 | aix3*) | |
12790 | # FIXME: insert proper C++ library support | |
12791 | ld_shlibs_CXX=no | |
12792 | ;; | |
12793 | aix[4-9]*) | |
12794 | if test "$host_cpu" = ia64; then | |
12795 | # On IA64, the linker does run time linking by default, so we don't | |
12796 | # have to do anything special. | |
12797 | aix_use_runtimelinking=no | |
12798 | exp_sym_flag='-Bexport' | |
12799 | no_entry_flag="" | |
12800 | else | |
12801 | aix_use_runtimelinking=no | |
12802 | ||
12803 | # Test if we are trying to use run time linking or normal | |
12804 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12805 | # need to do runtime linking. | |
12806 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
12807 | for ld_flag in $LDFLAGS; do | |
12808 | case $ld_flag in | |
12809 | *-brtl*) | |
12810 | aix_use_runtimelinking=yes | |
12811 | break | |
12812 | ;; | |
12813 | esac | |
12814 | done | |
12815 | ;; | |
12816 | esac | |
12817 | ||
12818 | exp_sym_flag='-bexport' | |
12819 | no_entry_flag='-bnoentry' | |
12820 | fi | |
12821 | ||
12822 | # When large executables or shared objects are built, AIX ld can | |
12823 | # have problems creating the table of contents. If linking a library | |
12824 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12825 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12826 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12827 | ||
12828 | archive_cmds_CXX='' | |
12829 | hardcode_direct_CXX=yes | |
12830 | hardcode_direct_absolute_CXX=yes | |
12831 | hardcode_libdir_separator_CXX=':' | |
12832 | link_all_deplibs_CXX=yes | |
12833 | file_list_spec_CXX='${wl}-f,' | |
12834 | ||
12835 | if test "$GXX" = yes; then | |
12836 | case $host_os in aix4.[012]|aix4.[012].*) | |
12837 | # We only want to do this on AIX 4.2 and lower, the check | |
12838 | # below for broken collect2 doesn't work under 4.3+ | |
12839 | collect2name=`${CC} -print-prog-name=collect2` | |
12840 | if test -f "$collect2name" && | |
12841 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
12842 | then | |
12843 | # We have reworked collect2 | |
12844 | : | |
12845 | else | |
12846 | # We have old collect2 | |
12847 | hardcode_direct_CXX=unsupported | |
12848 | # It fails to find uninstalled libraries when the uninstalled | |
12849 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12850 | # to unsupported forces relinking | |
12851 | hardcode_minus_L_CXX=yes | |
12852 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12853 | hardcode_libdir_separator_CXX= | |
12854 | fi | |
12855 | esac | |
12856 | shared_flag='-shared' | |
12857 | if test "$aix_use_runtimelinking" = yes; then | |
12858 | shared_flag="$shared_flag "'${wl}-G' | |
12859 | fi | |
12860 | else | |
12861 | # not using gcc | |
12862 | if test "$host_cpu" = ia64; then | |
12863 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12864 | # chokes on -Wl,-G. The following line is correct: | |
12865 | shared_flag='-G' | |
12866 | else | |
12867 | if test "$aix_use_runtimelinking" = yes; then | |
12868 | shared_flag='${wl}-G' | |
12869 | else | |
12870 | shared_flag='${wl}-bM:SRE' | |
12871 | fi | |
12872 | fi | |
12873 | fi | |
12874 | ||
12875 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
12876 | # It seems that -bexpall does not export symbols beginning with | |
12877 | # underscore (_), so it is better to generate a list of symbols to | |
12878 | # export. | |
12879 | always_export_symbols_CXX=yes | |
12880 | if test "$aix_use_runtimelinking" = yes; then | |
12881 | # Warning - without using the other runtime loading flags (-brtl), | |
12882 | # -berok will link without error, but may produce a broken library. | |
12883 | allow_undefined_flag_CXX='-berok' | |
12884 | # Determine the default libpath from the value encoded in an empty | |
12885 | # executable. | |
12886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12887 | /* end confdefs.h. */ | |
12888 | ||
12889 | int | |
12890 | main () | |
12891 | { | |
12892 | ||
12893 | ; | |
12894 | return 0; | |
12895 | } | |
12896 | _ACEOF | |
12897 | if ac_fn_cxx_try_link "$LINENO"; then : | |
12898 | ||
12899 | lt_aix_libpath_sed=' | |
12900 | /Import File Strings/,/^$/ { | |
12901 | /^0/ { | |
12902 | s/^0 *\(.*\)$/\1/ | |
12903 | p | |
12904 | } | |
12905 | }' | |
12906 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12907 | # Check for a 64-bit object if we didn't find anything. | |
12908 | if test -z "$aix_libpath"; then | |
12909 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12910 | fi | |
12911 | fi | |
12912 | rm -f core conftest.err conftest.$ac_objext \ | |
12913 | conftest$ac_exeext conftest.$ac_ext | |
12914 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12915 | ||
12916 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12917 | ||
12918 | 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" | |
12919 | else | |
12920 | if test "$host_cpu" = ia64; then | |
12921 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
12922 | allow_undefined_flag_CXX="-z nodefs" | |
12923 | 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" | |
12924 | else | |
12925 | # Determine the default libpath from the value encoded in an | |
12926 | # empty executable. | |
12927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12928 | /* end confdefs.h. */ | |
12929 | ||
12930 | int | |
12931 | main () | |
12932 | { | |
12933 | ||
12934 | ; | |
12935 | return 0; | |
12936 | } | |
12937 | _ACEOF | |
12938 | if ac_fn_cxx_try_link "$LINENO"; then : | |
12939 | ||
12940 | lt_aix_libpath_sed=' | |
12941 | /Import File Strings/,/^$/ { | |
12942 | /^0/ { | |
12943 | s/^0 *\(.*\)$/\1/ | |
12944 | p | |
12945 | } | |
12946 | }' | |
12947 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12948 | # Check for a 64-bit object if we didn't find anything. | |
12949 | if test -z "$aix_libpath"; then | |
12950 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12951 | fi | |
12952 | fi | |
12953 | rm -f core conftest.err conftest.$ac_objext \ | |
12954 | conftest$ac_exeext conftest.$ac_ext | |
12955 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12956 | ||
12957 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12958 | # Warning - without using the other run time loading flags, | |
12959 | # -berok will link without error, but may produce a broken library. | |
12960 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
12961 | allow_undefined_flag_CXX=' ${wl}-berok' | |
12962 | if test "$with_gnu_ld" = yes; then | |
12963 | # We only use this code for GNU lds that support --whole-archive. | |
12964 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12965 | else | |
12966 | # Exported symbols can be pulled into shared objects from archives | |
12967 | whole_archive_flag_spec_CXX='$convenience' | |
12968 | fi | |
12969 | archive_cmds_need_lc_CXX=yes | |
12970 | # This is similar to how AIX traditionally builds its shared | |
12971 | # libraries. | |
12972 | 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' | |
12973 | fi | |
12974 | fi | |
12975 | ;; | |
12976 | ||
12977 | beos*) | |
12978 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12979 | allow_undefined_flag_CXX=unsupported | |
12980 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12981 | # support --undefined. This deserves some investigation. FIXME | |
12982 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12983 | else | |
12984 | ld_shlibs_CXX=no | |
12985 | fi | |
12986 | ;; | |
12987 | ||
12988 | chorus*) | |
12989 | case $cc_basename in | |
12990 | *) | |
12991 | # FIXME: insert proper C++ library support | |
12992 | ld_shlibs_CXX=no | |
12993 | ;; | |
12994 | esac | |
12995 | ;; | |
12996 | ||
12997 | cygwin* | mingw* | pw32* | cegcc*) | |
12998 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
12999 | # as there is no search path for DLLs. | |
13000 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13001 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | |
13002 | allow_undefined_flag_CXX=unsupported | |
13003 | always_export_symbols_CXX=no | |
13004 | enable_shared_with_static_runtimes_CXX=yes | |
13005 | ||
13006 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
13007 | 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' | |
13008 | # If the export-symbols file already is a .def file (1st line | |
13009 | # is EXPORTS), use it as is; otherwise, prepend... | |
13010 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13011 | cp $export_symbols $output_objdir/$soname.def; | |
13012 | else | |
13013 | echo EXPORTS > $output_objdir/$soname.def; | |
13014 | cat $export_symbols >> $output_objdir/$soname.def; | |
13015 | fi~ | |
13016 | $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' | |
13017 | else | |
13018 | ld_shlibs_CXX=no | |
13019 | fi | |
13020 | ;; | |
13021 | darwin* | rhapsody*) | |
13022 | ||
13023 | ||
13024 | archive_cmds_need_lc_CXX=no | |
13025 | hardcode_direct_CXX=no | |
13026 | hardcode_automatic_CXX=yes | |
13027 | hardcode_shlibpath_var_CXX=unsupported | |
13028 | if test "$lt_cv_ld_force_load" = "yes"; then | |
13029 | 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\"`' | |
13030 | else | |
13031 | whole_archive_flag_spec_CXX='' | |
13032 | fi | |
13033 | link_all_deplibs_CXX=yes | |
13034 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
13035 | case $cc_basename in | |
13036 | ifort*) _lt_dar_can_shared=yes ;; | |
13037 | *) _lt_dar_can_shared=$GCC ;; | |
13038 | esac | |
13039 | if test "$_lt_dar_can_shared" = "yes"; then | |
13040 | output_verbose_link_cmd=func_echo_all | |
13041 | 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}" | |
13042 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
13043 | 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}" | |
13044 | 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}" | |
13045 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
13046 | 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}" | |
13047 | 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}" | |
13048 | fi | |
13049 | ||
13050 | else | |
13051 | ld_shlibs_CXX=no | |
13052 | fi | |
13053 | ||
13054 | ;; | |
13055 | ||
13056 | dgux*) | |
13057 | case $cc_basename in | |
13058 | ec++*) | |
13059 | # FIXME: insert proper C++ library support | |
13060 | ld_shlibs_CXX=no | |
13061 | ;; | |
13062 | ghcx*) | |
13063 | # Green Hills C++ Compiler | |
13064 | # FIXME: insert proper C++ library support | |
13065 | ld_shlibs_CXX=no | |
13066 | ;; | |
13067 | *) | |
13068 | # FIXME: insert proper C++ library support | |
13069 | ld_shlibs_CXX=no | |
13070 | ;; | |
13071 | esac | |
13072 | ;; | |
13073 | ||
6d2920c8 | 13074 | freebsd2.*) |
3cb62297 L |
13075 | # C++ shared libraries reported to be fairly broken before |
13076 | # switch to ELF | |
13077 | ld_shlibs_CXX=no | |
13078 | ;; | |
13079 | ||
13080 | freebsd-elf*) | |
13081 | archive_cmds_need_lc_CXX=no | |
13082 | ;; | |
13083 | ||
13084 | freebsd* | dragonfly*) | |
13085 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
13086 | # conventions | |
13087 | ld_shlibs_CXX=yes | |
13088 | ;; | |
13089 | ||
13090 | gnu*) | |
13091 | ;; | |
13092 | ||
13093 | haiku*) | |
13094 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13095 | link_all_deplibs_CXX=yes | |
13096 | ;; | |
13097 | ||
13098 | hpux9*) | |
13099 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13100 | hardcode_libdir_separator_CXX=: | |
13101 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13102 | hardcode_direct_CXX=yes | |
13103 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13104 | # but as the default | |
13105 | # location of the library. | |
13106 | ||
13107 | case $cc_basename in | |
13108 | CC*) | |
13109 | # FIXME: insert proper C++ library support | |
13110 | ld_shlibs_CXX=no | |
13111 | ;; | |
13112 | aCC*) | |
13113 | 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' | |
13114 | # Commands to make compiler produce verbose output that lists | |
13115 | # what "hidden" libraries, object files and flags are used when | |
13116 | # linking a shared library. | |
13117 | # | |
13118 | # There doesn't appear to be a way to prevent this compiler from | |
13119 | # explicitly linking system object files so we need to strip them | |
13120 | # from the output so that they don't get included in the library | |
13121 | # dependencies. | |
13122 | 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"' | |
13123 | ;; | |
13124 | *) | |
13125 | if test "$GXX" = yes; then | |
13126 | 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' | |
13127 | else | |
13128 | # FIXME: insert proper C++ library support | |
13129 | ld_shlibs_CXX=no | |
13130 | fi | |
13131 | ;; | |
13132 | esac | |
13133 | ;; | |
13134 | ||
13135 | hpux10*|hpux11*) | |
13136 | if test $with_gnu_ld = no; then | |
13137 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13138 | hardcode_libdir_separator_CXX=: | |
13139 | ||
13140 | case $host_cpu in | |
13141 | hppa*64*|ia64*) | |
13142 | ;; | |
13143 | *) | |
13144 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13145 | ;; | |
13146 | esac | |
13147 | fi | |
13148 | case $host_cpu in | |
13149 | hppa*64*|ia64*) | |
13150 | hardcode_direct_CXX=no | |
13151 | hardcode_shlibpath_var_CXX=no | |
13152 | ;; | |
13153 | *) | |
13154 | hardcode_direct_CXX=yes | |
13155 | hardcode_direct_absolute_CXX=yes | |
13156 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13157 | # but as the default | |
13158 | # location of the library. | |
13159 | ;; | |
13160 | esac | |
13161 | ||
13162 | case $cc_basename in | |
13163 | CC*) | |
13164 | # FIXME: insert proper C++ library support | |
13165 | ld_shlibs_CXX=no | |
13166 | ;; | |
13167 | aCC*) | |
13168 | case $host_cpu in | |
13169 | hppa*64*) | |
13170 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13171 | ;; | |
13172 | ia64*) | |
13173 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13174 | ;; | |
13175 | *) | |
13176 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13177 | ;; | |
13178 | esac | |
13179 | # Commands to make compiler produce verbose output that lists | |
13180 | # what "hidden" libraries, object files and flags are used when | |
13181 | # linking a shared library. | |
13182 | # | |
13183 | # There doesn't appear to be a way to prevent this compiler from | |
13184 | # explicitly linking system object files so we need to strip them | |
13185 | # from the output so that they don't get included in the library | |
13186 | # dependencies. | |
13187 | 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"' | |
13188 | ;; | |
13189 | *) | |
13190 | if test "$GXX" = yes; then | |
13191 | if test $with_gnu_ld = no; then | |
13192 | case $host_cpu in | |
13193 | hppa*64*) | |
13194 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13195 | ;; | |
13196 | ia64*) | |
13197 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13198 | ;; | |
13199 | *) | |
13200 | 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' | |
13201 | ;; | |
13202 | esac | |
13203 | fi | |
13204 | else | |
13205 | # FIXME: insert proper C++ library support | |
13206 | ld_shlibs_CXX=no | |
13207 | fi | |
13208 | ;; | |
13209 | esac | |
13210 | ;; | |
13211 | ||
13212 | interix[3-9]*) | |
13213 | hardcode_direct_CXX=no | |
13214 | hardcode_shlibpath_var_CXX=no | |
13215 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13216 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13217 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13218 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13219 | # default) and relocated if they conflict, which is a slow very memory | |
13220 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13221 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13222 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13223 | 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' | |
13224 | 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' | |
13225 | ;; | |
13226 | irix5* | irix6*) | |
13227 | case $cc_basename in | |
13228 | CC*) | |
13229 | # SGI C++ | |
13230 | 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' | |
13231 | ||
13232 | # Archives containing C++ object files must be created using | |
13233 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
13234 | # necessary to make sure instantiated templates are included | |
13235 | # in the archive. | |
13236 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
13237 | ;; | |
13238 | *) | |
13239 | if test "$GXX" = yes; then | |
13240 | if test "$with_gnu_ld" = no; then | |
13241 | 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' | |
13242 | else | |
13243 | 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' | |
13244 | fi | |
13245 | fi | |
13246 | link_all_deplibs_CXX=yes | |
13247 | ;; | |
13248 | esac | |
13249 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13250 | hardcode_libdir_separator_CXX=: | |
13251 | inherit_rpath_CXX=yes | |
13252 | ;; | |
13253 | ||
13254 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
13255 | case $cc_basename in | |
13256 | KCC*) | |
13257 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13258 | ||
13259 | # KCC will only create a shared library if the output file | |
13260 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13261 | # to its proper name (with version) after linking. | |
13262 | 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' | |
13263 | 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' | |
13264 | # Commands to make compiler produce verbose output that lists | |
13265 | # what "hidden" libraries, object files and flags are used when | |
13266 | # linking a shared library. | |
13267 | # | |
13268 | # There doesn't appear to be a way to prevent this compiler from | |
13269 | # explicitly linking system object files so we need to strip them | |
13270 | # from the output so that they don't get included in the library | |
13271 | # dependencies. | |
13272 | 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"' | |
13273 | ||
13274 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13275 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13276 | ||
13277 | # Archives containing C++ object files must be created using | |
13278 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13279 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13280 | ;; | |
13281 | icpc* | ecpc* ) | |
13282 | # Intel C++ | |
13283 | with_gnu_ld=yes | |
13284 | # version 8.0 and above of icpc choke on multiply defined symbols | |
13285 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
13286 | # earlier do not add the objects themselves. | |
13287 | case `$CC -V 2>&1` in | |
13288 | *"Version 7."*) | |
13289 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13290 | 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' | |
13291 | ;; | |
13292 | *) # Version 8.0 or newer | |
13293 | tmp_idyn= | |
13294 | case $host_cpu in | |
13295 | ia64*) tmp_idyn=' -i_dynamic';; | |
13296 | esac | |
13297 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13298 | 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' | |
13299 | ;; | |
13300 | esac | |
13301 | archive_cmds_need_lc_CXX=no | |
13302 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13303 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13304 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13305 | ;; | |
13306 | pgCC* | pgcpp*) | |
13307 | # Portland Group C++ compiler | |
13308 | case `$CC -V` in | |
13309 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | |
13310 | prelink_cmds_CXX='tpldir=Template.dir~ | |
13311 | rm -rf $tpldir~ | |
13312 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
13313 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
13314 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
13315 | rm -rf $tpldir~ | |
13316 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
13317 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
13318 | $RANLIB $oldlib' | |
13319 | archive_cmds_CXX='tpldir=Template.dir~ | |
13320 | rm -rf $tpldir~ | |
13321 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
13322 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13323 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
13324 | rm -rf $tpldir~ | |
13325 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
13326 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
13327 | ;; | |
13328 | *) # Version 6 and above use weak symbols | |
13329 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13330 | 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' | |
13331 | ;; | |
13332 | esac | |
13333 | ||
13334 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
13335 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13336 | 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' | |
13337 | ;; | |
13338 | cxx*) | |
13339 | # Compaq C++ | |
13340 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13341 | 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' | |
13342 | ||
13343 | runpath_var=LD_RUN_PATH | |
13344 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13345 | hardcode_libdir_separator_CXX=: | |
13346 | ||
13347 | # Commands to make compiler produce verbose output that lists | |
13348 | # what "hidden" libraries, object files and flags are used when | |
13349 | # linking a shared library. | |
13350 | # | |
13351 | # There doesn't appear to be a way to prevent this compiler from | |
13352 | # explicitly linking system object files so we need to strip them | |
13353 | # from the output so that they don't get included in the library | |
13354 | # dependencies. | |
13355 | 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' | |
13356 | ;; | |
13357 | xl* | mpixl* | bgxl*) | |
13358 | # IBM XL 8.0 on PPC, with GNU ld | |
13359 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13360 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13361 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13362 | if test "x$supports_anon_versioning" = xyes; then | |
13363 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
13364 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13365 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13366 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13367 | fi | |
13368 | ;; | |
13369 | *) | |
13370 | case `$CC -V 2>&1 | sed 5q` in | |
13371 | *Sun\ C*) | |
13372 | # Sun C++ 5.9 | |
13373 | no_undefined_flag_CXX=' -zdefs' | |
13374 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13375 | 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' | |
13376 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13377 | 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' | |
13378 | compiler_needs_object_CXX=yes | |
13379 | ||
13380 | # Not sure whether something based on | |
13381 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
13382 | # would be better. | |
13383 | output_verbose_link_cmd='func_echo_all' | |
13384 | ||
13385 | # Archives containing C++ object files must be created using | |
13386 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13387 | # necessary to make sure instantiated templates are included | |
13388 | # in the archive. | |
13389 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13390 | ;; | |
13391 | esac | |
13392 | ;; | |
13393 | esac | |
13394 | ;; | |
13395 | ||
13396 | lynxos*) | |
13397 | # FIXME: insert proper C++ library support | |
13398 | ld_shlibs_CXX=no | |
13399 | ;; | |
13400 | ||
13401 | m88k*) | |
13402 | # FIXME: insert proper C++ library support | |
13403 | ld_shlibs_CXX=no | |
13404 | ;; | |
13405 | ||
13406 | mvs*) | |
13407 | case $cc_basename in | |
13408 | cxx*) | |
13409 | # FIXME: insert proper C++ library support | |
13410 | ld_shlibs_CXX=no | |
13411 | ;; | |
13412 | *) | |
13413 | # FIXME: insert proper C++ library support | |
13414 | ld_shlibs_CXX=no | |
13415 | ;; | |
13416 | esac | |
13417 | ;; | |
13418 | ||
13419 | netbsd*) | |
13420 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13421 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13422 | wlarc= | |
13423 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13424 | hardcode_direct_CXX=yes | |
13425 | hardcode_shlibpath_var_CXX=no | |
13426 | fi | |
13427 | # Workaround some broken pre-1.5 toolchains | |
13428 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
13429 | ;; | |
13430 | ||
13431 | *nto* | *qnx*) | |
13432 | ld_shlibs_CXX=yes | |
13433 | ;; | |
13434 | ||
13435 | openbsd2*) | |
13436 | # C++ shared libraries are fairly broken | |
13437 | ld_shlibs_CXX=no | |
13438 | ;; | |
13439 | ||
13440 | openbsd*) | |
13441 | if test -f /usr/libexec/ld.so; then | |
13442 | hardcode_direct_CXX=yes | |
13443 | hardcode_shlibpath_var_CXX=no | |
13444 | hardcode_direct_absolute_CXX=yes | |
13445 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13446 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13447 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13448 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13449 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13450 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13451 | fi | |
13452 | output_verbose_link_cmd=func_echo_all | |
13453 | else | |
13454 | ld_shlibs_CXX=no | |
13455 | fi | |
13456 | ;; | |
13457 | ||
13458 | osf3* | osf4* | osf5*) | |
13459 | case $cc_basename in | |
13460 | KCC*) | |
13461 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13462 | ||
13463 | # KCC will only create a shared library if the output file | |
13464 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13465 | # to its proper name (with version) after linking. | |
13466 | 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' | |
13467 | ||
13468 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13469 | hardcode_libdir_separator_CXX=: | |
13470 | ||
13471 | # Archives containing C++ object files must be created using | |
13472 | # the KAI C++ compiler. | |
13473 | case $host in | |
13474 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
13475 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
13476 | esac | |
13477 | ;; | |
13478 | RCC*) | |
13479 | # Rational C++ 2.4.1 | |
13480 | # FIXME: insert proper C++ library support | |
13481 | ld_shlibs_CXX=no | |
13482 | ;; | |
13483 | cxx*) | |
13484 | case $host in | |
13485 | osf3*) | |
13486 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13487 | 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' | |
13488 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13489 | ;; | |
13490 | *) | |
13491 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
13492 | 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' | |
13493 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
13494 | echo "-hidden">> $lib.exp~ | |
13495 | $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~ | |
13496 | $RM $lib.exp' | |
13497 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13498 | ;; | |
13499 | esac | |
13500 | ||
13501 | hardcode_libdir_separator_CXX=: | |
13502 | ||
13503 | # Commands to make compiler produce verbose output that lists | |
13504 | # what "hidden" libraries, object files and flags are used when | |
13505 | # linking a shared library. | |
13506 | # | |
13507 | # There doesn't appear to be a way to prevent this compiler from | |
13508 | # explicitly linking system object files so we need to strip them | |
13509 | # from the output so that they don't get included in the library | |
13510 | # dependencies. | |
13511 | 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"' | |
13512 | ;; | |
13513 | *) | |
13514 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13515 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13516 | case $host in | |
13517 | osf3*) | |
13518 | 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' | |
13519 | ;; | |
13520 | *) | |
13521 | 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' | |
13522 | ;; | |
13523 | esac | |
13524 | ||
13525 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13526 | hardcode_libdir_separator_CXX=: | |
13527 | ||
13528 | # Commands to make compiler produce verbose output that lists | |
13529 | # what "hidden" libraries, object files and flags are used when | |
13530 | # linking a shared library. | |
13531 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13532 | ||
13533 | else | |
13534 | # FIXME: insert proper C++ library support | |
13535 | ld_shlibs_CXX=no | |
13536 | fi | |
13537 | ;; | |
13538 | esac | |
13539 | ;; | |
13540 | ||
13541 | psos*) | |
13542 | # FIXME: insert proper C++ library support | |
13543 | ld_shlibs_CXX=no | |
13544 | ;; | |
13545 | ||
13546 | sunos4*) | |
13547 | case $cc_basename in | |
13548 | CC*) | |
13549 | # Sun C++ 4.x | |
13550 | # FIXME: insert proper C++ library support | |
13551 | ld_shlibs_CXX=no | |
13552 | ;; | |
13553 | lcc*) | |
13554 | # Lucid | |
13555 | # FIXME: insert proper C++ library support | |
13556 | ld_shlibs_CXX=no | |
13557 | ;; | |
13558 | *) | |
13559 | # FIXME: insert proper C++ library support | |
13560 | ld_shlibs_CXX=no | |
13561 | ;; | |
13562 | esac | |
13563 | ;; | |
13564 | ||
13565 | solaris*) | |
13566 | case $cc_basename in | |
13567 | CC*) | |
13568 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13569 | archive_cmds_need_lc_CXX=yes | |
13570 | no_undefined_flag_CXX=' -zdefs' | |
13571 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13572 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13573 | $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' | |
13574 | ||
13575 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13576 | hardcode_shlibpath_var_CXX=no | |
13577 | case $host_os in | |
13578 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13579 | *) | |
13580 | # The compiler driver will combine and reorder linker options, | |
13581 | # but understands `-z linker_flag'. | |
13582 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13583 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
13584 | ;; | |
13585 | esac | |
13586 | link_all_deplibs_CXX=yes | |
13587 | ||
13588 | output_verbose_link_cmd='func_echo_all' | |
13589 | ||
13590 | # Archives containing C++ object files must be created using | |
13591 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13592 | # necessary to make sure instantiated templates are included | |
13593 | # in the archive. | |
13594 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13595 | ;; | |
13596 | gcx*) | |
13597 | # Green Hills C++ Compiler | |
13598 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13599 | ||
13600 | # The C++ compiler must be used to create the archive. | |
13601 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
13602 | ;; | |
13603 | *) | |
13604 | # GNU C++ compiler with Solaris linker | |
13605 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13606 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
13607 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
13608 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13609 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13610 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13611 | ||
13612 | # Commands to make compiler produce verbose output that lists | |
13613 | # what "hidden" libraries, object files and flags are used when | |
13614 | # linking a shared library. | |
13615 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13616 | else | |
13617 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
13618 | # platform. | |
13619 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13620 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13621 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13622 | ||
13623 | # Commands to make compiler produce verbose output that lists | |
13624 | # what "hidden" libraries, object files and flags are used when | |
13625 | # linking a shared library. | |
13626 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13627 | fi | |
13628 | ||
13629 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
13630 | case $host_os in | |
13631 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13632 | *) | |
13633 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13634 | ;; | |
13635 | esac | |
13636 | fi | |
13637 | ;; | |
13638 | esac | |
13639 | ;; | |
13640 | ||
13641 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13642 | no_undefined_flag_CXX='${wl}-z,text' | |
13643 | archive_cmds_need_lc_CXX=no | |
13644 | hardcode_shlibpath_var_CXX=no | |
13645 | runpath_var='LD_RUN_PATH' | |
13646 | ||
13647 | case $cc_basename in | |
13648 | CC*) | |
13649 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13650 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13651 | ;; | |
13652 | *) | |
13653 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13654 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13655 | ;; | |
13656 | esac | |
13657 | ;; | |
13658 | ||
13659 | sysv5* | sco3.2v5* | sco5v6*) | |
13660 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13661 | # link with -lc, and that would cause any symbols used from libc to | |
13662 | # always be unresolved, which means just about no library would | |
13663 | # ever link correctly. If we're not using GNU ld we use -z text | |
13664 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13665 | # as -z defs. | |
13666 | no_undefined_flag_CXX='${wl}-z,text' | |
13667 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
13668 | archive_cmds_need_lc_CXX=no | |
13669 | hardcode_shlibpath_var_CXX=no | |
13670 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
13671 | hardcode_libdir_separator_CXX=':' | |
13672 | link_all_deplibs_CXX=yes | |
13673 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
13674 | runpath_var='LD_RUN_PATH' | |
13675 | ||
13676 | case $cc_basename in | |
13677 | CC*) | |
13678 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13679 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13680 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | |
13681 | '"$old_archive_cmds_CXX" | |
13682 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
13683 | '"$reload_cmds_CXX" | |
13684 | ;; | |
13685 | *) | |
13686 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13687 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13688 | ;; | |
13689 | esac | |
13690 | ;; | |
13691 | ||
13692 | tandem*) | |
13693 | case $cc_basename in | |
13694 | NCC*) | |
13695 | # NonStop-UX NCC 3.20 | |
13696 | # FIXME: insert proper C++ library support | |
13697 | ld_shlibs_CXX=no | |
13698 | ;; | |
13699 | *) | |
13700 | # FIXME: insert proper C++ library support | |
13701 | ld_shlibs_CXX=no | |
13702 | ;; | |
13703 | esac | |
13704 | ;; | |
13705 | ||
13706 | vxworks*) | |
13707 | # FIXME: insert proper C++ library support | |
13708 | ld_shlibs_CXX=no | |
13709 | ;; | |
13710 | ||
13711 | *) | |
13712 | # FIXME: insert proper C++ library support | |
13713 | ld_shlibs_CXX=no | |
13714 | ;; | |
13715 | esac | |
13716 | ||
13717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
13718 | $as_echo "$ld_shlibs_CXX" >&6; } | |
13719 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13720 | ||
13721 | GCC_CXX="$GXX" | |
13722 | LD_CXX="$LD" | |
13723 | ||
13724 | ## CAVEAT EMPTOR: | |
13725 | ## There is no encapsulation within the following macros, do not change | |
13726 | ## the running order or otherwise move them around unless you know exactly | |
13727 | ## what you are doing... | |
13728 | # Dependencies to place before and after the object being linked: | |
13729 | predep_objects_CXX= | |
13730 | postdep_objects_CXX= | |
13731 | predeps_CXX= | |
13732 | postdeps_CXX= | |
13733 | compiler_lib_search_path_CXX= | |
13734 | ||
13735 | cat > conftest.$ac_ext <<_LT_EOF | |
13736 | class Foo | |
13737 | { | |
13738 | public: | |
13739 | Foo (void) { a = 0; } | |
13740 | private: | |
13741 | int a; | |
13742 | }; | |
13743 | _LT_EOF | |
13744 | ||
13745 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13746 | (eval $ac_compile) 2>&5 | |
13747 | ac_status=$? | |
13748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13749 | test $ac_status = 0; }; then | |
13750 | # Parse the compiler output and extract the necessary | |
13751 | # objects, libraries and library flags. | |
13752 | ||
13753 | # Sentinel used to keep track of whether or not we are before | |
13754 | # the conftest object file. | |
13755 | pre_test_object_deps_done=no | |
13756 | ||
13757 | for p in `eval "$output_verbose_link_cmd"`; do | |
13758 | case $p in | |
13759 | ||
13760 | -L* | -R* | -l*) | |
13761 | # Some compilers place space between "-{L,R}" and the path. | |
13762 | # Remove the space. | |
13763 | if test $p = "-L" || | |
13764 | test $p = "-R"; then | |
13765 | prev=$p | |
13766 | continue | |
13767 | else | |
13768 | prev= | |
13769 | fi | |
13770 | ||
13771 | if test "$pre_test_object_deps_done" = no; then | |
13772 | case $p in | |
13773 | -L* | -R*) | |
13774 | # Internal compiler library paths should come after those | |
13775 | # provided the user. The postdeps already come after the | |
13776 | # user supplied libs so there is no need to process them. | |
13777 | if test -z "$compiler_lib_search_path_CXX"; then | |
13778 | compiler_lib_search_path_CXX="${prev}${p}" | |
13779 | else | |
13780 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
13781 | fi | |
13782 | ;; | |
13783 | # The "-l" case would never come before the object being | |
13784 | # linked, so don't bother handling this case. | |
13785 | esac | |
13786 | else | |
13787 | if test -z "$postdeps_CXX"; then | |
13788 | postdeps_CXX="${prev}${p}" | |
13789 | else | |
13790 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
13791 | fi | |
13792 | fi | |
13793 | ;; | |
13794 | ||
13795 | *.$objext) | |
13796 | # This assumes that the test object file only shows up | |
13797 | # once in the compiler output. | |
13798 | if test "$p" = "conftest.$objext"; then | |
13799 | pre_test_object_deps_done=yes | |
13800 | continue | |
13801 | fi | |
13802 | ||
13803 | if test "$pre_test_object_deps_done" = no; then | |
13804 | if test -z "$predep_objects_CXX"; then | |
13805 | predep_objects_CXX="$p" | |
13806 | else | |
13807 | predep_objects_CXX="$predep_objects_CXX $p" | |
13808 | fi | |
13809 | else | |
13810 | if test -z "$postdep_objects_CXX"; then | |
13811 | postdep_objects_CXX="$p" | |
13812 | else | |
13813 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
13814 | fi | |
13815 | fi | |
13816 | ;; | |
13817 | ||
13818 | *) ;; # Ignore the rest. | |
13819 | ||
13820 | esac | |
13821 | done | |
13822 | ||
13823 | # Clean up. | |
13824 | rm -f a.out a.exe | |
13825 | else | |
13826 | echo "libtool.m4: error: problem compiling CXX test program" | |
13827 | fi | |
13828 | ||
13829 | $RM -f confest.$objext | |
13830 | ||
13831 | # PORTME: override above test on systems where it is broken | |
13832 | case $host_os in | |
13833 | interix[3-9]*) | |
13834 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
13835 | # hack all around it, let's just trust "g++" to DTRT. | |
13836 | predep_objects_CXX= | |
13837 | postdep_objects_CXX= | |
13838 | postdeps_CXX= | |
13839 | ;; | |
13840 | ||
13841 | linux*) | |
13842 | case `$CC -V 2>&1 | sed 5q` in | |
13843 | *Sun\ C*) | |
13844 | # Sun C++ 5.9 | |
13845 | ||
13846 | # The more standards-conforming stlport4 library is | |
13847 | # incompatible with the Cstd library. Avoid specifying | |
13848 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13849 | # -library=stlport4 depends on it. | |
13850 | case " $CXX $CXXFLAGS " in | |
13851 | *" -library=stlport4 "*) | |
13852 | solaris_use_stlport4=yes | |
13853 | ;; | |
13854 | esac | |
13855 | ||
13856 | if test "$solaris_use_stlport4" != yes; then | |
13857 | postdeps_CXX='-library=Cstd -library=Crun' | |
13858 | fi | |
13859 | ;; | |
13860 | esac | |
13861 | ;; | |
13862 | ||
13863 | solaris*) | |
13864 | case $cc_basename in | |
13865 | CC*) | |
13866 | # The more standards-conforming stlport4 library is | |
13867 | # incompatible with the Cstd library. Avoid specifying | |
13868 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13869 | # -library=stlport4 depends on it. | |
13870 | case " $CXX $CXXFLAGS " in | |
13871 | *" -library=stlport4 "*) | |
13872 | solaris_use_stlport4=yes | |
13873 | ;; | |
13874 | esac | |
13875 | ||
13876 | # Adding this requires a known-good setup of shared libraries for | |
13877 | # Sun compiler versions before 5.6, else PIC objects from an old | |
13878 | # archive will be linked into the output, leading to subtle bugs. | |
13879 | if test "$solaris_use_stlport4" != yes; then | |
13880 | postdeps_CXX='-library=Cstd -library=Crun' | |
13881 | fi | |
13882 | ;; | |
13883 | esac | |
13884 | ;; | |
13885 | esac | |
13886 | ||
13887 | ||
13888 | case " $postdeps_CXX " in | |
13889 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
13890 | esac | |
13891 | compiler_lib_search_dirs_CXX= | |
13892 | if test -n "${compiler_lib_search_path_CXX}"; then | |
13893 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13894 | fi | |
13895 | ||
13896 | ||
13897 | ||
13898 | ||
13899 | ||
13900 | ||
13901 | ||
13902 | ||
13903 | ||
13904 | ||
13905 | ||
13906 | ||
13907 | ||
13908 | ||
13909 | ||
13910 | ||
13911 | ||
13912 | ||
13913 | ||
13914 | ||
13915 | ||
13916 | ||
13917 | ||
13918 | ||
13919 | ||
13920 | ||
13921 | ||
13922 | ||
13923 | ||
13924 | ||
13925 | ||
13926 | lt_prog_compiler_wl_CXX= | |
13927 | lt_prog_compiler_pic_CXX= | |
13928 | lt_prog_compiler_static_CXX= | |
13929 | ||
13930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
13931 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
13932 | ||
13933 | # C++ specific cases for pic, static, wl, etc. | |
13934 | if test "$GXX" = yes; then | |
13935 | lt_prog_compiler_wl_CXX='-Wl,' | |
13936 | lt_prog_compiler_static_CXX='-static' | |
13937 | ||
13938 | case $host_os in | |
13939 | aix*) | |
13940 | # All AIX code is PIC. | |
13941 | if test "$host_cpu" = ia64; then | |
13942 | # AIX 5 now supports IA64 processor | |
13943 | lt_prog_compiler_static_CXX='-Bstatic' | |
13944 | fi | |
52204357 | 13945 | lt_prog_compiler_pic_CXX='-fPIC' |
3cb62297 L |
13946 | ;; |
13947 | ||
13948 | amigaos*) | |
13949 | case $host_cpu in | |
13950 | powerpc) | |
13951 | # see comment about AmigaOS4 .so support | |
13952 | lt_prog_compiler_pic_CXX='-fPIC' | |
13953 | ;; | |
13954 | m68k) | |
13955 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13956 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13957 | # like `-m68040'. | |
13958 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
13959 | ;; | |
13960 | esac | |
13961 | ;; | |
13962 | ||
13963 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13964 | # PIC is the default for these OSes. | |
13965 | ;; | |
13966 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
13967 | # This hack is so that the source file can tell whether it is being | |
13968 | # built for inclusion in a dll (and should export symbols for example). | |
13969 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13970 | # (--disable-auto-import) libraries | |
13971 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
13972 | ;; | |
13973 | darwin* | rhapsody*) | |
13974 | # PIC is the default on this platform | |
13975 | # Common symbols not allowed in MH_DYLIB files | |
13976 | lt_prog_compiler_pic_CXX='-fno-common' | |
13977 | ;; | |
13978 | *djgpp*) | |
13979 | # DJGPP does not support shared libraries at all | |
13980 | lt_prog_compiler_pic_CXX= | |
13981 | ;; | |
13982 | haiku*) | |
13983 | # PIC is the default for Haiku. | |
13984 | # The "-static" flag exists, but is broken. | |
13985 | lt_prog_compiler_static_CXX= | |
13986 | ;; | |
13987 | interix[3-9]*) | |
13988 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13989 | # Instead, we relocate shared libraries at runtime. | |
13990 | ;; | |
13991 | sysv4*MP*) | |
13992 | if test -d /usr/nec; then | |
13993 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
13994 | fi | |
13995 | ;; | |
13996 | hpux*) | |
13997 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
13998 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13999 | # sets the default TLS model and affects inlining. | |
14000 | case $host_cpu in | |
14001 | hppa*64*) | |
14002 | ;; | |
14003 | *) | |
14004 | lt_prog_compiler_pic_CXX='-fPIC' | |
14005 | ;; | |
14006 | esac | |
14007 | ;; | |
14008 | *qnx* | *nto*) | |
14009 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14010 | # it will coredump. | |
14011 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14012 | ;; | |
14013 | *) | |
14014 | lt_prog_compiler_pic_CXX='-fPIC' | |
14015 | ;; | |
14016 | esac | |
14017 | else | |
14018 | case $host_os in | |
14019 | aix[4-9]*) | |
14020 | # All AIX code is PIC. | |
14021 | if test "$host_cpu" = ia64; then | |
14022 | # AIX 5 now supports IA64 processor | |
14023 | lt_prog_compiler_static_CXX='-Bstatic' | |
14024 | else | |
14025 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
14026 | fi | |
14027 | ;; | |
14028 | chorus*) | |
14029 | case $cc_basename in | |
14030 | cxch68*) | |
14031 | # Green Hills C++ Compiler | |
14032 | # _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" | |
14033 | ;; | |
14034 | esac | |
14035 | ;; | |
14036 | dgux*) | |
14037 | case $cc_basename in | |
14038 | ec++*) | |
14039 | lt_prog_compiler_pic_CXX='-KPIC' | |
14040 | ;; | |
14041 | ghcx*) | |
14042 | # Green Hills C++ Compiler | |
14043 | lt_prog_compiler_pic_CXX='-pic' | |
14044 | ;; | |
14045 | *) | |
14046 | ;; | |
14047 | esac | |
14048 | ;; | |
14049 | freebsd* | dragonfly*) | |
14050 | # FreeBSD uses GNU C++ | |
14051 | ;; | |
14052 | hpux9* | hpux10* | hpux11*) | |
14053 | case $cc_basename in | |
14054 | CC*) | |
14055 | lt_prog_compiler_wl_CXX='-Wl,' | |
14056 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14057 | if test "$host_cpu" != ia64; then | |
14058 | lt_prog_compiler_pic_CXX='+Z' | |
14059 | fi | |
14060 | ;; | |
14061 | aCC*) | |
14062 | lt_prog_compiler_wl_CXX='-Wl,' | |
14063 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14064 | case $host_cpu in | |
14065 | hppa*64*|ia64*) | |
14066 | # +Z the default | |
14067 | ;; | |
14068 | *) | |
14069 | lt_prog_compiler_pic_CXX='+Z' | |
14070 | ;; | |
14071 | esac | |
14072 | ;; | |
14073 | *) | |
14074 | ;; | |
14075 | esac | |
14076 | ;; | |
14077 | interix*) | |
14078 | # This is c89, which is MS Visual C++ (no shared libs) | |
14079 | # Anyone wants to do a port? | |
14080 | ;; | |
14081 | irix5* | irix6* | nonstopux*) | |
14082 | case $cc_basename in | |
14083 | CC*) | |
14084 | lt_prog_compiler_wl_CXX='-Wl,' | |
14085 | lt_prog_compiler_static_CXX='-non_shared' | |
14086 | # CC pic flag -KPIC is the default. | |
14087 | ;; | |
14088 | *) | |
14089 | ;; | |
14090 | esac | |
14091 | ;; | |
14092 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
14093 | case $cc_basename in | |
14094 | KCC*) | |
14095 | # KAI C++ Compiler | |
14096 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14097 | lt_prog_compiler_pic_CXX='-fPIC' | |
14098 | ;; | |
14099 | ecpc* ) | |
14100 | # old Intel C++ for x86_64 which still supported -KPIC. | |
14101 | lt_prog_compiler_wl_CXX='-Wl,' | |
14102 | lt_prog_compiler_pic_CXX='-KPIC' | |
14103 | lt_prog_compiler_static_CXX='-static' | |
14104 | ;; | |
14105 | icpc* ) | |
14106 | # Intel C++, used to be incompatible with GCC. | |
14107 | # ICC 10 doesn't accept -KPIC any more. | |
14108 | lt_prog_compiler_wl_CXX='-Wl,' | |
14109 | lt_prog_compiler_pic_CXX='-fPIC' | |
14110 | lt_prog_compiler_static_CXX='-static' | |
14111 | ;; | |
14112 | pgCC* | pgcpp*) | |
14113 | # Portland Group C++ compiler | |
14114 | lt_prog_compiler_wl_CXX='-Wl,' | |
14115 | lt_prog_compiler_pic_CXX='-fpic' | |
14116 | lt_prog_compiler_static_CXX='-Bstatic' | |
14117 | ;; | |
14118 | cxx*) | |
14119 | # Compaq C++ | |
14120 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14121 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14122 | lt_prog_compiler_pic_CXX= | |
14123 | lt_prog_compiler_static_CXX='-non_shared' | |
14124 | ;; | |
14125 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | |
14126 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
14127 | lt_prog_compiler_wl_CXX='-Wl,' | |
14128 | lt_prog_compiler_pic_CXX='-qpic' | |
14129 | lt_prog_compiler_static_CXX='-qstaticlink' | |
14130 | ;; | |
14131 | *) | |
14132 | case `$CC -V 2>&1 | sed 5q` in | |
14133 | *Sun\ C*) | |
14134 | # Sun C++ 5.9 | |
14135 | lt_prog_compiler_pic_CXX='-KPIC' | |
14136 | lt_prog_compiler_static_CXX='-Bstatic' | |
14137 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14138 | ;; | |
14139 | esac | |
14140 | ;; | |
14141 | esac | |
14142 | ;; | |
14143 | lynxos*) | |
14144 | ;; | |
14145 | m88k*) | |
14146 | ;; | |
14147 | mvs*) | |
14148 | case $cc_basename in | |
14149 | cxx*) | |
14150 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
14151 | ;; | |
14152 | *) | |
14153 | ;; | |
14154 | esac | |
14155 | ;; | |
14156 | netbsd*) | |
14157 | ;; | |
14158 | *qnx* | *nto*) | |
14159 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14160 | # it will coredump. | |
14161 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14162 | ;; | |
14163 | osf3* | osf4* | osf5*) | |
14164 | case $cc_basename in | |
14165 | KCC*) | |
14166 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14167 | ;; | |
14168 | RCC*) | |
14169 | # Rational C++ 2.4.1 | |
14170 | lt_prog_compiler_pic_CXX='-pic' | |
14171 | ;; | |
14172 | cxx*) | |
14173 | # Digital/Compaq C++ | |
14174 | lt_prog_compiler_wl_CXX='-Wl,' | |
14175 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14176 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14177 | lt_prog_compiler_pic_CXX= | |
14178 | lt_prog_compiler_static_CXX='-non_shared' | |
14179 | ;; | |
14180 | *) | |
14181 | ;; | |
14182 | esac | |
14183 | ;; | |
14184 | psos*) | |
14185 | ;; | |
14186 | solaris*) | |
14187 | case $cc_basename in | |
14188 | CC*) | |
14189 | # Sun C++ 4.2, 5.x and Centerline C++ | |
14190 | lt_prog_compiler_pic_CXX='-KPIC' | |
14191 | lt_prog_compiler_static_CXX='-Bstatic' | |
14192 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14193 | ;; | |
14194 | gcx*) | |
14195 | # Green Hills C++ Compiler | |
14196 | lt_prog_compiler_pic_CXX='-PIC' | |
14197 | ;; | |
14198 | *) | |
14199 | ;; | |
14200 | esac | |
14201 | ;; | |
14202 | sunos4*) | |
14203 | case $cc_basename in | |
14204 | CC*) | |
14205 | # Sun C++ 4.x | |
14206 | lt_prog_compiler_pic_CXX='-pic' | |
14207 | lt_prog_compiler_static_CXX='-Bstatic' | |
14208 | ;; | |
14209 | lcc*) | |
14210 | # Lucid | |
14211 | lt_prog_compiler_pic_CXX='-pic' | |
14212 | ;; | |
14213 | *) | |
14214 | ;; | |
14215 | esac | |
14216 | ;; | |
14217 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14218 | case $cc_basename in | |
14219 | CC*) | |
14220 | lt_prog_compiler_wl_CXX='-Wl,' | |
14221 | lt_prog_compiler_pic_CXX='-KPIC' | |
14222 | lt_prog_compiler_static_CXX='-Bstatic' | |
14223 | ;; | |
14224 | esac | |
14225 | ;; | |
14226 | tandem*) | |
14227 | case $cc_basename in | |
14228 | NCC*) | |
14229 | # NonStop-UX NCC 3.20 | |
14230 | lt_prog_compiler_pic_CXX='-KPIC' | |
14231 | ;; | |
14232 | *) | |
14233 | ;; | |
14234 | esac | |
14235 | ;; | |
14236 | vxworks*) | |
14237 | ;; | |
14238 | *) | |
14239 | lt_prog_compiler_can_build_shared_CXX=no | |
14240 | ;; | |
14241 | esac | |
14242 | fi | |
14243 | ||
14244 | case $host_os in | |
14245 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14246 | *djgpp*) | |
14247 | lt_prog_compiler_pic_CXX= | |
14248 | ;; | |
14249 | *) | |
14250 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
14251 | ;; | |
14252 | esac | |
14253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
14254 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
14255 | ||
14256 | ||
14257 | ||
14258 | # | |
14259 | # Check to make sure the PIC flag actually works. | |
14260 | # | |
14261 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
14262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
14263 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
d0ac1c44 | 14264 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
3cb62297 L |
14265 | $as_echo_n "(cached) " >&6 |
14266 | else | |
14267 | lt_cv_prog_compiler_pic_works_CXX=no | |
14268 | ac_outfile=conftest.$ac_objext | |
14269 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14270 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
14271 | # Insert the option either (1) after the last *FLAGS variable, or | |
14272 | # (2) before a word containing "conftest.", or (3) at the end. | |
14273 | # Note that $ac_compile itself does not contain backslashes and begins | |
14274 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14275 | # The option is referenced via a variable to avoid confusing sed. | |
14276 | lt_compile=`echo "$ac_compile" | $SED \ | |
14277 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14278 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14279 | -e 's:$: $lt_compiler_flag:'` | |
14280 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14281 | (eval "$lt_compile" 2>conftest.err) | |
14282 | ac_status=$? | |
14283 | cat conftest.err >&5 | |
14284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14285 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
14286 | # The compiler can only warn and ignore the option if not recognized | |
14287 | # So say no if there are warnings other than the usual output. | |
14288 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
14289 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14290 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
14291 | lt_cv_prog_compiler_pic_works_CXX=yes | |
14292 | fi | |
14293 | fi | |
14294 | $RM conftest* | |
14295 | ||
14296 | fi | |
14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
14298 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
14299 | ||
14300 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
14301 | case $lt_prog_compiler_pic_CXX in | |
14302 | "" | " "*) ;; | |
14303 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
14304 | esac | |
14305 | else | |
14306 | lt_prog_compiler_pic_CXX= | |
14307 | lt_prog_compiler_can_build_shared_CXX=no | |
14308 | fi | |
14309 | ||
14310 | fi | |
14311 | ||
14312 | ||
14313 | ||
14314 | # | |
14315 | # Check to make sure the static flag actually works. | |
14316 | # | |
14317 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
14318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
14319 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
d0ac1c44 | 14320 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
3cb62297 L |
14321 | $as_echo_n "(cached) " >&6 |
14322 | else | |
14323 | lt_cv_prog_compiler_static_works_CXX=no | |
14324 | save_LDFLAGS="$LDFLAGS" | |
14325 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14326 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14327 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14328 | # The linker can only warn and ignore the option if not recognized | |
14329 | # So say no if there are warnings | |
14330 | if test -s conftest.err; then | |
14331 | # Append any errors to the config.log. | |
14332 | cat conftest.err 1>&5 | |
14333 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
14334 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14335 | if diff conftest.exp conftest.er2 >/dev/null; then | |
14336 | lt_cv_prog_compiler_static_works_CXX=yes | |
14337 | fi | |
14338 | else | |
14339 | lt_cv_prog_compiler_static_works_CXX=yes | |
14340 | fi | |
14341 | fi | |
14342 | $RM -r conftest* | |
14343 | LDFLAGS="$save_LDFLAGS" | |
14344 | ||
14345 | fi | |
14346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
14347 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
14348 | ||
14349 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
14350 | : | |
14351 | else | |
14352 | lt_prog_compiler_static_CXX= | |
14353 | fi | |
14354 | ||
14355 | ||
14356 | ||
14357 | ||
14358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14359 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 14360 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
3cb62297 L |
14361 | $as_echo_n "(cached) " >&6 |
14362 | else | |
14363 | lt_cv_prog_compiler_c_o_CXX=no | |
14364 | $RM -r conftest 2>/dev/null | |
14365 | mkdir conftest | |
14366 | cd conftest | |
14367 | mkdir out | |
14368 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14369 | ||
14370 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14371 | # Insert the option either (1) after the last *FLAGS variable, or | |
14372 | # (2) before a word containing "conftest.", or (3) at the end. | |
14373 | # Note that $ac_compile itself does not contain backslashes and begins | |
14374 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14375 | lt_compile=`echo "$ac_compile" | $SED \ | |
14376 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14377 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14378 | -e 's:$: $lt_compiler_flag:'` | |
14379 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14380 | (eval "$lt_compile" 2>out/conftest.err) | |
14381 | ac_status=$? | |
14382 | cat out/conftest.err >&5 | |
14383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14384 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14385 | then | |
14386 | # The compiler can only warn and ignore the option if not recognized | |
14387 | # So say no if there are warnings | |
14388 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14389 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14390 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14391 | lt_cv_prog_compiler_c_o_CXX=yes | |
14392 | fi | |
14393 | fi | |
14394 | chmod u+w . 2>&5 | |
14395 | $RM conftest* | |
14396 | # SGI C++ compiler will create directory out/ii_files/ for | |
14397 | # template instantiation | |
14398 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14399 | $RM out/* && rmdir out | |
14400 | cd .. | |
14401 | $RM -r conftest | |
14402 | $RM conftest* | |
14403 | ||
14404 | fi | |
14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14406 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14407 | ||
14408 | ||
14409 | ||
14410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14411 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 14412 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
3cb62297 L |
14413 | $as_echo_n "(cached) " >&6 |
14414 | else | |
14415 | lt_cv_prog_compiler_c_o_CXX=no | |
14416 | $RM -r conftest 2>/dev/null | |
14417 | mkdir conftest | |
14418 | cd conftest | |
14419 | mkdir out | |
14420 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14421 | ||
14422 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14423 | # Insert the option either (1) after the last *FLAGS variable, or | |
14424 | # (2) before a word containing "conftest.", or (3) at the end. | |
14425 | # Note that $ac_compile itself does not contain backslashes and begins | |
14426 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14427 | lt_compile=`echo "$ac_compile" | $SED \ | |
14428 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14429 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14430 | -e 's:$: $lt_compiler_flag:'` | |
14431 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14432 | (eval "$lt_compile" 2>out/conftest.err) | |
14433 | ac_status=$? | |
14434 | cat out/conftest.err >&5 | |
14435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14436 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14437 | then | |
14438 | # The compiler can only warn and ignore the option if not recognized | |
14439 | # So say no if there are warnings | |
14440 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14441 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14442 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14443 | lt_cv_prog_compiler_c_o_CXX=yes | |
14444 | fi | |
14445 | fi | |
14446 | chmod u+w . 2>&5 | |
14447 | $RM conftest* | |
14448 | # SGI C++ compiler will create directory out/ii_files/ for | |
14449 | # template instantiation | |
14450 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14451 | $RM out/* && rmdir out | |
14452 | cd .. | |
14453 | $RM -r conftest | |
14454 | $RM conftest* | |
14455 | ||
14456 | fi | |
14457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14458 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14459 | ||
14460 | ||
14461 | ||
14462 | ||
14463 | hard_links="nottested" | |
14464 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
14465 | # do not overwrite the value of need_locks provided by the user | |
14466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
14467 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
14468 | hard_links=yes | |
14469 | $RM conftest* | |
14470 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14471 | touch conftest.a | |
14472 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14473 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
14475 | $as_echo "$hard_links" >&6; } | |
14476 | if test "$hard_links" = no; then | |
14477 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14478 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14479 | need_locks=warn | |
14480 | fi | |
14481 | else | |
14482 | need_locks=no | |
14483 | fi | |
14484 | ||
14485 | ||
14486 | ||
14487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14488 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
14489 | ||
14490 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14491 | case $host_os in | |
14492 | aix[4-9]*) | |
14493 | # If we're using GNU nm, then we don't want the "-C" option. | |
14494 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14495 | # Also, AIX nm treats weak defined symbols like other global defined | |
14496 | # symbols, whereas GNU nm marks them as "W". | |
14497 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
14498 | 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' | |
14499 | else | |
5c14705f | 14500 | 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 |
14501 | fi |
14502 | ;; | |
14503 | pw32*) | |
14504 | export_symbols_cmds_CXX="$ltdll_cmds" | |
14505 | ;; | |
14506 | cygwin* | mingw* | cegcc*) | |
14507 | 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' | |
14508 | ;; | |
14509 | *) | |
14510 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14511 | ;; | |
14512 | esac | |
14513 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
14514 | ||
14515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
14516 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14517 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14518 | ||
14519 | with_gnu_ld_CXX=$with_gnu_ld | |
14520 | ||
14521 | ||
14522 | ||
14523 | ||
14524 | ||
14525 | ||
14526 | # | |
14527 | # Do we need to explicitly link libc? | |
14528 | # | |
14529 | case "x$archive_cmds_need_lc_CXX" in | |
14530 | x|xyes) | |
14531 | # Assume -lc should be added | |
14532 | archive_cmds_need_lc_CXX=yes | |
14533 | ||
14534 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14535 | case $archive_cmds_CXX in | |
14536 | *'~'*) | |
14537 | # FIXME: we may have to deal with multi-command sequences. | |
14538 | ;; | |
14539 | '$CC '*) | |
14540 | # Test whether the compiler implicitly links with -lc since on some | |
14541 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14542 | # to ld, don't add -lc before -lgcc. | |
14543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
14544 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
d0ac1c44 | 14545 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
3cb62297 L |
14546 | $as_echo_n "(cached) " >&6 |
14547 | else | |
14548 | $RM conftest* | |
14549 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14550 | ||
14551 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
14552 | (eval $ac_compile) 2>&5 | |
14553 | ac_status=$? | |
14554 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14555 | test $ac_status = 0; } 2>conftest.err; then | |
14556 | soname=conftest | |
14557 | lib=conftest | |
14558 | libobjs=conftest.$ac_objext | |
14559 | deplibs= | |
14560 | wl=$lt_prog_compiler_wl_CXX | |
14561 | pic_flag=$lt_prog_compiler_pic_CXX | |
14562 | compiler_flags=-v | |
14563 | linker_flags=-v | |
14564 | verstring= | |
14565 | output_objdir=. | |
14566 | libname=conftest | |
14567 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14568 | allow_undefined_flag_CXX= | |
14569 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
14570 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14571 | ac_status=$? | |
14572 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14573 | test $ac_status = 0; } | |
14574 | then | |
14575 | lt_cv_archive_cmds_need_lc_CXX=no | |
14576 | else | |
14577 | lt_cv_archive_cmds_need_lc_CXX=yes | |
14578 | fi | |
14579 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14580 | else | |
14581 | cat conftest.err 1>&5 | |
14582 | fi | |
14583 | $RM conftest* | |
14584 | ||
14585 | fi | |
14586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
14587 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
14588 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
14589 | ;; | |
14590 | esac | |
14591 | fi | |
14592 | ;; | |
14593 | esac | |
14594 | ||
14595 | ||
14596 | ||
14597 | ||
14598 | ||
14599 | ||
14600 | ||
14601 | ||
14602 | ||
14603 | ||
14604 | ||
14605 | ||
14606 | ||
14607 | ||
14608 | ||
14609 | ||
14610 | ||
14611 | ||
14612 | ||
14613 | ||
14614 | ||
14615 | ||
14616 | ||
14617 | ||
14618 | ||
14619 | ||
14620 | ||
14621 | ||
14622 | ||
14623 | ||
14624 | ||
14625 | ||
14626 | ||
14627 | ||
14628 | ||
14629 | ||
14630 | ||
14631 | ||
14632 | ||
14633 | ||
14634 | ||
14635 | ||
14636 | ||
14637 | ||
14638 | ||
14639 | ||
14640 | ||
14641 | ||
14642 | ||
14643 | ||
14644 | ||
14645 | ||
14646 | ||
14647 | ||
14648 | ||
14649 | ||
14650 | ||
14651 | ||
14652 | ||
14653 | ||
14654 | ||
14655 | ||
14656 | ||
14657 | ||
14658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
14659 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
14660 | ||
14661 | library_names_spec= | |
14662 | libname_spec='lib$name' | |
14663 | soname_spec= | |
14664 | shrext_cmds=".so" | |
14665 | postinstall_cmds= | |
14666 | postuninstall_cmds= | |
14667 | finish_cmds= | |
14668 | finish_eval= | |
14669 | shlibpath_var= | |
14670 | shlibpath_overrides_runpath=unknown | |
14671 | version_type=none | |
14672 | dynamic_linker="$host_os ld.so" | |
14673 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14674 | need_lib_prefix=unknown | |
14675 | hardcode_into_libs=no | |
14676 | ||
14677 | # when you set need_version to no, make sure it does not cause -set_version | |
14678 | # flags to be left without arguments | |
14679 | need_version=unknown | |
14680 | ||
14681 | case $host_os in | |
14682 | aix3*) | |
14683 | version_type=linux | |
14684 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14685 | shlibpath_var=LIBPATH | |
14686 | ||
14687 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14688 | soname_spec='${libname}${release}${shared_ext}$major' | |
14689 | ;; | |
14690 | ||
14691 | aix[4-9]*) | |
14692 | version_type=linux | |
14693 | need_lib_prefix=no | |
14694 | need_version=no | |
14695 | hardcode_into_libs=yes | |
14696 | if test "$host_cpu" = ia64; then | |
14697 | # AIX 5 supports IA64 | |
14698 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14699 | shlibpath_var=LD_LIBRARY_PATH | |
14700 | else | |
14701 | # With GCC up to 2.95.x, collect2 would create an import file | |
14702 | # for dependence libraries. The import file would start with | |
14703 | # the line `#! .'. This would cause the generated library to | |
14704 | # depend on `.', always an invalid library. This was fixed in | |
14705 | # development snapshots of GCC prior to 3.0. | |
14706 | case $host_os in | |
14707 | aix4 | aix4.[01] | aix4.[01].*) | |
14708 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14709 | echo ' yes ' | |
14710 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
14711 | : | |
14712 | else | |
14713 | can_build_shared=no | |
14714 | fi | |
14715 | ;; | |
14716 | esac | |
14717 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14718 | # soname into executable. Probably we can add versioning support to | |
14719 | # collect2, so additional links can be useful in future. | |
14720 | if test "$aix_use_runtimelinking" = yes; then | |
14721 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14722 | # instead of lib<name>.a to let people know that these are not | |
14723 | # typical AIX shared libraries. | |
14724 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14725 | else | |
14726 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14727 | # and later when we are not doing run time linking. | |
14728 | library_names_spec='${libname}${release}.a $libname.a' | |
14729 | soname_spec='${libname}${release}${shared_ext}$major' | |
14730 | fi | |
14731 | shlibpath_var=LIBPATH | |
14732 | fi | |
14733 | ;; | |
14734 | ||
14735 | amigaos*) | |
14736 | case $host_cpu in | |
14737 | powerpc) | |
14738 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
14739 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
14740 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14741 | ;; | |
14742 | m68k) | |
14743 | library_names_spec='$libname.ixlibrary $libname.a' | |
14744 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14745 | 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' | |
14746 | ;; | |
14747 | esac | |
14748 | ;; | |
14749 | ||
14750 | beos*) | |
14751 | library_names_spec='${libname}${shared_ext}' | |
14752 | dynamic_linker="$host_os ld.so" | |
14753 | shlibpath_var=LIBRARY_PATH | |
14754 | ;; | |
14755 | ||
14756 | bsdi[45]*) | |
14757 | version_type=linux | |
14758 | need_version=no | |
14759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14760 | soname_spec='${libname}${release}${shared_ext}$major' | |
14761 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14762 | shlibpath_var=LD_LIBRARY_PATH | |
14763 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14764 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14765 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14766 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14767 | # libtool to hard-code these into programs | |
14768 | ;; | |
14769 | ||
14770 | cygwin* | mingw* | pw32* | cegcc*) | |
14771 | version_type=windows | |
14772 | shrext_cmds=".dll" | |
14773 | need_version=no | |
14774 | need_lib_prefix=no | |
14775 | ||
14776 | case $GCC,$host_os in | |
14777 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
14778 | library_names_spec='$libname.dll.a' | |
14779 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14780 | postinstall_cmds='base_file=`basename \${file}`~ | |
14781 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14782 | dldir=$destdir/`dirname \$dlpath`~ | |
14783 | test -d \$dldir || mkdir -p \$dldir~ | |
14784 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14785 | chmod a+x \$dldir/$dlname~ | |
14786 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
14787 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
14788 | fi' | |
14789 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14790 | dlpath=$dir/\$dldll~ | |
14791 | $RM \$dlpath' | |
14792 | shlibpath_overrides_runpath=yes | |
14793 | ||
14794 | case $host_os in | |
14795 | cygwin*) | |
14796 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14797 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14798 | ||
14799 | ;; | |
14800 | mingw* | cegcc*) | |
14801 | # MinGW DLLs use traditional 'lib' prefix | |
14802 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14803 | ;; | |
14804 | pw32*) | |
14805 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14806 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14807 | ;; | |
14808 | esac | |
14809 | ;; | |
14810 | ||
14811 | *) | |
14812 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14813 | ;; | |
14814 | esac | |
14815 | dynamic_linker='Win32 ld.exe' | |
14816 | # FIXME: first we should search . and the directory the executable is in | |
14817 | shlibpath_var=PATH | |
14818 | ;; | |
14819 | ||
14820 | darwin* | rhapsody*) | |
14821 | dynamic_linker="$host_os dyld" | |
14822 | version_type=darwin | |
14823 | need_lib_prefix=no | |
14824 | need_version=no | |
14825 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14826 | soname_spec='${libname}${release}${major}$shared_ext' | |
14827 | shlibpath_overrides_runpath=yes | |
14828 | shlibpath_var=DYLD_LIBRARY_PATH | |
14829 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14830 | ||
14831 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14832 | ;; | |
14833 | ||
14834 | dgux*) | |
14835 | version_type=linux | |
14836 | need_lib_prefix=no | |
14837 | need_version=no | |
14838 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14839 | soname_spec='${libname}${release}${shared_ext}$major' | |
14840 | shlibpath_var=LD_LIBRARY_PATH | |
14841 | ;; | |
14842 | ||
3cb62297 L |
14843 | freebsd* | dragonfly*) |
14844 | # DragonFly does not have aout. When/if they implement a new | |
14845 | # versioning mechanism, adjust this. | |
14846 | if test -x /usr/bin/objformat; then | |
14847 | objformat=`/usr/bin/objformat` | |
14848 | else | |
14849 | case $host_os in | |
6d2920c8 | 14850 | freebsd[23].*) objformat=aout ;; |
3cb62297 L |
14851 | *) objformat=elf ;; |
14852 | esac | |
14853 | fi | |
14854 | version_type=freebsd-$objformat | |
14855 | case $version_type in | |
14856 | freebsd-elf*) | |
14857 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14858 | need_version=no | |
14859 | need_lib_prefix=no | |
14860 | ;; | |
14861 | freebsd-*) | |
14862 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14863 | need_version=yes | |
14864 | ;; | |
14865 | esac | |
14866 | shlibpath_var=LD_LIBRARY_PATH | |
14867 | case $host_os in | |
6d2920c8 | 14868 | freebsd2.*) |
3cb62297 L |
14869 | shlibpath_overrides_runpath=yes |
14870 | ;; | |
14871 | freebsd3.[01]* | freebsdelf3.[01]*) | |
14872 | shlibpath_overrides_runpath=yes | |
14873 | hardcode_into_libs=yes | |
14874 | ;; | |
14875 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14876 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14877 | shlibpath_overrides_runpath=no | |
14878 | hardcode_into_libs=yes | |
14879 | ;; | |
14880 | *) # from 4.6 on, and DragonFly | |
14881 | shlibpath_overrides_runpath=yes | |
14882 | hardcode_into_libs=yes | |
14883 | ;; | |
14884 | esac | |
14885 | ;; | |
14886 | ||
14887 | gnu*) | |
14888 | version_type=linux | |
14889 | need_lib_prefix=no | |
14890 | need_version=no | |
14891 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14892 | soname_spec='${libname}${release}${shared_ext}$major' | |
14893 | shlibpath_var=LD_LIBRARY_PATH | |
14894 | hardcode_into_libs=yes | |
14895 | ;; | |
14896 | ||
14897 | haiku*) | |
14898 | version_type=linux | |
14899 | need_lib_prefix=no | |
14900 | need_version=no | |
14901 | dynamic_linker="$host_os runtime_loader" | |
14902 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14903 | soname_spec='${libname}${release}${shared_ext}$major' | |
14904 | shlibpath_var=LIBRARY_PATH | |
14905 | shlibpath_overrides_runpath=yes | |
14906 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
14907 | hardcode_into_libs=yes | |
14908 | ;; | |
14909 | ||
14910 | hpux9* | hpux10* | hpux11*) | |
14911 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
14912 | # link against other versions. | |
14913 | version_type=sunos | |
14914 | need_lib_prefix=no | |
14915 | need_version=no | |
14916 | case $host_cpu in | |
14917 | ia64*) | |
14918 | shrext_cmds='.so' | |
14919 | hardcode_into_libs=yes | |
14920 | dynamic_linker="$host_os dld.so" | |
14921 | shlibpath_var=LD_LIBRARY_PATH | |
14922 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14924 | soname_spec='${libname}${release}${shared_ext}$major' | |
14925 | if test "X$HPUX_IA64_MODE" = X32; then | |
14926 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14927 | else | |
14928 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14929 | fi | |
14930 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14931 | ;; | |
14932 | hppa*64*) | |
14933 | shrext_cmds='.sl' | |
14934 | hardcode_into_libs=yes | |
14935 | dynamic_linker="$host_os dld.sl" | |
14936 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14937 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14939 | soname_spec='${libname}${release}${shared_ext}$major' | |
14940 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14941 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14942 | ;; | |
14943 | *) | |
14944 | shrext_cmds='.sl' | |
14945 | dynamic_linker="$host_os dld.sl" | |
14946 | shlibpath_var=SHLIB_PATH | |
14947 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14948 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14949 | soname_spec='${libname}${release}${shared_ext}$major' | |
14950 | ;; | |
14951 | esac | |
14952 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
14953 | postinstall_cmds='chmod 555 $lib' | |
14954 | # or fails outright, so override atomically: | |
14955 | install_override_mode=555 | |
14956 | ;; | |
14957 | ||
14958 | interix[3-9]*) | |
14959 | version_type=linux | |
14960 | need_lib_prefix=no | |
14961 | need_version=no | |
14962 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14963 | soname_spec='${libname}${release}${shared_ext}$major' | |
14964 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14965 | shlibpath_var=LD_LIBRARY_PATH | |
14966 | shlibpath_overrides_runpath=no | |
14967 | hardcode_into_libs=yes | |
14968 | ;; | |
14969 | ||
14970 | irix5* | irix6* | nonstopux*) | |
14971 | case $host_os in | |
14972 | nonstopux*) version_type=nonstopux ;; | |
14973 | *) | |
14974 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
14975 | version_type=linux | |
14976 | else | |
14977 | version_type=irix | |
14978 | fi ;; | |
14979 | esac | |
14980 | need_lib_prefix=no | |
14981 | need_version=no | |
14982 | soname_spec='${libname}${release}${shared_ext}$major' | |
14983 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14984 | case $host_os in | |
14985 | irix5* | nonstopux*) | |
14986 | libsuff= shlibsuff= | |
14987 | ;; | |
14988 | *) | |
14989 | case $LD in # libtool.m4 will add one of these switches to LD | |
14990 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14991 | libsuff= shlibsuff= libmagic=32-bit;; | |
14992 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14993 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14994 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14995 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14996 | *) libsuff= shlibsuff= libmagic=never-match;; | |
14997 | esac | |
14998 | ;; | |
14999 | esac | |
15000 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15001 | shlibpath_overrides_runpath=no | |
15002 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15003 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15004 | hardcode_into_libs=yes | |
15005 | ;; | |
15006 | ||
15007 | # No shared lib support for Linux oldld, aout, or coff. | |
15008 | linux*oldld* | linux*aout* | linux*coff*) | |
15009 | dynamic_linker=no | |
15010 | ;; | |
15011 | ||
15012 | # This must be Linux ELF. | |
15013 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
15014 | version_type=linux | |
15015 | need_lib_prefix=no | |
15016 | need_version=no | |
15017 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15018 | soname_spec='${libname}${release}${shared_ext}$major' | |
15019 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15020 | shlibpath_var=LD_LIBRARY_PATH | |
15021 | shlibpath_overrides_runpath=no | |
15022 | ||
15023 | # Some binutils ld are patched to set DT_RUNPATH | |
d0ac1c44 | 15024 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
3cb62297 L |
15025 | $as_echo_n "(cached) " >&6 |
15026 | else | |
15027 | lt_cv_shlibpath_overrides_runpath=no | |
15028 | save_LDFLAGS=$LDFLAGS | |
15029 | save_libdir=$libdir | |
15030 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
15031 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
15032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15033 | /* end confdefs.h. */ | |
15034 | ||
15035 | int | |
15036 | main () | |
15037 | { | |
15038 | ||
15039 | ; | |
15040 | return 0; | |
15041 | } | |
15042 | _ACEOF | |
15043 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15044 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
15045 | lt_cv_shlibpath_overrides_runpath=yes | |
15046 | fi | |
15047 | fi | |
15048 | rm -f core conftest.err conftest.$ac_objext \ | |
15049 | conftest$ac_exeext conftest.$ac_ext | |
15050 | LDFLAGS=$save_LDFLAGS | |
15051 | libdir=$save_libdir | |
15052 | ||
15053 | fi | |
15054 | ||
15055 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
15056 | ||
15057 | # This implies no fast_install, which is unacceptable. | |
15058 | # Some rework will be needed to allow for fast_install | |
15059 | # before this can be enabled. | |
15060 | hardcode_into_libs=yes | |
15061 | ||
15062 | # Append ld.so.conf contents to the search path | |
15063 | if test -f /etc/ld.so.conf; then | |
15064 | 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' ' '` | |
15065 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
15066 | fi | |
15067 | ||
15068 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15069 | # powerpc, because MkLinux only supported shared libraries with the | |
15070 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15071 | # most powerpc-linux boxes support dynamic linking these days and | |
15072 | # people can always --disable-shared, the test was removed, and we | |
15073 | # assume the GNU/Linux dynamic linker is in use. | |
15074 | dynamic_linker='GNU/Linux ld.so' | |
15075 | ;; | |
15076 | ||
15077 | netbsd*) | |
15078 | version_type=sunos | |
15079 | need_lib_prefix=no | |
15080 | need_version=no | |
15081 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15083 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15084 | dynamic_linker='NetBSD (a.out) ld.so' | |
15085 | else | |
15086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15087 | soname_spec='${libname}${release}${shared_ext}$major' | |
15088 | dynamic_linker='NetBSD ld.elf_so' | |
15089 | fi | |
15090 | shlibpath_var=LD_LIBRARY_PATH | |
15091 | shlibpath_overrides_runpath=yes | |
15092 | hardcode_into_libs=yes | |
15093 | ;; | |
15094 | ||
15095 | newsos6) | |
15096 | version_type=linux | |
15097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15098 | shlibpath_var=LD_LIBRARY_PATH | |
15099 | shlibpath_overrides_runpath=yes | |
15100 | ;; | |
15101 | ||
15102 | *nto* | *qnx*) | |
15103 | version_type=qnx | |
15104 | need_lib_prefix=no | |
15105 | need_version=no | |
15106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15107 | soname_spec='${libname}${release}${shared_ext}$major' | |
15108 | shlibpath_var=LD_LIBRARY_PATH | |
15109 | shlibpath_overrides_runpath=no | |
15110 | hardcode_into_libs=yes | |
15111 | dynamic_linker='ldqnx.so' | |
15112 | ;; | |
15113 | ||
15114 | openbsd*) | |
15115 | version_type=sunos | |
15116 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15117 | need_lib_prefix=no | |
15118 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15119 | case $host_os in | |
15120 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15121 | *) need_version=no ;; | |
15122 | esac | |
15123 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15124 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15125 | shlibpath_var=LD_LIBRARY_PATH | |
15126 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15127 | case $host_os in | |
15128 | openbsd2.[89] | openbsd2.[89].*) | |
15129 | shlibpath_overrides_runpath=no | |
15130 | ;; | |
15131 | *) | |
15132 | shlibpath_overrides_runpath=yes | |
15133 | ;; | |
15134 | esac | |
15135 | else | |
15136 | shlibpath_overrides_runpath=yes | |
15137 | fi | |
15138 | ;; | |
15139 | ||
15140 | os2*) | |
15141 | libname_spec='$name' | |
15142 | shrext_cmds=".dll" | |
15143 | need_lib_prefix=no | |
15144 | library_names_spec='$libname${shared_ext} $libname.a' | |
15145 | dynamic_linker='OS/2 ld.exe' | |
15146 | shlibpath_var=LIBPATH | |
15147 | ;; | |
15148 | ||
15149 | osf3* | osf4* | osf5*) | |
15150 | version_type=osf | |
15151 | need_lib_prefix=no | |
15152 | need_version=no | |
15153 | soname_spec='${libname}${release}${shared_ext}$major' | |
15154 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15155 | shlibpath_var=LD_LIBRARY_PATH | |
15156 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15157 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15158 | ;; | |
15159 | ||
15160 | rdos*) | |
15161 | dynamic_linker=no | |
15162 | ;; | |
15163 | ||
15164 | solaris*) | |
15165 | version_type=linux | |
15166 | need_lib_prefix=no | |
15167 | need_version=no | |
15168 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15169 | soname_spec='${libname}${release}${shared_ext}$major' | |
15170 | shlibpath_var=LD_LIBRARY_PATH | |
15171 | shlibpath_overrides_runpath=yes | |
15172 | hardcode_into_libs=yes | |
15173 | # ldd complains unless libraries are executable | |
15174 | postinstall_cmds='chmod +x $lib' | |
15175 | ;; | |
15176 | ||
15177 | sunos4*) | |
15178 | version_type=sunos | |
15179 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15180 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15181 | shlibpath_var=LD_LIBRARY_PATH | |
15182 | shlibpath_overrides_runpath=yes | |
15183 | if test "$with_gnu_ld" = yes; then | |
15184 | need_lib_prefix=no | |
15185 | fi | |
15186 | need_version=yes | |
15187 | ;; | |
15188 | ||
15189 | sysv4 | sysv4.3*) | |
15190 | version_type=linux | |
15191 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15192 | soname_spec='${libname}${release}${shared_ext}$major' | |
15193 | shlibpath_var=LD_LIBRARY_PATH | |
15194 | case $host_vendor in | |
15195 | sni) | |
15196 | shlibpath_overrides_runpath=no | |
15197 | need_lib_prefix=no | |
15198 | runpath_var=LD_RUN_PATH | |
15199 | ;; | |
15200 | siemens) | |
15201 | need_lib_prefix=no | |
15202 | ;; | |
15203 | motorola) | |
15204 | need_lib_prefix=no | |
15205 | need_version=no | |
15206 | shlibpath_overrides_runpath=no | |
15207 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15208 | ;; | |
15209 | esac | |
15210 | ;; | |
15211 | ||
15212 | sysv4*MP*) | |
15213 | if test -d /usr/nec ;then | |
15214 | version_type=linux | |
15215 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15216 | soname_spec='$libname${shared_ext}.$major' | |
15217 | shlibpath_var=LD_LIBRARY_PATH | |
15218 | fi | |
15219 | ;; | |
15220 | ||
15221 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
15222 | version_type=freebsd-elf | |
15223 | need_lib_prefix=no | |
15224 | need_version=no | |
15225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15226 | soname_spec='${libname}${release}${shared_ext}$major' | |
15227 | shlibpath_var=LD_LIBRARY_PATH | |
15228 | shlibpath_overrides_runpath=yes | |
15229 | hardcode_into_libs=yes | |
15230 | if test "$with_gnu_ld" = yes; then | |
15231 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15232 | else | |
15233 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15234 | case $host_os in | |
15235 | sco3.2v5*) | |
15236 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15237 | ;; | |
15238 | esac | |
15239 | fi | |
15240 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15241 | ;; | |
15242 | ||
15243 | tpf*) | |
15244 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
15245 | version_type=linux | |
15246 | need_lib_prefix=no | |
15247 | need_version=no | |
15248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15249 | shlibpath_var=LD_LIBRARY_PATH | |
15250 | shlibpath_overrides_runpath=no | |
15251 | hardcode_into_libs=yes | |
15252 | ;; | |
15253 | ||
15254 | uts4*) | |
15255 | version_type=linux | |
15256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15257 | soname_spec='${libname}${release}${shared_ext}$major' | |
15258 | shlibpath_var=LD_LIBRARY_PATH | |
15259 | ;; | |
15260 | ||
15261 | *) | |
15262 | dynamic_linker=no | |
15263 | ;; | |
15264 | esac | |
15265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
15266 | $as_echo "$dynamic_linker" >&6; } | |
15267 | test "$dynamic_linker" = no && can_build_shared=no | |
15268 | ||
15269 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15270 | if test "$GCC" = yes; then | |
15271 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
15272 | fi | |
15273 | ||
15274 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
15275 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
15276 | fi | |
15277 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
15278 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
15279 | fi | |
15280 | ||
3725885a | 15281 | |
ce2cded5 | 15282 | |
ce2cded5 | 15283 | |
ce2cded5 | 15284 | |
d7040cdb | 15285 | |
ce2cded5 | 15286 | |
ce2cded5 | 15287 | |
ce2cded5 | 15288 | |
d7040cdb | 15289 | |
ce2cded5 L |
15290 | |
15291 | ||
15292 | ||
15293 | ||
15294 | ||
15295 | ||
15296 | ||
15297 | ||
15298 | ||
15299 | ||
15300 | ||
15301 | ||
15302 | ||
15303 | ||
15304 | ||
15305 | ||
ce2cded5 L |
15306 | |
15307 | ||
15308 | ||
15309 | ||
15310 | ||
15311 | ||
15312 | ||
15313 | ||
15314 | ||
15315 | ||
15316 | ||
15317 | ||
b879806f AM |
15318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
15319 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
15320 | hardcode_action_CXX= | |
15321 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
15322 | test -n "$runpath_var_CXX" || | |
15323 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
15324 | ||
15325 | # We can hardcode non-existent directories. | |
15326 | if test "$hardcode_direct_CXX" != no && | |
15327 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15328 | # have to relink, otherwise we might link with an installed library | |
15329 | # when we should be linking with a yet-to-be-installed one | |
15330 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
15331 | test "$hardcode_minus_L_CXX" != no; then | |
15332 | # Linking always hardcodes the temporary library directory. | |
15333 | hardcode_action_CXX=relink | |
15334 | else | |
15335 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15336 | hardcode_action_CXX=immediate | |
15337 | fi | |
15338 | else | |
15339 | # We cannot hardcode anything, or else we can only hardcode existing | |
15340 | # directories. | |
15341 | hardcode_action_CXX=unsupported | |
15342 | fi | |
15343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
15344 | $as_echo "$hardcode_action_CXX" >&6; } | |
15345 | ||
15346 | if test "$hardcode_action_CXX" = relink || | |
15347 | test "$inherit_rpath_CXX" = yes; then | |
15348 | # Fast installation is not supported | |
15349 | enable_fast_install=no | |
15350 | elif test "$shlibpath_overrides_runpath" = yes || | |
15351 | test "$enable_shared" = no; then | |
15352 | # Fast installation is not necessary | |
15353 | enable_fast_install=needless | |
15354 | fi | |
15355 | ||
15356 | ||
15357 | ||
15358 | ||
15359 | ||
15360 | ||
15361 | ||
15362 | fi # test -n "$compiler" | |
15363 | ||
15364 | CC=$lt_save_CC | |
15365 | LDCXX=$LD | |
15366 | LD=$lt_save_LD | |
15367 | GCC=$lt_save_GCC | |
15368 | with_gnu_ld=$lt_save_with_gnu_ld | |
15369 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
15370 | lt_cv_path_LD=$lt_save_path_LD | |
15371 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15372 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15373 | fi # test "$_lt_caught_CXX_error" != yes | |
15374 | ||
15375 | ac_ext=c | |
15376 | ac_cpp='$CPP $CPPFLAGS' | |
15377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15380 | ||
15381 | ||
15382 | ||
15383 | ||
15384 | ||
15385 | ||
15386 | ||
15387 | ||
15388 | ||
15389 | ||
15390 | ||
15391 | ||
15392 | ||
15393 | ac_config_commands="$ac_config_commands libtool" | |
15394 | ||
15395 | ||
15396 | ||
15397 | ||
15398 | # Only expand once: | |
15399 | ||
15400 | ||
15401 | ||
15402 | # The tests for host and target for $enable_largefile require | |
15403 | # canonical names. | |
15404 | ||
15405 | ||
15406 | ||
15407 | # As the $enable_largefile decision depends on --enable-plugins we must set it | |
15408 | # even in directories otherwise not depending on the $plugins option. | |
15409 | ||
15410 | ||
15411 | maybe_plugins=no | |
15412 | for ac_header in dlfcn.h | |
15413 | do : | |
15414 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
15415 | " | |
d0ac1c44 | 15416 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
b879806f AM |
15417 | cat >>confdefs.h <<_ACEOF |
15418 | #define HAVE_DLFCN_H 1 | |
15419 | _ACEOF | |
15420 | maybe_plugins=yes | |
15421 | fi | |
15422 | ||
15423 | done | |
15424 | ||
15425 | for ac_header in windows.h | |
15426 | do : | |
15427 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default | |
15428 | " | |
d0ac1c44 | 15429 | if test "x$ac_cv_header_windows_h" = xyes; then : |
b879806f AM |
15430 | cat >>confdefs.h <<_ACEOF |
15431 | #define HAVE_WINDOWS_H 1 | |
15432 | _ACEOF | |
15433 | maybe_plugins=yes | |
15434 | fi | |
15435 | ||
15436 | done | |
15437 | ||
15438 | ||
15439 | # Check whether --enable-plugins was given. | |
15440 | if test "${enable_plugins+set}" = set; then : | |
15441 | enableval=$enable_plugins; case "${enableval}" in | |
15442 | no) plugins=no ;; | |
15443 | *) plugins=yes | |
15444 | if test "$maybe_plugins" != "yes" ; then | |
d0ac1c44 | 15445 | as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 |
b879806f AM |
15446 | fi ;; |
15447 | esac | |
15448 | else | |
15449 | plugins=$maybe_plugins | |
15450 | ||
15451 | fi | |
15452 | ||
2974be62 | 15453 | if test "$plugins" = "yes"; then |
3cba8b6c L |
15454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 |
15455 | $as_echo_n "checking for library containing dlsym... " >&6; } | |
d0ac1c44 | 15456 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
15457 | $as_echo_n "(cached) " >&6 |
15458 | else | |
15459 | ac_func_search_save_LIBS=$LIBS | |
15460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15461 | /* end confdefs.h. */ | |
15462 | ||
15463 | /* Override any GCC internal prototype to avoid an error. | |
15464 | Use char because int might match the return type of a GCC | |
15465 | builtin and then its argument prototype would still apply. */ | |
15466 | #ifdef __cplusplus | |
15467 | extern "C" | |
15468 | #endif | |
3cba8b6c | 15469 | char dlsym (); |
2974be62 AM |
15470 | int |
15471 | main () | |
15472 | { | |
3cba8b6c | 15473 | return dlsym (); |
2974be62 AM |
15474 | ; |
15475 | return 0; | |
15476 | } | |
15477 | _ACEOF | |
15478 | for ac_lib in '' dl; do | |
15479 | if test -z "$ac_lib"; then | |
15480 | ac_res="none required" | |
15481 | else | |
15482 | ac_res=-l$ac_lib | |
15483 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15484 | fi | |
15485 | if ac_fn_c_try_link "$LINENO"; then : | |
3cba8b6c | 15486 | ac_cv_search_dlsym=$ac_res |
2974be62 AM |
15487 | fi |
15488 | rm -f core conftest.err conftest.$ac_objext \ | |
15489 | conftest$ac_exeext | |
d0ac1c44 | 15490 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
15491 | break |
15492 | fi | |
15493 | done | |
d0ac1c44 | 15494 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
15495 | |
15496 | else | |
3cba8b6c | 15497 | ac_cv_search_dlsym=no |
2974be62 AM |
15498 | fi |
15499 | rm conftest.$ac_ext | |
15500 | LIBS=$ac_func_search_save_LIBS | |
15501 | fi | |
3cba8b6c L |
15502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 |
15503 | $as_echo "$ac_cv_search_dlsym" >&6; } | |
15504 | ac_res=$ac_cv_search_dlsym | |
2974be62 AM |
15505 | if test "$ac_res" != no; then : |
15506 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15507 | ||
15508 | fi | |
15509 | ||
15510 | fi | |
b879806f AM |
15511 | |
15512 | ||
15513 | case "${host}" in | |
c8693053 RO |
15514 | sparc-*-solaris*|i?86-*-solaris*) |
15515 | # On native 32-bit Solaris/SPARC and x86, large-file and procfs support | |
15516 | # were mutually exclusive until Solaris 11.3. Without procfs support, | |
15517 | # the bfd/ elf module cannot provide certain routines such as | |
15518 | # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user | |
15519 | # explicitly requested large-file support through the | |
15520 | # --enable-largefile switch, disable large-file support in favor of | |
15521 | # procfs support. | |
15522 | # | |
15523 | # Check if <sys/procfs.h> is incompatible with large-file support. | |
15524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15525 | /* end confdefs.h. */ | |
15526 | #define _FILE_OFFSET_BITS 64 | |
15527 | #define _STRUCTURED_PROC 1 | |
15528 | #include <sys/procfs.h> | |
15529 | int | |
15530 | main () | |
15531 | { | |
15532 | ||
15533 | ; | |
15534 | return 0; | |
15535 | } | |
15536 | _ACEOF | |
15537 | if ac_fn_c_try_compile "$LINENO"; then : | |
15538 | acx_cv_procfs_lfs=yes | |
15539 | else | |
15540 | acx_cv_procfs_lfs=no | |
15541 | fi | |
15542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15543 | # | |
15544 | # Forcefully disable large-file support only if necessary, gdb is in | |
15545 | # tree and enabled. | |
15546 | if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \ | |
15547 | -a -d $srcdir/../gdb -a "$enable_gdb" != no; then | |
15548 | : ${enable_largefile="no"} | |
15549 | if test "$plugins" = yes; then | |
15550 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
15551 | plugin support disabled; require large-file support which is incompatible with GDB." >&5 | |
15552 | $as_echo "$as_me: WARNING: | |
15553 | plugin support disabled; require large-file support which is incompatible with GDB." >&2;} | |
15554 | plugins=no | |
15555 | fi | |
15556 | fi | |
15557 | # | |
15558 | # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the | |
15559 | # benefit of g++ 9+ which predefines it on Solaris. | |
15560 | if test "$enable_largefile" = no; then | |
15561 | LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS" | |
15562 | ||
15563 | fi | |
b879806f AM |
15564 | ;; |
15565 | esac | |
15566 | ||
15567 | # Check whether --enable-largefile was given. | |
15568 | if test "${enable_largefile+set}" = set; then : | |
15569 | enableval=$enable_largefile; | |
15570 | fi | |
15571 | ||
15572 | if test "$enable_largefile" != no; then | |
15573 | ||
15574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
15575 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
d0ac1c44 | 15576 | if ${ac_cv_sys_largefile_CC+:} false; then : |
b879806f AM |
15577 | $as_echo_n "(cached) " >&6 |
15578 | else | |
15579 | ac_cv_sys_largefile_CC=no | |
15580 | if test "$GCC" != yes; then | |
15581 | ac_save_CC=$CC | |
15582 | while :; do | |
15583 | # IRIX 6.2 and later do not support large files by default, | |
15584 | # so use the C compiler's -n32 option if that helps. | |
15585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15586 | /* end confdefs.h. */ | |
15587 | #include <sys/types.h> | |
15588 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15589 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15590 | since some C++ compilers masquerading as C compilers | |
15591 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 15592 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
15593 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
15594 | && LARGE_OFF_T % 2147483647 == 1) | |
15595 | ? 1 : -1]; | |
15596 | int | |
15597 | main () | |
15598 | { | |
15599 | ||
15600 | ; | |
15601 | return 0; | |
15602 | } | |
15603 | _ACEOF | |
15604 | if ac_fn_c_try_compile "$LINENO"; then : | |
15605 | break | |
15606 | fi | |
15607 | rm -f core conftest.err conftest.$ac_objext | |
15608 | CC="$CC -n32" | |
15609 | if ac_fn_c_try_compile "$LINENO"; then : | |
15610 | ac_cv_sys_largefile_CC=' -n32'; break | |
15611 | fi | |
15612 | rm -f core conftest.err conftest.$ac_objext | |
15613 | break | |
15614 | done | |
15615 | CC=$ac_save_CC | |
15616 | rm -f conftest.$ac_ext | |
15617 | fi | |
15618 | fi | |
15619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
15620 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
15621 | if test "$ac_cv_sys_largefile_CC" != no; then | |
15622 | CC=$CC$ac_cv_sys_largefile_CC | |
15623 | fi | |
15624 | ||
15625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
15626 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
d0ac1c44 | 15627 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
b879806f AM |
15628 | $as_echo_n "(cached) " >&6 |
15629 | else | |
15630 | while :; do | |
15631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15632 | /* end confdefs.h. */ | |
15633 | #include <sys/types.h> | |
15634 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15635 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15636 | since some C++ compilers masquerading as C compilers | |
15637 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 15638 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
15639 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
15640 | && LARGE_OFF_T % 2147483647 == 1) | |
15641 | ? 1 : -1]; | |
15642 | int | |
15643 | main () | |
15644 | { | |
15645 | ||
15646 | ; | |
15647 | return 0; | |
15648 | } | |
15649 | _ACEOF | |
15650 | if ac_fn_c_try_compile "$LINENO"; then : | |
15651 | ac_cv_sys_file_offset_bits=no; break | |
15652 | fi | |
15653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15655 | /* end confdefs.h. */ | |
15656 | #define _FILE_OFFSET_BITS 64 | |
15657 | #include <sys/types.h> | |
15658 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15659 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15660 | since some C++ compilers masquerading as C compilers | |
15661 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 15662 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
15663 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
15664 | && LARGE_OFF_T % 2147483647 == 1) | |
15665 | ? 1 : -1]; | |
15666 | int | |
15667 | main () | |
15668 | { | |
15669 | ||
15670 | ; | |
15671 | return 0; | |
15672 | } | |
15673 | _ACEOF | |
15674 | if ac_fn_c_try_compile "$LINENO"; then : | |
15675 | ac_cv_sys_file_offset_bits=64; break | |
15676 | fi | |
15677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15678 | ac_cv_sys_file_offset_bits=unknown | |
15679 | break | |
15680 | done | |
15681 | fi | |
15682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
15683 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
15684 | case $ac_cv_sys_file_offset_bits in #( | |
15685 | no | unknown) ;; | |
15686 | *) | |
15687 | cat >>confdefs.h <<_ACEOF | |
15688 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
15689 | _ACEOF | |
15690 | ;; | |
15691 | esac | |
15692 | rm -rf conftest* | |
15693 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
15694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
15695 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
d0ac1c44 | 15696 | if ${ac_cv_sys_large_files+:} false; then : |
b879806f AM |
15697 | $as_echo_n "(cached) " >&6 |
15698 | else | |
15699 | while :; do | |
15700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15701 | /* end confdefs.h. */ | |
15702 | #include <sys/types.h> | |
15703 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15704 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15705 | since some C++ compilers masquerading as C compilers | |
15706 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 15707 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
15708 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
15709 | && LARGE_OFF_T % 2147483647 == 1) | |
15710 | ? 1 : -1]; | |
15711 | int | |
15712 | main () | |
15713 | { | |
15714 | ||
15715 | ; | |
15716 | return 0; | |
15717 | } | |
15718 | _ACEOF | |
15719 | if ac_fn_c_try_compile "$LINENO"; then : | |
15720 | ac_cv_sys_large_files=no; break | |
15721 | fi | |
15722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15724 | /* end confdefs.h. */ | |
15725 | #define _LARGE_FILES 1 | |
15726 | #include <sys/types.h> | |
15727 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15728 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15729 | since some C++ compilers masquerading as C compilers | |
15730 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 15731 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
15732 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
15733 | && LARGE_OFF_T % 2147483647 == 1) | |
15734 | ? 1 : -1]; | |
15735 | int | |
15736 | main () | |
15737 | { | |
15738 | ||
15739 | ; | |
15740 | return 0; | |
15741 | } | |
15742 | _ACEOF | |
15743 | if ac_fn_c_try_compile "$LINENO"; then : | |
15744 | ac_cv_sys_large_files=1; break | |
15745 | fi | |
15746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15747 | ac_cv_sys_large_files=unknown | |
15748 | break | |
15749 | done | |
15750 | fi | |
15751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
15752 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
15753 | case $ac_cv_sys_large_files in #( | |
15754 | no | unknown) ;; | |
15755 | *) | |
15756 | cat >>confdefs.h <<_ACEOF | |
15757 | #define _LARGE_FILES $ac_cv_sys_large_files | |
15758 | _ACEOF | |
15759 | ;; | |
15760 | esac | |
15761 | rm -rf conftest* | |
15762 | fi | |
d0ac1c44 SM |
15763 | |
15764 | ||
b879806f AM |
15765 | fi |
15766 | ||
15767 | ||
15768 | ||
15769 | ||
15770 | # Check whether --with-lib-path was given. | |
15771 | if test "${with_lib_path+set}" = set; then : | |
15772 | withval=$with_lib_path; LIB_PATH=$withval | |
15773 | fi | |
15774 | ||
15775 | # Check whether --enable-targets was given. | |
15776 | if test "${enable_targets+set}" = set; then : | |
15777 | enableval=$enable_targets; case "${enableval}" in | |
d0ac1c44 | 15778 | yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 |
6c19b93b | 15779 | ;; |
b879806f AM |
15780 | no) enable_targets= ;; |
15781 | *) enable_targets=$enableval ;; | |
15782 | esac | |
15783 | fi | |
15784 | # Check whether --enable-64-bit-bfd was given. | |
15785 | if test "${enable_64_bit_bfd+set}" = set; then : | |
15786 | enableval=$enable_64_bit_bfd; case "${enableval}" in | |
15787 | yes) want64=true ;; | |
15788 | no) want64=false ;; | |
d0ac1c44 | 15789 | *) as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; |
b879806f AM |
15790 | esac |
15791 | else | |
15792 | want64=false | |
15793 | fi | |
15794 | ||
15795 | ||
15796 | # Check whether --with-sysroot was given. | |
15797 | if test "${with_sysroot+set}" = set; then : | |
15798 | withval=$with_sysroot; | |
15799 | case ${with_sysroot} in | |
15800 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; | |
15801 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; | |
15802 | esac | |
15803 | ||
15804 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
15805 | use_sysroot=yes | |
15806 | ||
15807 | if test "x$prefix" = xNONE; then | |
15808 | test_prefix=/usr/local | |
15809 | else | |
15810 | test_prefix=$prefix | |
15811 | fi | |
15812 | if test "x$exec_prefix" = xNONE; then | |
15813 | test_exec_prefix=$test_prefix | |
15814 | else | |
15815 | test_exec_prefix=$exec_prefix | |
15816 | fi | |
15817 | case ${TARGET_SYSTEM_ROOT} in | |
15818 | "${test_prefix}"|"${test_prefix}/"*|\ | |
15819 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ | |
15820 | '${prefix}'|'${prefix}/'*|\ | |
15821 | '${exec_prefix}'|'${exec_prefix}/'*) | |
15822 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" | |
15823 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
15824 | ;; | |
15825 | esac | |
15826 | ||
15827 | else | |
15828 | ||
15829 | use_sysroot=no | |
15830 | TARGET_SYSTEM_ROOT= | |
15831 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
15832 | ||
15833 | fi | |
15834 | ||
15835 | ||
15836 | ||
15837 | ||
15838 | ||
15839 | # Check whether --enable-gold was given. | |
15840 | if test "${enable_gold+set}" = set; then : | |
15841 | enableval=$enable_gold; case "${enableval}" in | |
15842 | default) | |
15843 | install_as_default=no | |
15844 | installed_linker=ld.bfd | |
15845 | ;; | |
15846 | yes|no) | |
15847 | install_as_default=yes | |
15848 | installed_linker=ld.bfd | |
15849 | ;; | |
15850 | *) | |
d0ac1c44 | 15851 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
b879806f AM |
15852 | ;; |
15853 | esac | |
15854 | else | |
15855 | install_as_default=yes | |
15856 | installed_linker=ld.bfd | |
15857 | fi | |
15858 | ||
15859 | ||
15860 | ||
15861 | ||
15862 | # Check whether --enable-got was given. | |
15863 | if test "${enable_got+set}" = set; then : | |
15864 | enableval=$enable_got; case "${enableval}" in | |
15865 | target | single | negative | multigot) got_handling=$enableval ;; | |
d0ac1c44 | 15866 | *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;; |
b879806f AM |
15867 | esac |
15868 | else | |
15869 | got_handling=target | |
15870 | fi | |
15871 | ||
15872 | ||
15873 | case "${got_handling}" in | |
15874 | target) | |
15875 | ||
15876 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h | |
15877 | ;; | |
15878 | single) | |
15879 | ||
15880 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h | |
15881 | ;; | |
15882 | negative) | |
15883 | ||
15884 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h | |
15885 | ;; | |
15886 | multigot) | |
15887 | ||
15888 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h | |
15889 | ;; | |
d0ac1c44 | 15890 | *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;; |
b879806f AM |
15891 | esac |
15892 | ||
6c3bc0f8 NC |
15893 | # PR gas/19109 |
15894 | # Decide the default method for compressing debug sections. | |
15895 | ac_default_compressed_debug_sections=unset | |
15896 | # Provide a configure time option to override our default. | |
15897 | # Check whether --enable-compressed_debug_sections was given. | |
15898 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
4894d80b | 15899 | enableval=$enable_compressed_debug_sections; case ,"${enableval}", in |
9b4c123c | 15900 | ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;; |
4894d80b | 15901 | ,no, | ,none,) ac_default_compressed_debug_sections=no ;; |
6c3bc0f8 NC |
15902 | esac |
15903 | fi | |
15904 | ||
6734f10a SB |
15905 | # Decide setting DT_RUNPATH instead of DT_RPATH by default |
15906 | ac_default_new_dtags=unset | |
15907 | # Provide a configure time option to override our default. | |
15908 | # Check whether --enable-new_dtags was given. | |
15909 | if test "${enable_new_dtags+set}" = set; then : | |
15910 | enableval=$enable_new_dtags; case "${enableval}" in | |
15911 | yes) ac_default_new_dtags=1 ;; | |
15912 | no) ac_default_new_dtags=0 ;; | |
15913 | esac | |
15914 | fi | |
15915 | ||
647e4d46 L |
15916 | # Decide if -z relro should be enabled in ELF linker by default. |
15917 | ac_default_ld_z_relro=unset | |
15918 | # Provide a configure time option to override our default. | |
15919 | # Check whether --enable-relro was given. | |
15920 | if test "${enable_relro+set}" = set; then : | |
15921 | enableval=$enable_relro; case "${enableval}" in | |
15922 | yes) ac_default_ld_z_relro=1 ;; | |
15923 | no) ac_default_ld_z_relro=0 ;; | |
15924 | esac | |
15925 | fi | |
15926 | ||
b32632c4 L |
15927 | # Decide if DT_TEXTREL check should be enabled in ELF linker. |
15928 | ac_default_ld_textrel_check=unset | |
15929 | # Check whether --enable-textrel-check was given. | |
15930 | if test "${enable_textrel_check+set}" = set; then : | |
15931 | enableval=$enable_textrel_check; case "${enableval}" in | |
15932 | yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;; | |
15933 | esac | |
15934 | fi | |
15935 | ||
15936 | ||
f6aec96d L |
15937 | # Decide if -z separate-code should be enabled in ELF linker by default. |
15938 | ac_default_ld_z_separate_code=unset | |
15939 | # Check whether --enable-separate-code was given. | |
15940 | if test "${enable_separate_code+set}" = set; then : | |
15941 | enableval=$enable_separate_code; case "${enableval}" in | |
15942 | yes) ac_default_ld_z_separate_code=1 ;; | |
15943 | no) ac_default_ld_z_separate_code=0 ;; | |
15944 | esac | |
15945 | fi | |
15946 | ||
15947 | ||
2760f24c RG |
15948 | # Decide which "--hash-style" to use by default |
15949 | # Provide a configure time option to override our default. | |
15950 | # Check whether --enable-default-hash-style was given. | |
15951 | if test "${enable_default_hash_style+set}" = set; then : | |
15952 | enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in | |
15953 | sysv | gnu | both) ;; | |
d0ac1c44 | 15954 | *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;; |
2760f24c RG |
15955 | esac |
15956 | else | |
15957 | case "${target}" in | |
15958 | # Enable gnu hash only on GNU targets, but not mips | |
15959 | mips*-*-*) enable_default_hash_style=sysv ;; | |
15960 | *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;; | |
15961 | *) enable_default_hash_style=sysv ;; | |
15962 | esac | |
15963 | fi | |
15964 | ||
15965 | ||
15966 | case "${enable_default_hash_style}" in | |
15967 | sysv | both) ac_default_emit_sysv_hash=1 ;; | |
15968 | *) ac_default_emit_sysv_hash=0 ;; | |
15969 | esac | |
15970 | ||
15971 | case "${enable_default_hash_style}" in | |
15972 | gnu | both) ac_default_emit_gnu_hash=1 ;; | |
15973 | *) ac_default_emit_gnu_hash=0 ;; | |
15974 | esac | |
15975 | ||
094e34f2 NA |
15976 | # Check whether --enable-libctf was given. |
15977 | if test "${enable_libctf+set}" = set; then : | |
15978 | enableval=$enable_libctf; | |
15979 | case "$enableval" in | |
15980 | yes|no) ;; | |
15981 | *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;; | |
15982 | esac | |
15983 | ||
15984 | else | |
15985 | enable_libctf=yes | |
15986 | fi | |
15987 | ||
15988 | ||
15989 | if test "${enable_libctf}" = yes; then | |
15990 | ||
15991 | $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h | |
15992 | ||
15993 | fi | |
15994 | if test "${enable_libctf}" = yes; then | |
15995 | ENABLE_LIBCTF_TRUE= | |
15996 | ENABLE_LIBCTF_FALSE='#' | |
15997 | else | |
15998 | ENABLE_LIBCTF_TRUE='#' | |
15999 | ENABLE_LIBCTF_FALSE= | |
16000 | fi | |
16001 | ||
16002 | ||
b879806f | 16003 | |
7cdfc346 | 16004 | |
b879806f AM |
16005 | # Set the 'development' global. |
16006 | . $srcdir/../bfd/development.sh | |
16007 | ||
c5da1932 VZ |
16008 | # Set acp_cpp_for_build variable |
16009 | ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" | |
16010 | ||
9780e045 | 16011 | # Default set of GCC warnings to enable. |
b879806f | 16012 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
c5da1932 | 16013 | GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
9780e045 NC |
16014 | |
16015 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
b879806f AM |
16016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16017 | /* end confdefs.h. */ | |
16018 | __GNUC__ | |
16019 | _ACEOF | |
16020 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 16021 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
ce2cded5 | 16022 | |
3cb62297 | 16023 | else |
b879806f | 16024 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" |
3cb62297 | 16025 | fi |
b879806f | 16026 | rm -f conftest* |
ce2cded5 | 16027 | |
ce2cded5 | 16028 | |
9780e045 NC |
16029 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. |
16030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16031 | /* end confdefs.h. */ | |
16032 | __GNUC__ | |
16033 | _ACEOF | |
16034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 16035 | $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : |
9780e045 NC |
16036 | |
16037 | else | |
16038 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" | |
16039 | fi | |
16040 | rm -f conftest* | |
16041 | ||
16042 | ||
6757cf57 TS |
16043 | # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. |
16044 | WARN_WRITE_STRINGS="" | |
16045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16046 | /* end confdefs.h. */ | |
16047 | __GNUC__ | |
16048 | _ACEOF | |
16049 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 16050 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
6757cf57 TS |
16051 | |
16052 | else | |
16053 | WARN_WRITE_STRINGS="-Wwrite-strings" | |
16054 | fi | |
16055 | rm -f conftest* | |
16056 | ||
9780e045 | 16057 | |
96fe4562 | 16058 | # Verify CC_FOR_BUILD to be compatible with warning flags |
c5da1932 VZ |
16059 | |
16060 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
16061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16062 | /* end confdefs.h. */ | |
16063 | __GNUC__ | |
16064 | _ACEOF | |
16065 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
3107326d | 16066 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
c5da1932 VZ |
16067 | |
16068 | else | |
16069 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" | |
16070 | fi | |
16071 | rm -f conftest* | |
16072 | ||
16073 | ||
16074 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. | |
16075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16076 | /* end confdefs.h. */ | |
16077 | __GNUC__ | |
16078 | _ACEOF | |
16079 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
3107326d | 16080 | $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : |
c5da1932 VZ |
16081 | |
16082 | else | |
16083 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" | |
16084 | fi | |
16085 | rm -f conftest* | |
16086 | ||
16087 | ||
b879806f AM |
16088 | # Check whether --enable-werror was given. |
16089 | if test "${enable_werror+set}" = set; then : | |
16090 | enableval=$enable_werror; case "${enableval}" in | |
16091 | yes | y) ERROR_ON_WARNING="yes" ;; | |
16092 | no | n) ERROR_ON_WARNING="no" ;; | |
d0ac1c44 | 16093 | *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
b879806f AM |
16094 | esac |
16095 | fi | |
ce2cded5 L |
16096 | |
16097 | ||
b879806f AM |
16098 | # Disable -Wformat by default when using gcc on mingw |
16099 | case "${host}" in | |
16100 | *-*-mingw32*) | |
16101 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
16102 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
c5da1932 | 16103 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" |
b879806f AM |
16104 | fi |
16105 | ;; | |
16106 | *) ;; | |
16107 | esac | |
ce2cded5 | 16108 | |
b879806f AM |
16109 | # Enable -Werror by default when using gcc. Turn it off for releases. |
16110 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then | |
16111 | ERROR_ON_WARNING=yes | |
16112 | fi | |
d7040cdb | 16113 | |
b879806f AM |
16114 | NO_WERROR= |
16115 | if test "${ERROR_ON_WARNING}" = yes ; then | |
9780e045 | 16116 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
c5da1932 | 16117 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" |
b879806f AM |
16118 | NO_WERROR="-Wno-error" |
16119 | fi | |
3cb62297 | 16120 | |
b879806f AM |
16121 | if test "${GCC}" = yes ; then |
16122 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
c5da1932 | 16123 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" |
b879806f | 16124 | fi |
67310ccd | 16125 | |
b879806f AM |
16126 | # Check whether --enable-build-warnings was given. |
16127 | if test "${enable_build_warnings+set}" = set; then : | |
16128 | enableval=$enable_build_warnings; case "${enableval}" in | |
c5da1932 VZ |
16129 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" |
16130 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
b879806f AM |
16131 | no) if test "${GCC}" = yes ; then |
16132 | WARN_CFLAGS="-w" | |
c5da1932 | 16133 | WARN_CFLAGS_FOR_BUILD="-w" |
b879806f AM |
16134 | fi;; |
16135 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
c5da1932 VZ |
16136 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" |
16137 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; | |
b879806f | 16138 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
c5da1932 VZ |
16139 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" |
16140 | WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
16141 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` | |
16142 | WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
b879806f AM |
16143 | esac |
16144 | fi | |
67310ccd | 16145 | |
d7040cdb | 16146 | |
b879806f AM |
16147 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
16148 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
16149 | fi | |
d7040cdb | 16150 | |
d7040cdb | 16151 | |
d7040cdb | 16152 | |
d7040cdb | 16153 | |
ce2cded5 L |
16154 | |
16155 | ||
6757cf57 | 16156 | |
c5da1932 | 16157 | |
b879806f AM |
16158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
16159 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
d0ac1c44 | 16160 | if ${am_cv_val_LC_MESSAGES+:} false; then : |
b879806f AM |
16161 | $as_echo_n "(cached) " >&6 |
16162 | else | |
16163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16164 | /* end confdefs.h. */ | |
16165 | #include <locale.h> | |
16166 | int | |
16167 | main () | |
16168 | { | |
16169 | return LC_MESSAGES | |
16170 | ; | |
16171 | return 0; | |
16172 | } | |
16173 | _ACEOF | |
16174 | if ac_fn_c_try_link "$LINENO"; then : | |
16175 | am_cv_val_LC_MESSAGES=yes | |
16176 | else | |
16177 | am_cv_val_LC_MESSAGES=no | |
16178 | fi | |
16179 | rm -f core conftest.err conftest.$ac_objext \ | |
16180 | conftest$ac_exeext conftest.$ac_ext | |
16181 | fi | |
16182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 | |
16183 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
16184 | if test $am_cv_val_LC_MESSAGES = yes; then | |
ce2cded5 | 16185 | |
b879806f | 16186 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
ce2cded5 | 16187 | |
b879806f | 16188 | fi |
ce2cded5 | 16189 | |
ce2cded5 | 16190 | |
b879806f | 16191 | ac_config_headers="$ac_config_headers config.h:config.in" |
ce2cded5 L |
16192 | |
16193 | ||
b879806f | 16194 | # PR 14072 |
ce2cded5 | 16195 | |
ce2cded5 | 16196 | |
b879806f | 16197 | if test -z "$target" ; then |
d0ac1c44 | 16198 | as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5 |
b879806f AM |
16199 | fi |
16200 | if test -z "$host" ; then | |
d0ac1c44 | 16201 | as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5 |
b879806f | 16202 | fi |
d7040cdb | 16203 | |
b879806f | 16204 | # host-specific stuff: |
d7040cdb | 16205 | |
e184813f | 16206 | 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 |
16207 | # If we haven't got the data from the intl directory, |
16208 | # assume NLS is disabled. | |
16209 | USE_NLS=no | |
16210 | LIBINTL= | |
16211 | LIBINTL_DEP= | |
16212 | INCINTL= | |
16213 | XGETTEXT= | |
16214 | GMSGFMT= | |
16215 | POSUB= | |
16216 | ||
16217 | if test -f ../intl/config.intl; then | |
16218 | . ../intl/config.intl | |
16219 | fi | |
81ecdfbb RW |
16220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
16221 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 16222 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
16223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16224 | $as_echo "no" >&6; } | |
d7040cdb | 16225 | else |
81ecdfbb RW |
16226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16227 | $as_echo "yes" >&6; } | |
d7040cdb | 16228 | |
81ecdfbb | 16229 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
16230 | |
16231 | ||
81ecdfbb RW |
16232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
16233 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
16234 | # Look for .po and .gmo files in the source directory. |
16235 | CATALOGS= | |
16236 | XLINGUAS= | |
16237 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
16238 | # If there aren't any .gmo files the shell will give us the | |
16239 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
16240 | # weeded out. | |
16241 | case "$cat" in *\**) | |
16242 | continue;; | |
16243 | esac | |
16244 | # The quadruple backslash is collapsed to a double backslash | |
16245 | # by the backticks, then collapsed again by the double quotes, | |
16246 | # leaving us with one backslash in the sed expression (right | |
16247 | # before the dot that mustn't act as a wildcard). | |
16248 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
16249 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
16250 | # The user is allowed to set LINGUAS to a list of languages to | |
16251 | # install catalogs for. If it's empty that means "all of them." | |
16252 | if test "x$LINGUAS" = x; then | |
16253 | CATALOGS="$CATALOGS $cat" | |
16254 | XLINGUAS="$XLINGUAS $lang" | |
16255 | else | |
16256 | case "$LINGUAS" in *$lang*) | |
16257 | CATALOGS="$CATALOGS $cat" | |
16258 | XLINGUAS="$XLINGUAS $lang" | |
16259 | ;; | |
16260 | esac | |
16261 | fi | |
16262 | done | |
16263 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
16264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
16265 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
16266 | |
16267 | ||
16268 | DATADIRNAME=share | |
16269 | ||
16270 | INSTOBJEXT=.mo | |
16271 | ||
16272 | GENCAT=gencat | |
16273 | ||
16274 | CATOBJEXT=.gmo | |
16275 | ||
16276 | fi | |
16277 | ||
16278 | MKINSTALLDIRS= | |
16279 | if test -n "$ac_aux_dir"; then | |
16280 | case "$ac_aux_dir" in | |
16281 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
16282 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
16283 | esac | |
16284 | fi | |
16285 | if test -z "$MKINSTALLDIRS"; then | |
16286 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
16287 | fi | |
16288 | ||
16289 | ||
16290 | ||
81ecdfbb RW |
16291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
16292 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
16293 | # Check whether --enable-nls was given. | |
16294 | if test "${enable_nls+set}" = set; then : | |
16295 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
16296 | else |
16297 | USE_NLS=yes | |
81ecdfbb RW |
16298 | fi |
16299 | ||
16300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
16301 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
16302 | |
16303 | ||
16304 | ||
16305 | ||
16306 | ||
16307 | ||
16308 | # Prepare PATH_SEPARATOR. | |
16309 | # The user is always right. | |
16310 | if test "${PATH_SEPARATOR+set}" != set; then | |
16311 | echo "#! /bin/sh" >conf$$.sh | |
16312 | echo "exit 0" >>conf$$.sh | |
16313 | chmod +x conf$$.sh | |
16314 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
16315 | PATH_SEPARATOR=';' | |
16316 | else | |
16317 | PATH_SEPARATOR=: | |
16318 | fi | |
16319 | rm -f conf$$.sh | |
16320 | fi | |
16321 | ||
16322 | # Find out how to test for executable files. Don't use a zero-byte file, | |
16323 | # as systems may use methods other than mode bits to determine executability. | |
16324 | cat >conf$$.file <<_ASEOF | |
16325 | #! /bin/sh | |
16326 | exit 0 | |
16327 | _ASEOF | |
16328 | chmod +x conf$$.file | |
16329 | if test -x conf$$.file >/dev/null 2>&1; then | |
16330 | ac_executable_p="test -x" | |
16331 | else | |
16332 | ac_executable_p="test -f" | |
16333 | fi | |
16334 | rm -f conf$$.file | |
16335 | ||
16336 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
16337 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
16338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16339 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16340 | if ${ac_cv_path_MSGFMT+:} false; then : |
81ecdfbb | 16341 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
16342 | else |
16343 | case "$MSGFMT" in | |
16344 | [\\/]* | ?:[\\/]*) | |
16345 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
16346 | ;; | |
16347 | *) | |
16348 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
16349 | for ac_dir in $PATH; do | |
16350 | IFS="$ac_save_IFS" | |
16351 | test -z "$ac_dir" && ac_dir=. | |
16352 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16353 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
16354 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
16355 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
16356 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
16357 | break 2 | |
16358 | fi | |
16359 | fi | |
16360 | done | |
16361 | done | |
16362 | IFS="$ac_save_IFS" | |
16363 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
16364 | ;; | |
16365 | esac | |
16366 | fi | |
16367 | MSGFMT="$ac_cv_path_MSGFMT" | |
16368 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
16369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
16370 | $as_echo "$MSGFMT" >&6; } | |
d7040cdb | 16371 | else |
81ecdfbb RW |
16372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16373 | $as_echo "no" >&6; } | |
d7040cdb SE |
16374 | fi |
16375 | ||
16376 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
16377 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
16378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16379 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16380 | if ${ac_cv_path_GMSGFMT+:} false; then : |
81ecdfbb | 16381 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
16382 | else |
16383 | case $GMSGFMT in | |
16384 | [\\/]* | ?:[\\/]*) | |
16385 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
16386 | ;; | |
16387 | *) | |
16388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16389 | for as_dir in $PATH | |
16390 | do | |
16391 | IFS=$as_save_IFS | |
16392 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16393 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16394 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 16395 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 16396 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
16397 | break 2 |
16398 | fi | |
16399 | done | |
81ecdfbb RW |
16400 | done |
16401 | IFS=$as_save_IFS | |
d7040cdb SE |
16402 | |
16403 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
16404 | ;; | |
16405 | esac | |
16406 | fi | |
16407 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 16408 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
16409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
16410 | $as_echo "$GMSGFMT" >&6; } | |
d7040cdb | 16411 | else |
81ecdfbb RW |
16412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16413 | $as_echo "no" >&6; } | |
20e95c23 | 16414 | fi |
42ecbf5e | 16415 | |
20e95c23 | 16416 | |
252b5132 | 16417 | |
81ecdfbb | 16418 | |
d7040cdb SE |
16419 | # Prepare PATH_SEPARATOR. |
16420 | # The user is always right. | |
16421 | if test "${PATH_SEPARATOR+set}" != set; then | |
16422 | echo "#! /bin/sh" >conf$$.sh | |
16423 | echo "exit 0" >>conf$$.sh | |
16424 | chmod +x conf$$.sh | |
16425 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
16426 | PATH_SEPARATOR=';' | |
16427 | else | |
16428 | PATH_SEPARATOR=: | |
16429 | fi | |
16430 | rm -f conf$$.sh | |
20e95c23 | 16431 | fi |
252b5132 | 16432 | |
d7040cdb SE |
16433 | # Find out how to test for executable files. Don't use a zero-byte file, |
16434 | # as systems may use methods other than mode bits to determine executability. | |
16435 | cat >conf$$.file <<_ASEOF | |
16436 | #! /bin/sh | |
16437 | exit 0 | |
16438 | _ASEOF | |
16439 | chmod +x conf$$.file | |
16440 | if test -x conf$$.file >/dev/null 2>&1; then | |
16441 | ac_executable_p="test -x" | |
20e95c23 | 16442 | else |
d7040cdb SE |
16443 | ac_executable_p="test -f" |
16444 | fi | |
16445 | rm -f conf$$.file | |
20e95c23 | 16446 | |
d7040cdb SE |
16447 | # Extract the first word of "xgettext", so it can be a program name with args. |
16448 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
16449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16450 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16451 | if ${ac_cv_path_XGETTEXT+:} false; then : |
81ecdfbb | 16452 | $as_echo_n "(cached) " >&6 |
252b5132 | 16453 | else |
d7040cdb SE |
16454 | case "$XGETTEXT" in |
16455 | [\\/]* | ?:[\\/]*) | |
16456 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
16457 | ;; | |
16458 | *) | |
16459 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
16460 | for ac_dir in $PATH; do | |
16461 | IFS="$ac_save_IFS" | |
16462 | test -z "$ac_dir" && ac_dir=. | |
16463 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16464 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
16465 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
16466 | (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 | |
16467 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
16468 | break 2 | |
16469 | fi | |
16470 | fi | |
16471 | done | |
16472 | done | |
16473 | IFS="$ac_save_IFS" | |
16474 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
16475 | ;; | |
16476 | esac | |
252b5132 | 16477 | fi |
d7040cdb SE |
16478 | XGETTEXT="$ac_cv_path_XGETTEXT" |
16479 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
16480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
16481 | $as_echo "$XGETTEXT" >&6; } | |
d5fbea21 | 16482 | else |
81ecdfbb RW |
16483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16484 | $as_echo "no" >&6; } | |
d5fbea21 DJ |
16485 | fi |
16486 | ||
d7040cdb | 16487 | rm -f messages.po |
d5fbea21 | 16488 | |
20e95c23 | 16489 | |
d7040cdb SE |
16490 | # Prepare PATH_SEPARATOR. |
16491 | # The user is always right. | |
16492 | if test "${PATH_SEPARATOR+set}" != set; then | |
16493 | echo "#! /bin/sh" >conf$$.sh | |
16494 | echo "exit 0" >>conf$$.sh | |
16495 | chmod +x conf$$.sh | |
16496 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
16497 | PATH_SEPARATOR=';' | |
16498 | else | |
16499 | PATH_SEPARATOR=: | |
16500 | fi | |
16501 | rm -f conf$$.sh | |
16502 | fi | |
20e95c23 | 16503 | |
d7040cdb SE |
16504 | # Find out how to test for executable files. Don't use a zero-byte file, |
16505 | # as systems may use methods other than mode bits to determine executability. | |
16506 | cat >conf$$.file <<_ASEOF | |
16507 | #! /bin/sh | |
16508 | exit 0 | |
16509 | _ASEOF | |
16510 | chmod +x conf$$.file | |
16511 | if test -x conf$$.file >/dev/null 2>&1; then | |
16512 | ac_executable_p="test -x" | |
16513 | else | |
16514 | ac_executable_p="test -f" | |
16515 | fi | |
16516 | rm -f conf$$.file | |
20e95c23 | 16517 | |
d7040cdb SE |
16518 | # Extract the first word of "msgmerge", so it can be a program name with args. |
16519 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
16520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16521 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16522 | if ${ac_cv_path_MSGMERGE+:} false; then : |
81ecdfbb | 16523 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
16524 | else |
16525 | case "$MSGMERGE" in | |
16526 | [\\/]* | ?:[\\/]*) | |
16527 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
16528 | ;; | |
16529 | *) | |
16530 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
16531 | for ac_dir in $PATH; do | |
16532 | IFS="$ac_save_IFS" | |
16533 | test -z "$ac_dir" && ac_dir=. | |
16534 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16535 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
16536 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
16537 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
16538 | break 2 | |
16539 | fi | |
16540 | fi | |
16541 | done | |
16542 | done | |
16543 | IFS="$ac_save_IFS" | |
16544 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
16545 | ;; | |
16546 | esac | |
16547 | fi | |
16548 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
16549 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
16550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
16551 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 16552 | else |
81ecdfbb RW |
16553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16554 | $as_echo "no" >&6; } | |
d7040cdb | 16555 | fi |
20e95c23 DJ |
16556 | |
16557 | ||
d7040cdb SE |
16558 | if test "$GMSGFMT" != ":"; then |
16559 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
16560 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
16561 | : ; | |
16562 | else | |
16563 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
16564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
16565 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
16566 | GMSGFMT=":" |
16567 | fi | |
16568 | fi | |
20e95c23 | 16569 | |
d7040cdb SE |
16570 | if test "$XGETTEXT" != ":"; then |
16571 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
16572 | (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 | |
16573 | : ; | |
16574 | else | |
81ecdfbb RW |
16575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
16576 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
16577 | XGETTEXT=":" |
16578 | fi | |
16579 | rm -f messages.po | |
20e95c23 | 16580 | fi |
42ecbf5e | 16581 | |
81ecdfbb | 16582 | ac_config_commands="$ac_config_commands default-1" |
252b5132 | 16583 | |
42ecbf5e | 16584 | |
252b5132 | 16585 | |
42ecbf5e DJ |
16586 | |
16587 | ||
d7040cdb | 16588 | for ac_prog in 'bison -y' byacc |
20e95c23 | 16589 | do |
d7040cdb SE |
16590 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
16591 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
16592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16593 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16594 | if ${ac_cv_prog_YACC+:} false; then : |
81ecdfbb | 16595 | $as_echo_n "(cached) " >&6 |
20e95c23 | 16596 | else |
d7040cdb SE |
16597 | if test -n "$YACC"; then |
16598 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
42ecbf5e | 16599 | else |
d7040cdb SE |
16600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16601 | for as_dir in $PATH | |
16602 | do | |
16603 | IFS=$as_save_IFS | |
16604 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16605 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16606 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 16607 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 16608 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
16609 | break 2 |
16610 | fi | |
16611 | done | |
81ecdfbb RW |
16612 | done |
16613 | IFS=$as_save_IFS | |
42ecbf5e | 16614 | |
42ecbf5e | 16615 | fi |
e5a52504 | 16616 | fi |
d7040cdb SE |
16617 | YACC=$ac_cv_prog_YACC |
16618 | if test -n "$YACC"; then | |
81ecdfbb RW |
16619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
16620 | $as_echo "$YACC" >&6; } | |
42ecbf5e | 16621 | else |
81ecdfbb RW |
16622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16623 | $as_echo "no" >&6; } | |
42ecbf5e | 16624 | fi |
252b5132 | 16625 | |
81ecdfbb | 16626 | |
d7040cdb | 16627 | test -n "$YACC" && break |
42ecbf5e | 16628 | done |
d7040cdb | 16629 | test -n "$YACC" || YACC="yacc" |
d15b04bd | 16630 | |
d7040cdb SE |
16631 | for ac_prog in flex lex |
16632 | do | |
16633 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
16634 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
16635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16636 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16637 | if ${ac_cv_prog_LEX+:} false; then : |
81ecdfbb | 16638 | $as_echo_n "(cached) " >&6 |
d15b04bd | 16639 | else |
d7040cdb SE |
16640 | if test -n "$LEX"; then |
16641 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
16642 | else | |
16643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16644 | for as_dir in $PATH | |
16645 | do | |
16646 | IFS=$as_save_IFS | |
16647 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16648 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16649 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 16650 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 16651 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
16652 | break 2 |
16653 | fi | |
16654 | done | |
81ecdfbb RW |
16655 | done |
16656 | IFS=$as_save_IFS | |
d7040cdb SE |
16657 | |
16658 | fi | |
16659 | fi | |
16660 | LEX=$ac_cv_prog_LEX | |
16661 | if test -n "$LEX"; then | |
81ecdfbb RW |
16662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
16663 | $as_echo "$LEX" >&6; } | |
d7040cdb | 16664 | else |
81ecdfbb RW |
16665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16666 | $as_echo "no" >&6; } | |
d15b04bd | 16667 | fi |
e5a52504 | 16668 | |
81ecdfbb | 16669 | |
d7040cdb SE |
16670 | test -n "$LEX" && break |
16671 | done | |
16672 | test -n "$LEX" || LEX=":" | |
42ecbf5e | 16673 | |
3d961d0d AM |
16674 | case "$LEX" in |
16675 | :|*"missing "*) ;; | |
16676 | *) cat >conftest.l <<_ACEOF | |
81ecdfbb RW |
16677 | %% |
16678 | a { ECHO; } | |
16679 | b { REJECT; } | |
16680 | c { yymore (); } | |
16681 | d { yyless (1); } | |
d0ac1c44 SM |
16682 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
16683 | yyless ((input () != 0)); } | |
81ecdfbb RW |
16684 | f { unput (yytext[0]); } |
16685 | . { BEGIN INITIAL; } | |
16686 | %% | |
16687 | #ifdef YYTEXT_POINTER | |
16688 | extern char *yytext; | |
d7040cdb | 16689 | #endif |
42ecbf5e | 16690 | int |
81ecdfbb | 16691 | main (void) |
42ecbf5e | 16692 | { |
81ecdfbb | 16693 | return ! yylex () + ! yywrap (); |
42ecbf5e DJ |
16694 | } |
16695 | _ACEOF | |
81ecdfbb RW |
16696 | { { ac_try="$LEX conftest.l" |
16697 | case "(($ac_try" in | |
16698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16699 | *) ac_try_echo=$ac_try;; | |
16700 | esac | |
16701 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
16702 | $as_echo "$ac_try_echo"; } >&5 | |
16703 | (eval "$LEX conftest.l") 2>&5 | |
42ecbf5e | 16704 | ac_status=$? |
81ecdfbb RW |
16705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16706 | test $ac_status = 0; } | |
16707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
16708 | $as_echo_n "checking lex output file root... " >&6; } | |
d0ac1c44 | 16709 | if ${ac_cv_prog_lex_root+:} false; then : |
81ecdfbb | 16710 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 16711 | else |
42ecbf5e | 16712 | |
81ecdfbb RW |
16713 | if test -f lex.yy.c; then |
16714 | ac_cv_prog_lex_root=lex.yy | |
16715 | elif test -f lexyy.c; then | |
16716 | ac_cv_prog_lex_root=lexyy | |
16717 | else | |
d0ac1c44 | 16718 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
42ecbf5e | 16719 | fi |
42ecbf5e | 16720 | fi |
81ecdfbb RW |
16721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
16722 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
16723 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
20e95c23 | 16724 | |
81ecdfbb RW |
16725 | if test -z "${LEXLIB+set}"; then |
16726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
16727 | $as_echo_n "checking lex library... " >&6; } | |
d0ac1c44 | 16728 | if ${ac_cv_lib_lex+:} false; then : |
81ecdfbb | 16729 | $as_echo_n "(cached) " >&6 |
252b5132 | 16730 | else |
20e95c23 | 16731 | |
81ecdfbb RW |
16732 | ac_save_LIBS=$LIBS |
16733 | ac_cv_lib_lex='none needed' | |
16734 | for ac_lib in '' -lfl -ll; do | |
16735 | LIBS="$ac_lib $ac_save_LIBS" | |
16736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16737 | /* end confdefs.h. */ | |
16738 | `cat $LEX_OUTPUT_ROOT.c` | |
16739 | _ACEOF | |
16740 | if ac_fn_c_try_link "$LINENO"; then : | |
16741 | ac_cv_lib_lex=$ac_lib | |
20e95c23 | 16742 | fi |
81ecdfbb RW |
16743 | rm -f core conftest.err conftest.$ac_objext \ |
16744 | conftest$ac_exeext conftest.$ac_ext | |
16745 | test "$ac_cv_lib_lex" != 'none needed' && break | |
16746 | done | |
16747 | LIBS=$ac_save_LIBS | |
20e95c23 DJ |
16748 | |
16749 | fi | |
81ecdfbb RW |
16750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
16751 | $as_echo "$ac_cv_lib_lex" >&6; } | |
16752 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
d7040cdb | 16753 | fi |
20e95c23 | 16754 | |
20e95c23 | 16755 | |
81ecdfbb RW |
16756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
16757 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
d0ac1c44 | 16758 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
81ecdfbb | 16759 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
16760 | else |
16761 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
81ecdfbb | 16762 | # default is implementation-dependent. Figure out which it is, since |
d7040cdb SE |
16763 | # not all implementations provide the %pointer and %array declarations. |
16764 | ac_cv_prog_lex_yytext_pointer=no | |
d7040cdb | 16765 | ac_save_LIBS=$LIBS |
81ecdfbb RW |
16766 | LIBS="$LEXLIB $ac_save_LIBS" |
16767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16768 | /* end confdefs.h. */ | |
d0ac1c44 SM |
16769 | |
16770 | #define YYTEXT_POINTER 1 | |
d7040cdb | 16771 | `cat $LEX_OUTPUT_ROOT.c` |
20e95c23 | 16772 | _ACEOF |
81ecdfbb | 16773 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 16774 | ac_cv_prog_lex_yytext_pointer=yes |
d7040cdb | 16775 | fi |
81ecdfbb RW |
16776 | rm -f core conftest.err conftest.$ac_objext \ |
16777 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 16778 | LIBS=$ac_save_LIBS |
d7040cdb SE |
16779 | |
16780 | fi | |
81ecdfbb RW |
16781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
16782 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
d7040cdb SE |
16783 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
16784 | ||
81ecdfbb | 16785 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
d7040cdb SE |
16786 | |
16787 | fi | |
81ecdfbb | 16788 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
3d961d0d AM |
16789 | ;; |
16790 | esac | |
d7040cdb SE |
16791 | if test "$LEX" = :; then |
16792 | LEX=${am_missing_run}flex | |
16793 | fi | |
16794 | ||
81ecdfbb RW |
16795 | |
16796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
16797 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
16798 | # Check whether --enable-maintainer-mode was given. | |
16799 | if test "${enable_maintainer_mode+set}" = set; then : | |
16800 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
252b5132 | 16801 | else |
d7040cdb | 16802 | USE_MAINTAINER_MODE=no |
81ecdfbb | 16803 | fi |
d7040cdb | 16804 | |
81ecdfbb RW |
16805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
16806 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
16807 | if test $USE_MAINTAINER_MODE = yes; then | |
d7040cdb SE |
16808 | MAINTAINER_MODE_TRUE= |
16809 | MAINTAINER_MODE_FALSE='#' | |
16810 | else | |
16811 | MAINTAINER_MODE_TRUE='#' | |
16812 | MAINTAINER_MODE_FALSE= | |
252b5132 | 16813 | fi |
252b5132 | 16814 | |
d7040cdb SE |
16815 | MAINT=$MAINTAINER_MODE_TRUE |
16816 | ||
16817 | ||
81ecdfbb | 16818 | if false; then |
d7040cdb SE |
16819 | GENINSRC_NEVER_TRUE= |
16820 | GENINSRC_NEVER_FALSE='#' | |
16821 | else | |
16822 | GENINSRC_NEVER_TRUE='#' | |
16823 | GENINSRC_NEVER_FALSE= | |
252b5132 RH |
16824 | fi |
16825 | ||
81ecdfbb RW |
16826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
16827 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
d0ac1c44 | 16828 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
81ecdfbb | 16829 | $as_echo_n "(cached) " >&6 |
eccbf555 AM |
16830 | else |
16831 | echo abfoo >t1 | |
16832 | echo cdfoo >t2 | |
da17fe9d | 16833 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
eccbf555 AM |
16834 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
16835 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
16836 | : | |
16837 | else | |
16838 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
16839 | fi | |
16840 | fi | |
16841 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then | |
16842 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
16843 | : | |
16844 | else | |
16845 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
16846 | fi | |
16847 | fi | |
16848 | rm t1 t2 | |
16849 | ||
16850 | fi | |
81ecdfbb RW |
16851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
16852 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
eccbf555 AM |
16853 | do_compare="$gcc_cv_prog_cmp_skip" |
16854 | ||
16855 | ||
d7040cdb SE |
16856 | |
16857 | . ${srcdir}/configure.host | |
16858 | ||
16859 | ||
16860 | ||
16861 | ||
58797674 | 16862 | for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h |
81ecdfbb RW |
16863 | do : |
16864 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16865 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
d0ac1c44 | 16866 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
42ecbf5e | 16867 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16868 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
42ecbf5e DJ |
16869 | _ACEOF |
16870 | ||
16871 | fi | |
16872 | ||
252b5132 RH |
16873 | done |
16874 | ||
5d3236ee DK |
16875 | for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h |
16876 | do : | |
16877 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16878 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
d0ac1c44 | 16879 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
5d3236ee DK |
16880 | cat >>confdefs.h <<_ACEOF |
16881 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16882 | _ACEOF | |
16883 | ||
16884 | fi | |
16885 | ||
16886 | done | |
16887 | ||
208a4923 NC |
16888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 |
16889 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
d0ac1c44 | 16890 | if ${gcc_cv_header_string+:} false; then : |
208a4923 NC |
16891 | $as_echo_n "(cached) " >&6 |
16892 | else | |
16893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16894 | /* end confdefs.h. */ | |
16895 | #include <string.h> | |
16896 | #include <strings.h> | |
16897 | int | |
16898 | main () | |
16899 | { | |
16900 | ||
16901 | ; | |
16902 | return 0; | |
16903 | } | |
16904 | _ACEOF | |
16905 | if ac_fn_c_try_compile "$LINENO"; then : | |
16906 | gcc_cv_header_string=yes | |
16907 | else | |
16908 | gcc_cv_header_string=no | |
16909 | fi | |
16910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16911 | fi | |
16912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 | |
16913 | $as_echo "$gcc_cv_header_string" >&6; } | |
16914 | if test $gcc_cv_header_string = yes; then | |
16915 | ||
16916 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
16917 | ||
16918 | fi | |
16919 | ||
44350750 | 16920 | for ac_func in glob mkstemp realpath sbrk setlocale waitpid |
81ecdfbb RW |
16921 | do : |
16922 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16923 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d0ac1c44 | 16924 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
42ecbf5e | 16925 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16926 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
42ecbf5e | 16927 | _ACEOF |
252b5132 | 16928 | |
252b5132 RH |
16929 | fi |
16930 | done | |
16931 | ||
88ba72a2 | 16932 | for ac_func in open lseek close |
5d3236ee DK |
16933 | do : |
16934 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16935 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d0ac1c44 | 16936 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
5d3236ee DK |
16937 | cat >>confdefs.h <<_ACEOF |
16938 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16939 | _ACEOF | |
16940 | ||
16941 | fi | |
16942 | done | |
16943 | ||
252b5132 | 16944 | ac_header_dirent=no |
42ecbf5e | 16945 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
81ecdfbb RW |
16946 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
16947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
16948 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0ac1c44 | 16949 | if eval \${$as_ac_Header+:} false; then : |
81ecdfbb RW |
16950 | $as_echo_n "(cached) " >&6 |
16951 | else | |
16952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
42ecbf5e | 16953 | /* end confdefs.h. */ |
252b5132 RH |
16954 | #include <sys/types.h> |
16955 | #include <$ac_hdr> | |
42ecbf5e DJ |
16956 | |
16957 | int | |
16958 | main () | |
16959 | { | |
16960 | if ((DIR *) 0) | |
16961 | return 0; | |
16962 | ; | |
16963 | return 0; | |
16964 | } | |
16965 | _ACEOF | |
81ecdfbb | 16966 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
16967 | eval "$as_ac_Header=yes" |
16968 | else | |
81ecdfbb | 16969 | eval "$as_ac_Header=no" |
42ecbf5e | 16970 | fi |
81ecdfbb | 16971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
42ecbf5e | 16972 | fi |
81ecdfbb RW |
16973 | eval ac_res=\$$as_ac_Header |
16974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
16975 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 16976 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
42ecbf5e | 16977 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16978 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
42ecbf5e DJ |
16979 | _ACEOF |
16980 | ||
16981 | ac_header_dirent=$ac_hdr; break | |
d15b04bd | 16982 | fi |
42ecbf5e | 16983 | |
d15b04bd L |
16984 | done |
16985 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
16986 | if test $ac_header_dirent = dirent.h; then | |
81ecdfbb RW |
16987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
16988 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0ac1c44 | 16989 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb | 16990 | $as_echo_n "(cached) " >&6 |
42ecbf5e DJ |
16991 | else |
16992 | ac_func_search_save_LIBS=$LIBS | |
81ecdfbb | 16993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
16994 | /* end confdefs.h. */ |
16995 | ||
81ecdfbb RW |
16996 | /* Override any GCC internal prototype to avoid an error. |
16997 | Use char because int might match the return type of a GCC | |
16998 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
16999 | #ifdef __cplusplus |
17000 | extern "C" | |
17001 | #endif | |
42ecbf5e DJ |
17002 | char opendir (); |
17003 | int | |
17004 | main () | |
17005 | { | |
81ecdfbb | 17006 | return opendir (); |
42ecbf5e DJ |
17007 | ; |
17008 | return 0; | |
17009 | } | |
17010 | _ACEOF | |
81ecdfbb RW |
17011 | for ac_lib in '' dir; do |
17012 | if test -z "$ac_lib"; then | |
17013 | ac_res="none required" | |
17014 | else | |
17015 | ac_res=-l$ac_lib | |
42ecbf5e | 17016 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
17017 | fi |
17018 | if ac_fn_c_try_link "$LINENO"; then : | |
17019 | ac_cv_search_opendir=$ac_res | |
17020 | fi | |
17021 | rm -f core conftest.err conftest.$ac_objext \ | |
17022 | conftest$ac_exeext | |
d0ac1c44 | 17023 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb RW |
17024 | break |
17025 | fi | |
17026 | done | |
d0ac1c44 | 17027 | if ${ac_cv_search_opendir+:} false; then : |
e5a52504 | 17028 | |
42ecbf5e | 17029 | else |
81ecdfbb | 17030 | ac_cv_search_opendir=no |
252b5132 | 17031 | fi |
81ecdfbb | 17032 | rm conftest.$ac_ext |
42ecbf5e DJ |
17033 | LIBS=$ac_func_search_save_LIBS |
17034 | fi | |
81ecdfbb RW |
17035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
17036 | $as_echo "$ac_cv_search_opendir" >&6; } | |
17037 | ac_res=$ac_cv_search_opendir | |
17038 | if test "$ac_res" != no; then : | |
17039 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e | 17040 | |
d15b04bd | 17041 | fi |
252b5132 RH |
17042 | |
17043 | else | |
81ecdfbb RW |
17044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
17045 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0ac1c44 | 17046 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb | 17047 | $as_echo_n "(cached) " >&6 |
252b5132 | 17048 | else |
42ecbf5e | 17049 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 17050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
17051 | /* end confdefs.h. */ |
17052 | ||
81ecdfbb RW |
17053 | /* Override any GCC internal prototype to avoid an error. |
17054 | Use char because int might match the return type of a GCC | |
17055 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
17056 | #ifdef __cplusplus |
17057 | extern "C" | |
17058 | #endif | |
42ecbf5e DJ |
17059 | char opendir (); |
17060 | int | |
17061 | main () | |
17062 | { | |
81ecdfbb | 17063 | return opendir (); |
42ecbf5e DJ |
17064 | ; |
17065 | return 0; | |
17066 | } | |
17067 | _ACEOF | |
81ecdfbb RW |
17068 | for ac_lib in '' x; do |
17069 | if test -z "$ac_lib"; then | |
17070 | ac_res="none required" | |
17071 | else | |
17072 | ac_res=-l$ac_lib | |
42ecbf5e | 17073 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
17074 | fi |
17075 | if ac_fn_c_try_link "$LINENO"; then : | |
17076 | ac_cv_search_opendir=$ac_res | |
17077 | fi | |
17078 | rm -f core conftest.err conftest.$ac_objext \ | |
17079 | conftest$ac_exeext | |
d0ac1c44 | 17080 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb RW |
17081 | break |
17082 | fi | |
17083 | done | |
d0ac1c44 | 17084 | if ${ac_cv_search_opendir+:} false; then : |
252b5132 | 17085 | |
42ecbf5e | 17086 | else |
81ecdfbb | 17087 | ac_cv_search_opendir=no |
252b5132 | 17088 | fi |
81ecdfbb | 17089 | rm conftest.$ac_ext |
42ecbf5e | 17090 | LIBS=$ac_func_search_save_LIBS |
252b5132 | 17091 | fi |
81ecdfbb RW |
17092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
17093 | $as_echo "$ac_cv_search_opendir" >&6; } | |
17094 | ac_res=$ac_cv_search_opendir | |
17095 | if test "$ac_res" != no; then : | |
17096 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e | 17097 | |
d15b04bd | 17098 | fi |
252b5132 RH |
17099 | |
17100 | fi | |
17101 | ||
17102 | ||
d0ac1c44 SM |
17103 | |
17104 | ||
17105 | ||
17106 | for ac_header in $ac_header_list | |
2aec968d L |
17107 | do : |
17108 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d0ac1c44 SM |
17109 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
17110 | " | |
17111 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
2aec968d L |
17112 | cat >>confdefs.h <<_ACEOF |
17113 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17114 | _ACEOF | |
17115 | ||
17116 | fi | |
17117 | ||
17118 | done | |
17119 | ||
d0ac1c44 SM |
17120 | |
17121 | ||
17122 | ||
17123 | ||
17124 | ||
17125 | ||
17126 | ||
2aec968d L |
17127 | for ac_func in getpagesize |
17128 | do : | |
17129 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
d0ac1c44 | 17130 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
2aec968d L |
17131 | cat >>confdefs.h <<_ACEOF |
17132 | #define HAVE_GETPAGESIZE 1 | |
17133 | _ACEOF | |
17134 | ||
17135 | fi | |
17136 | done | |
17137 | ||
17138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
17139 | $as_echo_n "checking for working mmap... " >&6; } | |
d0ac1c44 | 17140 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
2aec968d L |
17141 | $as_echo_n "(cached) " >&6 |
17142 | else | |
17143 | if test "$cross_compiling" = yes; then : | |
17144 | ac_cv_func_mmap_fixed_mapped=no | |
17145 | else | |
17146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17147 | /* end confdefs.h. */ | |
17148 | $ac_includes_default | |
17149 | /* malloc might have been renamed as rpl_malloc. */ | |
17150 | #undef malloc | |
17151 | ||
17152 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
17153 | Here is a matrix of mmap possibilities: | |
17154 | mmap private not fixed | |
17155 | mmap private fixed at somewhere currently unmapped | |
17156 | mmap private fixed at somewhere already mapped | |
17157 | mmap shared not fixed | |
17158 | mmap shared fixed at somewhere currently unmapped | |
17159 | mmap shared fixed at somewhere already mapped | |
17160 | For private mappings, we should verify that changes cannot be read() | |
17161 | back from the file, nor mmap's back from the file at a different | |
17162 | address. (There have been systems where private was not correctly | |
17163 | implemented like the infamous i386 svr4.0, and systems where the | |
17164 | VM page cache was not coherent with the file system buffer cache | |
17165 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
17166 | For shared mappings, we should conversely verify that changes get | |
17167 | propagated back to all the places they're supposed to be. | |
17168 | ||
17169 | Grep wants private fixed already mapped. | |
17170 | The main things grep needs to know about mmap are: | |
17171 | * does it exist and is it safe to write into the mmap'd area | |
17172 | * how to use it (BSD variants) */ | |
17173 | ||
17174 | #include <fcntl.h> | |
17175 | #include <sys/mman.h> | |
17176 | ||
17177 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
17178 | char *malloc (); | |
17179 | #endif | |
17180 | ||
17181 | /* This mess was copied from the GNU getpagesize.h. */ | |
17182 | #ifndef HAVE_GETPAGESIZE | |
2aec968d L |
17183 | # ifdef _SC_PAGESIZE |
17184 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
17185 | # else /* no _SC_PAGESIZE */ | |
17186 | # ifdef HAVE_SYS_PARAM_H | |
17187 | # include <sys/param.h> | |
17188 | # ifdef EXEC_PAGESIZE | |
17189 | # define getpagesize() EXEC_PAGESIZE | |
17190 | # else /* no EXEC_PAGESIZE */ | |
17191 | # ifdef NBPG | |
17192 | # define getpagesize() NBPG * CLSIZE | |
17193 | # ifndef CLSIZE | |
17194 | # define CLSIZE 1 | |
17195 | # endif /* no CLSIZE */ | |
17196 | # else /* no NBPG */ | |
17197 | # ifdef NBPC | |
17198 | # define getpagesize() NBPC | |
17199 | # else /* no NBPC */ | |
17200 | # ifdef PAGESIZE | |
17201 | # define getpagesize() PAGESIZE | |
17202 | # endif /* PAGESIZE */ | |
17203 | # endif /* no NBPC */ | |
17204 | # endif /* no NBPG */ | |
17205 | # endif /* no EXEC_PAGESIZE */ | |
17206 | # else /* no HAVE_SYS_PARAM_H */ | |
17207 | # define getpagesize() 8192 /* punt totally */ | |
17208 | # endif /* no HAVE_SYS_PARAM_H */ | |
17209 | # endif /* no _SC_PAGESIZE */ | |
17210 | ||
17211 | #endif /* no HAVE_GETPAGESIZE */ | |
17212 | ||
17213 | int | |
17214 | main () | |
17215 | { | |
17216 | char *data, *data2, *data3; | |
d0ac1c44 | 17217 | const char *cdata2; |
2aec968d | 17218 | int i, pagesize; |
d0ac1c44 | 17219 | int fd, fd2; |
2aec968d L |
17220 | |
17221 | pagesize = getpagesize (); | |
17222 | ||
17223 | /* First, make a file with some known garbage in it. */ | |
17224 | data = (char *) malloc (pagesize); | |
17225 | if (!data) | |
17226 | return 1; | |
17227 | for (i = 0; i < pagesize; ++i) | |
17228 | *(data + i) = rand (); | |
17229 | umask (0); | |
17230 | fd = creat ("conftest.mmap", 0600); | |
17231 | if (fd < 0) | |
d0ac1c44 | 17232 | return 2; |
2aec968d | 17233 | if (write (fd, data, pagesize) != pagesize) |
d0ac1c44 | 17234 | return 3; |
2aec968d L |
17235 | close (fd); |
17236 | ||
d0ac1c44 SM |
17237 | /* Next, check that the tail of a page is zero-filled. File must have |
17238 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
17239 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
17240 | if (fd2 < 0) | |
17241 | return 4; | |
17242 | cdata2 = ""; | |
17243 | if (write (fd2, cdata2, 1) != 1) | |
17244 | return 5; | |
17245 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
17246 | if (data2 == MAP_FAILED) | |
17247 | return 6; | |
17248 | for (i = 0; i < pagesize; ++i) | |
17249 | if (*(data2 + i)) | |
17250 | return 7; | |
17251 | close (fd2); | |
17252 | if (munmap (data2, pagesize)) | |
17253 | return 8; | |
17254 | ||
2aec968d L |
17255 | /* Next, try to mmap the file at a fixed address which already has |
17256 | something else allocated at it. If we can, also make sure that | |
17257 | we see the same garbage. */ | |
17258 | fd = open ("conftest.mmap", O_RDWR); | |
17259 | if (fd < 0) | |
d0ac1c44 | 17260 | return 9; |
2aec968d L |
17261 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
17262 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
d0ac1c44 | 17263 | return 10; |
2aec968d L |
17264 | for (i = 0; i < pagesize; ++i) |
17265 | if (*(data + i) != *(data2 + i)) | |
d0ac1c44 | 17266 | return 11; |
2aec968d L |
17267 | |
17268 | /* Finally, make sure that changes to the mapped area do not | |
17269 | percolate back to the file as seen by read(). (This is a bug on | |
17270 | some variants of i386 svr4.0.) */ | |
17271 | for (i = 0; i < pagesize; ++i) | |
17272 | *(data2 + i) = *(data2 + i) + 1; | |
17273 | data3 = (char *) malloc (pagesize); | |
17274 | if (!data3) | |
d0ac1c44 | 17275 | return 12; |
2aec968d | 17276 | if (read (fd, data3, pagesize) != pagesize) |
d0ac1c44 | 17277 | return 13; |
2aec968d L |
17278 | for (i = 0; i < pagesize; ++i) |
17279 | if (*(data + i) != *(data3 + i)) | |
d0ac1c44 | 17280 | return 14; |
2aec968d L |
17281 | close (fd); |
17282 | return 0; | |
17283 | } | |
17284 | _ACEOF | |
17285 | if ac_fn_c_try_run "$LINENO"; then : | |
17286 | ac_cv_func_mmap_fixed_mapped=yes | |
17287 | else | |
17288 | ac_cv_func_mmap_fixed_mapped=no | |
17289 | fi | |
17290 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
17291 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
17292 | fi | |
17293 | ||
17294 | fi | |
17295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
17296 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
17297 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
17298 | ||
17299 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h | |
17300 | ||
17301 | fi | |
d0ac1c44 | 17302 | rm -f conftest.mmap conftest.txt |
2aec968d L |
17303 | |
17304 | ||
5d3236ee DK |
17305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
17306 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
d0ac1c44 | 17307 | if ${ac_cv_search_dlopen+:} false; then : |
5d3236ee DK |
17308 | $as_echo_n "(cached) " >&6 |
17309 | else | |
17310 | ac_func_search_save_LIBS=$LIBS | |
17311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17312 | /* end confdefs.h. */ | |
17313 | ||
17314 | /* Override any GCC internal prototype to avoid an error. | |
17315 | Use char because int might match the return type of a GCC | |
17316 | builtin and then its argument prototype would still apply. */ | |
17317 | #ifdef __cplusplus | |
17318 | extern "C" | |
17319 | #endif | |
17320 | char dlopen (); | |
17321 | int | |
17322 | main () | |
17323 | { | |
17324 | return dlopen (); | |
17325 | ; | |
17326 | return 0; | |
17327 | } | |
17328 | _ACEOF | |
17329 | for ac_lib in '' dl; do | |
17330 | if test -z "$ac_lib"; then | |
17331 | ac_res="none required" | |
17332 | else | |
17333 | ac_res=-l$ac_lib | |
17334 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
17335 | fi | |
17336 | if ac_fn_c_try_link "$LINENO"; then : | |
17337 | ac_cv_search_dlopen=$ac_res | |
17338 | fi | |
17339 | rm -f core conftest.err conftest.$ac_objext \ | |
17340 | conftest$ac_exeext | |
d0ac1c44 | 17341 | if ${ac_cv_search_dlopen+:} false; then : |
5d3236ee DK |
17342 | break |
17343 | fi | |
17344 | done | |
d0ac1c44 | 17345 | if ${ac_cv_search_dlopen+:} false; then : |
5d3236ee DK |
17346 | |
17347 | else | |
17348 | ac_cv_search_dlopen=no | |
17349 | fi | |
17350 | rm conftest.$ac_ext | |
17351 | LIBS=$ac_func_search_save_LIBS | |
17352 | fi | |
17353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
17354 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
17355 | ac_res=$ac_cv_search_dlopen | |
17356 | if test "$ac_res" != no; then : | |
17357 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
17358 | ||
3917d5d5 DK |
17359 | fi |
17360 | ||
5d3236ee | 17361 | |
02ecc8e9 L |
17362 | # Check whether --enable-initfini-array was given. |
17363 | if test "${enable_initfini_array+set}" = set; then : | |
26e3a0c9 AM |
17364 | enableval=$enable_initfini_array; case "${enableval}" in |
17365 | yes|no) ;; | |
d0ac1c44 | 17366 | *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;; |
26e3a0c9 | 17367 | esac |
02ecc8e9 | 17368 | else |
26e3a0c9 | 17369 | enable_initfini_array=yes |
02ecc8e9 L |
17370 | fi |
17371 | ||
17372 | ||
17373 | if test $enable_initfini_array = yes; then | |
17374 | ||
17375 | $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h | |
17376 | ||
17377 | fi | |
17378 | ||
81ecdfbb RW |
17379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
17380 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
d0ac1c44 | 17381 | if ${ld_cv_decl_getopt_unistd_h+:} false; then : |
81ecdfbb | 17382 | $as_echo_n "(cached) " >&6 |
34875e64 | 17383 | else |
81ecdfbb | 17384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 17385 | /* end confdefs.h. */ |
34875e64 | 17386 | #include <unistd.h> |
42ecbf5e DJ |
17387 | int |
17388 | main () | |
17389 | { | |
34875e64 | 17390 | extern int getopt (int, char *const*, const char *); |
42ecbf5e DJ |
17391 | ; |
17392 | return 0; | |
17393 | } | |
17394 | _ACEOF | |
81ecdfbb | 17395 | if ac_fn_c_try_compile "$LINENO"; then : |
34875e64 NC |
17396 | ld_cv_decl_getopt_unistd_h=yes |
17397 | else | |
81ecdfbb | 17398 | ld_cv_decl_getopt_unistd_h=no |
34875e64 | 17399 | fi |
81ecdfbb | 17400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
34875e64 NC |
17401 | fi |
17402 | ||
81ecdfbb RW |
17403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5 |
17404 | $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; } | |
34875e64 | 17405 | if test $ld_cv_decl_getopt_unistd_h = yes; then |
42ecbf5e | 17406 | |
81ecdfbb | 17407 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h |
34875e64 NC |
17408 | |
17409 | fi | |
42ecbf5e | 17410 | |
252b5132 RH |
17411 | |
17412 | case "${host}" in | |
a8100d5b | 17413 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
42ecbf5e | 17414 | |
81ecdfbb | 17415 | $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h |
252b5132 RH |
17416 | ;; |
17417 | esac | |
17418 | ||
81ecdfbb | 17419 | ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" |
d0ac1c44 | 17420 | if test "x$ac_cv_have_decl_strstr" = xyes; then : |
81ecdfbb | 17421 | ac_have_decl=1 |
252b5132 | 17422 | else |
81ecdfbb RW |
17423 | ac_have_decl=0 |
17424 | fi | |
502bdb00 | 17425 | |
81ecdfbb RW |
17426 | cat >>confdefs.h <<_ACEOF |
17427 | #define HAVE_DECL_STRSTR $ac_have_decl | |
42ecbf5e | 17428 | _ACEOF |
81ecdfbb | 17429 | ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default" |
d0ac1c44 | 17430 | if test "x$ac_cv_have_decl_free" = xyes; then : |
81ecdfbb | 17431 | ac_have_decl=1 |
252b5132 | 17432 | else |
81ecdfbb | 17433 | ac_have_decl=0 |
252b5132 RH |
17434 | fi |
17435 | ||
502bdb00 | 17436 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 17437 | #define HAVE_DECL_FREE $ac_have_decl |
502bdb00 | 17438 | _ACEOF |
81ecdfbb | 17439 | ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default" |
d0ac1c44 | 17440 | if test "x$ac_cv_have_decl_sbrk" = xyes; then : |
81ecdfbb RW |
17441 | ac_have_decl=1 |
17442 | else | |
17443 | ac_have_decl=0 | |
17444 | fi | |
42ecbf5e | 17445 | |
81ecdfbb RW |
17446 | cat >>confdefs.h <<_ACEOF |
17447 | #define HAVE_DECL_SBRK $ac_have_decl | |
17448 | _ACEOF | |
17449 | ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" | |
d0ac1c44 | 17450 | if test "x$ac_cv_have_decl_getenv" = xyes; then : |
81ecdfbb RW |
17451 | ac_have_decl=1 |
17452 | else | |
17453 | ac_have_decl=0 | |
17454 | fi | |
502bdb00 | 17455 | |
81ecdfbb RW |
17456 | cat >>confdefs.h <<_ACEOF |
17457 | #define HAVE_DECL_GETENV $ac_have_decl | |
17458 | _ACEOF | |
17459 | ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" | |
d0ac1c44 | 17460 | if test "x$ac_cv_have_decl_environ" = xyes; then : |
81ecdfbb | 17461 | ac_have_decl=1 |
502bdb00 | 17462 | else |
81ecdfbb RW |
17463 | ac_have_decl=0 |
17464 | fi | |
17465 | ||
17466 | cat >>confdefs.h <<_ACEOF | |
17467 | #define HAVE_DECL_ENVIRON $ac_have_decl | |
42ecbf5e | 17468 | _ACEOF |
252b5132 | 17469 | |
252b5132 | 17470 | |
1ff6de03 NA |
17471 | # Link in zlib if we can. This allows us to read and write |
17472 | # compressed CTF sections. | |
17473 | ||
17474 | # Use the system's zlib library. | |
17475 | zlibdir="-L\$(top_builddir)/../zlib" | |
17476 | zlibinc="-I\$(top_srcdir)/../zlib" | |
17477 | ||
17478 | # Check whether --with-system-zlib was given. | |
17479 | if test "${with_system_zlib+set}" = set; then : | |
17480 | withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then | |
17481 | zlibdir= | |
17482 | zlibinc= | |
17483 | fi | |
17484 | ||
17485 | fi | |
17486 | ||
17487 | ||
17488 | ||
17489 | ||
17490 | ||
597e2591 ILT |
17491 | # When converting linker scripts into strings for use in emulation |
17492 | # files, use astring.sed if the compiler supports ANSI string | |
17493 | # concatenation, or ostring.sed otherwise. This is to support the | |
17494 | # broken Microsoft MSVC compiler, which limits the length of string | |
17495 | # constants, while still supporting pre-ANSI compilers which do not | |
17496 | # support string concatenation. | |
81ecdfbb RW |
17497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5 |
17498 | $as_echo_n "checking whether ANSI C string concatenation works... " >&6; } | |
d0ac1c44 | 17499 | if ${ld_cv_string_concatenation+:} false; then : |
81ecdfbb | 17500 | $as_echo_n "(cached) " >&6 |
42ecbf5e | 17501 | else |
81ecdfbb | 17502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 17503 | /* end confdefs.h. */ |
81ecdfbb | 17504 | |
314e9a4e L |
17505 | int |
17506 | main () | |
17507 | { | |
81ecdfbb | 17508 | char *a = "a" "a"; |
314e9a4e L |
17509 | ; |
17510 | return 0; | |
17511 | } | |
17512 | _ACEOF | |
81ecdfbb RW |
17513 | if ac_fn_c_try_compile "$LINENO"; then : |
17514 | ld_cv_string_concatenation=yes | |
314e9a4e | 17515 | else |
81ecdfbb | 17516 | ld_cv_string_concatenation=no |
314e9a4e | 17517 | fi |
81ecdfbb | 17518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
314e9a4e | 17519 | fi |
81ecdfbb RW |
17520 | |
17521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5 | |
17522 | $as_echo "$ld_cv_string_concatenation" >&6; } | |
17523 | if test "$ld_cv_string_concatenation" = "yes"; then | |
17524 | STRINGIFY=astring.sed | |
17525 | else | |
17526 | STRINGIFY=ostring.sed | |
314e9a4e | 17527 | fi |
81ecdfbb RW |
17528 | |
17529 | ||
17530 | # target-specific stuff: | |
17531 | ||
17532 | all_targets= | |
17533 | EMUL= | |
17534 | all_emuls= | |
17535 | all_emul_extras= | |
17536 | all_libpath= | |
50ff67e6 | 17537 | TDIRS= |
81ecdfbb | 17538 | |
bf9ef603 | 17539 | # If the host is 64-bit, then we enable 64-bit targets by default. |
1110793a | 17540 | # This is consistent with what ../bfd/configure.ac does. |
bf9ef603 RM |
17541 | if test x${want64} = xfalse; then |
17542 | # The cast to long int works around a bug in the HP C Compiler | |
17543 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17544 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17545 | # This bug is HP SR number 8606223364. | |
17546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
17547 | $as_echo_n "checking size of void *... " >&6; } | |
d0ac1c44 | 17548 | if ${ac_cv_sizeof_void_p+:} false; then : |
bf9ef603 RM |
17549 | $as_echo_n "(cached) " >&6 |
17550 | else | |
17551 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
17552 | ||
17553 | else | |
17554 | if test "$ac_cv_type_void_p" = yes; then | |
17555 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
17556 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
17557 | as_fn_error 77 "cannot compute sizeof (void *) |
17558 | See \`config.log' for more details" "$LINENO" 5; } | |
bf9ef603 RM |
17559 | else |
17560 | ac_cv_sizeof_void_p=0 | |
17561 | fi | |
17562 | fi | |
17563 | ||
17564 | fi | |
17565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
17566 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
17567 | ||
17568 | ||
17569 | ||
17570 | cat >>confdefs.h <<_ACEOF | |
17571 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
17572 | _ACEOF | |
17573 | ||
17574 | ||
17575 | if test "x${ac_cv_sizeof_void_p}" = "x8"; then | |
17576 | want64=true | |
17577 | fi | |
17578 | fi | |
17579 | ||
c58212ea L |
17580 | elf_list_options=FALSE |
17581 | elf_shlib_list_options=FALSE | |
17582 | elf_plt_unwind_list_options=FALSE | |
81ecdfbb RW |
17583 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` |
17584 | do | |
17585 | if test "$targ_alias" = "all"; then | |
17586 | all_targets=true | |
82d8e420 L |
17587 | elf_list_options=TRUE |
17588 | elf_shlib_list_options=TRUE | |
17589 | elf_plt_unwind_list_options=TRUE | |
81ecdfbb RW |
17590 | else |
17591 | # Canonicalize the secondary target names. | |
17592 | result=`$ac_config_sub $targ_alias 2>/dev/null` | |
17593 | if test -n "$result"; then | |
17594 | targ=$result | |
17595 | else | |
17596 | targ=$targ_alias | |
17597 | fi | |
17598 | ||
17599 | . ${srcdir}/configure.tgt | |
17600 | ||
17601 | if test "$targ" = "$target"; then | |
17602 | EMUL=$targ_emul | |
17603 | fi | |
17604 | ||
17605 | if test x${want64} = xfalse; then | |
17606 | . ${srcdir}/../bfd/config.bfd | |
17607 | fi | |
17608 | ||
17609 | if test x${want64} = xtrue; then | |
17610 | targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls" | |
17611 | targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath" | |
17612 | fi | |
17613 | ||
17614 | for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do | |
17615 | case " $all_emuls " in | |
8c3fff59 AM |
17616 | *" e${i}.o "*) ;; |
17617 | *) | |
17618 | all_emuls="$all_emuls e${i}.o" | |
17619 | eval result=\$tdir_$i | |
17620 | test -z "$result" && result=$targ_alias | |
50ff67e6 AM |
17621 | TDIRS="$TDIRS |
17622 | tdir_$i=$result" | |
c58212ea L |
17623 | case "${i}" in |
17624 | *elf*) | |
17625 | elf_list_options=TRUE | |
68880f31 CLT |
17626 | ;; |
17627 | *) | |
075a2b89 | 17628 | if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then |
68880f31 CLT |
17629 | elf_list_options=TRUE |
17630 | fi | |
17631 | ;; | |
17632 | esac | |
17633 | if test "$elf_list_options" = "TRUE"; then | |
c40e31a1 AM |
17634 | source_sh() |
17635 | { | |
17636 | . $1 | |
17637 | } | |
17638 | source_sh ${srcdir}/emulparams/${i}.sh | |
c58212ea L |
17639 | if test x${GENERATE_SHLIB_SCRIPT} = xyes; then |
17640 | elf_shlib_list_options=TRUE | |
17641 | fi | |
17642 | if test x${PLT_UNWIND} = xyes; then | |
17643 | elf_plt_unwind_list_options=TRUE | |
17644 | fi | |
68880f31 | 17645 | fi |
c58212ea | 17646 | ;; |
81ecdfbb RW |
17647 | esac |
17648 | done | |
17649 | ||
17650 | for i in $targ_emul $targ_extra_libpath; do | |
17651 | case " $all_libpath " in | |
17652 | *" ${i} "*) ;; | |
17653 | *) | |
17654 | if test -z "$all_libpath"; then | |
17655 | all_libpath=${i} | |
17656 | else | |
17657 | all_libpath="$all_libpath ${i}" | |
17658 | fi | |
17659 | ;; | |
17660 | esac | |
17661 | done | |
17662 | ||
17663 | for i in $targ_extra_ofiles; do | |
17664 | case " $all_emul_extras " in | |
17665 | *" ${i} "*) ;; | |
17666 | *) | |
17667 | all_emul_extras="$all_emul_extras ${i}" | |
17668 | ;; | |
17669 | esac | |
17670 | done | |
5063daf7 | 17671 | |
81ecdfbb RW |
17672 | fi |
17673 | done | |
17674 | ||
621ff761 | 17675 | if test x$ac_default_compressed_debug_sections = xyes ; then |
6c3bc0f8 NC |
17676 | |
17677 | $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h | |
17678 | ||
17679 | fi | |
17680 | ||
6734f10a SB |
17681 | if test "${ac_default_new_dtags}" = unset; then |
17682 | ac_default_new_dtags=0 | |
17683 | fi | |
17684 | ||
17685 | cat >>confdefs.h <<_ACEOF | |
17686 | #define DEFAULT_NEW_DTAGS $ac_default_new_dtags | |
17687 | _ACEOF | |
17688 | ||
17689 | ||
647e4d46 L |
17690 | if test "${ac_default_ld_z_relro}" = unset; then |
17691 | ac_default_ld_z_relro=0 | |
17692 | fi | |
17693 | ||
17694 | cat >>confdefs.h <<_ACEOF | |
17695 | #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro | |
17696 | _ACEOF | |
17697 | ||
17698 | ||
b32632c4 L |
17699 | ac_default_ld_textrel_check_warning=0 |
17700 | case "${ac_default_ld_textrel_check}" in | |
17701 | unset|no) | |
17702 | ac_default_ld_textrel_check=textrel_check_none | |
17703 | ;; | |
17704 | yes|warning) | |
17705 | ac_default_ld_textrel_check=textrel_check_warning | |
17706 | ac_default_ld_textrel_check_warning=1 | |
17707 | ;; | |
17708 | error) | |
17709 | ac_default_ld_textrel_check=textrel_check_error | |
17710 | ;; | |
17711 | esac | |
17712 | ||
17713 | cat >>confdefs.h <<_ACEOF | |
17714 | #define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check | |
17715 | _ACEOF | |
17716 | ||
17717 | ||
17718 | cat >>confdefs.h <<_ACEOF | |
17719 | #define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning | |
17720 | _ACEOF | |
17721 | ||
17722 | ||
f6aec96d L |
17723 | if test "${ac_default_ld_z_separate_code}" = unset; then |
17724 | ac_default_ld_z_separate_code=0 | |
17725 | fi | |
17726 | ||
17727 | cat >>confdefs.h <<_ACEOF | |
17728 | #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code | |
17729 | _ACEOF | |
17730 | ||
17731 | ||
81ecdfbb | 17732 | |
2760f24c RG |
17733 | cat >>confdefs.h <<_ACEOF |
17734 | #define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash | |
17735 | _ACEOF | |
17736 | ||
17737 | ||
17738 | ||
17739 | cat >>confdefs.h <<_ACEOF | |
17740 | #define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash | |
17741 | _ACEOF | |
17742 | ||
17743 | ||
17744 | ||
81ecdfbb | 17745 | |
c58212ea L |
17746 | |
17747 | ||
17748 | ||
50ff67e6 | 17749 | |
81ecdfbb RW |
17750 | |
17751 | ||
17752 | if test x${all_targets} = xtrue; then | |
42ecbf5e DJ |
17753 | if test x${want64} = xtrue; then |
17754 | EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)' | |
9d069ac3 | 17755 | EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)' |
42ecbf5e DJ |
17756 | else |
17757 | EMULATION_OFILES='$(ALL_EMULATIONS)' | |
9d069ac3 | 17758 | EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)' |
42ecbf5e | 17759 | fi |
42ecbf5e DJ |
17760 | else |
17761 | EMULATION_OFILES=$all_emuls | |
17762 | EMUL_EXTRA_OFILES=$all_emul_extras | |
17763 | fi | |
17764 | ||
17765 | ||
17766 | ||
17767 | ||
17768 | EMULATION_LIBPATH=$all_libpath | |
17769 | ||
17770 | ||
17771 | if test x${enable_static} = xno; then | |
9165f454 | 17772 | TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so" |
87279e3c | 17773 | TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so" |
42ecbf5e DJ |
17774 | else |
17775 | TESTBFDLIB="../bfd/.libs/libbfd.a" | |
87279e3c | 17776 | TESTCTFLIB="../libctf/.libs/libctf.a" |
42ecbf5e | 17777 | fi |
094e34f2 NA |
17778 | if test "${enable_libctf}" = no; then |
17779 | TESTCTFLIB= | |
17780 | fi | |
42ecbf5e DJ |
17781 | |
17782 | ||
87279e3c | 17783 | |
42ecbf5e DJ |
17784 | target_vendor=${target_vendor=$host_vendor} |
17785 | case "$target_vendor" in | |
17786 | hp) EXTRA_SHLIB_EXTENSION=".sl" ;; | |
17787 | *) EXTRA_SHLIB_EXTENSION= ;; | |
17788 | esac | |
17789 | ||
17790 | case "$target_os" in | |
17791 | lynxos) EXTRA_SHLIB_EXTENSION=".a" ;; | |
17792 | esac | |
17793 | ||
17794 | if test x${EXTRA_SHLIB_EXTENSION} != x ; then | |
17795 | ||
17796 | cat >>confdefs.h <<_ACEOF | |
17797 | #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION" | |
17798 | _ACEOF | |
17799 | ||
17800 | fi | |
17801 | ||
33589acb AM |
17802 | ac_config_commands="$ac_config_commands default" |
17803 | ||
17804 | ||
108a6f8e CD |
17805 | |
17806 | ||
17807 | ||
17808 | ||
31dd3154 | 17809 | |
81ecdfbb | 17810 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
da594c4a | 17811 | |
42ecbf5e DJ |
17812 | cat >confcache <<\_ACEOF |
17813 | # This file is a shell script that caches the results of configure | |
17814 | # tests run on this system so they can be shared between configure | |
17815 | # scripts and configure runs, see configure's option --config-cache. | |
17816 | # It is not useful on other systems. If it contains results you don't | |
17817 | # want to keep, you may remove or edit it. | |
17818 | # | |
17819 | # config.status only pays attention to the cache file if you give it | |
17820 | # the --recheck option to rerun configure. | |
17821 | # | |
17822 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17823 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17824 | # following values. | |
17825 | ||
17826 | _ACEOF | |
17827 | ||
17828 | # The following way of writing the cache mishandles newlines in values, | |
17829 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 17830 | # So, we kill variables containing newlines. |
42ecbf5e DJ |
17831 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17832 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
17833 | ( |
17834 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17835 | eval ac_val=\$$ac_var | |
17836 | case $ac_val in #( | |
17837 | *${as_nl}*) | |
17838 | case $ac_var in #( | |
17839 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17840 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17841 | esac | |
17842 | case $ac_var in #( | |
17843 | _ | IFS | as_nl) ;; #( | |
17844 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17845 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17846 | esac ;; | |
17847 | esac | |
17848 | done | |
17849 | ||
42ecbf5e | 17850 | (set) 2>&1 | |
81ecdfbb RW |
17851 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17852 | *${as_nl}ac_space=\ *) | |
17853 | # `set' does not quote correctly, so add quotes: double-quote | |
17854 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
42ecbf5e DJ |
17855 | sed -n \ |
17856 | "s/'/'\\\\''/g; | |
17857 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 17858 | ;; #( |
42ecbf5e DJ |
17859 | *) |
17860 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 17861 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
42ecbf5e | 17862 | ;; |
81ecdfbb RW |
17863 | esac | |
17864 | sort | |
17865 | ) | | |
42ecbf5e | 17866 | sed ' |
81ecdfbb | 17867 | /^ac_cv_env_/b end |
42ecbf5e | 17868 | t clear |
81ecdfbb | 17869 | :clear |
42ecbf5e DJ |
17870 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17871 | t end | |
81ecdfbb RW |
17872 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17873 | :end' >>confcache | |
17874 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17875 | if test -w "$cache_file"; then | |
d0ac1c44 | 17876 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
17877 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17878 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
17879 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17880 | cat confcache >"$cache_file" | |
17881 | else | |
17882 | case $cache_file in #( | |
17883 | */* | ?:*) | |
17884 | mv -f confcache "$cache_file"$$ && | |
17885 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17886 | *) | |
17887 | mv -f confcache "$cache_file" ;; | |
17888 | esac | |
17889 | fi | |
17890 | fi | |
42ecbf5e | 17891 | else |
81ecdfbb RW |
17892 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17893 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
42ecbf5e DJ |
17894 | fi |
17895 | fi | |
17896 | rm -f confcache | |
17897 | ||
17898 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17899 | # Let make expand exec_prefix. | |
17900 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17901 | ||
42ecbf5e DJ |
17902 | DEFS=-DHAVE_CONFIG_H |
17903 | ||
17904 | ac_libobjs= | |
17905 | ac_ltlibobjs= | |
d0ac1c44 | 17906 | U= |
42ecbf5e DJ |
17907 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17908 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
17909 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
17910 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
17911 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
17912 | # will be set to the directory where LIBOBJS objects are built. | |
17913 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17914 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
42ecbf5e DJ |
17915 | done |
17916 | LIBOBJS=$ac_libobjs | |
17917 | ||
17918 | LTLIBOBJS=$ac_ltlibobjs | |
17919 | ||
17920 | ||
d0ac1c44 SM |
17921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
17922 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
17923 | if test -n "$am_sleep_pid"; then | |
17924 | # Hide warnings about reused PIDs. | |
17925 | wait $am_sleep_pid 2>/dev/null | |
17926 | fi | |
17927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
17928 | $as_echo "done" >&6; } | |
42ecbf5e | 17929 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
d0ac1c44 | 17930 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
81ecdfbb | 17931 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
42ecbf5e DJ |
17932 | fi |
17933 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
d0ac1c44 | 17934 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
81ecdfbb RW |
17935 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17936 | fi | |
17937 | if test -n "$EXEEXT"; then | |
17938 | am__EXEEXT_TRUE= | |
17939 | am__EXEEXT_FALSE='#' | |
17940 | else | |
17941 | am__EXEEXT_TRUE='#' | |
17942 | am__EXEEXT_FALSE= | |
42ecbf5e | 17943 | fi |
81ecdfbb | 17944 | |
64ac50ac | 17945 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
d0ac1c44 | 17946 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
64ac50ac RW |
17947 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17948 | fi | |
3cb62297 | 17949 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
d0ac1c44 | 17950 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
3cb62297 L |
17951 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17952 | fi | |
094e34f2 NA |
17953 | if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then |
17954 | as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined. | |
17955 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17956 | fi | |
42ecbf5e | 17957 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
d0ac1c44 | 17958 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
81ecdfbb | 17959 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
42ecbf5e | 17960 | fi |
d5fbea21 | 17961 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
d0ac1c44 | 17962 | as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined. |
81ecdfbb | 17963 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
d5fbea21 | 17964 | fi |
42ecbf5e | 17965 | |
d0ac1c44 | 17966 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 17967 | ac_write_fail=0 |
42ecbf5e DJ |
17968 | ac_clean_files_save=$ac_clean_files |
17969 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
17970 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17971 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17972 | as_write_fail=0 | |
17973 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
42ecbf5e DJ |
17974 | #! $SHELL |
17975 | # Generated by $as_me. | |
17976 | # Run this file to recreate the current configuration. | |
17977 | # Compiler output produced by configure, useful for debugging | |
17978 | # configure, is in config.log if it exists. | |
17979 | ||
17980 | debug=false | |
17981 | ac_cs_recheck=false | |
17982 | ac_cs_silent=false | |
42ecbf5e | 17983 | |
81ecdfbb RW |
17984 | SHELL=\${CONFIG_SHELL-$SHELL} |
17985 | export SHELL | |
17986 | _ASEOF | |
17987 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
17988 | ## -------------------- ## | |
17989 | ## M4sh Initialization. ## | |
17990 | ## -------------------- ## | |
42ecbf5e | 17991 | |
81ecdfbb RW |
17992 | # Be more Bourne compatible |
17993 | DUALCASE=1; export DUALCASE # for MKS sh | |
17994 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
42ecbf5e DJ |
17995 | emulate sh |
17996 | NULLCMD=: | |
81ecdfbb | 17997 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
42ecbf5e DJ |
17998 | # is contrary to our usage. Disable this feature. |
17999 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
18000 | setopt NO_GLOB_SUBST |
18001 | else | |
18002 | case `(set -o) 2>/dev/null` in #( | |
18003 | *posix*) : | |
18004 | set -o posix ;; #( | |
18005 | *) : | |
18006 | ;; | |
18007 | esac | |
42ecbf5e | 18008 | fi |
42ecbf5e | 18009 | |
81ecdfbb RW |
18010 | |
18011 | as_nl=' | |
18012 | ' | |
18013 | export as_nl | |
18014 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18015 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18016 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18017 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18018 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18019 | # but without wasting forks for bash or zsh. | |
18020 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18021 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18022 | as_echo='print -r --' | |
18023 | as_echo_n='print -rn --' | |
18024 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18025 | as_echo='printf %s\n' | |
18026 | as_echo_n='printf %s' | |
18027 | else | |
18028 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18029 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18030 | as_echo_n='/usr/ucb/echo -n' | |
18031 | else | |
18032 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18033 | as_echo_n_body='eval | |
18034 | arg=$1; | |
18035 | case $arg in #( | |
18036 | *"$as_nl"*) | |
18037 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18038 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18039 | esac; | |
18040 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18041 | ' | |
18042 | export as_echo_n_body | |
18043 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18044 | fi | |
18045 | export as_echo_body | |
18046 | as_echo='sh -c $as_echo_body as_echo' | |
18047 | fi | |
18048 | ||
18049 | # The user is always right. | |
18050 | if test "${PATH_SEPARATOR+set}" != set; then | |
18051 | PATH_SEPARATOR=: | |
18052 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18053 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18054 | PATH_SEPARATOR=';' | |
18055 | } | |
42ecbf5e DJ |
18056 | fi |
18057 | ||
18058 | ||
81ecdfbb RW |
18059 | # IFS |
18060 | # We need space, tab and new line, in precisely that order. Quoting is | |
18061 | # there to prevent editors from complaining about space-tab. | |
18062 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18063 | # splitting by setting IFS to empty value.) | |
18064 | IFS=" "" $as_nl" | |
18065 | ||
18066 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 18067 | as_myself= |
81ecdfbb RW |
18068 | case $0 in #(( |
18069 | *[\\/]* ) as_myself=$0 ;; | |
18070 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18071 | for as_dir in $PATH | |
18072 | do | |
18073 | IFS=$as_save_IFS | |
18074 | test -z "$as_dir" && as_dir=. | |
18075 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18076 | done | |
18077 | IFS=$as_save_IFS | |
18078 | ||
18079 | ;; | |
18080 | esac | |
18081 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18082 | # in which case we are not to be found in the path. | |
18083 | if test "x$as_myself" = x; then | |
18084 | as_myself=$0 | |
18085 | fi | |
18086 | if test ! -f "$as_myself"; then | |
18087 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18088 | exit 1 | |
18089 | fi | |
18090 | ||
18091 | # Unset variables that we do not need and which cause bugs (e.g. in | |
18092 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18093 | # suppresses any "Segmentation fault" message there. '((' could | |
18094 | # trigger a bug in pdksh 5.2.14. | |
18095 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18096 | do eval test x\${$as_var+set} = xset \ | |
18097 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18098 | done | |
42ecbf5e DJ |
18099 | PS1='$ ' |
18100 | PS2='> ' | |
18101 | PS4='+ ' | |
18102 | ||
18103 | # NLS nuisances. | |
81ecdfbb RW |
18104 | LC_ALL=C |
18105 | export LC_ALL | |
18106 | LANGUAGE=C | |
18107 | export LANGUAGE | |
18108 | ||
18109 | # CDPATH. | |
18110 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18111 | ||
18112 | ||
d0ac1c44 SM |
18113 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18114 | # ---------------------------------------- | |
81ecdfbb RW |
18115 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18116 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 18117 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
18118 | as_fn_error () |
18119 | { | |
d0ac1c44 SM |
18120 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18121 | if test "$4"; then | |
18122 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18123 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
42ecbf5e | 18124 | fi |
d0ac1c44 | 18125 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
18126 | as_fn_exit $as_status |
18127 | } # as_fn_error | |
18128 | ||
18129 | ||
18130 | # as_fn_set_status STATUS | |
18131 | # ----------------------- | |
18132 | # Set $? to STATUS, without forking. | |
18133 | as_fn_set_status () | |
18134 | { | |
18135 | return $1 | |
18136 | } # as_fn_set_status | |
18137 | ||
18138 | # as_fn_exit STATUS | |
18139 | # ----------------- | |
18140 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18141 | as_fn_exit () | |
18142 | { | |
18143 | set +e | |
18144 | as_fn_set_status $1 | |
18145 | exit $1 | |
18146 | } # as_fn_exit | |
18147 | ||
18148 | # as_fn_unset VAR | |
18149 | # --------------- | |
18150 | # Portably unset VAR. | |
18151 | as_fn_unset () | |
18152 | { | |
18153 | { eval $1=; unset $1;} | |
18154 | } | |
18155 | as_unset=as_fn_unset | |
18156 | # as_fn_append VAR VALUE | |
18157 | # ---------------------- | |
18158 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18159 | # advantage of any shell optimizations that allow amortized linear growth over | |
18160 | # repeated appends, instead of the typical quadratic growth present in naive | |
18161 | # implementations. | |
18162 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18163 | eval 'as_fn_append () | |
18164 | { | |
18165 | eval $1+=\$2 | |
18166 | }' | |
18167 | else | |
18168 | as_fn_append () | |
18169 | { | |
18170 | eval $1=\$$1\$2 | |
18171 | } | |
18172 | fi # as_fn_append | |
18173 | ||
18174 | # as_fn_arith ARG... | |
18175 | # ------------------ | |
18176 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18177 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18178 | # must be portable across $(()) and expr. | |
18179 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18180 | eval 'as_fn_arith () | |
18181 | { | |
18182 | as_val=$(( $* )) | |
18183 | }' | |
18184 | else | |
18185 | as_fn_arith () | |
18186 | { | |
18187 | as_val=`expr "$@" || test $? -eq 1` | |
18188 | } | |
18189 | fi # as_fn_arith | |
18190 | ||
42ecbf5e | 18191 | |
81ecdfbb RW |
18192 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18193 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
42ecbf5e DJ |
18194 | as_expr=expr |
18195 | else | |
18196 | as_expr=false | |
18197 | fi | |
18198 | ||
81ecdfbb | 18199 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
42ecbf5e DJ |
18200 | as_basename=basename |
18201 | else | |
18202 | as_basename=false | |
18203 | fi | |
18204 | ||
81ecdfbb RW |
18205 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18206 | as_dirname=dirname | |
18207 | else | |
18208 | as_dirname=false | |
18209 | fi | |
42ecbf5e | 18210 | |
81ecdfbb | 18211 | as_me=`$as_basename -- "$0" || |
42ecbf5e DJ |
18212 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18213 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18214 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
18215 | $as_echo X/"$0" | | |
18216 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18217 | s//\1/ | |
18218 | q | |
18219 | } | |
18220 | /^X\/\(\/\/\)$/{ | |
18221 | s//\1/ | |
18222 | q | |
18223 | } | |
18224 | /^X\/\(\/\).*/{ | |
18225 | s//\1/ | |
18226 | q | |
18227 | } | |
18228 | s/.*/./; q'` | |
42ecbf5e | 18229 | |
42ecbf5e DJ |
18230 | # Avoid depending upon Character Ranges. |
18231 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18232 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18233 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18234 | as_cr_digits='0123456789' | |
18235 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18236 | ||
81ecdfbb RW |
18237 | ECHO_C= ECHO_N= ECHO_T= |
18238 | case `echo -n x` in #((((( | |
18239 | -n*) | |
18240 | case `echo 'xy\c'` in | |
18241 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18242 | xy) ECHO_C='\c';; | |
18243 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18244 | ECHO_T=' ';; | |
18245 | esac;; | |
18246 | *) | |
18247 | ECHO_N='-n';; | |
42ecbf5e | 18248 | esac |
252b5132 | 18249 | |
81ecdfbb RW |
18250 | rm -f conf$$ conf$$.exe conf$$.file |
18251 | if test -d conf$$.dir; then | |
18252 | rm -f conf$$.dir/conf$$.file | |
42ecbf5e | 18253 | else |
81ecdfbb RW |
18254 | rm -f conf$$.dir |
18255 | mkdir conf$$.dir 2>/dev/null | |
42ecbf5e | 18256 | fi |
81ecdfbb RW |
18257 | if (echo >conf$$.file) 2>/dev/null; then |
18258 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42ecbf5e | 18259 | as_ln_s='ln -s' |
81ecdfbb RW |
18260 | # ... but there are two gotchas: |
18261 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18262 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 18263 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 18264 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 18265 | as_ln_s='cp -pR' |
81ecdfbb RW |
18266 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18267 | as_ln_s=ln | |
18268 | else | |
d0ac1c44 | 18269 | as_ln_s='cp -pR' |
252b5132 | 18270 | fi |
e5a52504 | 18271 | else |
d0ac1c44 | 18272 | as_ln_s='cp -pR' |
e5a52504 | 18273 | fi |
81ecdfbb RW |
18274 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18275 | rmdir conf$$.dir 2>/dev/null | |
18276 | ||
18277 | ||
18278 | # as_fn_mkdir_p | |
18279 | # ------------- | |
18280 | # Create "$as_dir" as a directory, including parents if necessary. | |
18281 | as_fn_mkdir_p () | |
18282 | { | |
18283 | ||
18284 | case $as_dir in #( | |
18285 | -*) as_dir=./$as_dir;; | |
18286 | esac | |
18287 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18288 | as_dirs= | |
18289 | while :; do | |
18290 | case $as_dir in #( | |
18291 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18292 | *) as_qdir=$as_dir;; | |
18293 | esac | |
18294 | as_dirs="'$as_qdir' $as_dirs" | |
18295 | as_dir=`$as_dirname -- "$as_dir" || | |
18296 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18297 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18298 | X"$as_dir" : 'X\(//\)$' \| \ | |
18299 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18300 | $as_echo X"$as_dir" | | |
18301 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18302 | s//\1/ | |
18303 | q | |
18304 | } | |
18305 | /^X\(\/\/\)[^/].*/{ | |
18306 | s//\1/ | |
18307 | q | |
18308 | } | |
18309 | /^X\(\/\/\)$/{ | |
18310 | s//\1/ | |
18311 | q | |
18312 | } | |
18313 | /^X\(\/\).*/{ | |
18314 | s//\1/ | |
18315 | q | |
18316 | } | |
18317 | s/.*/./; q'` | |
18318 | test -d "$as_dir" && break | |
18319 | done | |
18320 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 18321 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb | 18322 | |
252b5132 | 18323 | |
81ecdfbb | 18324 | } # as_fn_mkdir_p |
42ecbf5e | 18325 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 18326 | as_mkdir_p='mkdir -p "$as_dir"' |
42ecbf5e DJ |
18327 | else |
18328 | test -d ./-p && rmdir ./-p | |
18329 | as_mkdir_p=false | |
18330 | fi | |
252b5132 | 18331 | |
d0ac1c44 SM |
18332 | |
18333 | # as_fn_executable_p FILE | |
18334 | # ----------------------- | |
18335 | # Test if FILE is an executable regular file. | |
18336 | as_fn_executable_p () | |
18337 | { | |
18338 | test -f "$1" && test -x "$1" | |
18339 | } # as_fn_executable_p | |
18340 | as_test_x='test -x' | |
18341 | as_executable_p=as_fn_executable_p | |
252b5132 | 18342 | |
42ecbf5e DJ |
18343 | # Sed expression to map a string onto a valid CPP name. |
18344 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
f234d5fe | 18345 | |
42ecbf5e DJ |
18346 | # Sed expression to map a string onto a valid variable name. |
18347 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
e5a52504 | 18348 | |
e5a52504 | 18349 | |
42ecbf5e | 18350 | exec 6>&1 |
81ecdfbb RW |
18351 | ## ----------------------------------- ## |
18352 | ## Main body of $CONFIG_STATUS script. ## | |
18353 | ## ----------------------------------- ## | |
18354 | _ASEOF | |
18355 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
e5a52504 | 18356 | |
81ecdfbb RW |
18357 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18358 | # Save the log message, to keep $0 and so on meaningful, and to | |
42ecbf5e | 18359 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
18360 | # values after options handling. |
18361 | ac_log=" | |
b19d852d | 18362 | This file was extended by ld $as_me 2.35.50, which was |
d0ac1c44 | 18363 | generated by GNU Autoconf 2.69. Invocation command line was |
42ecbf5e DJ |
18364 | |
18365 | CONFIG_FILES = $CONFIG_FILES | |
18366 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18367 | CONFIG_LINKS = $CONFIG_LINKS | |
18368 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18369 | $ $0 $@ | |
e5a52504 | 18370 | |
81ecdfbb RW |
18371 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18372 | " | |
18373 | ||
42ecbf5e DJ |
18374 | _ACEOF |
18375 | ||
81ecdfbb RW |
18376 | case $ac_config_files in *" |
18377 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18378 | esac | |
e5a52504 | 18379 | |
81ecdfbb RW |
18380 | case $ac_config_headers in *" |
18381 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18382 | esac | |
42ecbf5e | 18383 | |
42ecbf5e | 18384 | |
81ecdfbb RW |
18385 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18386 | # Files that config.status was made for. | |
18387 | config_files="$ac_config_files" | |
18388 | config_headers="$ac_config_headers" | |
18389 | config_commands="$ac_config_commands" | |
42ecbf5e | 18390 | |
81ecdfbb | 18391 | _ACEOF |
42ecbf5e | 18392 | |
81ecdfbb | 18393 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 18394 | ac_cs_usage="\ |
81ecdfbb RW |
18395 | \`$as_me' instantiates files and other configuration actions |
18396 | from templates according to the current configuration. Unless the files | |
18397 | and actions are specified as TAGs, all are instantiated by default. | |
42ecbf5e | 18398 | |
81ecdfbb | 18399 | Usage: $0 [OPTION]... [TAG]... |
42ecbf5e DJ |
18400 | |
18401 | -h, --help print this help, then exit | |
81ecdfbb | 18402 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 18403 | --config print configuration, then exit |
81ecdfbb RW |
18404 | -q, --quiet, --silent |
18405 | do not print progress messages | |
42ecbf5e DJ |
18406 | -d, --debug don't remove temporary files |
18407 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
18408 | --file=FILE[:TEMPLATE] |
18409 | instantiate the configuration file FILE | |
18410 | --header=FILE[:TEMPLATE] | |
18411 | instantiate the configuration header FILE | |
42ecbf5e DJ |
18412 | |
18413 | Configuration files: | |
18414 | $config_files | |
18415 | ||
18416 | Configuration headers: | |
18417 | $config_headers | |
18418 | ||
18419 | Configuration commands: | |
18420 | $config_commands | |
18421 | ||
81ecdfbb | 18422 | Report bugs to the package provider." |
42ecbf5e | 18423 | |
81ecdfbb RW |
18424 | _ACEOF |
18425 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 18426 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
42ecbf5e | 18427 | ac_cs_version="\\ |
b19d852d | 18428 | ld config.status 2.35.50 |
d0ac1c44 SM |
18429 | configured by $0, generated by GNU Autoconf 2.69, |
18430 | with options \\"\$ac_cs_config\\" | |
42ecbf5e | 18431 | |
d0ac1c44 | 18432 | Copyright (C) 2012 Free Software Foundation, Inc. |
42ecbf5e DJ |
18433 | This config.status script is free software; the Free Software Foundation |
18434 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
18435 | |
18436 | ac_pwd='$ac_pwd' | |
18437 | srcdir='$srcdir' | |
18438 | INSTALL='$INSTALL' | |
18439 | MKDIR_P='$MKDIR_P' | |
18440 | AWK='$AWK' | |
18441 | test -n "\$AWK" || AWK=awk | |
42ecbf5e DJ |
18442 | _ACEOF |
18443 | ||
81ecdfbb RW |
18444 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18445 | # The default lists apply if the user does not specify any file. | |
42ecbf5e DJ |
18446 | ac_need_defaults=: |
18447 | while test $# != 0 | |
18448 | do | |
18449 | case $1 in | |
d0ac1c44 | 18450 | --*=?*) |
81ecdfbb RW |
18451 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18452 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
42ecbf5e | 18453 | ac_shift=: |
252b5132 | 18454 | ;; |
d0ac1c44 SM |
18455 | --*=) |
18456 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18457 | ac_optarg= | |
18458 | ac_shift=: | |
18459 | ;; | |
81ecdfbb | 18460 | *) |
42ecbf5e DJ |
18461 | ac_option=$1 |
18462 | ac_optarg=$2 | |
18463 | ac_shift=shift | |
252b5132 | 18464 | ;; |
42ecbf5e | 18465 | esac |
252b5132 | 18466 | |
42ecbf5e DJ |
18467 | case $ac_option in |
18468 | # Handling of the options. | |
42ecbf5e DJ |
18469 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18470 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
18471 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
18472 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
18473 | --config | --confi | --conf | --con | --co | --c ) |
18474 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 18475 | --debug | --debu | --deb | --de | --d | -d ) |
42ecbf5e DJ |
18476 | debug=: ;; |
18477 | --file | --fil | --fi | --f ) | |
18478 | $ac_shift | |
81ecdfbb RW |
18479 | case $ac_optarg in |
18480 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 18481 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
18482 | esac |
18483 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
42ecbf5e DJ |
18484 | ac_need_defaults=false;; |
18485 | --header | --heade | --head | --hea ) | |
18486 | $ac_shift | |
81ecdfbb RW |
18487 | case $ac_optarg in |
18488 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18489 | esac | |
18490 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
42ecbf5e | 18491 | ac_need_defaults=false;; |
81ecdfbb RW |
18492 | --he | --h) |
18493 | # Conflict between --help and --header | |
d0ac1c44 | 18494 | as_fn_error $? "ambiguous option: \`$1' |
81ecdfbb RW |
18495 | Try \`$0 --help' for more information.";; |
18496 | --help | --hel | -h ) | |
18497 | $as_echo "$ac_cs_usage"; exit ;; | |
42ecbf5e DJ |
18498 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18499 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18500 | ac_cs_silent=: ;; | |
252b5132 | 18501 | |
42ecbf5e | 18502 | # This is an error. |
d0ac1c44 | 18503 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 18504 | Try \`$0 --help' for more information." ;; |
252b5132 | 18505 | |
81ecdfbb RW |
18506 | *) as_fn_append ac_config_targets " $1" |
18507 | ac_need_defaults=false ;; | |
252b5132 | 18508 | |
42ecbf5e DJ |
18509 | esac |
18510 | shift | |
18511 | done | |
d15b04bd | 18512 | |
42ecbf5e | 18513 | ac_configure_extra_args= |
e5a52504 | 18514 | |
42ecbf5e DJ |
18515 | if $ac_cs_silent; then |
18516 | exec 6>/dev/null | |
18517 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18518 | fi | |
e5a52504 | 18519 | |
42ecbf5e | 18520 | _ACEOF |
81ecdfbb | 18521 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
42ecbf5e | 18522 | if \$ac_cs_recheck; then |
d0ac1c44 | 18523 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
18524 | shift |
18525 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18526 | CONFIG_SHELL='$SHELL' | |
18527 | export CONFIG_SHELL | |
18528 | exec "\$@" | |
42ecbf5e DJ |
18529 | fi |
18530 | ||
18531 | _ACEOF | |
81ecdfbb RW |
18532 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18533 | exec 5>>config.log | |
18534 | { | |
18535 | echo | |
18536 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18537 | ## Running $as_me. ## | |
18538 | _ASBOX | |
18539 | $as_echo "$ac_log" | |
18540 | } >&5 | |
42ecbf5e | 18541 | |
81ecdfbb RW |
18542 | _ACEOF |
18543 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
252b5132 | 18544 | # |
81ecdfbb | 18545 | # INIT-COMMANDS |
252b5132 | 18546 | # |
42ecbf5e | 18547 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
18548 | |
18549 | ||
18550 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18551 | # if CDPATH is set. | |
18552 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18553 | ||
18554 | sed_quote_subst='$sed_quote_subst' | |
18555 | double_quote_subst='$double_quote_subst' | |
18556 | delay_variable_subst='$delay_variable_subst' | |
3725885a RW |
18557 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
18558 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
18559 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
18560 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
18561 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
18562 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
18563 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
18564 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
18565 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
18566 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
18567 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
18568 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
18569 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
18570 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
18571 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
18572 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
18573 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
18574 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
18575 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
18576 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
18577 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
18578 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
18579 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
18580 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
18581 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
18582 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
18583 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
18584 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
18585 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
18586 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
18587 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
18588 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
18589 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
18590 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
18591 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
18592 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
18593 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
18594 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18595 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18596 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18597 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
18598 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
18599 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
18600 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
18601 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
18602 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
18603 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
18604 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
18605 | 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"`' | |
18606 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
18607 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
18608 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
18609 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
18610 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
18611 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
18612 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
18613 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
18614 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
18615 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
18616 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
18617 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
18618 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
18619 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
18620 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
18621 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18622 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
18623 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
18624 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18625 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18626 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
18627 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
18628 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18629 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18630 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18631 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
18632 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18633 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
18634 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18635 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18636 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18637 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
18638 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
18639 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
18640 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
18641 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
18642 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18643 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
18644 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
18645 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
18646 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
18647 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
18648 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
18649 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
18650 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
18651 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
18652 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18653 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
18654 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18655 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
18656 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
18657 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
18658 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18659 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
18660 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
18661 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
18662 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
18663 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
18664 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18665 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18666 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
18667 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
18668 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
18669 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
18670 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
18671 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
18672 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
18673 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
18674 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
18675 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
18676 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
3cb62297 L |
18677 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
18678 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
18679 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
18680 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
18681 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
18682 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
18683 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
18684 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18685 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18686 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18687 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
18688 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
18689 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18690 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
18691 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
18692 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
18693 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
18694 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
18695 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
18696 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18697 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18698 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
18699 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18700 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18701 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18702 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18703 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18704 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18705 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
18706 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18707 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18708 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18709 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
18710 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' | |
18711 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
18712 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
18713 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
18714 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
18715 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
18716 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
18717 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
18718 | fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' | |
18719 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
18720 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18721 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
18722 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
18723 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18724 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18725 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
18726 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
18727 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
18728 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
18729 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
18730 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
18731 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
d7040cdb SE |
18732 | |
18733 | LTCC='$LTCC' | |
18734 | LTCFLAGS='$LTCFLAGS' | |
18735 | compiler='$compiler_DEFAULT' | |
18736 | ||
3725885a RW |
18737 | # A function that is used when there is no print builtin or printf. |
18738 | func_fallback_echo () | |
18739 | { | |
18740 | eval 'cat <<_LTECHO_EOF | |
18741 | \$1 | |
18742 | _LTECHO_EOF' | |
18743 | } | |
18744 | ||
d7040cdb | 18745 | # Quote evaled strings. |
3725885a RW |
18746 | for var in SHELL \ |
18747 | ECHO \ | |
18748 | SED \ | |
d7040cdb SE |
18749 | GREP \ |
18750 | EGREP \ | |
18751 | FGREP \ | |
18752 | LD \ | |
18753 | NM \ | |
18754 | LN_S \ | |
18755 | lt_SP2NL \ | |
18756 | lt_NL2SP \ | |
18757 | reload_flag \ | |
b214d478 | 18758 | OBJDUMP \ |
d7040cdb SE |
18759 | deplibs_check_method \ |
18760 | file_magic_cmd \ | |
18761 | AR \ | |
18762 | AR_FLAGS \ | |
18763 | STRIP \ | |
18764 | RANLIB \ | |
18765 | CC \ | |
18766 | CFLAGS \ | |
18767 | compiler \ | |
18768 | lt_cv_sys_global_symbol_pipe \ | |
18769 | lt_cv_sys_global_symbol_to_cdecl \ | |
18770 | lt_cv_sys_global_symbol_to_c_name_address \ | |
b214d478 | 18771 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
18772 | lt_prog_compiler_no_builtin_flag \ |
18773 | lt_prog_compiler_wl \ | |
18774 | lt_prog_compiler_pic \ | |
18775 | lt_prog_compiler_static \ | |
18776 | lt_cv_prog_compiler_c_o \ | |
18777 | need_locks \ | |
b214d478 SE |
18778 | DSYMUTIL \ |
18779 | NMEDIT \ | |
18780 | LIPO \ | |
18781 | OTOOL \ | |
18782 | OTOOL64 \ | |
d7040cdb SE |
18783 | shrext_cmds \ |
18784 | export_dynamic_flag_spec \ | |
18785 | whole_archive_flag_spec \ | |
18786 | compiler_needs_object \ | |
18787 | with_gnu_ld \ | |
18788 | allow_undefined_flag \ | |
18789 | no_undefined_flag \ | |
18790 | hardcode_libdir_flag_spec \ | |
18791 | hardcode_libdir_flag_spec_ld \ | |
18792 | hardcode_libdir_separator \ | |
18793 | fix_srcfile_path \ | |
18794 | exclude_expsyms \ | |
18795 | include_expsyms \ | |
18796 | file_list_spec \ | |
18797 | variables_saved_for_relink \ | |
18798 | libname_spec \ | |
18799 | library_names_spec \ | |
18800 | soname_spec \ | |
3725885a | 18801 | install_override_mode \ |
d7040cdb SE |
18802 | finish_eval \ |
18803 | old_striplib \ | |
3cb62297 L |
18804 | striplib \ |
18805 | compiler_lib_search_dirs \ | |
18806 | predep_objects \ | |
18807 | postdep_objects \ | |
18808 | predeps \ | |
18809 | postdeps \ | |
18810 | compiler_lib_search_path \ | |
18811 | LD_CXX \ | |
18812 | reload_flag_CXX \ | |
18813 | compiler_CXX \ | |
18814 | lt_prog_compiler_no_builtin_flag_CXX \ | |
18815 | lt_prog_compiler_wl_CXX \ | |
18816 | lt_prog_compiler_pic_CXX \ | |
18817 | lt_prog_compiler_static_CXX \ | |
18818 | lt_cv_prog_compiler_c_o_CXX \ | |
18819 | export_dynamic_flag_spec_CXX \ | |
18820 | whole_archive_flag_spec_CXX \ | |
18821 | compiler_needs_object_CXX \ | |
18822 | with_gnu_ld_CXX \ | |
18823 | allow_undefined_flag_CXX \ | |
18824 | no_undefined_flag_CXX \ | |
18825 | hardcode_libdir_flag_spec_CXX \ | |
18826 | hardcode_libdir_flag_spec_ld_CXX \ | |
18827 | hardcode_libdir_separator_CXX \ | |
18828 | fix_srcfile_path_CXX \ | |
18829 | exclude_expsyms_CXX \ | |
18830 | include_expsyms_CXX \ | |
18831 | file_list_spec_CXX \ | |
18832 | compiler_lib_search_dirs_CXX \ | |
18833 | predep_objects_CXX \ | |
18834 | postdep_objects_CXX \ | |
18835 | predeps_CXX \ | |
18836 | postdeps_CXX \ | |
18837 | compiler_lib_search_path_CXX; do | |
3725885a | 18838 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 18839 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 18840 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
18841 | ;; |
18842 | *) | |
18843 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18844 | ;; | |
18845 | esac | |
18846 | done | |
18847 | ||
18848 | # Double-quote double-evaled strings. | |
18849 | for var in reload_cmds \ | |
18850 | old_postinstall_cmds \ | |
18851 | old_postuninstall_cmds \ | |
18852 | old_archive_cmds \ | |
18853 | extract_expsyms_cmds \ | |
18854 | old_archive_from_new_cmds \ | |
18855 | old_archive_from_expsyms_cmds \ | |
18856 | archive_cmds \ | |
18857 | archive_expsym_cmds \ | |
18858 | module_cmds \ | |
18859 | module_expsym_cmds \ | |
18860 | export_symbols_cmds \ | |
18861 | prelink_cmds \ | |
18862 | postinstall_cmds \ | |
18863 | postuninstall_cmds \ | |
18864 | finish_cmds \ | |
18865 | sys_lib_search_path_spec \ | |
3cb62297 L |
18866 | sys_lib_dlsearch_path_spec \ |
18867 | reload_cmds_CXX \ | |
18868 | old_archive_cmds_CXX \ | |
18869 | old_archive_from_new_cmds_CXX \ | |
18870 | old_archive_from_expsyms_cmds_CXX \ | |
18871 | archive_cmds_CXX \ | |
18872 | archive_expsym_cmds_CXX \ | |
18873 | module_cmds_CXX \ | |
18874 | module_expsym_cmds_CXX \ | |
18875 | export_symbols_cmds_CXX \ | |
18876 | prelink_cmds_CXX; do | |
3725885a | 18877 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 18878 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 18879 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
18880 | ;; |
18881 | *) | |
18882 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18883 | ;; | |
18884 | esac | |
18885 | done | |
18886 | ||
d7040cdb SE |
18887 | ac_aux_dir='$ac_aux_dir' |
18888 | xsi_shell='$xsi_shell' | |
18889 | lt_shell_append='$lt_shell_append' | |
18890 | ||
18891 | # See if we are running on zsh, and set the options which allow our | |
18892 | # commands through without removal of \ escapes INIT. | |
18893 | if test -n "\${ZSH_VERSION+set}" ; then | |
18894 | setopt NO_GLOB_SUBST | |
18895 | fi | |
18896 | ||
18897 | ||
18898 | PACKAGE='$PACKAGE' | |
18899 | VERSION='$VERSION' | |
18900 | TIMESTAMP='$TIMESTAMP' | |
18901 | RM='$RM' | |
18902 | ofile='$ofile' | |
18903 | ||
18904 | ||
18905 | ||
3cb62297 L |
18906 | |
18907 | ||
20e95c23 DJ |
18908 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
18909 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
18910 | # from automake. | |
18911 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
18912 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
18913 | LINGUAS="${LINGUAS-%UNSET%}" | |
18914 | ||
42ecbf5e | 18915 | |
33589acb | 18916 | |
42ecbf5e DJ |
18917 | _ACEOF |
18918 | ||
81ecdfbb | 18919 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 18920 | |
81ecdfbb | 18921 | # Handling of arguments. |
42ecbf5e | 18922 | for ac_config_target in $ac_config_targets |
252b5132 | 18923 | do |
81ecdfbb RW |
18924 | case $ac_config_target in |
18925 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
81ecdfbb | 18926 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
b879806f | 18927 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
81ecdfbb | 18928 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
33589acb | 18929 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
81ecdfbb RW |
18930 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
18931 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
18932 | ||
d0ac1c44 | 18933 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
252b5132 RH |
18934 | esac |
18935 | done | |
18936 | ||
81ecdfbb | 18937 | |
42ecbf5e DJ |
18938 | # If the user did not use the arguments to specify the items to instantiate, |
18939 | # then the envvar interface is used. Set only those that are not. | |
18940 | # We use the long form for the default assignment because of an extremely | |
18941 | # bizarre bug on SunOS 4.1.3. | |
18942 | if $ac_need_defaults; then | |
18943 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18944 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
18945 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
18946 | fi | |
18947 | ||
18948 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 18949 | # simply because there is no reason against having it here, and in addition, |
42ecbf5e | 18950 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
18951 | # Hook for its removal unless debugging. |
18952 | # Note that there is a small window in which the directory will not be cleaned: | |
18953 | # after its creation but before its name has been assigned to `$tmp'. | |
42ecbf5e DJ |
18954 | $debug || |
18955 | { | |
d0ac1c44 | 18956 | tmp= ac_tmp= |
81ecdfbb | 18957 | trap 'exit_status=$? |
d0ac1c44 SM |
18958 | : "${ac_tmp:=$tmp}" |
18959 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
18960 | ' 0 |
18961 | trap 'as_fn_exit 1' 1 2 13 15 | |
42ecbf5e | 18962 | } |
42ecbf5e | 18963 | # Create a (secure) tmp directory for tmp files. |
e5a52504 | 18964 | |
42ecbf5e | 18965 | { |
81ecdfbb | 18966 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 18967 | test -d "$tmp" |
42ecbf5e DJ |
18968 | } || |
18969 | { | |
81ecdfbb RW |
18970 | tmp=./conf$$-$RANDOM |
18971 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
18972 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
18973 | ac_tmp=$tmp | |
81ecdfbb RW |
18974 | |
18975 | # Set up the scripts for CONFIG_FILES section. | |
18976 | # No need to generate them if there are no CONFIG_FILES. | |
18977 | # This happens for instance with `./config.status config.h'. | |
18978 | if test -n "$CONFIG_FILES"; then | |
18979 | ||
50ff67e6 | 18980 | |
81ecdfbb RW |
18981 | ac_cr=`echo X | tr X '\015'` |
18982 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18983 | # But we know of no other shell where ac_cr would be empty at this | |
18984 | # point, so we can use a bashism as a fallback. | |
18985 | if test "x$ac_cr" = x; then | |
18986 | eval ac_cr=\$\'\\r\' | |
18987 | fi | |
18988 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18989 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 18990 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
18991 | else |
18992 | ac_cs_awk_cr=$ac_cr | |
18993 | fi | |
18994 | ||
d0ac1c44 | 18995 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
18996 | _ACEOF |
18997 | ||
e5a52504 | 18998 | |
81ecdfbb RW |
18999 | { |
19000 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19001 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19002 | echo "_ACEOF" | |
19003 | } >conf$$subs.sh || | |
d0ac1c44 SM |
19004 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
19005 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
19006 | ac_delim='%!_!# ' |
19007 | for ac_last_try in false false false false false :; do | |
19008 | . ./conf$$subs.sh || | |
d0ac1c44 | 19009 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
19010 | |
19011 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19012 | if test $ac_delim_n = $ac_delim_num; then | |
19013 | break | |
19014 | elif $ac_last_try; then | |
d0ac1c44 | 19015 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
19016 | else |
19017 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19018 | fi | |
19019 | done | |
19020 | rm -f conf$$subs.sh | |
19021 | ||
19022 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 19023 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
19024 | _ACEOF |
19025 | sed -n ' | |
19026 | h | |
19027 | s/^/S["/; s/!.*/"]=/ | |
19028 | p | |
19029 | g | |
19030 | s/^[^!]*!// | |
19031 | :repl | |
19032 | t repl | |
19033 | s/'"$ac_delim"'$// | |
19034 | t delim | |
19035 | :nl | |
19036 | h | |
d0ac1c44 | 19037 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
19038 | t more1 |
19039 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19040 | p | |
19041 | n | |
19042 | b repl | |
19043 | :more1 | |
19044 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19045 | p | |
19046 | g | |
19047 | s/.\{148\}// | |
19048 | t nl | |
19049 | :delim | |
19050 | h | |
d0ac1c44 | 19051 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
19052 | t more2 |
19053 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19054 | p | |
19055 | b | |
19056 | :more2 | |
19057 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19058 | p | |
19059 | g | |
19060 | s/.\{148\}// | |
19061 | t delim | |
19062 | ' <conf$$subs.awk | sed ' | |
19063 | /^[^""]/{ | |
19064 | N | |
19065 | s/\n// | |
19066 | } | |
19067 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19068 | rm -f conf$$subs.awk | |
19069 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19070 | _ACAWK | |
d0ac1c44 | 19071 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
19072 | for (key in S) S_is_set[key] = 1 |
19073 | FS = "\a" | |
50ff67e6 | 19074 | |
81ecdfbb RW |
19075 | } |
19076 | { | |
19077 | line = $ 0 | |
19078 | nfields = split(line, field, "@") | |
19079 | substed = 0 | |
19080 | len = length(field[1]) | |
19081 | for (i = 2; i < nfields; i++) { | |
19082 | key = field[i] | |
19083 | keylen = length(key) | |
19084 | if (S_is_set[key]) { | |
19085 | value = S[key] | |
19086 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19087 | len += length(value) + length(field[++i]) | |
19088 | substed = 1 | |
19089 | } else | |
19090 | len += 1 + keylen | |
19091 | } | |
50ff67e6 | 19092 | |
81ecdfbb RW |
19093 | print line |
19094 | } | |
50ff67e6 | 19095 | |
81ecdfbb RW |
19096 | _ACAWK |
19097 | _ACEOF | |
19098 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19099 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19100 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19101 | else | |
19102 | cat | |
d0ac1c44 SM |
19103 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19104 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
42ecbf5e | 19105 | _ACEOF |
d15b04bd | 19106 | |
d0ac1c44 SM |
19107 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19108 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
19109 | # trailing colons and then remove the whole line if VPATH becomes empty |
19110 | # (actually we leave an empty line to preserve line numbers). | |
19111 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
19112 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19113 | h | |
19114 | s/// | |
19115 | s/^/:/ | |
19116 | s/[ ]*$/:/ | |
19117 | s/:\$(srcdir):/:/g | |
19118 | s/:\${srcdir}:/:/g | |
19119 | s/:@srcdir@:/:/g | |
19120 | s/^:*// | |
81ecdfbb | 19121 | s/:*$// |
d0ac1c44 SM |
19122 | x |
19123 | s/\(=[ ]*\).*/\1/ | |
19124 | G | |
19125 | s/\n// | |
81ecdfbb RW |
19126 | s/^[^=]*=[ ]*$// |
19127 | }' | |
19128 | fi | |
19129 | ||
19130 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19131 | fi # test -n "$CONFIG_FILES" | |
42ecbf5e | 19132 | |
81ecdfbb RW |
19133 | # Set up the scripts for CONFIG_HEADERS section. |
19134 | # No need to generate them if there are no CONFIG_HEADERS. | |
19135 | # This happens for instance with `./config.status Makefile'. | |
19136 | if test -n "$CONFIG_HEADERS"; then | |
d0ac1c44 | 19137 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
81ecdfbb RW |
19138 | BEGIN { |
19139 | _ACEOF | |
42ecbf5e | 19140 | |
81ecdfbb RW |
19141 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
19142 | # here-document in config.status, that substitutes the proper values into | |
19143 | # config.h.in to produce config.h. | |
252b5132 | 19144 | |
81ecdfbb RW |
19145 | # Create a delimiter string that does not exist in confdefs.h, to ease |
19146 | # handling of long lines. | |
19147 | ac_delim='%!_!# ' | |
19148 | for ac_last_try in false false :; do | |
d0ac1c44 SM |
19149 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
19150 | if test -z "$ac_tt"; then | |
81ecdfbb RW |
19151 | break |
19152 | elif $ac_last_try; then | |
d0ac1c44 | 19153 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
81ecdfbb RW |
19154 | else |
19155 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19156 | fi | |
19157 | done | |
19158 | ||
19159 | # For the awk script, D is an array of macro values keyed by name, | |
19160 | # likewise P contains macro parameters if any. Preserve backslash | |
19161 | # newline sequences. | |
19162 | ||
19163 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
19164 | sed -n ' | |
19165 | s/.\{148\}/&'"$ac_delim"'/g | |
19166 | t rset | |
19167 | :rset | |
19168 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
19169 | t def | |
19170 | d | |
19171 | :def | |
19172 | s/\\$// | |
19173 | t bsnl | |
19174 | s/["\\]/\\&/g | |
19175 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19176 | D["\1"]=" \3"/p | |
19177 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
19178 | d | |
19179 | :bsnl | |
19180 | s/["\\]/\\&/g | |
19181 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19182 | D["\1"]=" \3\\\\\\n"\\/p | |
19183 | t cont | |
19184 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
19185 | t cont | |
19186 | d | |
19187 | :cont | |
19188 | n | |
19189 | s/.\{148\}/&'"$ac_delim"'/g | |
19190 | t clear | |
19191 | :clear | |
19192 | s/\\$// | |
19193 | t bsnlc | |
19194 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
19195 | d | |
19196 | :bsnlc | |
19197 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
19198 | b cont | |
19199 | ' <confdefs.h | sed ' | |
19200 | s/'"$ac_delim"'/"\\\ | |
19201 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
19202 | ||
19203 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19204 | for (key in D) D_is_set[key] = 1 | |
19205 | FS = "\a" | |
19206 | } | |
19207 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
19208 | line = \$ 0 | |
19209 | split(line, arg, " ") | |
19210 | if (arg[1] == "#") { | |
19211 | defundef = arg[2] | |
19212 | mac1 = arg[3] | |
19213 | } else { | |
19214 | defundef = substr(arg[1], 2) | |
19215 | mac1 = arg[2] | |
19216 | } | |
19217 | split(mac1, mac2, "(") #) | |
19218 | macro = mac2[1] | |
19219 | prefix = substr(line, 1, index(line, defundef) - 1) | |
19220 | if (D_is_set[macro]) { | |
19221 | # Preserve the white space surrounding the "#". | |
19222 | print prefix "define", macro P[macro] D[macro] | |
19223 | next | |
19224 | } else { | |
19225 | # Replace #undef with comments. This is necessary, for example, | |
19226 | # in the case of _POSIX_SOURCE, which is predefined and required | |
19227 | # on some systems where configure will not decide to define it. | |
19228 | if (defundef == "undef") { | |
19229 | print "/*", prefix defundef, macro, "*/" | |
19230 | next | |
19231 | } | |
19232 | } | |
19233 | } | |
19234 | { print } | |
19235 | _ACAWK | |
42ecbf5e | 19236 | _ACEOF |
81ecdfbb | 19237 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d0ac1c44 | 19238 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
81ecdfbb | 19239 | fi # test -n "$CONFIG_HEADERS" |
42ecbf5e | 19240 | |
81ecdfbb RW |
19241 | |
19242 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
19243 | shift | |
19244 | for ac_tag | |
19245 | do | |
19246 | case $ac_tag in | |
19247 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19248 | esac | |
19249 | case $ac_mode$ac_tag in | |
19250 | :[FHL]*:*);; | |
d0ac1c44 | 19251 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
19252 | :[FH]-) ac_tag=-:-;; |
19253 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19254 | esac | |
19255 | ac_save_IFS=$IFS | |
19256 | IFS=: | |
19257 | set x $ac_tag | |
19258 | IFS=$ac_save_IFS | |
19259 | shift | |
19260 | ac_file=$1 | |
19261 | shift | |
19262 | ||
19263 | case $ac_mode in | |
19264 | :L) ac_source=$1;; | |
19265 | :[FH]) | |
19266 | ac_file_inputs= | |
19267 | for ac_f | |
19268 | do | |
19269 | case $ac_f in | |
d0ac1c44 | 19270 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
19271 | *) # Look for the file first in the build tree, then in the source tree |
19272 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19273 | # because $ac_f cannot contain `:'. | |
19274 | test -f "$ac_f" || | |
19275 | case $ac_f in | |
19276 | [\\/$]*) false;; | |
19277 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19278 | esac || | |
d0ac1c44 | 19279 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
19280 | esac |
19281 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19282 | as_fn_append ac_file_inputs " '$ac_f'" | |
19283 | done | |
19284 | ||
19285 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19286 | # use $as_me), people would be surprised to read: | |
19287 | # /* config.h. Generated by config.status. */ | |
19288 | configure_input='Generated from '` | |
19289 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19290 | `' by configure.' | |
19291 | if test x"$ac_file" != x-; then | |
19292 | configure_input="$ac_file. $configure_input" | |
19293 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19294 | $as_echo "$as_me: creating $ac_file" >&6;} | |
252b5132 | 19295 | fi |
81ecdfbb RW |
19296 | # Neutralize special characters interpreted by sed in replacement strings. |
19297 | case $configure_input in #( | |
19298 | *\&* | *\|* | *\\* ) | |
19299 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19300 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19301 | *) ac_sed_conf_input=$configure_input;; | |
19302 | esac | |
252b5132 | 19303 | |
81ecdfbb | 19304 | case $ac_tag in |
d0ac1c44 SM |
19305 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19306 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
19307 | esac |
19308 | ;; | |
252b5132 RH |
19309 | esac |
19310 | ||
81ecdfbb | 19311 | ac_dir=`$as_dirname -- "$ac_file" || |
42ecbf5e DJ |
19312 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19313 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19314 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
19315 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
19316 | $as_echo X"$ac_file" | | |
19317 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19318 | s//\1/ | |
19319 | q | |
19320 | } | |
19321 | /^X\(\/\/\)[^/].*/{ | |
19322 | s//\1/ | |
19323 | q | |
19324 | } | |
19325 | /^X\(\/\/\)$/{ | |
19326 | s//\1/ | |
19327 | q | |
19328 | } | |
19329 | /^X\(\/\).*/{ | |
19330 | s//\1/ | |
19331 | q | |
19332 | } | |
19333 | s/.*/./; q'` | |
19334 | as_dir="$ac_dir"; as_fn_mkdir_p | |
42ecbf5e DJ |
19335 | ac_builddir=. |
19336 | ||
81ecdfbb RW |
19337 | case "$ac_dir" in |
19338 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19339 | *) | |
19340 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19341 | # A ".." for each directory in $ac_dir_suffix. | |
19342 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19343 | case $ac_top_builddir_sub in | |
19344 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19345 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19346 | esac ;; | |
19347 | esac | |
19348 | ac_abs_top_builddir=$ac_pwd | |
19349 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19350 | # for backward compatibility: | |
19351 | ac_top_builddir=$ac_top_build_prefix | |
252b5132 | 19352 | |
42ecbf5e | 19353 | case $srcdir in |
81ecdfbb | 19354 | .) # We are building in place. |
42ecbf5e | 19355 | ac_srcdir=. |
81ecdfbb RW |
19356 | ac_top_srcdir=$ac_top_builddir_sub |
19357 | ac_abs_top_srcdir=$ac_pwd ;; | |
19358 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
42ecbf5e | 19359 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
19360 | ac_top_srcdir=$srcdir |
19361 | ac_abs_top_srcdir=$srcdir ;; | |
19362 | *) # Relative name. | |
19363 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19364 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19365 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
42ecbf5e | 19366 | esac |
81ecdfbb | 19367 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
42ecbf5e | 19368 | |
252b5132 | 19369 | |
81ecdfbb RW |
19370 | case $ac_mode in |
19371 | :F) | |
19372 | # | |
19373 | # CONFIG_FILE | |
19374 | # | |
e5a52504 | 19375 | |
42ecbf5e DJ |
19376 | case $INSTALL in |
19377 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
19378 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
19379 | esac | |
19380 | ac_MKDIR_P=$MKDIR_P | |
19381 | case $MKDIR_P in | |
19382 | [\\/$]* | ?:[\\/]* ) ;; | |
19383 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
d15b04bd | 19384 | esac |
81ecdfbb | 19385 | _ACEOF |
e5a52504 | 19386 | |
81ecdfbb RW |
19387 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19388 | # If the template does not know about datarootdir, expand it. | |
19389 | # FIXME: This hack should be removed a few years after 2.60. | |
19390 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19391 | ac_sed_dataroot=' | |
19392 | /datarootdir/ { | |
19393 | p | |
19394 | q | |
19395 | } | |
19396 | /@datadir@/p | |
19397 | /@docdir@/p | |
19398 | /@infodir@/p | |
19399 | /@localedir@/p | |
19400 | /@mandir@/p' | |
19401 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19402 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19403 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19404 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19405 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
19406 | _ACEOF | |
19407 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19408 | ac_datarootdir_hack=' | |
19409 | s&@datadir@&$datadir&g | |
19410 | s&@docdir@&$docdir&g | |
19411 | s&@infodir@&$infodir&g | |
19412 | s&@localedir@&$localedir&g | |
19413 | s&@mandir@&$mandir&g | |
19414 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19415 | esac | |
42ecbf5e | 19416 | _ACEOF |
81ecdfbb RW |
19417 | |
19418 | # Neutralize VPATH when `$srcdir' = `.'. | |
19419 | # Shell code in configure.ac might set extrasub. | |
19420 | # FIXME: do we really want to maintain this feature? | |
19421 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19422 | ac_sed_extra="$ac_vpsub | |
42ecbf5e DJ |
19423 | $extrasub |
19424 | _ACEOF | |
81ecdfbb | 19425 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e DJ |
19426 | :t |
19427 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
19428 | s|@configure_input@|$ac_sed_conf_input|;t t |
19429 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19430 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19431 | s&@srcdir@&$ac_srcdir&;t t | |
19432 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19433 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19434 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19435 | s&@builddir@&$ac_builddir&;t t | |
19436 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19437 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19438 | s&@INSTALL@&$ac_INSTALL&;t t | |
19439 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
19440 | $ac_datarootdir_hack | |
19441 | " | |
50ff67e6 | 19442 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
d0ac1c44 | 19443 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb RW |
19444 | |
19445 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
19446 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19447 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19448 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 19449 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 19450 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 19451 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 19452 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 19453 | |
d0ac1c44 | 19454 | rm -f "$ac_tmp/stdin" |
42ecbf5e | 19455 | case $ac_file in |
d0ac1c44 SM |
19456 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19457 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 19458 | esac \ |
d0ac1c44 | 19459 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb RW |
19460 | ;; |
19461 | :H) | |
19462 | # | |
19463 | # CONFIG_HEADER | |
19464 | # | |
42ecbf5e | 19465 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
19466 | { |
19467 | $as_echo "/* $configure_input */" \ | |
d0ac1c44 SM |
19468 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
19469 | } >"$ac_tmp/config.h" \ | |
19470 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19471 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
81ecdfbb RW |
19472 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
19473 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
42ecbf5e | 19474 | else |
81ecdfbb | 19475 | rm -f "$ac_file" |
d0ac1c44 SM |
19476 | mv "$ac_tmp/config.h" "$ac_file" \ |
19477 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
252b5132 | 19478 | fi |
42ecbf5e | 19479 | else |
81ecdfbb | 19480 | $as_echo "/* $configure_input */" \ |
d0ac1c44 SM |
19481 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
19482 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
e5a52504 | 19483 | fi |
81ecdfbb RW |
19484 | # Compute "$ac_file"'s index in $config_headers. |
19485 | _am_arg="$ac_file" | |
42ecbf5e DJ |
19486 | _am_stamp_count=1 |
19487 | for _am_header in $config_headers :; do | |
19488 | case $_am_header in | |
81ecdfbb | 19489 | $_am_arg | $_am_arg:* ) |
42ecbf5e DJ |
19490 | break ;; |
19491 | * ) | |
19492 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
19493 | esac | |
19494 | done | |
81ecdfbb RW |
19495 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
19496 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19497 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
19498 | X"$_am_arg" : 'X\(//\)$' \| \ | |
19499 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
19500 | $as_echo X"$_am_arg" | | |
19501 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19502 | s//\1/ | |
19503 | q | |
19504 | } | |
19505 | /^X\(\/\/\)[^/].*/{ | |
19506 | s//\1/ | |
19507 | q | |
19508 | } | |
19509 | /^X\(\/\/\)$/{ | |
19510 | s//\1/ | |
19511 | q | |
19512 | } | |
19513 | /^X\(\/\).*/{ | |
19514 | s//\1/ | |
19515 | q | |
19516 | } | |
19517 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
19518 | ;; | |
42ecbf5e | 19519 | |
81ecdfbb RW |
19520 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
19521 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19522 | ;; | |
19523 | esac | |
42ecbf5e DJ |
19524 | |
19525 | ||
81ecdfbb RW |
19526 | case $ac_file$ac_mode in |
19527 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
d0ac1c44 | 19528 | # Older Autoconf quotes --file arguments for eval, but not when files |
81ecdfbb RW |
19529 | # are listed without --file. Let's play safe and only enable the eval |
19530 | # if we detect the quoting. | |
19531 | case $CONFIG_FILES in | |
19532 | *\'*) eval set x "$CONFIG_FILES" ;; | |
19533 | *) set x $CONFIG_FILES ;; | |
19534 | esac | |
19535 | shift | |
19536 | for mf | |
19537 | do | |
19538 | # Strip MF so we end up with the name of the file. | |
19539 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
19540 | # Check whether this is an Automake generated Makefile or not. | |
d0ac1c44 | 19541 | # We used to match only the files named 'Makefile.in', but |
81ecdfbb RW |
19542 | # some people rename them; so instead we look at the file content. |
19543 | # Grep'ing the first line is not enough: some people post-process | |
19544 | # each Makefile.in and add a new line on top of each file to say so. | |
19545 | # Grep'ing the whole file is not good either: AIX grep has a line | |
19546 | # limit of 2048, but all sed's we know have understand at least 4000. | |
19547 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
19548 | dirpart=`$as_dirname -- "$mf" || | |
42ecbf5e DJ |
19549 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19550 | X"$mf" : 'X\(//\)[^/]' \| \ | |
19551 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
19552 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
19553 | $as_echo X"$mf" | | |
19554 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19555 | s//\1/ | |
19556 | q | |
19557 | } | |
19558 | /^X\(\/\/\)[^/].*/{ | |
19559 | s//\1/ | |
19560 | q | |
19561 | } | |
19562 | /^X\(\/\/\)$/{ | |
19563 | s//\1/ | |
19564 | q | |
19565 | } | |
19566 | /^X\(\/\).*/{ | |
19567 | s//\1/ | |
19568 | q | |
19569 | } | |
19570 | s/.*/./; q'` | |
19571 | else | |
19572 | continue | |
19573 | fi | |
19574 | # Extract the definition of DEPDIR, am__include, and am__quote | |
d0ac1c44 | 19575 | # from the Makefile without running 'make'. |
81ecdfbb RW |
19576 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
19577 | test -z "$DEPDIR" && continue | |
19578 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
d0ac1c44 | 19579 | test -z "$am__include" && continue |
81ecdfbb | 19580 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
81ecdfbb RW |
19581 | # Find all dependency output files, they are included files with |
19582 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
19583 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
19584 | # expansion. | |
19585 | for file in `sed -n " | |
19586 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
d0ac1c44 | 19587 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
81ecdfbb RW |
19588 | # Make sure the directory exists. |
19589 | test -f "$dirpart/$file" && continue | |
19590 | fdir=`$as_dirname -- "$file" || | |
42ecbf5e DJ |
19591 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19592 | X"$file" : 'X\(//\)[^/]' \| \ | |
19593 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
19594 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
19595 | $as_echo X"$file" | | |
19596 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19597 | s//\1/ | |
19598 | q | |
19599 | } | |
19600 | /^X\(\/\/\)[^/].*/{ | |
19601 | s//\1/ | |
19602 | q | |
19603 | } | |
19604 | /^X\(\/\/\)$/{ | |
19605 | s//\1/ | |
19606 | q | |
19607 | } | |
19608 | /^X\(\/\).*/{ | |
19609 | s//\1/ | |
19610 | q | |
19611 | } | |
19612 | s/.*/./; q'` | |
19613 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
19614 | # echo "creating $dirpart/$file" | |
19615 | echo '# dummy' > "$dirpart/$file" | |
42ecbf5e | 19616 | done |
42ecbf5e | 19617 | done |
81ecdfbb | 19618 | } |
d7040cdb | 19619 | ;; |
81ecdfbb | 19620 | "libtool":C) |
d7040cdb SE |
19621 | |
19622 | # See if we are running on zsh, and set the options which allow our | |
19623 | # commands through without removal of \ escapes. | |
19624 | if test -n "${ZSH_VERSION+set}" ; then | |
19625 | setopt NO_GLOB_SUBST | |
19626 | fi | |
19627 | ||
19628 | cfgfile="${ofile}T" | |
19629 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19630 | $RM "$cfgfile" | |
19631 | ||
19632 | cat <<_LT_EOF >> "$cfgfile" | |
19633 | #! $SHELL | |
19634 | ||
19635 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
b214d478 | 19636 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
19637 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19638 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19639 | # | |
b214d478 | 19640 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
3725885a | 19641 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
b214d478 | 19642 | # Written by Gordon Matzigkeit, 1996 |
d7040cdb | 19643 | # |
b214d478 | 19644 | # This file is part of GNU Libtool. |
d7040cdb | 19645 | # |
b214d478 SE |
19646 | # GNU Libtool is free software; you can redistribute it and/or |
19647 | # modify it under the terms of the GNU General Public License as | |
19648 | # published by the Free Software Foundation; either version 2 of | |
19649 | # the License, or (at your option) any later version. | |
d7040cdb | 19650 | # |
b214d478 SE |
19651 | # As a special exception to the GNU General Public License, |
19652 | # if you distribute this file as part of a program or library that | |
19653 | # is built using GNU Libtool, you may include this file under the | |
19654 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 19655 | # |
b214d478 SE |
19656 | # GNU Libtool is distributed in the hope that it will be useful, |
19657 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19658 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19659 | # GNU General Public License for more details. | |
d7040cdb | 19660 | # |
b214d478 SE |
19661 | # You should have received a copy of the GNU General Public License |
19662 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19663 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19664 | # obtained by writing to the Free Software Foundation, Inc., | |
19665 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
19666 | |
19667 | ||
19668 | # The names of the tagged configurations supported by this script. | |
3cb62297 | 19669 | available_tags="CXX " |
d7040cdb SE |
19670 | |
19671 | # ### BEGIN LIBTOOL CONFIG | |
19672 | ||
19673 | # Which release of libtool.m4 was used? | |
19674 | macro_version=$macro_version | |
19675 | macro_revision=$macro_revision | |
19676 | ||
19677 | # Whether or not to build shared libraries. | |
19678 | build_libtool_libs=$enable_shared | |
19679 | ||
19680 | # Whether or not to build static libraries. | |
19681 | build_old_libs=$enable_static | |
19682 | ||
19683 | # What type of objects to build. | |
19684 | pic_mode=$pic_mode | |
19685 | ||
19686 | # Whether or not to optimize for fast installation. | |
19687 | fast_install=$enable_fast_install | |
19688 | ||
3725885a RW |
19689 | # Shell to use when invoking shell scripts. |
19690 | SHELL=$lt_SHELL | |
19691 | ||
19692 | # An echo program that protects backslashes. | |
19693 | ECHO=$lt_ECHO | |
19694 | ||
d7040cdb SE |
19695 | # The host system. |
19696 | host_alias=$host_alias | |
19697 | host=$host | |
19698 | host_os=$host_os | |
19699 | ||
19700 | # The build system. | |
19701 | build_alias=$build_alias | |
19702 | build=$build | |
19703 | build_os=$build_os | |
19704 | ||
19705 | # A sed program that does not truncate output. | |
19706 | SED=$lt_SED | |
19707 | ||
19708 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19709 | Xsed="\$SED -e 1s/^X//" | |
19710 | ||
19711 | # A grep program that handles long lines. | |
19712 | GREP=$lt_GREP | |
19713 | ||
19714 | # An ERE matcher. | |
19715 | EGREP=$lt_EGREP | |
19716 | ||
19717 | # A literal string matcher. | |
19718 | FGREP=$lt_FGREP | |
19719 | ||
19720 | # A BSD- or MS-compatible name lister. | |
19721 | NM=$lt_NM | |
19722 | ||
19723 | # Whether we need soft or hard links. | |
19724 | LN_S=$lt_LN_S | |
19725 | ||
19726 | # What is the maximum length of a command? | |
19727 | max_cmd_len=$max_cmd_len | |
19728 | ||
19729 | # Object file suffix (normally "o"). | |
19730 | objext=$ac_objext | |
19731 | ||
19732 | # Executable file suffix (normally ""). | |
19733 | exeext=$exeext | |
19734 | ||
19735 | # whether the shell understands "unset". | |
19736 | lt_unset=$lt_unset | |
19737 | ||
19738 | # turn spaces into newlines. | |
19739 | SP2NL=$lt_lt_SP2NL | |
19740 | ||
19741 | # turn newlines into spaces. | |
19742 | NL2SP=$lt_lt_NL2SP | |
19743 | ||
b214d478 SE |
19744 | # An object symbol dumper. |
19745 | OBJDUMP=$lt_OBJDUMP | |
19746 | ||
d7040cdb SE |
19747 | # Method to check whether dependent libraries are shared objects. |
19748 | deplibs_check_method=$lt_deplibs_check_method | |
19749 | ||
19750 | # Command to use when deplibs_check_method == "file_magic". | |
19751 | file_magic_cmd=$lt_file_magic_cmd | |
19752 | ||
19753 | # The archiver. | |
19754 | AR=$lt_AR | |
19755 | AR_FLAGS=$lt_AR_FLAGS | |
19756 | ||
19757 | # A symbol stripping program. | |
19758 | STRIP=$lt_STRIP | |
19759 | ||
19760 | # Commands used to install an old-style archive. | |
19761 | RANLIB=$lt_RANLIB | |
19762 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
19763 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19764 | ||
3725885a RW |
19765 | # Whether to use a lock for old archive extraction. |
19766 | lock_old_archive_extraction=$lock_old_archive_extraction | |
19767 | ||
d7040cdb SE |
19768 | # A C compiler. |
19769 | LTCC=$lt_CC | |
19770 | ||
19771 | # LTCC compiler flags. | |
19772 | LTCFLAGS=$lt_CFLAGS | |
19773 | ||
19774 | # Take the output of nm and produce a listing of raw symbols and C names. | |
19775 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19776 | ||
19777 | # Transform the output of nm in a proper C declaration. | |
19778 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19779 | ||
19780 | # Transform the output of nm in a C name address pair. | |
19781 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19782 | ||
b214d478 SE |
19783 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
19784 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
19785 | ||
d7040cdb SE |
19786 | # The name of the directory that contains temporary libtool files. |
19787 | objdir=$objdir | |
19788 | ||
d7040cdb SE |
19789 | # Used to examine libraries when file_magic_cmd begins with "file". |
19790 | MAGIC_CMD=$MAGIC_CMD | |
19791 | ||
19792 | # Must we lock files when doing compilation? | |
19793 | need_locks=$lt_need_locks | |
19794 | ||
b214d478 SE |
19795 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
19796 | DSYMUTIL=$lt_DSYMUTIL | |
19797 | ||
19798 | # Tool to change global to local symbols on Mac OS X. | |
19799 | NMEDIT=$lt_NMEDIT | |
19800 | ||
19801 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19802 | LIPO=$lt_LIPO | |
19803 | ||
19804 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19805 | OTOOL=$lt_OTOOL | |
19806 | ||
19807 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19808 | OTOOL64=$lt_OTOOL64 | |
19809 | ||
d7040cdb SE |
19810 | # Old archive suffix (normally "a"). |
19811 | libext=$libext | |
19812 | ||
19813 | # Shared library suffix (normally ".so"). | |
19814 | shrext_cmds=$lt_shrext_cmds | |
19815 | ||
19816 | # The commands to extract the exported symbol list from a shared archive. | |
19817 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19818 | ||
19819 | # Variables whose values should be saved in libtool wrapper scripts and | |
19820 | # restored at link time. | |
19821 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
19822 | ||
19823 | # Do we need the "lib" prefix for modules? | |
19824 | need_lib_prefix=$need_lib_prefix | |
19825 | ||
19826 | # Do we need a version for libraries? | |
19827 | need_version=$need_version | |
19828 | ||
19829 | # Library versioning type. | |
19830 | version_type=$version_type | |
19831 | ||
19832 | # Shared library runtime path variable. | |
19833 | runpath_var=$runpath_var | |
19834 | ||
19835 | # Shared library path variable. | |
19836 | shlibpath_var=$shlibpath_var | |
19837 | ||
19838 | # Is shlibpath searched before the hard-coded library search path? | |
19839 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19840 | ||
19841 | # Format of library name prefix. | |
19842 | libname_spec=$lt_libname_spec | |
19843 | ||
19844 | # List of archive names. First name is the real one, the rest are links. | |
19845 | # The last name is the one that the linker finds with -lNAME | |
19846 | library_names_spec=$lt_library_names_spec | |
19847 | ||
19848 | # The coded name of the library, if different from the real name. | |
19849 | soname_spec=$lt_soname_spec | |
19850 | ||
3725885a RW |
19851 | # Permission mode override for installation of shared libraries. |
19852 | install_override_mode=$lt_install_override_mode | |
19853 | ||
d7040cdb SE |
19854 | # Command to use after installation of a shared archive. |
19855 | postinstall_cmds=$lt_postinstall_cmds | |
19856 | ||
19857 | # Command to use after uninstallation of a shared archive. | |
19858 | postuninstall_cmds=$lt_postuninstall_cmds | |
19859 | ||
19860 | # Commands used to finish a libtool library installation in a directory. | |
19861 | finish_cmds=$lt_finish_cmds | |
19862 | ||
19863 | # As "finish_cmds", except a single script fragment to be evaled but | |
19864 | # not shown. | |
19865 | finish_eval=$lt_finish_eval | |
19866 | ||
19867 | # Whether we should hardcode library paths into libraries. | |
19868 | hardcode_into_libs=$hardcode_into_libs | |
19869 | ||
19870 | # Compile-time system search path for libraries. | |
19871 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19872 | ||
19873 | # Run-time system search path for libraries. | |
19874 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19875 | ||
19876 | # Whether dlopen is supported. | |
19877 | dlopen_support=$enable_dlopen | |
19878 | ||
19879 | # Whether dlopen of programs is supported. | |
19880 | dlopen_self=$enable_dlopen_self | |
19881 | ||
19882 | # Whether dlopen of statically linked programs is supported. | |
19883 | dlopen_self_static=$enable_dlopen_self_static | |
19884 | ||
19885 | # Commands to strip libraries. | |
19886 | old_striplib=$lt_old_striplib | |
19887 | striplib=$lt_striplib | |
19888 | ||
19889 | ||
19890 | # The linker used to build libraries. | |
19891 | LD=$lt_LD | |
19892 | ||
3725885a RW |
19893 | # How to create reloadable object files. |
19894 | reload_flag=$lt_reload_flag | |
19895 | reload_cmds=$lt_reload_cmds | |
19896 | ||
d7040cdb SE |
19897 | # Commands used to build an old-style archive. |
19898 | old_archive_cmds=$lt_old_archive_cmds | |
19899 | ||
19900 | # A language specific compiler. | |
19901 | CC=$lt_compiler | |
19902 | ||
19903 | # Is the compiler the GNU compiler? | |
19904 | with_gcc=$GCC | |
19905 | ||
19906 | # Compiler flag to turn off builtin functions. | |
19907 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
19908 | ||
19909 | # How to pass a linker flag through the compiler. | |
19910 | wl=$lt_lt_prog_compiler_wl | |
19911 | ||
19912 | # Additional compiler flags for building library objects. | |
19913 | pic_flag=$lt_lt_prog_compiler_pic | |
19914 | ||
19915 | # Compiler flag to prevent dynamic linking. | |
19916 | link_static_flag=$lt_lt_prog_compiler_static | |
19917 | ||
19918 | # Does compiler simultaneously support -c and -o options? | |
19919 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
19920 | ||
19921 | # Whether or not to add -lc for building shared libraries. | |
19922 | build_libtool_need_lc=$archive_cmds_need_lc | |
19923 | ||
19924 | # Whether or not to disallow shared libs when runtime libs are static. | |
19925 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
19926 | ||
19927 | # Compiler flag to allow reflexive dlopens. | |
19928 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
19929 | ||
19930 | # Compiler flag to generate shared objects directly from archives. | |
19931 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
19932 | ||
19933 | # Whether the compiler copes with passing no objects directly. | |
19934 | compiler_needs_object=$lt_compiler_needs_object | |
19935 | ||
19936 | # Create an old-style archive from a shared archive. | |
19937 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19938 | ||
19939 | # Create a temporary old-style archive to link instead of a shared archive. | |
19940 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
19941 | ||
19942 | # Commands used to build a shared archive. | |
19943 | archive_cmds=$lt_archive_cmds | |
19944 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
19945 | ||
19946 | # Commands used to build a loadable module if different from building | |
19947 | # a shared archive. | |
19948 | module_cmds=$lt_module_cmds | |
19949 | module_expsym_cmds=$lt_module_expsym_cmds | |
19950 | ||
19951 | # Whether we are building with GNU ld or not. | |
19952 | with_gnu_ld=$lt_with_gnu_ld | |
19953 | ||
19954 | # Flag that allows shared libraries with undefined symbols to be built. | |
19955 | allow_undefined_flag=$lt_allow_undefined_flag | |
19956 | ||
19957 | # Flag that enforces no undefined symbols. | |
19958 | no_undefined_flag=$lt_no_undefined_flag | |
19959 | ||
19960 | # Flag to hardcode \$libdir into a binary during linking. | |
19961 | # This must work even if \$libdir does not exist | |
19962 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19963 | ||
19964 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19965 | # during linking. This must work even if \$libdir does not exist. | |
19966 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
19967 | ||
19968 | # Whether we need a single "-rpath" flag with a separated argument. | |
19969 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19970 | ||
19971 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19972 | # DIR into the resulting binary. | |
19973 | hardcode_direct=$hardcode_direct | |
19974 | ||
19975 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19976 | # DIR into the resulting binary and the resulting library dependency is | |
19977 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19978 | # library is relocated. | |
19979 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19980 | ||
19981 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19982 | # into the resulting binary. | |
19983 | hardcode_minus_L=$hardcode_minus_L | |
19984 | ||
19985 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19986 | # into the resulting binary. | |
19987 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19988 | ||
19989 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19990 | # into the library and all subsequent libraries and executables linked | |
19991 | # against it. | |
19992 | hardcode_automatic=$hardcode_automatic | |
19993 | ||
19994 | # Set to yes if linker adds runtime paths of dependent libraries | |
19995 | # to runtime path list. | |
19996 | inherit_rpath=$inherit_rpath | |
19997 | ||
19998 | # Whether libtool must link a program against all its dependency libraries. | |
19999 | link_all_deplibs=$link_all_deplibs | |
20000 | ||
20001 | # Fix the shell variable \$srcfile for the compiler. | |
20002 | fix_srcfile_path=$lt_fix_srcfile_path | |
20003 | ||
20004 | # Set to "yes" if exported symbols are required. | |
20005 | always_export_symbols=$always_export_symbols | |
20006 | ||
20007 | # The commands to list exported symbols. | |
20008 | export_symbols_cmds=$lt_export_symbols_cmds | |
20009 | ||
20010 | # Symbols that should not be listed in the preloaded symbols. | |
20011 | exclude_expsyms=$lt_exclude_expsyms | |
20012 | ||
20013 | # Symbols that must always be exported. | |
20014 | include_expsyms=$lt_include_expsyms | |
20015 | ||
20016 | # Commands necessary for linking programs (against libraries) with templates. | |
20017 | prelink_cmds=$lt_prelink_cmds | |
20018 | ||
20019 | # Specify filename containing input files. | |
20020 | file_list_spec=$lt_file_list_spec | |
20021 | ||
20022 | # How to hardcode a shared library path into an executable. | |
20023 | hardcode_action=$hardcode_action | |
20024 | ||
3cb62297 L |
20025 | # The directories searched by this compiler when creating a shared library. |
20026 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
20027 | ||
20028 | # Dependencies to place before and after the objects being linked to | |
20029 | # create a shared library. | |
20030 | predep_objects=$lt_predep_objects | |
20031 | postdep_objects=$lt_postdep_objects | |
20032 | predeps=$lt_predeps | |
20033 | postdeps=$lt_postdeps | |
20034 | ||
20035 | # The library search path used internally by the compiler when linking | |
20036 | # a shared library. | |
20037 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
20038 | ||
d7040cdb SE |
20039 | # ### END LIBTOOL CONFIG |
20040 | ||
20041 | _LT_EOF | |
20042 | ||
20043 | case $host_os in | |
20044 | aix3*) | |
20045 | cat <<\_LT_EOF >> "$cfgfile" | |
20046 | # AIX sometimes has problems with the GCC collect2 program. For some | |
20047 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
20048 | # vanish in a puff of smoke. | |
20049 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
20050 | COLLECT_NAMES= | |
20051 | export COLLECT_NAMES | |
20052 | fi | |
20053 | _LT_EOF | |
20054 | ;; | |
20055 | esac | |
20056 | ||
20057 | ||
20058 | ltmain="$ac_aux_dir/ltmain.sh" | |
20059 | ||
20060 | ||
20061 | # We use sed instead of cat because bash on DJGPP gets confused if | |
20062 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
20063 | # text mode, it properly converts lines to CR/LF. This bash problem | |
20064 | # is reportedly fixed, but why not run on old versions too? | |
20065 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
20066 | || (rm -f "$cfgfile"; exit 1) | |
20067 | ||
20068 | case $xsi_shell in | |
20069 | yes) | |
20070 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 20071 | |
d7040cdb SE |
20072 | # func_dirname file append nondir_replacement |
20073 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
20074 | # otherwise set result to NONDIR_REPLACEMENT. | |
20075 | func_dirname () | |
20076 | { | |
20077 | case ${1} in | |
20078 | */*) func_dirname_result="${1%/*}${2}" ;; | |
20079 | * ) func_dirname_result="${3}" ;; | |
20080 | esac | |
20081 | } | |
20082 | ||
20083 | # func_basename file | |
20084 | func_basename () | |
20085 | { | |
20086 | func_basename_result="${1##*/}" | |
20087 | } | |
20088 | ||
b214d478 SE |
20089 | # func_dirname_and_basename file append nondir_replacement |
20090 | # perform func_basename and func_dirname in a single function | |
20091 | # call: | |
20092 | # dirname: Compute the dirname of FILE. If nonempty, | |
20093 | # add APPEND to the result, otherwise set result | |
20094 | # to NONDIR_REPLACEMENT. | |
20095 | # value returned in "$func_dirname_result" | |
20096 | # basename: Compute filename of FILE. | |
20097 | # value retuned in "$func_basename_result" | |
20098 | # Implementation must be kept synchronized with func_dirname | |
20099 | # and func_basename. For efficiency, we do not delegate to | |
20100 | # those functions but instead duplicate the functionality here. | |
20101 | func_dirname_and_basename () | |
20102 | { | |
20103 | case ${1} in | |
20104 | */*) func_dirname_result="${1%/*}${2}" ;; | |
20105 | * ) func_dirname_result="${3}" ;; | |
20106 | esac | |
20107 | func_basename_result="${1##*/}" | |
20108 | } | |
20109 | ||
d7040cdb SE |
20110 | # func_stripname prefix suffix name |
20111 | # strip PREFIX and SUFFIX off of NAME. | |
20112 | # PREFIX and SUFFIX must not contain globbing or regex special | |
20113 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
20114 | # dot (in which case that matches only a dot). | |
20115 | func_stripname () | |
20116 | { | |
20117 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
20118 | # positional parameters, so assign one to ordinary parameter first. | |
20119 | func_stripname_result=${3} | |
20120 | func_stripname_result=${func_stripname_result#"${1}"} | |
20121 | func_stripname_result=${func_stripname_result%"${2}"} | |
20122 | } | |
20123 | ||
20124 | # func_opt_split | |
20125 | func_opt_split () | |
20126 | { | |
20127 | func_opt_split_opt=${1%%=*} | |
20128 | func_opt_split_arg=${1#*=} | |
20129 | } | |
20130 | ||
20131 | # func_lo2o object | |
20132 | func_lo2o () | |
20133 | { | |
20134 | case ${1} in | |
20135 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
20136 | *) func_lo2o_result=${1} ;; | |
20137 | esac | |
20138 | } | |
b214d478 SE |
20139 | |
20140 | # func_xform libobj-or-source | |
20141 | func_xform () | |
20142 | { | |
20143 | func_xform_result=${1%.*}.lo | |
20144 | } | |
20145 | ||
20146 | # func_arith arithmetic-term... | |
20147 | func_arith () | |
20148 | { | |
20149 | func_arith_result=$(( $* )) | |
20150 | } | |
20151 | ||
20152 | # func_len string | |
20153 | # STRING may not start with a hyphen. | |
20154 | func_len () | |
20155 | { | |
20156 | func_len_result=${#1} | |
20157 | } | |
20158 | ||
d7040cdb SE |
20159 | _LT_EOF |
20160 | ;; | |
20161 | *) # Bourne compatible functions. | |
20162 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 20163 | |
d7040cdb SE |
20164 | # func_dirname file append nondir_replacement |
20165 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
20166 | # otherwise set result to NONDIR_REPLACEMENT. | |
20167 | func_dirname () | |
20168 | { | |
20169 | # Extract subdirectory from the argument. | |
3725885a | 20170 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
d7040cdb SE |
20171 | if test "X$func_dirname_result" = "X${1}"; then |
20172 | func_dirname_result="${3}" | |
20173 | else | |
20174 | func_dirname_result="$func_dirname_result${2}" | |
20175 | fi | |
20176 | } | |
20177 | ||
20178 | # func_basename file | |
20179 | func_basename () | |
20180 | { | |
3725885a | 20181 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
d7040cdb SE |
20182 | } |
20183 | ||
b214d478 | 20184 | |
d7040cdb SE |
20185 | # func_stripname prefix suffix name |
20186 | # strip PREFIX and SUFFIX off of NAME. | |
20187 | # PREFIX and SUFFIX must not contain globbing or regex special | |
20188 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
20189 | # dot (in which case that matches only a dot). | |
20190 | # func_strip_suffix prefix name | |
20191 | func_stripname () | |
20192 | { | |
20193 | case ${2} in | |
3725885a RW |
20194 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
20195 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
d7040cdb SE |
20196 | esac |
20197 | } | |
20198 | ||
20199 | # sed scripts: | |
20200 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
20201 | my_sed_long_arg='1s/^-[^=]*=//' | |
20202 | ||
20203 | # func_opt_split | |
20204 | func_opt_split () | |
20205 | { | |
3725885a RW |
20206 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
20207 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
d7040cdb SE |
20208 | } |
20209 | ||
20210 | # func_lo2o object | |
20211 | func_lo2o () | |
20212 | { | |
3725885a | 20213 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
d7040cdb | 20214 | } |
b214d478 SE |
20215 | |
20216 | # func_xform libobj-or-source | |
20217 | func_xform () | |
20218 | { | |
3725885a | 20219 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
b214d478 SE |
20220 | } |
20221 | ||
20222 | # func_arith arithmetic-term... | |
20223 | func_arith () | |
20224 | { | |
20225 | func_arith_result=`expr "$@"` | |
20226 | } | |
20227 | ||
20228 | # func_len string | |
20229 | # STRING may not start with a hyphen. | |
20230 | func_len () | |
20231 | { | |
20232 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
20233 | } | |
20234 | ||
d7040cdb SE |
20235 | _LT_EOF |
20236 | esac | |
20237 | ||
20238 | case $lt_shell_append in | |
20239 | yes) | |
20240 | cat << \_LT_EOF >> "$cfgfile" | |
20241 | ||
20242 | # func_append var value | |
20243 | # Append VALUE to the end of shell variable VAR. | |
20244 | func_append () | |
20245 | { | |
20246 | eval "$1+=\$2" | |
20247 | } | |
20248 | _LT_EOF | |
20249 | ;; | |
20250 | *) | |
20251 | cat << \_LT_EOF >> "$cfgfile" | |
20252 | ||
20253 | # func_append var value | |
20254 | # Append VALUE to the end of shell variable VAR. | |
20255 | func_append () | |
20256 | { | |
20257 | eval "$1=\$$1\$2" | |
20258 | } | |
b214d478 | 20259 | |
d7040cdb SE |
20260 | _LT_EOF |
20261 | ;; | |
20262 | esac | |
20263 | ||
20264 | ||
20265 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
20266 | || (rm -f "$cfgfile"; exit 1) | |
20267 | ||
20268 | mv -f "$cfgfile" "$ofile" || | |
20269 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
20270 | chmod +x "$ofile" | |
20271 | ||
3cb62297 L |
20272 | |
20273 | cat <<_LT_EOF >> "$ofile" | |
20274 | ||
20275 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
20276 | ||
20277 | # The linker used to build libraries. | |
20278 | LD=$lt_LD_CXX | |
20279 | ||
20280 | # How to create reloadable object files. | |
20281 | reload_flag=$lt_reload_flag_CXX | |
20282 | reload_cmds=$lt_reload_cmds_CXX | |
20283 | ||
20284 | # Commands used to build an old-style archive. | |
20285 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
20286 | ||
20287 | # A language specific compiler. | |
20288 | CC=$lt_compiler_CXX | |
20289 | ||
20290 | # Is the compiler the GNU compiler? | |
20291 | with_gcc=$GCC_CXX | |
20292 | ||
20293 | # Compiler flag to turn off builtin functions. | |
20294 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
20295 | ||
20296 | # How to pass a linker flag through the compiler. | |
20297 | wl=$lt_lt_prog_compiler_wl_CXX | |
20298 | ||
20299 | # Additional compiler flags for building library objects. | |
20300 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
20301 | ||
20302 | # Compiler flag to prevent dynamic linking. | |
20303 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
20304 | ||
20305 | # Does compiler simultaneously support -c and -o options? | |
20306 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
20307 | ||
20308 | # Whether or not to add -lc for building shared libraries. | |
20309 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
20310 | ||
20311 | # Whether or not to disallow shared libs when runtime libs are static. | |
20312 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
20313 | ||
20314 | # Compiler flag to allow reflexive dlopens. | |
20315 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
20316 | ||
20317 | # Compiler flag to generate shared objects directly from archives. | |
20318 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
20319 | ||
20320 | # Whether the compiler copes with passing no objects directly. | |
20321 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
20322 | ||
20323 | # Create an old-style archive from a shared archive. | |
20324 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
20325 | ||
20326 | # Create a temporary old-style archive to link instead of a shared archive. | |
20327 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
20328 | ||
20329 | # Commands used to build a shared archive. | |
20330 | archive_cmds=$lt_archive_cmds_CXX | |
20331 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
20332 | ||
20333 | # Commands used to build a loadable module if different from building | |
20334 | # a shared archive. | |
20335 | module_cmds=$lt_module_cmds_CXX | |
20336 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
20337 | ||
20338 | # Whether we are building with GNU ld or not. | |
20339 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
20340 | ||
20341 | # Flag that allows shared libraries with undefined symbols to be built. | |
20342 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
20343 | ||
20344 | # Flag that enforces no undefined symbols. | |
20345 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
20346 | ||
20347 | # Flag to hardcode \$libdir into a binary during linking. | |
20348 | # This must work even if \$libdir does not exist | |
20349 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
20350 | ||
20351 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
20352 | # during linking. This must work even if \$libdir does not exist. | |
20353 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
20354 | ||
20355 | # Whether we need a single "-rpath" flag with a separated argument. | |
20356 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
20357 | ||
20358 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
20359 | # DIR into the resulting binary. | |
20360 | hardcode_direct=$hardcode_direct_CXX | |
20361 | ||
20362 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
20363 | # DIR into the resulting binary and the resulting library dependency is | |
20364 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
20365 | # library is relocated. | |
20366 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
20367 | ||
20368 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
20369 | # into the resulting binary. | |
20370 | hardcode_minus_L=$hardcode_minus_L_CXX | |
20371 | ||
20372 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
20373 | # into the resulting binary. | |
20374 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
20375 | ||
20376 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
20377 | # into the library and all subsequent libraries and executables linked | |
20378 | # against it. | |
20379 | hardcode_automatic=$hardcode_automatic_CXX | |
20380 | ||
20381 | # Set to yes if linker adds runtime paths of dependent libraries | |
20382 | # to runtime path list. | |
20383 | inherit_rpath=$inherit_rpath_CXX | |
20384 | ||
20385 | # Whether libtool must link a program against all its dependency libraries. | |
20386 | link_all_deplibs=$link_all_deplibs_CXX | |
20387 | ||
20388 | # Fix the shell variable \$srcfile for the compiler. | |
20389 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
20390 | ||
20391 | # Set to "yes" if exported symbols are required. | |
20392 | always_export_symbols=$always_export_symbols_CXX | |
20393 | ||
20394 | # The commands to list exported symbols. | |
20395 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
20396 | ||
20397 | # Symbols that should not be listed in the preloaded symbols. | |
20398 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
20399 | ||
20400 | # Symbols that must always be exported. | |
20401 | include_expsyms=$lt_include_expsyms_CXX | |
20402 | ||
20403 | # Commands necessary for linking programs (against libraries) with templates. | |
20404 | prelink_cmds=$lt_prelink_cmds_CXX | |
20405 | ||
20406 | # Specify filename containing input files. | |
20407 | file_list_spec=$lt_file_list_spec_CXX | |
20408 | ||
20409 | # How to hardcode a shared library path into an executable. | |
20410 | hardcode_action=$hardcode_action_CXX | |
20411 | ||
20412 | # The directories searched by this compiler when creating a shared library. | |
20413 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
20414 | ||
20415 | # Dependencies to place before and after the objects being linked to | |
20416 | # create a shared library. | |
20417 | predep_objects=$lt_predep_objects_CXX | |
20418 | postdep_objects=$lt_postdep_objects_CXX | |
20419 | predeps=$lt_predeps_CXX | |
20420 | postdeps=$lt_postdeps_CXX | |
20421 | ||
20422 | # The library search path used internally by the compiler when linking | |
20423 | # a shared library. | |
20424 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
20425 | ||
20426 | # ### END LIBTOOL TAG CONFIG: CXX | |
20427 | _LT_EOF | |
20428 | ||
42ecbf5e | 20429 | ;; |
81ecdfbb | 20430 | "default-1":C) |
20e95c23 DJ |
20431 | for ac_file in $CONFIG_FILES; do |
20432 | # Support "outfile[:infile[:infile...]]" | |
20433 | case "$ac_file" in | |
20434 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20435 | esac | |
20436 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
20437 | case "$ac_file" in */Makefile.in) | |
20438 | # Adjust a relative srcdir. | |
20439 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
3cac54d2 | 20440 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
20e95c23 DJ |
20441 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
20442 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
20443 | # In autoconf-2.50 it is called $srcdir. | |
20444 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
20445 | case "$ac_given_srcdir" in | |
20446 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
20447 | /*) top_srcdir="$ac_given_srcdir" ;; | |
20448 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
20449 | esac | |
20450 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
20451 | rm -f "$ac_dir/POTFILES" | |
20452 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
20453 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
20454 | POMAKEFILEDEPS="POTFILES.in" | |
20455 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
20456 | # on $ac_dir but don't depend on user-specified configuration | |
20457 | # parameters. | |
20458 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
20459 | # The LINGUAS file contains the set of available languages. | |
20460 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
37a42ee9 | 20461 | 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 |
20462 | fi |
20463 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
20464 | # Hide the ALL_LINGUAS assigment from automake. | |
20465 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
20466 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
20467 | else | |
37a42ee9 | 20468 | # The set of available languages was given in configure.ac. |
20e95c23 DJ |
20469 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
20470 | fi | |
20471 | case "$ac_given_srcdir" in | |
20472 | .) srcdirpre= ;; | |
20473 | *) srcdirpre='$(srcdir)/' ;; | |
20474 | esac | |
20475 | POFILES= | |
20476 | GMOFILES= | |
20477 | UPDATEPOFILES= | |
20478 | DUMMYPOFILES= | |
20479 | for lang in $ALL_LINGUAS; do | |
20480 | POFILES="$POFILES $srcdirpre$lang.po" | |
20481 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
20482 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
20483 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
20484 | done | |
20485 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
20486 | # environment variable. | |
20487 | INST_LINGUAS= | |
20488 | if test -n "$ALL_LINGUAS"; then | |
20489 | for presentlang in $ALL_LINGUAS; do | |
20490 | useit=no | |
20491 | if test "%UNSET%" != "$LINGUAS"; then | |
20492 | desiredlanguages="$LINGUAS" | |
20493 | else | |
20494 | desiredlanguages="$ALL_LINGUAS" | |
20495 | fi | |
20496 | for desiredlang in $desiredlanguages; do | |
20497 | # Use the presentlang catalog if desiredlang is | |
20498 | # a. equal to presentlang, or | |
20499 | # b. a variant of presentlang (because in this case, | |
20500 | # presentlang can be used as a fallback for messages | |
20501 | # which are not translated in the desiredlang catalog). | |
20502 | case "$desiredlang" in | |
20503 | "$presentlang"*) useit=yes;; | |
20504 | esac | |
20505 | done | |
20506 | if test $useit = yes; then | |
20507 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
20508 | fi | |
20509 | done | |
20510 | fi | |
20511 | CATALOGS= | |
20512 | if test -n "$INST_LINGUAS"; then | |
20513 | for lang in $INST_LINGUAS; do | |
20514 | CATALOGS="$CATALOGS $lang.gmo" | |
20515 | done | |
20516 | fi | |
20517 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
20518 | 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" | |
20519 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
20520 | if test -f "$f"; then | |
20521 | case "$f" in | |
20522 | *.orig | *.bak | *~) ;; | |
20523 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
20524 | esac | |
20525 | fi | |
20526 | done | |
20527 | fi | |
20528 | ;; | |
20529 | esac | |
20530 | done ;; | |
33589acb AM |
20531 | "default":C) |
20532 | case "$srcdir" in | |
20533 | .) srcdirpre= ;; | |
20534 | *) srcdirpre='$(srcdir)/' ;; | |
20535 | esac | |
20536 | POFILES= | |
20537 | GMOFILES= | |
20538 | for lang in dummy $OBSOLETE_ALL_LINGUAS; do | |
20539 | if test $lang != dummy; then | |
20540 | POFILES="$POFILES $srcdirpre$lang.po" | |
20541 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
20542 | fi | |
20543 | done | |
20544 | sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \ | |
20545 | -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \ | |
20546 | -e "s,@POFILES@,$POFILES," \ | |
20547 | -e "s,@GMOFILES@,$GMOFILES," \ | |
20548 | po/Makefile.in > po/Makefile ;; | |
81ecdfbb | 20549 | |
42ecbf5e | 20550 | esac |
81ecdfbb | 20551 | done # for ac_tag |
42ecbf5e | 20552 | |
42ecbf5e | 20553 | |
81ecdfbb | 20554 | as_fn_exit 0 |
42ecbf5e | 20555 | _ACEOF |
42ecbf5e DJ |
20556 | ac_clean_files=$ac_clean_files_save |
20557 | ||
81ecdfbb | 20558 | test $ac_write_fail = 0 || |
d0ac1c44 | 20559 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 20560 | |
42ecbf5e DJ |
20561 | |
20562 | # configure is writing to config.log, and then calls config.status. | |
20563 | # config.status does its own redirection, appending to config.log. | |
20564 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20565 | # by configure, so config.status won't be able to write to it; its | |
20566 | # output is simply discarded. So we exec the FD to /dev/null, | |
20567 | # effectively closing config.log, so it can be properly (re)opened and | |
20568 | # appended to by config.status. When coming back to configure, we | |
20569 | # need to make the FD available again. | |
20570 | if test "$no_create" != yes; then | |
20571 | ac_cs_success=: | |
20572 | ac_config_status_args= | |
20573 | test "$silent" = yes && | |
20574 | ac_config_status_args="$ac_config_status_args --quiet" | |
20575 | exec 5>/dev/null | |
20576 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20577 | exec 5>>config.log | |
20578 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20579 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 20580 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
20581 | fi |
20582 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
20583 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20584 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
42ecbf5e | 20585 | fi |
252b5132 | 20586 |