Rev 2 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | mjames | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
||
3 | # Generated by GNU Autoconf 2.69 for metal 1.2. |
||
4 | # |
||
5 | # Report bugs to <mike@hamble.online>. |
||
6 | # |
||
7 | # |
||
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
||
9 | # |
||
10 | # |
||
11 | # This configure script is free software; the Free Software Foundation |
||
12 | # gives unlimited permission to copy, distribute and modify it. |
||
13 | ## -------------------- ## |
||
14 | ## M4sh Initialization. ## |
||
15 | ## -------------------- ## |
||
16 | |||
17 | # Be more Bourne compatible |
||
18 | DUALCASE=1; export DUALCASE # for MKS sh |
||
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
||
20 | emulate sh |
||
21 | NULLCMD=: |
||
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
||
23 | # is contrary to our usage. Disable this feature. |
||
24 | alias -g '${1+"$@"}'='"$@"' |
||
25 | setopt NO_GLOB_SUBST |
||
26 | else |
||
27 | case `(set -o) 2>/dev/null` in #( |
||
28 | *posix*) : |
||
29 | set -o posix ;; #( |
||
30 | *) : |
||
31 | ;; |
||
32 | esac |
||
33 | fi |
||
34 | |||
35 | |||
36 | as_nl=' |
||
37 | ' |
||
38 | export as_nl |
||
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
||
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
||
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
||
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
||
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
||
44 | # but without wasting forks for bash or zsh. |
||
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
||
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
||
47 | as_echo='print -r --' |
||
48 | as_echo_n='print -rn --' |
||
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
||
50 | as_echo='printf %s\n' |
||
51 | as_echo_n='printf %s' |
||
52 | else |
||
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
||
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
||
55 | as_echo_n='/usr/ucb/echo -n' |
||
56 | else |
||
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
||
58 | as_echo_n_body='eval |
||
59 | arg=$1; |
||
60 | case $arg in #( |
||
61 | *"$as_nl"*) |
||
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
||
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
||
64 | esac; |
||
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
||
66 | ' |
||
67 | export as_echo_n_body |
||
68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
||
69 | fi |
||
70 | export as_echo_body |
||
71 | as_echo='sh -c $as_echo_body as_echo' |
||
72 | fi |
||
73 | |||
74 | # The user is always right. |
||
75 | if test "${PATH_SEPARATOR+set}" != set; then |
||
76 | PATH_SEPARATOR=: |
||
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
||
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
||
79 | PATH_SEPARATOR=';' |
||
80 | } |
||
81 | fi |
||
82 | |||
83 | |||
84 | # IFS |
||
85 | # We need space, tab and new line, in precisely that order. Quoting is |
||
86 | # there to prevent editors from complaining about space-tab. |
||
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
||
88 | # splitting by setting IFS to empty value.) |
||
89 | IFS=" "" $as_nl" |
||
90 | |||
91 | # Find who we are. Look in the path if we contain no directory separator. |
||
92 | as_myself= |
||
93 | case $0 in #(( |
||
94 | *[\\/]* ) as_myself=$0 ;; |
||
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
96 | for as_dir in $PATH |
||
97 | do |
||
98 | IFS=$as_save_IFS |
||
99 | test -z "$as_dir" && as_dir=. |
||
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
||
101 | done |
||
102 | IFS=$as_save_IFS |
||
103 | |||
104 | ;; |
||
105 | esac |
||
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
||
107 | # in which case we are not to be found in the path. |
||
108 | if test "x$as_myself" = x; then |
||
109 | as_myself=$0 |
||
110 | fi |
||
111 | if test ! -f "$as_myself"; then |
||
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
||
113 | exit 1 |
||
114 | fi |
||
115 | |||
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
||
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
||
118 | # suppresses any "Segmentation fault" message there. '((' could |
||
119 | # trigger a bug in pdksh 5.2.14. |
||
120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
||
121 | do eval test x\${$as_var+set} = xset \ |
||
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
||
123 | done |
||
124 | PS1='$ ' |
||
125 | PS2='> ' |
||
126 | PS4='+ ' |
||
127 | |||
128 | # NLS nuisances. |
||
129 | LC_ALL=C |
||
130 | export LC_ALL |
||
131 | LANGUAGE=C |
||
132 | export LANGUAGE |
||
133 | |||
134 | # CDPATH. |
||
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
||
136 | |||
137 | # Use a proper internal environment variable to ensure we don't fall |
||
138 | # into an infinite loop, continuously re-executing ourselves. |
||
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
||
140 | _as_can_reexec=no; export _as_can_reexec; |
||
141 | # We cannot yet assume a decent shell, so we have to provide a |
||
142 | # neutralization value for shells without unset; and this also |
||
143 | # works around shells that cannot unset nonexistent variables. |
||
144 | # Preserve -v and -x to the replacement shell. |
||
145 | BASH_ENV=/dev/null |
||
146 | ENV=/dev/null |
||
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
||
148 | case $- in # (((( |
||
149 | *v*x* | *x*v* ) as_opts=-vx ;; |
||
150 | *v* ) as_opts=-v ;; |
||
151 | *x* ) as_opts=-x ;; |
||
152 | * ) as_opts= ;; |
||
153 | esac |
||
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
||
155 | # Admittedly, this is quite paranoid, since all the known shells bail |
||
156 | # out after a failed `exec'. |
||
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
||
158 | as_fn_exit 255 |
||
159 | fi |
||
160 | # We don't want this to propagate to other subprocesses. |
||
161 | { _as_can_reexec=; unset _as_can_reexec;} |
||
162 | if test "x$CONFIG_SHELL" = x; then |
||
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
||
164 | emulate sh |
||
165 | NULLCMD=: |
||
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
||
167 | # is contrary to our usage. Disable this feature. |
||
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
||
169 | setopt NO_GLOB_SUBST |
||
170 | else |
||
171 | case \`(set -o) 2>/dev/null\` in #( |
||
172 | *posix*) : |
||
173 | set -o posix ;; #( |
||
174 | *) : |
||
175 | ;; |
||
176 | esac |
||
177 | fi |
||
178 | " |
||
179 | as_required="as_fn_return () { (exit \$1); } |
||
180 | as_fn_success () { as_fn_return 0; } |
||
181 | as_fn_failure () { as_fn_return 1; } |
||
182 | as_fn_ret_success () { return 0; } |
||
183 | as_fn_ret_failure () { return 1; } |
||
184 | |||
185 | exitcode=0 |
||
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
||
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
||
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
||
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
||
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
||
191 | |||
192 | else |
||
193 | exitcode=1; echo positional parameters were not saved. |
||
194 | fi |
||
195 | test x\$exitcode = x0 || exit 1 |
||
196 | test -x / || exit 1" |
||
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
||
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
||
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
||
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
||
201 | |||
202 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
||
203 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
||
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
||
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
||
206 | PATH=/empty FPATH=/empty; export PATH FPATH |
||
207 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
||
208 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
||
209 | test \$(( 1 + 1 )) = 2 || exit 1" |
||
210 | if (eval "$as_required") 2>/dev/null; then : |
||
211 | as_have_required=yes |
||
212 | else |
||
213 | as_have_required=no |
||
214 | fi |
||
215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
||
216 | |||
217 | else |
||
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
219 | as_found=false |
||
220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
||
221 | do |
||
222 | IFS=$as_save_IFS |
||
223 | test -z "$as_dir" && as_dir=. |
||
224 | as_found=: |
||
225 | case $as_dir in #( |
||
226 | /*) |
||
227 | for as_base in sh bash ksh sh5; do |
||
228 | # Try only shells that exist, to save several forks. |
||
229 | as_shell=$as_dir/$as_base |
||
230 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
||
231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
||
232 | CONFIG_SHELL=$as_shell as_have_required=yes |
||
233 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
||
234 | break 2 |
||
235 | fi |
||
236 | fi |
||
237 | done;; |
||
238 | esac |
||
239 | as_found=false |
||
240 | done |
||
241 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
||
242 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
||
243 | CONFIG_SHELL=$SHELL as_have_required=yes |
||
244 | fi; } |
||
245 | IFS=$as_save_IFS |
||
246 | |||
247 | |||
248 | if test "x$CONFIG_SHELL" != x; then : |
||
249 | export CONFIG_SHELL |
||
250 | # We cannot yet assume a decent shell, so we have to provide a |
||
251 | # neutralization value for shells without unset; and this also |
||
252 | # works around shells that cannot unset nonexistent variables. |
||
253 | # Preserve -v and -x to the replacement shell. |
||
254 | BASH_ENV=/dev/null |
||
255 | ENV=/dev/null |
||
256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
||
257 | case $- in # (((( |
||
258 | *v*x* | *x*v* ) as_opts=-vx ;; |
||
259 | *v* ) as_opts=-v ;; |
||
260 | *x* ) as_opts=-x ;; |
||
261 | * ) as_opts= ;; |
||
262 | esac |
||
263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
||
264 | # Admittedly, this is quite paranoid, since all the known shells bail |
||
265 | # out after a failed `exec'. |
||
266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
||
267 | exit 255 |
||
268 | fi |
||
269 | |||
270 | if test x$as_have_required = xno; then : |
||
271 | $as_echo "$0: This script requires a shell more modern than all" |
||
272 | $as_echo "$0: the shells that I found on your system." |
||
273 | if test x${ZSH_VERSION+set} = xset ; then |
||
274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
||
275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
||
276 | else |
||
277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and mike@hamble.online |
||
278 | $0: about your system, including any error possibly output |
||
279 | $0: before this message. Then install a modern shell, or |
||
280 | $0: manually run the script under such a shell if you do |
||
281 | $0: have one." |
||
282 | fi |
||
283 | exit 1 |
||
284 | fi |
||
285 | fi |
||
286 | fi |
||
287 | SHELL=${CONFIG_SHELL-/bin/sh} |
||
288 | export SHELL |
||
289 | # Unset more variables known to interfere with behavior of common tools. |
||
290 | CLICOLOR_FORCE= GREP_OPTIONS= |
||
291 | unset CLICOLOR_FORCE GREP_OPTIONS |
||
292 | |||
293 | ## --------------------- ## |
||
294 | ## M4sh Shell Functions. ## |
||
295 | ## --------------------- ## |
||
296 | # as_fn_unset VAR |
||
297 | # --------------- |
||
298 | # Portably unset VAR. |
||
299 | as_fn_unset () |
||
300 | { |
||
301 | { eval $1=; unset $1;} |
||
302 | } |
||
303 | as_unset=as_fn_unset |
||
304 | |||
305 | # as_fn_set_status STATUS |
||
306 | # ----------------------- |
||
307 | # Set $? to STATUS, without forking. |
||
308 | as_fn_set_status () |
||
309 | { |
||
310 | return $1 |
||
311 | } # as_fn_set_status |
||
312 | |||
313 | # as_fn_exit STATUS |
||
314 | # ----------------- |
||
315 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
||
316 | as_fn_exit () |
||
317 | { |
||
318 | set +e |
||
319 | as_fn_set_status $1 |
||
320 | exit $1 |
||
321 | } # as_fn_exit |
||
322 | |||
323 | # as_fn_mkdir_p |
||
324 | # ------------- |
||
325 | # Create "$as_dir" as a directory, including parents if necessary. |
||
326 | as_fn_mkdir_p () |
||
327 | { |
||
328 | |||
329 | case $as_dir in #( |
||
330 | -*) as_dir=./$as_dir;; |
||
331 | esac |
||
332 | test -d "$as_dir" || eval $as_mkdir_p || { |
||
333 | as_dirs= |
||
334 | while :; do |
||
335 | case $as_dir in #( |
||
336 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
||
337 | *) as_qdir=$as_dir;; |
||
338 | esac |
||
339 | as_dirs="'$as_qdir' $as_dirs" |
||
340 | as_dir=`$as_dirname -- "$as_dir" || |
||
341 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
342 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
||
343 | X"$as_dir" : 'X\(//\)$' \| \ |
||
344 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
||
345 | $as_echo X"$as_dir" | |
||
346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
347 | s//\1/ |
||
348 | q |
||
349 | } |
||
350 | /^X\(\/\/\)[^/].*/{ |
||
351 | s//\1/ |
||
352 | q |
||
353 | } |
||
354 | /^X\(\/\/\)$/{ |
||
355 | s//\1/ |
||
356 | q |
||
357 | } |
||
358 | /^X\(\/\).*/{ |
||
359 | s//\1/ |
||
360 | q |
||
361 | } |
||
362 | s/.*/./; q'` |
||
363 | test -d "$as_dir" && break |
||
364 | done |
||
365 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
||
366 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
||
367 | |||
368 | |||
369 | } # as_fn_mkdir_p |
||
370 | |||
371 | # as_fn_executable_p FILE |
||
372 | # ----------------------- |
||
373 | # Test if FILE is an executable regular file. |
||
374 | as_fn_executable_p () |
||
375 | { |
||
376 | test -f "$1" && test -x "$1" |
||
377 | } # as_fn_executable_p |
||
378 | # as_fn_append VAR VALUE |
||
379 | # ---------------------- |
||
380 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
||
381 | # advantage of any shell optimizations that allow amortized linear growth over |
||
382 | # repeated appends, instead of the typical quadratic growth present in naive |
||
383 | # implementations. |
||
384 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
||
385 | eval 'as_fn_append () |
||
386 | { |
||
387 | eval $1+=\$2 |
||
388 | }' |
||
389 | else |
||
390 | as_fn_append () |
||
391 | { |
||
392 | eval $1=\$$1\$2 |
||
393 | } |
||
394 | fi # as_fn_append |
||
395 | |||
396 | # as_fn_arith ARG... |
||
397 | # ------------------ |
||
398 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
||
399 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
||
400 | # must be portable across $(()) and expr. |
||
401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
||
402 | eval 'as_fn_arith () |
||
403 | { |
||
404 | as_val=$(( $* )) |
||
405 | }' |
||
406 | else |
||
407 | as_fn_arith () |
||
408 | { |
||
409 | as_val=`expr "$@" || test $? -eq 1` |
||
410 | } |
||
411 | fi # as_fn_arith |
||
412 | |||
413 | |||
414 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
||
415 | # ---------------------------------------- |
||
416 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
||
417 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
||
418 | # script with STATUS, using 1 if that was 0. |
||
419 | as_fn_error () |
||
420 | { |
||
421 | as_status=$1; test $as_status -eq 0 && as_status=1 |
||
422 | if test "$4"; then |
||
423 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
424 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
||
425 | fi |
||
426 | $as_echo "$as_me: error: $2" >&2 |
||
427 | as_fn_exit $as_status |
||
428 | } # as_fn_error |
||
429 | |||
430 | if expr a : '\(a\)' >/dev/null 2>&1 && |
||
431 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
||
432 | as_expr=expr |
||
433 | else |
||
434 | as_expr=false |
||
435 | fi |
||
436 | |||
437 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
||
438 | as_basename=basename |
||
439 | else |
||
440 | as_basename=false |
||
441 | fi |
||
442 | |||
443 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
||
444 | as_dirname=dirname |
||
445 | else |
||
446 | as_dirname=false |
||
447 | fi |
||
448 | |||
449 | as_me=`$as_basename -- "$0" || |
||
450 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
||
451 | X"$0" : 'X\(//\)$' \| \ |
||
452 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
||
453 | $as_echo X/"$0" | |
||
454 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
||
455 | s//\1/ |
||
456 | q |
||
457 | } |
||
458 | /^X\/\(\/\/\)$/{ |
||
459 | s//\1/ |
||
460 | q |
||
461 | } |
||
462 | /^X\/\(\/\).*/{ |
||
463 | s//\1/ |
||
464 | q |
||
465 | } |
||
466 | s/.*/./; q'` |
||
467 | |||
468 | # Avoid depending upon Character Ranges. |
||
469 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
||
470 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
471 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
||
472 | as_cr_digits='0123456789' |
||
473 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
||
474 | |||
475 | |||
476 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
||
477 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
||
478 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
||
479 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
||
480 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
||
481 | sed -n ' |
||
482 | p |
||
483 | /[$]LINENO/= |
||
484 | ' <$as_myself | |
||
485 | sed ' |
||
486 | s/[$]LINENO.*/&-/ |
||
487 | t lineno |
||
488 | b |
||
489 | :lineno |
||
490 | N |
||
491 | :loop |
||
492 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
||
493 | t loop |
||
494 | s/-\n.*// |
||
495 | ' >$as_me.lineno && |
||
496 | chmod +x "$as_me.lineno" || |
||
497 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
||
498 | |||
499 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
||
500 | # already done that, so ensure we don't try to do so again and fall |
||
501 | # in an infinite loop. This has already happened in practice. |
||
502 | _as_can_reexec=no; export _as_can_reexec |
||
503 | # Don't try to exec as it changes $[0], causing all sort of problems |
||
504 | # (the dirname of $[0] is not the place where we might find the |
||
505 | # original and so on. Autoconf is especially sensitive to this). |
||
506 | . "./$as_me.lineno" |
||
507 | # Exit status is that of the last command. |
||
508 | exit |
||
509 | } |
||
510 | |||
511 | ECHO_C= ECHO_N= ECHO_T= |
||
512 | case `echo -n x` in #((((( |
||
513 | -n*) |
||
514 | case `echo 'xy\c'` in |
||
515 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
||
516 | xy) ECHO_C='\c';; |
||
517 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
||
518 | ECHO_T=' ';; |
||
519 | esac;; |
||
520 | *) |
||
521 | ECHO_N='-n';; |
||
522 | esac |
||
523 | |||
524 | rm -f conf$$ conf$$.exe conf$$.file |
||
525 | if test -d conf$$.dir; then |
||
526 | rm -f conf$$.dir/conf$$.file |
||
527 | else |
||
528 | rm -f conf$$.dir |
||
529 | mkdir conf$$.dir 2>/dev/null |
||
530 | fi |
||
531 | if (echo >conf$$.file) 2>/dev/null; then |
||
532 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
||
533 | as_ln_s='ln -s' |
||
534 | # ... but there are two gotchas: |
||
535 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
||
536 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
||
537 | # In both cases, we have to default to `cp -pR'. |
||
538 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
||
539 | as_ln_s='cp -pR' |
||
540 | elif ln conf$$.file conf$$ 2>/dev/null; then |
||
541 | as_ln_s=ln |
||
542 | else |
||
543 | as_ln_s='cp -pR' |
||
544 | fi |
||
545 | else |
||
546 | as_ln_s='cp -pR' |
||
547 | fi |
||
548 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
||
549 | rmdir conf$$.dir 2>/dev/null |
||
550 | |||
551 | if mkdir -p . 2>/dev/null; then |
||
552 | as_mkdir_p='mkdir -p "$as_dir"' |
||
553 | else |
||
554 | test -d ./-p && rmdir ./-p |
||
555 | as_mkdir_p=false |
||
556 | fi |
||
557 | |||
558 | as_test_x='test -x' |
||
559 | as_executable_p=as_fn_executable_p |
||
560 | |||
561 | # Sed expression to map a string onto a valid CPP name. |
||
562 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
||
563 | |||
564 | # Sed expression to map a string onto a valid variable name. |
||
565 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
||
566 | |||
567 | SHELL=${CONFIG_SHELL-/bin/sh} |
||
568 | |||
569 | |||
570 | test -n "$DJDIR" || exec 7<&0 </dev/null |
||
571 | exec 6>&1 |
||
572 | |||
573 | # Name of the host. |
||
574 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
||
575 | # so uname gets run too. |
||
576 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
||
577 | |||
578 | # |
||
579 | # Initializations. |
||
580 | # |
||
581 | ac_default_prefix=/usr/local |
||
582 | ac_clean_files= |
||
583 | ac_config_libobj_dir=. |
||
584 | LIBOBJS= |
||
585 | cross_compiling=no |
||
586 | subdirs= |
||
587 | MFLAGS= |
||
588 | MAKEFLAGS= |
||
589 | |||
590 | # Identity of this package. |
||
591 | PACKAGE_NAME='metal' |
||
592 | PACKAGE_TARNAME='metal' |
||
593 | PACKAGE_VERSION='1.2' |
||
594 | PACKAGE_STRING='metal 1.2' |
||
595 | PACKAGE_BUGREPORT='mike@hamble.online' |
||
596 | PACKAGE_URL='' |
||
597 | |||
598 | ac_unique_file="." |
||
599 | # Factoring default headers for most tests. |
||
600 | ac_includes_default="\ |
||
601 | #include <stdio.h> |
||
602 | #ifdef HAVE_SYS_TYPES_H |
||
603 | # include <sys/types.h> |
||
604 | #endif |
||
605 | #ifdef HAVE_SYS_STAT_H |
||
606 | # include <sys/stat.h> |
||
607 | #endif |
||
608 | #ifdef STDC_HEADERS |
||
609 | # include <stdlib.h> |
||
610 | # include <stddef.h> |
||
611 | #else |
||
612 | # ifdef HAVE_STDLIB_H |
||
613 | # include <stdlib.h> |
||
614 | # endif |
||
615 | #endif |
||
616 | #ifdef HAVE_STRING_H |
||
617 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
||
618 | # include <memory.h> |
||
619 | # endif |
||
620 | # include <string.h> |
||
621 | #endif |
||
622 | #ifdef HAVE_STRINGS_H |
||
623 | # include <strings.h> |
||
624 | #endif |
||
625 | #ifdef HAVE_INTTYPES_H |
||
626 | # include <inttypes.h> |
||
627 | #endif |
||
628 | #ifdef HAVE_STDINT_H |
||
629 | # include <stdint.h> |
||
630 | #endif |
||
631 | #ifdef HAVE_UNISTD_H |
||
632 | # include <unistd.h> |
||
633 | #endif" |
||
634 | |||
635 | ac_subst_vars='am__EXEEXT_FALSE |
||
636 | am__EXEEXT_TRUE |
||
637 | LTLIBOBJS |
||
638 | LIBOBJS |
||
639 | CXXCPP |
||
640 | am__fastdepCXX_FALSE |
||
641 | am__fastdepCXX_TRUE |
||
642 | CXXDEPMODE |
||
643 | ac_ct_CXX |
||
644 | CXXFLAGS |
||
645 | CXX |
||
646 | MAINT |
||
647 | MAINTAINER_MODE_FALSE |
||
648 | MAINTAINER_MODE_TRUE |
||
649 | YFLAGS |
||
650 | YACC |
||
651 | LEXLIB |
||
652 | LEX_OUTPUT_ROOT |
||
653 | LEX |
||
654 | CPP |
||
655 | LT_SYS_LIBRARY_PATH |
||
656 | OTOOL64 |
||
657 | OTOOL |
||
658 | LIPO |
||
659 | NMEDIT |
||
660 | DSYMUTIL |
||
661 | MANIFEST_TOOL |
||
662 | RANLIB |
||
663 | ac_ct_AR |
||
664 | AR |
||
665 | DLLTOOL |
||
666 | OBJDUMP |
||
667 | LN_S |
||
668 | NM |
||
669 | ac_ct_DUMPBIN |
||
670 | DUMPBIN |
||
671 | LD |
||
672 | FGREP |
||
673 | EGREP |
||
674 | GREP |
||
675 | SED |
||
676 | am__fastdepCC_FALSE |
||
677 | am__fastdepCC_TRUE |
||
678 | CCDEPMODE |
||
679 | am__nodep |
||
680 | AMDEPBACKSLASH |
||
681 | AMDEP_FALSE |
||
682 | AMDEP_TRUE |
||
683 | am__quote |
||
684 | am__include |
||
685 | DEPDIR |
||
686 | OBJEXT |
||
687 | EXEEXT |
||
688 | ac_ct_CC |
||
689 | CPPFLAGS |
||
690 | LDFLAGS |
||
691 | CFLAGS |
||
692 | CC |
||
693 | LIBTOOL |
||
694 | AM_BACKSLASH |
||
695 | AM_DEFAULT_VERBOSITY |
||
696 | AM_DEFAULT_V |
||
697 | AM_V |
||
698 | am__untar |
||
699 | am__tar |
||
700 | AMTAR |
||
701 | am__leading_dot |
||
702 | SET_MAKE |
||
703 | AWK |
||
704 | mkdir_p |
||
705 | MKDIR_P |
||
706 | INSTALL_STRIP_PROGRAM |
||
707 | STRIP |
||
708 | install_sh |
||
709 | MAKEINFO |
||
710 | AUTOHEADER |
||
711 | AUTOMAKE |
||
712 | AUTOCONF |
||
713 | ACLOCAL |
||
714 | VERSION |
||
715 | PACKAGE |
||
716 | CYGPATH_W |
||
717 | am__isrc |
||
718 | INSTALL_DATA |
||
719 | INSTALL_SCRIPT |
||
720 | INSTALL_PROGRAM |
||
721 | host_os |
||
722 | host_vendor |
||
723 | host_cpu |
||
724 | host |
||
725 | build_os |
||
726 | build_vendor |
||
727 | build_cpu |
||
728 | build |
||
729 | target_alias |
||
730 | host_alias |
||
731 | build_alias |
||
732 | LIBS |
||
733 | ECHO_T |
||
734 | ECHO_N |
||
735 | ECHO_C |
||
736 | DEFS |
||
737 | mandir |
||
738 | localedir |
||
739 | libdir |
||
740 | psdir |
||
741 | pdfdir |
||
742 | dvidir |
||
743 | htmldir |
||
744 | infodir |
||
745 | docdir |
||
746 | oldincludedir |
||
747 | includedir |
||
748 | runstatedir |
||
749 | localstatedir |
||
750 | sharedstatedir |
||
751 | sysconfdir |
||
752 | datadir |
||
753 | datarootdir |
||
754 | libexecdir |
||
755 | sbindir |
||
756 | bindir |
||
757 | program_transform_name |
||
758 | prefix |
||
759 | exec_prefix |
||
760 | PACKAGE_URL |
||
761 | PACKAGE_BUGREPORT |
||
762 | PACKAGE_STRING |
||
763 | PACKAGE_VERSION |
||
764 | PACKAGE_TARNAME |
||
765 | PACKAGE_NAME |
||
766 | PATH_SEPARATOR |
||
767 | SHELL' |
||
768 | ac_subst_files='' |
||
769 | ac_user_opts=' |
||
770 | enable_option_checking |
||
771 | enable_silent_rules |
||
772 | enable_shared |
||
773 | enable_static |
||
774 | with_pic |
||
775 | enable_fast_install |
||
776 | with_aix_soname |
||
777 | enable_dependency_tracking |
||
778 | with_gnu_ld |
||
779 | with_sysroot |
||
780 | enable_libtool_lock |
||
781 | enable_maintainer_mode |
||
782 | ' |
||
783 | ac_precious_vars='build_alias |
||
784 | host_alias |
||
785 | target_alias |
||
786 | CC |
||
787 | CFLAGS |
||
788 | LDFLAGS |
||
789 | LIBS |
||
790 | CPPFLAGS |
||
791 | LT_SYS_LIBRARY_PATH |
||
792 | CPP |
||
793 | YACC |
||
794 | YFLAGS |
||
795 | CXX |
||
796 | CXXFLAGS |
||
797 | CCC |
||
798 | CXXCPP' |
||
799 | |||
800 | |||
801 | # Initialize some variables set by options. |
||
802 | ac_init_help= |
||
803 | ac_init_version=false |
||
804 | ac_unrecognized_opts= |
||
805 | ac_unrecognized_sep= |
||
806 | # The variables have the same names as the options, with |
||
807 | # dashes changed to underlines. |
||
808 | cache_file=/dev/null |
||
809 | exec_prefix=NONE |
||
810 | no_create= |
||
811 | no_recursion= |
||
812 | prefix=NONE |
||
813 | program_prefix=NONE |
||
814 | program_suffix=NONE |
||
815 | program_transform_name=s,x,x, |
||
816 | silent= |
||
817 | site= |
||
818 | srcdir= |
||
819 | verbose= |
||
820 | x_includes=NONE |
||
821 | x_libraries=NONE |
||
822 | |||
823 | # Installation directory options. |
||
824 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
||
825 | # and all the variables that are supposed to be based on exec_prefix |
||
826 | # by default will actually change. |
||
827 | # Use braces instead of parens because sh, perl, etc. also accept them. |
||
828 | # (The list follows the same order as the GNU Coding Standards.) |
||
829 | bindir='${exec_prefix}/bin' |
||
830 | sbindir='${exec_prefix}/sbin' |
||
831 | libexecdir='${exec_prefix}/libexec' |
||
832 | datarootdir='${prefix}/share' |
||
833 | datadir='${datarootdir}' |
||
834 | sysconfdir='${prefix}/etc' |
||
835 | sharedstatedir='${prefix}/com' |
||
836 | localstatedir='${prefix}/var' |
||
837 | runstatedir='${localstatedir}/run' |
||
838 | includedir='${prefix}/include' |
||
839 | oldincludedir='/usr/include' |
||
840 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
||
841 | infodir='${datarootdir}/info' |
||
842 | htmldir='${docdir}' |
||
843 | dvidir='${docdir}' |
||
844 | pdfdir='${docdir}' |
||
845 | psdir='${docdir}' |
||
846 | libdir='${exec_prefix}/lib' |
||
847 | localedir='${datarootdir}/locale' |
||
848 | mandir='${datarootdir}/man' |
||
849 | |||
850 | ac_prev= |
||
851 | ac_dashdash= |
||
852 | for ac_option |
||
853 | do |
||
854 | # If the previous option needs an argument, assign it. |
||
855 | if test -n "$ac_prev"; then |
||
856 | eval $ac_prev=\$ac_option |
||
857 | ac_prev= |
||
858 | continue |
||
859 | fi |
||
860 | |||
861 | case $ac_option in |
||
862 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
||
863 | *=) ac_optarg= ;; |
||
864 | *) ac_optarg=yes ;; |
||
865 | esac |
||
866 | |||
867 | # Accept the important Cygnus configure options, so we can diagnose typos. |
||
868 | |||
869 | case $ac_dashdash$ac_option in |
||
870 | --) |
||
871 | ac_dashdash=yes ;; |
||
872 | |||
873 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
||
874 | ac_prev=bindir ;; |
||
875 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
||
876 | bindir=$ac_optarg ;; |
||
877 | |||
878 | -build | --build | --buil | --bui | --bu) |
||
879 | ac_prev=build_alias ;; |
||
880 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
||
881 | build_alias=$ac_optarg ;; |
||
882 | |||
883 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
||
884 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
||
885 | ac_prev=cache_file ;; |
||
886 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
||
887 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
||
888 | cache_file=$ac_optarg ;; |
||
889 | |||
890 | --config-cache | -C) |
||
891 | cache_file=config.cache ;; |
||
892 | |||
893 | -datadir | --datadir | --datadi | --datad) |
||
894 | ac_prev=datadir ;; |
||
895 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
||
896 | datadir=$ac_optarg ;; |
||
897 | |||
898 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
||
899 | | --dataroo | --dataro | --datar) |
||
900 | ac_prev=datarootdir ;; |
||
901 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
||
902 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
||
903 | datarootdir=$ac_optarg ;; |
||
904 | |||
905 | -disable-* | --disable-*) |
||
906 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
||
907 | # Reject names that are not valid shell variable names. |
||
908 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
||
909 | as_fn_error $? "invalid feature name: $ac_useropt" |
||
910 | ac_useropt_orig=$ac_useropt |
||
911 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
||
912 | case $ac_user_opts in |
||
913 | *" |
||
914 | "enable_$ac_useropt" |
||
915 | "*) ;; |
||
916 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
||
917 | ac_unrecognized_sep=', ';; |
||
918 | esac |
||
919 | eval enable_$ac_useropt=no ;; |
||
920 | |||
921 | -docdir | --docdir | --docdi | --doc | --do) |
||
922 | ac_prev=docdir ;; |
||
923 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
||
924 | docdir=$ac_optarg ;; |
||
925 | |||
926 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
||
927 | ac_prev=dvidir ;; |
||
928 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
||
929 | dvidir=$ac_optarg ;; |
||
930 | |||
931 | -enable-* | --enable-*) |
||
932 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
||
933 | # Reject names that are not valid shell variable names. |
||
934 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
||
935 | as_fn_error $? "invalid feature name: $ac_useropt" |
||
936 | ac_useropt_orig=$ac_useropt |
||
937 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
||
938 | case $ac_user_opts in |
||
939 | *" |
||
940 | "enable_$ac_useropt" |
||
941 | "*) ;; |
||
942 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
||
943 | ac_unrecognized_sep=', ';; |
||
944 | esac |
||
945 | eval enable_$ac_useropt=\$ac_optarg ;; |
||
946 | |||
947 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
||
948 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
||
949 | | --exec | --exe | --ex) |
||
950 | ac_prev=exec_prefix ;; |
||
951 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
||
952 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
||
953 | | --exec=* | --exe=* | --ex=*) |
||
954 | exec_prefix=$ac_optarg ;; |
||
955 | |||
956 | -gas | --gas | --ga | --g) |
||
957 | # Obsolete; use --with-gas. |
||
958 | with_gas=yes ;; |
||
959 | |||
960 | -help | --help | --hel | --he | -h) |
||
961 | ac_init_help=long ;; |
||
962 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
||
963 | ac_init_help=recursive ;; |
||
964 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
||
965 | ac_init_help=short ;; |
||
966 | |||
967 | -host | --host | --hos | --ho) |
||
968 | ac_prev=host_alias ;; |
||
969 | -host=* | --host=* | --hos=* | --ho=*) |
||
970 | host_alias=$ac_optarg ;; |
||
971 | |||
972 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
||
973 | ac_prev=htmldir ;; |
||
974 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
||
975 | | --ht=*) |
||
976 | htmldir=$ac_optarg ;; |
||
977 | |||
978 | -includedir | --includedir | --includedi | --included | --include \ |
||
979 | | --includ | --inclu | --incl | --inc) |
||
980 | ac_prev=includedir ;; |
||
981 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
||
982 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
||
983 | includedir=$ac_optarg ;; |
||
984 | |||
985 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
||
986 | ac_prev=infodir ;; |
||
987 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
||
988 | infodir=$ac_optarg ;; |
||
989 | |||
990 | -libdir | --libdir | --libdi | --libd) |
||
991 | ac_prev=libdir ;; |
||
992 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
||
993 | libdir=$ac_optarg ;; |
||
994 | |||
995 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
||
996 | | --libexe | --libex | --libe) |
||
997 | ac_prev=libexecdir ;; |
||
998 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
||
999 | | --libexe=* | --libex=* | --libe=*) |
||
1000 | libexecdir=$ac_optarg ;; |
||
1001 | |||
1002 | -localedir | --localedir | --localedi | --localed | --locale) |
||
1003 | ac_prev=localedir ;; |
||
1004 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
||
1005 | localedir=$ac_optarg ;; |
||
1006 | |||
1007 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
||
1008 | | --localstate | --localstat | --localsta | --localst | --locals) |
||
1009 | ac_prev=localstatedir ;; |
||
1010 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
||
1011 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
||
1012 | localstatedir=$ac_optarg ;; |
||
1013 | |||
1014 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
||
1015 | ac_prev=mandir ;; |
||
1016 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
||
1017 | mandir=$ac_optarg ;; |
||
1018 | |||
1019 | -nfp | --nfp | --nf) |
||
1020 | # Obsolete; use --without-fp. |
||
1021 | with_fp=no ;; |
||
1022 | |||
1023 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
||
1024 | | --no-cr | --no-c | -n) |
||
1025 | no_create=yes ;; |
||
1026 | |||
1027 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
||
1028 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
||
1029 | no_recursion=yes ;; |
||
1030 | |||
1031 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
||
1032 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
||
1033 | | --oldin | --oldi | --old | --ol | --o) |
||
1034 | ac_prev=oldincludedir ;; |
||
1035 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
||
1036 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
||
1037 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
||
1038 | oldincludedir=$ac_optarg ;; |
||
1039 | |||
1040 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
||
1041 | ac_prev=prefix ;; |
||
1042 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
||
1043 | prefix=$ac_optarg ;; |
||
1044 | |||
1045 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
||
1046 | | --program-pre | --program-pr | --program-p) |
||
1047 | ac_prev=program_prefix ;; |
||
1048 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
||
1049 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
||
1050 | program_prefix=$ac_optarg ;; |
||
1051 | |||
1052 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
||
1053 | | --program-suf | --program-su | --program-s) |
||
1054 | ac_prev=program_suffix ;; |
||
1055 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
||
1056 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
||
1057 | program_suffix=$ac_optarg ;; |
||
1058 | |||
1059 | -program-transform-name | --program-transform-name \ |
||
1060 | | --program-transform-nam | --program-transform-na \ |
||
1061 | | --program-transform-n | --program-transform- \ |
||
1062 | | --program-transform | --program-transfor \ |
||
1063 | | --program-transfo | --program-transf \ |
||
1064 | | --program-trans | --program-tran \ |
||
1065 | | --progr-tra | --program-tr | --program-t) |
||
1066 | ac_prev=program_transform_name ;; |
||
1067 | -program-transform-name=* | --program-transform-name=* \ |
||
1068 | | --program-transform-nam=* | --program-transform-na=* \ |
||
1069 | | --program-transform-n=* | --program-transform-=* \ |
||
1070 | | --program-transform=* | --program-transfor=* \ |
||
1071 | | --program-transfo=* | --program-transf=* \ |
||
1072 | | --program-trans=* | --program-tran=* \ |
||
1073 | | --progr-tra=* | --program-tr=* | --program-t=*) |
||
1074 | program_transform_name=$ac_optarg ;; |
||
1075 | |||
1076 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
||
1077 | ac_prev=pdfdir ;; |
||
1078 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
||
1079 | pdfdir=$ac_optarg ;; |
||
1080 | |||
1081 | -psdir | --psdir | --psdi | --psd | --ps) |
||
1082 | ac_prev=psdir ;; |
||
1083 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
||
1084 | psdir=$ac_optarg ;; |
||
1085 | |||
1086 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
1087 | | -silent | --silent | --silen | --sile | --sil) |
||
1088 | silent=yes ;; |
||
1089 | |||
1090 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
||
1091 | | --runstate | --runstat | --runsta | --runst | --runs \ |
||
1092 | | --run | --ru | --r) |
||
1093 | ac_prev=runstatedir ;; |
||
1094 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
||
1095 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
||
1096 | | --run=* | --ru=* | --r=*) |
||
1097 | runstatedir=$ac_optarg ;; |
||
1098 | |||
1099 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
||
1100 | ac_prev=sbindir ;; |
||
1101 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
||
1102 | | --sbi=* | --sb=*) |
||
1103 | sbindir=$ac_optarg ;; |
||
1104 | |||
1105 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
||
1106 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
||
1107 | | --sharedst | --shareds | --shared | --share | --shar \ |
||
1108 | | --sha | --sh) |
||
1109 | ac_prev=sharedstatedir ;; |
||
1110 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
||
1111 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
||
1112 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
||
1113 | | --sha=* | --sh=*) |
||
1114 | sharedstatedir=$ac_optarg ;; |
||
1115 | |||
1116 | -site | --site | --sit) |
||
1117 | ac_prev=site ;; |
||
1118 | -site=* | --site=* | --sit=*) |
||
1119 | site=$ac_optarg ;; |
||
1120 | |||
1121 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
||
1122 | ac_prev=srcdir ;; |
||
1123 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
||
1124 | srcdir=$ac_optarg ;; |
||
1125 | |||
1126 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
||
1127 | | --syscon | --sysco | --sysc | --sys | --sy) |
||
1128 | ac_prev=sysconfdir ;; |
||
1129 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
||
1130 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
||
1131 | sysconfdir=$ac_optarg ;; |
||
1132 | |||
1133 | -target | --target | --targe | --targ | --tar | --ta | --t) |
||
1134 | ac_prev=target_alias ;; |
||
1135 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
||
1136 | target_alias=$ac_optarg ;; |
||
1137 | |||
1138 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
||
1139 | verbose=yes ;; |
||
1140 | |||
1141 | -version | --version | --versio | --versi | --vers | -V) |
||
1142 | ac_init_version=: ;; |
||
1143 | |||
1144 | -with-* | --with-*) |
||
1145 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
||
1146 | # Reject names that are not valid shell variable names. |
||
1147 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
||
1148 | as_fn_error $? "invalid package name: $ac_useropt" |
||
1149 | ac_useropt_orig=$ac_useropt |
||
1150 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
||
1151 | case $ac_user_opts in |
||
1152 | *" |
||
1153 | "with_$ac_useropt" |
||
1154 | "*) ;; |
||
1155 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
||
1156 | ac_unrecognized_sep=', ';; |
||
1157 | esac |
||
1158 | eval with_$ac_useropt=\$ac_optarg ;; |
||
1159 | |||
1160 | -without-* | --without-*) |
||
1161 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
||
1162 | # Reject names that are not valid shell variable names. |
||
1163 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
||
1164 | as_fn_error $? "invalid package name: $ac_useropt" |
||
1165 | ac_useropt_orig=$ac_useropt |
||
1166 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
||
1167 | case $ac_user_opts in |
||
1168 | *" |
||
1169 | "with_$ac_useropt" |
||
1170 | "*) ;; |
||
1171 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
||
1172 | ac_unrecognized_sep=', ';; |
||
1173 | esac |
||
1174 | eval with_$ac_useropt=no ;; |
||
1175 | |||
1176 | --x) |
||
1177 | # Obsolete; use --with-x. |
||
1178 | with_x=yes ;; |
||
1179 | |||
1180 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
||
1181 | | --x-incl | --x-inc | --x-in | --x-i) |
||
1182 | ac_prev=x_includes ;; |
||
1183 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
||
1184 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
||
1185 | x_includes=$ac_optarg ;; |
||
1186 | |||
1187 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
||
1188 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
||
1189 | ac_prev=x_libraries ;; |
||
1190 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
||
1191 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
||
1192 | x_libraries=$ac_optarg ;; |
||
1193 | |||
1194 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
||
1195 | Try \`$0 --help' for more information" |
||
1196 | ;; |
||
1197 | |||
1198 | *=*) |
||
1199 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
||
1200 | # Reject names that are not valid shell variable names. |
||
1201 | case $ac_envvar in #( |
||
1202 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
||
1203 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
||
1204 | esac |
||
1205 | eval $ac_envvar=\$ac_optarg |
||
1206 | export $ac_envvar ;; |
||
1207 | |||
1208 | *) |
||
1209 | # FIXME: should be removed in autoconf 3.0. |
||
1210 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
||
1211 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
||
1212 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
||
1213 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
||
1214 | ;; |
||
1215 | |||
1216 | esac |
||
1217 | done |
||
1218 | |||
1219 | if test -n "$ac_prev"; then |
||
1220 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
||
1221 | as_fn_error $? "missing argument to $ac_option" |
||
1222 | fi |
||
1223 | |||
1224 | if test -n "$ac_unrecognized_opts"; then |
||
1225 | case $enable_option_checking in |
||
1226 | no) ;; |
||
1227 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
||
1228 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
||
1229 | esac |
||
1230 | fi |
||
1231 | |||
1232 | # Check all directory arguments for consistency. |
||
1233 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
||
1234 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
||
1235 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
||
1236 | libdir localedir mandir runstatedir |
||
1237 | do |
||
1238 | eval ac_val=\$$ac_var |
||
1239 | # Remove trailing slashes. |
||
1240 | case $ac_val in |
||
1241 | */ ) |
||
1242 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
||
1243 | eval $ac_var=\$ac_val;; |
||
1244 | esac |
||
1245 | # Be sure to have absolute directory names. |
||
1246 | case $ac_val in |
||
1247 | [\\/$]* | ?:[\\/]* ) continue;; |
||
1248 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
||
1249 | esac |
||
1250 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
||
1251 | done |
||
1252 | |||
1253 | # There might be people who depend on the old broken behavior: `$host' |
||
1254 | # used to hold the argument of --host etc. |
||
1255 | # FIXME: To remove some day. |
||
1256 | build=$build_alias |
||
1257 | host=$host_alias |
||
1258 | target=$target_alias |
||
1259 | |||
1260 | # FIXME: To remove some day. |
||
1261 | if test "x$host_alias" != x; then |
||
1262 | if test "x$build_alias" = x; then |
||
1263 | cross_compiling=maybe |
||
1264 | elif test "x$build_alias" != "x$host_alias"; then |
||
1265 | cross_compiling=yes |
||
1266 | fi |
||
1267 | fi |
||
1268 | |||
1269 | ac_tool_prefix= |
||
1270 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
||
1271 | |||
1272 | test "$silent" = yes && exec 6>/dev/null |
||
1273 | |||
1274 | |||
1275 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
||
1276 | ac_ls_di=`ls -di .` && |
||
1277 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
||
1278 | as_fn_error $? "working directory cannot be determined" |
||
1279 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
||
1280 | as_fn_error $? "pwd does not report name of working directory" |
||
1281 | |||
1282 | |||
1283 | # Find the source files, if location was not specified. |
||
1284 | if test -z "$srcdir"; then |
||
1285 | ac_srcdir_defaulted=yes |
||
1286 | # Try the directory containing this script, then the parent directory. |
||
1287 | ac_confdir=`$as_dirname -- "$as_myself" || |
||
1288 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
1289 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
||
1290 | X"$as_myself" : 'X\(//\)$' \| \ |
||
1291 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
||
1292 | $as_echo X"$as_myself" | |
||
1293 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
1294 | s//\1/ |
||
1295 | q |
||
1296 | } |
||
1297 | /^X\(\/\/\)[^/].*/{ |
||
1298 | s//\1/ |
||
1299 | q |
||
1300 | } |
||
1301 | /^X\(\/\/\)$/{ |
||
1302 | s//\1/ |
||
1303 | q |
||
1304 | } |
||
1305 | /^X\(\/\).*/{ |
||
1306 | s//\1/ |
||
1307 | q |
||
1308 | } |
||
1309 | s/.*/./; q'` |
||
1310 | srcdir=$ac_confdir |
||
1311 | if test ! -r "$srcdir/$ac_unique_file"; then |
||
1312 | srcdir=.. |
||
1313 | fi |
||
1314 | else |
||
1315 | ac_srcdir_defaulted=no |
||
1316 | fi |
||
1317 | if test ! -r "$srcdir/$ac_unique_file"; then |
||
1318 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
||
1319 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
||
1320 | fi |
||
1321 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
||
1322 | ac_abs_confdir=`( |
||
1323 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
||
1324 | pwd)` |
||
1325 | # When building in place, set srcdir=. |
||
1326 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
||
1327 | srcdir=. |
||
1328 | fi |
||
1329 | # Remove unnecessary trailing slashes from srcdir. |
||
1330 | # Double slashes in file names in object file debugging info |
||
1331 | # mess up M-x gdb in Emacs. |
||
1332 | case $srcdir in |
||
1333 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
||
1334 | esac |
||
1335 | for ac_var in $ac_precious_vars; do |
||
1336 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
||
1337 | eval ac_env_${ac_var}_value=\$${ac_var} |
||
1338 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
||
1339 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
||
1340 | done |
||
1341 | |||
1342 | # |
||
1343 | # Report the --help message. |
||
1344 | # |
||
1345 | if test "$ac_init_help" = "long"; then |
||
1346 | # Omit some internal or obsolete options to make the list less imposing. |
||
1347 | # This message is too long to be a string in the A/UX 3.1 sh. |
||
1348 | cat <<_ACEOF |
||
1349 | \`configure' configures metal 1.2 to adapt to many kinds of systems. |
||
1350 | |||
1351 | Usage: $0 [OPTION]... [VAR=VALUE]... |
||
1352 | |||
1353 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
||
1354 | VAR=VALUE. See below for descriptions of some of the useful variables. |
||
1355 | |||
1356 | Defaults for the options are specified in brackets. |
||
1357 | |||
1358 | Configuration: |
||
1359 | -h, --help display this help and exit |
||
1360 | --help=short display options specific to this package |
||
1361 | --help=recursive display the short help of all the included packages |
||
1362 | -V, --version display version information and exit |
||
1363 | -q, --quiet, --silent do not print \`checking ...' messages |
||
1364 | --cache-file=FILE cache test results in FILE [disabled] |
||
1365 | -C, --config-cache alias for \`--cache-file=config.cache' |
||
1366 | -n, --no-create do not create output files |
||
1367 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
||
1368 | |||
1369 | Installation directories: |
||
1370 | --prefix=PREFIX install architecture-independent files in PREFIX |
||
1371 | [$ac_default_prefix] |
||
1372 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
||
1373 | [PREFIX] |
||
1374 | |||
1375 | By default, \`make install' will install all the files in |
||
1376 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
||
1377 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
||
1378 | for instance \`--prefix=\$HOME'. |
||
1379 | |||
1380 | For better control, use the options below. |
||
1381 | |||
1382 | Fine tuning of the installation directories: |
||
1383 | --bindir=DIR user executables [EPREFIX/bin] |
||
1384 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
||
1385 | --libexecdir=DIR program executables [EPREFIX/libexec] |
||
1386 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
||
1387 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
||
1388 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
||
1389 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
||
1390 | --libdir=DIR object code libraries [EPREFIX/lib] |
||
1391 | --includedir=DIR C header files [PREFIX/include] |
||
1392 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
||
1393 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
||
1394 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
||
1395 | --infodir=DIR info documentation [DATAROOTDIR/info] |
||
1396 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
||
1397 | --mandir=DIR man documentation [DATAROOTDIR/man] |
||
1398 | --docdir=DIR documentation root [DATAROOTDIR/doc/metal] |
||
1399 | --htmldir=DIR html documentation [DOCDIR] |
||
1400 | --dvidir=DIR dvi documentation [DOCDIR] |
||
1401 | --pdfdir=DIR pdf documentation [DOCDIR] |
||
1402 | --psdir=DIR ps documentation [DOCDIR] |
||
1403 | _ACEOF |
||
1404 | |||
1405 | cat <<\_ACEOF |
||
1406 | |||
1407 | Program names: |
||
1408 | --program-prefix=PREFIX prepend PREFIX to installed program names |
||
1409 | --program-suffix=SUFFIX append SUFFIX to installed program names |
||
1410 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
||
1411 | |||
1412 | System types: |
||
1413 | --build=BUILD configure for building on BUILD [guessed] |
||
1414 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
||
1415 | _ACEOF |
||
1416 | fi |
||
1417 | |||
1418 | if test -n "$ac_init_help"; then |
||
1419 | case $ac_init_help in |
||
1420 | short | recursive ) echo "Configuration of metal 1.2:";; |
||
1421 | esac |
||
1422 | cat <<\_ACEOF |
||
1423 | |||
1424 | Optional Features: |
||
1425 | --disable-option-checking ignore unrecognized --enable/--with options |
||
1426 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
||
1427 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
||
1428 | --enable-silent-rules less verbose build output (undo: "make V=1") |
||
1429 | --disable-silent-rules verbose build output (undo: "make V=0") |
||
1430 | --enable-shared[=PKGS] build shared libraries [default=yes] |
||
1431 | --enable-static[=PKGS] build static libraries [default=yes] |
||
1432 | --enable-fast-install[=PKGS] |
||
1433 | optimize for fast installation [default=yes] |
||
1434 | --enable-dependency-tracking |
||
1435 | do not reject slow dependency extractors |
||
1436 | --disable-dependency-tracking |
||
1437 | speeds up one-time build |
||
1438 | --disable-libtool-lock avoid locking (might break parallel builds) |
||
1439 | --enable-maintainer-mode |
||
1440 | enable make rules and dependencies not useful (and |
||
1441 | sometimes confusing) to the casual installer |
||
1442 | |||
1443 | Optional Packages: |
||
1444 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
||
1445 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
||
1446 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
||
1447 | both] |
||
1448 | --with-aix-soname=aix|svr4|both |
||
1449 | shared library versioning (aka "SONAME") variant to |
||
1450 | provide on AIX, [default=aix]. |
||
1451 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
||
1452 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
||
1453 | compiler's sysroot if not specified). |
||
1454 | |||
1455 | Some influential environment variables: |
||
1456 | CC C compiler command |
||
1457 | CFLAGS C compiler flags |
||
1458 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
||
1459 | nonstandard directory <lib dir> |
||
1460 | LIBS libraries to pass to the linker, e.g. -l<library> |
||
1461 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
||
1462 | you have headers in a nonstandard directory <include dir> |
||
1463 | LT_SYS_LIBRARY_PATH |
||
1464 | User-defined run-time library search path. |
||
1465 | CPP C preprocessor |
||
1466 | YACC The `Yet Another Compiler Compiler' implementation to use. |
||
1467 | Defaults to the first program found out of: `bison -y', `byacc', |
||
1468 | `yacc'. |
||
1469 | YFLAGS The list of arguments that will be passed by default to $YACC. |
||
1470 | This script will default YFLAGS to the empty string to avoid a |
||
1471 | default value of `-d' given by some make applications. |
||
1472 | CXX C++ compiler command |
||
1473 | CXXFLAGS C++ compiler flags |
||
1474 | CXXCPP C++ preprocessor |
||
1475 | |||
1476 | Use these variables to override the choices made by `configure' or to help |
||
1477 | it to find libraries and programs with nonstandard names/locations. |
||
1478 | |||
1479 | Report bugs to <mike@hamble.online>. |
||
1480 | _ACEOF |
||
1481 | ac_status=$? |
||
1482 | fi |
||
1483 | |||
1484 | if test "$ac_init_help" = "recursive"; then |
||
1485 | # If there are subdirs, report their specific --help. |
||
1486 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
||
1487 | test -d "$ac_dir" || |
||
1488 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
||
1489 | continue |
||
1490 | ac_builddir=. |
||
1491 | |||
1492 | case "$ac_dir" in |
||
1493 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
1494 | *) |
||
1495 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
||
1496 | # A ".." for each directory in $ac_dir_suffix. |
||
1497 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
||
1498 | case $ac_top_builddir_sub in |
||
1499 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
1500 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
||
1501 | esac ;; |
||
1502 | esac |
||
1503 | ac_abs_top_builddir=$ac_pwd |
||
1504 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
||
1505 | # for backward compatibility: |
||
1506 | ac_top_builddir=$ac_top_build_prefix |
||
1507 | |||
1508 | case $srcdir in |
||
1509 | .) # We are building in place. |
||
1510 | ac_srcdir=. |
||
1511 | ac_top_srcdir=$ac_top_builddir_sub |
||
1512 | ac_abs_top_srcdir=$ac_pwd ;; |
||
1513 | [\\/]* | ?:[\\/]* ) # Absolute name. |
||
1514 | ac_srcdir=$srcdir$ac_dir_suffix; |
||
1515 | ac_top_srcdir=$srcdir |
||
1516 | ac_abs_top_srcdir=$srcdir ;; |
||
1517 | *) # Relative name. |
||
1518 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
||
1519 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
||
1520 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
||
1521 | esac |
||
1522 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
||
1523 | |||
1524 | cd "$ac_dir" || { ac_status=$?; continue; } |
||
1525 | # Check for guested configure. |
||
1526 | if test -f "$ac_srcdir/configure.gnu"; then |
||
1527 | echo && |
||
1528 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
||
1529 | elif test -f "$ac_srcdir/configure"; then |
||
1530 | echo && |
||
1531 | $SHELL "$ac_srcdir/configure" --help=recursive |
||
1532 | else |
||
1533 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
||
1534 | fi || ac_status=$? |
||
1535 | cd "$ac_pwd" || { ac_status=$?; break; } |
||
1536 | done |
||
1537 | fi |
||
1538 | |||
1539 | test -n "$ac_init_help" && exit $ac_status |
||
1540 | if $ac_init_version; then |
||
1541 | cat <<\_ACEOF |
||
1542 | metal configure 1.2 |
||
1543 | generated by GNU Autoconf 2.69 |
||
1544 | |||
1545 | Copyright (C) 2012 Free Software Foundation, Inc. |
||
1546 | This configure script is free software; the Free Software Foundation |
||
1547 | gives unlimited permission to copy, distribute and modify it. |
||
1548 | _ACEOF |
||
1549 | exit |
||
1550 | fi |
||
1551 | |||
1552 | ## ------------------------ ## |
||
1553 | ## Autoconf initialization. ## |
||
1554 | ## ------------------------ ## |
||
1555 | |||
1556 | # ac_fn_c_try_compile LINENO |
||
1557 | # -------------------------- |
||
1558 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
||
1559 | ac_fn_c_try_compile () |
||
1560 | { |
||
1561 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1562 | rm -f conftest.$ac_objext |
||
1563 | if { { ac_try="$ac_compile" |
||
1564 | case "(($ac_try" in |
||
1565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
1566 | *) ac_try_echo=$ac_try;; |
||
1567 | esac |
||
1568 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
1569 | $as_echo "$ac_try_echo"; } >&5 |
||
1570 | (eval "$ac_compile") 2>conftest.err |
||
1571 | ac_status=$? |
||
1572 | if test -s conftest.err; then |
||
1573 | grep -v '^ *+' conftest.err >conftest.er1 |
||
1574 | cat conftest.er1 >&5 |
||
1575 | mv -f conftest.er1 conftest.err |
||
1576 | fi |
||
1577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
1578 | test $ac_status = 0; } && { |
||
1579 | test -z "$ac_c_werror_flag" || |
||
1580 | test ! -s conftest.err |
||
1581 | } && test -s conftest.$ac_objext; then : |
||
1582 | ac_retval=0 |
||
1583 | else |
||
1584 | $as_echo "$as_me: failed program was:" >&5 |
||
1585 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1586 | |||
1587 | ac_retval=1 |
||
1588 | fi |
||
1589 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1590 | as_fn_set_status $ac_retval |
||
1591 | |||
1592 | } # ac_fn_c_try_compile |
||
1593 | |||
1594 | # ac_fn_c_try_link LINENO |
||
1595 | # ----------------------- |
||
1596 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
||
1597 | ac_fn_c_try_link () |
||
1598 | { |
||
1599 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1600 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
1601 | if { { ac_try="$ac_link" |
||
1602 | case "(($ac_try" in |
||
1603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
1604 | *) ac_try_echo=$ac_try;; |
||
1605 | esac |
||
1606 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
1607 | $as_echo "$ac_try_echo"; } >&5 |
||
1608 | (eval "$ac_link") 2>conftest.err |
||
1609 | ac_status=$? |
||
1610 | if test -s conftest.err; then |
||
1611 | grep -v '^ *+' conftest.err >conftest.er1 |
||
1612 | cat conftest.er1 >&5 |
||
1613 | mv -f conftest.er1 conftest.err |
||
1614 | fi |
||
1615 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
1616 | test $ac_status = 0; } && { |
||
1617 | test -z "$ac_c_werror_flag" || |
||
1618 | test ! -s conftest.err |
||
1619 | } && test -s conftest$ac_exeext && { |
||
1620 | test "$cross_compiling" = yes || |
||
1621 | test -x conftest$ac_exeext |
||
1622 | }; then : |
||
1623 | ac_retval=0 |
||
1624 | else |
||
1625 | $as_echo "$as_me: failed program was:" >&5 |
||
1626 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1627 | |||
1628 | ac_retval=1 |
||
1629 | fi |
||
1630 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
||
1631 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
||
1632 | # interfere with the next link command; also delete a directory that is |
||
1633 | # left behind by Apple's compiler. We do this before executing the actions. |
||
1634 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
||
1635 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1636 | as_fn_set_status $ac_retval |
||
1637 | |||
1638 | } # ac_fn_c_try_link |
||
1639 | |||
1640 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
||
1641 | # ------------------------------------------------------- |
||
1642 | # Tests whether HEADER exists and can be compiled using the include files in |
||
1643 | # INCLUDES, setting the cache variable VAR accordingly. |
||
1644 | ac_fn_c_check_header_compile () |
||
1645 | { |
||
1646 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
||
1648 | $as_echo_n "checking for $2... " >&6; } |
||
1649 | if eval \${$3+:} false; then : |
||
1650 | $as_echo_n "(cached) " >&6 |
||
1651 | else |
||
1652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
1653 | /* end confdefs.h. */ |
||
1654 | $4 |
||
1655 | #include <$2> |
||
1656 | _ACEOF |
||
1657 | if ac_fn_c_try_compile "$LINENO"; then : |
||
1658 | eval "$3=yes" |
||
1659 | else |
||
1660 | eval "$3=no" |
||
1661 | fi |
||
1662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
1663 | fi |
||
1664 | eval ac_res=\$$3 |
||
1665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
1666 | $as_echo "$ac_res" >&6; } |
||
1667 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1668 | |||
1669 | } # ac_fn_c_check_header_compile |
||
1670 | |||
1671 | # ac_fn_c_try_cpp LINENO |
||
1672 | # ---------------------- |
||
1673 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
||
1674 | ac_fn_c_try_cpp () |
||
1675 | { |
||
1676 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1677 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
||
1678 | case "(($ac_try" in |
||
1679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
1680 | *) ac_try_echo=$ac_try;; |
||
1681 | esac |
||
1682 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
1683 | $as_echo "$ac_try_echo"; } >&5 |
||
1684 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
||
1685 | ac_status=$? |
||
1686 | if test -s conftest.err; then |
||
1687 | grep -v '^ *+' conftest.err >conftest.er1 |
||
1688 | cat conftest.er1 >&5 |
||
1689 | mv -f conftest.er1 conftest.err |
||
1690 | fi |
||
1691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
1692 | test $ac_status = 0; } > conftest.i && { |
||
1693 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
1694 | test ! -s conftest.err |
||
1695 | }; then : |
||
1696 | ac_retval=0 |
||
1697 | else |
||
1698 | $as_echo "$as_me: failed program was:" >&5 |
||
1699 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1700 | |||
1701 | ac_retval=1 |
||
1702 | fi |
||
1703 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1704 | as_fn_set_status $ac_retval |
||
1705 | |||
1706 | } # ac_fn_c_try_cpp |
||
1707 | |||
1708 | # ac_fn_c_try_run LINENO |
||
1709 | # ---------------------- |
||
1710 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
||
1711 | # that executables *can* be run. |
||
1712 | ac_fn_c_try_run () |
||
1713 | { |
||
1714 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1715 | if { { ac_try="$ac_link" |
||
1716 | case "(($ac_try" in |
||
1717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
1718 | *) ac_try_echo=$ac_try;; |
||
1719 | esac |
||
1720 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
1721 | $as_echo "$ac_try_echo"; } >&5 |
||
1722 | (eval "$ac_link") 2>&5 |
||
1723 | ac_status=$? |
||
1724 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
1725 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
||
1726 | { { case "(($ac_try" in |
||
1727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
1728 | *) ac_try_echo=$ac_try;; |
||
1729 | esac |
||
1730 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
1731 | $as_echo "$ac_try_echo"; } >&5 |
||
1732 | (eval "$ac_try") 2>&5 |
||
1733 | ac_status=$? |
||
1734 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
1735 | test $ac_status = 0; }; }; then : |
||
1736 | ac_retval=0 |
||
1737 | else |
||
1738 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
||
1739 | $as_echo "$as_me: failed program was:" >&5 |
||
1740 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1741 | |||
1742 | ac_retval=$ac_status |
||
1743 | fi |
||
1744 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
||
1745 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1746 | as_fn_set_status $ac_retval |
||
1747 | |||
1748 | } # ac_fn_c_try_run |
||
1749 | |||
1750 | # ac_fn_c_check_func LINENO FUNC VAR |
||
1751 | # ---------------------------------- |
||
1752 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
||
1753 | ac_fn_c_check_func () |
||
1754 | { |
||
1755 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
||
1757 | $as_echo_n "checking for $2... " >&6; } |
||
1758 | if eval \${$3+:} false; then : |
||
1759 | $as_echo_n "(cached) " >&6 |
||
1760 | else |
||
1761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
1762 | /* end confdefs.h. */ |
||
1763 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
||
1764 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
1765 | #define $2 innocuous_$2 |
||
1766 | |||
1767 | /* System header to define __stub macros and hopefully few prototypes, |
||
1768 | which can conflict with char $2 (); below. |
||
1769 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
1770 | <limits.h> exists even on freestanding compilers. */ |
||
1771 | |||
1772 | #ifdef __STDC__ |
||
1773 | # include <limits.h> |
||
1774 | #else |
||
1775 | # include <assert.h> |
||
1776 | #endif |
||
1777 | |||
1778 | #undef $2 |
||
1779 | |||
1780 | /* Override any GCC internal prototype to avoid an error. |
||
1781 | Use char because int might match the return type of a GCC |
||
1782 | builtin and then its argument prototype would still apply. */ |
||
1783 | #ifdef __cplusplus |
||
1784 | extern "C" |
||
1785 | #endif |
||
1786 | char $2 (); |
||
1787 | /* The GNU C library defines this for functions which it implements |
||
1788 | to always fail with ENOSYS. Some functions are actually named |
||
1789 | something starting with __ and the normal name is an alias. */ |
||
1790 | #if defined __stub_$2 || defined __stub___$2 |
||
1791 | choke me |
||
1792 | #endif |
||
1793 | |||
1794 | int |
||
1795 | main () |
||
1796 | { |
||
1797 | return $2 (); |
||
1798 | ; |
||
1799 | return 0; |
||
1800 | } |
||
1801 | _ACEOF |
||
1802 | if ac_fn_c_try_link "$LINENO"; then : |
||
1803 | eval "$3=yes" |
||
1804 | else |
||
1805 | eval "$3=no" |
||
1806 | fi |
||
1807 | rm -f core conftest.err conftest.$ac_objext \ |
||
1808 | conftest$ac_exeext conftest.$ac_ext |
||
1809 | fi |
||
1810 | eval ac_res=\$$3 |
||
1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
1812 | $as_echo "$ac_res" >&6; } |
||
1813 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1814 | |||
1815 | } # ac_fn_c_check_func |
||
1816 | |||
1817 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
||
1818 | # ------------------------------------------------------- |
||
1819 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
||
1820 | # the include files in INCLUDES and setting the cache variable VAR |
||
1821 | # accordingly. |
||
1822 | ac_fn_c_check_header_mongrel () |
||
1823 | { |
||
1824 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1825 | if eval \${$3+:} false; then : |
||
1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
||
1827 | $as_echo_n "checking for $2... " >&6; } |
||
1828 | if eval \${$3+:} false; then : |
||
1829 | $as_echo_n "(cached) " >&6 |
||
1830 | fi |
||
1831 | eval ac_res=\$$3 |
||
1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
1833 | $as_echo "$ac_res" >&6; } |
||
1834 | else |
||
1835 | # Is the header compilable? |
||
1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
||
1837 | $as_echo_n "checking $2 usability... " >&6; } |
||
1838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
1839 | /* end confdefs.h. */ |
||
1840 | $4 |
||
1841 | #include <$2> |
||
1842 | _ACEOF |
||
1843 | if ac_fn_c_try_compile "$LINENO"; then : |
||
1844 | ac_header_compiler=yes |
||
1845 | else |
||
1846 | ac_header_compiler=no |
||
1847 | fi |
||
1848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
||
1850 | $as_echo "$ac_header_compiler" >&6; } |
||
1851 | |||
1852 | # Is the header present? |
||
1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
||
1854 | $as_echo_n "checking $2 presence... " >&6; } |
||
1855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
1856 | /* end confdefs.h. */ |
||
1857 | #include <$2> |
||
1858 | _ACEOF |
||
1859 | if ac_fn_c_try_cpp "$LINENO"; then : |
||
1860 | ac_header_preproc=yes |
||
1861 | else |
||
1862 | ac_header_preproc=no |
||
1863 | fi |
||
1864 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
1865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
||
1866 | $as_echo "$ac_header_preproc" >&6; } |
||
1867 | |||
1868 | # So? What about this header? |
||
1869 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
||
1870 | yes:no: ) |
||
1871 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
||
1872 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
||
1873 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
||
1874 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
||
1875 | ;; |
||
1876 | no:yes:* ) |
||
1877 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
||
1878 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
||
1879 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
||
1880 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
||
1881 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
||
1882 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
||
1883 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
||
1884 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
||
1885 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
||
1886 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
||
1887 | ( $as_echo "## --------------------------------- ## |
||
1888 | ## Report this to mike@hamble.online ## |
||
1889 | ## --------------------------------- ##" |
||
1890 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
||
1891 | ;; |
||
1892 | esac |
||
1893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
||
1894 | $as_echo_n "checking for $2... " >&6; } |
||
1895 | if eval \${$3+:} false; then : |
||
1896 | $as_echo_n "(cached) " >&6 |
||
1897 | else |
||
1898 | eval "$3=\$ac_header_compiler" |
||
1899 | fi |
||
1900 | eval ac_res=\$$3 |
||
1901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
1902 | $as_echo "$ac_res" >&6; } |
||
1903 | fi |
||
1904 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1905 | |||
1906 | } # ac_fn_c_check_header_mongrel |
||
1907 | |||
1908 | # ac_fn_cxx_try_compile LINENO |
||
1909 | # ---------------------------- |
||
1910 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
||
1911 | ac_fn_cxx_try_compile () |
||
1912 | { |
||
1913 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1914 | rm -f conftest.$ac_objext |
||
1915 | if { { ac_try="$ac_compile" |
||
1916 | case "(($ac_try" in |
||
1917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
1918 | *) ac_try_echo=$ac_try;; |
||
1919 | esac |
||
1920 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
1921 | $as_echo "$ac_try_echo"; } >&5 |
||
1922 | (eval "$ac_compile") 2>conftest.err |
||
1923 | ac_status=$? |
||
1924 | if test -s conftest.err; then |
||
1925 | grep -v '^ *+' conftest.err >conftest.er1 |
||
1926 | cat conftest.er1 >&5 |
||
1927 | mv -f conftest.er1 conftest.err |
||
1928 | fi |
||
1929 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
1930 | test $ac_status = 0; } && { |
||
1931 | test -z "$ac_cxx_werror_flag" || |
||
1932 | test ! -s conftest.err |
||
1933 | } && test -s conftest.$ac_objext; then : |
||
1934 | ac_retval=0 |
||
1935 | else |
||
1936 | $as_echo "$as_me: failed program was:" >&5 |
||
1937 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1938 | |||
1939 | ac_retval=1 |
||
1940 | fi |
||
1941 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1942 | as_fn_set_status $ac_retval |
||
1943 | |||
1944 | } # ac_fn_cxx_try_compile |
||
1945 | |||
1946 | # ac_fn_cxx_try_cpp LINENO |
||
1947 | # ------------------------ |
||
1948 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
||
1949 | ac_fn_cxx_try_cpp () |
||
1950 | { |
||
1951 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1952 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
||
1953 | case "(($ac_try" in |
||
1954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
1955 | *) ac_try_echo=$ac_try;; |
||
1956 | esac |
||
1957 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
1958 | $as_echo "$ac_try_echo"; } >&5 |
||
1959 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
||
1960 | ac_status=$? |
||
1961 | if test -s conftest.err; then |
||
1962 | grep -v '^ *+' conftest.err >conftest.er1 |
||
1963 | cat conftest.er1 >&5 |
||
1964 | mv -f conftest.er1 conftest.err |
||
1965 | fi |
||
1966 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
1967 | test $ac_status = 0; } > conftest.i && { |
||
1968 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
||
1969 | test ! -s conftest.err |
||
1970 | }; then : |
||
1971 | ac_retval=0 |
||
1972 | else |
||
1973 | $as_echo "$as_me: failed program was:" >&5 |
||
1974 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1975 | |||
1976 | ac_retval=1 |
||
1977 | fi |
||
1978 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1979 | as_fn_set_status $ac_retval |
||
1980 | |||
1981 | } # ac_fn_cxx_try_cpp |
||
1982 | |||
1983 | # ac_fn_cxx_try_link LINENO |
||
1984 | # ------------------------- |
||
1985 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
||
1986 | ac_fn_cxx_try_link () |
||
1987 | { |
||
1988 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1989 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
1990 | if { { ac_try="$ac_link" |
||
1991 | case "(($ac_try" in |
||
1992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
1993 | *) ac_try_echo=$ac_try;; |
||
1994 | esac |
||
1995 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
1996 | $as_echo "$ac_try_echo"; } >&5 |
||
1997 | (eval "$ac_link") 2>conftest.err |
||
1998 | ac_status=$? |
||
1999 | if test -s conftest.err; then |
||
2000 | grep -v '^ *+' conftest.err >conftest.er1 |
||
2001 | cat conftest.er1 >&5 |
||
2002 | mv -f conftest.er1 conftest.err |
||
2003 | fi |
||
2004 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
2005 | test $ac_status = 0; } && { |
||
2006 | test -z "$ac_cxx_werror_flag" || |
||
2007 | test ! -s conftest.err |
||
2008 | } && test -s conftest$ac_exeext && { |
||
2009 | test "$cross_compiling" = yes || |
||
2010 | test -x conftest$ac_exeext |
||
2011 | }; then : |
||
2012 | ac_retval=0 |
||
2013 | else |
||
2014 | $as_echo "$as_me: failed program was:" >&5 |
||
2015 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2016 | |||
2017 | ac_retval=1 |
||
2018 | fi |
||
2019 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
||
2020 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
||
2021 | # interfere with the next link command; also delete a directory that is |
||
2022 | # left behind by Apple's compiler. We do this before executing the actions. |
||
2023 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
||
2024 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
2025 | as_fn_set_status $ac_retval |
||
2026 | |||
2027 | } # ac_fn_cxx_try_link |
||
2028 | cat >config.log <<_ACEOF |
||
2029 | This file contains any messages produced by compilers while |
||
2030 | running configure, to aid debugging if configure makes a mistake. |
||
2031 | |||
2032 | It was created by metal $as_me 1.2, which was |
||
2033 | generated by GNU Autoconf 2.69. Invocation command line was |
||
2034 | |||
2035 | $ $0 $@ |
||
2036 | |||
2037 | _ACEOF |
||
2038 | exec 5>>config.log |
||
2039 | { |
||
2040 | cat <<_ASUNAME |
||
2041 | ## --------- ## |
||
2042 | ## Platform. ## |
||
2043 | ## --------- ## |
||
2044 | |||
2045 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
||
2046 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
||
2047 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
||
2048 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
||
2049 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
||
2050 | |||
2051 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
||
2052 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
||
2053 | |||
2054 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
||
2055 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
||
2056 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
||
2057 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
||
2058 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
||
2059 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
||
2060 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
||
2061 | |||
2062 | _ASUNAME |
||
2063 | |||
2064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2065 | for as_dir in $PATH |
||
2066 | do |
||
2067 | IFS=$as_save_IFS |
||
2068 | test -z "$as_dir" && as_dir=. |
||
2069 | $as_echo "PATH: $as_dir" |
||
2070 | done |
||
2071 | IFS=$as_save_IFS |
||
2072 | |||
2073 | } >&5 |
||
2074 | |||
2075 | cat >&5 <<_ACEOF |
||
2076 | |||
2077 | |||
2078 | ## ----------- ## |
||
2079 | ## Core tests. ## |
||
2080 | ## ----------- ## |
||
2081 | |||
2082 | _ACEOF |
||
2083 | |||
2084 | |||
2085 | # Keep a trace of the command line. |
||
2086 | # Strip out --no-create and --no-recursion so they do not pile up. |
||
2087 | # Strip out --silent because we don't want to record it for future runs. |
||
2088 | # Also quote any args containing shell meta-characters. |
||
2089 | # Make two passes to allow for proper duplicate-argument suppression. |
||
2090 | ac_configure_args= |
||
2091 | ac_configure_args0= |
||
2092 | ac_configure_args1= |
||
2093 | ac_must_keep_next=false |
||
2094 | for ac_pass in 1 2 |
||
2095 | do |
||
2096 | for ac_arg |
||
2097 | do |
||
2098 | case $ac_arg in |
||
2099 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
||
2100 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
2101 | | -silent | --silent | --silen | --sile | --sil) |
||
2102 | continue ;; |
||
2103 | *\'*) |
||
2104 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
2105 | esac |
||
2106 | case $ac_pass in |
||
2107 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
||
2108 | 2) |
||
2109 | as_fn_append ac_configure_args1 " '$ac_arg'" |
||
2110 | if test $ac_must_keep_next = true; then |
||
2111 | ac_must_keep_next=false # Got value, back to normal. |
||
2112 | else |
||
2113 | case $ac_arg in |
||
2114 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
||
2115 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
||
2116 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
||
2117 | | -with-* | --with-* | -without-* | --without-* | --x) |
||
2118 | case "$ac_configure_args0 " in |
||
2119 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
||
2120 | esac |
||
2121 | ;; |
||
2122 | -* ) ac_must_keep_next=true ;; |
||
2123 | esac |
||
2124 | fi |
||
2125 | as_fn_append ac_configure_args " '$ac_arg'" |
||
2126 | ;; |
||
2127 | esac |
||
2128 | done |
||
2129 | done |
||
2130 | { ac_configure_args0=; unset ac_configure_args0;} |
||
2131 | { ac_configure_args1=; unset ac_configure_args1;} |
||
2132 | |||
2133 | # When interrupted or exit'd, cleanup temporary files, and complete |
||
2134 | # config.log. We remove comments because anyway the quotes in there |
||
2135 | # would cause problems or look ugly. |
||
2136 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
||
2137 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
||
2138 | trap 'exit_status=$? |
||
2139 | # Save into config.log some information that might help in debugging. |
||
2140 | { |
||
2141 | echo |
||
2142 | |||
2143 | $as_echo "## ---------------- ## |
||
2144 | ## Cache variables. ## |
||
2145 | ## ---------------- ##" |
||
2146 | echo |
||
2147 | # The following way of writing the cache mishandles newlines in values, |
||
2148 | ( |
||
2149 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
||
2150 | eval ac_val=\$$ac_var |
||
2151 | case $ac_val in #( |
||
2152 | *${as_nl}*) |
||
2153 | case $ac_var in #( |
||
2154 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
||
2155 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
||
2156 | esac |
||
2157 | case $ac_var in #( |
||
2158 | _ | IFS | as_nl) ;; #( |
||
2159 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
||
2160 | *) { eval $ac_var=; unset $ac_var;} ;; |
||
2161 | esac ;; |
||
2162 | esac |
||
2163 | done |
||
2164 | (set) 2>&1 | |
||
2165 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
||
2166 | *${as_nl}ac_space=\ *) |
||
2167 | sed -n \ |
||
2168 | "s/'\''/'\''\\\\'\'''\''/g; |
||
2169 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
||
2170 | ;; #( |
||
2171 | *) |
||
2172 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
||
2173 | ;; |
||
2174 | esac | |
||
2175 | sort |
||
2176 | ) |
||
2177 | echo |
||
2178 | |||
2179 | $as_echo "## ----------------- ## |
||
2180 | ## Output variables. ## |
||
2181 | ## ----------------- ##" |
||
2182 | echo |
||
2183 | for ac_var in $ac_subst_vars |
||
2184 | do |
||
2185 | eval ac_val=\$$ac_var |
||
2186 | case $ac_val in |
||
2187 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
||
2188 | esac |
||
2189 | $as_echo "$ac_var='\''$ac_val'\''" |
||
2190 | done | sort |
||
2191 | echo |
||
2192 | |||
2193 | if test -n "$ac_subst_files"; then |
||
2194 | $as_echo "## ------------------- ## |
||
2195 | ## File substitutions. ## |
||
2196 | ## ------------------- ##" |
||
2197 | echo |
||
2198 | for ac_var in $ac_subst_files |
||
2199 | do |
||
2200 | eval ac_val=\$$ac_var |
||
2201 | case $ac_val in |
||
2202 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
||
2203 | esac |
||
2204 | $as_echo "$ac_var='\''$ac_val'\''" |
||
2205 | done | sort |
||
2206 | echo |
||
2207 | fi |
||
2208 | |||
2209 | if test -s confdefs.h; then |
||
2210 | $as_echo "## ----------- ## |
||
2211 | ## confdefs.h. ## |
||
2212 | ## ----------- ##" |
||
2213 | echo |
||
2214 | cat confdefs.h |
||
2215 | echo |
||
2216 | fi |
||
2217 | test "$ac_signal" != 0 && |
||
2218 | $as_echo "$as_me: caught signal $ac_signal" |
||
2219 | $as_echo "$as_me: exit $exit_status" |
||
2220 | } >&5 |
||
2221 | rm -f core *.core core.conftest.* && |
||
2222 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
||
2223 | exit $exit_status |
||
2224 | ' 0 |
||
2225 | for ac_signal in 1 2 13 15; do |
||
2226 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
||
2227 | done |
||
2228 | ac_signal=0 |
||
2229 | |||
2230 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
||
2231 | rm -f -r conftest* confdefs.h |
||
2232 | |||
2233 | $as_echo "/* confdefs.h */" > confdefs.h |
||
2234 | |||
2235 | # Predefined preprocessor variables. |
||
2236 | |||
2237 | cat >>confdefs.h <<_ACEOF |
||
2238 | #define PACKAGE_NAME "$PACKAGE_NAME" |
||
2239 | _ACEOF |
||
2240 | |||
2241 | cat >>confdefs.h <<_ACEOF |
||
2242 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
||
2243 | _ACEOF |
||
2244 | |||
2245 | cat >>confdefs.h <<_ACEOF |
||
2246 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
||
2247 | _ACEOF |
||
2248 | |||
2249 | cat >>confdefs.h <<_ACEOF |
||
2250 | #define PACKAGE_STRING "$PACKAGE_STRING" |
||
2251 | _ACEOF |
||
2252 | |||
2253 | cat >>confdefs.h <<_ACEOF |
||
2254 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
||
2255 | _ACEOF |
||
2256 | |||
2257 | cat >>confdefs.h <<_ACEOF |
||
2258 | #define PACKAGE_URL "$PACKAGE_URL" |
||
2259 | _ACEOF |
||
2260 | |||
2261 | |||
2262 | # Let the site file select an alternate cache file if it wants to. |
||
2263 | # Prefer an explicitly selected file to automatically selected ones. |
||
2264 | ac_site_file1=NONE |
||
2265 | ac_site_file2=NONE |
||
2266 | if test -n "$CONFIG_SITE"; then |
||
2267 | # We do not want a PATH search for config.site. |
||
2268 | case $CONFIG_SITE in #(( |
||
2269 | -*) ac_site_file1=./$CONFIG_SITE;; |
||
2270 | */*) ac_site_file1=$CONFIG_SITE;; |
||
2271 | *) ac_site_file1=./$CONFIG_SITE;; |
||
2272 | esac |
||
2273 | elif test "x$prefix" != xNONE; then |
||
2274 | ac_site_file1=$prefix/share/config.site |
||
2275 | ac_site_file2=$prefix/etc/config.site |
||
2276 | else |
||
2277 | ac_site_file1=$ac_default_prefix/share/config.site |
||
2278 | ac_site_file2=$ac_default_prefix/etc/config.site |
||
2279 | fi |
||
2280 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
||
2281 | do |
||
2282 | test "x$ac_site_file" = xNONE && continue |
||
2283 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
||
2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
||
2285 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
||
2286 | sed 's/^/| /' "$ac_site_file" >&5 |
||
2287 | . "$ac_site_file" \ |
||
2288 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
2289 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
2290 | as_fn_error $? "failed to load site script $ac_site_file |
||
2291 | See \`config.log' for more details" "$LINENO" 5; } |
||
2292 | fi |
||
2293 | done |
||
2294 | |||
2295 | if test -r "$cache_file"; then |
||
2296 | # Some versions of bash will fail to source /dev/null (special files |
||
2297 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
||
2298 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
||
2299 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
||
2300 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
||
2301 | case $cache_file in |
||
2302 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
||
2303 | *) . "./$cache_file";; |
||
2304 | esac |
||
2305 | fi |
||
2306 | else |
||
2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
||
2308 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
||
2309 | >$cache_file |
||
2310 | fi |
||
2311 | |||
2312 | # Check that the precious variables saved in the cache have kept the same |
||
2313 | # value. |
||
2314 | ac_cache_corrupted=false |
||
2315 | for ac_var in $ac_precious_vars; do |
||
2316 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
||
2317 | eval ac_new_set=\$ac_env_${ac_var}_set |
||
2318 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
||
2319 | eval ac_new_val=\$ac_env_${ac_var}_value |
||
2320 | case $ac_old_set,$ac_new_set in |
||
2321 | set,) |
||
2322 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
||
2323 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
||
2324 | ac_cache_corrupted=: ;; |
||
2325 | ,set) |
||
2326 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
||
2327 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
||
2328 | ac_cache_corrupted=: ;; |
||
2329 | ,);; |
||
2330 | *) |
||
2331 | if test "x$ac_old_val" != "x$ac_new_val"; then |
||
2332 | # differences in whitespace do not lead to failure. |
||
2333 | ac_old_val_w=`echo x $ac_old_val` |
||
2334 | ac_new_val_w=`echo x $ac_new_val` |
||
2335 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
||
2336 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
||
2337 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
||
2338 | ac_cache_corrupted=: |
||
2339 | else |
||
2340 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
||
2341 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
||
2342 | eval $ac_var=\$ac_old_val |
||
2343 | fi |
||
2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
||
2345 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
||
2346 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
||
2347 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
||
2348 | fi;; |
||
2349 | esac |
||
2350 | # Pass precious variables to config.status. |
||
2351 | if test "$ac_new_set" = set; then |
||
2352 | case $ac_new_val in |
||
2353 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
2354 | *) ac_arg=$ac_var=$ac_new_val ;; |
||
2355 | esac |
||
2356 | case " $ac_configure_args " in |
||
2357 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
||
2358 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
||
2359 | esac |
||
2360 | fi |
||
2361 | done |
||
2362 | if $ac_cache_corrupted; then |
||
2363 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
2364 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
2365 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
||
2366 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
||
2367 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
||
2368 | fi |
||
2369 | ## -------------------- ## |
||
2370 | ## Main body of script. ## |
||
2371 | ## -------------------- ## |
||
2372 | |||
2373 | ac_ext=c |
||
2374 | ac_cpp='$CPP $CPPFLAGS' |
||
2375 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
2376 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
2377 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
2378 | |||
2379 | |||
2380 | |||
2381 | ac_aux_dir= |
||
2382 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
||
2383 | if test -f "$ac_dir/install-sh"; then |
||
2384 | ac_aux_dir=$ac_dir |
||
2385 | ac_install_sh="$ac_aux_dir/install-sh -c" |
||
2386 | break |
||
2387 | elif test -f "$ac_dir/install.sh"; then |
||
2388 | ac_aux_dir=$ac_dir |
||
2389 | ac_install_sh="$ac_aux_dir/install.sh -c" |
||
2390 | break |
||
2391 | elif test -f "$ac_dir/shtool"; then |
||
2392 | ac_aux_dir=$ac_dir |
||
2393 | ac_install_sh="$ac_aux_dir/shtool install -c" |
||
2394 | break |
||
2395 | fi |
||
2396 | done |
||
2397 | if test -z "$ac_aux_dir"; then |
||
2398 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
||
2399 | fi |
||
2400 | |||
2401 | # These three variables are undocumented and unsupported, |
||
2402 | # and are intended to be withdrawn in a future Autoconf release. |
||
2403 | # They can cause serious problems if a builder's source tree is in a directory |
||
2404 | # whose full name contains unusual characters. |
||
2405 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
||
2406 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
||
2407 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
||
2408 | |||
2409 | |||
2410 | # Make sure we can run config.sub. |
||
2411 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
||
2412 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
||
2413 | |||
2414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
||
2415 | $as_echo_n "checking build system type... " >&6; } |
||
2416 | if ${ac_cv_build+:} false; then : |
||
2417 | $as_echo_n "(cached) " >&6 |
||
2418 | else |
||
2419 | ac_build_alias=$build_alias |
||
2420 | test "x$ac_build_alias" = x && |
||
2421 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
||
2422 | test "x$ac_build_alias" = x && |
||
2423 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
||
2424 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
||
2425 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
||
2426 | |||
2427 | fi |
||
2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
||
2429 | $as_echo "$ac_cv_build" >&6; } |
||
2430 | case $ac_cv_build in |
||
2431 | *-*-*) ;; |
||
2432 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
||
2433 | esac |
||
2434 | build=$ac_cv_build |
||
2435 | ac_save_IFS=$IFS; IFS='-' |
||
2436 | set x $ac_cv_build |
||
2437 | shift |
||
2438 | build_cpu=$1 |
||
2439 | build_vendor=$2 |
||
2440 | shift; shift |
||
2441 | # Remember, the first character of IFS is used to create $*, |
||
2442 | # except with old shells: |
||
2443 | build_os=$* |
||
2444 | IFS=$ac_save_IFS |
||
2445 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
||
2446 | |||
2447 | |||
2448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
||
2449 | $as_echo_n "checking host system type... " >&6; } |
||
2450 | if ${ac_cv_host+:} false; then : |
||
2451 | $as_echo_n "(cached) " >&6 |
||
2452 | else |
||
2453 | if test "x$host_alias" = x; then |
||
2454 | ac_cv_host=$ac_cv_build |
||
2455 | else |
||
2456 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
||
2457 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
||
2458 | fi |
||
2459 | |||
2460 | fi |
||
2461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
||
2462 | $as_echo "$ac_cv_host" >&6; } |
||
2463 | case $ac_cv_host in |
||
2464 | *-*-*) ;; |
||
2465 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
||
2466 | esac |
||
2467 | host=$ac_cv_host |
||
2468 | ac_save_IFS=$IFS; IFS='-' |
||
2469 | set x $ac_cv_host |
||
2470 | shift |
||
2471 | host_cpu=$1 |
||
2472 | host_vendor=$2 |
||
2473 | shift; shift |
||
2474 | # Remember, the first character of IFS is used to create $*, |
||
2475 | # except with old shells: |
||
2476 | host_os=$* |
||
2477 | IFS=$ac_save_IFS |
||
2478 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
||
2479 | |||
2480 | |||
2481 | |||
2482 | |||
2483 | |||
2484 | am__api_version='1.15' |
||
2485 | |||
2486 | # Find a good install program. We prefer a C program (faster), |
||
2487 | # so one script is as good as another. But avoid the broken or |
||
2488 | # incompatible versions: |
||
2489 | # SysV /etc/install, /usr/sbin/install |
||
2490 | # SunOS /usr/etc/install |
||
2491 | # IRIX /sbin/install |
||
2492 | # AIX /bin/install |
||
2493 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
||
2494 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
||
2495 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
||
2496 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
||
2497 | # OS/2's system install, which has a completely different semantic |
||
2498 | # ./install, which can be erroneously created by make from ./install.sh. |
||
2499 | # Reject install programs that cannot install multiple files. |
||
2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
||
2501 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
||
2502 | if test -z "$INSTALL"; then |
||
2503 | if ${ac_cv_path_install+:} false; then : |
||
2504 | $as_echo_n "(cached) " >&6 |
||
2505 | else |
||
2506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2507 | for as_dir in $PATH |
||
2508 | do |
||
2509 | IFS=$as_save_IFS |
||
2510 | test -z "$as_dir" && as_dir=. |
||
2511 | # Account for people who put trailing slashes in PATH elements. |
||
2512 | case $as_dir/ in #(( |
||
2513 | ./ | .// | /[cC]/* | \ |
||
2514 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
||
2515 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
||
2516 | /usr/ucb/* ) ;; |
||
2517 | *) |
||
2518 | # OSF1 and SCO ODT 3.0 have their own names for install. |
||
2519 | # Don't use installbsd from OSF since it installs stuff as root |
||
2520 | # by default. |
||
2521 | for ac_prog in ginstall scoinst install; do |
||
2522 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2523 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
||
2524 | if test $ac_prog = install && |
||
2525 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
||
2526 | # AIX install. It has an incompatible calling convention. |
||
2527 | : |
||
2528 | elif test $ac_prog = install && |
||
2529 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
||
2530 | # program-specific install script used by HP pwplus--don't use. |
||
2531 | : |
||
2532 | else |
||
2533 | rm -rf conftest.one conftest.two conftest.dir |
||
2534 | echo one > conftest.one |
||
2535 | echo two > conftest.two |
||
2536 | mkdir conftest.dir |
||
2537 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
||
2538 | test -s conftest.one && test -s conftest.two && |
||
2539 | test -s conftest.dir/conftest.one && |
||
2540 | test -s conftest.dir/conftest.two |
||
2541 | then |
||
2542 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
||
2543 | break 3 |
||
2544 | fi |
||
2545 | fi |
||
2546 | fi |
||
2547 | done |
||
2548 | done |
||
2549 | ;; |
||
2550 | esac |
||
2551 | |||
2552 | done |
||
2553 | IFS=$as_save_IFS |
||
2554 | |||
2555 | rm -rf conftest.one conftest.two conftest.dir |
||
2556 | |||
2557 | fi |
||
2558 | if test "${ac_cv_path_install+set}" = set; then |
||
2559 | INSTALL=$ac_cv_path_install |
||
2560 | else |
||
2561 | # As a last resort, use the slow shell script. Don't cache a |
||
2562 | # value for INSTALL within a source directory, because that will |
||
2563 | # break other packages using the cache if that directory is |
||
2564 | # removed, or if the value is a relative name. |
||
2565 | INSTALL=$ac_install_sh |
||
2566 | fi |
||
2567 | fi |
||
2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
||
2569 | $as_echo "$INSTALL" >&6; } |
||
2570 | |||
2571 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
||
2572 | # It thinks the first close brace ends the variable substitution. |
||
2573 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
||
2574 | |||
2575 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
||
2576 | |||
2577 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
||
2578 | |||
2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
||
2580 | $as_echo_n "checking whether build environment is sane... " >&6; } |
||
2581 | # Reject unsafe characters in $srcdir or the absolute working directory |
||
2582 | # name. Accept space and tab only in the latter. |
||
2583 | am_lf=' |
||
2584 | ' |
||
2585 | case `pwd` in |
||
2586 | *[\\\"\#\$\&\'\`$am_lf]*) |
||
2587 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
||
2588 | esac |
||
2589 | case $srcdir in |
||
2590 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
||
2591 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
||
2592 | esac |
||
2593 | |||
2594 | # Do 'set' in a subshell so we don't clobber the current shell's |
||
2595 | # arguments. Must try -L first in case configure is actually a |
||
2596 | # symlink; some systems play weird games with the mod time of symlinks |
||
2597 | # (eg FreeBSD returns the mod time of the symlink's containing |
||
2598 | # directory). |
||
2599 | if ( |
||
2600 | am_has_slept=no |
||
2601 | for am_try in 1 2; do |
||
2602 | echo "timestamp, slept: $am_has_slept" > conftest.file |
||
2603 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
||
2604 | if test "$*" = "X"; then |
||
2605 | # -L didn't work. |
||
2606 | set X `ls -t "$srcdir/configure" conftest.file` |
||
2607 | fi |
||
2608 | if test "$*" != "X $srcdir/configure conftest.file" \ |
||
2609 | && test "$*" != "X conftest.file $srcdir/configure"; then |
||
2610 | |||
2611 | # If neither matched, then we have a broken ls. This can happen |
||
2612 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
||
2613 | # broken ls alias from the environment. This has actually |
||
2614 | # happened. Such a system could not be considered "sane". |
||
2615 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
||
2616 | alias in your environment" "$LINENO" 5 |
||
2617 | fi |
||
2618 | if test "$2" = conftest.file || test $am_try -eq 2; then |
||
2619 | break |
||
2620 | fi |
||
2621 | # Just in case. |
||
2622 | sleep 1 |
||
2623 | am_has_slept=yes |
||
2624 | done |
||
2625 | test "$2" = conftest.file |
||
2626 | ) |
||
2627 | then |
||
2628 | # Ok. |
||
2629 | : |
||
2630 | else |
||
2631 | as_fn_error $? "newly created file is older than distributed files! |
||
2632 | Check your system clock" "$LINENO" 5 |
||
2633 | fi |
||
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
2635 | $as_echo "yes" >&6; } |
||
2636 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
||
2637 | # generated files are strictly newer. |
||
2638 | am_sleep_pid= |
||
2639 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
||
2640 | ( sleep 1 ) & |
||
2641 | am_sleep_pid=$! |
||
2642 | fi |
||
2643 | |||
2644 | rm -f conftest.file |
||
2645 | |||
2646 | test "$program_prefix" != NONE && |
||
2647 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
||
2648 | # Use a double $ so make ignores it. |
||
2649 | test "$program_suffix" != NONE && |
||
2650 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
||
2651 | # Double any \ or $. |
||
2652 | # By default was `s,x,x', remove it if useless. |
||
2653 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
||
2654 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
||
2655 | |||
2656 | # Expand $ac_aux_dir to an absolute path. |
||
2657 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
||
2658 | |||
2659 | if test x"${MISSING+set}" != xset; then |
||
2660 | case $am_aux_dir in |
||
2661 | *\ * | *\ *) |
||
2662 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
||
2663 | *) |
||
2664 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
||
2665 | esac |
||
2666 | fi |
||
2667 | # Use eval to expand $SHELL |
||
2668 | if eval "$MISSING --is-lightweight"; then |
||
2669 | am_missing_run="$MISSING " |
||
2670 | else |
||
2671 | am_missing_run= |
||
2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
||
2673 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
||
2674 | fi |
||
2675 | |||
2676 | if test x"${install_sh+set}" != xset; then |
||
2677 | case $am_aux_dir in |
||
2678 | *\ * | *\ *) |
||
2679 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
||
2680 | *) |
||
2681 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
||
2682 | esac |
||
2683 | fi |
||
2684 | |||
2685 | # Installed binaries are usually stripped using 'strip' when the user |
||
2686 | # run "make install-strip". However 'strip' might not be the right |
||
2687 | # tool to use in cross-compilation environments, therefore Automake |
||
2688 | # will honor the 'STRIP' environment variable to overrule this program. |
||
2689 | if test "$cross_compiling" != no; then |
||
2690 | if test -n "$ac_tool_prefix"; then |
||
2691 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
||
2692 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
||
2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
2694 | $as_echo_n "checking for $ac_word... " >&6; } |
||
2695 | if ${ac_cv_prog_STRIP+:} false; then : |
||
2696 | $as_echo_n "(cached) " >&6 |
||
2697 | else |
||
2698 | if test -n "$STRIP"; then |
||
2699 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
||
2700 | else |
||
2701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2702 | for as_dir in $PATH |
||
2703 | do |
||
2704 | IFS=$as_save_IFS |
||
2705 | test -z "$as_dir" && as_dir=. |
||
2706 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2707 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
2708 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
||
2709 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2710 | break 2 |
||
2711 | fi |
||
2712 | done |
||
2713 | done |
||
2714 | IFS=$as_save_IFS |
||
2715 | |||
2716 | fi |
||
2717 | fi |
||
2718 | STRIP=$ac_cv_prog_STRIP |
||
2719 | if test -n "$STRIP"; then |
||
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
||
2721 | $as_echo "$STRIP" >&6; } |
||
2722 | else |
||
2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
2724 | $as_echo "no" >&6; } |
||
2725 | fi |
||
2726 | |||
2727 | |||
2728 | fi |
||
2729 | if test -z "$ac_cv_prog_STRIP"; then |
||
2730 | ac_ct_STRIP=$STRIP |
||
2731 | # Extract the first word of "strip", so it can be a program name with args. |
||
2732 | set dummy strip; ac_word=$2 |
||
2733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
2734 | $as_echo_n "checking for $ac_word... " >&6; } |
||
2735 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
||
2736 | $as_echo_n "(cached) " >&6 |
||
2737 | else |
||
2738 | if test -n "$ac_ct_STRIP"; then |
||
2739 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
||
2740 | else |
||
2741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2742 | for as_dir in $PATH |
||
2743 | do |
||
2744 | IFS=$as_save_IFS |
||
2745 | test -z "$as_dir" && as_dir=. |
||
2746 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2747 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
2748 | ac_cv_prog_ac_ct_STRIP="strip" |
||
2749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2750 | break 2 |
||
2751 | fi |
||
2752 | done |
||
2753 | done |
||
2754 | IFS=$as_save_IFS |
||
2755 | |||
2756 | fi |
||
2757 | fi |
||
2758 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
||
2759 | if test -n "$ac_ct_STRIP"; then |
||
2760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
||
2761 | $as_echo "$ac_ct_STRIP" >&6; } |
||
2762 | else |
||
2763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
2764 | $as_echo "no" >&6; } |
||
2765 | fi |
||
2766 | |||
2767 | if test "x$ac_ct_STRIP" = x; then |
||
2768 | STRIP=":" |
||
2769 | else |
||
2770 | case $cross_compiling:$ac_tool_warned in |
||
2771 | yes:) |
||
2772 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
2773 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
2774 | ac_tool_warned=yes ;; |
||
2775 | esac |
||
2776 | STRIP=$ac_ct_STRIP |
||
2777 | fi |
||
2778 | else |
||
2779 | STRIP="$ac_cv_prog_STRIP" |
||
2780 | fi |
||
2781 | |||
2782 | fi |
||
2783 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
||
2784 | |||
2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
||
2786 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
||
2787 | if test -z "$MKDIR_P"; then |
||
2788 | if ${ac_cv_path_mkdir+:} false; then : |
||
2789 | $as_echo_n "(cached) " >&6 |
||
2790 | else |
||
2791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2792 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
||
2793 | do |
||
2794 | IFS=$as_save_IFS |
||
2795 | test -z "$as_dir" && as_dir=. |
||
2796 | for ac_prog in mkdir gmkdir; do |
||
2797 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2798 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
||
2799 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
||
2800 | 'mkdir (GNU coreutils) '* | \ |
||
2801 | 'mkdir (coreutils) '* | \ |
||
2802 | 'mkdir (fileutils) '4.1*) |
||
2803 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
||
2804 | break 3;; |
||
2805 | esac |
||
2806 | done |
||
2807 | done |
||
2808 | done |
||
2809 | IFS=$as_save_IFS |
||
2810 | |||
2811 | fi |
||
2812 | |||
2813 | test -d ./--version && rmdir ./--version |
||
2814 | if test "${ac_cv_path_mkdir+set}" = set; then |
||
2815 | MKDIR_P="$ac_cv_path_mkdir -p" |
||
2816 | else |
||
2817 | # As a last resort, use the slow shell script. Don't cache a |
||
2818 | # value for MKDIR_P within a source directory, because that will |
||
2819 | # break other packages using the cache if that directory is |
||
2820 | # removed, or if the value is a relative name. |
||
2821 | MKDIR_P="$ac_install_sh -d" |
||
2822 | fi |
||
2823 | fi |
||
2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
||
2825 | $as_echo "$MKDIR_P" >&6; } |
||
2826 | |||
2827 | for ac_prog in gawk mawk nawk awk |
||
2828 | do |
||
2829 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
2830 | set dummy $ac_prog; ac_word=$2 |
||
2831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
2832 | $as_echo_n "checking for $ac_word... " >&6; } |
||
2833 | if ${ac_cv_prog_AWK+:} false; then : |
||
2834 | $as_echo_n "(cached) " >&6 |
||
2835 | else |
||
2836 | if test -n "$AWK"; then |
||
2837 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
||
2838 | else |
||
2839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2840 | for as_dir in $PATH |
||
2841 | do |
||
2842 | IFS=$as_save_IFS |
||
2843 | test -z "$as_dir" && as_dir=. |
||
2844 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2845 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
2846 | ac_cv_prog_AWK="$ac_prog" |
||
2847 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2848 | break 2 |
||
2849 | fi |
||
2850 | done |
||
2851 | done |
||
2852 | IFS=$as_save_IFS |
||
2853 | |||
2854 | fi |
||
2855 | fi |
||
2856 | AWK=$ac_cv_prog_AWK |
||
2857 | if test -n "$AWK"; then |
||
2858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
||
2859 | $as_echo "$AWK" >&6; } |
||
2860 | else |
||
2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
2862 | $as_echo "no" >&6; } |
||
2863 | fi |
||
2864 | |||
2865 | |||
2866 | test -n "$AWK" && break |
||
2867 | done |
||
2868 | |||
2869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
||
2870 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
||
2871 | set x ${MAKE-make} |
||
2872 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
||
2873 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
||
2874 | $as_echo_n "(cached) " >&6 |
||
2875 | else |
||
2876 | cat >conftest.make <<\_ACEOF |
||
2877 | SHELL = /bin/sh |
||
2878 | all: |
||
2879 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
||
2880 | _ACEOF |
||
2881 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
||
2882 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
||
2883 | *@@@%%%=?*=@@@%%%*) |
||
2884 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
||
2885 | *) |
||
2886 | eval ac_cv_prog_make_${ac_make}_set=no;; |
||
2887 | esac |
||
2888 | rm -f conftest.make |
||
2889 | fi |
||
2890 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
||
2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
2892 | $as_echo "yes" >&6; } |
||
2893 | SET_MAKE= |
||
2894 | else |
||
2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
2896 | $as_echo "no" >&6; } |
||
2897 | SET_MAKE="MAKE=${MAKE-make}" |
||
2898 | fi |
||
2899 | |||
2900 | rm -rf .tst 2>/dev/null |
||
2901 | mkdir .tst 2>/dev/null |
||
2902 | if test -d .tst; then |
||
2903 | am__leading_dot=. |
||
2904 | else |
||
2905 | am__leading_dot=_ |
||
2906 | fi |
||
2907 | rmdir .tst 2>/dev/null |
||
2908 | |||
2909 | # Check whether --enable-silent-rules was given. |
||
2910 | if test "${enable_silent_rules+set}" = set; then : |
||
2911 | enableval=$enable_silent_rules; |
||
2912 | fi |
||
2913 | |||
2914 | case $enable_silent_rules in # ((( |
||
2915 | yes) AM_DEFAULT_VERBOSITY=0;; |
||
2916 | no) AM_DEFAULT_VERBOSITY=1;; |
||
2917 | *) AM_DEFAULT_VERBOSITY=1;; |
||
2918 | esac |
||
2919 | am_make=${MAKE-make} |
||
2920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
||
2921 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
||
2922 | if ${am_cv_make_support_nested_variables+:} false; then : |
||
2923 | $as_echo_n "(cached) " >&6 |
||
2924 | else |
||
2925 | if $as_echo 'TRUE=$(BAR$(V)) |
||
2926 | BAR0=false |
||
2927 | BAR1=true |
||
2928 | V=1 |
||
2929 | am__doit: |
||
2930 | @$(TRUE) |
||
2931 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
||
2932 | am_cv_make_support_nested_variables=yes |
||
2933 | else |
||
2934 | am_cv_make_support_nested_variables=no |
||
2935 | fi |
||
2936 | fi |
||
2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
||
2938 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
||
2939 | if test $am_cv_make_support_nested_variables = yes; then |
||
2940 | AM_V='$(V)' |
||
2941 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
||
2942 | else |
||
2943 | AM_V=$AM_DEFAULT_VERBOSITY |
||
2944 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
||
2945 | fi |
||
2946 | AM_BACKSLASH='\' |
||
2947 | |||
2948 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
||
2949 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
||
2950 | # is not polluted with repeated "-I." |
||
2951 | am__isrc=' -I$(srcdir)' |
||
2952 | # test to see if srcdir already configured |
||
2953 | if test -f $srcdir/config.status; then |
||
2954 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
||
2955 | fi |
||
2956 | fi |
||
2957 | |||
2958 | # test whether we have cygpath |
||
2959 | if test -z "$CYGPATH_W"; then |
||
2960 | if (cygpath --version) >/dev/null 2>/dev/null; then |
||
2961 | CYGPATH_W='cygpath -w' |
||
2962 | else |
||
2963 | CYGPATH_W=echo |
||
2964 | fi |
||
2965 | fi |
||
2966 | |||
2967 | |||
2968 | # Define the identity of the package. |
||
2969 | PACKAGE='metal' |
||
2970 | VERSION='1.2' |
||
2971 | |||
2972 | |||
2973 | cat >>confdefs.h <<_ACEOF |
||
2974 | #define PACKAGE "$PACKAGE" |
||
2975 | _ACEOF |
||
2976 | |||
2977 | |||
2978 | cat >>confdefs.h <<_ACEOF |
||
2979 | #define VERSION "$VERSION" |
||
2980 | _ACEOF |
||
2981 | |||
2982 | # Some tools Automake needs. |
||
2983 | |||
2984 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
||
2985 | |||
2986 | |||
2987 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
||
2988 | |||
2989 | |||
2990 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
||
2991 | |||
2992 | |||
2993 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
||
2994 | |||
2995 | |||
2996 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
||
2997 | |||
2998 | # For better backward compatibility. To be removed once Automake 1.9.x |
||
2999 | # dies out for good. For more background, see: |
||
3000 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
||
3001 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
||
3002 | mkdir_p='$(MKDIR_P)' |
||
3003 | |||
3004 | # We need awk for the "check" target (and possibly the TAP driver). The |
||
3005 | # system "awk" is bad on some platforms. |
||
3006 | # Always define AMTAR for backward compatibility. Yes, it's still used |
||
3007 | # in the wild :-( We should find a proper way to deprecate it ... |
||
3008 | AMTAR='$${TAR-tar}' |
||
3009 | |||
3010 | |||
3011 | # We'll loop over all known methods to create a tar archive until one works. |
||
3012 | _am_tools='gnutar pax cpio none' |
||
3013 | |||
3014 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
||
3015 | |||
3016 | |||
3017 | |||
3018 | |||
3019 | |||
3020 | |||
3021 | # POSIX will say in a future version that running "rm -f" with no argument |
||
3022 | # is OK; and we want to be able to make that assumption in our Makefile |
||
3023 | # recipes. So use an aggressive probe to check that the usage we want is |
||
3024 | # actually supported "in the wild" to an acceptable degree. |
||
3025 | # See automake bug#10828. |
||
3026 | # To make any issue more visible, cause the running configure to be aborted |
||
3027 | # by default if the 'rm' program in use doesn't match our expectations; the |
||
3028 | # user can still override this though. |
||
3029 | if rm -f && rm -fr && rm -rf; then : OK; else |
||
3030 | cat >&2 <<'END' |
||
3031 | Oops! |
||
3032 | |||
3033 | Your 'rm' program seems unable to run without file operands specified |
||
3034 | on the command line, even when the '-f' option is present. This is contrary |
||
3035 | to the behaviour of most rm programs out there, and not conforming with |
||
3036 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
||
3037 | |||
3038 | Please tell bug-automake@gnu.org about your system, including the value |
||
3039 | of your $PATH and any error possibly output before this message. This |
||
3040 | can help us improve future automake versions. |
||
3041 | |||
3042 | END |
||
3043 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
||
3044 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
||
3045 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
||
3046 | echo >&2 |
||
3047 | else |
||
3048 | cat >&2 <<'END' |
||
3049 | Aborting the configuration process, to ensure you take notice of the issue. |
||
3050 | |||
3051 | You can download and install GNU coreutils to get an 'rm' implementation |
||
3052 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
||
3053 | |||
3054 | If you want to complete the configuration process using your problematic |
||
3055 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
||
3056 | to "yes", and re-run configure. |
||
3057 | |||
3058 | END |
||
3059 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
||
3060 | fi |
||
3061 | fi |
||
3062 | |||
3063 | |||
3064 | case `pwd` in |
||
3065 | *\ * | *\ *) |
||
3066 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
||
3067 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
||
3068 | esac |
||
3069 | |||
3070 | |||
3071 | |||
3072 | macro_version='2.4.6' |
||
3073 | macro_revision='2.4.6' |
||
3074 | |||
3075 | |||
3076 | |||
3077 | |||
3078 | |||
3079 | |||
3080 | |||
3081 | |||
3082 | |||
3083 | |||
3084 | |||
3085 | |||
3086 | |||
3087 | ltmain=$ac_aux_dir/ltmain.sh |
||
3088 | |||
3089 | # Backslashify metacharacters that are still active within |
||
3090 | # double-quoted strings. |
||
3091 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
||
3092 | |||
3093 | # Same as above, but do not quote variable references. |
||
3094 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
||
3095 | |||
3096 | # Sed substitution to delay expansion of an escaped shell variable in a |
||
3097 | # double_quote_subst'ed string. |
||
3098 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
||
3099 | |||
3100 | # Sed substitution to delay expansion of an escaped single quote. |
||
3101 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
||
3102 | |||
3103 | # Sed substitution to avoid accidental globbing in evaled expressions |
||
3104 | no_glob_subst='s/\*/\\\*/g' |
||
3105 | |||
3106 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
||
3107 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
||
3108 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
||
3109 | |||
3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
||
3111 | $as_echo_n "checking how to print strings... " >&6; } |
||
3112 | # Test print first, because it will be a builtin if present. |
||
3113 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
||
3114 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
||
3115 | ECHO='print -r --' |
||
3116 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
||
3117 | ECHO='printf %s\n' |
||
3118 | else |
||
3119 | # Use this function as a fallback that always works. |
||
3120 | func_fallback_echo () |
||
3121 | { |
||
3122 | eval 'cat <<_LTECHO_EOF |
||
3123 | $1 |
||
3124 | _LTECHO_EOF' |
||
3125 | } |
||
3126 | ECHO='func_fallback_echo' |
||
3127 | fi |
||
3128 | |||
3129 | # func_echo_all arg... |
||
3130 | # Invoke $ECHO with all args, space-separated. |
||
3131 | func_echo_all () |
||
3132 | { |
||
3133 | $ECHO "" |
||
3134 | } |
||
3135 | |||
3136 | case $ECHO in |
||
3137 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
||
3138 | $as_echo "printf" >&6; } ;; |
||
3139 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
||
3140 | $as_echo "print -r" >&6; } ;; |
||
3141 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
||
3142 | $as_echo "cat" >&6; } ;; |
||
3143 | esac |
||
3144 | |||
3145 | |||
3146 | |||
3147 | |||
3148 | |||
3149 | |||
3150 | |||
3151 | |||
3152 | |||
3153 | |||
3154 | |||
3155 | |||
3156 | |||
3157 | |||
3158 | DEPDIR="${am__leading_dot}deps" |
||
3159 | |||
3160 | ac_config_commands="$ac_config_commands depfiles" |
||
3161 | |||
3162 | |||
3163 | am_make=${MAKE-make} |
||
3164 | cat > confinc << 'END' |
||
3165 | am__doit: |
||
3166 | @echo this is the am__doit target |
||
3167 | .PHONY: am__doit |
||
3168 | END |
||
3169 | # If we don't find an include directive, just comment out the code. |
||
3170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
||
3171 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
||
3172 | am__include="#" |
||
3173 | am__quote= |
||
3174 | _am_result=none |
||
3175 | # First try GNU make style include. |
||
3176 | echo "include confinc" > confmf |
||
3177 | # Ignore all kinds of additional output from 'make'. |
||
3178 | case `$am_make -s -f confmf 2> /dev/null` in #( |
||
3179 | *the\ am__doit\ target*) |
||
3180 | am__include=include |
||
3181 | am__quote= |
||
3182 | _am_result=GNU |
||
3183 | ;; |
||
3184 | esac |
||
3185 | # Now try BSD make style include. |
||
3186 | if test "$am__include" = "#"; then |
||
3187 | echo '.include "confinc"' > confmf |
||
3188 | case `$am_make -s -f confmf 2> /dev/null` in #( |
||
3189 | *the\ am__doit\ target*) |
||
3190 | am__include=.include |
||
3191 | am__quote="\"" |
||
3192 | _am_result=BSD |
||
3193 | ;; |
||
3194 | esac |
||
3195 | fi |
||
3196 | |||
3197 | |||
3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
||
3199 | $as_echo "$_am_result" >&6; } |
||
3200 | rm -f confinc confmf |
||
3201 | |||
3202 | # Check whether --enable-dependency-tracking was given. |
||
3203 | if test "${enable_dependency_tracking+set}" = set; then : |
||
3204 | enableval=$enable_dependency_tracking; |
||
3205 | fi |
||
3206 | |||
3207 | if test "x$enable_dependency_tracking" != xno; then |
||
3208 | am_depcomp="$ac_aux_dir/depcomp" |
||
3209 | AMDEPBACKSLASH='\' |
||
3210 | am__nodep='_no' |
||
3211 | fi |
||
3212 | if test "x$enable_dependency_tracking" != xno; then |
||
3213 | AMDEP_TRUE= |
||
3214 | AMDEP_FALSE='#' |
||
3215 | else |
||
3216 | AMDEP_TRUE='#' |
||
3217 | AMDEP_FALSE= |
||
3218 | fi |
||
3219 | |||
3220 | |||
3221 | ac_ext=c |
||
3222 | ac_cpp='$CPP $CPPFLAGS' |
||
3223 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
3224 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
3225 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
3226 | if test -n "$ac_tool_prefix"; then |
||
3227 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
||
3228 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
||
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
3230 | $as_echo_n "checking for $ac_word... " >&6; } |
||
3231 | if ${ac_cv_prog_CC+:} false; then : |
||
3232 | $as_echo_n "(cached) " >&6 |
||
3233 | else |
||
3234 | if test -n "$CC"; then |
||
3235 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
3236 | else |
||
3237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3238 | for as_dir in $PATH |
||
3239 | do |
||
3240 | IFS=$as_save_IFS |
||
3241 | test -z "$as_dir" && as_dir=. |
||
3242 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3243 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3244 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
||
3245 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3246 | break 2 |
||
3247 | fi |
||
3248 | done |
||
3249 | done |
||
3250 | IFS=$as_save_IFS |
||
3251 | |||
3252 | fi |
||
3253 | fi |
||
3254 | CC=$ac_cv_prog_CC |
||
3255 | if test -n "$CC"; then |
||
3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
||
3257 | $as_echo "$CC" >&6; } |
||
3258 | else |
||
3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3260 | $as_echo "no" >&6; } |
||
3261 | fi |
||
3262 | |||
3263 | |||
3264 | fi |
||
3265 | if test -z "$ac_cv_prog_CC"; then |
||
3266 | ac_ct_CC=$CC |
||
3267 | # Extract the first word of "gcc", so it can be a program name with args. |
||
3268 | set dummy gcc; ac_word=$2 |
||
3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
3270 | $as_echo_n "checking for $ac_word... " >&6; } |
||
3271 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
||
3272 | $as_echo_n "(cached) " >&6 |
||
3273 | else |
||
3274 | if test -n "$ac_ct_CC"; then |
||
3275 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
||
3276 | else |
||
3277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3278 | for as_dir in $PATH |
||
3279 | do |
||
3280 | IFS=$as_save_IFS |
||
3281 | test -z "$as_dir" && as_dir=. |
||
3282 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3283 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3284 | ac_cv_prog_ac_ct_CC="gcc" |
||
3285 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3286 | break 2 |
||
3287 | fi |
||
3288 | done |
||
3289 | done |
||
3290 | IFS=$as_save_IFS |
||
3291 | |||
3292 | fi |
||
3293 | fi |
||
3294 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
||
3295 | if test -n "$ac_ct_CC"; then |
||
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
||
3297 | $as_echo "$ac_ct_CC" >&6; } |
||
3298 | else |
||
3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3300 | $as_echo "no" >&6; } |
||
3301 | fi |
||
3302 | |||
3303 | if test "x$ac_ct_CC" = x; then |
||
3304 | CC="" |
||
3305 | else |
||
3306 | case $cross_compiling:$ac_tool_warned in |
||
3307 | yes:) |
||
3308 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
3309 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
3310 | ac_tool_warned=yes ;; |
||
3311 | esac |
||
3312 | CC=$ac_ct_CC |
||
3313 | fi |
||
3314 | else |
||
3315 | CC="$ac_cv_prog_CC" |
||
3316 | fi |
||
3317 | |||
3318 | if test -z "$CC"; then |
||
3319 | if test -n "$ac_tool_prefix"; then |
||
3320 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
||
3321 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
||
3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
3323 | $as_echo_n "checking for $ac_word... " >&6; } |
||
3324 | if ${ac_cv_prog_CC+:} false; then : |
||
3325 | $as_echo_n "(cached) " >&6 |
||
3326 | else |
||
3327 | if test -n "$CC"; then |
||
3328 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
3329 | else |
||
3330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3331 | for as_dir in $PATH |
||
3332 | do |
||
3333 | IFS=$as_save_IFS |
||
3334 | test -z "$as_dir" && as_dir=. |
||
3335 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3336 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3337 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
||
3338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3339 | break 2 |
||
3340 | fi |
||
3341 | done |
||
3342 | done |
||
3343 | IFS=$as_save_IFS |
||
3344 | |||
3345 | fi |
||
3346 | fi |
||
3347 | CC=$ac_cv_prog_CC |
||
3348 | if test -n "$CC"; then |
||
3349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
||
3350 | $as_echo "$CC" >&6; } |
||
3351 | else |
||
3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3353 | $as_echo "no" >&6; } |
||
3354 | fi |
||
3355 | |||
3356 | |||
3357 | fi |
||
3358 | fi |
||
3359 | if test -z "$CC"; then |
||
3360 | # Extract the first word of "cc", so it can be a program name with args. |
||
3361 | set dummy cc; ac_word=$2 |
||
3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
3363 | $as_echo_n "checking for $ac_word... " >&6; } |
||
3364 | if ${ac_cv_prog_CC+:} false; then : |
||
3365 | $as_echo_n "(cached) " >&6 |
||
3366 | else |
||
3367 | if test -n "$CC"; then |
||
3368 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
3369 | else |
||
3370 | ac_prog_rejected=no |
||
3371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3372 | for as_dir in $PATH |
||
3373 | do |
||
3374 | IFS=$as_save_IFS |
||
3375 | test -z "$as_dir" && as_dir=. |
||
3376 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3377 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3378 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
||
3379 | ac_prog_rejected=yes |
||
3380 | continue |
||
3381 | fi |
||
3382 | ac_cv_prog_CC="cc" |
||
3383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3384 | break 2 |
||
3385 | fi |
||
3386 | done |
||
3387 | done |
||
3388 | IFS=$as_save_IFS |
||
3389 | |||
3390 | if test $ac_prog_rejected = yes; then |
||
3391 | # We found a bogon in the path, so make sure we never use it. |
||
3392 | set dummy $ac_cv_prog_CC |
||
3393 | shift |
||
3394 | if test $# != 0; then |
||
3395 | # We chose a different compiler from the bogus one. |
||
3396 | # However, it has the same basename, so the bogon will be chosen |
||
3397 | # first if we set CC to just the basename; use the full file name. |
||
3398 | shift |
||
3399 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
||
3400 | fi |
||
3401 | fi |
||
3402 | fi |
||
3403 | fi |
||
3404 | CC=$ac_cv_prog_CC |
||
3405 | if test -n "$CC"; then |
||
3406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
||
3407 | $as_echo "$CC" >&6; } |
||
3408 | else |
||
3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3410 | $as_echo "no" >&6; } |
||
3411 | fi |
||
3412 | |||
3413 | |||
3414 | fi |
||
3415 | if test -z "$CC"; then |
||
3416 | if test -n "$ac_tool_prefix"; then |
||
3417 | for ac_prog in cl.exe |
||
3418 | do |
||
3419 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
3420 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
3421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
3422 | $as_echo_n "checking for $ac_word... " >&6; } |
||
3423 | if ${ac_cv_prog_CC+:} false; then : |
||
3424 | $as_echo_n "(cached) " >&6 |
||
3425 | else |
||
3426 | if test -n "$CC"; then |
||
3427 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
3428 | else |
||
3429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3430 | for as_dir in $PATH |
||
3431 | do |
||
3432 | IFS=$as_save_IFS |
||
3433 | test -z "$as_dir" && as_dir=. |
||
3434 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3435 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3436 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
||
3437 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3438 | break 2 |
||
3439 | fi |
||
3440 | done |
||
3441 | done |
||
3442 | IFS=$as_save_IFS |
||
3443 | |||
3444 | fi |
||
3445 | fi |
||
3446 | CC=$ac_cv_prog_CC |
||
3447 | if test -n "$CC"; then |
||
3448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
||
3449 | $as_echo "$CC" >&6; } |
||
3450 | else |
||
3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3452 | $as_echo "no" >&6; } |
||
3453 | fi |
||
3454 | |||
3455 | |||
3456 | test -n "$CC" && break |
||
3457 | done |
||
3458 | fi |
||
3459 | if test -z "$CC"; then |
||
3460 | ac_ct_CC=$CC |
||
3461 | for ac_prog in cl.exe |
||
3462 | do |
||
3463 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
3464 | set dummy $ac_prog; ac_word=$2 |
||
3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
3466 | $as_echo_n "checking for $ac_word... " >&6; } |
||
3467 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
||
3468 | $as_echo_n "(cached) " >&6 |
||
3469 | else |
||
3470 | if test -n "$ac_ct_CC"; then |
||
3471 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
||
3472 | else |
||
3473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3474 | for as_dir in $PATH |
||
3475 | do |
||
3476 | IFS=$as_save_IFS |
||
3477 | test -z "$as_dir" && as_dir=. |
||
3478 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3479 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3480 | ac_cv_prog_ac_ct_CC="$ac_prog" |
||
3481 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3482 | break 2 |
||
3483 | fi |
||
3484 | done |
||
3485 | done |
||
3486 | IFS=$as_save_IFS |
||
3487 | |||
3488 | fi |
||
3489 | fi |
||
3490 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
||
3491 | if test -n "$ac_ct_CC"; then |
||
3492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
||
3493 | $as_echo "$ac_ct_CC" >&6; } |
||
3494 | else |
||
3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3496 | $as_echo "no" >&6; } |
||
3497 | fi |
||
3498 | |||
3499 | |||
3500 | test -n "$ac_ct_CC" && break |
||
3501 | done |
||
3502 | |||
3503 | if test "x$ac_ct_CC" = x; then |
||
3504 | CC="" |
||
3505 | else |
||
3506 | case $cross_compiling:$ac_tool_warned in |
||
3507 | yes:) |
||
3508 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
3509 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
3510 | ac_tool_warned=yes ;; |
||
3511 | esac |
||
3512 | CC=$ac_ct_CC |
||
3513 | fi |
||
3514 | fi |
||
3515 | |||
3516 | fi |
||
3517 | |||
3518 | |||
3519 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
3520 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
3521 | as_fn_error $? "no acceptable C compiler found in \$PATH |
||
3522 | See \`config.log' for more details" "$LINENO" 5; } |
||
3523 | |||
3524 | # Provide some information about the compiler. |
||
3525 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
||
3526 | set X $ac_compile |
||
3527 | ac_compiler=$2 |
||
3528 | for ac_option in --version -v -V -qversion; do |
||
3529 | { { ac_try="$ac_compiler $ac_option >&5" |
||
3530 | case "(($ac_try" in |
||
3531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3532 | *) ac_try_echo=$ac_try;; |
||
3533 | esac |
||
3534 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
3535 | $as_echo "$ac_try_echo"; } >&5 |
||
3536 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
||
3537 | ac_status=$? |
||
3538 | if test -s conftest.err; then |
||
3539 | sed '10a\ |
||
3540 | ... rest of stderr output deleted ... |
||
3541 | 10q' conftest.err >conftest.er1 |
||
3542 | cat conftest.er1 >&5 |
||
3543 | fi |
||
3544 | rm -f conftest.er1 conftest.err |
||
3545 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
3546 | test $ac_status = 0; } |
||
3547 | done |
||
3548 | |||
3549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3550 | /* end confdefs.h. */ |
||
3551 | |||
3552 | int |
||
3553 | main () |
||
3554 | { |
||
3555 | |||
3556 | ; |
||
3557 | return 0; |
||
3558 | } |
||
3559 | _ACEOF |
||
3560 | ac_clean_files_save=$ac_clean_files |
||
3561 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
||
3562 | # Try to create an executable without -o first, disregard a.out. |
||
3563 | # It will help us diagnose broken compilers, and finding out an intuition |
||
3564 | # of exeext. |
||
3565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
||
3566 | $as_echo_n "checking whether the C compiler works... " >&6; } |
||
3567 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
||
3568 | |||
3569 | # The possible output files: |
||
3570 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
||
3571 | |||
3572 | ac_rmfiles= |
||
3573 | for ac_file in $ac_files |
||
3574 | do |
||
3575 | case $ac_file in |
||
3576 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
||
3577 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
||
3578 | esac |
||
3579 | done |
||
3580 | rm -f $ac_rmfiles |
||
3581 | |||
3582 | if { { ac_try="$ac_link_default" |
||
3583 | case "(($ac_try" in |
||
3584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3585 | *) ac_try_echo=$ac_try;; |
||
3586 | esac |
||
3587 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
3588 | $as_echo "$ac_try_echo"; } >&5 |
||
3589 | (eval "$ac_link_default") 2>&5 |
||
3590 | ac_status=$? |
||
3591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
3592 | test $ac_status = 0; }; then : |
||
3593 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
||
3594 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
||
3595 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
||
3596 | # so that the user can short-circuit this test for compilers unknown to |
||
3597 | # Autoconf. |
||
3598 | for ac_file in $ac_files '' |
||
3599 | do |
||
3600 | test -f "$ac_file" || continue |
||
3601 | case $ac_file in |
||
3602 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
||
3603 | ;; |
||
3604 | [ab].out ) |
||
3605 | # We found the default executable, but exeext='' is most |
||
3606 | # certainly right. |
||
3607 | break;; |
||
3608 | *.* ) |
||
3609 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
||
3610 | then :; else |
||
3611 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
||
3612 | fi |
||
3613 | # We set ac_cv_exeext here because the later test for it is not |
||
3614 | # safe: cross compilers may not add the suffix if given an `-o' |
||
3615 | # argument, so we may need to know it at that point already. |
||
3616 | # Even if this section looks crufty: it has the advantage of |
||
3617 | # actually working. |
||
3618 | break;; |
||
3619 | * ) |
||
3620 | break;; |
||
3621 | esac |
||
3622 | done |
||
3623 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
||
3624 | |||
3625 | else |
||
3626 | ac_file='' |
||
3627 | fi |
||
3628 | if test -z "$ac_file"; then : |
||
3629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3630 | $as_echo "no" >&6; } |
||
3631 | $as_echo "$as_me: failed program was:" >&5 |
||
3632 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3633 | |||
3634 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
3635 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
3636 | as_fn_error 77 "C compiler cannot create executables |
||
3637 | See \`config.log' for more details" "$LINENO" 5; } |
||
3638 | else |
||
3639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
3640 | $as_echo "yes" >&6; } |
||
3641 | fi |
||
3642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
||
3643 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
||
3644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
||
3645 | $as_echo "$ac_file" >&6; } |
||
3646 | ac_exeext=$ac_cv_exeext |
||
3647 | |||
3648 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
||
3649 | ac_clean_files=$ac_clean_files_save |
||
3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
||
3651 | $as_echo_n "checking for suffix of executables... " >&6; } |
||
3652 | if { { ac_try="$ac_link" |
||
3653 | case "(($ac_try" in |
||
3654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3655 | *) ac_try_echo=$ac_try;; |
||
3656 | esac |
||
3657 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
3658 | $as_echo "$ac_try_echo"; } >&5 |
||
3659 | (eval "$ac_link") 2>&5 |
||
3660 | ac_status=$? |
||
3661 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
3662 | test $ac_status = 0; }; then : |
||
3663 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
||
3664 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
||
3665 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
||
3666 | # `rm'. |
||
3667 | for ac_file in conftest.exe conftest conftest.*; do |
||
3668 | test -f "$ac_file" || continue |
||
3669 | case $ac_file in |
||
3670 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
||
3671 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
||
3672 | break;; |
||
3673 | * ) break;; |
||
3674 | esac |
||
3675 | done |
||
3676 | else |
||
3677 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
3678 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
3679 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
||
3680 | See \`config.log' for more details" "$LINENO" 5; } |
||
3681 | fi |
||
3682 | rm -f conftest conftest$ac_cv_exeext |
||
3683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
||
3684 | $as_echo "$ac_cv_exeext" >&6; } |
||
3685 | |||
3686 | rm -f conftest.$ac_ext |
||
3687 | EXEEXT=$ac_cv_exeext |
||
3688 | ac_exeext=$EXEEXT |
||
3689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3690 | /* end confdefs.h. */ |
||
3691 | #include <stdio.h> |
||
3692 | int |
||
3693 | main () |
||
3694 | { |
||
3695 | FILE *f = fopen ("conftest.out", "w"); |
||
3696 | return ferror (f) || fclose (f) != 0; |
||
3697 | |||
3698 | ; |
||
3699 | return 0; |
||
3700 | } |
||
3701 | _ACEOF |
||
3702 | ac_clean_files="$ac_clean_files conftest.out" |
||
3703 | # Check that the compiler produces executables we can run. If not, either |
||
3704 | # the compiler is broken, or we cross compile. |
||
3705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
||
3706 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
||
3707 | if test "$cross_compiling" != yes; then |
||
3708 | { { ac_try="$ac_link" |
||
3709 | case "(($ac_try" in |
||
3710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3711 | *) ac_try_echo=$ac_try;; |
||
3712 | esac |
||
3713 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
3714 | $as_echo "$ac_try_echo"; } >&5 |
||
3715 | (eval "$ac_link") 2>&5 |
||
3716 | ac_status=$? |
||
3717 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
3718 | test $ac_status = 0; } |
||
3719 | if { ac_try='./conftest$ac_cv_exeext' |
||
3720 | { { case "(($ac_try" in |
||
3721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3722 | *) ac_try_echo=$ac_try;; |
||
3723 | esac |
||
3724 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
3725 | $as_echo "$ac_try_echo"; } >&5 |
||
3726 | (eval "$ac_try") 2>&5 |
||
3727 | ac_status=$? |
||
3728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
3729 | test $ac_status = 0; }; }; then |
||
3730 | cross_compiling=no |
||
3731 | else |
||
3732 | if test "$cross_compiling" = maybe; then |
||
3733 | cross_compiling=yes |
||
3734 | else |
||
3735 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
3736 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
3737 | as_fn_error $? "cannot run C compiled programs. |
||
3738 | If you meant to cross compile, use \`--host'. |
||
3739 | See \`config.log' for more details" "$LINENO" 5; } |
||
3740 | fi |
||
3741 | fi |
||
3742 | fi |
||
3743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
||
3744 | $as_echo "$cross_compiling" >&6; } |
||
3745 | |||
3746 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
||
3747 | ac_clean_files=$ac_clean_files_save |
||
3748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
||
3749 | $as_echo_n "checking for suffix of object files... " >&6; } |
||
3750 | if ${ac_cv_objext+:} false; then : |
||
3751 | $as_echo_n "(cached) " >&6 |
||
3752 | else |
||
3753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3754 | /* end confdefs.h. */ |
||
3755 | |||
3756 | int |
||
3757 | main () |
||
3758 | { |
||
3759 | |||
3760 | ; |
||
3761 | return 0; |
||
3762 | } |
||
3763 | _ACEOF |
||
3764 | rm -f conftest.o conftest.obj |
||
3765 | if { { ac_try="$ac_compile" |
||
3766 | case "(($ac_try" in |
||
3767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3768 | *) ac_try_echo=$ac_try;; |
||
3769 | esac |
||
3770 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
3771 | $as_echo "$ac_try_echo"; } >&5 |
||
3772 | (eval "$ac_compile") 2>&5 |
||
3773 | ac_status=$? |
||
3774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
3775 | test $ac_status = 0; }; then : |
||
3776 | for ac_file in conftest.o conftest.obj conftest.*; do |
||
3777 | test -f "$ac_file" || continue; |
||
3778 | case $ac_file in |
||
3779 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
||
3780 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
||
3781 | break;; |
||
3782 | esac |
||
3783 | done |
||
3784 | else |
||
3785 | $as_echo "$as_me: failed program was:" >&5 |
||
3786 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3787 | |||
3788 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
3789 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
3790 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
||
3791 | See \`config.log' for more details" "$LINENO" 5; } |
||
3792 | fi |
||
3793 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
||
3794 | fi |
||
3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
||
3796 | $as_echo "$ac_cv_objext" >&6; } |
||
3797 | OBJEXT=$ac_cv_objext |
||
3798 | ac_objext=$OBJEXT |
||
3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
||
3800 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
||
3801 | if ${ac_cv_c_compiler_gnu+:} false; then : |
||
3802 | $as_echo_n "(cached) " >&6 |
||
3803 | else |
||
3804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3805 | /* end confdefs.h. */ |
||
3806 | |||
3807 | int |
||
3808 | main () |
||
3809 | { |
||
3810 | #ifndef __GNUC__ |
||
3811 | choke me |
||
3812 | #endif |
||
3813 | |||
3814 | ; |
||
3815 | return 0; |
||
3816 | } |
||
3817 | _ACEOF |
||
3818 | if ac_fn_c_try_compile "$LINENO"; then : |
||
3819 | ac_compiler_gnu=yes |
||
3820 | else |
||
3821 | ac_compiler_gnu=no |
||
3822 | fi |
||
3823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
3824 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
||
3825 | |||
3826 | fi |
||
3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
||
3828 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
||
3829 | if test $ac_compiler_gnu = yes; then |
||
3830 | GCC=yes |
||
3831 | else |
||
3832 | GCC= |
||
3833 | fi |
||
3834 | ac_test_CFLAGS=${CFLAGS+set} |
||
3835 | ac_save_CFLAGS=$CFLAGS |
||
3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
||
3837 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
||
3838 | if ${ac_cv_prog_cc_g+:} false; then : |
||
3839 | $as_echo_n "(cached) " >&6 |
||
3840 | else |
||
3841 | ac_save_c_werror_flag=$ac_c_werror_flag |
||
3842 | ac_c_werror_flag=yes |
||
3843 | ac_cv_prog_cc_g=no |
||
3844 | CFLAGS="-g" |
||
3845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3846 | /* end confdefs.h. */ |
||
3847 | |||
3848 | int |
||
3849 | main () |
||
3850 | { |
||
3851 | |||
3852 | ; |
||
3853 | return 0; |
||
3854 | } |
||
3855 | _ACEOF |
||
3856 | if ac_fn_c_try_compile "$LINENO"; then : |
||
3857 | ac_cv_prog_cc_g=yes |
||
3858 | else |
||
3859 | CFLAGS="" |
||
3860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3861 | /* end confdefs.h. */ |
||
3862 | |||
3863 | int |
||
3864 | main () |
||
3865 | { |
||
3866 | |||
3867 | ; |
||
3868 | return 0; |
||
3869 | } |
||
3870 | _ACEOF |
||
3871 | if ac_fn_c_try_compile "$LINENO"; then : |
||
3872 | |||
3873 | else |
||
3874 | ac_c_werror_flag=$ac_save_c_werror_flag |
||
3875 | CFLAGS="-g" |
||
3876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3877 | /* end confdefs.h. */ |
||
3878 | |||
3879 | int |
||
3880 | main () |
||
3881 | { |
||
3882 | |||
3883 | ; |
||
3884 | return 0; |
||
3885 | } |
||
3886 | _ACEOF |
||
3887 | if ac_fn_c_try_compile "$LINENO"; then : |
||
3888 | ac_cv_prog_cc_g=yes |
||
3889 | fi |
||
3890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
3891 | fi |
||
3892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
3893 | fi |
||
3894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
3895 | ac_c_werror_flag=$ac_save_c_werror_flag |
||
3896 | fi |
||
3897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
||
3898 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
||
3899 | if test "$ac_test_CFLAGS" = set; then |
||
3900 | CFLAGS=$ac_save_CFLAGS |
||
3901 | elif test $ac_cv_prog_cc_g = yes; then |
||
3902 | if test "$GCC" = yes; then |
||
3903 | CFLAGS="-g -O2" |
||
3904 | else |
||
3905 | CFLAGS="-g" |
||
3906 | fi |
||
3907 | else |
||
3908 | if test "$GCC" = yes; then |
||
3909 | CFLAGS="-O2" |
||
3910 | else |
||
3911 | CFLAGS= |
||
3912 | fi |
||
3913 | fi |
||
3914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
||
3915 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
||
3916 | if ${ac_cv_prog_cc_c89+:} false; then : |
||
3917 | $as_echo_n "(cached) " >&6 |
||
3918 | else |
||
3919 | ac_cv_prog_cc_c89=no |
||
3920 | ac_save_CC=$CC |
||
3921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3922 | /* end confdefs.h. */ |
||
3923 | #include <stdarg.h> |
||
3924 | #include <stdio.h> |
||
3925 | struct stat; |
||
3926 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
||
3927 | struct buf { int x; }; |
||
3928 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
||
3929 | static char *e (p, i) |
||
3930 | char **p; |
||
3931 | int i; |
||
3932 | { |
||
3933 | return p[i]; |
||
3934 | } |
||
3935 | static char *f (char * (*g) (char **, int), char **p, ...) |
||
3936 | { |
||
3937 | char *s; |
||
3938 | va_list v; |
||
3939 | va_start (v,p); |
||
3940 | s = g (p, va_arg (v,int)); |
||
3941 | va_end (v); |
||
3942 | return s; |
||
3943 | } |
||
3944 | |||
3945 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
||
3946 | function prototypes and stuff, but not '\xHH' hex character constants. |
||
3947 | These don't provoke an error unfortunately, instead are silently treated |
||
3948 | as 'x'. The following induces an error, until -std is added to get |
||
3949 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
||
3950 | array size at least. It's necessary to write '\x00'==0 to get something |
||
3951 | that's true only with -std. */ |
||
3952 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
||
3953 | |||
3954 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
||
3955 | inside strings and character constants. */ |
||
3956 | #define FOO(x) 'x' |
||
3957 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
||
3958 | |||
3959 | int test (int i, double x); |
||
3960 | struct s1 {int (*f) (int a);}; |
||
3961 | struct s2 {int (*f) (double a);}; |
||
3962 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
||
3963 | int argc; |
||
3964 | char **argv; |
||
3965 | int |
||
3966 | main () |
||
3967 | { |
||
3968 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
||
3969 | ; |
||
3970 | return 0; |
||
3971 | } |
||
3972 | _ACEOF |
||
3973 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
||
3974 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
||
3975 | do |
||
3976 | CC="$ac_save_CC $ac_arg" |
||
3977 | if ac_fn_c_try_compile "$LINENO"; then : |
||
3978 | ac_cv_prog_cc_c89=$ac_arg |
||
3979 | fi |
||
3980 | rm -f core conftest.err conftest.$ac_objext |
||
3981 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
||
3982 | done |
||
3983 | rm -f conftest.$ac_ext |
||
3984 | CC=$ac_save_CC |
||
3985 | |||
3986 | fi |
||
3987 | # AC_CACHE_VAL |
||
3988 | case "x$ac_cv_prog_cc_c89" in |
||
3989 | x) |
||
3990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
||
3991 | $as_echo "none needed" >&6; } ;; |
||
3992 | xno) |
||
3993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
||
3994 | $as_echo "unsupported" >&6; } ;; |
||
3995 | *) |
||
3996 | CC="$CC $ac_cv_prog_cc_c89" |
||
3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
||
3998 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
||
3999 | esac |
||
4000 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
||
4001 | |||
4002 | fi |
||
4003 | |||
4004 | ac_ext=c |
||
4005 | ac_cpp='$CPP $CPPFLAGS' |
||
4006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
4007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
4008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
4009 | |||
4010 | ac_ext=c |
||
4011 | ac_cpp='$CPP $CPPFLAGS' |
||
4012 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
4013 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
4014 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
||
4016 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
||
4017 | if ${am_cv_prog_cc_c_o+:} false; then : |
||
4018 | $as_echo_n "(cached) " >&6 |
||
4019 | else |
||
4020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4021 | /* end confdefs.h. */ |
||
4022 | |||
4023 | int |
||
4024 | main () |
||
4025 | { |
||
4026 | |||
4027 | ; |
||
4028 | return 0; |
||
4029 | } |
||
4030 | _ACEOF |
||
4031 | # Make sure it works both with $CC and with simple cc. |
||
4032 | # Following AC_PROG_CC_C_O, we do the test twice because some |
||
4033 | # compilers refuse to overwrite an existing .o file with -o, |
||
4034 | # though they will create one. |
||
4035 | am_cv_prog_cc_c_o=yes |
||
4036 | for am_i in 1 2; do |
||
4037 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
||
4038 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
||
4039 | ac_status=$? |
||
4040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4041 | (exit $ac_status); } \ |
||
4042 | && test -f conftest2.$ac_objext; then |
||
4043 | : OK |
||
4044 | else |
||
4045 | am_cv_prog_cc_c_o=no |
||
4046 | break |
||
4047 | fi |
||
4048 | done |
||
4049 | rm -f core conftest* |
||
4050 | unset am_i |
||
4051 | fi |
||
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
||
4053 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
||
4054 | if test "$am_cv_prog_cc_c_o" != yes; then |
||
4055 | # Losing compiler, so override with the script. |
||
4056 | # FIXME: It is wrong to rewrite CC. |
||
4057 | # But if we don't then we get into trouble of one sort or another. |
||
4058 | # A longer-term fix would be to have automake use am__CC in this case, |
||
4059 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
||
4060 | CC="$am_aux_dir/compile $CC" |
||
4061 | fi |
||
4062 | ac_ext=c |
||
4063 | ac_cpp='$CPP $CPPFLAGS' |
||
4064 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
4065 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
4066 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
4067 | |||
4068 | |||
4069 | depcc="$CC" am_compiler_list= |
||
4070 | |||
4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
||
4072 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
||
4073 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
||
4074 | $as_echo_n "(cached) " >&6 |
||
4075 | else |
||
4076 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
||
4077 | # We make a subdir and do the tests there. Otherwise we can end up |
||
4078 | # making bogus files that we don't know about and never remove. For |
||
4079 | # instance it was reported that on HP-UX the gcc test will end up |
||
4080 | # making a dummy file named 'D' -- because '-MD' means "put the output |
||
4081 | # in D". |
||
4082 | rm -rf conftest.dir |
||
4083 | mkdir conftest.dir |
||
4084 | # Copy depcomp to subdir because otherwise we won't find it if we're |
||
4085 | # using a relative directory. |
||
4086 | cp "$am_depcomp" conftest.dir |
||
4087 | cd conftest.dir |
||
4088 | # We will build objects and dependencies in a subdirectory because |
||
4089 | # it helps to detect inapplicable dependency modes. For instance |
||
4090 | # both Tru64's cc and ICC support -MD to output dependencies as a |
||
4091 | # side effect of compilation, but ICC will put the dependencies in |
||
4092 | # the current directory while Tru64 will put them in the object |
||
4093 | # directory. |
||
4094 | mkdir sub |
||
4095 | |||
4096 | am_cv_CC_dependencies_compiler_type=none |
||
4097 | if test "$am_compiler_list" = ""; then |
||
4098 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
||
4099 | fi |
||
4100 | am__universal=false |
||
4101 | case " $depcc " in #( |
||
4102 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
||
4103 | esac |
||
4104 | |||
4105 | for depmode in $am_compiler_list; do |
||
4106 | # Setup a source with many dependencies, because some compilers |
||
4107 | # like to wrap large dependency lists on column 80 (with \), and |
||
4108 | # we should not choose a depcomp mode which is confused by this. |
||
4109 | # |
||
4110 | # We need to recreate these files for each test, as the compiler may |
||
4111 | # overwrite some of them when testing with obscure command lines. |
||
4112 | # This happens at least with the AIX C compiler. |
||
4113 | : > sub/conftest.c |
||
4114 | for i in 1 2 3 4 5 6; do |
||
4115 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
||
4116 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
||
4117 | # Solaris 10 /bin/sh. |
||
4118 | echo '/* dummy */' > sub/conftst$i.h |
||
4119 | done |
||
4120 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
||
4121 | |||
4122 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
||
4123 | # mode. It turns out that the SunPro C++ compiler does not properly |
||
4124 | # handle '-M -o', and we need to detect this. Also, some Intel |
||
4125 | # versions had trouble with output in subdirs. |
||
4126 | am__obj=sub/conftest.${OBJEXT-o} |
||
4127 | am__minus_obj="-o $am__obj" |
||
4128 | case $depmode in |
||
4129 | gcc) |
||
4130 | # This depmode causes a compiler race in universal mode. |
||
4131 | test "$am__universal" = false || continue |
||
4132 | ;; |
||
4133 | nosideeffect) |
||
4134 | # After this tag, mechanisms are not by side-effect, so they'll |
||
4135 | # only be used when explicitly requested. |
||
4136 | if test "x$enable_dependency_tracking" = xyes; then |
||
4137 | continue |
||
4138 | else |
||
4139 | break |
||
4140 | fi |
||
4141 | ;; |
||
4142 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
||
4143 | # This compiler won't grok '-c -o', but also, the minuso test has |
||
4144 | # not run yet. These depmodes are late enough in the game, and |
||
4145 | # so weak that their functioning should not be impacted. |
||
4146 | am__obj=conftest.${OBJEXT-o} |
||
4147 | am__minus_obj= |
||
4148 | ;; |
||
4149 | none) break ;; |
||
4150 | esac |
||
4151 | if depmode=$depmode \ |
||
4152 | source=sub/conftest.c object=$am__obj \ |
||
4153 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
||
4154 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
||
4155 | >/dev/null 2>conftest.err && |
||
4156 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
||
4157 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
||
4158 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
||
4159 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
||
4160 | # icc doesn't choke on unknown options, it will just issue warnings |
||
4161 | # or remarks (even with -Werror). So we grep stderr for any message |
||
4162 | # that says an option was ignored or not supported. |
||
4163 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
||
4164 | # icc: Command line warning: ignoring option '-M'; no argument required |
||
4165 | # The diagnosis changed in icc 8.0: |
||
4166 | # icc: Command line remark: option '-MP' not supported |
||
4167 | if (grep 'ignoring option' conftest.err || |
||
4168 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
||
4169 | am_cv_CC_dependencies_compiler_type=$depmode |
||
4170 | break |
||
4171 | fi |
||
4172 | fi |
||
4173 | done |
||
4174 | |||
4175 | cd .. |
||
4176 | rm -rf conftest.dir |
||
4177 | else |
||
4178 | am_cv_CC_dependencies_compiler_type=none |
||
4179 | fi |
||
4180 | |||
4181 | fi |
||
4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
||
4183 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
||
4184 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
||
4185 | |||
4186 | if |
||
4187 | test "x$enable_dependency_tracking" != xno \ |
||
4188 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
||
4189 | am__fastdepCC_TRUE= |
||
4190 | am__fastdepCC_FALSE='#' |
||
4191 | else |
||
4192 | am__fastdepCC_TRUE='#' |
||
4193 | am__fastdepCC_FALSE= |
||
4194 | fi |
||
4195 | |||
4196 | |||
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
||
4198 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
||
4199 | if ${ac_cv_path_SED+:} false; then : |
||
4200 | $as_echo_n "(cached) " >&6 |
||
4201 | else |
||
4202 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
||
4203 | for ac_i in 1 2 3 4 5 6 7; do |
||
4204 | ac_script="$ac_script$as_nl$ac_script" |
||
4205 | done |
||
4206 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
||
4207 | { ac_script=; unset ac_script;} |
||
4208 | if test -z "$SED"; then |
||
4209 | ac_path_SED_found=false |
||
4210 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
4211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
4212 | for as_dir in $PATH |
||
4213 | do |
||
4214 | IFS=$as_save_IFS |
||
4215 | test -z "$as_dir" && as_dir=. |
||
4216 | for ac_prog in sed gsed; do |
||
4217 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
4218 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
||
4219 | as_fn_executable_p "$ac_path_SED" || continue |
||
4220 | # Check for GNU ac_path_SED and select it if it is found. |
||
4221 | # Check for GNU $ac_path_SED |
||
4222 | case `"$ac_path_SED" --version 2>&1` in |
||
4223 | *GNU*) |
||
4224 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
||
4225 | *) |
||
4226 | ac_count=0 |
||
4227 | $as_echo_n 0123456789 >"conftest.in" |
||
4228 | while : |
||
4229 | do |
||
4230 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
||
4231 | mv "conftest.tmp" "conftest.in" |
||
4232 | cp "conftest.in" "conftest.nl" |
||
4233 | $as_echo '' >> "conftest.nl" |
||
4234 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
||
4235 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
||
4236 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
||
4237 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
||
4238 | # Best one so far, save it but keep looking for a better one |
||
4239 | ac_cv_path_SED="$ac_path_SED" |
||
4240 | ac_path_SED_max=$ac_count |
||
4241 | fi |
||
4242 | # 10*(2^10) chars as input seems more than enough |
||
4243 | test $ac_count -gt 10 && break |
||
4244 | done |
||
4245 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
||
4246 | esac |
||
4247 | |||
4248 | $ac_path_SED_found && break 3 |
||
4249 | done |
||
4250 | done |
||
4251 | done |
||
4252 | IFS=$as_save_IFS |
||
4253 | if test -z "$ac_cv_path_SED"; then |
||
4254 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
||
4255 | fi |
||
4256 | else |
||
4257 | ac_cv_path_SED=$SED |
||
4258 | fi |
||
4259 | |||
4260 | fi |
||
4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
||
4262 | $as_echo "$ac_cv_path_SED" >&6; } |
||
4263 | SED="$ac_cv_path_SED" |
||
4264 | rm -f conftest.sed |
||
4265 | |||
4266 | test -z "$SED" && SED=sed |
||
4267 | Xsed="$SED -e 1s/^X//" |
||
4268 | |||
4269 | |||
4270 | |||
4271 | |||
4272 | |||
4273 | |||
4274 | |||
4275 | |||
4276 | |||
4277 | |||
4278 | |||
4279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
||
4280 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
||
4281 | if ${ac_cv_path_GREP+:} false; then : |
||
4282 | $as_echo_n "(cached) " >&6 |
||
4283 | else |
||
4284 | if test -z "$GREP"; then |
||
4285 | ac_path_GREP_found=false |
||
4286 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
4287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
4288 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
||
4289 | do |
||
4290 | IFS=$as_save_IFS |
||
4291 | test -z "$as_dir" && as_dir=. |
||
4292 | for ac_prog in grep ggrep; do |
||
4293 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
4294 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
||
4295 | as_fn_executable_p "$ac_path_GREP" || continue |
||
4296 | # Check for GNU ac_path_GREP and select it if it is found. |
||
4297 | # Check for GNU $ac_path_GREP |
||
4298 | case `"$ac_path_GREP" --version 2>&1` in |
||
4299 | *GNU*) |
||
4300 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
||
4301 | *) |
||
4302 | ac_count=0 |
||
4303 | $as_echo_n 0123456789 >"conftest.in" |
||
4304 | while : |
||
4305 | do |
||
4306 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
||
4307 | mv "conftest.tmp" "conftest.in" |
||
4308 | cp "conftest.in" "conftest.nl" |
||
4309 | $as_echo 'GREP' >> "conftest.nl" |
||
4310 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
||
4311 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
||
4312 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
||
4313 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
||
4314 | # Best one so far, save it but keep looking for a better one |
||
4315 | ac_cv_path_GREP="$ac_path_GREP" |
||
4316 | ac_path_GREP_max=$ac_count |
||
4317 | fi |
||
4318 | # 10*(2^10) chars as input seems more than enough |
||
4319 | test $ac_count -gt 10 && break |
||
4320 | done |
||
4321 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
||
4322 | esac |
||
4323 | |||
4324 | $ac_path_GREP_found && break 3 |
||
4325 | done |
||
4326 | done |
||
4327 | done |
||
4328 | IFS=$as_save_IFS |
||
4329 | if test -z "$ac_cv_path_GREP"; then |
||
4330 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
||
4331 | fi |
||
4332 | else |
||
4333 | ac_cv_path_GREP=$GREP |
||
4334 | fi |
||
4335 | |||
4336 | fi |
||
4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
||
4338 | $as_echo "$ac_cv_path_GREP" >&6; } |
||
4339 | GREP="$ac_cv_path_GREP" |
||
4340 | |||
4341 | |||
4342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
||
4343 | $as_echo_n "checking for egrep... " >&6; } |
||
4344 | if ${ac_cv_path_EGREP+:} false; then : |
||
4345 | $as_echo_n "(cached) " >&6 |
||
4346 | else |
||
4347 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
||
4348 | then ac_cv_path_EGREP="$GREP -E" |
||
4349 | else |
||
4350 | if test -z "$EGREP"; then |
||
4351 | ac_path_EGREP_found=false |
||
4352 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
4353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
4354 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
||
4355 | do |
||
4356 | IFS=$as_save_IFS |
||
4357 | test -z "$as_dir" && as_dir=. |
||
4358 | for ac_prog in egrep; do |
||
4359 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
4360 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
||
4361 | as_fn_executable_p "$ac_path_EGREP" || continue |
||
4362 | # Check for GNU ac_path_EGREP and select it if it is found. |
||
4363 | # Check for GNU $ac_path_EGREP |
||
4364 | case `"$ac_path_EGREP" --version 2>&1` in |
||
4365 | *GNU*) |
||
4366 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
||
4367 | *) |
||
4368 | ac_count=0 |
||
4369 | $as_echo_n 0123456789 >"conftest.in" |
||
4370 | while : |
||
4371 | do |
||
4372 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
||
4373 | mv "conftest.tmp" "conftest.in" |
||
4374 | cp "conftest.in" "conftest.nl" |
||
4375 | $as_echo 'EGREP' >> "conftest.nl" |
||
4376 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
||
4377 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
||
4378 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
||
4379 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
||
4380 | # Best one so far, save it but keep looking for a better one |
||
4381 | ac_cv_path_EGREP="$ac_path_EGREP" |
||
4382 | ac_path_EGREP_max=$ac_count |
||
4383 | fi |
||
4384 | # 10*(2^10) chars as input seems more than enough |
||
4385 | test $ac_count -gt 10 && break |
||
4386 | done |
||
4387 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
||
4388 | esac |
||
4389 | |||
4390 | $ac_path_EGREP_found && break 3 |
||
4391 | done |
||
4392 | done |
||
4393 | done |
||
4394 | IFS=$as_save_IFS |
||
4395 | if test -z "$ac_cv_path_EGREP"; then |
||
4396 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
||
4397 | fi |
||
4398 | else |
||
4399 | ac_cv_path_EGREP=$EGREP |
||
4400 | fi |
||
4401 | |||
4402 | fi |
||
4403 | fi |
||
4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
||
4405 | $as_echo "$ac_cv_path_EGREP" >&6; } |
||
4406 | EGREP="$ac_cv_path_EGREP" |
||
4407 | |||
4408 | |||
4409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
||
4410 | $as_echo_n "checking for fgrep... " >&6; } |
||
4411 | if ${ac_cv_path_FGREP+:} false; then : |
||
4412 | $as_echo_n "(cached) " >&6 |
||
4413 | else |
||
4414 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
||
4415 | then ac_cv_path_FGREP="$GREP -F" |
||
4416 | else |
||
4417 | if test -z "$FGREP"; then |
||
4418 | ac_path_FGREP_found=false |
||
4419 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
4420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
4421 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
||
4422 | do |
||
4423 | IFS=$as_save_IFS |
||
4424 | test -z "$as_dir" && as_dir=. |
||
4425 | for ac_prog in fgrep; do |
||
4426 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
4427 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
||
4428 | as_fn_executable_p "$ac_path_FGREP" || continue |
||
4429 | # Check for GNU ac_path_FGREP and select it if it is found. |
||
4430 | # Check for GNU $ac_path_FGREP |
||
4431 | case `"$ac_path_FGREP" --version 2>&1` in |
||
4432 | *GNU*) |
||
4433 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
||
4434 | *) |
||
4435 | ac_count=0 |
||
4436 | $as_echo_n 0123456789 >"conftest.in" |
||
4437 | while : |
||
4438 | do |
||
4439 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
||
4440 | mv "conftest.tmp" "conftest.in" |
||
4441 | cp "conftest.in" "conftest.nl" |
||
4442 | $as_echo 'FGREP' >> "conftest.nl" |
||
4443 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
||
4444 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
||
4445 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
||
4446 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
||
4447 | # Best one so far, save it but keep looking for a better one |
||
4448 | ac_cv_path_FGREP="$ac_path_FGREP" |
||
4449 | ac_path_FGREP_max=$ac_count |
||
4450 | fi |
||
4451 | # 10*(2^10) chars as input seems more than enough |
||
4452 | test $ac_count -gt 10 && break |
||
4453 | done |
||
4454 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
||
4455 | esac |
||
4456 | |||
4457 | $ac_path_FGREP_found && break 3 |
||
4458 | done |
||
4459 | done |
||
4460 | done |
||
4461 | IFS=$as_save_IFS |
||
4462 | if test -z "$ac_cv_path_FGREP"; then |
||
4463 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
||
4464 | fi |
||
4465 | else |
||
4466 | ac_cv_path_FGREP=$FGREP |
||
4467 | fi |
||
4468 | |||
4469 | fi |
||
4470 | fi |
||
4471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
||
4472 | $as_echo "$ac_cv_path_FGREP" >&6; } |
||
4473 | FGREP="$ac_cv_path_FGREP" |
||
4474 | |||
4475 | |||
4476 | test -z "$GREP" && GREP=grep |
||
4477 | |||
4478 | |||
4479 | |||
4480 | |||
4481 | |||
4482 | |||
4483 | |||
4484 | |||
4485 | |||
4486 | |||
4487 | |||
4488 | |||
4489 | |||
4490 | |||
4491 | |||
4492 | |||
4493 | |||
4494 | |||
4495 | |||
4496 | # Check whether --with-gnu-ld was given. |
||
4497 | if test "${with_gnu_ld+set}" = set; then : |
||
4498 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
||
4499 | else |
||
4500 | with_gnu_ld=no |
||
4501 | fi |
||
4502 | |||
4503 | ac_prog=ld |
||
4504 | if test yes = "$GCC"; then |
||
4505 | # Check if gcc -print-prog-name=ld gives a path. |
||
4506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
||
4507 | $as_echo_n "checking for ld used by $CC... " >&6; } |
||
4508 | case $host in |
||
4509 | *-*-mingw*) |
||
4510 | # gcc leaves a trailing carriage return, which upsets mingw |
||
4511 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
||
4512 | *) |
||
4513 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
||
4514 | esac |
||
4515 | case $ac_prog in |
||
4516 | # Accept absolute paths. |
||
4517 | [\\/]* | ?:[\\/]*) |
||
4518 | re_direlt='/[^/][^/]*/\.\./' |
||
4519 | # Canonicalize the pathname of ld |
||
4520 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
||
4521 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
||
4522 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
||
4523 | done |
||
4524 | test -z "$LD" && LD=$ac_prog |
||
4525 | ;; |
||
4526 | "") |
||
4527 | # If it fails, then pretend we aren't using GCC. |
||
4528 | ac_prog=ld |
||
4529 | ;; |
||
4530 | *) |
||
4531 | # If it is relative, then search for the first ld in PATH. |
||
4532 | with_gnu_ld=unknown |
||
4533 | ;; |
||
4534 | esac |
||
4535 | elif test yes = "$with_gnu_ld"; then |
||
4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
||
4537 | $as_echo_n "checking for GNU ld... " >&6; } |
||
4538 | else |
||
4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
||
4540 | $as_echo_n "checking for non-GNU ld... " >&6; } |
||
4541 | fi |
||
4542 | if ${lt_cv_path_LD+:} false; then : |
||
4543 | $as_echo_n "(cached) " >&6 |
||
4544 | else |
||
4545 | if test -z "$LD"; then |
||
4546 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
||
4547 | for ac_dir in $PATH; do |
||
4548 | IFS=$lt_save_ifs |
||
4549 | test -z "$ac_dir" && ac_dir=. |
||
4550 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
||
4551 | lt_cv_path_LD=$ac_dir/$ac_prog |
||
4552 | # Check to see if the program is GNU ld. I'd rather use --version, |
||
4553 | # but apparently some variants of GNU ld only accept -v. |
||
4554 | # Break only if it was the GNU/non-GNU ld that we prefer. |
||
4555 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
||
4556 | *GNU* | *'with BFD'*) |
||
4557 | test no != "$with_gnu_ld" && break |
||
4558 | ;; |
||
4559 | *) |
||
4560 | test yes != "$with_gnu_ld" && break |
||
4561 | ;; |
||
4562 | esac |
||
4563 | fi |
||
4564 | done |
||
4565 | IFS=$lt_save_ifs |
||
4566 | else |
||
4567 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
||
4568 | fi |
||
4569 | fi |
||
4570 | |||
4571 | LD=$lt_cv_path_LD |
||
4572 | if test -n "$LD"; then |
||
4573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
||
4574 | $as_echo "$LD" >&6; } |
||
4575 | else |
||
4576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
4577 | $as_echo "no" >&6; } |
||
4578 | fi |
||
4579 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
||
4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
||
4581 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
||
4582 | if ${lt_cv_prog_gnu_ld+:} false; then : |
||
4583 | $as_echo_n "(cached) " >&6 |
||
4584 | else |
||
4585 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
||
4586 | case `$LD -v 2>&1 </dev/null` in |
||
4587 | *GNU* | *'with BFD'*) |
||
4588 | lt_cv_prog_gnu_ld=yes |
||
4589 | ;; |
||
4590 | *) |
||
4591 | lt_cv_prog_gnu_ld=no |
||
4592 | ;; |
||
4593 | esac |
||
4594 | fi |
||
4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
||
4596 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
||
4597 | with_gnu_ld=$lt_cv_prog_gnu_ld |
||
4598 | |||
4599 | |||
4600 | |||
4601 | |||
4602 | |||
4603 | |||
4604 | |||
4605 | |||
4606 | |||
4607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
||
4608 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
||
4609 | if ${lt_cv_path_NM+:} false; then : |
||
4610 | $as_echo_n "(cached) " >&6 |
||
4611 | else |
||
4612 | if test -n "$NM"; then |
||
4613 | # Let the user override the test. |
||
4614 | lt_cv_path_NM=$NM |
||
4615 | else |
||
4616 | lt_nm_to_check=${ac_tool_prefix}nm |
||
4617 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
||
4618 | lt_nm_to_check="$lt_nm_to_check nm" |
||
4619 | fi |
||
4620 | for lt_tmp_nm in $lt_nm_to_check; do |
||
4621 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
||
4622 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
||
4623 | IFS=$lt_save_ifs |
||
4624 | test -z "$ac_dir" && ac_dir=. |
||
4625 | tmp_nm=$ac_dir/$lt_tmp_nm |
||
4626 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
||
4627 | # Check to see if the nm accepts a BSD-compat flag. |
||
4628 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
||
4629 | # nm: unknown option "B" ignored |
||
4630 | # Tru64's nm complains that /dev/null is an invalid object file |
||
4631 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
||
4632 | case $build_os in |
||
4633 | mingw*) lt_bad_file=conftest.nm/nofile ;; |
||
4634 | *) lt_bad_file=/dev/null ;; |
||
4635 | esac |
||
4636 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
||
4637 | *$lt_bad_file* | *'Invalid file or object type'*) |
||
4638 | lt_cv_path_NM="$tmp_nm -B" |
||
4639 | break 2 |
||
4640 | ;; |
||
4641 | *) |
||
4642 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
||
4643 | */dev/null*) |
||
4644 | lt_cv_path_NM="$tmp_nm -p" |
||
4645 | break 2 |
||
4646 | ;; |
||
4647 | *) |
||
4648 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
||
4649 | continue # so that we can try to find one that supports BSD flags |
||
4650 | ;; |
||
4651 | esac |
||
4652 | ;; |
||
4653 | esac |
||
4654 | fi |
||
4655 | done |
||
4656 | IFS=$lt_save_ifs |
||
4657 | done |
||
4658 | : ${lt_cv_path_NM=no} |
||
4659 | fi |
||
4660 | fi |
||
4661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
||
4662 | $as_echo "$lt_cv_path_NM" >&6; } |
||
4663 | if test no != "$lt_cv_path_NM"; then |
||
4664 | NM=$lt_cv_path_NM |
||
4665 | else |
||
4666 | # Didn't find any BSD compatible name lister, look for dumpbin. |
||
4667 | if test -n "$DUMPBIN"; then : |
||
4668 | # Let the user override the test. |
||
4669 | else |
||
4670 | if test -n "$ac_tool_prefix"; then |
||
4671 | for ac_prog in dumpbin "link -dump" |
||
4672 | do |
||
4673 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
4674 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
4675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
4676 | $as_echo_n "checking for $ac_word... " >&6; } |
||
4677 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
||
4678 | $as_echo_n "(cached) " >&6 |
||
4679 | else |
||
4680 | if test -n "$DUMPBIN"; then |
||
4681 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
||
4682 | else |
||
4683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
4684 | for as_dir in $PATH |
||
4685 | do |
||
4686 | IFS=$as_save_IFS |
||
4687 | test -z "$as_dir" && as_dir=. |
||
4688 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
4689 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
4690 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
||
4691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
4692 | break 2 |
||
4693 | fi |
||
4694 | done |
||
4695 | done |
||
4696 | IFS=$as_save_IFS |
||
4697 | |||
4698 | fi |
||
4699 | fi |
||
4700 | DUMPBIN=$ac_cv_prog_DUMPBIN |
||
4701 | if test -n "$DUMPBIN"; then |
||
4702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
||
4703 | $as_echo "$DUMPBIN" >&6; } |
||
4704 | else |
||
4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
4706 | $as_echo "no" >&6; } |
||
4707 | fi |
||
4708 | |||
4709 | |||
4710 | test -n "$DUMPBIN" && break |
||
4711 | done |
||
4712 | fi |
||
4713 | if test -z "$DUMPBIN"; then |
||
4714 | ac_ct_DUMPBIN=$DUMPBIN |
||
4715 | for ac_prog in dumpbin "link -dump" |
||
4716 | do |
||
4717 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
4718 | set dummy $ac_prog; ac_word=$2 |
||
4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
4720 | $as_echo_n "checking for $ac_word... " >&6; } |
||
4721 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
||
4722 | $as_echo_n "(cached) " >&6 |
||
4723 | else |
||
4724 | if test -n "$ac_ct_DUMPBIN"; then |
||
4725 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
||
4726 | else |
||
4727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
4728 | for as_dir in $PATH |
||
4729 | do |
||
4730 | IFS=$as_save_IFS |
||
4731 | test -z "$as_dir" && as_dir=. |
||
4732 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
4733 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
4734 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
||
4735 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
4736 | break 2 |
||
4737 | fi |
||
4738 | done |
||
4739 | done |
||
4740 | IFS=$as_save_IFS |
||
4741 | |||
4742 | fi |
||
4743 | fi |
||
4744 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
||
4745 | if test -n "$ac_ct_DUMPBIN"; then |
||
4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
||
4747 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
||
4748 | else |
||
4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
4750 | $as_echo "no" >&6; } |
||
4751 | fi |
||
4752 | |||
4753 | |||
4754 | test -n "$ac_ct_DUMPBIN" && break |
||
4755 | done |
||
4756 | |||
4757 | if test "x$ac_ct_DUMPBIN" = x; then |
||
4758 | DUMPBIN=":" |
||
4759 | else |
||
4760 | case $cross_compiling:$ac_tool_warned in |
||
4761 | yes:) |
||
4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
4763 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
4764 | ac_tool_warned=yes ;; |
||
4765 | esac |
||
4766 | DUMPBIN=$ac_ct_DUMPBIN |
||
4767 | fi |
||
4768 | fi |
||
4769 | |||
4770 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
||
4771 | *COFF*) |
||
4772 | DUMPBIN="$DUMPBIN -symbols -headers" |
||
4773 | ;; |
||
4774 | *) |
||
4775 | DUMPBIN=: |
||
4776 | ;; |
||
4777 | esac |
||
4778 | fi |
||
4779 | |||
4780 | if test : != "$DUMPBIN"; then |
||
4781 | NM=$DUMPBIN |
||
4782 | fi |
||
4783 | fi |
||
4784 | test -z "$NM" && NM=nm |
||
4785 | |||
4786 | |||
4787 | |||
4788 | |||
4789 | |||
4790 | |||
4791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
||
4792 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
||
4793 | if ${lt_cv_nm_interface+:} false; then : |
||
4794 | $as_echo_n "(cached) " >&6 |
||
4795 | else |
||
4796 | lt_cv_nm_interface="BSD nm" |
||
4797 | echo "int some_variable = 0;" > conftest.$ac_ext |
||
4798 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
||
4799 | (eval "$ac_compile" 2>conftest.err) |
||
4800 | cat conftest.err >&5 |
||
4801 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
||
4802 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
||
4803 | cat conftest.err >&5 |
||
4804 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
||
4805 | cat conftest.out >&5 |
||
4806 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
||
4807 | lt_cv_nm_interface="MS dumpbin" |
||
4808 | fi |
||
4809 | rm -f conftest* |
||
4810 | fi |
||
4811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
||
4812 | $as_echo "$lt_cv_nm_interface" >&6; } |
||
4813 | |||
4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
||
4815 | $as_echo_n "checking whether ln -s works... " >&6; } |
||
4816 | LN_S=$as_ln_s |
||
4817 | if test "$LN_S" = "ln -s"; then |
||
4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
4819 | $as_echo "yes" >&6; } |
||
4820 | else |
||
4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
||
4822 | $as_echo "no, using $LN_S" >&6; } |
||
4823 | fi |
||
4824 | |||
4825 | # find the maximum length of command line arguments |
||
4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
||
4827 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
||
4828 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
||
4829 | $as_echo_n "(cached) " >&6 |
||
4830 | else |
||
4831 | i=0 |
||
4832 | teststring=ABCD |
||
4833 | |||
4834 | case $build_os in |
||
4835 | msdosdjgpp*) |
||
4836 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
||
4837 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
||
4838 | # during glob expansion). Even if it were fixed, the result of this |
||
4839 | # check would be larger than it should be. |
||
4840 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
||
4841 | ;; |
||
4842 | |||
4843 | gnu*) |
||
4844 | # Under GNU Hurd, this test is not required because there is |
||
4845 | # no limit to the length of command line arguments. |
||
4846 | # Libtool will interpret -1 as no limit whatsoever |
||
4847 | lt_cv_sys_max_cmd_len=-1; |
||
4848 | ;; |
||
4849 | |||
7 | mjames | 4850 | cygwin* | mingw* | cegcc*) |
2 | mjames | 4851 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
4852 | # about 5 minutes as the teststring grows exponentially. |
||
4853 | # Worse, since 9x/ME are not pre-emptively multitasking, |
||
4854 | # you end up with a "frozen" computer, even though with patience |
||
4855 | # the test eventually succeeds (with a max line length of 256k). |
||
4856 | # Instead, let's just punt: use the minimum linelength reported by |
||
4857 | # all of the supported platforms: 8192 (on NT/2K/XP). |
||
4858 | lt_cv_sys_max_cmd_len=8192; |
||
4859 | ;; |
||
4860 | |||
4861 | mint*) |
||
4862 | # On MiNT this can take a long time and run out of memory. |
||
4863 | lt_cv_sys_max_cmd_len=8192; |
||
4864 | ;; |
||
4865 | |||
4866 | amigaos*) |
||
4867 | # On AmigaOS with pdksh, this test takes hours, literally. |
||
4868 | # So we just punt and use a minimum line length of 8192. |
||
4869 | lt_cv_sys_max_cmd_len=8192; |
||
4870 | ;; |
||
4871 | |||
4872 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
||
4873 | # This has been around since 386BSD, at least. Likely further. |
||
4874 | if test -x /sbin/sysctl; then |
||
4875 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
||
4876 | elif test -x /usr/sbin/sysctl; then |
||
4877 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
||
4878 | else |
||
4879 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
||
4880 | fi |
||
4881 | # And add a safety zone |
||
4882 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
||
4883 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
||
4884 | ;; |
||
4885 | |||
4886 | interix*) |
||
4887 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
||
4888 | lt_cv_sys_max_cmd_len=196608 |
||
4889 | ;; |
||
4890 | |||
4891 | os2*) |
||
4892 | # The test takes a long time on OS/2. |
||
4893 | lt_cv_sys_max_cmd_len=8192 |
||
4894 | ;; |
||
4895 | |||
4896 | osf*) |
||
4897 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
||
4898 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
||
4899 | # nice to cause kernel panics so lets avoid the loop below. |
||
4900 | # First set a reasonable default. |
||
4901 | lt_cv_sys_max_cmd_len=16384 |
||
4902 | # |
||
4903 | if test -x /sbin/sysconfig; then |
||
4904 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
||
4905 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
||
4906 | esac |
||
4907 | fi |
||
4908 | ;; |
||
4909 | sco3.2v5*) |
||
4910 | lt_cv_sys_max_cmd_len=102400 |
||
4911 | ;; |
||
4912 | sysv5* | sco5v6* | sysv4.2uw2*) |
||
4913 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
||
4914 | if test -n "$kargmax"; then |
||
4915 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
||
4916 | else |
||
4917 | lt_cv_sys_max_cmd_len=32768 |
||
4918 | fi |
||
4919 | ;; |
||
4920 | *) |
||
4921 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
||
4922 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
||
4923 | test undefined != "$lt_cv_sys_max_cmd_len"; then |
||
4924 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
||
4925 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
||
4926 | else |
||
4927 | # Make teststring a little bigger before we do anything with it. |
||
4928 | # a 1K string should be a reasonable start. |
||
4929 | for i in 1 2 3 4 5 6 7 8; do |
||
4930 | teststring=$teststring$teststring |
||
4931 | done |
||
4932 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
||
4933 | # If test is not a shell built-in, we'll probably end up computing a |
||
4934 | # maximum length that is only half of the actual maximum length, but |
||
4935 | # we can't tell. |
||
4936 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
||
4937 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
||
4938 | test 17 != "$i" # 1/2 MB should be enough |
||
4939 | do |
||
4940 | i=`expr $i + 1` |
||
4941 | teststring=$teststring$teststring |
||
4942 | done |
||
4943 | # Only check the string length outside the loop. |
||
4944 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
||
4945 | teststring= |
||
4946 | # Add a significant safety factor because C++ compilers can tack on |
||
4947 | # massive amounts of additional arguments before passing them to the |
||
4948 | # linker. It appears as though 1/2 is a usable value. |
||
4949 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
||
4950 | fi |
||
4951 | ;; |
||
4952 | esac |
||
4953 | |||
4954 | fi |
||
4955 | |||
4956 | if test -n "$lt_cv_sys_max_cmd_len"; then |
||
4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
||
4958 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
||
4959 | else |
||
4960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
||
4961 | $as_echo "none" >&6; } |
||
4962 | fi |
||
4963 | max_cmd_len=$lt_cv_sys_max_cmd_len |
||
4964 | |||
4965 | |||
4966 | |||
4967 | |||
4968 | |||
4969 | |||
4970 | : ${CP="cp -f"} |
||
4971 | : ${MV="mv -f"} |
||
4972 | : ${RM="rm -f"} |
||
4973 | |||
4974 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
||
4975 | lt_unset=unset |
||
4976 | else |
||
4977 | lt_unset=false |
||
4978 | fi |
||
4979 | |||
4980 | |||
4981 | |||
4982 | |||
4983 | |||
4984 | # test EBCDIC or ASCII |
||
4985 | case `echo X|tr X '\101'` in |
||
4986 | A) # ASCII based system |
||
4987 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
||
4988 | lt_SP2NL='tr \040 \012' |
||
4989 | lt_NL2SP='tr \015\012 \040\040' |
||
4990 | ;; |
||
4991 | *) # EBCDIC based system |
||
4992 | lt_SP2NL='tr \100 \n' |
||
4993 | lt_NL2SP='tr \r\n \100\100' |
||
4994 | ;; |
||
4995 | esac |
||
4996 | |||
4997 | |||
4998 | |||
4999 | |||
5000 | |||
5001 | |||
5002 | |||
5003 | |||
5004 | |||
5005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
||
5006 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
||
5007 | if ${lt_cv_to_host_file_cmd+:} false; then : |
||
5008 | $as_echo_n "(cached) " >&6 |
||
5009 | else |
||
5010 | case $host in |
||
5011 | *-*-mingw* ) |
||
5012 | case $build in |
||
5013 | *-*-mingw* ) # actually msys |
||
5014 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
||
5015 | ;; |
||
7 | mjames | 5016 | *-*-cygwin* ) |
2 | mjames | 5017 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
5018 | ;; |
||
5019 | * ) # otherwise, assume *nix |
||
5020 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
||
5021 | ;; |
||
5022 | esac |
||
5023 | ;; |
||
7 | mjames | 5024 | *-*-cygwin* ) |
2 | mjames | 5025 | case $build in |
5026 | *-*-mingw* ) # actually msys |
||
5027 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
||
5028 | ;; |
||
7 | mjames | 5029 | *-*-cygwin* ) |
2 | mjames | 5030 | lt_cv_to_host_file_cmd=func_convert_file_noop |
5031 | ;; |
||
5032 | * ) # otherwise, assume *nix |
||
5033 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
||
5034 | ;; |
||
5035 | esac |
||
5036 | ;; |
||
5037 | * ) # unhandled hosts (and "normal" native builds) |
||
5038 | lt_cv_to_host_file_cmd=func_convert_file_noop |
||
5039 | ;; |
||
5040 | esac |
||
5041 | |||
5042 | fi |
||
5043 | |||
5044 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
||
5045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
||
5046 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
||
5047 | |||
5048 | |||
5049 | |||
5050 | |||
5051 | |||
5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
||
5053 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
||
5054 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
||
5055 | $as_echo_n "(cached) " >&6 |
||
5056 | else |
||
5057 | #assume ordinary cross tools, or native build. |
||
5058 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
||
5059 | case $host in |
||
5060 | *-*-mingw* ) |
||
5061 | case $build in |
||
5062 | *-*-mingw* ) # actually msys |
||
5063 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
||
5064 | ;; |
||
5065 | esac |
||
5066 | ;; |
||
5067 | esac |
||
5068 | |||
5069 | fi |
||
5070 | |||
5071 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
||
5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
||
5073 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
||
5074 | |||
5075 | |||
5076 | |||
5077 | |||
5078 | |||
5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
||
5080 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
||
5081 | if ${lt_cv_ld_reload_flag+:} false; then : |
||
5082 | $as_echo_n "(cached) " >&6 |
||
5083 | else |
||
5084 | lt_cv_ld_reload_flag='-r' |
||
5085 | fi |
||
5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
||
5087 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
||
5088 | reload_flag=$lt_cv_ld_reload_flag |
||
5089 | case $reload_flag in |
||
5090 | "" | " "*) ;; |
||
5091 | *) reload_flag=" $reload_flag" ;; |
||
5092 | esac |
||
5093 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
||
5094 | case $host_os in |
||
7 | mjames | 5095 | cygwin* | mingw* | pw32* | cegcc*) |
2 | mjames | 5096 | if test yes != "$GCC"; then |
5097 | reload_cmds=false |
||
5098 | fi |
||
5099 | ;; |
||
5100 | darwin*) |
||
5101 | if test yes = "$GCC"; then |
||
5102 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
||
5103 | else |
||
5104 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
||
5105 | fi |
||
5106 | ;; |
||
5107 | esac |
||
5108 | |||
5109 | |||
5110 | |||
5111 | |||
5112 | |||
5113 | |||
5114 | |||
5115 | |||
5116 | |||
5117 | if test -n "$ac_tool_prefix"; then |
||
5118 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
||
5119 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
||
5120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5121 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5122 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
||
5123 | $as_echo_n "(cached) " >&6 |
||
5124 | else |
||
5125 | if test -n "$OBJDUMP"; then |
||
5126 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
||
5127 | else |
||
5128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5129 | for as_dir in $PATH |
||
5130 | do |
||
5131 | IFS=$as_save_IFS |
||
5132 | test -z "$as_dir" && as_dir=. |
||
5133 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5134 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5135 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
||
5136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5137 | break 2 |
||
5138 | fi |
||
5139 | done |
||
5140 | done |
||
5141 | IFS=$as_save_IFS |
||
5142 | |||
5143 | fi |
||
5144 | fi |
||
5145 | OBJDUMP=$ac_cv_prog_OBJDUMP |
||
5146 | if test -n "$OBJDUMP"; then |
||
5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
||
5148 | $as_echo "$OBJDUMP" >&6; } |
||
5149 | else |
||
5150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5151 | $as_echo "no" >&6; } |
||
5152 | fi |
||
5153 | |||
5154 | |||
5155 | fi |
||
5156 | if test -z "$ac_cv_prog_OBJDUMP"; then |
||
5157 | ac_ct_OBJDUMP=$OBJDUMP |
||
5158 | # Extract the first word of "objdump", so it can be a program name with args. |
||
5159 | set dummy objdump; ac_word=$2 |
||
5160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5161 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5162 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
||
5163 | $as_echo_n "(cached) " >&6 |
||
5164 | else |
||
5165 | if test -n "$ac_ct_OBJDUMP"; then |
||
5166 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
||
5167 | else |
||
5168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5169 | for as_dir in $PATH |
||
5170 | do |
||
5171 | IFS=$as_save_IFS |
||
5172 | test -z "$as_dir" && as_dir=. |
||
5173 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5174 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5175 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
||
5176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5177 | break 2 |
||
5178 | fi |
||
5179 | done |
||
5180 | done |
||
5181 | IFS=$as_save_IFS |
||
5182 | |||
5183 | fi |
||
5184 | fi |
||
5185 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
||
5186 | if test -n "$ac_ct_OBJDUMP"; then |
||
5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
||
5188 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
||
5189 | else |
||
5190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5191 | $as_echo "no" >&6; } |
||
5192 | fi |
||
5193 | |||
5194 | if test "x$ac_ct_OBJDUMP" = x; then |
||
5195 | OBJDUMP="false" |
||
5196 | else |
||
5197 | case $cross_compiling:$ac_tool_warned in |
||
5198 | yes:) |
||
5199 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
5200 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
5201 | ac_tool_warned=yes ;; |
||
5202 | esac |
||
5203 | OBJDUMP=$ac_ct_OBJDUMP |
||
5204 | fi |
||
5205 | else |
||
5206 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
||
5207 | fi |
||
5208 | |||
5209 | test -z "$OBJDUMP" && OBJDUMP=objdump |
||
5210 | |||
5211 | |||
5212 | |||
5213 | |||
5214 | |||
5215 | |||
5216 | |||
5217 | |||
5218 | |||
5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
||
5220 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
||
5221 | if ${lt_cv_deplibs_check_method+:} false; then : |
||
5222 | $as_echo_n "(cached) " >&6 |
||
5223 | else |
||
5224 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
||
5225 | lt_cv_file_magic_test_file= |
||
5226 | lt_cv_deplibs_check_method='unknown' |
||
5227 | # Need to set the preceding variable on all platforms that support |
||
5228 | # interlibrary dependencies. |
||
5229 | # 'none' -- dependencies not supported. |
||
5230 | # 'unknown' -- same as none, but documents that we really don't know. |
||
5231 | # 'pass_all' -- all dependencies passed with no checks. |
||
5232 | # 'test_compile' -- check by making test program. |
||
5233 | # 'file_magic [[regex]]' -- check by looking for files in library path |
||
5234 | # that responds to the $file_magic_cmd with a given extended regex. |
||
5235 | # If you have 'file' or equivalent on your system and you're not sure |
||
5236 | # whether 'pass_all' will *always* work, you probably want this one. |
||
5237 | |||
5238 | case $host_os in |
||
5239 | aix[4-9]*) |
||
5240 | lt_cv_deplibs_check_method=pass_all |
||
5241 | ;; |
||
5242 | |||
5243 | beos*) |
||
5244 | lt_cv_deplibs_check_method=pass_all |
||
5245 | ;; |
||
5246 | |||
5247 | bsdi[45]*) |
||
5248 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
||
5249 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
||
5250 | lt_cv_file_magic_test_file=/shlib/libc.so |
||
5251 | ;; |
||
5252 | |||
7 | mjames | 5253 | cygwin*) |
2 | mjames | 5254 | # func_win32_libid is a shell function defined in ltmain.sh |
5255 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
||
5256 | lt_cv_file_magic_cmd='func_win32_libid' |
||
5257 | ;; |
||
5258 | |||
5259 | mingw* | pw32*) |
||
5260 | # Base MSYS/MinGW do not provide the 'file' command needed by |
||
5261 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
||
5262 | # unless we find 'file', for example because we are cross-compiling. |
||
5263 | if ( file / ) >/dev/null 2>&1; then |
||
5264 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
||
5265 | lt_cv_file_magic_cmd='func_win32_libid' |
||
5266 | else |
||
5267 | # Keep this pattern in sync with the one in func_win32_libid. |
||
5268 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
||
5269 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
||
5270 | fi |
||
5271 | ;; |
||
5272 | |||
5273 | cegcc*) |
||
5274 | # use the weaker test based on 'objdump'. See mingw*. |
||
5275 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
||
5276 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
||
5277 | ;; |
||
5278 | |||
5279 | darwin* | rhapsody*) |
||
5280 | lt_cv_deplibs_check_method=pass_all |
||
5281 | ;; |
||
5282 | |||
5283 | freebsd* | dragonfly*) |
||
5284 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
||
5285 | case $host_cpu in |
||
5286 | i*86 ) |
||
5287 | # Not sure whether the presence of OpenBSD here was a mistake. |
||
5288 | # Let's accept both of them until this is cleared up. |
||
5289 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
||
5290 | lt_cv_file_magic_cmd=/usr/bin/file |
||
5291 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
||
5292 | ;; |
||
5293 | esac |
||
5294 | else |
||
5295 | lt_cv_deplibs_check_method=pass_all |
||
5296 | fi |
||
5297 | ;; |
||
5298 | |||
5299 | haiku*) |
||
5300 | lt_cv_deplibs_check_method=pass_all |
||
5301 | ;; |
||
5302 | |||
5303 | hpux10.20* | hpux11*) |
||
5304 | lt_cv_file_magic_cmd=/usr/bin/file |
||
5305 | case $host_cpu in |
||
5306 | ia64*) |
||
5307 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
||
5308 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
||
5309 | ;; |
||
5310 | hppa*64*) |
||
5311 | 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]' |
||
5312 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
||
5313 | ;; |
||
5314 | *) |
||
5315 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
||
5316 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
||
5317 | ;; |
||
5318 | esac |
||
5319 | ;; |
||
5320 | |||
5321 | interix[3-9]*) |
||
5322 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
||
5323 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
||
5324 | ;; |
||
5325 | |||
5326 | irix5* | irix6* | nonstopux*) |
||
5327 | case $LD in |
||
5328 | *-32|*"-32 ") libmagic=32-bit;; |
||
5329 | *-n32|*"-n32 ") libmagic=N32;; |
||
5330 | *-64|*"-64 ") libmagic=64-bit;; |
||
5331 | *) libmagic=never-match;; |
||
5332 | esac |
||
5333 | lt_cv_deplibs_check_method=pass_all |
||
5334 | ;; |
||
5335 | |||
5336 | # This must be glibc/ELF. |
||
5337 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
||
5338 | lt_cv_deplibs_check_method=pass_all |
||
5339 | ;; |
||
5340 | |||
7 | mjames | 5341 | netbsd* | netbsdelf*-gnu) |
2 | mjames | 5342 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
5343 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
||
5344 | else |
||
5345 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
||
5346 | fi |
||
5347 | ;; |
||
5348 | |||
5349 | newos6*) |
||
5350 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
||
5351 | lt_cv_file_magic_cmd=/usr/bin/file |
||
5352 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
||
5353 | ;; |
||
5354 | |||
5355 | *nto* | *qnx*) |
||
5356 | lt_cv_deplibs_check_method=pass_all |
||
5357 | ;; |
||
5358 | |||
5359 | openbsd* | bitrig*) |
||
5360 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
||
5361 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
||
5362 | else |
||
5363 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
||
5364 | fi |
||
5365 | ;; |
||
5366 | |||
5367 | osf3* | osf4* | osf5*) |
||
5368 | lt_cv_deplibs_check_method=pass_all |
||
5369 | ;; |
||
5370 | |||
5371 | rdos*) |
||
5372 | lt_cv_deplibs_check_method=pass_all |
||
5373 | ;; |
||
5374 | |||
5375 | solaris*) |
||
5376 | lt_cv_deplibs_check_method=pass_all |
||
5377 | ;; |
||
5378 | |||
5379 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
||
5380 | lt_cv_deplibs_check_method=pass_all |
||
5381 | ;; |
||
5382 | |||
5383 | sysv4 | sysv4.3*) |
||
5384 | case $host_vendor in |
||
5385 | motorola) |
||
5386 | 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]' |
||
5387 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
||
5388 | ;; |
||
5389 | ncr) |
||
5390 | lt_cv_deplibs_check_method=pass_all |
||
5391 | ;; |
||
5392 | sequent) |
||
5393 | lt_cv_file_magic_cmd='/bin/file' |
||
5394 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
||
5395 | ;; |
||
5396 | sni) |
||
5397 | lt_cv_file_magic_cmd='/bin/file' |
||
5398 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
||
5399 | lt_cv_file_magic_test_file=/lib/libc.so |
||
5400 | ;; |
||
5401 | siemens) |
||
5402 | lt_cv_deplibs_check_method=pass_all |
||
5403 | ;; |
||
5404 | pc) |
||
5405 | lt_cv_deplibs_check_method=pass_all |
||
5406 | ;; |
||
5407 | esac |
||
5408 | ;; |
||
5409 | |||
5410 | tpf*) |
||
5411 | lt_cv_deplibs_check_method=pass_all |
||
5412 | ;; |
||
5413 | os2*) |
||
5414 | lt_cv_deplibs_check_method=pass_all |
||
5415 | ;; |
||
5416 | esac |
||
5417 | |||
5418 | fi |
||
5419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
||
5420 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
||
5421 | |||
5422 | file_magic_glob= |
||
5423 | want_nocaseglob=no |
||
5424 | if test "$build" = "$host"; then |
||
5425 | case $host_os in |
||
5426 | mingw* | pw32*) |
||
5427 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
||
5428 | want_nocaseglob=yes |
||
5429 | else |
||
5430 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
||
5431 | fi |
||
5432 | ;; |
||
5433 | esac |
||
5434 | fi |
||
5435 | |||
5436 | file_magic_cmd=$lt_cv_file_magic_cmd |
||
5437 | deplibs_check_method=$lt_cv_deplibs_check_method |
||
5438 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
||
5439 | |||
5440 | |||
5441 | |||
5442 | |||
5443 | |||
5444 | |||
5445 | |||
5446 | |||
5447 | |||
5448 | |||
5449 | |||
5450 | |||
5451 | |||
5452 | |||
5453 | |||
5454 | |||
5455 | |||
5456 | |||
5457 | |||
5458 | |||
5459 | |||
5460 | |||
5461 | if test -n "$ac_tool_prefix"; then |
||
5462 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
||
5463 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
||
5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5465 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5466 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
||
5467 | $as_echo_n "(cached) " >&6 |
||
5468 | else |
||
5469 | if test -n "$DLLTOOL"; then |
||
5470 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
||
5471 | else |
||
5472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5473 | for as_dir in $PATH |
||
5474 | do |
||
5475 | IFS=$as_save_IFS |
||
5476 | test -z "$as_dir" && as_dir=. |
||
5477 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5478 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5479 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
||
5480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5481 | break 2 |
||
5482 | fi |
||
5483 | done |
||
5484 | done |
||
5485 | IFS=$as_save_IFS |
||
5486 | |||
5487 | fi |
||
5488 | fi |
||
5489 | DLLTOOL=$ac_cv_prog_DLLTOOL |
||
5490 | if test -n "$DLLTOOL"; then |
||
5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
||
5492 | $as_echo "$DLLTOOL" >&6; } |
||
5493 | else |
||
5494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5495 | $as_echo "no" >&6; } |
||
5496 | fi |
||
5497 | |||
5498 | |||
5499 | fi |
||
5500 | if test -z "$ac_cv_prog_DLLTOOL"; then |
||
5501 | ac_ct_DLLTOOL=$DLLTOOL |
||
5502 | # Extract the first word of "dlltool", so it can be a program name with args. |
||
5503 | set dummy dlltool; ac_word=$2 |
||
5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5505 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5506 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
||
5507 | $as_echo_n "(cached) " >&6 |
||
5508 | else |
||
5509 | if test -n "$ac_ct_DLLTOOL"; then |
||
5510 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
||
5511 | else |
||
5512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5513 | for as_dir in $PATH |
||
5514 | do |
||
5515 | IFS=$as_save_IFS |
||
5516 | test -z "$as_dir" && as_dir=. |
||
5517 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5518 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5519 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
||
5520 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5521 | break 2 |
||
5522 | fi |
||
5523 | done |
||
5524 | done |
||
5525 | IFS=$as_save_IFS |
||
5526 | |||
5527 | fi |
||
5528 | fi |
||
5529 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
||
5530 | if test -n "$ac_ct_DLLTOOL"; then |
||
5531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
||
5532 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
||
5533 | else |
||
5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5535 | $as_echo "no" >&6; } |
||
5536 | fi |
||
5537 | |||
5538 | if test "x$ac_ct_DLLTOOL" = x; then |
||
5539 | DLLTOOL="false" |
||
5540 | else |
||
5541 | case $cross_compiling:$ac_tool_warned in |
||
5542 | yes:) |
||
5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
5544 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
5545 | ac_tool_warned=yes ;; |
||
5546 | esac |
||
5547 | DLLTOOL=$ac_ct_DLLTOOL |
||
5548 | fi |
||
5549 | else |
||
5550 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
||
5551 | fi |
||
5552 | |||
5553 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
||
5554 | |||
5555 | |||
5556 | |||
5557 | |||
5558 | |||
5559 | |||
5560 | |||
5561 | |||
5562 | |||
5563 | |||
5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
||
5565 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
||
5566 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
||
5567 | $as_echo_n "(cached) " >&6 |
||
5568 | else |
||
5569 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
||
5570 | |||
5571 | case $host_os in |
||
7 | mjames | 5572 | cygwin* | mingw* | pw32* | cegcc*) |
2 | mjames | 5573 | # two different shell functions defined in ltmain.sh; |
5574 | # decide which one to use based on capabilities of $DLLTOOL |
||
5575 | case `$DLLTOOL --help 2>&1` in |
||
5576 | *--identify-strict*) |
||
5577 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
||
5578 | ;; |
||
5579 | *) |
||
5580 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
||
5581 | ;; |
||
5582 | esac |
||
5583 | ;; |
||
5584 | *) |
||
5585 | # fallback: assume linklib IS sharedlib |
||
5586 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
||
5587 | ;; |
||
5588 | esac |
||
5589 | |||
5590 | fi |
||
5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
||
5592 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
||
5593 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
||
5594 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
||
5595 | |||
5596 | |||
5597 | |||
5598 | |||
5599 | |||
5600 | |||
5601 | |||
5602 | |||
5603 | if test -n "$ac_tool_prefix"; then |
||
5604 | for ac_prog in ar |
||
5605 | do |
||
5606 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
5607 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5609 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5610 | if ${ac_cv_prog_AR+:} false; then : |
||
5611 | $as_echo_n "(cached) " >&6 |
||
5612 | else |
||
5613 | if test -n "$AR"; then |
||
5614 | ac_cv_prog_AR="$AR" # Let the user override the test. |
||
5615 | else |
||
5616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5617 | for as_dir in $PATH |
||
5618 | do |
||
5619 | IFS=$as_save_IFS |
||
5620 | test -z "$as_dir" && as_dir=. |
||
5621 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5622 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5623 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
||
5624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5625 | break 2 |
||
5626 | fi |
||
5627 | done |
||
5628 | done |
||
5629 | IFS=$as_save_IFS |
||
5630 | |||
5631 | fi |
||
5632 | fi |
||
5633 | AR=$ac_cv_prog_AR |
||
5634 | if test -n "$AR"; then |
||
5635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
||
5636 | $as_echo "$AR" >&6; } |
||
5637 | else |
||
5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5639 | $as_echo "no" >&6; } |
||
5640 | fi |
||
5641 | |||
5642 | |||
5643 | test -n "$AR" && break |
||
5644 | done |
||
5645 | fi |
||
5646 | if test -z "$AR"; then |
||
5647 | ac_ct_AR=$AR |
||
5648 | for ac_prog in ar |
||
5649 | do |
||
5650 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
5651 | set dummy $ac_prog; ac_word=$2 |
||
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5653 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5654 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
||
5655 | $as_echo_n "(cached) " >&6 |
||
5656 | else |
||
5657 | if test -n "$ac_ct_AR"; then |
||
5658 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
||
5659 | else |
||
5660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5661 | for as_dir in $PATH |
||
5662 | do |
||
5663 | IFS=$as_save_IFS |
||
5664 | test -z "$as_dir" && as_dir=. |
||
5665 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5666 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5667 | ac_cv_prog_ac_ct_AR="$ac_prog" |
||
5668 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5669 | break 2 |
||
5670 | fi |
||
5671 | done |
||
5672 | done |
||
5673 | IFS=$as_save_IFS |
||
5674 | |||
5675 | fi |
||
5676 | fi |
||
5677 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
||
5678 | if test -n "$ac_ct_AR"; then |
||
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
||
5680 | $as_echo "$ac_ct_AR" >&6; } |
||
5681 | else |
||
5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5683 | $as_echo "no" >&6; } |
||
5684 | fi |
||
5685 | |||
5686 | |||
5687 | test -n "$ac_ct_AR" && break |
||
5688 | done |
||
5689 | |||
5690 | if test "x$ac_ct_AR" = x; then |
||
5691 | AR="false" |
||
5692 | else |
||
5693 | case $cross_compiling:$ac_tool_warned in |
||
5694 | yes:) |
||
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
5696 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
5697 | ac_tool_warned=yes ;; |
||
5698 | esac |
||
5699 | AR=$ac_ct_AR |
||
5700 | fi |
||
5701 | fi |
||
5702 | |||
5703 | : ${AR=ar} |
||
5704 | : ${AR_FLAGS=cru} |
||
5705 | |||
5706 | |||
5707 | |||
5708 | |||
5709 | |||
5710 | |||
5711 | |||
5712 | |||
5713 | |||
5714 | |||
5715 | |||
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
||
5717 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
||
5718 | if ${lt_cv_ar_at_file+:} false; then : |
||
5719 | $as_echo_n "(cached) " >&6 |
||
5720 | else |
||
5721 | lt_cv_ar_at_file=no |
||
5722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5723 | /* end confdefs.h. */ |
||
5724 | |||
5725 | int |
||
5726 | main () |
||
5727 | { |
||
5728 | |||
5729 | ; |
||
5730 | return 0; |
||
5731 | } |
||
5732 | _ACEOF |
||
5733 | if ac_fn_c_try_compile "$LINENO"; then : |
||
5734 | echo conftest.$ac_objext > conftest.lst |
||
5735 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
||
5736 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
||
5737 | (eval $lt_ar_try) 2>&5 |
||
5738 | ac_status=$? |
||
5739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
5740 | test $ac_status = 0; } |
||
5741 | if test 0 -eq "$ac_status"; then |
||
5742 | # Ensure the archiver fails upon bogus file names. |
||
5743 | rm -f conftest.$ac_objext libconftest.a |
||
5744 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
||
5745 | (eval $lt_ar_try) 2>&5 |
||
5746 | ac_status=$? |
||
5747 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
5748 | test $ac_status = 0; } |
||
5749 | if test 0 -ne "$ac_status"; then |
||
5750 | lt_cv_ar_at_file=@ |
||
5751 | fi |
||
5752 | fi |
||
5753 | rm -f conftest.* libconftest.a |
||
5754 | |||
5755 | fi |
||
5756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5757 | |||
5758 | fi |
||
5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
||
5760 | $as_echo "$lt_cv_ar_at_file" >&6; } |
||
5761 | |||
5762 | if test no = "$lt_cv_ar_at_file"; then |
||
5763 | archiver_list_spec= |
||
5764 | else |
||
5765 | archiver_list_spec=$lt_cv_ar_at_file |
||
5766 | fi |
||
5767 | |||
5768 | |||
5769 | |||
5770 | |||
5771 | |||
5772 | |||
5773 | |||
5774 | if test -n "$ac_tool_prefix"; then |
||
5775 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
||
5776 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
||
5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5778 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5779 | if ${ac_cv_prog_STRIP+:} false; then : |
||
5780 | $as_echo_n "(cached) " >&6 |
||
5781 | else |
||
5782 | if test -n "$STRIP"; then |
||
5783 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
||
5784 | else |
||
5785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5786 | for as_dir in $PATH |
||
5787 | do |
||
5788 | IFS=$as_save_IFS |
||
5789 | test -z "$as_dir" && as_dir=. |
||
5790 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5791 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5792 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
||
5793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5794 | break 2 |
||
5795 | fi |
||
5796 | done |
||
5797 | done |
||
5798 | IFS=$as_save_IFS |
||
5799 | |||
5800 | fi |
||
5801 | fi |
||
5802 | STRIP=$ac_cv_prog_STRIP |
||
5803 | if test -n "$STRIP"; then |
||
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
||
5805 | $as_echo "$STRIP" >&6; } |
||
5806 | else |
||
5807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5808 | $as_echo "no" >&6; } |
||
5809 | fi |
||
5810 | |||
5811 | |||
5812 | fi |
||
5813 | if test -z "$ac_cv_prog_STRIP"; then |
||
5814 | ac_ct_STRIP=$STRIP |
||
5815 | # Extract the first word of "strip", so it can be a program name with args. |
||
5816 | set dummy strip; ac_word=$2 |
||
5817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5818 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5819 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
||
5820 | $as_echo_n "(cached) " >&6 |
||
5821 | else |
||
5822 | if test -n "$ac_ct_STRIP"; then |
||
5823 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
||
5824 | else |
||
5825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5826 | for as_dir in $PATH |
||
5827 | do |
||
5828 | IFS=$as_save_IFS |
||
5829 | test -z "$as_dir" && as_dir=. |
||
5830 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5831 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5832 | ac_cv_prog_ac_ct_STRIP="strip" |
||
5833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5834 | break 2 |
||
5835 | fi |
||
5836 | done |
||
5837 | done |
||
5838 | IFS=$as_save_IFS |
||
5839 | |||
5840 | fi |
||
5841 | fi |
||
5842 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
||
5843 | if test -n "$ac_ct_STRIP"; then |
||
5844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
||
5845 | $as_echo "$ac_ct_STRIP" >&6; } |
||
5846 | else |
||
5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5848 | $as_echo "no" >&6; } |
||
5849 | fi |
||
5850 | |||
5851 | if test "x$ac_ct_STRIP" = x; then |
||
5852 | STRIP=":" |
||
5853 | else |
||
5854 | case $cross_compiling:$ac_tool_warned in |
||
5855 | yes:) |
||
5856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
5857 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
5858 | ac_tool_warned=yes ;; |
||
5859 | esac |
||
5860 | STRIP=$ac_ct_STRIP |
||
5861 | fi |
||
5862 | else |
||
5863 | STRIP="$ac_cv_prog_STRIP" |
||
5864 | fi |
||
5865 | |||
5866 | test -z "$STRIP" && STRIP=: |
||
5867 | |||
5868 | |||
5869 | |||
5870 | |||
5871 | |||
5872 | |||
5873 | if test -n "$ac_tool_prefix"; then |
||
5874 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
||
5875 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
||
5876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5877 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5878 | if ${ac_cv_prog_RANLIB+:} false; then : |
||
5879 | $as_echo_n "(cached) " >&6 |
||
5880 | else |
||
5881 | if test -n "$RANLIB"; then |
||
5882 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
||
5883 | else |
||
5884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5885 | for as_dir in $PATH |
||
5886 | do |
||
5887 | IFS=$as_save_IFS |
||
5888 | test -z "$as_dir" && as_dir=. |
||
5889 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5890 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5891 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
||
5892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5893 | break 2 |
||
5894 | fi |
||
5895 | done |
||
5896 | done |
||
5897 | IFS=$as_save_IFS |
||
5898 | |||
5899 | fi |
||
5900 | fi |
||
5901 | RANLIB=$ac_cv_prog_RANLIB |
||
5902 | if test -n "$RANLIB"; then |
||
5903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
||
5904 | $as_echo "$RANLIB" >&6; } |
||
5905 | else |
||
5906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5907 | $as_echo "no" >&6; } |
||
5908 | fi |
||
5909 | |||
5910 | |||
5911 | fi |
||
5912 | if test -z "$ac_cv_prog_RANLIB"; then |
||
5913 | ac_ct_RANLIB=$RANLIB |
||
5914 | # Extract the first word of "ranlib", so it can be a program name with args. |
||
5915 | set dummy ranlib; ac_word=$2 |
||
5916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5917 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5918 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
||
5919 | $as_echo_n "(cached) " >&6 |
||
5920 | else |
||
5921 | if test -n "$ac_ct_RANLIB"; then |
||
5922 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
||
5923 | else |
||
5924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5925 | for as_dir in $PATH |
||
5926 | do |
||
5927 | IFS=$as_save_IFS |
||
5928 | test -z "$as_dir" && as_dir=. |
||
5929 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5930 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5931 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
||
5932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5933 | break 2 |
||
5934 | fi |
||
5935 | done |
||
5936 | done |
||
5937 | IFS=$as_save_IFS |
||
5938 | |||
5939 | fi |
||
5940 | fi |
||
5941 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
||
5942 | if test -n "$ac_ct_RANLIB"; then |
||
5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
||
5944 | $as_echo "$ac_ct_RANLIB" >&6; } |
||
5945 | else |
||
5946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5947 | $as_echo "no" >&6; } |
||
5948 | fi |
||
5949 | |||
5950 | if test "x$ac_ct_RANLIB" = x; then |
||
5951 | RANLIB=":" |
||
5952 | else |
||
5953 | case $cross_compiling:$ac_tool_warned in |
||
5954 | yes:) |
||
5955 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
5956 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
5957 | ac_tool_warned=yes ;; |
||
5958 | esac |
||
5959 | RANLIB=$ac_ct_RANLIB |
||
5960 | fi |
||
5961 | else |
||
5962 | RANLIB="$ac_cv_prog_RANLIB" |
||
5963 | fi |
||
5964 | |||
5965 | test -z "$RANLIB" && RANLIB=: |
||
5966 | |||
5967 | |||
5968 | |||
5969 | |||
5970 | |||
5971 | |||
5972 | # Determine commands to create old-style static archives. |
||
5973 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
||
5974 | old_postinstall_cmds='chmod 644 $oldlib' |
||
5975 | old_postuninstall_cmds= |
||
5976 | |||
5977 | if test -n "$RANLIB"; then |
||
5978 | case $host_os in |
||
5979 | bitrig* | openbsd*) |
||
5980 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
||
5981 | ;; |
||
5982 | *) |
||
5983 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
||
5984 | ;; |
||
5985 | esac |
||
5986 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
||
5987 | fi |
||
5988 | |||
5989 | case $host_os in |
||
5990 | darwin*) |
||
5991 | lock_old_archive_extraction=yes ;; |
||
5992 | *) |
||
5993 | lock_old_archive_extraction=no ;; |
||
5994 | esac |
||
5995 | |||
5996 | |||
5997 | |||
5998 | |||
5999 | |||
6000 | |||
6001 | |||
6002 | |||
6003 | |||
6004 | |||
6005 | |||
6006 | |||
6007 | |||
6008 | |||
6009 | |||
6010 | |||
6011 | |||
6012 | |||
6013 | |||
6014 | |||
6015 | |||
6016 | |||
6017 | |||
6018 | |||
6019 | |||
6020 | |||
6021 | |||
6022 | |||
6023 | |||
6024 | |||
6025 | |||
6026 | |||
6027 | |||
6028 | |||
6029 | |||
6030 | |||
6031 | |||
6032 | |||
6033 | |||
6034 | # If no C compiler was specified, use CC. |
||
6035 | LTCC=${LTCC-"$CC"} |
||
6036 | |||
6037 | # If no C compiler flags were specified, use CFLAGS. |
||
6038 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
||
6039 | |||
6040 | # Allow CC to be a program name with arguments. |
||
6041 | compiler=$CC |
||
6042 | |||
6043 | |||
6044 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
||
6045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
||
6046 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
||
6047 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
||
6048 | $as_echo_n "(cached) " >&6 |
||
6049 | else |
||
6050 | |||
6051 | # These are sane defaults that work on at least a few old systems. |
||
6052 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
||
6053 | |||
6054 | # Character class describing NM global symbol codes. |
||
6055 | symcode='[BCDEGRST]' |
||
6056 | |||
6057 | # Regexp to match symbols that can be accessed directly from C. |
||
6058 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
||
6059 | |||
6060 | # Define system-specific variables. |
||
6061 | case $host_os in |
||
6062 | aix*) |
||
6063 | symcode='[BCDT]' |
||
6064 | ;; |
||
7 | mjames | 6065 | cygwin* | mingw* | pw32* | cegcc*) |
2 | mjames | 6066 | symcode='[ABCDGISTW]' |
6067 | ;; |
||
6068 | hpux*) |
||
6069 | if test ia64 = "$host_cpu"; then |
||
6070 | symcode='[ABCDEGRST]' |
||
6071 | fi |
||
6072 | ;; |
||
6073 | irix* | nonstopux*) |
||
6074 | symcode='[BCDEGRST]' |
||
6075 | ;; |
||
6076 | osf*) |
||
6077 | symcode='[BCDEGQRST]' |
||
6078 | ;; |
||
6079 | solaris*) |
||
6080 | symcode='[BDRT]' |
||
6081 | ;; |
||
6082 | sco3.2v5*) |
||
6083 | symcode='[DT]' |
||
6084 | ;; |
||
6085 | sysv4.2uw2*) |
||
6086 | symcode='[DT]' |
||
6087 | ;; |
||
6088 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
||
6089 | symcode='[ABDT]' |
||
6090 | ;; |
||
6091 | sysv4) |
||
6092 | symcode='[DFNSTU]' |
||
6093 | ;; |
||
6094 | esac |
||
6095 | |||
6096 | # If we're using GNU nm, then use its standard symbol codes. |
||
6097 | case `$NM -V 2>&1` in |
||
6098 | *GNU* | *'with BFD'*) |
||
6099 | symcode='[ABCDGIRSTW]' ;; |
||
6100 | esac |
||
6101 | |||
6102 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
||
6103 | # Gets list of data symbols to import. |
||
6104 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
||
6105 | # Adjust the below global symbol transforms to fixup imported variables. |
||
6106 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
||
6107 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
||
6108 | lt_c_name_lib_hook="\ |
||
6109 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
||
6110 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
||
6111 | else |
||
6112 | # Disable hooks by default. |
||
6113 | lt_cv_sys_global_symbol_to_import= |
||
6114 | lt_cdecl_hook= |
||
6115 | lt_c_name_hook= |
||
6116 | lt_c_name_lib_hook= |
||
6117 | fi |
||
6118 | |||
6119 | # Transform an extracted symbol line into a proper C declaration. |
||
6120 | # Some systems (esp. on ia64) link data and code symbols differently, |
||
6121 | # so use this general approach. |
||
6122 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
||
6123 | $lt_cdecl_hook\ |
||
6124 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
||
6125 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
||
6126 | |||
6127 | # Transform an extracted symbol line into symbol name and symbol address |
||
6128 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
||
6129 | $lt_c_name_hook\ |
||
6130 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
||
6131 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
||
6132 | |||
6133 | # Transform an extracted symbol line into symbol name with lib prefix and |
||
6134 | # symbol address. |
||
6135 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
||
6136 | $lt_c_name_lib_hook\ |
||
6137 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
||
6138 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
||
6139 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
||
6140 | |||
6141 | # Handle CRLF in mingw tool chain |
||
6142 | opt_cr= |
||
6143 | case $build_os in |
||
6144 | mingw*) |
||
6145 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
||
6146 | ;; |
||
6147 | esac |
||
6148 | |||
6149 | # Try without a prefix underscore, then with it. |
||
6150 | for ac_symprfx in "" "_"; do |
||
6151 | |||
6152 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
||
6153 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
||
6154 | |||
6155 | # Write the raw and C identifiers. |
||
6156 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
||
6157 | # Fake it for dumpbin and say T for any non-static function, |
||
6158 | # D for any global variable and I for any imported variable. |
||
6159 | # Also find C++ and __fastcall symbols from MSVC++, |
||
6160 | # which start with @ or ?. |
||
6161 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
||
6162 | " {last_section=section; section=\$ 3};"\ |
||
6163 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
||
6164 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
||
6165 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
||
6166 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
||
6167 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
||
6168 | " \$ 0!~/External *\|/{next};"\ |
||
6169 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
||
6170 | " {if(hide[section]) next};"\ |
||
6171 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
||
6172 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
||
6173 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
||
6174 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
||
6175 | " ' prfx=^$ac_symprfx" |
||
6176 | else |
||
6177 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
||
6178 | fi |
||
6179 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
||
6180 | |||
6181 | # Check to see that the pipe works correctly. |
||
6182 | pipe_works=no |
||
6183 | |||
6184 | rm -f conftest* |
||
6185 | cat > conftest.$ac_ext <<_LT_EOF |
||
6186 | #ifdef __cplusplus |
||
6187 | extern "C" { |
||
6188 | #endif |
||
6189 | char nm_test_var; |
||
6190 | void nm_test_func(void); |
||
6191 | void nm_test_func(void){} |
||
6192 | #ifdef __cplusplus |
||
6193 | } |
||
6194 | #endif |
||
6195 | int main(){nm_test_var='a';nm_test_func();return(0);} |
||
6196 | _LT_EOF |
||
6197 | |||
6198 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
6199 | (eval $ac_compile) 2>&5 |
||
6200 | ac_status=$? |
||
6201 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
6202 | test $ac_status = 0; }; then |
||
6203 | # Now try to grab the symbols. |
||
6204 | nlist=conftest.nm |
||
6205 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
||
6206 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
||
6207 | ac_status=$? |
||
6208 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
6209 | test $ac_status = 0; } && test -s "$nlist"; then |
||
6210 | # Try sorting and uniquifying the output. |
||
6211 | if sort "$nlist" | uniq > "$nlist"T; then |
||
6212 | mv -f "$nlist"T "$nlist" |
||
6213 | else |
||
6214 | rm -f "$nlist"T |
||
6215 | fi |
||
6216 | |||
6217 | # Make sure that we snagged all the symbols we need. |
||
6218 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
||
6219 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
||
6220 | cat <<_LT_EOF > conftest.$ac_ext |
||
6221 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
||
6222 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
||
6223 | /* DATA imports from DLLs on WIN32 can't be const, because runtime |
||
6224 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
||
6225 | # define LT_DLSYM_CONST |
||
6226 | #elif defined __osf__ |
||
6227 | /* This system does not cope well with relocations in const data. */ |
||
6228 | # define LT_DLSYM_CONST |
||
6229 | #else |
||
6230 | # define LT_DLSYM_CONST const |
||
6231 | #endif |
||
6232 | |||
6233 | #ifdef __cplusplus |
||
6234 | extern "C" { |
||
6235 | #endif |
||
6236 | |||
6237 | _LT_EOF |
||
6238 | # Now generate the symbol file. |
||
6239 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
||
6240 | |||
6241 | cat <<_LT_EOF >> conftest.$ac_ext |
||
6242 | |||
6243 | /* The mapping between symbol names and symbols. */ |
||
6244 | LT_DLSYM_CONST struct { |
||
6245 | const char *name; |
||
6246 | void *address; |
||
6247 | } |
||
6248 | lt__PROGRAM__LTX_preloaded_symbols[] = |
||
6249 | { |
||
6250 | { "@PROGRAM@", (void *) 0 }, |
||
6251 | _LT_EOF |
||
6252 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
||
6253 | cat <<\_LT_EOF >> conftest.$ac_ext |
||
6254 | {0, (void *) 0} |
||
6255 | }; |
||
6256 | |||
6257 | /* This works around a problem in FreeBSD linker */ |
||
6258 | #ifdef FREEBSD_WORKAROUND |
||
6259 | static const void *lt_preloaded_setup() { |
||
6260 | return lt__PROGRAM__LTX_preloaded_symbols; |
||
6261 | } |
||
6262 | #endif |
||
6263 | |||
6264 | #ifdef __cplusplus |
||
6265 | } |
||
6266 | #endif |
||
6267 | _LT_EOF |
||
6268 | # Now try linking the two files. |
||
6269 | mv conftest.$ac_objext conftstm.$ac_objext |
||
6270 | lt_globsym_save_LIBS=$LIBS |
||
6271 | lt_globsym_save_CFLAGS=$CFLAGS |
||
6272 | LIBS=conftstm.$ac_objext |
||
6273 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
||
6274 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
||
6275 | (eval $ac_link) 2>&5 |
||
6276 | ac_status=$? |
||
6277 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
6278 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
||
6279 | pipe_works=yes |
||
6280 | fi |
||
6281 | LIBS=$lt_globsym_save_LIBS |
||
6282 | CFLAGS=$lt_globsym_save_CFLAGS |
||
6283 | else |
||
6284 | echo "cannot find nm_test_func in $nlist" >&5 |
||
6285 | fi |
||
6286 | else |
||
6287 | echo "cannot find nm_test_var in $nlist" >&5 |
||
6288 | fi |
||
6289 | else |
||
6290 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
||
6291 | fi |
||
6292 | else |
||
6293 | echo "$progname: failed program was:" >&5 |
||
6294 | cat conftest.$ac_ext >&5 |
||
6295 | fi |
||
6296 | rm -rf conftest* conftst* |
||
6297 | |||
6298 | # Do not use the global_symbol_pipe unless it works. |
||
6299 | if test yes = "$pipe_works"; then |
||
6300 | break |
||
6301 | else |
||
6302 | lt_cv_sys_global_symbol_pipe= |
||
6303 | fi |
||
6304 | done |
||
6305 | |||
6306 | fi |
||
6307 | |||
6308 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
||
6309 | lt_cv_sys_global_symbol_to_cdecl= |
||
6310 | fi |
||
6311 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
||
6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
||
6313 | $as_echo "failed" >&6; } |
||
6314 | else |
||
6315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
||
6316 | $as_echo "ok" >&6; } |
||
6317 | fi |
||
6318 | |||
6319 | # Response file support. |
||
6320 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
||
6321 | nm_file_list_spec='@' |
||
6322 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
||
6323 | nm_file_list_spec='@' |
||
6324 | fi |
||
6325 | |||
6326 | |||
6327 | |||
6328 | |||
6329 | |||
6330 | |||
6331 | |||
6332 | |||
6333 | |||
6334 | |||
6335 | |||
6336 | |||
6337 | |||
6338 | |||
6339 | |||
6340 | |||
6341 | |||
6342 | |||
6343 | |||
6344 | |||
6345 | |||
6346 | |||
6347 | |||
6348 | |||
6349 | |||
6350 | |||
6351 | |||
6352 | |||
6353 | |||
6354 | |||
6355 | |||
6356 | |||
6357 | |||
6358 | |||
6359 | |||
6360 | |||
6361 | |||
6362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
||
6363 | $as_echo_n "checking for sysroot... " >&6; } |
||
6364 | |||
6365 | # Check whether --with-sysroot was given. |
||
6366 | if test "${with_sysroot+set}" = set; then : |
||
6367 | withval=$with_sysroot; |
||
6368 | else |
||
6369 | with_sysroot=no |
||
6370 | fi |
||
6371 | |||
6372 | |||
6373 | lt_sysroot= |
||
6374 | case $with_sysroot in #( |
||
6375 | yes) |
||
6376 | if test yes = "$GCC"; then |
||
6377 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
||
6378 | fi |
||
6379 | ;; #( |
||
6380 | /*) |
||
6381 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
||
6382 | ;; #( |
||
6383 | no|'') |
||
6384 | ;; #( |
||
6385 | *) |
||
6386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
||
6387 | $as_echo "$with_sysroot" >&6; } |
||
6388 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
||
6389 | ;; |
||
6390 | esac |
||
6391 | |||
6392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
||
6393 | $as_echo "${lt_sysroot:-no}" >&6; } |
||
6394 | |||
6395 | |||
6396 | |||
6397 | |||
6398 | |||
6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
||
6400 | $as_echo_n "checking for a working dd... " >&6; } |
||
6401 | if ${ac_cv_path_lt_DD+:} false; then : |
||
6402 | $as_echo_n "(cached) " >&6 |
||
6403 | else |
||
6404 | printf 0123456789abcdef0123456789abcdef >conftest.i |
||
6405 | cat conftest.i conftest.i >conftest2.i |
||
6406 | : ${lt_DD:=$DD} |
||
6407 | if test -z "$lt_DD"; then |
||
6408 | ac_path_lt_DD_found=false |
||
6409 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
6410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6411 | for as_dir in $PATH |
||
6412 | do |
||
6413 | IFS=$as_save_IFS |
||
6414 | test -z "$as_dir" && as_dir=. |
||
6415 | for ac_prog in dd; do |
||
6416 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6417 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" |
||
6418 | as_fn_executable_p "$ac_path_lt_DD" || continue |
||
6419 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
||
6420 | cmp -s conftest.i conftest.out \ |
||
6421 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
||
6422 | fi |
||
6423 | $ac_path_lt_DD_found && break 3 |
||
6424 | done |
||
6425 | done |
||
6426 | done |
||
6427 | IFS=$as_save_IFS |
||
6428 | if test -z "$ac_cv_path_lt_DD"; then |
||
6429 | : |
||
6430 | fi |
||
6431 | else |
||
6432 | ac_cv_path_lt_DD=$lt_DD |
||
6433 | fi |
||
6434 | |||
6435 | rm -f conftest.i conftest2.i conftest.out |
||
6436 | fi |
||
6437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
||
6438 | $as_echo "$ac_cv_path_lt_DD" >&6; } |
||
6439 | |||
6440 | |||
6441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
||
6442 | $as_echo_n "checking how to truncate binary pipes... " >&6; } |
||
6443 | if ${lt_cv_truncate_bin+:} false; then : |
||
6444 | $as_echo_n "(cached) " >&6 |
||
6445 | else |
||
6446 | printf 0123456789abcdef0123456789abcdef >conftest.i |
||
6447 | cat conftest.i conftest.i >conftest2.i |
||
6448 | lt_cv_truncate_bin= |
||
6449 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
||
6450 | cmp -s conftest.i conftest.out \ |
||
6451 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
||
6452 | fi |
||
6453 | rm -f conftest.i conftest2.i conftest.out |
||
6454 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
||
6455 | fi |
||
6456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
||
6457 | $as_echo "$lt_cv_truncate_bin" >&6; } |
||
6458 | |||
6459 | |||
6460 | |||
6461 | |||
6462 | |||
6463 | |||
6464 | |||
6465 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
||
6466 | func_cc_basename () |
||
6467 | { |
||
6468 | for cc_temp in $*""; do |
||
6469 | case $cc_temp in |
||
6470 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
||
6471 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
||
6472 | \-*) ;; |
||
6473 | *) break;; |
||
6474 | esac |
||
6475 | done |
||
6476 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
||
6477 | } |
||
6478 | |||
6479 | # Check whether --enable-libtool-lock was given. |
||
6480 | if test "${enable_libtool_lock+set}" = set; then : |
||
6481 | enableval=$enable_libtool_lock; |
||
6482 | fi |
||
6483 | |||
6484 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
||
6485 | |||
6486 | # Some flags need to be propagated to the compiler or linker for good |
||
6487 | # libtool support. |
||
6488 | case $host in |
||
6489 | ia64-*-hpux*) |
||
6490 | # Find out what ABI is being produced by ac_compile, and set mode |
||
6491 | # options accordingly. |
||
6492 | echo 'int i;' > conftest.$ac_ext |
||
6493 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
6494 | (eval $ac_compile) 2>&5 |
||
6495 | ac_status=$? |
||
6496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
6497 | test $ac_status = 0; }; then |
||
6498 | case `/usr/bin/file conftest.$ac_objext` in |
||
6499 | *ELF-32*) |
||
6500 | HPUX_IA64_MODE=32 |
||
6501 | ;; |
||
6502 | *ELF-64*) |
||
6503 | HPUX_IA64_MODE=64 |
||
6504 | ;; |
||
6505 | esac |
||
6506 | fi |
||
6507 | rm -rf conftest* |
||
6508 | ;; |
||
6509 | *-*-irix6*) |
||
6510 | # Find out what ABI is being produced by ac_compile, and set linker |
||
6511 | # options accordingly. |
||
6512 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
||
6513 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
6514 | (eval $ac_compile) 2>&5 |
||
6515 | ac_status=$? |
||
6516 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
6517 | test $ac_status = 0; }; then |
||
6518 | if test yes = "$lt_cv_prog_gnu_ld"; then |
||
6519 | case `/usr/bin/file conftest.$ac_objext` in |
||
6520 | *32-bit*) |
||
6521 | LD="${LD-ld} -melf32bsmip" |
||
6522 | ;; |
||
6523 | *N32*) |
||
6524 | LD="${LD-ld} -melf32bmipn32" |
||
6525 | ;; |
||
6526 | *64-bit*) |
||
6527 | LD="${LD-ld} -melf64bmip" |
||
6528 | ;; |
||
6529 | esac |
||
6530 | else |
||
6531 | case `/usr/bin/file conftest.$ac_objext` in |
||
6532 | *32-bit*) |
||
6533 | LD="${LD-ld} -32" |
||
6534 | ;; |
||
6535 | *N32*) |
||
6536 | LD="${LD-ld} -n32" |
||
6537 | ;; |
||
6538 | *64-bit*) |
||
6539 | LD="${LD-ld} -64" |
||
6540 | ;; |
||
6541 | esac |
||
6542 | fi |
||
6543 | fi |
||
6544 | rm -rf conftest* |
||
6545 | ;; |
||
6546 | |||
6547 | mips64*-*linux*) |
||
6548 | # Find out what ABI is being produced by ac_compile, and set linker |
||
6549 | # options accordingly. |
||
6550 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
||
6551 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
6552 | (eval $ac_compile) 2>&5 |
||
6553 | ac_status=$? |
||
6554 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
6555 | test $ac_status = 0; }; then |
||
6556 | emul=elf |
||
6557 | case `/usr/bin/file conftest.$ac_objext` in |
||
6558 | *32-bit*) |
||
6559 | emul="${emul}32" |
||
6560 | ;; |
||
6561 | *64-bit*) |
||
6562 | emul="${emul}64" |
||
6563 | ;; |
||
6564 | esac |
||
6565 | case `/usr/bin/file conftest.$ac_objext` in |
||
6566 | *MSB*) |
||
6567 | emul="${emul}btsmip" |
||
6568 | ;; |
||
6569 | *LSB*) |
||
6570 | emul="${emul}ltsmip" |
||
6571 | ;; |
||
6572 | esac |
||
6573 | case `/usr/bin/file conftest.$ac_objext` in |
||
6574 | *N32*) |
||
6575 | emul="${emul}n32" |
||
6576 | ;; |
||
6577 | esac |
||
6578 | LD="${LD-ld} -m $emul" |
||
6579 | fi |
||
6580 | rm -rf conftest* |
||
6581 | ;; |
||
6582 | |||
6583 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
||
6584 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
||
6585 | # Find out what ABI is being produced by ac_compile, and set linker |
||
6586 | # options accordingly. Note that the listed cases only cover the |
||
6587 | # situations where additional linker options are needed (such as when |
||
6588 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or |
||
6589 | # vice versa); the common cases where no linker options are needed do |
||
6590 | # not appear in the list. |
||
6591 | echo 'int i;' > conftest.$ac_ext |
||
6592 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
6593 | (eval $ac_compile) 2>&5 |
||
6594 | ac_status=$? |
||
6595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
6596 | test $ac_status = 0; }; then |
||
6597 | case `/usr/bin/file conftest.o` in |
||
6598 | *32-bit*) |
||
6599 | case $host in |
||
6600 | x86_64-*kfreebsd*-gnu) |
||
6601 | LD="${LD-ld} -m elf_i386_fbsd" |
||
6602 | ;; |
||
6603 | x86_64-*linux*) |
||
6604 | case `/usr/bin/file conftest.o` in |
||
6605 | *x86-64*) |
||
6606 | LD="${LD-ld} -m elf32_x86_64" |
||
6607 | ;; |
||
6608 | *) |
||
6609 | LD="${LD-ld} -m elf_i386" |
||
6610 | ;; |
||
6611 | esac |
||
6612 | ;; |
||
6613 | powerpc64le-*linux*) |
||
6614 | LD="${LD-ld} -m elf32lppclinux" |
||
6615 | ;; |
||
6616 | powerpc64-*linux*) |
||
6617 | LD="${LD-ld} -m elf32ppclinux" |
||
6618 | ;; |
||
6619 | s390x-*linux*) |
||
6620 | LD="${LD-ld} -m elf_s390" |
||
6621 | ;; |
||
6622 | sparc64-*linux*) |
||
6623 | LD="${LD-ld} -m elf32_sparc" |
||
6624 | ;; |
||
6625 | esac |
||
6626 | ;; |
||
6627 | *64-bit*) |
||
6628 | case $host in |
||
6629 | x86_64-*kfreebsd*-gnu) |
||
6630 | LD="${LD-ld} -m elf_x86_64_fbsd" |
||
6631 | ;; |
||
6632 | x86_64-*linux*) |
||
6633 | LD="${LD-ld} -m elf_x86_64" |
||
6634 | ;; |
||
6635 | powerpcle-*linux*) |
||
6636 | LD="${LD-ld} -m elf64lppc" |
||
6637 | ;; |
||
6638 | powerpc-*linux*) |
||
6639 | LD="${LD-ld} -m elf64ppc" |
||
6640 | ;; |
||
6641 | s390*-*linux*|s390*-*tpf*) |
||
6642 | LD="${LD-ld} -m elf64_s390" |
||
6643 | ;; |
||
6644 | sparc*-*linux*) |
||
6645 | LD="${LD-ld} -m elf64_sparc" |
||
6646 | ;; |
||
6647 | esac |
||
6648 | ;; |
||
6649 | esac |
||
6650 | fi |
||
6651 | rm -rf conftest* |
||
6652 | ;; |
||
6653 | |||
6654 | *-*-sco3.2v5*) |
||
6655 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
||
6656 | SAVE_CFLAGS=$CFLAGS |
||
6657 | CFLAGS="$CFLAGS -belf" |
||
6658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
||
6659 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
||
6660 | if ${lt_cv_cc_needs_belf+:} false; then : |
||
6661 | $as_echo_n "(cached) " >&6 |
||
6662 | else |
||
6663 | ac_ext=c |
||
6664 | ac_cpp='$CPP $CPPFLAGS' |
||
6665 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
6666 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
6667 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
6668 | |||
6669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
6670 | /* end confdefs.h. */ |
||
6671 | |||
6672 | int |
||
6673 | main () |
||
6674 | { |
||
6675 | |||
6676 | ; |
||
6677 | return 0; |
||
6678 | } |
||
6679 | _ACEOF |
||
6680 | if ac_fn_c_try_link "$LINENO"; then : |
||
6681 | lt_cv_cc_needs_belf=yes |
||
6682 | else |
||
6683 | lt_cv_cc_needs_belf=no |
||
6684 | fi |
||
6685 | rm -f core conftest.err conftest.$ac_objext \ |
||
6686 | conftest$ac_exeext conftest.$ac_ext |
||
6687 | ac_ext=c |
||
6688 | ac_cpp='$CPP $CPPFLAGS' |
||
6689 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
6690 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
6691 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
6692 | |||
6693 | fi |
||
6694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
||
6695 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
||
6696 | if test yes != "$lt_cv_cc_needs_belf"; then |
||
6697 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
||
6698 | CFLAGS=$SAVE_CFLAGS |
||
6699 | fi |
||
6700 | ;; |
||
6701 | *-*solaris*) |
||
6702 | # Find out what ABI is being produced by ac_compile, and set linker |
||
6703 | # options accordingly. |
||
6704 | echo 'int i;' > conftest.$ac_ext |
||
6705 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
6706 | (eval $ac_compile) 2>&5 |
||
6707 | ac_status=$? |
||
6708 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
6709 | test $ac_status = 0; }; then |
||
6710 | case `/usr/bin/file conftest.o` in |
||
6711 | *64-bit*) |
||
6712 | case $lt_cv_prog_gnu_ld in |
||
6713 | yes*) |
||
6714 | case $host in |
||
6715 | i?86-*-solaris*|x86_64-*-solaris*) |
||
6716 | LD="${LD-ld} -m elf_x86_64" |
||
6717 | ;; |
||
6718 | sparc*-*-solaris*) |
||
6719 | LD="${LD-ld} -m elf64_sparc" |
||
6720 | ;; |
||
6721 | esac |
||
6722 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
||
6723 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
||
6724 | LD=${LD-ld}_sol2 |
||
6725 | fi |
||
6726 | ;; |
||
6727 | *) |
||
6728 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
||
6729 | LD="${LD-ld} -64" |
||
6730 | fi |
||
6731 | ;; |
||
6732 | esac |
||
6733 | ;; |
||
6734 | esac |
||
6735 | fi |
||
6736 | rm -rf conftest* |
||
6737 | ;; |
||
6738 | esac |
||
6739 | |||
6740 | need_locks=$enable_libtool_lock |
||
6741 | |||
6742 | if test -n "$ac_tool_prefix"; then |
||
6743 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
||
6744 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
||
6745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
6746 | $as_echo_n "checking for $ac_word... " >&6; } |
||
6747 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
||
6748 | $as_echo_n "(cached) " >&6 |
||
6749 | else |
||
6750 | if test -n "$MANIFEST_TOOL"; then |
||
6751 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
||
6752 | else |
||
6753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6754 | for as_dir in $PATH |
||
6755 | do |
||
6756 | IFS=$as_save_IFS |
||
6757 | test -z "$as_dir" && as_dir=. |
||
6758 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6759 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
6760 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
||
6761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6762 | break 2 |
||
6763 | fi |
||
6764 | done |
||
6765 | done |
||
6766 | IFS=$as_save_IFS |
||
6767 | |||
6768 | fi |
||
6769 | fi |
||
6770 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
||
6771 | if test -n "$MANIFEST_TOOL"; then |
||
6772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
||
6773 | $as_echo "$MANIFEST_TOOL" >&6; } |
||
6774 | else |
||
6775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
6776 | $as_echo "no" >&6; } |
||
6777 | fi |
||
6778 | |||
6779 | |||
6780 | fi |
||
6781 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
||
6782 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
||
6783 | # Extract the first word of "mt", so it can be a program name with args. |
||
6784 | set dummy mt; ac_word=$2 |
||
6785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
6786 | $as_echo_n "checking for $ac_word... " >&6; } |
||
6787 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
||
6788 | $as_echo_n "(cached) " >&6 |
||
6789 | else |
||
6790 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
||
6791 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
||
6792 | else |
||
6793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6794 | for as_dir in $PATH |
||
6795 | do |
||
6796 | IFS=$as_save_IFS |
||
6797 | test -z "$as_dir" && as_dir=. |
||
6798 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6799 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
6800 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
||
6801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6802 | break 2 |
||
6803 | fi |
||
6804 | done |
||
6805 | done |
||
6806 | IFS=$as_save_IFS |
||
6807 | |||
6808 | fi |
||
6809 | fi |
||
6810 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
||
6811 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
||
6812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
||
6813 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
||
6814 | else |
||
6815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
6816 | $as_echo "no" >&6; } |
||
6817 | fi |
||
6818 | |||
6819 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
||
6820 | MANIFEST_TOOL=":" |
||
6821 | else |
||
6822 | case $cross_compiling:$ac_tool_warned in |
||
6823 | yes:) |
||
6824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
6825 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
6826 | ac_tool_warned=yes ;; |
||
6827 | esac |
||
6828 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
||
6829 | fi |
||
6830 | else |
||
6831 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
||
6832 | fi |
||
6833 | |||
6834 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
||
6835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
||
6836 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
||
6837 | if ${lt_cv_path_mainfest_tool+:} false; then : |
||
6838 | $as_echo_n "(cached) " >&6 |
||
6839 | else |
||
6840 | lt_cv_path_mainfest_tool=no |
||
6841 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
||
6842 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
||
6843 | cat conftest.err >&5 |
||
6844 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
||
6845 | lt_cv_path_mainfest_tool=yes |
||
6846 | fi |
||
6847 | rm -f conftest* |
||
6848 | fi |
||
6849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
||
6850 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
||
6851 | if test yes != "$lt_cv_path_mainfest_tool"; then |
||
6852 | MANIFEST_TOOL=: |
||
6853 | fi |
||
6854 | |||
6855 | |||
6856 | |||
6857 | |||
6858 | |||
6859 | |||
6860 | case $host_os in |
||
6861 | rhapsody* | darwin*) |
||
6862 | if test -n "$ac_tool_prefix"; then |
||
6863 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
||
6864 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
||
6865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
6866 | $as_echo_n "checking for $ac_word... " >&6; } |
||
6867 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
||
6868 | $as_echo_n "(cached) " >&6 |
||
6869 | else |
||
6870 | if test -n "$DSYMUTIL"; then |
||
6871 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
||
6872 | else |
||
6873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6874 | for as_dir in $PATH |
||
6875 | do |
||
6876 | IFS=$as_save_IFS |
||
6877 | test -z "$as_dir" && as_dir=. |
||
6878 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6879 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
6880 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
||
6881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6882 | break 2 |
||
6883 | fi |
||
6884 | done |
||
6885 | done |
||
6886 | IFS=$as_save_IFS |
||
6887 | |||
6888 | fi |
||
6889 | fi |
||
6890 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
||
6891 | if test -n "$DSYMUTIL"; then |
||
6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
||
6893 | $as_echo "$DSYMUTIL" >&6; } |
||
6894 | else |
||
6895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
6896 | $as_echo "no" >&6; } |
||
6897 | fi |
||
6898 | |||
6899 | |||
6900 | fi |
||
6901 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
||
6902 | ac_ct_DSYMUTIL=$DSYMUTIL |
||
6903 | # Extract the first word of "dsymutil", so it can be a program name with args. |
||
6904 | set dummy dsymutil; ac_word=$2 |
||
6905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
6906 | $as_echo_n "checking for $ac_word... " >&6; } |
||
6907 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
||
6908 | $as_echo_n "(cached) " >&6 |
||
6909 | else |
||
6910 | if test -n "$ac_ct_DSYMUTIL"; then |
||
6911 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
||
6912 | else |
||
6913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6914 | for as_dir in $PATH |
||
6915 | do |
||
6916 | IFS=$as_save_IFS |
||
6917 | test -z "$as_dir" && as_dir=. |
||
6918 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6919 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
6920 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
||
6921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6922 | break 2 |
||
6923 | fi |
||
6924 | done |
||
6925 | done |
||
6926 | IFS=$as_save_IFS |
||
6927 | |||
6928 | fi |
||
6929 | fi |
||
6930 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
||
6931 | if test -n "$ac_ct_DSYMUTIL"; then |
||
6932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
||
6933 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
||
6934 | else |
||
6935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
6936 | $as_echo "no" >&6; } |
||
6937 | fi |
||
6938 | |||
6939 | if test "x$ac_ct_DSYMUTIL" = x; then |
||
6940 | DSYMUTIL=":" |
||
6941 | else |
||
6942 | case $cross_compiling:$ac_tool_warned in |
||
6943 | yes:) |
||
6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
6945 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
6946 | ac_tool_warned=yes ;; |
||
6947 | esac |
||
6948 | DSYMUTIL=$ac_ct_DSYMUTIL |
||
6949 | fi |
||
6950 | else |
||
6951 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
||
6952 | fi |
||
6953 | |||
6954 | if test -n "$ac_tool_prefix"; then |
||
6955 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
||
6956 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
||
6957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
6958 | $as_echo_n "checking for $ac_word... " >&6; } |
||
6959 | if ${ac_cv_prog_NMEDIT+:} false; then : |
||
6960 | $as_echo_n "(cached) " >&6 |
||
6961 | else |
||
6962 | if test -n "$NMEDIT"; then |
||
6963 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
||
6964 | else |
||
6965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6966 | for as_dir in $PATH |
||
6967 | do |
||
6968 | IFS=$as_save_IFS |
||
6969 | test -z "$as_dir" && as_dir=. |
||
6970 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6971 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
6972 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
||
6973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6974 | break 2 |
||
6975 | fi |
||
6976 | done |
||
6977 | done |
||
6978 | IFS=$as_save_IFS |
||
6979 | |||
6980 | fi |
||
6981 | fi |
||
6982 | NMEDIT=$ac_cv_prog_NMEDIT |
||
6983 | if test -n "$NMEDIT"; then |
||
6984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
||
6985 | $as_echo "$NMEDIT" >&6; } |
||
6986 | else |
||
6987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
6988 | $as_echo "no" >&6; } |
||
6989 | fi |
||
6990 | |||
6991 | |||
6992 | fi |
||
6993 | if test -z "$ac_cv_prog_NMEDIT"; then |
||
6994 | ac_ct_NMEDIT=$NMEDIT |
||
6995 | # Extract the first word of "nmedit", so it can be a program name with args. |
||
6996 | set dummy nmedit; ac_word=$2 |
||
6997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
6998 | $as_echo_n "checking for $ac_word... " >&6; } |
||
6999 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
||
7000 | $as_echo_n "(cached) " >&6 |
||
7001 | else |
||
7002 | if test -n "$ac_ct_NMEDIT"; then |
||
7003 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
||
7004 | else |
||
7005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
7006 | for as_dir in $PATH |
||
7007 | do |
||
7008 | IFS=$as_save_IFS |
||
7009 | test -z "$as_dir" && as_dir=. |
||
7010 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
7011 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
7012 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
||
7013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
7014 | break 2 |
||
7015 | fi |
||
7016 | done |
||
7017 | done |
||
7018 | IFS=$as_save_IFS |
||
7019 | |||
7020 | fi |
||
7021 | fi |
||
7022 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
||
7023 | if test -n "$ac_ct_NMEDIT"; then |
||
7024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
||
7025 | $as_echo "$ac_ct_NMEDIT" >&6; } |
||
7026 | else |
||
7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7028 | $as_echo "no" >&6; } |
||
7029 | fi |
||
7030 | |||
7031 | if test "x$ac_ct_NMEDIT" = x; then |
||
7032 | NMEDIT=":" |
||
7033 | else |
||
7034 | case $cross_compiling:$ac_tool_warned in |
||
7035 | yes:) |
||
7036 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
7037 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
7038 | ac_tool_warned=yes ;; |
||
7039 | esac |
||
7040 | NMEDIT=$ac_ct_NMEDIT |
||
7041 | fi |
||
7042 | else |
||
7043 | NMEDIT="$ac_cv_prog_NMEDIT" |
||
7044 | fi |
||
7045 | |||
7046 | if test -n "$ac_tool_prefix"; then |
||
7047 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
||
7048 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
||
7049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
7050 | $as_echo_n "checking for $ac_word... " >&6; } |
||
7051 | if ${ac_cv_prog_LIPO+:} false; then : |
||
7052 | $as_echo_n "(cached) " >&6 |
||
7053 | else |
||
7054 | if test -n "$LIPO"; then |
||
7055 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
||
7056 | else |
||
7057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
7058 | for as_dir in $PATH |
||
7059 | do |
||
7060 | IFS=$as_save_IFS |
||
7061 | test -z "$as_dir" && as_dir=. |
||
7062 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
7063 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
7064 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
||
7065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
7066 | break 2 |
||
7067 | fi |
||
7068 | done |
||
7069 | done |
||
7070 | IFS=$as_save_IFS |
||
7071 | |||
7072 | fi |
||
7073 | fi |
||
7074 | LIPO=$ac_cv_prog_LIPO |
||
7075 | if test -n "$LIPO"; then |
||
7076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
||
7077 | $as_echo "$LIPO" >&6; } |
||
7078 | else |
||
7079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7080 | $as_echo "no" >&6; } |
||
7081 | fi |
||
7082 | |||
7083 | |||
7084 | fi |
||
7085 | if test -z "$ac_cv_prog_LIPO"; then |
||
7086 | ac_ct_LIPO=$LIPO |
||
7087 | # Extract the first word of "lipo", so it can be a program name with args. |
||
7088 | set dummy lipo; ac_word=$2 |
||
7089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
7090 | $as_echo_n "checking for $ac_word... " >&6; } |
||
7091 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
||
7092 | $as_echo_n "(cached) " >&6 |
||
7093 | else |
||
7094 | if test -n "$ac_ct_LIPO"; then |
||
7095 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
||
7096 | else |
||
7097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
7098 | for as_dir in $PATH |
||
7099 | do |
||
7100 | IFS=$as_save_IFS |
||
7101 | test -z "$as_dir" && as_dir=. |
||
7102 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
7103 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
7104 | ac_cv_prog_ac_ct_LIPO="lipo" |
||
7105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
7106 | break 2 |
||
7107 | fi |
||
7108 | done |
||
7109 | done |
||
7110 | IFS=$as_save_IFS |
||
7111 | |||
7112 | fi |
||
7113 | fi |
||
7114 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
||
7115 | if test -n "$ac_ct_LIPO"; then |
||
7116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
||
7117 | $as_echo "$ac_ct_LIPO" >&6; } |
||
7118 | else |
||
7119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7120 | $as_echo "no" >&6; } |
||
7121 | fi |
||
7122 | |||
7123 | if test "x$ac_ct_LIPO" = x; then |
||
7124 | LIPO=":" |
||
7125 | else |
||
7126 | case $cross_compiling:$ac_tool_warned in |
||
7127 | yes:) |
||
7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
7129 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
7130 | ac_tool_warned=yes ;; |
||
7131 | esac |
||
7132 | LIPO=$ac_ct_LIPO |
||
7133 | fi |
||
7134 | else |
||
7135 | LIPO="$ac_cv_prog_LIPO" |
||
7136 | fi |
||
7137 | |||
7138 | if test -n "$ac_tool_prefix"; then |
||
7139 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
||
7140 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
||
7141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
7142 | $as_echo_n "checking for $ac_word... " >&6; } |
||
7143 | if ${ac_cv_prog_OTOOL+:} false; then : |
||
7144 | $as_echo_n "(cached) " >&6 |
||
7145 | else |
||
7146 | if test -n "$OTOOL"; then |
||
7147 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
||
7148 | else |
||
7149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
7150 | for as_dir in $PATH |
||
7151 | do |
||
7152 | IFS=$as_save_IFS |
||
7153 | test -z "$as_dir" && as_dir=. |
||
7154 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
7155 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
7156 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
||
7157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
7158 | break 2 |
||
7159 | fi |
||
7160 | done |
||
7161 | done |
||
7162 | IFS=$as_save_IFS |
||
7163 | |||
7164 | fi |
||
7165 | fi |
||
7166 | OTOOL=$ac_cv_prog_OTOOL |
||
7167 | if test -n "$OTOOL"; then |
||
7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
||
7169 | $as_echo "$OTOOL" >&6; } |
||
7170 | else |
||
7171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7172 | $as_echo "no" >&6; } |
||
7173 | fi |
||
7174 | |||
7175 | |||
7176 | fi |
||
7177 | if test -z "$ac_cv_prog_OTOOL"; then |
||
7178 | ac_ct_OTOOL=$OTOOL |
||
7179 | # Extract the first word of "otool", so it can be a program name with args. |
||
7180 | set dummy otool; ac_word=$2 |
||
7181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
7182 | $as_echo_n "checking for $ac_word... " >&6; } |
||
7183 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
||
7184 | $as_echo_n "(cached) " >&6 |
||
7185 | else |
||
7186 | if test -n "$ac_ct_OTOOL"; then |
||
7187 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
||
7188 | else |
||
7189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
7190 | for as_dir in $PATH |
||
7191 | do |
||
7192 | IFS=$as_save_IFS |
||
7193 | test -z "$as_dir" && as_dir=. |
||
7194 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
7195 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
7196 | ac_cv_prog_ac_ct_OTOOL="otool" |
||
7197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
7198 | break 2 |
||
7199 | fi |
||
7200 | done |
||
7201 | done |
||
7202 | IFS=$as_save_IFS |
||
7203 | |||
7204 | fi |
||
7205 | fi |
||
7206 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
||
7207 | if test -n "$ac_ct_OTOOL"; then |
||
7208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
||
7209 | $as_echo "$ac_ct_OTOOL" >&6; } |
||
7210 | else |
||
7211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7212 | $as_echo "no" >&6; } |
||
7213 | fi |
||
7214 | |||
7215 | if test "x$ac_ct_OTOOL" = x; then |
||
7216 | OTOOL=":" |
||
7217 | else |
||
7218 | case $cross_compiling:$ac_tool_warned in |
||
7219 | yes:) |
||
7220 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
7221 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
7222 | ac_tool_warned=yes ;; |
||
7223 | esac |
||
7224 | OTOOL=$ac_ct_OTOOL |
||
7225 | fi |
||
7226 | else |
||
7227 | OTOOL="$ac_cv_prog_OTOOL" |
||
7228 | fi |
||
7229 | |||
7230 | if test -n "$ac_tool_prefix"; then |
||
7231 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
||
7232 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
||
7233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
7234 | $as_echo_n "checking for $ac_word... " >&6; } |
||
7235 | if ${ac_cv_prog_OTOOL64+:} false; then : |
||
7236 | $as_echo_n "(cached) " >&6 |
||
7237 | else |
||
7238 | if test -n "$OTOOL64"; then |
||
7239 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
||
7240 | else |
||
7241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
7242 | for as_dir in $PATH |
||
7243 | do |
||
7244 | IFS=$as_save_IFS |
||
7245 | test -z "$as_dir" && as_dir=. |
||
7246 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
7247 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
7248 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
||
7249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
7250 | break 2 |
||
7251 | fi |
||
7252 | done |
||
7253 | done |
||
7254 | IFS=$as_save_IFS |
||
7255 | |||
7256 | fi |
||
7257 | fi |
||
7258 | OTOOL64=$ac_cv_prog_OTOOL64 |
||
7259 | if test -n "$OTOOL64"; then |
||
7260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
||
7261 | $as_echo "$OTOOL64" >&6; } |
||
7262 | else |
||
7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7264 | $as_echo "no" >&6; } |
||
7265 | fi |
||
7266 | |||
7267 | |||
7268 | fi |
||
7269 | if test -z "$ac_cv_prog_OTOOL64"; then |
||
7270 | ac_ct_OTOOL64=$OTOOL64 |
||
7271 | # Extract the first word of "otool64", so it can be a program name with args. |
||
7272 | set dummy otool64; ac_word=$2 |
||
7273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
7274 | $as_echo_n "checking for $ac_word... " >&6; } |
||
7275 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
||
7276 | $as_echo_n "(cached) " >&6 |
||
7277 | else |
||
7278 | if test -n "$ac_ct_OTOOL64"; then |
||
7279 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
||
7280 | else |
||
7281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
7282 | for as_dir in $PATH |
||
7283 | do |
||
7284 | IFS=$as_save_IFS |
||
7285 | test -z "$as_dir" && as_dir=. |
||
7286 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
7287 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
7288 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
||
7289 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
7290 | break 2 |
||
7291 | fi |
||
7292 | done |
||
7293 | done |
||
7294 | IFS=$as_save_IFS |
||
7295 | |||
7296 | fi |
||
7297 | fi |
||
7298 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
||
7299 | if test -n "$ac_ct_OTOOL64"; then |
||
7300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
||
7301 | $as_echo "$ac_ct_OTOOL64" >&6; } |
||
7302 | else |
||
7303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7304 | $as_echo "no" >&6; } |
||
7305 | fi |
||
7306 | |||
7307 | if test "x$ac_ct_OTOOL64" = x; then |
||
7308 | OTOOL64=":" |
||
7309 | else |
||
7310 | case $cross_compiling:$ac_tool_warned in |
||
7311 | yes:) |
||
7312 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
7313 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
7314 | ac_tool_warned=yes ;; |
||
7315 | esac |
||
7316 | OTOOL64=$ac_ct_OTOOL64 |
||
7317 | fi |
||
7318 | else |
||
7319 | OTOOL64="$ac_cv_prog_OTOOL64" |
||
7320 | fi |
||
7321 | |||
7322 | |||
7323 | |||
7324 | |||
7325 | |||
7326 | |||
7327 | |||
7328 | |||
7329 | |||
7330 | |||
7331 | |||
7332 | |||
7333 | |||
7334 | |||
7335 | |||
7336 | |||
7337 | |||
7338 | |||
7339 | |||
7340 | |||
7341 | |||
7342 | |||
7343 | |||
7344 | |||
7345 | |||
7346 | |||
7347 | |||
7348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
||
7349 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
||
7350 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
||
7351 | $as_echo_n "(cached) " >&6 |
||
7352 | else |
||
7353 | lt_cv_apple_cc_single_mod=no |
||
7354 | if test -z "$LT_MULTI_MODULE"; then |
||
7355 | # By default we will add the -single_module flag. You can override |
||
7356 | # by either setting the environment variable LT_MULTI_MODULE |
||
7357 | # non-empty at configure time, or by adding -multi_module to the |
||
7358 | # link flags. |
||
7359 | rm -rf libconftest.dylib* |
||
7360 | echo "int foo(void){return 1;}" > conftest.c |
||
7361 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
||
7362 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
||
7363 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
||
7364 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
||
7365 | _lt_result=$? |
||
7366 | # If there is a non-empty error log, and "single_module" |
||
7367 | # appears in it, assume the flag caused a linker warning |
||
7368 | if test -s conftest.err && $GREP single_module conftest.err; then |
||
7369 | cat conftest.err >&5 |
||
7370 | # Otherwise, if the output was created with a 0 exit code from |
||
7371 | # the compiler, it worked. |
||
7372 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
||
7373 | lt_cv_apple_cc_single_mod=yes |
||
7374 | else |
||
7375 | cat conftest.err >&5 |
||
7376 | fi |
||
7377 | rm -rf libconftest.dylib* |
||
7378 | rm -f conftest.* |
||
7379 | fi |
||
7380 | fi |
||
7381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
||
7382 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
||
7383 | |||
7384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
||
7385 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
||
7386 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
||
7387 | $as_echo_n "(cached) " >&6 |
||
7388 | else |
||
7389 | lt_cv_ld_exported_symbols_list=no |
||
7390 | save_LDFLAGS=$LDFLAGS |
||
7391 | echo "_main" > conftest.sym |
||
7392 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
||
7393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
7394 | /* end confdefs.h. */ |
||
7395 | |||
7396 | int |
||
7397 | main () |
||
7398 | { |
||
7399 | |||
7400 | ; |
||
7401 | return 0; |
||
7402 | } |
||
7403 | _ACEOF |
||
7404 | if ac_fn_c_try_link "$LINENO"; then : |
||
7405 | lt_cv_ld_exported_symbols_list=yes |
||
7406 | else |
||
7407 | lt_cv_ld_exported_symbols_list=no |
||
7408 | fi |
||
7409 | rm -f core conftest.err conftest.$ac_objext \ |
||
7410 | conftest$ac_exeext conftest.$ac_ext |
||
7411 | LDFLAGS=$save_LDFLAGS |
||
7412 | |||
7413 | fi |
||
7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
||
7415 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
||
7416 | |||
7417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
||
7418 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
||
7419 | if ${lt_cv_ld_force_load+:} false; then : |
||
7420 | $as_echo_n "(cached) " >&6 |
||
7421 | else |
||
7422 | lt_cv_ld_force_load=no |
||
7423 | cat > conftest.c << _LT_EOF |
||
7424 | int forced_loaded() { return 2;} |
||
7425 | _LT_EOF |
||
7426 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
||
7427 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
||
7428 | echo "$AR cru libconftest.a conftest.o" >&5 |
||
7429 | $AR cru libconftest.a conftest.o 2>&5 |
||
7430 | echo "$RANLIB libconftest.a" >&5 |
||
7431 | $RANLIB libconftest.a 2>&5 |
||
7432 | cat > conftest.c << _LT_EOF |
||
7433 | int main() { return 0;} |
||
7434 | _LT_EOF |
||
7435 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
||
7436 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
||
7437 | _lt_result=$? |
||
7438 | if test -s conftest.err && $GREP force_load conftest.err; then |
||
7439 | cat conftest.err >&5 |
||
7440 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
||
7441 | lt_cv_ld_force_load=yes |
||
7442 | else |
||
7443 | cat conftest.err >&5 |
||
7444 | fi |
||
7445 | rm -f conftest.err libconftest.a conftest conftest.c |
||
7446 | rm -rf conftest.dSYM |
||
7447 | |||
7448 | fi |
||
7449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
||
7450 | $as_echo "$lt_cv_ld_force_load" >&6; } |
||
7451 | case $host_os in |
||
7452 | rhapsody* | darwin1.[012]) |
||
7453 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
||
7454 | darwin1.*) |
||
7455 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
||
7456 | darwin*) # darwin 5.x on |
||
7457 | # if running on 10.5 or later, the deployment target defaults |
||
7458 | # to the OS version, if on x86, and 10.4, the deployment |
||
7459 | # target defaults to 10.4. Don't you love it? |
||
7460 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
||
7461 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
||
7462 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
||
7463 | 10.[012][,.]*) |
||
7464 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
||
7465 | 10.*) |
||
7466 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
||
7467 | esac |
||
7468 | ;; |
||
7469 | esac |
||
7470 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
||
7471 | _lt_dar_single_mod='$single_module' |
||
7472 | fi |
||
7473 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
||
7474 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
||
7475 | else |
||
7476 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
||
7477 | fi |
||
7478 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
||
7479 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
||
7480 | else |
||
7481 | _lt_dsymutil= |
||
7482 | fi |
||
7483 | ;; |
||
7484 | esac |
||
7485 | |||
7486 | # func_munge_path_list VARIABLE PATH |
||
7487 | # ----------------------------------- |
||
7488 | # VARIABLE is name of variable containing _space_ separated list of |
||
7489 | # directories to be munged by the contents of PATH, which is string |
||
7490 | # having a format: |
||
7491 | # "DIR[:DIR]:" |
||
7492 | # string "DIR[ DIR]" will be prepended to VARIABLE |
||
7493 | # ":DIR[:DIR]" |
||
7494 | # string "DIR[ DIR]" will be appended to VARIABLE |
||
7495 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
||
7496 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
||
7497 | # "DIRA[ DIRA]" will be appended to VARIABLE |
||
7498 | # "DIR[:DIR]" |
||
7499 | # VARIABLE will be replaced by "DIR[ DIR]" |
||
7500 | func_munge_path_list () |
||
7501 | { |
||
7502 | case x$2 in |
||
7503 | x) |
||
7504 | ;; |
||
7505 | *:) |
||
7506 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
||
7507 | ;; |
||
7508 | x:*) |
||
7509 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
||
7510 | ;; |
||
7511 | *::*) |
||
7512 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
||
7513 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
||
7514 | ;; |
||
7515 | *) |
||
7516 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
||
7517 | ;; |
||
7518 | esac |
||
7519 | } |
||
7520 | |||
7521 | ac_ext=c |
||
7522 | ac_cpp='$CPP $CPPFLAGS' |
||
7523 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
7524 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
7525 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
7526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
||
7527 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
||
7528 | # On Suns, sometimes $CPP names a directory. |
||
7529 | if test -n "$CPP" && test -d "$CPP"; then |
||
7530 | CPP= |
||
7531 | fi |
||
7532 | if test -z "$CPP"; then |
||
7533 | if ${ac_cv_prog_CPP+:} false; then : |
||
7534 | $as_echo_n "(cached) " >&6 |
||
7535 | else |
||
7536 | # Double quotes because CPP needs to be expanded |
||
7537 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
||
7538 | do |
||
7539 | ac_preproc_ok=false |
||
7540 | for ac_c_preproc_warn_flag in '' yes |
||
7541 | do |
||
7542 | # Use a header file that comes with gcc, so configuring glibc |
||
7543 | # with a fresh cross-compiler works. |
||
7544 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
7545 | # <limits.h> exists even on freestanding compilers. |
||
7546 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
7547 | # not just through cpp. "Syntax error" is here to catch this case. |
||
7548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
7549 | /* end confdefs.h. */ |
||
7550 | #ifdef __STDC__ |
||
7551 | # include <limits.h> |
||
7552 | #else |
||
7553 | # include <assert.h> |
||
7554 | #endif |
||
7555 | Syntax error |
||
7556 | _ACEOF |
||
7557 | if ac_fn_c_try_cpp "$LINENO"; then : |
||
7558 | |||
7559 | else |
||
7560 | # Broken: fails on valid input. |
||
7561 | continue |
||
7562 | fi |
||
7563 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
7564 | |||
7565 | # OK, works on sane cases. Now check whether nonexistent headers |
||
7566 | # can be detected and how. |
||
7567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
7568 | /* end confdefs.h. */ |
||
7569 | #include <ac_nonexistent.h> |
||
7570 | _ACEOF |
||
7571 | if ac_fn_c_try_cpp "$LINENO"; then : |
||
7572 | # Broken: success on invalid input. |
||
7573 | continue |
||
7574 | else |
||
7575 | # Passes both tests. |
||
7576 | ac_preproc_ok=: |
||
7577 | break |
||
7578 | fi |
||
7579 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
7580 | |||
7581 | done |
||
7582 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
7583 | rm -f conftest.i conftest.err conftest.$ac_ext |
||
7584 | if $ac_preproc_ok; then : |
||
7585 | break |
||
7586 | fi |
||
7587 | |||
7588 | done |
||
7589 | ac_cv_prog_CPP=$CPP |
||
7590 | |||
7591 | fi |
||
7592 | CPP=$ac_cv_prog_CPP |
||
7593 | else |
||
7594 | ac_cv_prog_CPP=$CPP |
||
7595 | fi |
||
7596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
||
7597 | $as_echo "$CPP" >&6; } |
||
7598 | ac_preproc_ok=false |
||
7599 | for ac_c_preproc_warn_flag in '' yes |
||
7600 | do |
||
7601 | # Use a header file that comes with gcc, so configuring glibc |
||
7602 | # with a fresh cross-compiler works. |
||
7603 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
7604 | # <limits.h> exists even on freestanding compilers. |
||
7605 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
7606 | # not just through cpp. "Syntax error" is here to catch this case. |
||
7607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
7608 | /* end confdefs.h. */ |
||
7609 | #ifdef __STDC__ |
||
7610 | # include <limits.h> |
||
7611 | #else |
||
7612 | # include <assert.h> |
||
7613 | #endif |
||
7614 | Syntax error |
||
7615 | _ACEOF |
||
7616 | if ac_fn_c_try_cpp "$LINENO"; then : |
||
7617 | |||
7618 | else |
||
7619 | # Broken: fails on valid input. |
||
7620 | continue |
||
7621 | fi |
||
7622 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
7623 | |||
7624 | # OK, works on sane cases. Now check whether nonexistent headers |
||
7625 | # can be detected and how. |
||
7626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
7627 | /* end confdefs.h. */ |
||
7628 | #include <ac_nonexistent.h> |
||
7629 | _ACEOF |
||
7630 | if ac_fn_c_try_cpp "$LINENO"; then : |
||
7631 | # Broken: success on invalid input. |
||
7632 | continue |
||
7633 | else |
||
7634 | # Passes both tests. |
||
7635 | ac_preproc_ok=: |
||
7636 | break |
||
7637 | fi |
||
7638 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
7639 | |||
7640 | done |
||
7641 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
7642 | rm -f conftest.i conftest.err conftest.$ac_ext |
||
7643 | if $ac_preproc_ok; then : |
||
7644 | |||
7645 | else |
||
7646 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
7647 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
7648 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
||
7649 | See \`config.log' for more details" "$LINENO" 5; } |
||
7650 | fi |
||
7651 | |||
7652 | ac_ext=c |
||
7653 | ac_cpp='$CPP $CPPFLAGS' |
||
7654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
7655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
7656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
7657 | |||
7658 | |||
7659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
||
7660 | $as_echo_n "checking for ANSI C header files... " >&6; } |
||
7661 | if ${ac_cv_header_stdc+:} false; then : |
||
7662 | $as_echo_n "(cached) " >&6 |
||
7663 | else |
||
7664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
7665 | /* end confdefs.h. */ |
||
7666 | #include <stdlib.h> |
||
7667 | #include <stdarg.h> |
||
7668 | #include <string.h> |
||
7669 | #include <float.h> |
||
7670 | |||
7671 | int |
||
7672 | main () |
||
7673 | { |
||
7674 | |||
7675 | ; |
||
7676 | return 0; |
||
7677 | } |
||
7678 | _ACEOF |
||
7679 | if ac_fn_c_try_compile "$LINENO"; then : |
||
7680 | ac_cv_header_stdc=yes |
||
7681 | else |
||
7682 | ac_cv_header_stdc=no |
||
7683 | fi |
||
7684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
7685 | |||
7686 | if test $ac_cv_header_stdc = yes; then |
||
7687 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
||
7688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
7689 | /* end confdefs.h. */ |
||
7690 | #include <string.h> |
||
7691 | |||
7692 | _ACEOF |
||
7693 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
7694 | $EGREP "memchr" >/dev/null 2>&1; then : |
||
7695 | |||
7696 | else |
||
7697 | ac_cv_header_stdc=no |
||
7698 | fi |
||
7699 | rm -f conftest* |
||
7700 | |||
7701 | fi |
||
7702 | |||
7703 | if test $ac_cv_header_stdc = yes; then |
||
7704 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
||
7705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
7706 | /* end confdefs.h. */ |
||
7707 | #include <stdlib.h> |
||
7708 | |||
7709 | _ACEOF |
||
7710 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
7711 | $EGREP "free" >/dev/null 2>&1; then : |
||
7712 | |||
7713 | else |
||
7714 | ac_cv_header_stdc=no |
||
7715 | fi |
||
7716 | rm -f conftest* |
||
7717 | |||
7718 | fi |
||
7719 | |||
7720 | if test $ac_cv_header_stdc = yes; then |
||
7721 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
||
7722 | if test "$cross_compiling" = yes; then : |
||
7723 | : |
||
7724 | else |
||
7725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
7726 | /* end confdefs.h. */ |
||
7727 | #include <ctype.h> |
||
7728 | #include <stdlib.h> |
||
7729 | #if ((' ' & 0x0FF) == 0x020) |
||
7730 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
||
7731 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
||
7732 | #else |
||
7733 | # define ISLOWER(c) \ |
||
7734 | (('a' <= (c) && (c) <= 'i') \ |
||
7735 | || ('j' <= (c) && (c) <= 'r') \ |
||
7736 | || ('s' <= (c) && (c) <= 'z')) |
||
7737 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
||
7738 | #endif |
||
7739 | |||
7740 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
||
7741 | int |
||
7742 | main () |
||
7743 | { |
||
7744 | int i; |
||
7745 | for (i = 0; i < 256; i++) |
||
7746 | if (XOR (islower (i), ISLOWER (i)) |
||
7747 | || toupper (i) != TOUPPER (i)) |
||
7748 | return 2; |
||
7749 | return 0; |
||
7750 | } |
||
7751 | _ACEOF |
||
7752 | if ac_fn_c_try_run "$LINENO"; then : |
||
7753 | |||
7754 | else |
||
7755 | ac_cv_header_stdc=no |
||
7756 | fi |
||
7757 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
7758 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
7759 | fi |
||
7760 | |||
7761 | fi |
||
7762 | fi |
||
7763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
||
7764 | $as_echo "$ac_cv_header_stdc" >&6; } |
||
7765 | if test $ac_cv_header_stdc = yes; then |
||
7766 | |||
7767 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
||
7768 | |||
7769 | fi |
||
7770 | |||
7771 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
||
7772 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
||
7773 | inttypes.h stdint.h unistd.h |
||
7774 | do : |
||
7775 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
7776 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
||
7777 | " |
||
7778 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
||
7779 | cat >>confdefs.h <<_ACEOF |
||
7780 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
7781 | _ACEOF |
||
7782 | |||
7783 | fi |
||
7784 | |||
7785 | done |
||
7786 | |||
7787 | |||
7788 | for ac_header in dlfcn.h |
||
7789 | do : |
||
7790 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
||
7791 | " |
||
7792 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
||
7793 | cat >>confdefs.h <<_ACEOF |
||
7794 | #define HAVE_DLFCN_H 1 |
||
7795 | _ACEOF |
||
7796 | |||
7797 | fi |
||
7798 | |||
7799 | done |
||
7800 | |||
7801 | |||
7802 | |||
7803 | |||
7804 | |||
7805 | # Set options |
||
7806 | |||
7807 | |||
7808 | |||
7809 | enable_dlopen=no |
||
7810 | |||
7811 | |||
7812 | enable_win32_dll=no |
||
7813 | |||
7814 | |||
7815 | # Check whether --enable-shared was given. |
||
7816 | if test "${enable_shared+set}" = set; then : |
||
7817 | enableval=$enable_shared; p=${PACKAGE-default} |
||
7818 | case $enableval in |
||
7819 | yes) enable_shared=yes ;; |
||
7820 | no) enable_shared=no ;; |
||
7821 | *) |
||
7822 | enable_shared=no |
||
7823 | # Look at the argument we got. We use all the common list separators. |
||
7824 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
||
7825 | for pkg in $enableval; do |
||
7826 | IFS=$lt_save_ifs |
||
7827 | if test "X$pkg" = "X$p"; then |
||
7828 | enable_shared=yes |
||
7829 | fi |
||
7830 | done |
||
7831 | IFS=$lt_save_ifs |
||
7832 | ;; |
||
7833 | esac |
||
7834 | else |
||
7835 | enable_shared=yes |
||
7836 | fi |
||
7837 | |||
7838 | |||
7839 | |||
7840 | |||
7841 | |||
7842 | |||
7843 | |||
7844 | |||
7845 | |||
7846 | # Check whether --enable-static was given. |
||
7847 | if test "${enable_static+set}" = set; then : |
||
7848 | enableval=$enable_static; p=${PACKAGE-default} |
||
7849 | case $enableval in |
||
7850 | yes) enable_static=yes ;; |
||
7851 | no) enable_static=no ;; |
||
7852 | *) |
||
7853 | enable_static=no |
||
7854 | # Look at the argument we got. We use all the common list separators. |
||
7855 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
||
7856 | for pkg in $enableval; do |
||
7857 | IFS=$lt_save_ifs |
||
7858 | if test "X$pkg" = "X$p"; then |
||
7859 | enable_static=yes |
||
7860 | fi |
||
7861 | done |
||
7862 | IFS=$lt_save_ifs |
||
7863 | ;; |
||
7864 | esac |
||
7865 | else |
||
7866 | enable_static=yes |
||
7867 | fi |
||
7868 | |||
7869 | |||
7870 | |||
7871 | |||
7872 | |||
7873 | |||
7874 | |||
7875 | |||
7876 | |||
7877 | |||
7878 | # Check whether --with-pic was given. |
||
7879 | if test "${with_pic+set}" = set; then : |
||
7880 | withval=$with_pic; lt_p=${PACKAGE-default} |
||
7881 | case $withval in |
||
7882 | yes|no) pic_mode=$withval ;; |
||
7883 | *) |
||
7884 | pic_mode=default |
||
7885 | # Look at the argument we got. We use all the common list separators. |
||
7886 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
||
7887 | for lt_pkg in $withval; do |
||
7888 | IFS=$lt_save_ifs |
||
7889 | if test "X$lt_pkg" = "X$lt_p"; then |
||
7890 | pic_mode=yes |
||
7891 | fi |
||
7892 | done |
||
7893 | IFS=$lt_save_ifs |
||
7894 | ;; |
||
7895 | esac |
||
7896 | else |
||
7897 | pic_mode=default |
||
7898 | fi |
||
7899 | |||
7900 | |||
7901 | |||
7902 | |||
7903 | |||
7904 | |||
7905 | |||
7906 | |||
7907 | # Check whether --enable-fast-install was given. |
||
7908 | if test "${enable_fast_install+set}" = set; then : |
||
7909 | enableval=$enable_fast_install; p=${PACKAGE-default} |
||
7910 | case $enableval in |
||
7911 | yes) enable_fast_install=yes ;; |
||
7912 | no) enable_fast_install=no ;; |
||
7913 | *) |
||
7914 | enable_fast_install=no |
||
7915 | # Look at the argument we got. We use all the common list separators. |
||
7916 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
||
7917 | for pkg in $enableval; do |
||
7918 | IFS=$lt_save_ifs |
||
7919 | if test "X$pkg" = "X$p"; then |
||
7920 | enable_fast_install=yes |
||
7921 | fi |
||
7922 | done |
||
7923 | IFS=$lt_save_ifs |
||
7924 | ;; |
||
7925 | esac |
||
7926 | else |
||
7927 | enable_fast_install=yes |
||
7928 | fi |
||
7929 | |||
7930 | |||
7931 | |||
7932 | |||
7933 | |||
7934 | |||
7935 | |||
7936 | |||
7937 | shared_archive_member_spec= |
||
7938 | case $host,$enable_shared in |
||
7939 | power*-*-aix[5-9]*,yes) |
||
7940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
||
7941 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } |
||
7942 | |||
7943 | # Check whether --with-aix-soname was given. |
||
7944 | if test "${with_aix_soname+set}" = set; then : |
||
7945 | withval=$with_aix_soname; case $withval in |
||
7946 | aix|svr4|both) |
||
7947 | ;; |
||
7948 | *) |
||
7949 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
||
7950 | ;; |
||
7951 | esac |
||
7952 | lt_cv_with_aix_soname=$with_aix_soname |
||
7953 | else |
||
7954 | if ${lt_cv_with_aix_soname+:} false; then : |
||
7955 | $as_echo_n "(cached) " >&6 |
||
7956 | else |
||
7957 | lt_cv_with_aix_soname=aix |
||
7958 | fi |
||
7959 | |||
7960 | with_aix_soname=$lt_cv_with_aix_soname |
||
7961 | fi |
||
7962 | |||
7963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
||
7964 | $as_echo "$with_aix_soname" >&6; } |
||
7965 | if test aix != "$with_aix_soname"; then |
||
7966 | # For the AIX way of multilib, we name the shared archive member |
||
7967 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
||
7968 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
||
7969 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
||
7970 | # the AIX toolchain works better with OBJECT_MODE set (default 32). |
||
7971 | if test 64 = "${OBJECT_MODE-32}"; then |
||
7972 | shared_archive_member_spec=shr_64 |
||
7973 | else |
||
7974 | shared_archive_member_spec=shr |
||
7975 | fi |
||
7976 | fi |
||
7977 | ;; |
||
7978 | *) |
||
7979 | with_aix_soname=aix |
||
7980 | ;; |
||
7981 | esac |
||
7982 | |||
7983 | |||
7984 | |||
7985 | |||
7986 | |||
7987 | |||
7988 | |||
7989 | |||
7990 | |||
7991 | |||
7992 | # This can be used to rebuild libtool when needed |
||
7993 | LIBTOOL_DEPS=$ltmain |
||
7994 | |||
7995 | # Always use our own libtool. |
||
7996 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
||
7997 | |||
7998 | |||
7999 | |||
8000 | |||
8001 | |||
8002 | |||
8003 | |||
8004 | |||
8005 | |||
8006 | |||
8007 | |||
8008 | |||
8009 | |||
8010 | |||
8011 | |||
8012 | |||
8013 | |||
8014 | |||
8015 | |||
8016 | |||
8017 | |||
8018 | |||
8019 | |||
8020 | |||
8021 | |||
8022 | |||
8023 | |||
8024 | |||
8025 | |||
8026 | |||
8027 | test -z "$LN_S" && LN_S="ln -s" |
||
8028 | |||
8029 | |||
8030 | |||
8031 | |||
8032 | |||
8033 | |||
8034 | |||
8035 | |||
8036 | |||
8037 | |||
8038 | |||
8039 | |||
8040 | |||
8041 | |||
8042 | if test -n "${ZSH_VERSION+set}"; then |
||
8043 | setopt NO_GLOB_SUBST |
||
8044 | fi |
||
8045 | |||
8046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
||
8047 | $as_echo_n "checking for objdir... " >&6; } |
||
8048 | if ${lt_cv_objdir+:} false; then : |
||
8049 | $as_echo_n "(cached) " >&6 |
||
8050 | else |
||
8051 | rm -f .libs 2>/dev/null |
||
8052 | mkdir .libs 2>/dev/null |
||
8053 | if test -d .libs; then |
||
8054 | lt_cv_objdir=.libs |
||
8055 | else |
||
8056 | # MS-DOS does not allow filenames that begin with a dot. |
||
8057 | lt_cv_objdir=_libs |
||
8058 | fi |
||
8059 | rmdir .libs 2>/dev/null |
||
8060 | fi |
||
8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
||
8062 | $as_echo "$lt_cv_objdir" >&6; } |
||
8063 | objdir=$lt_cv_objdir |
||
8064 | |||
8065 | |||
8066 | |||
8067 | |||
8068 | |||
8069 | cat >>confdefs.h <<_ACEOF |
||
8070 | #define LT_OBJDIR "$lt_cv_objdir/" |
||
8071 | _ACEOF |
||
8072 | |||
8073 | |||
8074 | |||
8075 | |||
8076 | case $host_os in |
||
8077 | aix3*) |
||
8078 | # AIX sometimes has problems with the GCC collect2 program. For some |
||
8079 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
||
8080 | # vanish in a puff of smoke. |
||
8081 | if test set != "${COLLECT_NAMES+set}"; then |
||
8082 | COLLECT_NAMES= |
||
8083 | export COLLECT_NAMES |
||
8084 | fi |
||
8085 | ;; |
||
8086 | esac |
||
8087 | |||
8088 | # Global variables: |
||
8089 | ofile=libtool |
||
8090 | can_build_shared=yes |
||
8091 | |||
8092 | # All known linkers require a '.a' archive for static linking (except MSVC, |
||
8093 | # which needs '.lib'). |
||
8094 | libext=a |
||
8095 | |||
8096 | with_gnu_ld=$lt_cv_prog_gnu_ld |
||
8097 | |||
8098 | old_CC=$CC |
||
8099 | old_CFLAGS=$CFLAGS |
||
8100 | |||
8101 | # Set sane defaults for various variables |
||
8102 | test -z "$CC" && CC=cc |
||
8103 | test -z "$LTCC" && LTCC=$CC |
||
8104 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
||
8105 | test -z "$LD" && LD=ld |
||
8106 | test -z "$ac_objext" && ac_objext=o |
||
8107 | |||
8108 | func_cc_basename $compiler |
||
8109 | cc_basename=$func_cc_basename_result |
||
8110 | |||
8111 | |||
8112 | # Only perform the check for file, if the check method requires it |
||
8113 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
||
8114 | case $deplibs_check_method in |
||
8115 | file_magic*) |
||
8116 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
||
8117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
||
8118 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
||
8119 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
||
8120 | $as_echo_n "(cached) " >&6 |
||
8121 | else |
||
8122 | case $MAGIC_CMD in |
||
8123 | [\\/*] | ?:[\\/]*) |
||
8124 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
||
8125 | ;; |
||
8126 | *) |
||
8127 | lt_save_MAGIC_CMD=$MAGIC_CMD |
||
8128 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
||
8129 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
||
8130 | for ac_dir in $ac_dummy; do |
||
8131 | IFS=$lt_save_ifs |
||
8132 | test -z "$ac_dir" && ac_dir=. |
||
8133 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
||
8134 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
||
8135 | if test -n "$file_magic_test_file"; then |
||
8136 | case $deplibs_check_method in |
||
8137 | "file_magic "*) |
||
8138 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
||
8139 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
||
8140 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
||
8141 | $EGREP "$file_magic_regex" > /dev/null; then |
||
8142 | : |
||
8143 | else |
||
8144 | cat <<_LT_EOF 1>&2 |
||
8145 | |||
8146 | *** Warning: the command libtool uses to detect shared libraries, |
||
8147 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
||
8148 | *** The result is that libtool may fail to recognize shared libraries |
||
8149 | *** as such. This will affect the creation of libtool libraries that |
||
8150 | *** depend on shared libraries, but programs linked with such libtool |
||
8151 | *** libraries will work regardless of this problem. Nevertheless, you |
||
8152 | *** may want to report the problem to your system manager and/or to |
||
8153 | *** bug-libtool@gnu.org |
||
8154 | |||
8155 | _LT_EOF |
||
8156 | fi ;; |
||
8157 | esac |
||
8158 | fi |
||
8159 | break |
||
8160 | fi |
||
8161 | done |
||
8162 | IFS=$lt_save_ifs |
||
8163 | MAGIC_CMD=$lt_save_MAGIC_CMD |
||
8164 | ;; |
||
8165 | esac |
||
8166 | fi |
||
8167 | |||
8168 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
||
8169 | if test -n "$MAGIC_CMD"; then |
||
8170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
||
8171 | $as_echo "$MAGIC_CMD" >&6; } |
||
8172 | else |
||
8173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
8174 | $as_echo "no" >&6; } |
||
8175 | fi |
||
8176 | |||
8177 | |||
8178 | |||
8179 | |||
8180 | |||
8181 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
||
8182 | if test -n "$ac_tool_prefix"; then |
||
8183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
||
8184 | $as_echo_n "checking for file... " >&6; } |
||
8185 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
||
8186 | $as_echo_n "(cached) " >&6 |
||
8187 | else |
||
8188 | case $MAGIC_CMD in |
||
8189 | [\\/*] | ?:[\\/]*) |
||
8190 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
||
8191 | ;; |
||
8192 | *) |
||
8193 | lt_save_MAGIC_CMD=$MAGIC_CMD |
||
8194 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
||
8195 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
||
8196 | for ac_dir in $ac_dummy; do |
||
8197 | IFS=$lt_save_ifs |
||
8198 | test -z "$ac_dir" && ac_dir=. |
||
8199 | if test -f "$ac_dir/file"; then |
||
8200 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
||
8201 | if test -n "$file_magic_test_file"; then |
||
8202 | case $deplibs_check_method in |
||
8203 | "file_magic "*) |
||
8204 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
||
8205 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
||
8206 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
||
8207 | $EGREP "$file_magic_regex" > /dev/null; then |
||
8208 | : |
||
8209 | else |
||
8210 | cat <<_LT_EOF 1>&2 |
||
8211 | |||
8212 | *** Warning: the command libtool uses to detect shared libraries, |
||
8213 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
||
8214 | *** The result is that libtool may fail to recognize shared libraries |
||
8215 | *** as such. This will affect the creation of libtool libraries that |
||
8216 | *** depend on shared libraries, but programs linked with such libtool |
||
8217 | *** libraries will work regardless of this problem. Nevertheless, you |
||
8218 | *** may want to report the problem to your system manager and/or to |
||
8219 | *** bug-libtool@gnu.org |
||
8220 | |||
8221 | _LT_EOF |
||
8222 | fi ;; |
||
8223 | esac |
||
8224 | fi |
||
8225 | break |
||
8226 | fi |
||
8227 | done |
||
8228 | IFS=$lt_save_ifs |
||
8229 | MAGIC_CMD=$lt_save_MAGIC_CMD |
||
8230 | ;; |
||
8231 | esac |
||
8232 | fi |
||
8233 | |||
8234 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
||
8235 | if test -n "$MAGIC_CMD"; then |
||
8236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
||
8237 | $as_echo "$MAGIC_CMD" >&6; } |
||
8238 | else |
||
8239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
8240 | $as_echo "no" >&6; } |
||
8241 | fi |
||
8242 | |||
8243 | |||
8244 | else |
||
8245 | MAGIC_CMD=: |
||
8246 | fi |
||
8247 | fi |
||
8248 | |||
8249 | fi |
||
8250 | ;; |
||
8251 | esac |
||
8252 | |||
8253 | # Use C for the default configuration in the libtool script |
||
8254 | |||
8255 | lt_save_CC=$CC |
||
8256 | ac_ext=c |
||
8257 | ac_cpp='$CPP $CPPFLAGS' |
||
8258 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
8259 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
8260 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
8261 | |||
8262 | |||
8263 | # Source file extension for C test sources. |
||
8264 | ac_ext=c |
||
8265 | |||
8266 | # Object file extension for compiled C test sources. |
||
8267 | objext=o |
||
8268 | objext=$objext |
||
8269 | |||
8270 | # Code to be used in simple compile tests |
||
8271 | lt_simple_compile_test_code="int some_variable = 0;" |
||
8272 | |||
8273 | # Code to be used in simple link tests |
||
8274 | lt_simple_link_test_code='int main(){return(0);}' |
||
8275 | |||
8276 | |||
8277 | |||
8278 | |||
8279 | |||
8280 | |||
8281 | |||
8282 | # If no C compiler was specified, use CC. |
||
8283 | LTCC=${LTCC-"$CC"} |
||
8284 | |||
8285 | # If no C compiler flags were specified, use CFLAGS. |
||
8286 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
||
8287 | |||
8288 | # Allow CC to be a program name with arguments. |
||
8289 | compiler=$CC |
||
8290 | |||
8291 | # Save the default compiler, since it gets overwritten when the other |
||
8292 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
||
8293 | compiler_DEFAULT=$CC |
||
8294 | |||
8295 | # save warnings/boilerplate of simple test code |
||
8296 | ac_outfile=conftest.$ac_objext |
||
8297 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
||
8298 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
8299 | _lt_compiler_boilerplate=`cat conftest.err` |
||
8300 | $RM conftest* |
||
8301 | |||
8302 | ac_outfile=conftest.$ac_objext |
||
8303 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
||
8304 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
8305 | _lt_linker_boilerplate=`cat conftest.err` |
||
8306 | $RM -r conftest* |
||
8307 | |||
8308 | |||
8309 | if test -n "$compiler"; then |
||
8310 | |||
8311 | lt_prog_compiler_no_builtin_flag= |
||
8312 | |||
8313 | if test yes = "$GCC"; then |
||
8314 | case $cc_basename in |
||
8315 | nvcc*) |
||
8316 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
||
8317 | *) |
||
8318 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
||
8319 | esac |
||
8320 | |||
8321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
||
8322 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
||
8323 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
||
8324 | $as_echo_n "(cached) " >&6 |
||
8325 | else |
||
8326 | lt_cv_prog_compiler_rtti_exceptions=no |
||
8327 | ac_outfile=conftest.$ac_objext |
||
8328 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
8329 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
||
8330 | # Insert the option either (1) after the last *FLAGS variable, or |
||
8331 | # (2) before a word containing "conftest.", or (3) at the end. |
||
8332 | # Note that $ac_compile itself does not contain backslashes and begins |
||
8333 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
8334 | # The option is referenced via a variable to avoid confusing sed. |
||
8335 | lt_compile=`echo "$ac_compile" | $SED \ |
||
8336 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
8337 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
8338 | -e 's:$: $lt_compiler_flag:'` |
||
8339 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
||
8340 | (eval "$lt_compile" 2>conftest.err) |
||
8341 | ac_status=$? |
||
8342 | cat conftest.err >&5 |
||
8343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8344 | if (exit $ac_status) && test -s "$ac_outfile"; then |
||
8345 | # The compiler can only warn and ignore the option if not recognized |
||
8346 | # So say no if there are warnings other than the usual output. |
||
8347 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
||
8348 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
8349 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
||
8350 | lt_cv_prog_compiler_rtti_exceptions=yes |
||
8351 | fi |
||
8352 | fi |
||
8353 | $RM conftest* |
||
8354 | |||
8355 | fi |
||
8356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
||
8357 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
||
8358 | |||
8359 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
||
8360 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
||
8361 | else |
||
8362 | : |
||
8363 | fi |
||
8364 | |||
8365 | fi |
||
8366 | |||
8367 | |||
8368 | |||
8369 | |||
8370 | |||
8371 | |||
8372 | lt_prog_compiler_wl= |
||
8373 | lt_prog_compiler_pic= |
||
8374 | lt_prog_compiler_static= |
||
8375 | |||
8376 | |||
8377 | if test yes = "$GCC"; then |
||
8378 | lt_prog_compiler_wl='-Wl,' |
||
8379 | lt_prog_compiler_static='-static' |
||
8380 | |||
8381 | case $host_os in |
||
8382 | aix*) |
||
8383 | # All AIX code is PIC. |
||
8384 | if test ia64 = "$host_cpu"; then |
||
8385 | # AIX 5 now supports IA64 processor |
||
8386 | lt_prog_compiler_static='-Bstatic' |
||
8387 | fi |
||
8388 | lt_prog_compiler_pic='-fPIC' |
||
8389 | ;; |
||
8390 | |||
8391 | amigaos*) |
||
8392 | case $host_cpu in |
||
8393 | powerpc) |
||
8394 | # see comment about AmigaOS4 .so support |
||
8395 | lt_prog_compiler_pic='-fPIC' |
||
8396 | ;; |
||
8397 | m68k) |
||
8398 | # FIXME: we need at least 68020 code to build shared libraries, but |
||
8399 | # adding the '-m68020' flag to GCC prevents building anything better, |
||
8400 | # like '-m68040'. |
||
8401 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
||
8402 | ;; |
||
8403 | esac |
||
8404 | ;; |
||
8405 | |||
8406 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
||
8407 | # PIC is the default for these OSes. |
||
8408 | ;; |
||
8409 | |||
7 | mjames | 8410 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
2 | mjames | 8411 | # This hack is so that the source file can tell whether it is being |
8412 | # built for inclusion in a dll (and should export symbols for example). |
||
8413 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
||
8414 | # (--disable-auto-import) libraries |
||
8415 | lt_prog_compiler_pic='-DDLL_EXPORT' |
||
8416 | case $host_os in |
||
8417 | os2*) |
||
8418 | lt_prog_compiler_static='$wl-static' |
||
8419 | ;; |
||
8420 | esac |
||
8421 | ;; |
||
8422 | |||
8423 | darwin* | rhapsody*) |
||
8424 | # PIC is the default on this platform |
||
8425 | # Common symbols not allowed in MH_DYLIB files |
||
8426 | lt_prog_compiler_pic='-fno-common' |
||
8427 | ;; |
||
8428 | |||
8429 | haiku*) |
||
8430 | # PIC is the default for Haiku. |
||
8431 | # The "-static" flag exists, but is broken. |
||
8432 | lt_prog_compiler_static= |
||
8433 | ;; |
||
8434 | |||
8435 | hpux*) |
||
8436 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
||
8437 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
||
8438 | # sets the default TLS model and affects inlining. |
||
8439 | case $host_cpu in |
||
8440 | hppa*64*) |
||
8441 | # +Z the default |
||
8442 | ;; |
||
8443 | *) |
||
8444 | lt_prog_compiler_pic='-fPIC' |
||
8445 | ;; |
||
8446 | esac |
||
8447 | ;; |
||
8448 | |||
8449 | interix[3-9]*) |
||
8450 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
||
8451 | # Instead, we relocate shared libraries at runtime. |
||
8452 | ;; |
||
8453 | |||
8454 | msdosdjgpp*) |
||
8455 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
||
8456 | # on systems that don't support them. |
||
8457 | lt_prog_compiler_can_build_shared=no |
||
8458 | enable_shared=no |
||
8459 | ;; |
||
8460 | |||
8461 | *nto* | *qnx*) |
||
8462 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
||
8463 | # it will coredump. |
||
8464 | lt_prog_compiler_pic='-fPIC -shared' |
||
8465 | ;; |
||
8466 | |||
8467 | sysv4*MP*) |
||
8468 | if test -d /usr/nec; then |
||
8469 | lt_prog_compiler_pic=-Kconform_pic |
||
8470 | fi |
||
8471 | ;; |
||
8472 | |||
8473 | *) |
||
8474 | lt_prog_compiler_pic='-fPIC' |
||
8475 | ;; |
||
8476 | esac |
||
8477 | |||
8478 | case $cc_basename in |
||
8479 | nvcc*) # Cuda Compiler Driver 2.2 |
||
8480 | lt_prog_compiler_wl='-Xlinker ' |
||
8481 | if test -n "$lt_prog_compiler_pic"; then |
||
8482 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
||
8483 | fi |
||
8484 | ;; |
||
8485 | esac |
||
8486 | else |
||
8487 | # PORTME Check for flag to pass linker flags through the system compiler. |
||
8488 | case $host_os in |
||
8489 | aix*) |
||
8490 | lt_prog_compiler_wl='-Wl,' |
||
8491 | if test ia64 = "$host_cpu"; then |
||
8492 | # AIX 5 now supports IA64 processor |
||
8493 | lt_prog_compiler_static='-Bstatic' |
||
8494 | else |
||
8495 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
||
8496 | fi |
||
8497 | ;; |
||
8498 | |||
8499 | darwin* | rhapsody*) |
||
8500 | # PIC is the default on this platform |
||
8501 | # Common symbols not allowed in MH_DYLIB files |
||
8502 | lt_prog_compiler_pic='-fno-common' |
||
8503 | case $cc_basename in |
||
8504 | nagfor*) |
||
8505 | # NAG Fortran compiler |
||
8506 | lt_prog_compiler_wl='-Wl,-Wl,,' |
||
8507 | lt_prog_compiler_pic='-PIC' |
||
8508 | lt_prog_compiler_static='-Bstatic' |
||
8509 | ;; |
||
8510 | esac |
||
8511 | ;; |
||
8512 | |||
7 | mjames | 8513 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
2 | mjames | 8514 | # This hack is so that the source file can tell whether it is being |
8515 | # built for inclusion in a dll (and should export symbols for example). |
||
8516 | lt_prog_compiler_pic='-DDLL_EXPORT' |
||
8517 | case $host_os in |
||
8518 | os2*) |
||
8519 | lt_prog_compiler_static='$wl-static' |
||
8520 | ;; |
||
8521 | esac |
||
8522 | ;; |
||
8523 | |||
8524 | hpux9* | hpux10* | hpux11*) |
||
8525 | lt_prog_compiler_wl='-Wl,' |
||
8526 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
||
8527 | # not for PA HP-UX. |
||
8528 | case $host_cpu in |
||
8529 | hppa*64*|ia64*) |
||
8530 | # +Z the default |
||
8531 | ;; |
||
8532 | *) |
||
8533 | lt_prog_compiler_pic='+Z' |
||
8534 | ;; |
||
8535 | esac |
||
8536 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
||
8537 | lt_prog_compiler_static='$wl-a ${wl}archive' |
||
8538 | ;; |
||
8539 | |||
8540 | irix5* | irix6* | nonstopux*) |
||
8541 | lt_prog_compiler_wl='-Wl,' |
||
8542 | # PIC (with -KPIC) is the default. |
||
8543 | lt_prog_compiler_static='-non_shared' |
||
8544 | ;; |
||
8545 | |||
8546 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
||
8547 | case $cc_basename in |
||
8548 | # old Intel for x86_64, which still supported -KPIC. |
||
8549 | ecc*) |
||
8550 | lt_prog_compiler_wl='-Wl,' |
||
8551 | lt_prog_compiler_pic='-KPIC' |
||
8552 | lt_prog_compiler_static='-static' |
||
8553 | ;; |
||
8554 | # icc used to be incompatible with GCC. |
||
8555 | # ICC 10 doesn't accept -KPIC any more. |
||
8556 | icc* | ifort*) |
||
8557 | lt_prog_compiler_wl='-Wl,' |
||
8558 | lt_prog_compiler_pic='-fPIC' |
||
8559 | lt_prog_compiler_static='-static' |
||
8560 | ;; |
||
8561 | # Lahey Fortran 8.1. |
||
8562 | lf95*) |
||
8563 | lt_prog_compiler_wl='-Wl,' |
||
8564 | lt_prog_compiler_pic='--shared' |
||
8565 | lt_prog_compiler_static='--static' |
||
8566 | ;; |
||
8567 | nagfor*) |
||
8568 | # NAG Fortran compiler |
||
8569 | lt_prog_compiler_wl='-Wl,-Wl,,' |
||
8570 | lt_prog_compiler_pic='-PIC' |
||
8571 | lt_prog_compiler_static='-Bstatic' |
||
8572 | ;; |
||
8573 | tcc*) |
||
8574 | # Fabrice Bellard et al's Tiny C Compiler |
||
8575 | lt_prog_compiler_wl='-Wl,' |
||
8576 | lt_prog_compiler_pic='-fPIC' |
||
8577 | lt_prog_compiler_static='-static' |
||
8578 | ;; |
||
8579 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
||
8580 | # Portland Group compilers (*not* the Pentium gcc compiler, |
||
8581 | # which looks to be a dead project) |
||
8582 | lt_prog_compiler_wl='-Wl,' |
||
8583 | lt_prog_compiler_pic='-fpic' |
||
8584 | lt_prog_compiler_static='-Bstatic' |
||
8585 | ;; |
||
8586 | ccc*) |
||
8587 | lt_prog_compiler_wl='-Wl,' |
||
8588 | # All Alpha code is PIC. |
||
8589 | lt_prog_compiler_static='-non_shared' |
||
8590 | ;; |
||
8591 | xl* | bgxl* | bgf* | mpixl*) |
||
8592 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
||
8593 | lt_prog_compiler_wl='-Wl,' |
||
8594 | lt_prog_compiler_pic='-qpic' |
||
8595 | lt_prog_compiler_static='-qstaticlink' |
||
8596 | ;; |
||
8597 | *) |
||
8598 | case `$CC -V 2>&1 | sed 5q` in |
||
8599 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
||
8600 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
||
8601 | lt_prog_compiler_pic='-KPIC' |
||
8602 | lt_prog_compiler_static='-Bstatic' |
||
8603 | lt_prog_compiler_wl='' |
||
8604 | ;; |
||
8605 | *Sun\ F* | *Sun*Fortran*) |
||
8606 | lt_prog_compiler_pic='-KPIC' |
||
8607 | lt_prog_compiler_static='-Bstatic' |
||
8608 | lt_prog_compiler_wl='-Qoption ld ' |
||
8609 | ;; |
||
8610 | *Sun\ C*) |
||
8611 | # Sun C 5.9 |
||
8612 | lt_prog_compiler_pic='-KPIC' |
||
8613 | lt_prog_compiler_static='-Bstatic' |
||
8614 | lt_prog_compiler_wl='-Wl,' |
||
8615 | ;; |
||
8616 | *Intel*\ [CF]*Compiler*) |
||
8617 | lt_prog_compiler_wl='-Wl,' |
||
8618 | lt_prog_compiler_pic='-fPIC' |
||
8619 | lt_prog_compiler_static='-static' |
||
8620 | ;; |
||
8621 | *Portland\ Group*) |
||
8622 | lt_prog_compiler_wl='-Wl,' |
||
8623 | lt_prog_compiler_pic='-fpic' |
||
8624 | lt_prog_compiler_static='-Bstatic' |
||
8625 | ;; |
||
8626 | esac |
||
8627 | ;; |
||
8628 | esac |
||
8629 | ;; |
||
8630 | |||
8631 | newsos6) |
||
8632 | lt_prog_compiler_pic='-KPIC' |
||
8633 | lt_prog_compiler_static='-Bstatic' |
||
8634 | ;; |
||
8635 | |||
8636 | *nto* | *qnx*) |
||
8637 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
||
8638 | # it will coredump. |
||
8639 | lt_prog_compiler_pic='-fPIC -shared' |
||
8640 | ;; |
||
8641 | |||
8642 | osf3* | osf4* | osf5*) |
||
8643 | lt_prog_compiler_wl='-Wl,' |
||
8644 | # All OSF/1 code is PIC. |
||
8645 | lt_prog_compiler_static='-non_shared' |
||
8646 | ;; |
||
8647 | |||
8648 | rdos*) |
||
8649 | lt_prog_compiler_static='-non_shared' |
||
8650 | ;; |
||
8651 | |||
8652 | solaris*) |
||
8653 | lt_prog_compiler_pic='-KPIC' |
||
8654 | lt_prog_compiler_static='-Bstatic' |
||
8655 | case $cc_basename in |
||
8656 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
||
8657 | lt_prog_compiler_wl='-Qoption ld ';; |
||
8658 | *) |
||
8659 | lt_prog_compiler_wl='-Wl,';; |
||
8660 | esac |
||
8661 | ;; |
||
8662 | |||
8663 | sunos4*) |
||
8664 | lt_prog_compiler_wl='-Qoption ld ' |
||
8665 | lt_prog_compiler_pic='-PIC' |
||
8666 | lt_prog_compiler_static='-Bstatic' |
||
8667 | ;; |
||
8668 | |||
8669 | sysv4 | sysv4.2uw2* | sysv4.3*) |
||
8670 | lt_prog_compiler_wl='-Wl,' |
||
8671 | lt_prog_compiler_pic='-KPIC' |
||
8672 | lt_prog_compiler_static='-Bstatic' |
||
8673 | ;; |
||
8674 | |||
8675 | sysv4*MP*) |
||
8676 | if test -d /usr/nec; then |
||
8677 | lt_prog_compiler_pic='-Kconform_pic' |
||
8678 | lt_prog_compiler_static='-Bstatic' |
||
8679 | fi |
||
8680 | ;; |
||
8681 | |||
8682 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
||
8683 | lt_prog_compiler_wl='-Wl,' |
||
8684 | lt_prog_compiler_pic='-KPIC' |
||
8685 | lt_prog_compiler_static='-Bstatic' |
||
8686 | ;; |
||
8687 | |||
8688 | unicos*) |
||
8689 | lt_prog_compiler_wl='-Wl,' |
||
8690 | lt_prog_compiler_can_build_shared=no |
||
8691 | ;; |
||
8692 | |||
8693 | uts4*) |
||
8694 | lt_prog_compiler_pic='-pic' |
||
8695 | lt_prog_compiler_static='-Bstatic' |
||
8696 | ;; |
||
8697 | |||
8698 | *) |
||
8699 | lt_prog_compiler_can_build_shared=no |
||
8700 | ;; |
||
8701 | esac |
||
8702 | fi |
||
8703 | |||
8704 | case $host_os in |
||
8705 | # For platforms that do not support PIC, -DPIC is meaningless: |
||
8706 | *djgpp*) |
||
8707 | lt_prog_compiler_pic= |
||
8708 | ;; |
||
8709 | *) |
||
8710 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
||
8711 | ;; |
||
8712 | esac |
||
8713 | |||
8714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
||
8715 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
||
8716 | if ${lt_cv_prog_compiler_pic+:} false; then : |
||
8717 | $as_echo_n "(cached) " >&6 |
||
8718 | else |
||
8719 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
||
8720 | fi |
||
8721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
||
8722 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
||
8723 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
||
8724 | |||
8725 | # |
||
8726 | # Check to make sure the PIC flag actually works. |
||
8727 | # |
||
8728 | if test -n "$lt_prog_compiler_pic"; then |
||
8729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
||
8730 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
||
8731 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
||
8732 | $as_echo_n "(cached) " >&6 |
||
8733 | else |
||
8734 | lt_cv_prog_compiler_pic_works=no |
||
8735 | ac_outfile=conftest.$ac_objext |
||
8736 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
8737 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
||
8738 | # Insert the option either (1) after the last *FLAGS variable, or |
||
8739 | # (2) before a word containing "conftest.", or (3) at the end. |
||
8740 | # Note that $ac_compile itself does not contain backslashes and begins |
||
8741 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
8742 | # The option is referenced via a variable to avoid confusing sed. |
||
8743 | lt_compile=`echo "$ac_compile" | $SED \ |
||
8744 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
8745 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
8746 | -e 's:$: $lt_compiler_flag:'` |
||
8747 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
||
8748 | (eval "$lt_compile" 2>conftest.err) |
||
8749 | ac_status=$? |
||
8750 | cat conftest.err >&5 |
||
8751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8752 | if (exit $ac_status) && test -s "$ac_outfile"; then |
||
8753 | # The compiler can only warn and ignore the option if not recognized |
||
8754 | # So say no if there are warnings other than the usual output. |
||
8755 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
||
8756 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
8757 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
||
8758 | lt_cv_prog_compiler_pic_works=yes |
||
8759 | fi |
||
8760 | fi |
||
8761 | $RM conftest* |
||
8762 | |||
8763 | fi |
||
8764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
||
8765 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
||
8766 | |||
8767 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
||
8768 | case $lt_prog_compiler_pic in |
||
8769 | "" | " "*) ;; |
||
8770 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
||
8771 | esac |
||
8772 | else |
||
8773 | lt_prog_compiler_pic= |
||
8774 | lt_prog_compiler_can_build_shared=no |
||
8775 | fi |
||
8776 | |||
8777 | fi |
||
8778 | |||
8779 | |||
8780 | |||
8781 | |||
8782 | |||
8783 | |||
8784 | |||
8785 | |||
8786 | |||
8787 | |||
8788 | |||
8789 | # |
||
8790 | # Check to make sure the static flag actually works. |
||
8791 | # |
||
8792 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
||
8793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
||
8794 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
||
8795 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
||
8796 | $as_echo_n "(cached) " >&6 |
||
8797 | else |
||
8798 | lt_cv_prog_compiler_static_works=no |
||
8799 | save_LDFLAGS=$LDFLAGS |
||
8800 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
||
8801 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
||
8802 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
||
8803 | # The linker can only warn and ignore the option if not recognized |
||
8804 | # So say no if there are warnings |
||
8805 | if test -s conftest.err; then |
||
8806 | # Append any errors to the config.log. |
||
8807 | cat conftest.err 1>&5 |
||
8808 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
||
8809 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
8810 | if diff conftest.exp conftest.er2 >/dev/null; then |
||
8811 | lt_cv_prog_compiler_static_works=yes |
||
8812 | fi |
||
8813 | else |
||
8814 | lt_cv_prog_compiler_static_works=yes |
||
8815 | fi |
||
8816 | fi |
||
8817 | $RM -r conftest* |
||
8818 | LDFLAGS=$save_LDFLAGS |
||
8819 | |||
8820 | fi |
||
8821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
||
8822 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
||
8823 | |||
8824 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
||
8825 | : |
||
8826 | else |
||
8827 | lt_prog_compiler_static= |
||
8828 | fi |
||
8829 | |||
8830 | |||
8831 | |||
8832 | |||
8833 | |||
8834 | |||
8835 | |||
8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
||
8837 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
||
8838 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
||
8839 | $as_echo_n "(cached) " >&6 |
||
8840 | else |
||
8841 | lt_cv_prog_compiler_c_o=no |
||
8842 | $RM -r conftest 2>/dev/null |
||
8843 | mkdir conftest |
||
8844 | cd conftest |
||
8845 | mkdir out |
||
8846 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
8847 | |||
8848 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
||
8849 | # Insert the option either (1) after the last *FLAGS variable, or |
||
8850 | # (2) before a word containing "conftest.", or (3) at the end. |
||
8851 | # Note that $ac_compile itself does not contain backslashes and begins |
||
8852 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
8853 | lt_compile=`echo "$ac_compile" | $SED \ |
||
8854 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
8855 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
8856 | -e 's:$: $lt_compiler_flag:'` |
||
8857 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
||
8858 | (eval "$lt_compile" 2>out/conftest.err) |
||
8859 | ac_status=$? |
||
8860 | cat out/conftest.err >&5 |
||
8861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8862 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
||
8863 | then |
||
8864 | # The compiler can only warn and ignore the option if not recognized |
||
8865 | # So say no if there are warnings |
||
8866 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
||
8867 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
||
8868 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
||
8869 | lt_cv_prog_compiler_c_o=yes |
||
8870 | fi |
||
8871 | fi |
||
8872 | chmod u+w . 2>&5 |
||
8873 | $RM conftest* |
||
8874 | # SGI C++ compiler will create directory out/ii_files/ for |
||
8875 | # template instantiation |
||
8876 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
||
8877 | $RM out/* && rmdir out |
||
8878 | cd .. |
||
8879 | $RM -r conftest |
||
8880 | $RM conftest* |
||
8881 | |||
8882 | fi |
||
8883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
||
8884 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
||
8885 | |||
8886 | |||
8887 | |||
8888 | |||
8889 | |||
8890 | |||
8891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
||
8892 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
||
8893 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
||
8894 | $as_echo_n "(cached) " >&6 |
||
8895 | else |
||
8896 | lt_cv_prog_compiler_c_o=no |
||
8897 | $RM -r conftest 2>/dev/null |
||
8898 | mkdir conftest |
||
8899 | cd conftest |
||
8900 | mkdir out |
||
8901 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
8902 | |||
8903 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
||
8904 | # Insert the option either (1) after the last *FLAGS variable, or |
||
8905 | # (2) before a word containing "conftest.", or (3) at the end. |
||
8906 | # Note that $ac_compile itself does not contain backslashes and begins |
||
8907 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
8908 | lt_compile=`echo "$ac_compile" | $SED \ |
||
8909 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
8910 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
8911 | -e 's:$: $lt_compiler_flag:'` |
||
8912 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
||
8913 | (eval "$lt_compile" 2>out/conftest.err) |
||
8914 | ac_status=$? |
||
8915 | cat out/conftest.err >&5 |
||
8916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8917 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
||
8918 | then |
||
8919 | # The compiler can only warn and ignore the option if not recognized |
||
8920 | # So say no if there are warnings |
||
8921 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
||
8922 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
||
8923 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
||
8924 | lt_cv_prog_compiler_c_o=yes |
||
8925 | fi |
||
8926 | fi |
||
8927 | chmod u+w . 2>&5 |
||
8928 | $RM conftest* |
||
8929 | # SGI C++ compiler will create directory out/ii_files/ for |
||
8930 | # template instantiation |
||
8931 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
||
8932 | $RM out/* && rmdir out |
||
8933 | cd .. |
||
8934 | $RM -r conftest |
||
8935 | $RM conftest* |
||
8936 | |||
8937 | fi |
||
8938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
||
8939 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
||
8940 | |||
8941 | |||
8942 | |||
8943 | |||
8944 | hard_links=nottested |
||
8945 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
||
8946 | # do not overwrite the value of need_locks provided by the user |
||
8947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
||
8948 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
||
8949 | hard_links=yes |
||
8950 | $RM conftest* |
||
8951 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
8952 | touch conftest.a |
||
8953 | ln conftest.a conftest.b 2>&5 || hard_links=no |
||
8954 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
8955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
||
8956 | $as_echo "$hard_links" >&6; } |
||
8957 | if test no = "$hard_links"; then |
||
8958 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
||
8959 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
||
8960 | need_locks=warn |
||
8961 | fi |
||
8962 | else |
||
8963 | need_locks=no |
||
8964 | fi |
||
8965 | |||
8966 | |||
8967 | |||
8968 | |||
8969 | |||
8970 | |||
8971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
||
8972 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
||
8973 | |||
8974 | runpath_var= |
||
8975 | allow_undefined_flag= |
||
8976 | always_export_symbols=no |
||
8977 | archive_cmds= |
||
8978 | archive_expsym_cmds= |
||
8979 | compiler_needs_object=no |
||
8980 | enable_shared_with_static_runtimes=no |
||
8981 | export_dynamic_flag_spec= |
||
8982 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
||
8983 | hardcode_automatic=no |
||
8984 | hardcode_direct=no |
||
8985 | hardcode_direct_absolute=no |
||
8986 | hardcode_libdir_flag_spec= |
||
8987 | hardcode_libdir_separator= |
||
8988 | hardcode_minus_L=no |
||
8989 | hardcode_shlibpath_var=unsupported |
||
8990 | inherit_rpath=no |
||
8991 | link_all_deplibs=unknown |
||
8992 | module_cmds= |
||
8993 | module_expsym_cmds= |
||
8994 | old_archive_from_new_cmds= |
||
8995 | old_archive_from_expsyms_cmds= |
||
8996 | thread_safe_flag_spec= |
||
8997 | whole_archive_flag_spec= |
||
8998 | # include_expsyms should be a list of space-separated symbols to be *always* |
||
8999 | # included in the symbol list |
||
9000 | include_expsyms= |
||
9001 | # exclude_expsyms can be an extended regexp of symbols to exclude |
||
9002 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
||
9003 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
||
9004 | # as well as any symbol that contains 'd'. |
||
9005 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
||
9006 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
||
9007 | # platforms (ab)use it in PIC code, but their linkers get confused if |
||
9008 | # the symbol is explicitly referenced. Since portable code cannot |
||
9009 | # rely on this symbol name, it's probably fine to never include it in |
||
9010 | # preloaded symbol tables. |
||
9011 | # Exclude shared library initialization/finalization symbols. |
||
9012 | extract_expsyms_cmds= |
||
9013 | |||
9014 | case $host_os in |
||
7 | mjames | 9015 | cygwin* | mingw* | pw32* | cegcc*) |
2 | mjames | 9016 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
9017 | # When not using gcc, we currently assume that we are using |
||
9018 | # Microsoft Visual C++. |
||
9019 | if test yes != "$GCC"; then |
||
9020 | with_gnu_ld=no |
||
9021 | fi |
||
9022 | ;; |
||
9023 | interix*) |
||
9024 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
||
9025 | with_gnu_ld=yes |
||
9026 | ;; |
||
9027 | openbsd* | bitrig*) |
||
9028 | with_gnu_ld=no |
||
9029 | ;; |
||
7 | mjames | 9030 | linux* | k*bsd*-gnu | gnu*) |
9031 | link_all_deplibs=no |
||
9032 | ;; |
||
2 | mjames | 9033 | esac |
9034 | |||
9035 | ld_shlibs=yes |
||
9036 | |||
9037 | # On some targets, GNU ld is compatible enough with the native linker |
||
9038 | # that we're better off using the native interface for both. |
||
9039 | lt_use_gnu_ld_interface=no |
||
9040 | if test yes = "$with_gnu_ld"; then |
||
9041 | case $host_os in |
||
9042 | aix*) |
||
9043 | # The AIX port of GNU ld has always aspired to compatibility |
||
9044 | # with the native linker. However, as the warning in the GNU ld |
||
9045 | # block says, versions before 2.19.5* couldn't really create working |
||
9046 | # shared libraries, regardless of the interface used. |
||
9047 | case `$LD -v 2>&1` in |
||
9048 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
||
9049 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
||
9050 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
||
9051 | *) |
||
9052 | lt_use_gnu_ld_interface=yes |
||
9053 | ;; |
||
9054 | esac |
||
9055 | ;; |
||
9056 | *) |
||
9057 | lt_use_gnu_ld_interface=yes |
||
9058 | ;; |
||
9059 | esac |
||
9060 | fi |
||
9061 | |||
9062 | if test yes = "$lt_use_gnu_ld_interface"; then |
||
9063 | # If archive_cmds runs LD, not CC, wlarc should be empty |
||
9064 | wlarc='$wl' |
||
9065 | |||
9066 | # Set some defaults for GNU ld with shared library support. These |
||
9067 | # are reset later if shared libraries are not supported. Putting them |
||
9068 | # here allows them to be overridden if necessary. |
||
9069 | runpath_var=LD_RUN_PATH |
||
9070 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
||
9071 | export_dynamic_flag_spec='$wl--export-dynamic' |
||
9072 | # ancient GNU ld didn't support --whole-archive et. al. |
||
9073 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
||
9074 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
||
9075 | else |
||
9076 | whole_archive_flag_spec= |
||
9077 | fi |
||
9078 | supports_anon_versioning=no |
||
9079 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
||
9080 | *GNU\ gold*) supports_anon_versioning=yes ;; |
||
9081 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
||
9082 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
||
9083 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
||
9084 | *\ 2.11.*) ;; # other 2.11 versions |
||
9085 | *) supports_anon_versioning=yes ;; |
||
9086 | esac |
||
9087 | |||
9088 | # See if GNU ld supports shared libraries. |
||
9089 | case $host_os in |
||
9090 | aix[3-9]*) |
||
9091 | # On AIX/PPC, the GNU linker is very broken |
||
9092 | if test ia64 != "$host_cpu"; then |
||
9093 | ld_shlibs=no |
||
9094 | cat <<_LT_EOF 1>&2 |
||
9095 | |||
9096 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
||
9097 | *** to be unable to reliably create shared libraries on AIX. |
||
9098 | *** Therefore, libtool is disabling shared libraries support. If you |
||
9099 | *** really care for shared libraries, you may want to install binutils |
||
9100 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
||
9101 | *** You will then need to restart the configuration process. |
||
9102 | |||
9103 | _LT_EOF |
||
9104 | fi |
||
9105 | ;; |
||
9106 | |||
9107 | amigaos*) |
||
9108 | case $host_cpu in |
||
9109 | powerpc) |
||
9110 | # see comment about AmigaOS4 .so support |
||
9111 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
9112 | archive_expsym_cmds='' |
||
9113 | ;; |
||
9114 | m68k) |
||
9115 | 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)' |
||
9116 | hardcode_libdir_flag_spec='-L$libdir' |
||
9117 | hardcode_minus_L=yes |
||
9118 | ;; |
||
9119 | esac |
||
9120 | ;; |
||
9121 | |||
9122 | beos*) |
||
9123 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
||
9124 | allow_undefined_flag=unsupported |
||
9125 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
||
9126 | # support --undefined. This deserves some investigation. FIXME |
||
9127 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
9128 | else |
||
9129 | ld_shlibs=no |
||
9130 | fi |
||
9131 | ;; |
||
9132 | |||
7 | mjames | 9133 | cygwin* | mingw* | pw32* | cegcc*) |
2 | mjames | 9134 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9135 | # as there is no search path for DLLs. |
||
9136 | hardcode_libdir_flag_spec='-L$libdir' |
||
9137 | export_dynamic_flag_spec='$wl--export-all-symbols' |
||
9138 | allow_undefined_flag=unsupported |
||
9139 | always_export_symbols=no |
||
9140 | enable_shared_with_static_runtimes=yes |
||
9141 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
||
9142 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
||
9143 | |||
9144 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
||
9145 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
||
9146 | # If the export-symbols file already is a .def file, use it as |
||
9147 | # is; otherwise, prepend EXPORTS... |
||
9148 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
||
9149 | cp $export_symbols $output_objdir/$soname.def; |
||
9150 | else |
||
9151 | echo EXPORTS > $output_objdir/$soname.def; |
||
9152 | cat $export_symbols >> $output_objdir/$soname.def; |
||
9153 | fi~ |
||
9154 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
||
9155 | else |
||
9156 | ld_shlibs=no |
||
9157 | fi |
||
9158 | ;; |
||
9159 | |||
9160 | haiku*) |
||
9161 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
9162 | link_all_deplibs=yes |
||
9163 | ;; |
||
9164 | |||
9165 | os2*) |
||
9166 | hardcode_libdir_flag_spec='-L$libdir' |
||
9167 | hardcode_minus_L=yes |
||
9168 | allow_undefined_flag=unsupported |
||
9169 | shrext_cmds=.dll |
||
9170 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
||
9171 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
||
9172 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
||
9173 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
||
9174 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
||
9175 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
||
9176 | emximp -o $lib $output_objdir/$libname.def' |
||
9177 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
||
9178 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
||
9179 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
||
9180 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
||
9181 | prefix_cmds="$SED"~ |
||
9182 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
||
9183 | prefix_cmds="$prefix_cmds -e 1d"; |
||
9184 | fi~ |
||
9185 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
||
9186 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
||
9187 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
||
9188 | emximp -o $lib $output_objdir/$libname.def' |
||
9189 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
||
9190 | enable_shared_with_static_runtimes=yes |
||
9191 | ;; |
||
9192 | |||
9193 | interix[3-9]*) |
||
9194 | hardcode_direct=no |
||
9195 | hardcode_shlibpath_var=no |
||
9196 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
||
9197 | export_dynamic_flag_spec='$wl-E' |
||
9198 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
||
9199 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
||
9200 | # default) and relocated if they conflict, which is a slow very memory |
||
9201 | # consuming and fragmenting process. To avoid this, we pick a random, |
||
9202 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
||
9203 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
||
9204 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
||
9205 | 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' |
||
9206 | ;; |
||
9207 | |||
9208 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
||
9209 | tmp_diet=no |
||
9210 | if test linux-dietlibc = "$host_os"; then |
||
9211 | case $cc_basename in |
||
9212 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
||
9213 | esac |
||
9214 | fi |
||
9215 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
||
9216 | && test no = "$tmp_diet" |
||
9217 | then |
||
9218 | tmp_addflag=' $pic_flag' |
||
9219 | tmp_sharedflag='-shared' |
||
9220 | case $cc_basename,$host_cpu in |
||
9221 | pgcc*) # Portland Group C compiler |
||
9222 | 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' |
||
9223 | tmp_addflag=' $pic_flag' |
||
9224 | ;; |
||
9225 | pgf77* | pgf90* | pgf95* | pgfortran*) |
||
9226 | # Portland Group f77 and f90 compilers |
||
9227 | 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' |
||
9228 | tmp_addflag=' $pic_flag -Mnomain' ;; |
||
9229 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
||
9230 | tmp_addflag=' -i_dynamic' ;; |
||
9231 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
||
9232 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
||
9233 | ifc* | ifort*) # Intel Fortran compiler |
||
9234 | tmp_addflag=' -nofor_main' ;; |
||
9235 | lf95*) # Lahey Fortran 8.1 |
||
9236 | whole_archive_flag_spec= |
||
9237 | tmp_sharedflag='--shared' ;; |
||
9238 | nagfor*) # NAGFOR 5.3 |
||
9239 | tmp_sharedflag='-Wl,-shared' ;; |
||
9240 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
||
9241 | tmp_sharedflag='-qmkshrobj' |
||
9242 | tmp_addflag= ;; |
||
9243 | nvcc*) # Cuda Compiler Driver 2.2 |
||
9244 | 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' |
||
9245 | compiler_needs_object=yes |
||
9246 | ;; |
||
9247 | esac |
||
9248 | case `$CC -V 2>&1 | sed 5q` in |
||
9249 | *Sun\ C*) # Sun C 5.9 |
||
9250 | 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' |
||
9251 | compiler_needs_object=yes |
||
9252 | tmp_sharedflag='-G' ;; |
||
9253 | *Sun\ F*) # Sun Fortran 8.3 |
||
9254 | tmp_sharedflag='-G' ;; |
||
9255 | esac |
||
9256 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
9257 | |||
9258 | if test yes = "$supports_anon_versioning"; then |
||
9259 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
||
9260 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
||
9261 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
||
9262 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
||
9263 | fi |
||
9264 | |||
9265 | case $cc_basename in |
||
9266 | tcc*) |
||
9267 | export_dynamic_flag_spec='-rdynamic' |
||
9268 | ;; |
||
9269 | xlf* | bgf* | bgxlf* | mpixlf*) |
||
9270 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
||
9271 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
||
9272 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
||
9273 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
||
9274 | if test yes = "$supports_anon_versioning"; then |
||
9275 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
||
9276 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
||
9277 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
||
9278 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
||
9279 | fi |
||
9280 | ;; |
||
9281 | esac |
||
9282 | else |
||
9283 | ld_shlibs=no |
||
9284 | fi |
||
9285 | ;; |
||
9286 | |||
7 | mjames | 9287 | netbsd* | netbsdelf*-gnu) |
2 | mjames | 9288 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9289 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
||
9290 | wlarc= |
||
9291 | else |
||
9292 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
9293 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
||
9294 | fi |
||
9295 | ;; |
||
9296 | |||
9297 | solaris*) |
||
9298 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
||
9299 | ld_shlibs=no |
||
9300 | cat <<_LT_EOF 1>&2 |
||
9301 | |||
9302 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
||
9303 | *** create shared libraries on Solaris systems. Therefore, libtool |
||
9304 | *** is disabling shared libraries support. We urge you to upgrade GNU |
||
9305 | *** binutils to release 2.9.1 or newer. Another option is to modify |
||
9306 | *** your PATH or compiler configuration so that the native linker is |
||
9307 | *** used, and then restart. |
||
9308 | |||
9309 | _LT_EOF |
||
9310 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
||
9311 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
9312 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
||
9313 | else |
||
9314 | ld_shlibs=no |
||
9315 | fi |
||
9316 | ;; |
||
9317 | |||
9318 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
||
9319 | case `$LD -v 2>&1` in |
||
9320 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
||
9321 | ld_shlibs=no |
||
9322 | cat <<_LT_EOF 1>&2 |
||
9323 | |||
9324 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
||
9325 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
||
9326 | *** is disabling shared libraries support. We urge you to upgrade GNU |
||
9327 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
||
9328 | *** your PATH or compiler configuration so that the native linker is |
||
9329 | *** used, and then restart. |
||
9330 | |||
9331 | _LT_EOF |
||
9332 | ;; |
||
9333 | *) |
||
9334 | # For security reasons, it is highly recommended that you always |
||
9335 | # use absolute paths for naming shared libraries, and exclude the |
||
9336 | # DT_RUNPATH tag from executables and libraries. But doing so |
||
9337 | # requires that you compile everything twice, which is a pain. |
||
9338 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
||
9339 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
||
9340 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
9341 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
||
9342 | else |
||
9343 | ld_shlibs=no |
||
9344 | fi |
||
9345 | ;; |
||
9346 | esac |
||
9347 | ;; |
||
9348 | |||
9349 | sunos4*) |
||
9350 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
||
9351 | wlarc= |
||
9352 | hardcode_direct=yes |
||
9353 | hardcode_shlibpath_var=no |
||
9354 | ;; |
||
9355 | |||
9356 | *) |
||
9357 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
||
9358 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
9359 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
||
9360 | else |
||
9361 | ld_shlibs=no |
||
9362 | fi |
||
9363 | ;; |
||
9364 | esac |
||
9365 | |||
9366 | if test no = "$ld_shlibs"; then |
||
9367 | runpath_var= |
||
9368 | hardcode_libdir_flag_spec= |
||
9369 | export_dynamic_flag_spec= |
||
9370 | whole_archive_flag_spec= |
||
9371 | fi |
||
9372 | else |
||
9373 | # PORTME fill in a description of your system's linker (not GNU ld) |
||
9374 | case $host_os in |
||
9375 | aix3*) |
||
9376 | allow_undefined_flag=unsupported |
||
9377 | always_export_symbols=yes |
||
9378 | 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' |
||
9379 | # Note: this linker hardcodes the directories in LIBPATH if there |
||
9380 | # are no directories specified by -L. |
||
9381 | hardcode_minus_L=yes |
||
9382 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
||
9383 | # Neither direct hardcoding nor static linking is supported with a |
||
9384 | # broken collect2. |
||
9385 | hardcode_direct=unsupported |
||
9386 | fi |
||
9387 | ;; |
||
9388 | |||
9389 | aix[4-9]*) |
||
9390 | if test ia64 = "$host_cpu"; then |
||
9391 | # On IA64, the linker does run time linking by default, so we don't |
||
9392 | # have to do anything special. |
||
9393 | aix_use_runtimelinking=no |
||
9394 | exp_sym_flag='-Bexport' |
||
9395 | no_entry_flag= |
||
9396 | else |
||
9397 | # If we're using GNU nm, then we don't want the "-C" option. |
||
9398 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
||
9399 | # Without the "-l" option, or with the "-B" option, AIX nm treats |
||
9400 | # weak defined symbols like other global defined symbols, whereas |
||
9401 | # GNU nm marks them as "W". |
||
9402 | # While the 'weak' keyword is ignored in the Export File, we need |
||
9403 | # it in the Import File for the 'aix-soname' feature, so we have |
||
9404 | # to replace the "-B" option with "-P" for AIX nm. |
||
9405 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
||
9406 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
||
9407 | else |
||
9408 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
||
9409 | fi |
||
9410 | aix_use_runtimelinking=no |
||
9411 | |||
9412 | # Test if we are trying to use run time linking or normal |
||
9413 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
||
9414 | # have runtime linking enabled, and use it for executables. |
||
9415 | # For shared libraries, we enable/disable runtime linking |
||
9416 | # depending on the kind of the shared library created - |
||
9417 | # when "with_aix_soname,aix_use_runtimelinking" is: |
||
9418 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
||
9419 | # "aix,yes" lib.so shared, rtl:yes, for executables |
||
9420 | # lib.a static archive |
||
9421 | # "both,no" lib.so.V(shr.o) shared, rtl:yes |
||
9422 | # lib.a(lib.so.V) shared, rtl:no, for executables |
||
9423 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
||
9424 | # lib.a(lib.so.V) shared, rtl:no |
||
9425 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
||
9426 | # lib.a static archive |
||
9427 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
||
9428 | for ld_flag in $LDFLAGS; do |
||
9429 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
||
9430 | aix_use_runtimelinking=yes |
||
9431 | break |
||
9432 | fi |
||
9433 | done |
||
9434 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
||
9435 | # With aix-soname=svr4, we create the lib.so.V shared archives only, |
||
9436 | # so we don't have lib.a shared libs to link our executables. |
||
9437 | # We have to force runtime linking in this case. |
||
9438 | aix_use_runtimelinking=yes |
||
9439 | LDFLAGS="$LDFLAGS -Wl,-brtl" |
||
9440 | fi |
||
9441 | ;; |
||
9442 | esac |
||
9443 | |||
9444 | exp_sym_flag='-bexport' |
||
9445 | no_entry_flag='-bnoentry' |
||
9446 | fi |
||
9447 | |||
9448 | # When large executables or shared objects are built, AIX ld can |
||
9449 | # have problems creating the table of contents. If linking a library |
||
9450 | # or program results in "error TOC overflow" add -mminimal-toc to |
||
9451 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
||
9452 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
||
9453 | |||
9454 | archive_cmds='' |
||
9455 | hardcode_direct=yes |
||
9456 | hardcode_direct_absolute=yes |
||
9457 | hardcode_libdir_separator=':' |
||
9458 | link_all_deplibs=yes |
||
9459 | file_list_spec='$wl-f,' |
||
9460 | case $with_aix_soname,$aix_use_runtimelinking in |
||
9461 | aix,*) ;; # traditional, no import file |
||
9462 | svr4,* | *,yes) # use import file |
||
9463 | # The Import File defines what to hardcode. |
||
9464 | hardcode_direct=no |
||
9465 | hardcode_direct_absolute=no |
||
9466 | ;; |
||
9467 | esac |
||
9468 | |||
9469 | if test yes = "$GCC"; then |
||
9470 | case $host_os in aix4.[012]|aix4.[012].*) |
||
9471 | # We only want to do this on AIX 4.2 and lower, the check |
||
9472 | # below for broken collect2 doesn't work under 4.3+ |
||
9473 | collect2name=`$CC -print-prog-name=collect2` |
||
9474 | if test -f "$collect2name" && |
||
9475 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
||
9476 | then |
||
9477 | # We have reworked collect2 |
||
9478 | : |
||
9479 | else |
||
9480 | # We have old collect2 |
||
9481 | hardcode_direct=unsupported |
||
9482 | # It fails to find uninstalled libraries when the uninstalled |
||
9483 | # path is not listed in the libpath. Setting hardcode_minus_L |
||
9484 | # to unsupported forces relinking |
||
9485 | hardcode_minus_L=yes |
||
9486 | hardcode_libdir_flag_spec='-L$libdir' |
||
9487 | hardcode_libdir_separator= |
||
9488 | fi |
||
9489 | ;; |
||
9490 | esac |
||
9491 | shared_flag='-shared' |
||
9492 | if test yes = "$aix_use_runtimelinking"; then |
||
9493 | shared_flag="$shared_flag "'$wl-G' |
||
9494 | fi |
||
9495 | # Need to ensure runtime linking is disabled for the traditional |
||
9496 | # shared library, or the linker may eventually find shared libraries |
||
9497 | # /with/ Import File - we do not want to mix them. |
||
9498 | shared_flag_aix='-shared' |
||
9499 | shared_flag_svr4='-shared $wl-G' |
||
9500 | else |
||
9501 | # not using gcc |
||
9502 | if test ia64 = "$host_cpu"; then |
||
9503 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
||
9504 | # chokes on -Wl,-G. The following line is correct: |
||
9505 | shared_flag='-G' |
||
9506 | else |
||
9507 | if test yes = "$aix_use_runtimelinking"; then |
||
9508 | shared_flag='$wl-G' |
||
9509 | else |
||
9510 | shared_flag='$wl-bM:SRE' |
||
9511 | fi |
||
9512 | shared_flag_aix='$wl-bM:SRE' |
||
9513 | shared_flag_svr4='$wl-G' |
||
9514 | fi |
||
9515 | fi |
||
9516 | |||
9517 | export_dynamic_flag_spec='$wl-bexpall' |
||
9518 | # It seems that -bexpall does not export symbols beginning with |
||
9519 | # underscore (_), so it is better to generate a list of symbols to export. |
||
9520 | always_export_symbols=yes |
||
9521 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
||
9522 | # Warning - without using the other runtime loading flags (-brtl), |
||
9523 | # -berok will link without error, but may produce a broken library. |
||
9524 | allow_undefined_flag='-berok' |
||
9525 | # Determine the default libpath from the value encoded in an |
||
9526 | # empty executable. |
||
9527 | if test set = "${lt_cv_aix_libpath+set}"; then |
||
9528 | aix_libpath=$lt_cv_aix_libpath |
||
9529 | else |
||
9530 | if ${lt_cv_aix_libpath_+:} false; then : |
||
9531 | $as_echo_n "(cached) " >&6 |
||
9532 | else |
||
9533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
9534 | /* end confdefs.h. */ |
||
9535 | |||
9536 | int |
||
9537 | main () |
||
9538 | { |
||
9539 | |||
9540 | ; |
||
9541 | return 0; |
||
9542 | } |
||
9543 | _ACEOF |
||
9544 | if ac_fn_c_try_link "$LINENO"; then : |
||
9545 | |||
9546 | lt_aix_libpath_sed=' |
||
9547 | /Import File Strings/,/^$/ { |
||
9548 | /^0/ { |
||
9549 | s/^0 *\([^ ]*\) *$/\1/ |
||
9550 | p |
||
9551 | } |
||
9552 | }' |
||
9553 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
9554 | # Check for a 64-bit object if we didn't find anything. |
||
9555 | if test -z "$lt_cv_aix_libpath_"; then |
||
9556 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
9557 | fi |
||
9558 | fi |
||
9559 | rm -f core conftest.err conftest.$ac_objext \ |
||
9560 | conftest$ac_exeext conftest.$ac_ext |
||
9561 | if test -z "$lt_cv_aix_libpath_"; then |
||
9562 | lt_cv_aix_libpath_=/usr/lib:/lib |
||
9563 | fi |
||
9564 | |||
9565 | fi |
||
9566 | |||
9567 | aix_libpath=$lt_cv_aix_libpath_ |
||
9568 | fi |
||
9569 | |||
9570 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
||
9571 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
||
9572 | else |
||
9573 | if test ia64 = "$host_cpu"; then |
||
9574 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
||
9575 | allow_undefined_flag="-z nodefs" |
||
9576 | 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" |
||
9577 | else |
||
9578 | # Determine the default libpath from the value encoded in an |
||
9579 | # empty executable. |
||
9580 | if test set = "${lt_cv_aix_libpath+set}"; then |
||
9581 | aix_libpath=$lt_cv_aix_libpath |
||
9582 | else |
||
9583 | if ${lt_cv_aix_libpath_+:} false; then : |
||
9584 | $as_echo_n "(cached) " >&6 |
||
9585 | else |
||
9586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
9587 | /* end confdefs.h. */ |
||
9588 | |||
9589 | int |
||
9590 | main () |
||
9591 | { |
||
9592 | |||
9593 | ; |
||
9594 | return 0; |
||
9595 | } |
||
9596 | _ACEOF |
||
9597 | if ac_fn_c_try_link "$LINENO"; then : |
||
9598 | |||
9599 | lt_aix_libpath_sed=' |
||
9600 | /Import File Strings/,/^$/ { |
||
9601 | /^0/ { |
||
9602 | s/^0 *\([^ ]*\) *$/\1/ |
||
9603 | p |
||
9604 | } |
||
9605 | }' |
||
9606 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
9607 | # Check for a 64-bit object if we didn't find anything. |
||
9608 | if test -z "$lt_cv_aix_libpath_"; then |
||
9609 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
9610 | fi |
||
9611 | fi |
||
9612 | rm -f core conftest.err conftest.$ac_objext \ |
||
9613 | conftest$ac_exeext conftest.$ac_ext |
||
9614 | if test -z "$lt_cv_aix_libpath_"; then |
||
9615 | lt_cv_aix_libpath_=/usr/lib:/lib |
||
9616 | fi |
||
9617 | |||
9618 | fi |
||
9619 | |||
9620 | aix_libpath=$lt_cv_aix_libpath_ |
||
9621 | fi |
||
9622 | |||
9623 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
||
9624 | # Warning - without using the other run time loading flags, |
||
9625 | # -berok will link without error, but may produce a broken library. |
||
9626 | no_undefined_flag=' $wl-bernotok' |
||
9627 | allow_undefined_flag=' $wl-berok' |
||
9628 | if test yes = "$with_gnu_ld"; then |
||
9629 | # We only use this code for GNU lds that support --whole-archive. |
||
9630 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
||
9631 | else |
||
9632 | # Exported symbols can be pulled into shared objects from archives |
||
9633 | whole_archive_flag_spec='$convenience' |
||
9634 | fi |
||
9635 | archive_cmds_need_lc=yes |
||
9636 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
||
9637 | # -brtl affects multiple linker settings, -berok does not and is overridden later |
||
9638 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
||
9639 | if test svr4 != "$with_aix_soname"; then |
||
9640 | # This is similar to how AIX traditionally builds its shared libraries. |
||
9641 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' |
||
9642 | fi |
||
9643 | if test aix != "$with_aix_soname"; then |
||
9644 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' |
||
9645 | else |
||
9646 | # used by -dlpreopen to get the symbols |
||
9647 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
||
9648 | fi |
||
9649 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
||
9650 | fi |
||
9651 | fi |
||
9652 | ;; |
||
9653 | |||
9654 | amigaos*) |
||
9655 | case $host_cpu in |
||
9656 | powerpc) |
||
9657 | # see comment about AmigaOS4 .so support |
||
9658 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
9659 | archive_expsym_cmds='' |
||
9660 | ;; |
||
9661 | m68k) |
||
9662 | 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)' |
||
9663 | hardcode_libdir_flag_spec='-L$libdir' |
||
9664 | hardcode_minus_L=yes |
||
9665 | ;; |
||
9666 | esac |
||
9667 | ;; |
||
9668 | |||
9669 | bsdi[45]*) |
||
9670 | export_dynamic_flag_spec=-rdynamic |
||
9671 | ;; |
||
9672 | |||
7 | mjames | 9673 | cygwin* | mingw* | pw32* | cegcc*) |
2 | mjames | 9674 | # When not using gcc, we currently assume that we are using |
9675 | # Microsoft Visual C++. |
||
9676 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
||
9677 | # no search path for DLLs. |
||
9678 | case $cc_basename in |
||
9679 | cl*) |
||
9680 | # Native MSVC |
||
9681 | hardcode_libdir_flag_spec=' ' |
||
9682 | allow_undefined_flag=unsupported |
||
9683 | always_export_symbols=yes |
||
9684 | file_list_spec='@' |
||
9685 | # Tell ltmain to make .lib files, not .a files. |
||
9686 | libext=lib |
||
9687 | # Tell ltmain to make .dll files, not .so files. |
||
9688 | shrext_cmds=.dll |
||
9689 | # FIXME: Setting linknames here is a bad hack. |
||
9690 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
||
9691 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
||
9692 | cp "$export_symbols" "$output_objdir/$soname.def"; |
||
9693 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
||
9694 | else |
||
9695 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
||
9696 | fi~ |
||
9697 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
||
9698 | linknames=' |
||
9699 | # The linker will not automatically build a static lib if we build a DLL. |
||
9700 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
||
9701 | enable_shared_with_static_runtimes=yes |
||
9702 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
||
9703 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
||
9704 | # Don't use ranlib |
||
9705 | old_postinstall_cmds='chmod 644 $oldlib' |
||
9706 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
||
9707 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
||
9708 | case $lt_outputfile in |
||
9709 | *.exe|*.EXE) ;; |
||
9710 | *) |
||
9711 | lt_outputfile=$lt_outputfile.exe |
||
9712 | lt_tool_outputfile=$lt_tool_outputfile.exe |
||
9713 | ;; |
||
9714 | esac~ |
||
9715 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
||
9716 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
||
9717 | $RM "$lt_outputfile.manifest"; |
||
9718 | fi' |
||
9719 | ;; |
||
9720 | *) |
||
9721 | # Assume MSVC wrapper |
||
9722 | hardcode_libdir_flag_spec=' ' |
||
9723 | allow_undefined_flag=unsupported |
||
9724 | # Tell ltmain to make .lib files, not .a files. |
||
9725 | libext=lib |
||
9726 | # Tell ltmain to make .dll files, not .so files. |
||
9727 | shrext_cmds=.dll |
||
9728 | # FIXME: Setting linknames here is a bad hack. |
||
9729 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
||
9730 | # The linker will automatically build a .lib file if we build a DLL. |
||
9731 | old_archive_from_new_cmds='true' |
||
9732 | # FIXME: Should let the user specify the lib program. |
||
9733 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
||
9734 | enable_shared_with_static_runtimes=yes |
||
9735 | ;; |
||
9736 | esac |
||
9737 | ;; |
||
9738 | |||
9739 | darwin* | rhapsody*) |
||
9740 | |||
9741 | |||
9742 | archive_cmds_need_lc=no |
||
9743 | hardcode_direct=no |
||
9744 | hardcode_automatic=yes |
||
9745 | hardcode_shlibpath_var=unsupported |
||
9746 | if test yes = "$lt_cv_ld_force_load"; then |
||
9747 | 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\"`' |
||
9748 | |||
9749 | else |
||
9750 | whole_archive_flag_spec='' |
||
9751 | fi |
||
9752 | link_all_deplibs=yes |
||
9753 | allow_undefined_flag=$_lt_dar_allow_undefined |
||
9754 | case $cc_basename in |
||
9755 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
||
9756 | *) _lt_dar_can_shared=$GCC ;; |
||
9757 | esac |
||
9758 | if test yes = "$_lt_dar_can_shared"; then |
||
9759 | output_verbose_link_cmd=func_echo_all |
||
9760 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
||
9761 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
||
9762 | 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" |
||
9763 | 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" |
||
9764 | |||
9765 | else |
||
9766 | ld_shlibs=no |
||
9767 | fi |
||
9768 | |||
9769 | ;; |
||
9770 | |||
9771 | dgux*) |
||
9772 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
9773 | hardcode_libdir_flag_spec='-L$libdir' |
||
9774 | hardcode_shlibpath_var=no |
||
9775 | ;; |
||
9776 | |||
9777 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
||
9778 | # support. Future versions do this automatically, but an explicit c++rt0.o |
||
9779 | # does not break anything, and helps significantly (at the cost of a little |
||
9780 | # extra space). |
||
9781 | freebsd2.2*) |
||
9782 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
||
9783 | hardcode_libdir_flag_spec='-R$libdir' |
||
9784 | hardcode_direct=yes |
||
9785 | hardcode_shlibpath_var=no |
||
9786 | ;; |
||
9787 | |||
9788 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
||
9789 | freebsd2.*) |
||
9790 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
||
9791 | hardcode_direct=yes |
||
9792 | hardcode_minus_L=yes |
||
9793 | hardcode_shlibpath_var=no |
||
9794 | ;; |
||
9795 | |||
9796 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
||
9797 | freebsd* | dragonfly*) |
||
9798 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
||
9799 | hardcode_libdir_flag_spec='-R$libdir' |
||
9800 | hardcode_direct=yes |
||
9801 | hardcode_shlibpath_var=no |
||
9802 | ;; |
||
9803 | |||
9804 | hpux9*) |
||
9805 | if test yes = "$GCC"; then |
||
9806 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
||
9807 | else |
||
9808 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
||
9809 | fi |
||
9810 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
||
9811 | hardcode_libdir_separator=: |
||
9812 | hardcode_direct=yes |
||
9813 | |||
9814 | # hardcode_minus_L: Not really in the search PATH, |
||
9815 | # but as the default location of the library. |
||
9816 | hardcode_minus_L=yes |
||
9817 | export_dynamic_flag_spec='$wl-E' |
||
9818 | ;; |
||
9819 | |||
9820 | hpux10*) |
||
9821 | if test yes,no = "$GCC,$with_gnu_ld"; then |
||
9822 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
9823 | else |
||
9824 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
||
9825 | fi |
||
9826 | if test no = "$with_gnu_ld"; then |
||
9827 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
||
9828 | hardcode_libdir_separator=: |
||
9829 | hardcode_direct=yes |
||
9830 | hardcode_direct_absolute=yes |
||
9831 | export_dynamic_flag_spec='$wl-E' |
||
9832 | # hardcode_minus_L: Not really in the search PATH, |
||
9833 | # but as the default location of the library. |
||
9834 | hardcode_minus_L=yes |
||
9835 | fi |
||
9836 | ;; |
||
9837 | |||
9838 | hpux11*) |
||
9839 | if test yes,no = "$GCC,$with_gnu_ld"; then |
||
9840 | case $host_cpu in |
||
9841 | hppa*64*) |
||
9842 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
9843 | ;; |
||
9844 | ia64*) |
||
9845 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
||
9846 | ;; |
||
9847 | *) |
||
9848 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
9849 | ;; |
||
9850 | esac |
||
9851 | else |
||
9852 | case $host_cpu in |
||
9853 | hppa*64*) |
||
9854 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
9855 | ;; |
||
9856 | ia64*) |
||
9857 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
||
9858 | ;; |
||
9859 | *) |
||
9860 | |||
9861 | # Older versions of the 11.00 compiler do not understand -b yet |
||
9862 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
||
9863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
||
9864 | $as_echo_n "checking if $CC understands -b... " >&6; } |
||
9865 | if ${lt_cv_prog_compiler__b+:} false; then : |
||
9866 | $as_echo_n "(cached) " >&6 |
||
9867 | else |
||
9868 | lt_cv_prog_compiler__b=no |
||
9869 | save_LDFLAGS=$LDFLAGS |
||
9870 | LDFLAGS="$LDFLAGS -b" |
||
9871 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
||
9872 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
||
9873 | # The linker can only warn and ignore the option if not recognized |
||
9874 | # So say no if there are warnings |
||
9875 | if test -s conftest.err; then |
||
9876 | # Append any errors to the config.log. |
||
9877 | cat conftest.err 1>&5 |
||
9878 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
||
9879 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
9880 | if diff conftest.exp conftest.er2 >/dev/null; then |
||
9881 | lt_cv_prog_compiler__b=yes |
||
9882 | fi |
||
9883 | else |
||
9884 | lt_cv_prog_compiler__b=yes |
||
9885 | fi |
||
9886 | fi |
||
9887 | $RM -r conftest* |
||
9888 | LDFLAGS=$save_LDFLAGS |
||
9889 | |||
9890 | fi |
||
9891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
||
9892 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
||
9893 | |||
9894 | if test yes = "$lt_cv_prog_compiler__b"; then |
||
9895 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
9896 | else |
||
9897 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
||
9898 | fi |
||
9899 | |||
9900 | ;; |
||
9901 | esac |
||
9902 | fi |
||
9903 | if test no = "$with_gnu_ld"; then |
||
9904 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
||
9905 | hardcode_libdir_separator=: |
||
9906 | |||
9907 | case $host_cpu in |
||
9908 | hppa*64*|ia64*) |
||
9909 | hardcode_direct=no |
||
9910 | hardcode_shlibpath_var=no |
||
9911 | ;; |
||
9912 | *) |
||
9913 | hardcode_direct=yes |
||
9914 | hardcode_direct_absolute=yes |
||
9915 | export_dynamic_flag_spec='$wl-E' |
||
9916 | |||
9917 | # hardcode_minus_L: Not really in the search PATH, |
||
9918 | # but as the default location of the library. |
||
9919 | hardcode_minus_L=yes |
||
9920 | ;; |
||
9921 | esac |
||
9922 | fi |
||
9923 | ;; |
||
9924 | |||
9925 | irix5* | irix6* | nonstopux*) |
||
9926 | if test yes = "$GCC"; then |
||
9927 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
||
9928 | # Try to use the -exported_symbol ld option, if it does not |
||
9929 | # work, assume that -exports_file does not work either and |
||
9930 | # implicitly export all symbols. |
||
9931 | # This should be the same for all languages, so no per-tag cache variable. |
||
9932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
||
9933 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
||
9934 | if ${lt_cv_irix_exported_symbol+:} false; then : |
||
9935 | $as_echo_n "(cached) " >&6 |
||
9936 | else |
||
9937 | save_LDFLAGS=$LDFLAGS |
||
9938 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
||
9939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
9940 | /* end confdefs.h. */ |
||
9941 | int foo (void) { return 0; } |
||
9942 | _ACEOF |
||
9943 | if ac_fn_c_try_link "$LINENO"; then : |
||
9944 | lt_cv_irix_exported_symbol=yes |
||
9945 | else |
||
9946 | lt_cv_irix_exported_symbol=no |
||
9947 | fi |
||
9948 | rm -f core conftest.err conftest.$ac_objext \ |
||
9949 | conftest$ac_exeext conftest.$ac_ext |
||
9950 | LDFLAGS=$save_LDFLAGS |
||
9951 | fi |
||
9952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
||
9953 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
||
9954 | if test yes = "$lt_cv_irix_exported_symbol"; then |
||
9955 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' |
||
9956 | fi |
||
7 | mjames | 9957 | link_all_deplibs=no |
2 | mjames | 9958 | else |
9959 | 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' |
||
9960 | 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' |
||
9961 | fi |
||
9962 | archive_cmds_need_lc='no' |
||
9963 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
||
9964 | hardcode_libdir_separator=: |
||
9965 | inherit_rpath=yes |
||
9966 | link_all_deplibs=yes |
||
9967 | ;; |
||
9968 | |||
9969 | linux*) |
||
9970 | case $cc_basename in |
||
9971 | tcc*) |
||
9972 | # Fabrice Bellard et al's Tiny C Compiler |
||
9973 | ld_shlibs=yes |
||
9974 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
||
9975 | ;; |
||
9976 | esac |
||
9977 | ;; |
||
9978 | |||
7 | mjames | 9979 | netbsd* | netbsdelf*-gnu) |
2 | mjames | 9980 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9981 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
||
9982 | else |
||
9983 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
||
9984 | fi |
||
9985 | hardcode_libdir_flag_spec='-R$libdir' |
||
9986 | hardcode_direct=yes |
||
9987 | hardcode_shlibpath_var=no |
||
9988 | ;; |
||
9989 | |||
9990 | newsos6) |
||
9991 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
9992 | hardcode_direct=yes |
||
9993 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
||
9994 | hardcode_libdir_separator=: |
||
9995 | hardcode_shlibpath_var=no |
||
9996 | ;; |
||
9997 | |||
9998 | *nto* | *qnx*) |
||
9999 | ;; |
||
10000 | |||
10001 | openbsd* | bitrig*) |
||
10002 | if test -f /usr/libexec/ld.so; then |
||
10003 | hardcode_direct=yes |
||
10004 | hardcode_shlibpath_var=no |
||
10005 | hardcode_direct_absolute=yes |
||
10006 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
||
10007 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
||
10008 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
||
10009 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
||
10010 | export_dynamic_flag_spec='$wl-E' |
||
10011 | else |
||
10012 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
||
10013 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
||
10014 | fi |
||
10015 | else |
||
10016 | ld_shlibs=no |
||
10017 | fi |
||
10018 | ;; |
||
10019 | |||
10020 | os2*) |
||
10021 | hardcode_libdir_flag_spec='-L$libdir' |
||
10022 | hardcode_minus_L=yes |
||
10023 | allow_undefined_flag=unsupported |
||
10024 | shrext_cmds=.dll |
||
10025 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
||
10026 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
||
10027 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
||
10028 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
||
10029 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
||
10030 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
||
10031 | emximp -o $lib $output_objdir/$libname.def' |
||
10032 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
||
10033 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
||
10034 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
||
10035 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
||
10036 | prefix_cmds="$SED"~ |
||
10037 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
||
10038 | prefix_cmds="$prefix_cmds -e 1d"; |
||
10039 | fi~ |
||
10040 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
||
10041 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
||
10042 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
||
10043 | emximp -o $lib $output_objdir/$libname.def' |
||
10044 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
||
10045 | enable_shared_with_static_runtimes=yes |
||
10046 | ;; |
||
10047 | |||
10048 | osf3*) |
||
10049 | if test yes = "$GCC"; then |
||
10050 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
||
10051 | 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' |
||
10052 | else |
||
10053 | allow_undefined_flag=' -expect_unresolved \*' |
||
10054 | 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' |
||
10055 | fi |
||
10056 | archive_cmds_need_lc='no' |
||
10057 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
||
10058 | hardcode_libdir_separator=: |
||
10059 | ;; |
||
10060 | |||
10061 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
||
10062 | if test yes = "$GCC"; then |
||
10063 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
||
10064 | archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
||
10065 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
||
10066 | else |
||
10067 | allow_undefined_flag=' -expect_unresolved \*' |
||
10068 | 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' |
||
10069 | 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~ |
||
10070 | $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' |
||
10071 | |||
10072 | # Both c and cxx compiler support -rpath directly |
||
10073 | hardcode_libdir_flag_spec='-rpath $libdir' |
||
10074 | fi |
||
10075 | archive_cmds_need_lc='no' |
||
10076 | hardcode_libdir_separator=: |
||
10077 | ;; |
||
10078 | |||
10079 | solaris*) |
||
10080 | no_undefined_flag=' -z defs' |
||
10081 | if test yes = "$GCC"; then |
||
10082 | wlarc='$wl' |
||
10083 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
10084 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
||
10085 | $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
||
10086 | else |
||
10087 | case `$CC -V 2>&1` in |
||
10088 | *"Compilers 5.0"*) |
||
10089 | wlarc='' |
||
10090 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
10091 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
||
10092 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
||
10093 | ;; |
||
10094 | *) |
||
10095 | wlarc='$wl' |
||
10096 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
||
10097 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
||
10098 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
||
10099 | ;; |
||
10100 | esac |
||
10101 | fi |
||
10102 | hardcode_libdir_flag_spec='-R$libdir' |
||
10103 | hardcode_shlibpath_var=no |
||
10104 | case $host_os in |
||
10105 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
||
10106 | *) |
||
10107 | # The compiler driver will combine and reorder linker options, |
||
10108 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
||
10109 | # but is careful enough not to reorder. |
||
10110 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
||
10111 | if test yes = "$GCC"; then |
||
10112 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
||
10113 | else |
||
10114 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
||
10115 | fi |
||
10116 | ;; |
||
10117 | esac |
||
10118 | link_all_deplibs=yes |
||
10119 | ;; |
||
10120 | |||
10121 | sunos4*) |
||
10122 | if test sequent = "$host_vendor"; then |
||
10123 | # Use $CC to link under sequent, because it throws in some extra .o |
||
10124 | # files that make .init and .fini sections work. |
||
10125 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
||
10126 | else |
||
10127 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
||
10128 | fi |
||
10129 | hardcode_libdir_flag_spec='-L$libdir' |
||
10130 | hardcode_direct=yes |
||
10131 | hardcode_minus_L=yes |
||
10132 | hardcode_shlibpath_var=no |
||
10133 | ;; |
||
10134 | |||
10135 | sysv4) |
||
10136 | case $host_vendor in |
||
10137 | sni) |
||
10138 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
10139 | hardcode_direct=yes # is this really true??? |
||
10140 | ;; |
||
10141 | siemens) |
||
10142 | ## LD is ld it makes a PLAMLIB |
||
10143 | ## CC just makes a GrossModule. |
||
10144 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
||
10145 | reload_cmds='$CC -r -o $output$reload_objs' |
||
10146 | hardcode_direct=no |
||
10147 | ;; |
||
10148 | motorola) |
||
10149 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
10150 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
||
10151 | ;; |
||
10152 | esac |
||
10153 | runpath_var='LD_RUN_PATH' |
||
10154 | hardcode_shlibpath_var=no |
||
10155 | ;; |
||
10156 | |||
10157 | sysv4.3*) |
||
10158 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
10159 | hardcode_shlibpath_var=no |
||
10160 | export_dynamic_flag_spec='-Bexport' |
||
10161 | ;; |
||
10162 | |||
10163 | sysv4*MP*) |
||
10164 | if test -d /usr/nec; then |
||
10165 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
10166 | hardcode_shlibpath_var=no |
||
10167 | runpath_var=LD_RUN_PATH |
||
10168 | hardcode_runpath_var=yes |
||
10169 | ld_shlibs=yes |
||
10170 | fi |
||
10171 | ;; |
||
10172 | |||
10173 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
||
10174 | no_undefined_flag='$wl-z,text' |
||
10175 | archive_cmds_need_lc=no |
||
10176 | hardcode_shlibpath_var=no |
||
10177 | runpath_var='LD_RUN_PATH' |
||
10178 | |||
10179 | if test yes = "$GCC"; then |
||
10180 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
10181 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
10182 | else |
||
10183 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
10184 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
10185 | fi |
||
10186 | ;; |
||
10187 | |||
10188 | sysv5* | sco3.2v5* | sco5v6*) |
||
10189 | # Note: We CANNOT use -z defs as we might desire, because we do not |
||
10190 | # link with -lc, and that would cause any symbols used from libc to |
||
10191 | # always be unresolved, which means just about no library would |
||
10192 | # ever link correctly. If we're not using GNU ld we use -z text |
||
10193 | # though, which does catch some bad symbols but isn't as heavy-handed |
||
10194 | # as -z defs. |
||
10195 | no_undefined_flag='$wl-z,text' |
||
10196 | allow_undefined_flag='$wl-z,nodefs' |
||
10197 | archive_cmds_need_lc=no |
||
10198 | hardcode_shlibpath_var=no |
||
10199 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
||
10200 | hardcode_libdir_separator=':' |
||
10201 | link_all_deplibs=yes |
||
10202 | export_dynamic_flag_spec='$wl-Bexport' |
||
10203 | runpath_var='LD_RUN_PATH' |
||
10204 | |||
10205 | if test yes = "$GCC"; then |
||
10206 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
10207 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
10208 | else |
||
10209 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
10210 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
10211 | fi |
||
10212 | ;; |
||
10213 | |||
10214 | uts4*) |
||
10215 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
10216 | hardcode_libdir_flag_spec='-L$libdir' |
||
10217 | hardcode_shlibpath_var=no |
||
10218 | ;; |
||
10219 | |||
10220 | *) |
||
10221 | ld_shlibs=no |
||
10222 | ;; |
||
10223 | esac |
||
10224 | |||
10225 | if test sni = "$host_vendor"; then |
||
10226 | case $host in |
||
10227 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
||
10228 | export_dynamic_flag_spec='$wl-Blargedynsym' |
||
10229 | ;; |
||
10230 | esac |
||
10231 | fi |
||
10232 | fi |
||
10233 | |||
10234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
||
10235 | $as_echo "$ld_shlibs" >&6; } |
||
10236 | test no = "$ld_shlibs" && can_build_shared=no |
||
10237 | |||
10238 | with_gnu_ld=$with_gnu_ld |
||
10239 | |||
10240 | |||
10241 | |||
10242 | |||
10243 | |||
10244 | |||
10245 | |||
10246 | |||
10247 | |||
10248 | |||
10249 | |||
10250 | |||
10251 | |||
10252 | |||
10253 | |||
10254 | # |
||
10255 | # Do we need to explicitly link libc? |
||
10256 | # |
||
10257 | case "x$archive_cmds_need_lc" in |
||
10258 | x|xyes) |
||
10259 | # Assume -lc should be added |
||
10260 | archive_cmds_need_lc=yes |
||
10261 | |||
10262 | if test yes,yes = "$GCC,$enable_shared"; then |
||
10263 | case $archive_cmds in |
||
10264 | *'~'*) |
||
10265 | # FIXME: we may have to deal with multi-command sequences. |
||
10266 | ;; |
||
10267 | '$CC '*) |
||
10268 | # Test whether the compiler implicitly links with -lc since on some |
||
10269 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
||
10270 | # to ld, don't add -lc before -lgcc. |
||
10271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
||
10272 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
||
10273 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
||
10274 | $as_echo_n "(cached) " >&6 |
||
10275 | else |
||
10276 | $RM conftest* |
||
10277 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
10278 | |||
10279 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
10280 | (eval $ac_compile) 2>&5 |
||
10281 | ac_status=$? |
||
10282 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
10283 | test $ac_status = 0; } 2>conftest.err; then |
||
10284 | soname=conftest |
||
10285 | lib=conftest |
||
10286 | libobjs=conftest.$ac_objext |
||
10287 | deplibs= |
||
10288 | wl=$lt_prog_compiler_wl |
||
10289 | pic_flag=$lt_prog_compiler_pic |
||
10290 | compiler_flags=-v |
||
10291 | linker_flags=-v |
||
10292 | verstring= |
||
10293 | output_objdir=. |
||
10294 | libname=conftest |
||
10295 | lt_save_allow_undefined_flag=$allow_undefined_flag |
||
10296 | allow_undefined_flag= |
||
10297 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
||
10298 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
||
10299 | ac_status=$? |
||
10300 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
10301 | test $ac_status = 0; } |
||
10302 | then |
||
10303 | lt_cv_archive_cmds_need_lc=no |
||
10304 | else |
||
10305 | lt_cv_archive_cmds_need_lc=yes |
||
10306 | fi |
||
10307 | allow_undefined_flag=$lt_save_allow_undefined_flag |
||
10308 | else |
||
10309 | cat conftest.err 1>&5 |
||
10310 | fi |
||
10311 | $RM conftest* |
||
10312 | |||
10313 | fi |
||
10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
||
10315 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
||
10316 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
||
10317 | ;; |
||
10318 | esac |
||
10319 | fi |
||
10320 | ;; |
||
10321 | esac |
||
10322 | |||
10323 | |||
10324 | |||
10325 | |||
10326 | |||
10327 | |||
10328 | |||
10329 | |||
10330 | |||
10331 | |||
10332 | |||
10333 | |||
10334 | |||
10335 | |||
10336 | |||
10337 | |||
10338 | |||
10339 | |||
10340 | |||
10341 | |||
10342 | |||
10343 | |||
10344 | |||
10345 | |||
10346 | |||
10347 | |||
10348 | |||
10349 | |||
10350 | |||
10351 | |||
10352 | |||
10353 | |||
10354 | |||
10355 | |||
10356 | |||
10357 | |||
10358 | |||
10359 | |||
10360 | |||
10361 | |||
10362 | |||
10363 | |||
10364 | |||
10365 | |||
10366 | |||
10367 | |||
10368 | |||
10369 | |||
10370 | |||
10371 | |||
10372 | |||
10373 | |||
10374 | |||
10375 | |||
10376 | |||
10377 | |||
10378 | |||
10379 | |||
10380 | |||
10381 | |||
10382 | |||
10383 | |||
10384 | |||
10385 | |||
10386 | |||
10387 | |||
10388 | |||
10389 | |||
10390 | |||
10391 | |||
10392 | |||
10393 | |||
10394 | |||
10395 | |||
10396 | |||
10397 | |||
10398 | |||
10399 | |||
10400 | |||
10401 | |||
10402 | |||
10403 | |||
10404 | |||
10405 | |||
10406 | |||
10407 | |||
10408 | |||
10409 | |||
10410 | |||
10411 | |||
10412 | |||
10413 | |||
10414 | |||
10415 | |||
10416 | |||
10417 | |||
10418 | |||
10419 | |||
10420 | |||
10421 | |||
10422 | |||
10423 | |||
10424 | |||
10425 | |||
10426 | |||
10427 | |||
10428 | |||
10429 | |||
10430 | |||
10431 | |||
10432 | |||
10433 | |||
10434 | |||
10435 | |||
10436 | |||
10437 | |||
10438 | |||
10439 | |||
10440 | |||
10441 | |||
10442 | |||
10443 | |||
10444 | |||
10445 | |||
10446 | |||
10447 | |||
10448 | |||
10449 | |||
10450 | |||
10451 | |||
10452 | |||
10453 | |||
10454 | |||
10455 | |||
10456 | |||
10457 | |||
10458 | |||
10459 | |||
10460 | |||
10461 | |||
10462 | |||
10463 | |||
10464 | |||
10465 | |||
10466 | |||
10467 | |||
10468 | |||
10469 | |||
10470 | |||
10471 | |||
10472 | |||
10473 | |||
10474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
||
10475 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
||
10476 | |||
10477 | if test yes = "$GCC"; then |
||
10478 | case $host_os in |
||
10479 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
||
10480 | *) lt_awk_arg='/^libraries:/' ;; |
||
10481 | esac |
||
10482 | case $host_os in |
||
10483 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
||
10484 | *) lt_sed_strip_eq='s|=/|/|g' ;; |
||
10485 | esac |
||
10486 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
||
10487 | case $lt_search_path_spec in |
||
10488 | *\;*) |
||
10489 | # if the path contains ";" then we assume it to be the separator |
||
10490 | # otherwise default to the standard path separator (i.e. ":") - it is |
||
10491 | # assumed that no part of a normal pathname contains ";" but that should |
||
10492 | # okay in the real world where ";" in dirpaths is itself problematic. |
||
10493 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
||
10494 | ;; |
||
10495 | *) |
||
10496 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
||
10497 | ;; |
||
10498 | esac |
||
10499 | # Ok, now we have the path, separated by spaces, we can step through it |
||
10500 | # and add multilib dir if necessary... |
||
10501 | lt_tmp_lt_search_path_spec= |
||
10502 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
||
10503 | # ...but if some path component already ends with the multilib dir we assume |
||
10504 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
||
10505 | case "$lt_multi_os_dir; $lt_search_path_spec " in |
||
10506 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
||
10507 | lt_multi_os_dir= |
||
10508 | ;; |
||
10509 | esac |
||
10510 | for lt_sys_path in $lt_search_path_spec; do |
||
10511 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
||
10512 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
||
10513 | elif test -n "$lt_multi_os_dir"; then |
||
10514 | test -d "$lt_sys_path" && \ |
||
10515 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
||
10516 | fi |
||
10517 | done |
||
10518 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
||
10519 | BEGIN {RS = " "; FS = "/|\n";} { |
||
10520 | lt_foo = ""; |
||
10521 | lt_count = 0; |
||
10522 | for (lt_i = NF; lt_i > 0; lt_i--) { |
||
10523 | if ($lt_i != "" && $lt_i != ".") { |
||
10524 | if ($lt_i == "..") { |
||
10525 | lt_count++; |
||
10526 | } else { |
||
10527 | if (lt_count == 0) { |
||
10528 | lt_foo = "/" $lt_i lt_foo; |
||
10529 | } else { |
||
10530 | lt_count--; |
||
10531 | } |
||
10532 | } |
||
10533 | } |
||
10534 | } |
||
10535 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
||
10536 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
||
10537 | }'` |
||
10538 | # AWK program above erroneously prepends '/' to C:/dos/paths |
||
10539 | # for these hosts. |
||
10540 | case $host_os in |
||
10541 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
||
10542 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
||
10543 | esac |
||
10544 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
||
10545 | else |
||
10546 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
||
10547 | fi |
||
10548 | library_names_spec= |
||
10549 | libname_spec='lib$name' |
||
10550 | soname_spec= |
||
10551 | shrext_cmds=.so |
||
10552 | postinstall_cmds= |
||
10553 | postuninstall_cmds= |
||
10554 | finish_cmds= |
||
10555 | finish_eval= |
||
10556 | shlibpath_var= |
||
10557 | shlibpath_overrides_runpath=unknown |
||
10558 | version_type=none |
||
10559 | dynamic_linker="$host_os ld.so" |
||
10560 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
||
10561 | need_lib_prefix=unknown |
||
10562 | hardcode_into_libs=no |
||
10563 | |||
10564 | # when you set need_version to no, make sure it does not cause -set_version |
||
10565 | # flags to be left without arguments |
||
10566 | need_version=unknown |
||
10567 | |||
10568 | |||
10569 | |||
10570 | case $host_os in |
||
10571 | aix3*) |
||
10572 | version_type=linux # correct to gnu/linux during the next big refactor |
||
10573 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
||
10574 | shlibpath_var=LIBPATH |
||
10575 | |||
10576 | # AIX 3 has no versioning support, so we append a major version to the name. |
||
10577 | soname_spec='$libname$release$shared_ext$major' |
||
10578 | ;; |
||
10579 | |||
10580 | aix[4-9]*) |
||
10581 | version_type=linux # correct to gnu/linux during the next big refactor |
||
10582 | need_lib_prefix=no |
||
10583 | need_version=no |
||
10584 | hardcode_into_libs=yes |
||
10585 | if test ia64 = "$host_cpu"; then |
||
10586 | # AIX 5 supports IA64 |
||
10587 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
||
10588 | shlibpath_var=LD_LIBRARY_PATH |
||
10589 | else |
||
10590 | # With GCC up to 2.95.x, collect2 would create an import file |
||
10591 | # for dependence libraries. The import file would start with |
||
10592 | # the line '#! .'. This would cause the generated library to |
||
10593 | # depend on '.', always an invalid library. This was fixed in |
||
10594 | # development snapshots of GCC prior to 3.0. |
||
10595 | case $host_os in |
||
10596 | aix4 | aix4.[01] | aix4.[01].*) |
||
10597 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
||
10598 | echo ' yes ' |
||
10599 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
||
10600 | : |
||
10601 | else |
||
10602 | can_build_shared=no |
||
10603 | fi |
||
10604 | ;; |
||
10605 | esac |
||
10606 | # Using Import Files as archive members, it is possible to support |
||
10607 | # filename-based versioning of shared library archives on AIX. While |
||
10608 | # this would work for both with and without runtime linking, it will |
||
10609 | # prevent static linking of such archives. So we do filename-based |
||
10610 | # shared library versioning with .so extension only, which is used |
||
10611 | # when both runtime linking and shared linking is enabled. |
||
10612 | # Unfortunately, runtime linking may impact performance, so we do |
||
10613 | # not want this to be the default eventually. Also, we use the |
||
10614 | # versioned .so libs for executables only if there is the -brtl |
||
10615 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
||
10616 | # To allow for filename-based versioning support, we need to create |
||
10617 | # libNAME.so.V as an archive file, containing: |
||
10618 | # *) an Import File, referring to the versioned filename of the |
||
10619 | # archive as well as the shared archive member, telling the |
||
10620 | # bitwidth (32 or 64) of that shared object, and providing the |
||
10621 | # list of exported symbols of that shared object, eventually |
||
10622 | # decorated with the 'weak' keyword |
||
10623 | # *) the shared object with the F_LOADONLY flag set, to really avoid |
||
10624 | # it being seen by the linker. |
||
10625 | # At run time we better use the real file rather than another symlink, |
||
10626 | # but for link time we create the symlink libNAME.so -> libNAME.so.V |
||
10627 | |||
10628 | case $with_aix_soname,$aix_use_runtimelinking in |
||
10629 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
||
10630 | # soname into executable. Probably we can add versioning support to |
||
10631 | # collect2, so additional links can be useful in future. |
||
10632 | aix,yes) # traditional libtool |
||
10633 | dynamic_linker='AIX unversionable lib.so' |
||
10634 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
||
10635 | # instead of lib<name>.a to let people know that these are not |
||
10636 | # typical AIX shared libraries. |
||
10637 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
10638 | ;; |
||
10639 | aix,no) # traditional AIX only |
||
10640 | dynamic_linker='AIX lib.a(lib.so.V)' |
||
10641 | # We preserve .a as extension for shared libraries through AIX4.2 |
||
10642 | # and later when we are not doing run time linking. |
||
10643 | library_names_spec='$libname$release.a $libname.a' |
||
10644 | soname_spec='$libname$release$shared_ext$major' |
||
10645 | ;; |
||
10646 | svr4,*) # full svr4 only |
||
10647 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
||
10648 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
||
10649 | # We do not specify a path in Import Files, so LIBPATH fires. |
||
10650 | shlibpath_overrides_runpath=yes |
||
10651 | ;; |
||
10652 | *,yes) # both, prefer svr4 |
||
10653 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
||
10654 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
||
10655 | # unpreferred sharedlib libNAME.a needs extra handling |
||
10656 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' |
||
10657 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' |
||
10658 | # We do not specify a path in Import Files, so LIBPATH fires. |
||
10659 | shlibpath_overrides_runpath=yes |
||
10660 | ;; |
||
10661 | *,no) # both, prefer aix |
||
10662 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
||
10663 | library_names_spec='$libname$release.a $libname.a' |
||
10664 | soname_spec='$libname$release$shared_ext$major' |
||
10665 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
||
10666 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' |
||
10667 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' |
||
10668 | ;; |
||
10669 | esac |
||
10670 | shlibpath_var=LIBPATH |
||
10671 | fi |
||
10672 | ;; |
||
10673 | |||
10674 | amigaos*) |
||
10675 | case $host_cpu in |
||
10676 | powerpc) |
||
10677 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
||
10678 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
||
10679 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
10680 | ;; |
||
10681 | m68k) |
||
10682 | library_names_spec='$libname.ixlibrary $libname.a' |
||
10683 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
||
10684 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
||
10685 | ;; |
||
10686 | esac |
||
10687 | ;; |
||
10688 | |||
10689 | beos*) |
||
10690 | library_names_spec='$libname$shared_ext' |
||
10691 | dynamic_linker="$host_os ld.so" |
||
10692 | shlibpath_var=LIBRARY_PATH |
||
10693 | ;; |
||
10694 | |||
10695 | bsdi[45]*) |
||
10696 | version_type=linux # correct to gnu/linux during the next big refactor |
||
10697 | need_version=no |
||
10698 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
10699 | soname_spec='$libname$release$shared_ext$major' |
||
10700 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
||
10701 | shlibpath_var=LD_LIBRARY_PATH |
||
10702 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
||
10703 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
||
10704 | # the default ld.so.conf also contains /usr/contrib/lib and |
||
10705 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
||
10706 | # libtool to hard-code these into programs |
||
10707 | ;; |
||
10708 | |||
7 | mjames | 10709 | cygwin* | mingw* | pw32* | cegcc*) |
2 | mjames | 10710 | version_type=windows |
10711 | shrext_cmds=.dll |
||
10712 | need_version=no |
||
10713 | need_lib_prefix=no |
||
10714 | |||
10715 | case $GCC,$cc_basename in |
||
10716 | yes,*) |
||
10717 | # gcc |
||
10718 | library_names_spec='$libname.dll.a' |
||
10719 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
||
10720 | postinstall_cmds='base_file=`basename \$file`~ |
||
10721 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
||
10722 | dldir=$destdir/`dirname \$dlpath`~ |
||
10723 | test -d \$dldir || mkdir -p \$dldir~ |
||
10724 | $install_prog $dir/$dlname \$dldir/$dlname~ |
||
10725 | chmod a+x \$dldir/$dlname~ |
||
10726 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
||
10727 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
||
10728 | fi' |
||
10729 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
||
10730 | dlpath=$dir/\$dldll~ |
||
10731 | $RM \$dlpath' |
||
10732 | shlibpath_overrides_runpath=yes |
||
10733 | |||
10734 | case $host_os in |
||
10735 | cygwin*) |
||
10736 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
||
10737 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
||
10738 | |||
10739 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
||
10740 | ;; |
||
10741 | mingw* | cegcc*) |
||
10742 | # MinGW DLLs use traditional 'lib' prefix |
||
10743 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
||
10744 | ;; |
||
10745 | pw32*) |
||
10746 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
||
10747 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
||
10748 | ;; |
||
10749 | esac |
||
10750 | dynamic_linker='Win32 ld.exe' |
||
10751 | ;; |
||
10752 | |||
10753 | *,cl*) |
||
10754 | # Native MSVC |
||
10755 | libname_spec='$name' |
||
10756 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
||
10757 | library_names_spec='$libname.dll.lib' |
||
10758 | |||
10759 | case $build_os in |
||
10760 | mingw*) |
||
10761 | sys_lib_search_path_spec= |
||
10762 | lt_save_ifs=$IFS |
||
10763 | IFS=';' |
||
10764 | for lt_path in $LIB |
||
10765 | do |
||
10766 | IFS=$lt_save_ifs |
||
10767 | # Let DOS variable expansion print the short 8.3 style file name. |
||
10768 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
||
10769 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
||
10770 | done |
||
10771 | IFS=$lt_save_ifs |
||
10772 | # Convert to MSYS style. |
||
10773 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
||
10774 | ;; |
||
7 | mjames | 10775 | cygwin*) |
2 | mjames | 10776 | # Convert to unix form, then to dos form, then back to unix form |
10777 | # but this time dos style (no spaces!) so that the unix form looks |
||
10778 | # like /cygdrive/c/PROGRA~1:/cygdr... |
||
10779 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
||
10780 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
||
10781 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
||
10782 | ;; |
||
10783 | *) |
||
10784 | sys_lib_search_path_spec=$LIB |
||
10785 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
||
10786 | # It is most probably a Windows format PATH. |
||
10787 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
||
10788 | else |
||
10789 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
||
10790 | fi |
||
10791 | # FIXME: find the short name or the path components, as spaces are |
||
10792 | # common. (e.g. "Program Files" -> "PROGRA~1") |
||
10793 | ;; |
||
10794 | esac |
||
10795 | |||
10796 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
||
10797 | postinstall_cmds='base_file=`basename \$file`~ |
||
10798 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
||
10799 | dldir=$destdir/`dirname \$dlpath`~ |
||
10800 | test -d \$dldir || mkdir -p \$dldir~ |
||
10801 | $install_prog $dir/$dlname \$dldir/$dlname' |
||
10802 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
||
10803 | dlpath=$dir/\$dldll~ |
||
10804 | $RM \$dlpath' |
||
10805 | shlibpath_overrides_runpath=yes |
||
10806 | dynamic_linker='Win32 link.exe' |
||
10807 | ;; |
||
10808 | |||
10809 | *) |
||
10810 | # Assume MSVC wrapper |
||
10811 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
||
10812 | dynamic_linker='Win32 ld.exe' |
||
10813 | ;; |
||
10814 | esac |
||
10815 | # FIXME: first we should search . and the directory the executable is in |
||
10816 | shlibpath_var=PATH |
||
10817 | ;; |
||
10818 | |||
10819 | darwin* | rhapsody*) |
||
10820 | dynamic_linker="$host_os dyld" |
||
10821 | version_type=darwin |
||
10822 | need_lib_prefix=no |
||
10823 | need_version=no |
||
10824 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
||
10825 | soname_spec='$libname$release$major$shared_ext' |
||
10826 | shlibpath_overrides_runpath=yes |
||
10827 | shlibpath_var=DYLD_LIBRARY_PATH |
||
10828 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
||
10829 | |||
10830 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
||
10831 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
||
10832 | ;; |
||
10833 | |||
10834 | dgux*) |
||
10835 | version_type=linux # correct to gnu/linux during the next big refactor |
||
10836 | need_lib_prefix=no |
||
10837 | need_version=no |
||
10838 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
10839 | soname_spec='$libname$release$shared_ext$major' |
||
10840 | shlibpath_var=LD_LIBRARY_PATH |
||
10841 | ;; |
||
10842 | |||
10843 | freebsd* | dragonfly*) |
||
10844 | # DragonFly does not have aout. When/if they implement a new |
||
10845 | # versioning mechanism, adjust this. |
||
10846 | if test -x /usr/bin/objformat; then |
||
10847 | objformat=`/usr/bin/objformat` |
||
10848 | else |
||
10849 | case $host_os in |
||
10850 | freebsd[23].*) objformat=aout ;; |
||
10851 | *) objformat=elf ;; |
||
10852 | esac |
||
10853 | fi |
||
10854 | version_type=freebsd-$objformat |
||
10855 | case $version_type in |
||
10856 | freebsd-elf*) |
||
10857 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
10858 | soname_spec='$libname$release$shared_ext$major' |
||
10859 | need_version=no |
||
10860 | need_lib_prefix=no |
||
10861 | ;; |
||
10862 | freebsd-*) |
||
10863 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
||
10864 | need_version=yes |
||
10865 | ;; |
||
10866 | esac |
||
10867 | shlibpath_var=LD_LIBRARY_PATH |
||
10868 | case $host_os in |
||
10869 | freebsd2.*) |
||
10870 | shlibpath_overrides_runpath=yes |
||
10871 | ;; |
||
10872 | freebsd3.[01]* | freebsdelf3.[01]*) |
||
10873 | shlibpath_overrides_runpath=yes |
||
10874 | hardcode_into_libs=yes |
||
10875 | ;; |
||
10876 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
||
10877 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
||
10878 | shlibpath_overrides_runpath=no |
||
10879 | hardcode_into_libs=yes |
||
10880 | ;; |
||
10881 | *) # from 4.6 on, and DragonFly |
||
10882 | shlibpath_overrides_runpath=yes |
||
10883 | hardcode_into_libs=yes |
||
10884 | ;; |
||
10885 | esac |
||
10886 | ;; |
||
10887 | |||
10888 | haiku*) |
||
10889 | version_type=linux # correct to gnu/linux during the next big refactor |
||
10890 | need_lib_prefix=no |
||
10891 | need_version=no |
||
10892 | dynamic_linker="$host_os runtime_loader" |
||
10893 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
10894 | soname_spec='$libname$release$shared_ext$major' |
||
10895 | shlibpath_var=LIBRARY_PATH |
||
10896 | shlibpath_overrides_runpath=no |
||
10897 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
||
10898 | hardcode_into_libs=yes |
||
10899 | ;; |
||
10900 | |||
10901 | hpux9* | hpux10* | hpux11*) |
||
10902 | # Give a soname corresponding to the major version so that dld.sl refuses to |
||
10903 | # link against other versions. |
||
10904 | version_type=sunos |
||
10905 | need_lib_prefix=no |
||
10906 | need_version=no |
||
10907 | case $host_cpu in |
||
10908 | ia64*) |
||
10909 | shrext_cmds='.so' |
||
10910 | hardcode_into_libs=yes |
||
10911 | dynamic_linker="$host_os dld.so" |
||
10912 | shlibpath_var=LD_LIBRARY_PATH |
||
10913 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
10914 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
10915 | soname_spec='$libname$release$shared_ext$major' |
||
10916 | if test 32 = "$HPUX_IA64_MODE"; then |
||
10917 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
||
10918 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
||
10919 | else |
||
10920 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
||
10921 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
||
10922 | fi |
||
10923 | ;; |
||
10924 | hppa*64*) |
||
10925 | shrext_cmds='.sl' |
||
10926 | hardcode_into_libs=yes |
||
10927 | dynamic_linker="$host_os dld.sl" |
||
10928 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
||
10929 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
10930 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
10931 | soname_spec='$libname$release$shared_ext$major' |
||
10932 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
||
10933 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
10934 | ;; |
||
10935 | *) |
||
10936 | shrext_cmds='.sl' |
||
10937 | dynamic_linker="$host_os dld.sl" |
||
10938 | shlibpath_var=SHLIB_PATH |
||
10939 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
||
10940 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
10941 | soname_spec='$libname$release$shared_ext$major' |
||
10942 | ;; |
||
10943 | esac |
||
10944 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
||
10945 | postinstall_cmds='chmod 555 $lib' |
||
10946 | # or fails outright, so override atomically: |
||
10947 | install_override_mode=555 |
||
10948 | ;; |
||
10949 | |||
10950 | interix[3-9]*) |
||
10951 | version_type=linux # correct to gnu/linux during the next big refactor |
||
10952 | need_lib_prefix=no |
||
10953 | need_version=no |
||
10954 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
10955 | soname_spec='$libname$release$shared_ext$major' |
||
10956 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
||
10957 | shlibpath_var=LD_LIBRARY_PATH |
||
10958 | shlibpath_overrides_runpath=no |
||
10959 | hardcode_into_libs=yes |
||
10960 | ;; |
||
10961 | |||
10962 | irix5* | irix6* | nonstopux*) |
||
10963 | case $host_os in |
||
10964 | nonstopux*) version_type=nonstopux ;; |
||
10965 | *) |
||
10966 | if test yes = "$lt_cv_prog_gnu_ld"; then |
||
10967 | version_type=linux # correct to gnu/linux during the next big refactor |
||
10968 | else |
||
10969 | version_type=irix |
||
10970 | fi ;; |
||
10971 | esac |
||
10972 | need_lib_prefix=no |
||
10973 | need_version=no |
||
10974 | soname_spec='$libname$release$shared_ext$major' |
||
10975 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
||
10976 | case $host_os in |
||
10977 | irix5* | nonstopux*) |
||
10978 | libsuff= shlibsuff= |
||
10979 | ;; |
||
10980 | *) |
||
10981 | case $LD in # libtool.m4 will add one of these switches to LD |
||
10982 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
||
10983 | libsuff= shlibsuff= libmagic=32-bit;; |
||
10984 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
||
10985 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
||
10986 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
||
10987 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
||
10988 | *) libsuff= shlibsuff= libmagic=never-match;; |
||
10989 | esac |
||
10990 | ;; |
||
10991 | esac |
||
10992 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
||
10993 | shlibpath_overrides_runpath=no |
||
10994 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
||
10995 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
||
10996 | hardcode_into_libs=yes |
||
10997 | ;; |
||
10998 | |||
10999 | # No shared lib support for Linux oldld, aout, or coff. |
||
11000 | linux*oldld* | linux*aout* | linux*coff*) |
||
11001 | dynamic_linker=no |
||
11002 | ;; |
||
11003 | |||
11004 | linux*android*) |
||
11005 | version_type=none # Android doesn't support versioned libraries. |
||
11006 | need_lib_prefix=no |
||
11007 | need_version=no |
||
11008 | library_names_spec='$libname$release$shared_ext' |
||
11009 | soname_spec='$libname$release$shared_ext' |
||
11010 | finish_cmds= |
||
11011 | shlibpath_var=LD_LIBRARY_PATH |
||
11012 | shlibpath_overrides_runpath=yes |
||
11013 | |||
11014 | # This implies no fast_install, which is unacceptable. |
||
11015 | # Some rework will be needed to allow for fast_install |
||
11016 | # before this can be enabled. |
||
11017 | hardcode_into_libs=yes |
||
11018 | |||
11019 | dynamic_linker='Android linker' |
||
11020 | # Don't embed -rpath directories since the linker doesn't support them. |
||
11021 | hardcode_libdir_flag_spec='-L$libdir' |
||
11022 | ;; |
||
11023 | |||
11024 | # This must be glibc/ELF. |
||
11025 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
||
11026 | version_type=linux # correct to gnu/linux during the next big refactor |
||
11027 | need_lib_prefix=no |
||
11028 | need_version=no |
||
11029 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
11030 | soname_spec='$libname$release$shared_ext$major' |
||
11031 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
||
11032 | shlibpath_var=LD_LIBRARY_PATH |
||
11033 | shlibpath_overrides_runpath=no |
||
11034 | |||
11035 | # Some binutils ld are patched to set DT_RUNPATH |
||
11036 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
||
11037 | $as_echo_n "(cached) " >&6 |
||
11038 | else |
||
11039 | lt_cv_shlibpath_overrides_runpath=no |
||
11040 | save_LDFLAGS=$LDFLAGS |
||
11041 | save_libdir=$libdir |
||
11042 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
||
11043 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
||
11044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
11045 | /* end confdefs.h. */ |
||
11046 | |||
11047 | int |
||
11048 | main () |
||
11049 | { |
||
11050 | |||
11051 | ; |
||
11052 | return 0; |
||
11053 | } |
||
11054 | _ACEOF |
||
11055 | if ac_fn_c_try_link "$LINENO"; then : |
||
11056 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
||
11057 | lt_cv_shlibpath_overrides_runpath=yes |
||
11058 | fi |
||
11059 | fi |
||
11060 | rm -f core conftest.err conftest.$ac_objext \ |
||
11061 | conftest$ac_exeext conftest.$ac_ext |
||
11062 | LDFLAGS=$save_LDFLAGS |
||
11063 | libdir=$save_libdir |
||
11064 | |||
11065 | fi |
||
11066 | |||
11067 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
||
11068 | |||
11069 | # This implies no fast_install, which is unacceptable. |
||
11070 | # Some rework will be needed to allow for fast_install |
||
11071 | # before this can be enabled. |
||
11072 | hardcode_into_libs=yes |
||
11073 | |||
11074 | # Ideally, we could use ldconfig to report *all* directores which are |
||
11075 | # searched for libraries, however this is still not possible. Aside from not |
||
11076 | # being certain /sbin/ldconfig is available, command |
||
11077 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
||
11078 | # even though it is searched at run-time. Try to do the best guess by |
||
11079 | # appending ld.so.conf contents (and includes) to the search path. |
||
11080 | if test -f /etc/ld.so.conf; then |
||
11081 | 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' ' '` |
||
11082 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
||
11083 | fi |
||
11084 | |||
11085 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
||
11086 | # powerpc, because MkLinux only supported shared libraries with the |
||
11087 | # GNU dynamic linker. Since this was broken with cross compilers, |
||
11088 | # most powerpc-linux boxes support dynamic linking these days and |
||
11089 | # people can always --disable-shared, the test was removed, and we |
||
11090 | # assume the GNU/Linux dynamic linker is in use. |
||
11091 | dynamic_linker='GNU/Linux ld.so' |
||
11092 | ;; |
||
11093 | |||
7 | mjames | 11094 | netbsdelf*-gnu) |
11095 | version_type=linux |
||
11096 | need_lib_prefix=no |
||
11097 | need_version=no |
||
11098 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
11099 | soname_spec='${libname}${release}${shared_ext}$major' |
||
11100 | shlibpath_var=LD_LIBRARY_PATH |
||
11101 | shlibpath_overrides_runpath=no |
||
11102 | hardcode_into_libs=yes |
||
11103 | dynamic_linker='NetBSD ld.elf_so' |
||
11104 | ;; |
||
11105 | |||
2 | mjames | 11106 | netbsd*) |
11107 | version_type=sunos |
||
11108 | need_lib_prefix=no |
||
11109 | need_version=no |
||
11110 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
||
11111 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
||
11112 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
11113 | dynamic_linker='NetBSD (a.out) ld.so' |
||
11114 | else |
||
11115 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
11116 | soname_spec='$libname$release$shared_ext$major' |
||
11117 | dynamic_linker='NetBSD ld.elf_so' |
||
11118 | fi |
||
11119 | shlibpath_var=LD_LIBRARY_PATH |
||
11120 | shlibpath_overrides_runpath=yes |
||
11121 | hardcode_into_libs=yes |
||
11122 | ;; |
||
11123 | |||
11124 | newsos6) |
||
11125 | version_type=linux # correct to gnu/linux during the next big refactor |
||
11126 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
11127 | shlibpath_var=LD_LIBRARY_PATH |
||
11128 | shlibpath_overrides_runpath=yes |
||
11129 | ;; |
||
11130 | |||
11131 | *nto* | *qnx*) |
||
11132 | version_type=qnx |
||
11133 | need_lib_prefix=no |
||
11134 | need_version=no |
||
11135 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
11136 | soname_spec='$libname$release$shared_ext$major' |
||
11137 | shlibpath_var=LD_LIBRARY_PATH |
||
11138 | shlibpath_overrides_runpath=no |
||
11139 | hardcode_into_libs=yes |
||
11140 | dynamic_linker='ldqnx.so' |
||
11141 | ;; |
||
11142 | |||
11143 | openbsd* | bitrig*) |
||
11144 | version_type=sunos |
||
11145 | sys_lib_dlsearch_path_spec=/usr/lib |
||
11146 | need_lib_prefix=no |
||
11147 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
||
11148 | need_version=no |
||
11149 | else |
||
11150 | need_version=yes |
||
11151 | fi |
||
11152 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
||
11153 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
11154 | shlibpath_var=LD_LIBRARY_PATH |
||
11155 | shlibpath_overrides_runpath=yes |
||
11156 | ;; |
||
11157 | |||
11158 | os2*) |
||
11159 | libname_spec='$name' |
||
11160 | version_type=windows |
||
11161 | shrext_cmds=.dll |
||
11162 | need_version=no |
||
11163 | need_lib_prefix=no |
||
11164 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
||
11165 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
||
11166 | v=$($ECHO $release$versuffix | tr -d .-); |
||
11167 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
||
11168 | $ECHO $n$v`$shared_ext' |
||
11169 | library_names_spec='${libname}_dll.$libext' |
||
11170 | dynamic_linker='OS/2 ld.exe' |
||
11171 | shlibpath_var=BEGINLIBPATH |
||
11172 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
||
11173 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
11174 | postinstall_cmds='base_file=`basename \$file`~ |
||
11175 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
||
11176 | dldir=$destdir/`dirname \$dlpath`~ |
||
11177 | test -d \$dldir || mkdir -p \$dldir~ |
||
11178 | $install_prog $dir/$dlname \$dldir/$dlname~ |
||
11179 | chmod a+x \$dldir/$dlname~ |
||
11180 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
||
11181 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
||
11182 | fi' |
||
11183 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
||
11184 | dlpath=$dir/\$dldll~ |
||
11185 | $RM \$dlpath' |
||
11186 | ;; |
||
11187 | |||
11188 | osf3* | osf4* | osf5*) |
||
11189 | version_type=osf |
||
11190 | need_lib_prefix=no |
||
11191 | need_version=no |
||
11192 | soname_spec='$libname$release$shared_ext$major' |
||
11193 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
11194 | shlibpath_var=LD_LIBRARY_PATH |
||
11195 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
||
11196 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
11197 | ;; |
||
11198 | |||
11199 | rdos*) |
||
11200 | dynamic_linker=no |
||
11201 | ;; |
||
11202 | |||
11203 | solaris*) |
||
11204 | version_type=linux # correct to gnu/linux during the next big refactor |
||
11205 | need_lib_prefix=no |
||
11206 | need_version=no |
||
11207 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
11208 | soname_spec='$libname$release$shared_ext$major' |
||
11209 | shlibpath_var=LD_LIBRARY_PATH |
||
11210 | shlibpath_overrides_runpath=yes |
||
11211 | hardcode_into_libs=yes |
||
11212 | # ldd complains unless libraries are executable |
||
11213 | postinstall_cmds='chmod +x $lib' |
||
11214 | ;; |
||
11215 | |||
11216 | sunos4*) |
||
11217 | version_type=sunos |
||
11218 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
||
11219 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
||
11220 | shlibpath_var=LD_LIBRARY_PATH |
||
11221 | shlibpath_overrides_runpath=yes |
||
11222 | if test yes = "$with_gnu_ld"; then |
||
11223 | need_lib_prefix=no |
||
11224 | fi |
||
11225 | need_version=yes |
||
11226 | ;; |
||
11227 | |||
11228 | sysv4 | sysv4.3*) |
||
11229 | version_type=linux # correct to gnu/linux during the next big refactor |
||
11230 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
11231 | soname_spec='$libname$release$shared_ext$major' |
||
11232 | shlibpath_var=LD_LIBRARY_PATH |
||
11233 | case $host_vendor in |
||
11234 | sni) |
||
11235 | shlibpath_overrides_runpath=no |
||
11236 | need_lib_prefix=no |
||
11237 | runpath_var=LD_RUN_PATH |
||
11238 | ;; |
||
11239 | siemens) |
||
11240 | need_lib_prefix=no |
||
11241 | ;; |
||
11242 | motorola) |
||
11243 | need_lib_prefix=no |
||
11244 | need_version=no |
||
11245 | shlibpath_overrides_runpath=no |
||
11246 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
||
11247 | ;; |
||
11248 | esac |
||
11249 | ;; |
||
11250 | |||
11251 | sysv4*MP*) |
||
11252 | if test -d /usr/nec; then |
||
11253 | version_type=linux # correct to gnu/linux during the next big refactor |
||
11254 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
||
11255 | soname_spec='$libname$shared_ext.$major' |
||
11256 | shlibpath_var=LD_LIBRARY_PATH |
||
11257 | fi |
||
11258 | ;; |
||
11259 | |||
11260 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
||
11261 | version_type=sco |
||
11262 | need_lib_prefix=no |
||
11263 | need_version=no |
||
11264 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
||
11265 | soname_spec='$libname$release$shared_ext$major' |
||
11266 | shlibpath_var=LD_LIBRARY_PATH |
||
11267 | shlibpath_overrides_runpath=yes |
||
11268 | hardcode_into_libs=yes |
||
11269 | if test yes = "$with_gnu_ld"; then |
||
11270 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
||
11271 | else |
||
11272 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
||
11273 | case $host_os in |
||
11274 | sco3.2v5*) |
||
11275 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
||
11276 | ;; |
||
11277 | esac |
||
11278 | fi |
||
11279 | sys_lib_dlsearch_path_spec='/usr/lib' |
||
11280 | ;; |
||
11281 | |||
11282 | tpf*) |
||
11283 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
||
11284 | version_type=linux # correct to gnu/linux during the next big refactor |
||
11285 | need_lib_prefix=no |
||
11286 | need_version=no |
||
11287 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
11288 | shlibpath_var=LD_LIBRARY_PATH |
||
11289 | shlibpath_overrides_runpath=no |
||
11290 | hardcode_into_libs=yes |
||
11291 | ;; |
||
11292 | |||
11293 | uts4*) |
||
11294 | version_type=linux # correct to gnu/linux during the next big refactor |
||
11295 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
11296 | soname_spec='$libname$release$shared_ext$major' |
||
11297 | shlibpath_var=LD_LIBRARY_PATH |
||
11298 | ;; |
||
11299 | |||
11300 | *) |
||
11301 | dynamic_linker=no |
||
11302 | ;; |
||
11303 | esac |
||
11304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
||
11305 | $as_echo "$dynamic_linker" >&6; } |
||
11306 | test no = "$dynamic_linker" && can_build_shared=no |
||
11307 | |||
11308 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
||
11309 | if test yes = "$GCC"; then |
||
11310 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
||
11311 | fi |
||
11312 | |||
11313 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
||
11314 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
||
11315 | fi |
||
11316 | |||
11317 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
||
11318 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
||
11319 | fi |
||
11320 | |||
11321 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
||
11322 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
||
11323 | |||
11324 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
||
11325 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
||
11326 | |||
11327 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
||
11328 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
||
11329 | |||
11330 | |||
11331 | |||
11332 | |||
11333 | |||
11334 | |||
11335 | |||
11336 | |||
11337 | |||
11338 | |||
11339 | |||
11340 | |||
11341 | |||
11342 | |||
11343 | |||
11344 | |||
11345 | |||
11346 | |||
11347 | |||
11348 | |||
11349 | |||
11350 | |||
11351 | |||
11352 | |||
11353 | |||
11354 | |||
11355 | |||
11356 | |||
11357 | |||
11358 | |||
11359 | |||
11360 | |||
11361 | |||
11362 | |||
11363 | |||
11364 | |||
11365 | |||
11366 | |||
11367 | |||
11368 | |||
11369 | |||
11370 | |||
11371 | |||
11372 | |||
11373 | |||
11374 | |||
11375 | |||
11376 | |||
11377 | |||
11378 | |||
11379 | |||
11380 | |||
11381 | |||
11382 | |||
11383 | |||
11384 | |||
11385 | |||
11386 | |||
11387 | |||
11388 | |||
11389 | |||
11390 | |||
11391 | |||
11392 | |||
11393 | |||
11394 | |||
11395 | |||
11396 | |||
11397 | |||
11398 | |||
11399 | |||
11400 | |||
11401 | |||
11402 | |||
11403 | |||
11404 | |||
11405 | |||
11406 | |||
11407 | |||
11408 | |||
11409 | |||
11410 | |||
11411 | |||
11412 | |||
11413 | |||
11414 | |||
11415 | |||
11416 | |||
11417 | |||
11418 | |||
11419 | |||
11420 | |||
11421 | |||
11422 | |||
11423 | |||
11424 | |||
11425 | |||
11426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
||
11427 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
||
11428 | hardcode_action= |
||
11429 | if test -n "$hardcode_libdir_flag_spec" || |
||
11430 | test -n "$runpath_var" || |
||
11431 | test yes = "$hardcode_automatic"; then |
||
11432 | |||
11433 | # We can hardcode non-existent directories. |
||
11434 | if test no != "$hardcode_direct" && |
||
11435 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
||
11436 | # have to relink, otherwise we might link with an installed library |
||
11437 | # when we should be linking with a yet-to-be-installed one |
||
11438 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
||
11439 | test no != "$hardcode_minus_L"; then |
||
11440 | # Linking always hardcodes the temporary library directory. |
||
11441 | hardcode_action=relink |
||
11442 | else |
||
11443 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
||
11444 | hardcode_action=immediate |
||
11445 | fi |
||
11446 | else |
||
11447 | # We cannot hardcode anything, or else we can only hardcode existing |
||
11448 | # directories. |
||
11449 | hardcode_action=unsupported |
||
11450 | fi |
||
11451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
||
11452 | $as_echo "$hardcode_action" >&6; } |
||
11453 | |||
11454 | if test relink = "$hardcode_action" || |
||
11455 | test yes = "$inherit_rpath"; then |
||
11456 | # Fast installation is not supported |
||
11457 | enable_fast_install=no |
||
11458 | elif test yes = "$shlibpath_overrides_runpath" || |
||
11459 | test no = "$enable_shared"; then |
||
11460 | # Fast installation is not necessary |
||
11461 | enable_fast_install=needless |
||
11462 | fi |
||
11463 | |||
11464 | |||
11465 | |||
11466 | |||
11467 | |||
11468 | |||
11469 | if test yes != "$enable_dlopen"; then |
||
11470 | enable_dlopen=unknown |
||
11471 | enable_dlopen_self=unknown |
||
11472 | enable_dlopen_self_static=unknown |
||
11473 | else |
||
11474 | lt_cv_dlopen=no |
||
11475 | lt_cv_dlopen_libs= |
||
11476 | |||
11477 | case $host_os in |
||
11478 | beos*) |
||
11479 | lt_cv_dlopen=load_add_on |
||
11480 | lt_cv_dlopen_libs= |
||
11481 | lt_cv_dlopen_self=yes |
||
11482 | ;; |
||
11483 | |||
11484 | mingw* | pw32* | cegcc*) |
||
11485 | lt_cv_dlopen=LoadLibrary |
||
11486 | lt_cv_dlopen_libs= |
||
11487 | ;; |
||
11488 | |||
7 | mjames | 11489 | cygwin*) |
2 | mjames | 11490 | lt_cv_dlopen=dlopen |
11491 | lt_cv_dlopen_libs= |
||
11492 | ;; |
||
11493 | |||
11494 | darwin*) |
||
11495 | # if libdl is installed we need to link against it |
||
11496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
||
11497 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
||
11498 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
||
11499 | $as_echo_n "(cached) " >&6 |
||
11500 | else |
||
11501 | ac_check_lib_save_LIBS=$LIBS |
||
11502 | LIBS="-ldl $LIBS" |
||
11503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
11504 | /* end confdefs.h. */ |
||
11505 | |||
11506 | /* Override any GCC internal prototype to avoid an error. |
||
11507 | Use char because int might match the return type of a GCC |
||
11508 | builtin and then its argument prototype would still apply. */ |
||
11509 | #ifdef __cplusplus |
||
11510 | extern "C" |
||
11511 | #endif |
||
11512 | char dlopen (); |
||
11513 | int |
||
11514 | main () |
||
11515 | { |
||
11516 | return dlopen (); |
||
11517 | ; |
||
11518 | return 0; |
||
11519 | } |
||
11520 | _ACEOF |
||
11521 | if ac_fn_c_try_link "$LINENO"; then : |
||
11522 | ac_cv_lib_dl_dlopen=yes |
||
11523 | else |
||
11524 | ac_cv_lib_dl_dlopen=no |
||
11525 | fi |
||
11526 | rm -f core conftest.err conftest.$ac_objext \ |
||
11527 | conftest$ac_exeext conftest.$ac_ext |
||
11528 | LIBS=$ac_check_lib_save_LIBS |
||
11529 | fi |
||
11530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
||
11531 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
||
11532 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
||
11533 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
||
11534 | else |
||
11535 | |||
11536 | lt_cv_dlopen=dyld |
||
11537 | lt_cv_dlopen_libs= |
||
11538 | lt_cv_dlopen_self=yes |
||
11539 | |||
11540 | fi |
||
11541 | |||
11542 | ;; |
||
11543 | |||
11544 | tpf*) |
||
11545 | # Don't try to run any link tests for TPF. We know it's impossible |
||
11546 | # because TPF is a cross-compiler, and we know how we open DSOs. |
||
11547 | lt_cv_dlopen=dlopen |
||
11548 | lt_cv_dlopen_libs= |
||
11549 | lt_cv_dlopen_self=no |
||
11550 | ;; |
||
11551 | |||
11552 | *) |
||
11553 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
||
11554 | if test "x$ac_cv_func_shl_load" = xyes; then : |
||
11555 | lt_cv_dlopen=shl_load |
||
11556 | else |
||
11557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
||
11558 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
||
11559 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
||
11560 | $as_echo_n "(cached) " >&6 |
||
11561 | else |
||
11562 | ac_check_lib_save_LIBS=$LIBS |
||
11563 | LIBS="-ldld $LIBS" |
||
11564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
11565 | /* end confdefs.h. */ |
||
11566 | |||
11567 | /* Override any GCC internal prototype to avoid an error. |
||
11568 | Use char because int might match the return type of a GCC |
||
11569 | builtin and then its argument prototype would still apply. */ |
||
11570 | #ifdef __cplusplus |
||
11571 | extern "C" |
||
11572 | #endif |
||
11573 | char shl_load (); |
||
11574 | int |
||
11575 | main () |
||
11576 | { |
||
11577 | return shl_load (); |
||
11578 | ; |
||
11579 | return 0; |
||
11580 | } |
||
11581 | _ACEOF |
||
11582 | if ac_fn_c_try_link "$LINENO"; then : |
||
11583 | ac_cv_lib_dld_shl_load=yes |
||
11584 | else |
||
11585 | ac_cv_lib_dld_shl_load=no |
||
11586 | fi |
||
11587 | rm -f core conftest.err conftest.$ac_objext \ |
||
11588 | conftest$ac_exeext conftest.$ac_ext |
||
11589 | LIBS=$ac_check_lib_save_LIBS |
||
11590 | fi |
||
11591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
||
11592 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
||
11593 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
||
11594 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
||
11595 | else |
||
11596 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
||
11597 | if test "x$ac_cv_func_dlopen" = xyes; then : |
||
11598 | lt_cv_dlopen=dlopen |
||
11599 | else |
||
11600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
||
11601 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
||
11602 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
||
11603 | $as_echo_n "(cached) " >&6 |
||
11604 | else |
||
11605 | ac_check_lib_save_LIBS=$LIBS |
||
11606 | LIBS="-ldl $LIBS" |
||
11607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
11608 | /* end confdefs.h. */ |
||
11609 | |||
11610 | /* Override any GCC internal prototype to avoid an error. |
||
11611 | Use char because int might match the return type of a GCC |
||
11612 | builtin and then its argument prototype would still apply. */ |
||
11613 | #ifdef __cplusplus |
||
11614 | extern "C" |
||
11615 | #endif |
||
11616 | char dlopen (); |
||
11617 | int |
||
11618 | main () |
||
11619 | { |
||
11620 | return dlopen (); |
||
11621 | ; |
||
11622 | return 0; |
||
11623 | } |
||
11624 | _ACEOF |
||
11625 | if ac_fn_c_try_link "$LINENO"; then : |
||
11626 | ac_cv_lib_dl_dlopen=yes |
||
11627 | else |
||
11628 | ac_cv_lib_dl_dlopen=no |
||
11629 | fi |
||
11630 | rm -f core conftest.err conftest.$ac_objext \ |
||
11631 | conftest$ac_exeext conftest.$ac_ext |
||
11632 | LIBS=$ac_check_lib_save_LIBS |
||
11633 | fi |
||
11634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
||
11635 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
||
11636 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
||
11637 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
||
11638 | else |
||
11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
||
11640 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
||
11641 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
||
11642 | $as_echo_n "(cached) " >&6 |
||
11643 | else |
||
11644 | ac_check_lib_save_LIBS=$LIBS |
||
11645 | LIBS="-lsvld $LIBS" |
||
11646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
11647 | /* end confdefs.h. */ |
||
11648 | |||
11649 | /* Override any GCC internal prototype to avoid an error. |
||
11650 | Use char because int might match the return type of a GCC |
||
11651 | builtin and then its argument prototype would still apply. */ |
||
11652 | #ifdef __cplusplus |
||
11653 | extern "C" |
||
11654 | #endif |
||
11655 | char dlopen (); |
||
11656 | int |
||
11657 | main () |
||
11658 | { |
||
11659 | return dlopen (); |
||
11660 | ; |
||
11661 | return 0; |
||
11662 | } |
||
11663 | _ACEOF |
||
11664 | if ac_fn_c_try_link "$LINENO"; then : |
||
11665 | ac_cv_lib_svld_dlopen=yes |
||
11666 | else |
||
11667 | ac_cv_lib_svld_dlopen=no |
||
11668 | fi |
||
11669 | rm -f core conftest.err conftest.$ac_objext \ |
||
11670 | conftest$ac_exeext conftest.$ac_ext |
||
11671 | LIBS=$ac_check_lib_save_LIBS |
||
11672 | fi |
||
11673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
||
11674 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
||
11675 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
||
11676 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
||
11677 | else |
||
11678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
||
11679 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
||
11680 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
||
11681 | $as_echo_n "(cached) " >&6 |
||
11682 | else |
||
11683 | ac_check_lib_save_LIBS=$LIBS |
||
11684 | LIBS="-ldld $LIBS" |
||
11685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
11686 | /* end confdefs.h. */ |
||
11687 | |||
11688 | /* Override any GCC internal prototype to avoid an error. |
||
11689 | Use char because int might match the return type of a GCC |
||
11690 | builtin and then its argument prototype would still apply. */ |
||
11691 | #ifdef __cplusplus |
||
11692 | extern "C" |
||
11693 | #endif |
||
11694 | char dld_link (); |
||
11695 | int |
||
11696 | main () |
||
11697 | { |
||
11698 | return dld_link (); |
||
11699 | ; |
||
11700 | return 0; |
||
11701 | } |
||
11702 | _ACEOF |
||
11703 | if ac_fn_c_try_link "$LINENO"; then : |
||
11704 | ac_cv_lib_dld_dld_link=yes |
||
11705 | else |
||
11706 | ac_cv_lib_dld_dld_link=no |
||
11707 | fi |
||
11708 | rm -f core conftest.err conftest.$ac_objext \ |
||
11709 | conftest$ac_exeext conftest.$ac_ext |
||
11710 | LIBS=$ac_check_lib_save_LIBS |
||
11711 | fi |
||
11712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
||
11713 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
||
11714 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
||
11715 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
||
11716 | fi |
||
11717 | |||
11718 | |||
11719 | fi |
||
11720 | |||
11721 | |||
11722 | fi |
||
11723 | |||
11724 | |||
11725 | fi |
||
11726 | |||
11727 | |||
11728 | fi |
||
11729 | |||
11730 | |||
11731 | fi |
||
11732 | |||
11733 | ;; |
||
11734 | esac |
||
11735 | |||
11736 | if test no = "$lt_cv_dlopen"; then |
||
11737 | enable_dlopen=no |
||
11738 | else |
||
11739 | enable_dlopen=yes |
||
11740 | fi |
||
11741 | |||
11742 | case $lt_cv_dlopen in |
||
11743 | dlopen) |
||
11744 | save_CPPFLAGS=$CPPFLAGS |
||
11745 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
||
11746 | |||
11747 | save_LDFLAGS=$LDFLAGS |
||
11748 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
||
11749 | |||
11750 | save_LIBS=$LIBS |
||
11751 | LIBS="$lt_cv_dlopen_libs $LIBS" |
||
11752 | |||
11753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
||
11754 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
||
11755 | if ${lt_cv_dlopen_self+:} false; then : |
||
11756 | $as_echo_n "(cached) " >&6 |
||
11757 | else |
||
11758 | if test yes = "$cross_compiling"; then : |
||
11759 | lt_cv_dlopen_self=cross |
||
11760 | else |
||
11761 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
||
11762 | lt_status=$lt_dlunknown |
||
11763 | cat > conftest.$ac_ext <<_LT_EOF |
||
11764 | #line $LINENO "configure" |
||
11765 | #include "confdefs.h" |
||
11766 | |||
11767 | #if HAVE_DLFCN_H |
||
11768 | #include <dlfcn.h> |
||
11769 | #endif |
||
11770 | |||
11771 | #include <stdio.h> |
||
11772 | |||
11773 | #ifdef RTLD_GLOBAL |
||
11774 | # define LT_DLGLOBAL RTLD_GLOBAL |
||
11775 | #else |
||
11776 | # ifdef DL_GLOBAL |
||
11777 | # define LT_DLGLOBAL DL_GLOBAL |
||
11778 | # else |
||
11779 | # define LT_DLGLOBAL 0 |
||
11780 | # endif |
||
11781 | #endif |
||
11782 | |||
11783 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
||
11784 | find out it does not work in some platform. */ |
||
11785 | #ifndef LT_DLLAZY_OR_NOW |
||
11786 | # ifdef RTLD_LAZY |
||
11787 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
||
11788 | # else |
||
11789 | # ifdef DL_LAZY |
||
11790 | # define LT_DLLAZY_OR_NOW DL_LAZY |
||
11791 | # else |
||
11792 | # ifdef RTLD_NOW |
||
11793 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
||
11794 | # else |
||
11795 | # ifdef DL_NOW |
||
11796 | # define LT_DLLAZY_OR_NOW DL_NOW |
||
11797 | # else |
||
11798 | # define LT_DLLAZY_OR_NOW 0 |
||
11799 | # endif |
||
11800 | # endif |
||
11801 | # endif |
||
11802 | # endif |
||
11803 | #endif |
||
11804 | |||
11805 | /* When -fvisibility=hidden is used, assume the code has been annotated |
||
11806 | correspondingly for the symbols needed. */ |
||
11807 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
||
11808 | int fnord () __attribute__((visibility("default"))); |
||
11809 | #endif |
||
11810 | |||
11811 | int fnord () { return 42; } |
||
11812 | int main () |
||
11813 | { |
||
11814 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
||
11815 | int status = $lt_dlunknown; |
||
11816 | |||
11817 | if (self) |
||
11818 | { |
||
11819 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
||
11820 | else |
||
11821 | { |
||
11822 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
||
11823 | else puts (dlerror ()); |
||
11824 | } |
||
11825 | /* dlclose (self); */ |
||
11826 | } |
||
11827 | else |
||
11828 | puts (dlerror ()); |
||
11829 | |||
11830 | return status; |
||
11831 | } |
||
11832 | _LT_EOF |
||
11833 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
||
11834 | (eval $ac_link) 2>&5 |
||
11835 | ac_status=$? |
||
11836 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
11837 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
||
11838 | (./conftest; exit; ) >&5 2>/dev/null |
||
11839 | lt_status=$? |
||
11840 | case x$lt_status in |
||
11841 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
||
11842 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
||
11843 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
||
11844 | esac |
||
11845 | else : |
||
11846 | # compilation failed |
||
11847 | lt_cv_dlopen_self=no |
||
11848 | fi |
||
11849 | fi |
||
11850 | rm -fr conftest* |
||
11851 | |||
11852 | |||
11853 | fi |
||
11854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
||
11855 | $as_echo "$lt_cv_dlopen_self" >&6; } |
||
11856 | |||
11857 | if test yes = "$lt_cv_dlopen_self"; then |
||
11858 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
||
11859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
||
11860 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
||
11861 | if ${lt_cv_dlopen_self_static+:} false; then : |
||
11862 | $as_echo_n "(cached) " >&6 |
||
11863 | else |
||
11864 | if test yes = "$cross_compiling"; then : |
||
11865 | lt_cv_dlopen_self_static=cross |
||
11866 | else |
||
11867 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
||
11868 | lt_status=$lt_dlunknown |
||
11869 | cat > conftest.$ac_ext <<_LT_EOF |
||
11870 | #line $LINENO "configure" |
||
11871 | #include "confdefs.h" |
||
11872 | |||
11873 | #if HAVE_DLFCN_H |
||
11874 | #include <dlfcn.h> |
||
11875 | #endif |
||
11876 | |||
11877 | #include <stdio.h> |
||
11878 | |||
11879 | #ifdef RTLD_GLOBAL |
||
11880 | # define LT_DLGLOBAL RTLD_GLOBAL |
||
11881 | #else |
||
11882 | # ifdef DL_GLOBAL |
||
11883 | # define LT_DLGLOBAL DL_GLOBAL |
||
11884 | # else |
||
11885 | # define LT_DLGLOBAL 0 |
||
11886 | # endif |
||
11887 | #endif |
||
11888 | |||
11889 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
||
11890 | find out it does not work in some platform. */ |
||
11891 | #ifndef LT_DLLAZY_OR_NOW |
||
11892 | # ifdef RTLD_LAZY |
||
11893 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
||
11894 | # else |
||
11895 | # ifdef DL_LAZY |
||
11896 | # define LT_DLLAZY_OR_NOW DL_LAZY |
||
11897 | # else |
||
11898 | # ifdef RTLD_NOW |
||
11899 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
||
11900 | # else |
||
11901 | # ifdef DL_NOW |
||
11902 | # define LT_DLLAZY_OR_NOW DL_NOW |
||
11903 | # else |
||
11904 | # define LT_DLLAZY_OR_NOW 0 |
||
11905 | # endif |
||
11906 | # endif |
||
11907 | # endif |
||
11908 | # endif |
||
11909 | #endif |
||
11910 | |||
11911 | /* When -fvisibility=hidden is used, assume the code has been annotated |
||
11912 | correspondingly for the symbols needed. */ |
||
11913 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
||
11914 | int fnord () __attribute__((visibility("default"))); |
||
11915 | #endif |
||
11916 | |||
11917 | int fnord () { return 42; } |
||
11918 | int main () |
||
11919 | { |
||
11920 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
||
11921 | int status = $lt_dlunknown; |
||
11922 | |||
11923 | if (self) |
||
11924 | { |
||
11925 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
||
11926 | else |
||
11927 | { |
||
11928 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
||
11929 | else puts (dlerror ()); |
||
11930 | } |
||
11931 | /* dlclose (self); */ |
||
11932 | } |
||
11933 | else |
||
11934 | puts (dlerror ()); |
||
11935 | |||
11936 | return status; |
||
11937 | } |
||
11938 | _LT_EOF |
||
11939 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
||
11940 | (eval $ac_link) 2>&5 |
||
11941 | ac_status=$? |
||
11942 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
11943 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
||
11944 | (./conftest; exit; ) >&5 2>/dev/null |
||
11945 | lt_status=$? |
||
11946 | case x$lt_status in |
||
11947 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
||
11948 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
||
11949 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
||
11950 | esac |
||
11951 | else : |
||
11952 | # compilation failed |
||
11953 | lt_cv_dlopen_self_static=no |
||
11954 | fi |
||
11955 | fi |
||
11956 | rm -fr conftest* |
||
11957 | |||
11958 | |||
11959 | fi |
||
11960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
||
11961 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
||
11962 | fi |
||
11963 | |||
11964 | CPPFLAGS=$save_CPPFLAGS |
||
11965 | LDFLAGS=$save_LDFLAGS |
||
11966 | LIBS=$save_LIBS |
||
11967 | ;; |
||
11968 | esac |
||
11969 | |||
11970 | case $lt_cv_dlopen_self in |
||
11971 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
||
11972 | *) enable_dlopen_self=unknown ;; |
||
11973 | esac |
||
11974 | |||
11975 | case $lt_cv_dlopen_self_static in |
||
11976 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
||
11977 | *) enable_dlopen_self_static=unknown ;; |
||
11978 | esac |
||
11979 | fi |
||
11980 | |||
11981 | |||
11982 | |||
11983 | |||
11984 | |||
11985 | |||
11986 | |||
11987 | |||
11988 | |||
11989 | |||
11990 | |||
11991 | |||
11992 | |||
11993 | |||
11994 | |||
11995 | |||
11996 | |||
11997 | striplib= |
||
11998 | old_striplib= |
||
11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
||
12000 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
||
12001 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
||
12002 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
||
12003 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
||
12004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
12005 | $as_echo "yes" >&6; } |
||
12006 | else |
||
12007 | # FIXME - insert some real tests, host_os isn't really good enough |
||
12008 | case $host_os in |
||
12009 | darwin*) |
||
12010 | if test -n "$STRIP"; then |
||
12011 | striplib="$STRIP -x" |
||
12012 | old_striplib="$STRIP -S" |
||
12013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
12014 | $as_echo "yes" >&6; } |
||
12015 | else |
||
12016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12017 | $as_echo "no" >&6; } |
||
12018 | fi |
||
12019 | ;; |
||
12020 | *) |
||
12021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12022 | $as_echo "no" >&6; } |
||
12023 | ;; |
||
12024 | esac |
||
12025 | fi |
||
12026 | |||
12027 | |||
12028 | |||
12029 | |||
12030 | |||
12031 | |||
12032 | |||
12033 | |||
12034 | |||
12035 | |||
12036 | |||
12037 | |||
12038 | # Report what library types will actually be built |
||
12039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
||
12040 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
||
12041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
||
12042 | $as_echo "$can_build_shared" >&6; } |
||
12043 | |||
12044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
||
12045 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
||
12046 | test no = "$can_build_shared" && enable_shared=no |
||
12047 | |||
12048 | # On AIX, shared libraries and static libraries use the same namespace, and |
||
12049 | # are all built from PIC. |
||
12050 | case $host_os in |
||
12051 | aix3*) |
||
12052 | test yes = "$enable_shared" && enable_static=no |
||
12053 | if test -n "$RANLIB"; then |
||
12054 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
||
12055 | postinstall_cmds='$RANLIB $lib' |
||
12056 | fi |
||
12057 | ;; |
||
12058 | |||
12059 | aix[4-9]*) |
||
12060 | if test ia64 != "$host_cpu"; then |
||
12061 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
||
12062 | yes,aix,yes) ;; # shared object as lib.so file only |
||
12063 | yes,svr4,*) ;; # shared object as lib.so archive member only |
||
12064 | yes,*) enable_static=no ;; # shared object in lib.a archive as well |
||
12065 | esac |
||
12066 | fi |
||
12067 | ;; |
||
12068 | esac |
||
12069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
||
12070 | $as_echo "$enable_shared" >&6; } |
||
12071 | |||
12072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
||
12073 | $as_echo_n "checking whether to build static libraries... " >&6; } |
||
12074 | # Make sure either enable_shared or enable_static is yes. |
||
12075 | test yes = "$enable_shared" || enable_static=yes |
||
12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
||
12077 | $as_echo "$enable_static" >&6; } |
||
12078 | |||
12079 | |||
12080 | |||
12081 | |||
12082 | fi |
||
12083 | ac_ext=c |
||
12084 | ac_cpp='$CPP $CPPFLAGS' |
||
12085 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
12086 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
12087 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
12088 | |||
12089 | CC=$lt_save_CC |
||
12090 | |||
12091 | |||
12092 | |||
12093 | |||
12094 | |||
12095 | |||
12096 | |||
12097 | |||
12098 | |||
12099 | |||
12100 | |||
12101 | |||
12102 | |||
12103 | |||
12104 | |||
12105 | ac_config_commands="$ac_config_commands libtool" |
||
12106 | |||
12107 | |||
12108 | |||
12109 | |||
12110 | # Only expand once: |
||
12111 | |||
12112 | |||
12113 | |||
12114 | |||
12115 | for ac_prog in flex lex |
||
12116 | do |
||
12117 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
12118 | set dummy $ac_prog; ac_word=$2 |
||
12119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
12120 | $as_echo_n "checking for $ac_word... " >&6; } |
||
12121 | if ${ac_cv_prog_LEX+:} false; then : |
||
12122 | $as_echo_n "(cached) " >&6 |
||
12123 | else |
||
12124 | if test -n "$LEX"; then |
||
12125 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
||
12126 | else |
||
12127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
12128 | for as_dir in $PATH |
||
12129 | do |
||
12130 | IFS=$as_save_IFS |
||
12131 | test -z "$as_dir" && as_dir=. |
||
12132 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
12133 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
12134 | ac_cv_prog_LEX="$ac_prog" |
||
12135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
12136 | break 2 |
||
12137 | fi |
||
12138 | done |
||
12139 | done |
||
12140 | IFS=$as_save_IFS |
||
12141 | |||
12142 | fi |
||
12143 | fi |
||
12144 | LEX=$ac_cv_prog_LEX |
||
12145 | if test -n "$LEX"; then |
||
12146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
||
12147 | $as_echo "$LEX" >&6; } |
||
12148 | else |
||
12149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12150 | $as_echo "no" >&6; } |
||
12151 | fi |
||
12152 | |||
12153 | |||
12154 | test -n "$LEX" && break |
||
12155 | done |
||
12156 | test -n "$LEX" || LEX=":" |
||
12157 | |||
12158 | if test "x$LEX" != "x:"; then |
||
12159 | cat >conftest.l <<_ACEOF |
||
12160 | %% |
||
12161 | a { ECHO; } |
||
12162 | b { REJECT; } |
||
12163 | c { yymore (); } |
||
12164 | d { yyless (1); } |
||
12165 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
||
12166 | yyless ((input () != 0)); } |
||
12167 | f { unput (yytext[0]); } |
||
12168 | . { BEGIN INITIAL; } |
||
12169 | %% |
||
12170 | #ifdef YYTEXT_POINTER |
||
12171 | extern char *yytext; |
||
12172 | #endif |
||
12173 | int |
||
12174 | main (void) |
||
12175 | { |
||
12176 | return ! yylex () + ! yywrap (); |
||
12177 | } |
||
12178 | _ACEOF |
||
12179 | { { ac_try="$LEX conftest.l" |
||
12180 | case "(($ac_try" in |
||
12181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12182 | *) ac_try_echo=$ac_try;; |
||
12183 | esac |
||
12184 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
12185 | $as_echo "$ac_try_echo"; } >&5 |
||
12186 | (eval "$LEX conftest.l") 2>&5 |
||
12187 | ac_status=$? |
||
12188 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
12189 | test $ac_status = 0; } |
||
12190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 |
||
12191 | $as_echo_n "checking lex output file root... " >&6; } |
||
12192 | if ${ac_cv_prog_lex_root+:} false; then : |
||
12193 | $as_echo_n "(cached) " >&6 |
||
12194 | else |
||
12195 | |||
12196 | if test -f lex.yy.c; then |
||
12197 | ac_cv_prog_lex_root=lex.yy |
||
12198 | elif test -f lexyy.c; then |
||
12199 | ac_cv_prog_lex_root=lexyy |
||
12200 | else |
||
12201 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
||
12202 | fi |
||
12203 | fi |
||
12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
||
12205 | $as_echo "$ac_cv_prog_lex_root" >&6; } |
||
12206 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
||
12207 | |||
12208 | if test -z "${LEXLIB+set}"; then |
||
12209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
||
12210 | $as_echo_n "checking lex library... " >&6; } |
||
12211 | if ${ac_cv_lib_lex+:} false; then : |
||
12212 | $as_echo_n "(cached) " >&6 |
||
12213 | else |
||
12214 | |||
12215 | ac_save_LIBS=$LIBS |
||
12216 | ac_cv_lib_lex='none needed' |
||
12217 | for ac_lib in '' -lfl -ll; do |
||
12218 | LIBS="$ac_lib $ac_save_LIBS" |
||
12219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
12220 | /* end confdefs.h. */ |
||
12221 | `cat $LEX_OUTPUT_ROOT.c` |
||
12222 | _ACEOF |
||
12223 | if ac_fn_c_try_link "$LINENO"; then : |
||
12224 | ac_cv_lib_lex=$ac_lib |
||
12225 | fi |
||
12226 | rm -f core conftest.err conftest.$ac_objext \ |
||
12227 | conftest$ac_exeext conftest.$ac_ext |
||
12228 | test "$ac_cv_lib_lex" != 'none needed' && break |
||
12229 | done |
||
12230 | LIBS=$ac_save_LIBS |
||
12231 | |||
12232 | fi |
||
12233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
||
12234 | $as_echo "$ac_cv_lib_lex" >&6; } |
||
12235 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
||
12236 | fi |
||
12237 | |||
12238 | |||
12239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
||
12240 | $as_echo_n "checking whether yytext is a pointer... " >&6; } |
||
12241 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
||
12242 | $as_echo_n "(cached) " >&6 |
||
12243 | else |
||
12244 | # POSIX says lex can declare yytext either as a pointer or an array; the |
||
12245 | # default is implementation-dependent. Figure out which it is, since |
||
12246 | # not all implementations provide the %pointer and %array declarations. |
||
12247 | ac_cv_prog_lex_yytext_pointer=no |
||
12248 | ac_save_LIBS=$LIBS |
||
12249 | LIBS="$LEXLIB $ac_save_LIBS" |
||
12250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
12251 | /* end confdefs.h. */ |
||
12252 | |||
12253 | #define YYTEXT_POINTER 1 |
||
12254 | `cat $LEX_OUTPUT_ROOT.c` |
||
12255 | _ACEOF |
||
12256 | if ac_fn_c_try_link "$LINENO"; then : |
||
12257 | ac_cv_prog_lex_yytext_pointer=yes |
||
12258 | fi |
||
12259 | rm -f core conftest.err conftest.$ac_objext \ |
||
12260 | conftest$ac_exeext conftest.$ac_ext |
||
12261 | LIBS=$ac_save_LIBS |
||
12262 | |||
12263 | fi |
||
12264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
||
12265 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
||
12266 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
||
12267 | |||
12268 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
||
12269 | |||
12270 | fi |
||
12271 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
||
12272 | |||
12273 | fi |
||
12274 | |||
12275 | |||
12276 | for ac_prog in 'bison -y' byacc |
||
12277 | do |
||
12278 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
12279 | set dummy $ac_prog; ac_word=$2 |
||
12280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
12281 | $as_echo_n "checking for $ac_word... " >&6; } |
||
12282 | if ${ac_cv_prog_YACC+:} false; then : |
||
12283 | $as_echo_n "(cached) " >&6 |
||
12284 | else |
||
12285 | if test -n "$YACC"; then |
||
12286 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
||
12287 | else |
||
12288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
12289 | for as_dir in $PATH |
||
12290 | do |
||
12291 | IFS=$as_save_IFS |
||
12292 | test -z "$as_dir" && as_dir=. |
||
12293 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
12294 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
12295 | ac_cv_prog_YACC="$ac_prog" |
||
12296 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
12297 | break 2 |
||
12298 | fi |
||
12299 | done |
||
12300 | done |
||
12301 | IFS=$as_save_IFS |
||
12302 | |||
12303 | fi |
||
12304 | fi |
||
12305 | YACC=$ac_cv_prog_YACC |
||
12306 | if test -n "$YACC"; then |
||
12307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
||
12308 | $as_echo "$YACC" >&6; } |
||
12309 | else |
||
12310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12311 | $as_echo "no" >&6; } |
||
12312 | fi |
||
12313 | |||
12314 | |||
12315 | test -n "$YACC" && break |
||
12316 | done |
||
12317 | test -n "$YACC" || YACC="yacc" |
||
12318 | |||
12319 | AM_YFLAGS = -d |
||
12320 | |||
12321 | ac_config_headers="$ac_config_headers config.h:config.in" |
||
12322 | |||
12323 | |||
12324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
||
12325 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
||
12326 | # Check whether --enable-maintainer-mode was given. |
||
12327 | if test "${enable_maintainer_mode+set}" = set; then : |
||
12328 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
||
12329 | else |
||
12330 | USE_MAINTAINER_MODE=no |
||
12331 | fi |
||
12332 | |||
12333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
||
12334 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
||
12335 | if test $USE_MAINTAINER_MODE = yes; then |
||
12336 | MAINTAINER_MODE_TRUE= |
||
12337 | MAINTAINER_MODE_FALSE='#' |
||
12338 | else |
||
12339 | MAINTAINER_MODE_TRUE='#' |
||
12340 | MAINTAINER_MODE_FALSE= |
||
12341 | fi |
||
12342 | |||
12343 | MAINT=$MAINTAINER_MODE_TRUE |
||
12344 | |||
12345 | |||
12346 | |||
12347 | for ac_header in regexp.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h termios.h unistd.h netdb.h |
||
12348 | do : |
||
12349 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
12350 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
||
12351 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
||
12352 | cat >>confdefs.h <<_ACEOF |
||
12353 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
12354 | _ACEOF |
||
12355 | |||
12356 | fi |
||
12357 | |||
12358 | done |
||
12359 | |||
12360 | |||
12361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5 |
||
12362 | $as_echo_n "checking for library containing regcomp... " >&6; } |
||
12363 | if ${ac_cv_search_regcomp+:} false; then : |
||
12364 | $as_echo_n "(cached) " >&6 |
||
12365 | else |
||
12366 | ac_func_search_save_LIBS=$LIBS |
||
12367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
12368 | /* end confdefs.h. */ |
||
12369 | |||
12370 | /* Override any GCC internal prototype to avoid an error. |
||
12371 | Use char because int might match the return type of a GCC |
||
12372 | builtin and then its argument prototype would still apply. */ |
||
12373 | #ifdef __cplusplus |
||
12374 | extern "C" |
||
12375 | #endif |
||
12376 | char regcomp (); |
||
12377 | int |
||
12378 | main () |
||
12379 | { |
||
12380 | return regcomp (); |
||
12381 | ; |
||
12382 | return 0; |
||
12383 | } |
||
12384 | _ACEOF |
||
12385 | for ac_lib in '' pcre2 pcre regex ; do |
||
12386 | if test -z "$ac_lib"; then |
||
12387 | ac_res="none required" |
||
12388 | else |
||
12389 | ac_res=-l$ac_lib |
||
12390 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
||
12391 | fi |
||
12392 | if ac_fn_c_try_link "$LINENO"; then : |
||
12393 | ac_cv_search_regcomp=$ac_res |
||
12394 | fi |
||
12395 | rm -f core conftest.err conftest.$ac_objext \ |
||
12396 | conftest$ac_exeext |
||
12397 | if ${ac_cv_search_regcomp+:} false; then : |
||
12398 | break |
||
12399 | fi |
||
12400 | done |
||
12401 | if ${ac_cv_search_regcomp+:} false; then : |
||
12402 | |||
12403 | else |
||
12404 | ac_cv_search_regcomp=no |
||
12405 | fi |
||
12406 | rm conftest.$ac_ext |
||
12407 | LIBS=$ac_func_search_save_LIBS |
||
12408 | fi |
||
12409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5 |
||
12410 | $as_echo "$ac_cv_search_regcomp" >&6; } |
||
12411 | ac_res=$ac_cv_search_regcomp |
||
12412 | if test "$ac_res" != no; then : |
||
12413 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
||
12414 | |||
12415 | else |
||
12416 | |||
12417 | as_fn_error $? "unable to find regcomp() function" "$LINENO" 5 |
||
12418 | |||
12419 | fi |
||
12420 | |||
12421 | |||
12422 | ac_ext=c |
||
12423 | ac_cpp='$CPP $CPPFLAGS' |
||
12424 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
12425 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
12426 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
12427 | if test -n "$ac_tool_prefix"; then |
||
12428 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
||
12429 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
||
12430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
12431 | $as_echo_n "checking for $ac_word... " >&6; } |
||
12432 | if ${ac_cv_prog_CC+:} false; then : |
||
12433 | $as_echo_n "(cached) " >&6 |
||
12434 | else |
||
12435 | if test -n "$CC"; then |
||
12436 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
12437 | else |
||
12438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
12439 | for as_dir in $PATH |
||
12440 | do |
||
12441 | IFS=$as_save_IFS |
||
12442 | test -z "$as_dir" && as_dir=. |
||
12443 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
12444 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
12445 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
||
12446 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
12447 | break 2 |
||
12448 | fi |
||
12449 | done |
||
12450 | done |
||
12451 | IFS=$as_save_IFS |
||
12452 | |||
12453 | fi |
||
12454 | fi |
||
12455 | CC=$ac_cv_prog_CC |
||
12456 | if test -n "$CC"; then |
||
12457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
||
12458 | $as_echo "$CC" >&6; } |
||
12459 | else |
||
12460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12461 | $as_echo "no" >&6; } |
||
12462 | fi |
||
12463 | |||
12464 | |||
12465 | fi |
||
12466 | if test -z "$ac_cv_prog_CC"; then |
||
12467 | ac_ct_CC=$CC |
||
12468 | # Extract the first word of "gcc", so it can be a program name with args. |
||
12469 | set dummy gcc; ac_word=$2 |
||
12470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
12471 | $as_echo_n "checking for $ac_word... " >&6; } |
||
12472 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
||
12473 | $as_echo_n "(cached) " >&6 |
||
12474 | else |
||
12475 | if test -n "$ac_ct_CC"; then |
||
12476 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
||
12477 | else |
||
12478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
12479 | for as_dir in $PATH |
||
12480 | do |
||
12481 | IFS=$as_save_IFS |
||
12482 | test -z "$as_dir" && as_dir=. |
||
12483 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
12484 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
12485 | ac_cv_prog_ac_ct_CC="gcc" |
||
12486 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
12487 | break 2 |
||
12488 | fi |
||
12489 | done |
||
12490 | done |
||
12491 | IFS=$as_save_IFS |
||
12492 | |||
12493 | fi |
||
12494 | fi |
||
12495 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
||
12496 | if test -n "$ac_ct_CC"; then |
||
12497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
||
12498 | $as_echo "$ac_ct_CC" >&6; } |
||
12499 | else |
||
12500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12501 | $as_echo "no" >&6; } |
||
12502 | fi |
||
12503 | |||
12504 | if test "x$ac_ct_CC" = x; then |
||
12505 | CC="" |
||
12506 | else |
||
12507 | case $cross_compiling:$ac_tool_warned in |
||
12508 | yes:) |
||
12509 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
12510 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
12511 | ac_tool_warned=yes ;; |
||
12512 | esac |
||
12513 | CC=$ac_ct_CC |
||
12514 | fi |
||
12515 | else |
||
12516 | CC="$ac_cv_prog_CC" |
||
12517 | fi |
||
12518 | |||
12519 | if test -z "$CC"; then |
||
12520 | if test -n "$ac_tool_prefix"; then |
||
12521 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
||
12522 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
||
12523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
12524 | $as_echo_n "checking for $ac_word... " >&6; } |
||
12525 | if ${ac_cv_prog_CC+:} false; then : |
||
12526 | $as_echo_n "(cached) " >&6 |
||
12527 | else |
||
12528 | if test -n "$CC"; then |
||
12529 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
12530 | else |
||
12531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
12532 | for as_dir in $PATH |
||
12533 | do |
||
12534 | IFS=$as_save_IFS |
||
12535 | test -z "$as_dir" && as_dir=. |
||
12536 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
12537 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
12538 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
||
12539 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
12540 | break 2 |
||
12541 | fi |
||
12542 | done |
||
12543 | done |
||
12544 | IFS=$as_save_IFS |
||
12545 | |||
12546 | fi |
||
12547 | fi |
||
12548 | CC=$ac_cv_prog_CC |
||
12549 | if test -n "$CC"; then |
||
12550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
||
12551 | $as_echo "$CC" >&6; } |
||
12552 | else |
||
12553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12554 | $as_echo "no" >&6; } |
||
12555 | fi |
||
12556 | |||
12557 | |||
12558 | fi |
||
12559 | fi |
||
12560 | if test -z "$CC"; then |
||
12561 | # Extract the first word of "cc", so it can be a program name with args. |
||
12562 | set dummy cc; ac_word=$2 |
||
12563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
12564 | $as_echo_n "checking for $ac_word... " >&6; } |
||
12565 | if ${ac_cv_prog_CC+:} false; then : |
||
12566 | $as_echo_n "(cached) " >&6 |
||
12567 | else |
||
12568 | if test -n "$CC"; then |
||
12569 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
12570 | else |
||
12571 | ac_prog_rejected=no |
||
12572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
12573 | for as_dir in $PATH |
||
12574 | do |
||
12575 | IFS=$as_save_IFS |
||
12576 | test -z "$as_dir" && as_dir=. |
||
12577 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
12578 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
12579 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
||
12580 | ac_prog_rejected=yes |
||
12581 | continue |
||
12582 | fi |
||
12583 | ac_cv_prog_CC="cc" |
||
12584 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
12585 | break 2 |
||
12586 | fi |
||
12587 | done |
||
12588 | done |
||
12589 | IFS=$as_save_IFS |
||
12590 | |||
12591 | if test $ac_prog_rejected = yes; then |
||
12592 | # We found a bogon in the path, so make sure we never use it. |
||
12593 | set dummy $ac_cv_prog_CC |
||
12594 | shift |
||
12595 | if test $# != 0; then |
||
12596 | # We chose a different compiler from the bogus one. |
||
12597 | # However, it has the same basename, so the bogon will be chosen |
||
12598 | # first if we set CC to just the basename; use the full file name. |
||
12599 | shift |
||
12600 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
||
12601 | fi |
||
12602 | fi |
||
12603 | fi |
||
12604 | fi |
||
12605 | CC=$ac_cv_prog_CC |
||
12606 | if test -n "$CC"; then |
||
12607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
||
12608 | $as_echo "$CC" >&6; } |
||
12609 | else |
||
12610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12611 | $as_echo "no" >&6; } |
||
12612 | fi |
||
12613 | |||
12614 | |||
12615 | fi |
||
12616 | if test -z "$CC"; then |
||
12617 | if test -n "$ac_tool_prefix"; then |
||
12618 | for ac_prog in cl.exe |
||
12619 | do |
||
12620 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
12621 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
12622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
12623 | $as_echo_n "checking for $ac_word... " >&6; } |
||
12624 | if ${ac_cv_prog_CC+:} false; then : |
||
12625 | $as_echo_n "(cached) " >&6 |
||
12626 | else |
||
12627 | if test -n "$CC"; then |
||
12628 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
12629 | else |
||
12630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
12631 | for as_dir in $PATH |
||
12632 | do |
||
12633 | IFS=$as_save_IFS |
||
12634 | test -z "$as_dir" && as_dir=. |
||
12635 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
12636 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
12637 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
||
12638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
12639 | break 2 |
||
12640 | fi |
||
12641 | done |
||
12642 | done |
||
12643 | IFS=$as_save_IFS |
||
12644 | |||
12645 | fi |
||
12646 | fi |
||
12647 | CC=$ac_cv_prog_CC |
||
12648 | if test -n "$CC"; then |
||
12649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
||
12650 | $as_echo "$CC" >&6; } |
||
12651 | else |
||
12652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12653 | $as_echo "no" >&6; } |
||
12654 | fi |
||
12655 | |||
12656 | |||
12657 | test -n "$CC" && break |
||
12658 | done |
||
12659 | fi |
||
12660 | if test -z "$CC"; then |
||
12661 | ac_ct_CC=$CC |
||
12662 | for ac_prog in cl.exe |
||
12663 | do |
||
12664 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
12665 | set dummy $ac_prog; ac_word=$2 |
||
12666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
12667 | $as_echo_n "checking for $ac_word... " >&6; } |
||
12668 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
||
12669 | $as_echo_n "(cached) " >&6 |
||
12670 | else |
||
12671 | if test -n "$ac_ct_CC"; then |
||
12672 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
||
12673 | else |
||
12674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
12675 | for as_dir in $PATH |
||
12676 | do |
||
12677 | IFS=$as_save_IFS |
||
12678 | test -z "$as_dir" && as_dir=. |
||
12679 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
12680 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
12681 | ac_cv_prog_ac_ct_CC="$ac_prog" |
||
12682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
12683 | break 2 |
||
12684 | fi |
||
12685 | done |
||
12686 | done |
||
12687 | IFS=$as_save_IFS |
||
12688 | |||
12689 | fi |
||
12690 | fi |
||
12691 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
||
12692 | if test -n "$ac_ct_CC"; then |
||
12693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
||
12694 | $as_echo "$ac_ct_CC" >&6; } |
||
12695 | else |
||
12696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12697 | $as_echo "no" >&6; } |
||
12698 | fi |
||
12699 | |||
12700 | |||
12701 | test -n "$ac_ct_CC" && break |
||
12702 | done |
||
12703 | |||
12704 | if test "x$ac_ct_CC" = x; then |
||
12705 | CC="" |
||
12706 | else |
||
12707 | case $cross_compiling:$ac_tool_warned in |
||
12708 | yes:) |
||
12709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
12710 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
12711 | ac_tool_warned=yes ;; |
||
12712 | esac |
||
12713 | CC=$ac_ct_CC |
||
12714 | fi |
||
12715 | fi |
||
12716 | |||
12717 | fi |
||
12718 | |||
12719 | |||
12720 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
12721 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
12722 | as_fn_error $? "no acceptable C compiler found in \$PATH |
||
12723 | See \`config.log' for more details" "$LINENO" 5; } |
||
12724 | |||
12725 | # Provide some information about the compiler. |
||
12726 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
||
12727 | set X $ac_compile |
||
12728 | ac_compiler=$2 |
||
12729 | for ac_option in --version -v -V -qversion; do |
||
12730 | { { ac_try="$ac_compiler $ac_option >&5" |
||
12731 | case "(($ac_try" in |
||
12732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12733 | *) ac_try_echo=$ac_try;; |
||
12734 | esac |
||
12735 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
12736 | $as_echo "$ac_try_echo"; } >&5 |
||
12737 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
||
12738 | ac_status=$? |
||
12739 | if test -s conftest.err; then |
||
12740 | sed '10a\ |
||
12741 | ... rest of stderr output deleted ... |
||
12742 | 10q' conftest.err >conftest.er1 |
||
12743 | cat conftest.er1 >&5 |
||
12744 | fi |
||
12745 | rm -f conftest.er1 conftest.err |
||
12746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
12747 | test $ac_status = 0; } |
||
12748 | done |
||
12749 | |||
12750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
||
12751 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
||
12752 | if ${ac_cv_c_compiler_gnu+:} false; then : |
||
12753 | $as_echo_n "(cached) " >&6 |
||
12754 | else |
||
12755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
12756 | /* end confdefs.h. */ |
||
12757 | |||
12758 | int |
||
12759 | main () |
||
12760 | { |
||
12761 | #ifndef __GNUC__ |
||
12762 | choke me |
||
12763 | #endif |
||
12764 | |||
12765 | ; |
||
12766 | return 0; |
||
12767 | } |
||
12768 | _ACEOF |
||
12769 | if ac_fn_c_try_compile "$LINENO"; then : |
||
12770 | ac_compiler_gnu=yes |
||
12771 | else |
||
12772 | ac_compiler_gnu=no |
||
12773 | fi |
||
12774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12775 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
||
12776 | |||
12777 | fi |
||
12778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
||
12779 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
||
12780 | if test $ac_compiler_gnu = yes; then |
||
12781 | GCC=yes |
||
12782 | else |
||
12783 | GCC= |
||
12784 | fi |
||
12785 | ac_test_CFLAGS=${CFLAGS+set} |
||
12786 | ac_save_CFLAGS=$CFLAGS |
||
12787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
||
12788 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
||
12789 | if ${ac_cv_prog_cc_g+:} false; then : |
||
12790 | $as_echo_n "(cached) " >&6 |
||
12791 | else |
||
12792 | ac_save_c_werror_flag=$ac_c_werror_flag |
||
12793 | ac_c_werror_flag=yes |
||
12794 | ac_cv_prog_cc_g=no |
||
12795 | CFLAGS="-g" |
||
12796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
12797 | /* end confdefs.h. */ |
||
12798 | |||
12799 | int |
||
12800 | main () |
||
12801 | { |
||
12802 | |||
12803 | ; |
||
12804 | return 0; |
||
12805 | } |
||
12806 | _ACEOF |
||
12807 | if ac_fn_c_try_compile "$LINENO"; then : |
||
12808 | ac_cv_prog_cc_g=yes |
||
12809 | else |
||
12810 | CFLAGS="" |
||
12811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
12812 | /* end confdefs.h. */ |
||
12813 | |||
12814 | int |
||
12815 | main () |
||
12816 | { |
||
12817 | |||
12818 | ; |
||
12819 | return 0; |
||
12820 | } |
||
12821 | _ACEOF |
||
12822 | if ac_fn_c_try_compile "$LINENO"; then : |
||
12823 | |||
12824 | else |
||
12825 | ac_c_werror_flag=$ac_save_c_werror_flag |
||
12826 | CFLAGS="-g" |
||
12827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
12828 | /* end confdefs.h. */ |
||
12829 | |||
12830 | int |
||
12831 | main () |
||
12832 | { |
||
12833 | |||
12834 | ; |
||
12835 | return 0; |
||
12836 | } |
||
12837 | _ACEOF |
||
12838 | if ac_fn_c_try_compile "$LINENO"; then : |
||
12839 | ac_cv_prog_cc_g=yes |
||
12840 | fi |
||
12841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12842 | fi |
||
12843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12844 | fi |
||
12845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12846 | ac_c_werror_flag=$ac_save_c_werror_flag |
||
12847 | fi |
||
12848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
||
12849 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
||
12850 | if test "$ac_test_CFLAGS" = set; then |
||
12851 | CFLAGS=$ac_save_CFLAGS |
||
12852 | elif test $ac_cv_prog_cc_g = yes; then |
||
12853 | if test "$GCC" = yes; then |
||
12854 | CFLAGS="-g -O2" |
||
12855 | else |
||
12856 | CFLAGS="-g" |
||
12857 | fi |
||
12858 | else |
||
12859 | if test "$GCC" = yes; then |
||
12860 | CFLAGS="-O2" |
||
12861 | else |
||
12862 | CFLAGS= |
||
12863 | fi |
||
12864 | fi |
||
12865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
||
12866 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
||
12867 | if ${ac_cv_prog_cc_c89+:} false; then : |
||
12868 | $as_echo_n "(cached) " >&6 |
||
12869 | else |
||
12870 | ac_cv_prog_cc_c89=no |
||
12871 | ac_save_CC=$CC |
||
12872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
12873 | /* end confdefs.h. */ |
||
12874 | #include <stdarg.h> |
||
12875 | #include <stdio.h> |
||
12876 | struct stat; |
||
12877 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
||
12878 | struct buf { int x; }; |
||
12879 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
||
12880 | static char *e (p, i) |
||
12881 | char **p; |
||
12882 | int i; |
||
12883 | { |
||
12884 | return p[i]; |
||
12885 | } |
||
12886 | static char *f (char * (*g) (char **, int), char **p, ...) |
||
12887 | { |
||
12888 | char *s; |
||
12889 | va_list v; |
||
12890 | va_start (v,p); |
||
12891 | s = g (p, va_arg (v,int)); |
||
12892 | va_end (v); |
||
12893 | return s; |
||
12894 | } |
||
12895 | |||
12896 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
||
12897 | function prototypes and stuff, but not '\xHH' hex character constants. |
||
12898 | These don't provoke an error unfortunately, instead are silently treated |
||
12899 | as 'x'. The following induces an error, until -std is added to get |
||
12900 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
||
12901 | array size at least. It's necessary to write '\x00'==0 to get something |
||
12902 | that's true only with -std. */ |
||
12903 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
||
12904 | |||
12905 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
||
12906 | inside strings and character constants. */ |
||
12907 | #define FOO(x) 'x' |
||
12908 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
||
12909 | |||
12910 | int test (int i, double x); |
||
12911 | struct s1 {int (*f) (int a);}; |
||
12912 | struct s2 {int (*f) (double a);}; |
||
12913 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
||
12914 | int argc; |
||
12915 | char **argv; |
||
12916 | int |
||
12917 | main () |
||
12918 | { |
||
12919 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
||
12920 | ; |
||
12921 | return 0; |
||
12922 | } |
||
12923 | _ACEOF |
||
12924 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
||
12925 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
||
12926 | do |
||
12927 | CC="$ac_save_CC $ac_arg" |
||
12928 | if ac_fn_c_try_compile "$LINENO"; then : |
||
12929 | ac_cv_prog_cc_c89=$ac_arg |
||
12930 | fi |
||
12931 | rm -f core conftest.err conftest.$ac_objext |
||
12932 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
||
12933 | done |
||
12934 | rm -f conftest.$ac_ext |
||
12935 | CC=$ac_save_CC |
||
12936 | |||
12937 | fi |
||
12938 | # AC_CACHE_VAL |
||
12939 | case "x$ac_cv_prog_cc_c89" in |
||
12940 | x) |
||
12941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
||
12942 | $as_echo "none needed" >&6; } ;; |
||
12943 | xno) |
||
12944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
||
12945 | $as_echo "unsupported" >&6; } ;; |
||
12946 | *) |
||
12947 | CC="$CC $ac_cv_prog_cc_c89" |
||
12948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
||
12949 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
||
12950 | esac |
||
12951 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
||
12952 | |||
12953 | fi |
||
12954 | |||
12955 | ac_ext=c |
||
12956 | ac_cpp='$CPP $CPPFLAGS' |
||
12957 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
12958 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
12959 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
12960 | |||
12961 | ac_ext=c |
||
12962 | ac_cpp='$CPP $CPPFLAGS' |
||
12963 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
12964 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
12965 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
12966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
||
12967 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
||
12968 | if ${am_cv_prog_cc_c_o+:} false; then : |
||
12969 | $as_echo_n "(cached) " >&6 |
||
12970 | else |
||
12971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
12972 | /* end confdefs.h. */ |
||
12973 | |||
12974 | int |
||
12975 | main () |
||
12976 | { |
||
12977 | |||
12978 | ; |
||
12979 | return 0; |
||
12980 | } |
||
12981 | _ACEOF |
||
12982 | # Make sure it works both with $CC and with simple cc. |
||
12983 | # Following AC_PROG_CC_C_O, we do the test twice because some |
||
12984 | # compilers refuse to overwrite an existing .o file with -o, |
||
12985 | # though they will create one. |
||
12986 | am_cv_prog_cc_c_o=yes |
||
12987 | for am_i in 1 2; do |
||
12988 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
||
12989 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
||
12990 | ac_status=$? |
||
12991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12992 | (exit $ac_status); } \ |
||
12993 | && test -f conftest2.$ac_objext; then |
||
12994 | : OK |
||
12995 | else |
||
12996 | am_cv_prog_cc_c_o=no |
||
12997 | break |
||
12998 | fi |
||
12999 | done |
||
13000 | rm -f core conftest* |
||
13001 | unset am_i |
||
13002 | fi |
||
13003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
||
13004 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
||
13005 | if test "$am_cv_prog_cc_c_o" != yes; then |
||
13006 | # Losing compiler, so override with the script. |
||
13007 | # FIXME: It is wrong to rewrite CC. |
||
13008 | # But if we don't then we get into trouble of one sort or another. |
||
13009 | # A longer-term fix would be to have automake use am__CC in this case, |
||
13010 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
||
13011 | CC="$am_aux_dir/compile $CC" |
||
13012 | fi |
||
13013 | ac_ext=c |
||
13014 | ac_cpp='$CPP $CPPFLAGS' |
||
13015 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
13016 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
13017 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
13018 | |||
13019 | |||
13020 | depcc="$CC" am_compiler_list= |
||
13021 | |||
13022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
||
13023 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
||
13024 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
||
13025 | $as_echo_n "(cached) " >&6 |
||
13026 | else |
||
13027 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
||
13028 | # We make a subdir and do the tests there. Otherwise we can end up |
||
13029 | # making bogus files that we don't know about and never remove. For |
||
13030 | # instance it was reported that on HP-UX the gcc test will end up |
||
13031 | # making a dummy file named 'D' -- because '-MD' means "put the output |
||
13032 | # in D". |
||
13033 | rm -rf conftest.dir |
||
13034 | mkdir conftest.dir |
||
13035 | # Copy depcomp to subdir because otherwise we won't find it if we're |
||
13036 | # using a relative directory. |
||
13037 | cp "$am_depcomp" conftest.dir |
||
13038 | cd conftest.dir |
||
13039 | # We will build objects and dependencies in a subdirectory because |
||
13040 | # it helps to detect inapplicable dependency modes. For instance |
||
13041 | # both Tru64's cc and ICC support -MD to output dependencies as a |
||
13042 | # side effect of compilation, but ICC will put the dependencies in |
||
13043 | # the current directory while Tru64 will put them in the object |
||
13044 | # directory. |
||
13045 | mkdir sub |
||
13046 | |||
13047 | am_cv_CC_dependencies_compiler_type=none |
||
13048 | if test "$am_compiler_list" = ""; then |
||
13049 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
||
13050 | fi |
||
13051 | am__universal=false |
||
13052 | case " $depcc " in #( |
||
13053 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
||
13054 | esac |
||
13055 | |||
13056 | for depmode in $am_compiler_list; do |
||
13057 | # Setup a source with many dependencies, because some compilers |
||
13058 | # like to wrap large dependency lists on column 80 (with \), and |
||
13059 | # we should not choose a depcomp mode which is confused by this. |
||
13060 | # |
||
13061 | # We need to recreate these files for each test, as the compiler may |
||
13062 | # overwrite some of them when testing with obscure command lines. |
||
13063 | # This happens at least with the AIX C compiler. |
||
13064 | : > sub/conftest.c |
||
13065 | for i in 1 2 3 4 5 6; do |
||
13066 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
||
13067 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
||
13068 | # Solaris 10 /bin/sh. |
||
13069 | echo '/* dummy */' > sub/conftst$i.h |
||
13070 | done |
||
13071 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
||
13072 | |||
13073 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
||
13074 | # mode. It turns out that the SunPro C++ compiler does not properly |
||
13075 | # handle '-M -o', and we need to detect this. Also, some Intel |
||
13076 | # versions had trouble with output in subdirs. |
||
13077 | am__obj=sub/conftest.${OBJEXT-o} |
||
13078 | am__minus_obj="-o $am__obj" |
||
13079 | case $depmode in |
||
13080 | gcc) |
||
13081 | # This depmode causes a compiler race in universal mode. |
||
13082 | test "$am__universal" = false || continue |
||
13083 | ;; |
||
13084 | nosideeffect) |
||
13085 | # After this tag, mechanisms are not by side-effect, so they'll |
||
13086 | # only be used when explicitly requested. |
||
13087 | if test "x$enable_dependency_tracking" = xyes; then |
||
13088 | continue |
||
13089 | else |
||
13090 | break |
||
13091 | fi |
||
13092 | ;; |
||
13093 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
||
13094 | # This compiler won't grok '-c -o', but also, the minuso test has |
||
13095 | # not run yet. These depmodes are late enough in the game, and |
||
13096 | # so weak that their functioning should not be impacted. |
||
13097 | am__obj=conftest.${OBJEXT-o} |
||
13098 | am__minus_obj= |
||
13099 | ;; |
||
13100 | none) break ;; |
||
13101 | esac |
||
13102 | if depmode=$depmode \ |
||
13103 | source=sub/conftest.c object=$am__obj \ |
||
13104 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
||
13105 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
||
13106 | >/dev/null 2>conftest.err && |
||
13107 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
||
13108 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
||
13109 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
||
13110 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
||
13111 | # icc doesn't choke on unknown options, it will just issue warnings |
||
13112 | # or remarks (even with -Werror). So we grep stderr for any message |
||
13113 | # that says an option was ignored or not supported. |
||
13114 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
||
13115 | # icc: Command line warning: ignoring option '-M'; no argument required |
||
13116 | # The diagnosis changed in icc 8.0: |
||
13117 | # icc: Command line remark: option '-MP' not supported |
||
13118 | if (grep 'ignoring option' conftest.err || |
||
13119 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
||
13120 | am_cv_CC_dependencies_compiler_type=$depmode |
||
13121 | break |
||
13122 | fi |
||
13123 | fi |
||
13124 | done |
||
13125 | |||
13126 | cd .. |
||
13127 | rm -rf conftest.dir |
||
13128 | else |
||
13129 | am_cv_CC_dependencies_compiler_type=none |
||
13130 | fi |
||
13131 | |||
13132 | fi |
||
13133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
||
13134 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
||
13135 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
||
13136 | |||
13137 | if |
||
13138 | test "x$enable_dependency_tracking" != xno \ |
||
13139 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
||
13140 | am__fastdepCC_TRUE= |
||
13141 | am__fastdepCC_FALSE='#' |
||
13142 | else |
||
13143 | am__fastdepCC_TRUE='#' |
||
13144 | am__fastdepCC_FALSE= |
||
13145 | fi |
||
13146 | |||
13147 | |||
13148 | |||
13149 | test ! -z "$GCC" && CFLAGS="$CFLAGS -Wall -W -Wundef -Wshadow -Wsequence-point" |
||
13150 | |||
13151 | ac_ext=cpp |
||
13152 | ac_cpp='$CXXCPP $CPPFLAGS' |
||
13153 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
13154 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
13155 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
||
13156 | if test -z "$CXX"; then |
||
13157 | if test -n "$CCC"; then |
||
13158 | CXX=$CCC |
||
13159 | else |
||
13160 | if test -n "$ac_tool_prefix"; then |
||
13161 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
||
13162 | do |
||
13163 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
13164 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
13165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
13166 | $as_echo_n "checking for $ac_word... " >&6; } |
||
13167 | if ${ac_cv_prog_CXX+:} false; then : |
||
13168 | $as_echo_n "(cached) " >&6 |
||
13169 | else |
||
13170 | if test -n "$CXX"; then |
||
13171 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
||
13172 | else |
||
13173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
13174 | for as_dir in $PATH |
||
13175 | do |
||
13176 | IFS=$as_save_IFS |
||
13177 | test -z "$as_dir" && as_dir=. |
||
13178 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
13179 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
13180 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
||
13181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
13182 | break 2 |
||
13183 | fi |
||
13184 | done |
||
13185 | done |
||
13186 | IFS=$as_save_IFS |
||
13187 | |||
13188 | fi |
||
13189 | fi |
||
13190 | CXX=$ac_cv_prog_CXX |
||
13191 | if test -n "$CXX"; then |
||
13192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
||
13193 | $as_echo "$CXX" >&6; } |
||
13194 | else |
||
13195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
13196 | $as_echo "no" >&6; } |
||
13197 | fi |
||
13198 | |||
13199 | |||
13200 | test -n "$CXX" && break |
||
13201 | done |
||
13202 | fi |
||
13203 | if test -z "$CXX"; then |
||
13204 | ac_ct_CXX=$CXX |
||
13205 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
||
13206 | do |
||
13207 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
13208 | set dummy $ac_prog; ac_word=$2 |
||
13209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
13210 | $as_echo_n "checking for $ac_word... " >&6; } |
||
13211 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
||
13212 | $as_echo_n "(cached) " >&6 |
||
13213 | else |
||
13214 | if test -n "$ac_ct_CXX"; then |
||
13215 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
||
13216 | else |
||
13217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
13218 | for as_dir in $PATH |
||
13219 | do |
||
13220 | IFS=$as_save_IFS |
||
13221 | test -z "$as_dir" && as_dir=. |
||
13222 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
13223 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
13224 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
||
13225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
13226 | break 2 |
||
13227 | fi |
||
13228 | done |
||
13229 | done |
||
13230 | IFS=$as_save_IFS |
||
13231 | |||
13232 | fi |
||
13233 | fi |
||
13234 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
||
13235 | if test -n "$ac_ct_CXX"; then |
||
13236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
||
13237 | $as_echo "$ac_ct_CXX" >&6; } |
||
13238 | else |
||
13239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
13240 | $as_echo "no" >&6; } |
||
13241 | fi |
||
13242 | |||
13243 | |||
13244 | test -n "$ac_ct_CXX" && break |
||
13245 | done |
||
13246 | |||
13247 | if test "x$ac_ct_CXX" = x; then |
||
13248 | CXX="g++" |
||
13249 | else |
||
13250 | case $cross_compiling:$ac_tool_warned in |
||
13251 | yes:) |
||
13252 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
13253 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
13254 | ac_tool_warned=yes ;; |
||
13255 | esac |
||
13256 | CXX=$ac_ct_CXX |
||
13257 | fi |
||
13258 | fi |
||
13259 | |||
13260 | fi |
||
13261 | fi |
||
13262 | # Provide some information about the compiler. |
||
13263 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
||
13264 | set X $ac_compile |
||
13265 | ac_compiler=$2 |
||
13266 | for ac_option in --version -v -V -qversion; do |
||
13267 | { { ac_try="$ac_compiler $ac_option >&5" |
||
13268 | case "(($ac_try" in |
||
13269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13270 | *) ac_try_echo=$ac_try;; |
||
13271 | esac |
||
13272 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
13273 | $as_echo "$ac_try_echo"; } >&5 |
||
13274 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
||
13275 | ac_status=$? |
||
13276 | if test -s conftest.err; then |
||
13277 | sed '10a\ |
||
13278 | ... rest of stderr output deleted ... |
||
13279 | 10q' conftest.err >conftest.er1 |
||
13280 | cat conftest.er1 >&5 |
||
13281 | fi |
||
13282 | rm -f conftest.er1 conftest.err |
||
13283 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
13284 | test $ac_status = 0; } |
||
13285 | done |
||
13286 | |||
13287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
||
13288 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
||
13289 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
||
13290 | $as_echo_n "(cached) " >&6 |
||
13291 | else |
||
13292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
13293 | /* end confdefs.h. */ |
||
13294 | |||
13295 | int |
||
13296 | main () |
||
13297 | { |
||
13298 | #ifndef __GNUC__ |
||
13299 | choke me |
||
13300 | #endif |
||
13301 | |||
13302 | ; |
||
13303 | return 0; |
||
13304 | } |
||
13305 | _ACEOF |
||
13306 | if ac_fn_cxx_try_compile "$LINENO"; then : |
||
13307 | ac_compiler_gnu=yes |
||
13308 | else |
||
13309 | ac_compiler_gnu=no |
||
13310 | fi |
||
13311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
13312 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
||
13313 | |||
13314 | fi |
||
13315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
||
13316 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
||
13317 | if test $ac_compiler_gnu = yes; then |
||
13318 | GXX=yes |
||
13319 | else |
||
13320 | GXX= |
||
13321 | fi |
||
13322 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
||
13323 | ac_save_CXXFLAGS=$CXXFLAGS |
||
13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
||
13325 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
||
13326 | if ${ac_cv_prog_cxx_g+:} false; then : |
||
13327 | $as_echo_n "(cached) " >&6 |
||
13328 | else |
||
13329 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
||
13330 | ac_cxx_werror_flag=yes |
||
13331 | ac_cv_prog_cxx_g=no |
||
13332 | CXXFLAGS="-g" |
||
13333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
13334 | /* end confdefs.h. */ |
||
13335 | |||
13336 | int |
||
13337 | main () |
||
13338 | { |
||
13339 | |||
13340 | ; |
||
13341 | return 0; |
||
13342 | } |
||
13343 | _ACEOF |
||
13344 | if ac_fn_cxx_try_compile "$LINENO"; then : |
||
13345 | ac_cv_prog_cxx_g=yes |
||
13346 | else |
||
13347 | CXXFLAGS="" |
||
13348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
13349 | /* end confdefs.h. */ |
||
13350 | |||
13351 | int |
||
13352 | main () |
||
13353 | { |
||
13354 | |||
13355 | ; |
||
13356 | return 0; |
||
13357 | } |
||
13358 | _ACEOF |
||
13359 | if ac_fn_cxx_try_compile "$LINENO"; then : |
||
13360 | |||
13361 | else |
||
13362 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
||
13363 | CXXFLAGS="-g" |
||
13364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
13365 | /* end confdefs.h. */ |
||
13366 | |||
13367 | int |
||
13368 | main () |
||
13369 | { |
||
13370 | |||
13371 | ; |
||
13372 | return 0; |
||
13373 | } |
||
13374 | _ACEOF |
||
13375 | if ac_fn_cxx_try_compile "$LINENO"; then : |
||
13376 | ac_cv_prog_cxx_g=yes |
||
13377 | fi |
||
13378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
13379 | fi |
||
13380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
13381 | fi |
||
13382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
13383 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
||
13384 | fi |
||
13385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
||
13386 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
||
13387 | if test "$ac_test_CXXFLAGS" = set; then |
||
13388 | CXXFLAGS=$ac_save_CXXFLAGS |
||
13389 | elif test $ac_cv_prog_cxx_g = yes; then |
||
13390 | if test "$GXX" = yes; then |
||
13391 | CXXFLAGS="-g -O2" |
||
13392 | else |
||
13393 | CXXFLAGS="-g" |
||
13394 | fi |
||
13395 | else |
||
13396 | if test "$GXX" = yes; then |
||
13397 | CXXFLAGS="-O2" |
||
13398 | else |
||
13399 | CXXFLAGS= |
||
13400 | fi |
||
13401 | fi |
||
13402 | ac_ext=c |
||
13403 | ac_cpp='$CPP $CPPFLAGS' |
||
13404 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
13405 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
13406 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
13407 | |||
13408 | depcc="$CXX" am_compiler_list= |
||
13409 | |||
13410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
||
13411 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
||
13412 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
||
13413 | $as_echo_n "(cached) " >&6 |
||
13414 | else |
||
13415 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
||
13416 | # We make a subdir and do the tests there. Otherwise we can end up |
||
13417 | # making bogus files that we don't know about and never remove. For |
||
13418 | # instance it was reported that on HP-UX the gcc test will end up |
||
13419 | # making a dummy file named 'D' -- because '-MD' means "put the output |
||
13420 | # in D". |
||
13421 | rm -rf conftest.dir |
||
13422 | mkdir conftest.dir |
||
13423 | # Copy depcomp to subdir because otherwise we won't find it if we're |
||
13424 | # using a relative directory. |
||
13425 | cp "$am_depcomp" conftest.dir |
||
13426 | cd conftest.dir |
||
13427 | # We will build objects and dependencies in a subdirectory because |
||
13428 | # it helps to detect inapplicable dependency modes. For instance |
||
13429 | # both Tru64's cc and ICC support -MD to output dependencies as a |
||
13430 | # side effect of compilation, but ICC will put the dependencies in |
||
13431 | # the current directory while Tru64 will put them in the object |
||
13432 | # directory. |
||
13433 | mkdir sub |
||
13434 | |||
13435 | am_cv_CXX_dependencies_compiler_type=none |
||
13436 | if test "$am_compiler_list" = ""; then |
||
13437 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
||
13438 | fi |
||
13439 | am__universal=false |
||
13440 | case " $depcc " in #( |
||
13441 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
||
13442 | esac |
||
13443 | |||
13444 | for depmode in $am_compiler_list; do |
||
13445 | # Setup a source with many dependencies, because some compilers |
||
13446 | # like to wrap large dependency lists on column 80 (with \), and |
||
13447 | # we should not choose a depcomp mode which is confused by this. |
||
13448 | # |
||
13449 | # We need to recreate these files for each test, as the compiler may |
||
13450 | # overwrite some of them when testing with obscure command lines. |
||
13451 | # This happens at least with the AIX C compiler. |
||
13452 | : > sub/conftest.c |
||
13453 | for i in 1 2 3 4 5 6; do |
||
13454 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
||
13455 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
||
13456 | # Solaris 10 /bin/sh. |
||
13457 | echo '/* dummy */' > sub/conftst$i.h |
||
13458 | done |
||
13459 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
||
13460 | |||
13461 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
||
13462 | # mode. It turns out that the SunPro C++ compiler does not properly |
||
13463 | # handle '-M -o', and we need to detect this. Also, some Intel |
||
13464 | # versions had trouble with output in subdirs. |
||
13465 | am__obj=sub/conftest.${OBJEXT-o} |
||
13466 | am__minus_obj="-o $am__obj" |
||
13467 | case $depmode in |
||
13468 | gcc) |
||
13469 | # This depmode causes a compiler race in universal mode. |
||
13470 | test "$am__universal" = false || continue |
||
13471 | ;; |
||
13472 | nosideeffect) |
||
13473 | # After this tag, mechanisms are not by side-effect, so they'll |
||
13474 | # only be used when explicitly requested. |
||
13475 | if test "x$enable_dependency_tracking" = xyes; then |
||
13476 | continue |
||
13477 | else |
||
13478 | break |
||
13479 | fi |
||
13480 | ;; |
||
13481 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
||
13482 | # This compiler won't grok '-c -o', but also, the minuso test has |
||
13483 | # not run yet. These depmodes are late enough in the game, and |
||
13484 | # so weak that their functioning should not be impacted. |
||
13485 | am__obj=conftest.${OBJEXT-o} |
||
13486 | am__minus_obj= |
||
13487 | ;; |
||
13488 | none) break ;; |
||
13489 | esac |
||
13490 | if depmode=$depmode \ |
||
13491 | source=sub/conftest.c object=$am__obj \ |
||
13492 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
||
13493 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
||
13494 | >/dev/null 2>conftest.err && |
||
13495 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
||
13496 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
||
13497 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
||
13498 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
||
13499 | # icc doesn't choke on unknown options, it will just issue warnings |
||
13500 | # or remarks (even with -Werror). So we grep stderr for any message |
||
13501 | # that says an option was ignored or not supported. |
||
13502 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
||
13503 | # icc: Command line warning: ignoring option '-M'; no argument required |
||
13504 | # The diagnosis changed in icc 8.0: |
||
13505 | # icc: Command line remark: option '-MP' not supported |
||
13506 | if (grep 'ignoring option' conftest.err || |
||
13507 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
||
13508 | am_cv_CXX_dependencies_compiler_type=$depmode |
||
13509 | break |
||
13510 | fi |
||
13511 | fi |
||
13512 | done |
||
13513 | |||
13514 | cd .. |
||
13515 | rm -rf conftest.dir |
||
13516 | else |
||
13517 | am_cv_CXX_dependencies_compiler_type=none |
||
13518 | fi |
||
13519 | |||
13520 | fi |
||
13521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
||
13522 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
||
13523 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
||
13524 | |||
13525 | if |
||
13526 | test "x$enable_dependency_tracking" != xno \ |
||
13527 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
||
13528 | am__fastdepCXX_TRUE= |
||
13529 | am__fastdepCXX_FALSE='#' |
||
13530 | else |
||
13531 | am__fastdepCXX_TRUE='#' |
||
13532 | am__fastdepCXX_FALSE= |
||
13533 | fi |
||
13534 | |||
13535 | |||
13536 | |||
13537 | |||
13538 | func_stripname_cnf () |
||
13539 | { |
||
13540 | case $2 in |
||
13541 | .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; |
||
13542 | *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; |
||
13543 | esac |
||
13544 | } # func_stripname_cnf |
||
13545 | |||
13546 | if test -n "$CXX" && ( test no != "$CXX" && |
||
13547 | ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || |
||
13548 | (test g++ != "$CXX"))); then |
||
13549 | ac_ext=cpp |
||
13550 | ac_cpp='$CXXCPP $CPPFLAGS' |
||
13551 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
13552 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
13553 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
||
13554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
||
13555 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
||
13556 | if test -z "$CXXCPP"; then |
||
13557 | if ${ac_cv_prog_CXXCPP+:} false; then : |
||
13558 | $as_echo_n "(cached) " >&6 |
||
13559 | else |
||
13560 | # Double quotes because CXXCPP needs to be expanded |
||
13561 | for CXXCPP in "$CXX -E" "/lib/cpp" |
||
13562 | do |
||
13563 | ac_preproc_ok=false |
||
13564 | for ac_cxx_preproc_warn_flag in '' yes |
||
13565 | do |
||
13566 | # Use a header file that comes with gcc, so configuring glibc |
||
13567 | # with a fresh cross-compiler works. |
||
13568 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
13569 | # <limits.h> exists even on freestanding compilers. |
||
13570 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
13571 | # not just through cpp. "Syntax error" is here to catch this case. |
||
13572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
13573 | /* end confdefs.h. */ |
||
13574 | #ifdef __STDC__ |
||
13575 | # include <limits.h> |
||
13576 | #else |
||
13577 | # include <assert.h> |
||
13578 | #endif |
||
13579 | Syntax error |
||
13580 | _ACEOF |
||
13581 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
||
13582 | |||
13583 | else |
||
13584 | # Broken: fails on valid input. |
||
13585 | continue |
||
13586 | fi |
||
13587 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
13588 | |||
13589 | # OK, works on sane cases. Now check whether nonexistent headers |
||
13590 | # can be detected and how. |
||
13591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
13592 | /* end confdefs.h. */ |
||
13593 | #include <ac_nonexistent.h> |
||
13594 | _ACEOF |
||
13595 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
||
13596 | # Broken: success on invalid input. |
||
13597 | continue |
||
13598 | else |
||
13599 | # Passes both tests. |
||
13600 | ac_preproc_ok=: |
||
13601 | break |
||
13602 | fi |
||
13603 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
13604 | |||
13605 | done |
||
13606 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
13607 | rm -f conftest.i conftest.err conftest.$ac_ext |
||
13608 | if $ac_preproc_ok; then : |
||
13609 | break |
||
13610 | fi |
||
13611 | |||
13612 | done |
||
13613 | ac_cv_prog_CXXCPP=$CXXCPP |
||
13614 | |||
13615 | fi |
||
13616 | CXXCPP=$ac_cv_prog_CXXCPP |
||
13617 | else |
||
13618 | ac_cv_prog_CXXCPP=$CXXCPP |
||
13619 | fi |
||
13620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
||
13621 | $as_echo "$CXXCPP" >&6; } |
||
13622 | ac_preproc_ok=false |
||
13623 | for ac_cxx_preproc_warn_flag in '' yes |
||
13624 | do |
||
13625 | # Use a header file that comes with gcc, so configuring glibc |
||
13626 | # with a fresh cross-compiler works. |
||
13627 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
13628 | # <limits.h> exists even on freestanding compilers. |
||
13629 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
13630 | # not just through cpp. "Syntax error" is here to catch this case. |
||
13631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
13632 | /* end confdefs.h. */ |
||
13633 | #ifdef __STDC__ |
||
13634 | # include <limits.h> |
||
13635 | #else |
||
13636 | # include <assert.h> |
||
13637 | #endif |
||
13638 | Syntax error |
||
13639 | _ACEOF |
||
13640 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
||
13641 | |||
13642 | else |
||
13643 | # Broken: fails on valid input. |
||
13644 | continue |
||
13645 | fi |
||
13646 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
13647 | |||
13648 | # OK, works on sane cases. Now check whether nonexistent headers |
||
13649 | # can be detected and how. |
||
13650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
13651 | /* end confdefs.h. */ |
||
13652 | #include <ac_nonexistent.h> |
||
13653 | _ACEOF |
||
13654 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
||
13655 | # Broken: success on invalid input. |
||
13656 | continue |
||
13657 | else |
||
13658 | # Passes both tests. |
||
13659 | ac_preproc_ok=: |
||
13660 | break |
||
13661 | fi |
||
13662 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
13663 | |||
13664 | done |
||
13665 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
13666 | rm -f conftest.i conftest.err conftest.$ac_ext |
||
13667 | if $ac_preproc_ok; then : |
||
13668 | |||
13669 | else |
||
13670 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
13671 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
13672 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
||
13673 | See \`config.log' for more details" "$LINENO" 5; } |
||
13674 | fi |
||
13675 | |||
13676 | ac_ext=c |
||
13677 | ac_cpp='$CPP $CPPFLAGS' |
||
13678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
13679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
13680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
13681 | |||
13682 | else |
||
13683 | _lt_caught_CXX_error=yes |
||
13684 | fi |
||
13685 | |||
13686 | ac_ext=cpp |
||
13687 | ac_cpp='$CXXCPP $CPPFLAGS' |
||
13688 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
13689 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
13690 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
||
13691 | |||
13692 | archive_cmds_need_lc_CXX=no |
||
13693 | allow_undefined_flag_CXX= |
||
13694 | always_export_symbols_CXX=no |
||
13695 | archive_expsym_cmds_CXX= |
||
13696 | compiler_needs_object_CXX=no |
||
13697 | export_dynamic_flag_spec_CXX= |
||
13698 | hardcode_direct_CXX=no |
||
13699 | hardcode_direct_absolute_CXX=no |
||
13700 | hardcode_libdir_flag_spec_CXX= |
||
13701 | hardcode_libdir_separator_CXX= |
||
13702 | hardcode_minus_L_CXX=no |
||
13703 | hardcode_shlibpath_var_CXX=unsupported |
||
13704 | hardcode_automatic_CXX=no |
||
13705 | inherit_rpath_CXX=no |
||
13706 | module_cmds_CXX= |
||
13707 | module_expsym_cmds_CXX= |
||
13708 | link_all_deplibs_CXX=unknown |
||
13709 | old_archive_cmds_CXX=$old_archive_cmds |
||
13710 | reload_flag_CXX=$reload_flag |
||
13711 | reload_cmds_CXX=$reload_cmds |
||
13712 | no_undefined_flag_CXX= |
||
13713 | whole_archive_flag_spec_CXX= |
||
13714 | enable_shared_with_static_runtimes_CXX=no |
||
13715 | |||
13716 | # Source file extension for C++ test sources. |
||
13717 | ac_ext=cpp |
||
13718 | |||
13719 | # Object file extension for compiled C++ test sources. |
||
13720 | objext=o |
||
13721 | objext_CXX=$objext |
||
13722 | |||
13723 | # No sense in running all these tests if we already determined that |
||
13724 | # the CXX compiler isn't working. Some variables (like enable_shared) |
||
13725 | # are currently assumed to apply to all compilers on this platform, |
||
13726 | # and will be corrupted by setting them based on a non-working compiler. |
||
13727 | if test yes != "$_lt_caught_CXX_error"; then |
||
13728 | # Code to be used in simple compile tests |
||
13729 | lt_simple_compile_test_code="int some_variable = 0;" |
||
13730 | |||
13731 | # Code to be used in simple link tests |
||
13732 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
||
13733 | |||
13734 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
||
13735 | |||
13736 | |||
13737 | |||
13738 | |||
13739 | |||
13740 | |||
13741 | # If no C compiler was specified, use CC. |
||
13742 | LTCC=${LTCC-"$CC"} |
||
13743 | |||
13744 | # If no C compiler flags were specified, use CFLAGS. |
||
13745 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
||
13746 | |||
13747 | # Allow CC to be a program name with arguments. |
||
13748 | compiler=$CC |
||
13749 | |||
13750 | |||
13751 | # save warnings/boilerplate of simple test code |
||
13752 | ac_outfile=conftest.$ac_objext |
||
13753 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
||
13754 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
13755 | _lt_compiler_boilerplate=`cat conftest.err` |
||
13756 | $RM conftest* |
||
13757 | |||
13758 | ac_outfile=conftest.$ac_objext |
||
13759 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
||
13760 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
13761 | _lt_linker_boilerplate=`cat conftest.err` |
||
13762 | $RM -r conftest* |
||
13763 | |||
13764 | |||
13765 | # Allow CC to be a program name with arguments. |
||
13766 | lt_save_CC=$CC |
||
13767 | lt_save_CFLAGS=$CFLAGS |
||
13768 | lt_save_LD=$LD |
||
13769 | lt_save_GCC=$GCC |
||
13770 | GCC=$GXX |
||
13771 | lt_save_with_gnu_ld=$with_gnu_ld |
||
13772 | lt_save_path_LD=$lt_cv_path_LD |
||
13773 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
||
13774 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
||
13775 | else |
||
13776 | $as_unset lt_cv_prog_gnu_ld |
||
13777 | fi |
||
13778 | if test -n "${lt_cv_path_LDCXX+set}"; then |
||
13779 | lt_cv_path_LD=$lt_cv_path_LDCXX |
||
13780 | else |
||
13781 | $as_unset lt_cv_path_LD |
||
13782 | fi |
||
13783 | test -z "${LDCXX+set}" || LD=$LDCXX |
||
13784 | CC=${CXX-"c++"} |
||
13785 | CFLAGS=$CXXFLAGS |
||
13786 | compiler=$CC |
||
13787 | compiler_CXX=$CC |
||
13788 | func_cc_basename $compiler |
||
13789 | cc_basename=$func_cc_basename_result |
||
13790 | |||
13791 | |||
13792 | if test -n "$compiler"; then |
||
13793 | # We don't want -fno-exception when compiling C++ code, so set the |
||
13794 | # no_builtin_flag separately |
||
13795 | if test yes = "$GXX"; then |
||
13796 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
||
13797 | else |
||
13798 | lt_prog_compiler_no_builtin_flag_CXX= |
||
13799 | fi |
||
13800 | |||
13801 | if test yes = "$GXX"; then |
||
13802 | # Set up default GNU C++ configuration |
||
13803 | |||
13804 | |||
13805 | |||
13806 | # Check whether --with-gnu-ld was given. |
||
13807 | if test "${with_gnu_ld+set}" = set; then : |
||
13808 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
||
13809 | else |
||
13810 | with_gnu_ld=no |
||
13811 | fi |
||
13812 | |||
13813 | ac_prog=ld |
||
13814 | if test yes = "$GCC"; then |
||
13815 | # Check if gcc -print-prog-name=ld gives a path. |
||
13816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
||
13817 | $as_echo_n "checking for ld used by $CC... " >&6; } |
||
13818 | case $host in |
||
13819 | *-*-mingw*) |
||
13820 | # gcc leaves a trailing carriage return, which upsets mingw |
||
13821 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
||
13822 | *) |
||
13823 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
||
13824 | esac |
||
13825 | case $ac_prog in |
||
13826 | # Accept absolute paths. |
||
13827 | [\\/]* | ?:[\\/]*) |
||
13828 | re_direlt='/[^/][^/]*/\.\./' |
||
13829 | # Canonicalize the pathname of ld |
||
13830 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
||
13831 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
||
13832 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
||
13833 | done |
||
13834 | test -z "$LD" && LD=$ac_prog |
||
13835 | ;; |
||
13836 | "") |
||
13837 | # If it fails, then pretend we aren't using GCC. |
||
13838 | ac_prog=ld |
||
13839 | ;; |
||
13840 | *) |
||
13841 | # If it is relative, then search for the first ld in PATH. |
||
13842 | with_gnu_ld=unknown |
||
13843 | ;; |
||
13844 | esac |
||
13845 | elif test yes = "$with_gnu_ld"; then |
||
13846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
||
13847 | $as_echo_n "checking for GNU ld... " >&6; } |
||
13848 | else |
||
13849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
||
13850 | $as_echo_n "checking for non-GNU ld... " >&6; } |
||
13851 | fi |
||
13852 | if ${lt_cv_path_LD+:} false; then : |
||
13853 | $as_echo_n "(cached) " >&6 |
||
13854 | else |
||
13855 | if test -z "$LD"; then |
||
13856 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
||
13857 | for ac_dir in $PATH; do |
||
13858 | IFS=$lt_save_ifs |
||
13859 | test -z "$ac_dir" && ac_dir=. |
||
13860 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
||
13861 | lt_cv_path_LD=$ac_dir/$ac_prog |
||
13862 | # Check to see if the program is GNU ld. I'd rather use --version, |
||
13863 | # but apparently some variants of GNU ld only accept -v. |
||
13864 | # Break only if it was the GNU/non-GNU ld that we prefer. |
||
13865 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
||
13866 | *GNU* | *'with BFD'*) |
||
13867 | test no != "$with_gnu_ld" && break |
||
13868 | ;; |
||
13869 | *) |
||
13870 | test yes != "$with_gnu_ld" && break |
||
13871 | ;; |
||
13872 | esac |
||
13873 | fi |
||
13874 | done |
||
13875 | IFS=$lt_save_ifs |
||
13876 | else |
||
13877 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
||
13878 | fi |
||
13879 | fi |
||
13880 | |||
13881 | LD=$lt_cv_path_LD |
||
13882 | if test -n "$LD"; then |
||
13883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
||
13884 | $as_echo "$LD" >&6; } |
||
13885 | else |
||
13886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
13887 | $as_echo "no" >&6; } |
||
13888 | fi |
||
13889 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
||
13890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
||
13891 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
||
13892 | if ${lt_cv_prog_gnu_ld+:} false; then : |
||
13893 | $as_echo_n "(cached) " >&6 |
||
13894 | else |
||
13895 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
||
13896 | case `$LD -v 2>&1 </dev/null` in |
||
13897 | *GNU* | *'with BFD'*) |
||
13898 | lt_cv_prog_gnu_ld=yes |
||
13899 | ;; |
||
13900 | *) |
||
13901 | lt_cv_prog_gnu_ld=no |
||
13902 | ;; |
||
13903 | esac |
||
13904 | fi |
||
13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
||
13906 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
||
13907 | with_gnu_ld=$lt_cv_prog_gnu_ld |
||
13908 | |||
13909 | |||
13910 | |||
13911 | |||
13912 | |||
13913 | |||
13914 | |||
13915 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
||
13916 | # archiving commands below assume that GNU ld is being used. |
||
13917 | if test yes = "$with_gnu_ld"; then |
||
13918 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
||
13919 | 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' |
||
13920 | |||
13921 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
||
13922 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
||
13923 | |||
13924 | # If archive_cmds runs LD, not CC, wlarc should be empty |
||
13925 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
||
13926 | # investigate it a little bit more. (MM) |
||
13927 | wlarc='$wl' |
||
13928 | |||
13929 | # ancient GNU ld didn't support --whole-archive et. al. |
||
13930 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
||
13931 | $GREP 'no-whole-archive' > /dev/null; then |
||
13932 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
||
13933 | else |
||
13934 | whole_archive_flag_spec_CXX= |
||
13935 | fi |
||
13936 | else |
||
13937 | with_gnu_ld=no |
||
13938 | wlarc= |
||
13939 | |||
13940 | # A generic and very simple default shared library creation |
||
13941 | # command for GNU C++ for the case where it uses the native |
||
13942 | # linker, instead of GNU ld. If possible, this setting should |
||
13943 | # overridden to take advantage of the native linker features on |
||
13944 | # the platform it is being used on. |
||
13945 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
||
13946 | fi |
||
13947 | |||
13948 | # Commands to make compiler produce verbose output that lists |
||
13949 | # what "hidden" libraries, object files and flags are used when |
||
13950 | # linking a shared library. |
||
13951 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
||
13952 | |||
13953 | else |
||
13954 | GXX=no |
||
13955 | with_gnu_ld=no |
||
13956 | wlarc= |
||
13957 | fi |
||
13958 | |||
13959 | # PORTME: fill in a description of your system's C++ link characteristics |
||
13960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
||
13961 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
||
13962 | ld_shlibs_CXX=yes |
||
13963 | case $host_os in |
||
13964 | aix3*) |
||
13965 | # FIXME: insert proper C++ library support |
||
13966 | ld_shlibs_CXX=no |
||
13967 | ;; |
||
13968 | aix[4-9]*) |
||
13969 | if test ia64 = "$host_cpu"; then |
||
13970 | # On IA64, the linker does run time linking by default, so we don't |
||
13971 | # have to do anything special. |
||
13972 | aix_use_runtimelinking=no |
||
13973 | exp_sym_flag='-Bexport' |
||
13974 | no_entry_flag= |
||
13975 | else |
||
13976 | aix_use_runtimelinking=no |
||
13977 | |||
13978 | # Test if we are trying to use run time linking or normal |
||
13979 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
||
13980 | # have runtime linking enabled, and use it for executables. |
||
13981 | # For shared libraries, we enable/disable runtime linking |
||
13982 | # depending on the kind of the shared library created - |
||
13983 | # when "with_aix_soname,aix_use_runtimelinking" is: |
||
13984 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
||
13985 | # "aix,yes" lib.so shared, rtl:yes, for executables |
||
13986 | # lib.a static archive |
||
13987 | # "both,no" lib.so.V(shr.o) shared, rtl:yes |
||
13988 | # lib.a(lib.so.V) shared, rtl:no, for executables |
||
13989 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
||
13990 | # lib.a(lib.so.V) shared, rtl:no |
||
13991 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
||
13992 | # lib.a static archive |
||
13993 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
||
13994 | for ld_flag in $LDFLAGS; do |
||
13995 | case $ld_flag in |
||
13996 | *-brtl*) |
||
13997 | aix_use_runtimelinking=yes |
||
13998 | break |
||
13999 | ;; |
||
14000 | esac |
||
14001 | done |
||
14002 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
||
14003 | # With aix-soname=svr4, we create the lib.so.V shared archives only, |
||
14004 | # so we don't have lib.a shared libs to link our executables. |
||
14005 | # We have to force runtime linking in this case. |
||
14006 | aix_use_runtimelinking=yes |
||
14007 | LDFLAGS="$LDFLAGS -Wl,-brtl" |
||
14008 | fi |
||
14009 | ;; |
||
14010 | esac |
||
14011 | |||
14012 | exp_sym_flag='-bexport' |
||
14013 | no_entry_flag='-bnoentry' |
||
14014 | fi |
||
14015 | |||
14016 | # When large executables or shared objects are built, AIX ld can |
||
14017 | # have problems creating the table of contents. If linking a library |
||
14018 | # or program results in "error TOC overflow" add -mminimal-toc to |
||
14019 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
||
14020 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
||
14021 | |||
14022 | archive_cmds_CXX='' |
||
14023 | hardcode_direct_CXX=yes |
||
14024 | hardcode_direct_absolute_CXX=yes |
||
14025 | hardcode_libdir_separator_CXX=':' |
||
14026 | link_all_deplibs_CXX=yes |
||
14027 | file_list_spec_CXX='$wl-f,' |
||
14028 | case $with_aix_soname,$aix_use_runtimelinking in |
||
14029 | aix,*) ;; # no import file |
||
14030 | svr4,* | *,yes) # use import file |
||
14031 | # The Import File defines what to hardcode. |
||
14032 | hardcode_direct_CXX=no |
||
14033 | hardcode_direct_absolute_CXX=no |
||
14034 | ;; |
||
14035 | esac |
||
14036 | |||
14037 | if test yes = "$GXX"; then |
||
14038 | case $host_os in aix4.[012]|aix4.[012].*) |
||
14039 | # We only want to do this on AIX 4.2 and lower, the check |
||
14040 | # below for broken collect2 doesn't work under 4.3+ |
||
14041 | collect2name=`$CC -print-prog-name=collect2` |
||
14042 | if test -f "$collect2name" && |
||
14043 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
||
14044 | then |
||
14045 | # We have reworked collect2 |
||
14046 | : |
||
14047 | else |
||
14048 | # We have old collect2 |
||
14049 | hardcode_direct_CXX=unsupported |
||
14050 | # It fails to find uninstalled libraries when the uninstalled |
||
14051 | # path is not listed in the libpath. Setting hardcode_minus_L |
||
14052 | # to unsupported forces relinking |
||
14053 | hardcode_minus_L_CXX=yes |
||
14054 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
||
14055 | hardcode_libdir_separator_CXX= |
||
14056 | fi |
||
14057 | esac |
||
14058 | shared_flag='-shared' |
||
14059 | if test yes = "$aix_use_runtimelinking"; then |
||
14060 | shared_flag=$shared_flag' $wl-G' |
||
14061 | fi |
||
14062 | # Need to ensure runtime linking is disabled for the traditional |
||
14063 | # shared library, or the linker may eventually find shared libraries |
||
14064 | # /with/ Import File - we do not want to mix them. |
||
14065 | shared_flag_aix='-shared' |
||
14066 | shared_flag_svr4='-shared $wl-G' |
||
14067 | else |
||
14068 | # not using gcc |
||
14069 | if test ia64 = "$host_cpu"; then |
||
14070 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
||
14071 | # chokes on -Wl,-G. The following line is correct: |
||
14072 | shared_flag='-G' |
||
14073 | else |
||
14074 | if test yes = "$aix_use_runtimelinking"; then |
||
14075 | shared_flag='$wl-G' |
||
14076 | else |
||
14077 | shared_flag='$wl-bM:SRE' |
||
14078 | fi |
||
14079 | shared_flag_aix='$wl-bM:SRE' |
||
14080 | shared_flag_svr4='$wl-G' |
||
14081 | fi |
||
14082 | fi |
||
14083 | |||
14084 | export_dynamic_flag_spec_CXX='$wl-bexpall' |
||
14085 | # It seems that -bexpall does not export symbols beginning with |
||
14086 | # underscore (_), so it is better to generate a list of symbols to |
||
14087 | # export. |
||
14088 | always_export_symbols_CXX=yes |
||
14089 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
||
14090 | # Warning - without using the other runtime loading flags (-brtl), |
||
14091 | # -berok will link without error, but may produce a broken library. |
||
14092 | # The "-G" linker flag allows undefined symbols. |
||
14093 | no_undefined_flag_CXX='-bernotok' |
||
14094 | # Determine the default libpath from the value encoded in an empty |
||
14095 | # executable. |
||
14096 | if test set = "${lt_cv_aix_libpath+set}"; then |
||
14097 | aix_libpath=$lt_cv_aix_libpath |
||
14098 | else |
||
14099 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
||
14100 | $as_echo_n "(cached) " >&6 |
||
14101 | else |
||
14102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
14103 | /* end confdefs.h. */ |
||
14104 | |||
14105 | int |
||
14106 | main () |
||
14107 | { |
||
14108 | |||
14109 | ; |
||
14110 | return 0; |
||
14111 | } |
||
14112 | _ACEOF |
||
14113 | if ac_fn_cxx_try_link "$LINENO"; then : |
||
14114 | |||
14115 | lt_aix_libpath_sed=' |
||
14116 | /Import File Strings/,/^$/ { |
||
14117 | /^0/ { |
||
14118 | s/^0 *\([^ ]*\) *$/\1/ |
||
14119 | p |
||
14120 | } |
||
14121 | }' |
||
14122 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
14123 | # Check for a 64-bit object if we didn't find anything. |
||
14124 | if test -z "$lt_cv_aix_libpath__CXX"; then |
||
14125 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
14126 | fi |
||
14127 | fi |
||
14128 | rm -f core conftest.err conftest.$ac_objext \ |
||
14129 | conftest$ac_exeext conftest.$ac_ext |
||
14130 | if test -z "$lt_cv_aix_libpath__CXX"; then |
||
14131 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
||
14132 | fi |
||
14133 | |||
14134 | fi |
||
14135 | |||
14136 | aix_libpath=$lt_cv_aix_libpath__CXX |
||
14137 | fi |
||
14138 | |||
14139 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
||
14140 | |||
14141 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
||
14142 | else |
||
14143 | if test ia64 = "$host_cpu"; then |
||
14144 | hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' |
||
14145 | allow_undefined_flag_CXX="-z nodefs" |
||
14146 | 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" |
||
14147 | else |
||
14148 | # Determine the default libpath from the value encoded in an |
||
14149 | # empty executable. |
||
14150 | if test set = "${lt_cv_aix_libpath+set}"; then |
||
14151 | aix_libpath=$lt_cv_aix_libpath |
||
14152 | else |
||
14153 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
||
14154 | $as_echo_n "(cached) " >&6 |
||
14155 | else |
||
14156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
14157 | /* end confdefs.h. */ |
||
14158 | |||
14159 | int |
||
14160 | main () |
||
14161 | { |
||
14162 | |||
14163 | ; |
||
14164 | return 0; |
||
14165 | } |
||
14166 | _ACEOF |
||
14167 | if ac_fn_cxx_try_link "$LINENO"; then : |
||
14168 | |||
14169 | lt_aix_libpath_sed=' |
||
14170 | /Import File Strings/,/^$/ { |
||
14171 | /^0/ { |
||
14172 | s/^0 *\([^ ]*\) *$/\1/ |
||
14173 | p |
||
14174 | } |
||
14175 | }' |
||
14176 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
14177 | # Check for a 64-bit object if we didn't find anything. |
||
14178 | if test -z "$lt_cv_aix_libpath__CXX"; then |
||
14179 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
14180 | fi |
||
14181 | fi |
||
14182 | rm -f core conftest.err conftest.$ac_objext \ |
||
14183 | conftest$ac_exeext conftest.$ac_ext |
||
14184 | if test -z "$lt_cv_aix_libpath__CXX"; then |
||
14185 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
||
14186 | fi |
||
14187 | |||
14188 | fi |
||
14189 | |||
14190 | aix_libpath=$lt_cv_aix_libpath__CXX |
||
14191 | fi |
||
14192 | |||
14193 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
||
14194 | # Warning - without using the other run time loading flags, |
||
14195 | # -berok will link without error, but may produce a broken library. |
||
14196 | no_undefined_flag_CXX=' $wl-bernotok' |
||
14197 | allow_undefined_flag_CXX=' $wl-berok' |
||
14198 | if test yes = "$with_gnu_ld"; then |
||
14199 | # We only use this code for GNU lds that support --whole-archive. |
||
14200 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' |
||
14201 | else |
||
14202 | # Exported symbols can be pulled into shared objects from archives |
||
14203 | whole_archive_flag_spec_CXX='$convenience' |
||
14204 | fi |
||
14205 | archive_cmds_need_lc_CXX=yes |
||
14206 | archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
||
14207 | # -brtl affects multiple linker settings, -berok does not and is overridden later |
||
14208 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
||
14209 | if test svr4 != "$with_aix_soname"; then |
||
14210 | # This is similar to how AIX traditionally builds its shared |
||
14211 | # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. |
||
14212 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' |
||
14213 | fi |
||
14214 | if test aix != "$with_aix_soname"; then |
||
14215 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' |
||
14216 | else |
||
14217 | # used by -dlpreopen to get the symbols |
||
14218 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
||
14219 | fi |
||
14220 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' |
||
14221 | fi |
||
14222 | fi |
||
14223 | ;; |
||
14224 | |||
14225 | beos*) |
||
14226 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
||
14227 | allow_undefined_flag_CXX=unsupported |
||
14228 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
||
14229 | # support --undefined. This deserves some investigation. FIXME |
||
14230 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
14231 | else |
||
14232 | ld_shlibs_CXX=no |
||
14233 | fi |
||
14234 | ;; |
||
14235 | |||
14236 | chorus*) |
||
14237 | case $cc_basename in |
||
14238 | *) |
||
14239 | # FIXME: insert proper C++ library support |
||
14240 | ld_shlibs_CXX=no |
||
14241 | ;; |
||
14242 | esac |
||
14243 | ;; |
||
14244 | |||
7 | mjames | 14245 | cygwin* | mingw* | pw32* | cegcc*) |
2 | mjames | 14246 | case $GXX,$cc_basename in |
14247 | ,cl* | no,cl*) |
||
14248 | # Native MSVC |
||
14249 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
||
14250 | # no search path for DLLs. |
||
14251 | hardcode_libdir_flag_spec_CXX=' ' |
||
14252 | allow_undefined_flag_CXX=unsupported |
||
14253 | always_export_symbols_CXX=yes |
||
14254 | file_list_spec_CXX='@' |
||
14255 | # Tell ltmain to make .lib files, not .a files. |
||
14256 | libext=lib |
||
14257 | # Tell ltmain to make .dll files, not .so files. |
||
14258 | shrext_cmds=.dll |
||
14259 | # FIXME: Setting linknames here is a bad hack. |
||
14260 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
||
14261 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
||
14262 | cp "$export_symbols" "$output_objdir/$soname.def"; |
||
14263 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
||
14264 | else |
||
14265 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
||
14266 | fi~ |
||
14267 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
||
14268 | linknames=' |
||
14269 | # The linker will not automatically build a static lib if we build a DLL. |
||
14270 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' |
||
14271 | enable_shared_with_static_runtimes_CXX=yes |
||
14272 | # Don't use ranlib |
||
14273 | old_postinstall_cmds_CXX='chmod 644 $oldlib' |
||
14274 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ |
||
14275 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
||
14276 | case $lt_outputfile in |
||
14277 | *.exe|*.EXE) ;; |
||
14278 | *) |
||
14279 | lt_outputfile=$lt_outputfile.exe |
||
14280 | lt_tool_outputfile=$lt_tool_outputfile.exe |
||
14281 | ;; |
||
14282 | esac~ |
||
14283 | func_to_tool_file "$lt_outputfile"~ |
||
14284 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
||
14285 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
||
14286 | $RM "$lt_outputfile.manifest"; |
||
14287 | fi' |
||
14288 | ;; |
||
14289 | *) |
||
14290 | # g++ |
||
14291 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
||
14292 | # as there is no search path for DLLs. |
||
14293 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
||
14294 | export_dynamic_flag_spec_CXX='$wl--export-all-symbols' |
||
14295 | allow_undefined_flag_CXX=unsupported |
||
14296 | always_export_symbols_CXX=no |
||
14297 | enable_shared_with_static_runtimes_CXX=yes |
||
14298 | |||
14299 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
||
14300 | 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' |
||
14301 | # If the export-symbols file already is a .def file, use it as |
||
14302 | # is; otherwise, prepend EXPORTS... |
||
14303 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
||
14304 | cp $export_symbols $output_objdir/$soname.def; |
||
14305 | else |
||
14306 | echo EXPORTS > $output_objdir/$soname.def; |
||
14307 | cat $export_symbols >> $output_objdir/$soname.def; |
||
14308 | fi~ |
||
14309 | $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' |
||
14310 | else |
||
14311 | ld_shlibs_CXX=no |
||
14312 | fi |
||
14313 | ;; |
||
14314 | esac |
||
14315 | ;; |
||
14316 | darwin* | rhapsody*) |
||
14317 | |||
14318 | |||
14319 | archive_cmds_need_lc_CXX=no |
||
14320 | hardcode_direct_CXX=no |
||
14321 | hardcode_automatic_CXX=yes |
||
14322 | hardcode_shlibpath_var_CXX=unsupported |
||
14323 | if test yes = "$lt_cv_ld_force_load"; then |
||
14324 | 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\"`' |
||
14325 | |||
14326 | else |
||
14327 | whole_archive_flag_spec_CXX='' |
||
14328 | fi |
||
14329 | link_all_deplibs_CXX=yes |
||
14330 | allow_undefined_flag_CXX=$_lt_dar_allow_undefined |
||
14331 | case $cc_basename in |
||
14332 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
||
14333 | *) _lt_dar_can_shared=$GCC ;; |
||
14334 | esac |
||
14335 | if test yes = "$_lt_dar_can_shared"; then |
||
14336 | output_verbose_link_cmd=func_echo_all |
||
14337 | 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" |
||
14338 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
||
14339 | 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" |
||
14340 | 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" |
||
14341 | if test yes != "$lt_cv_apple_cc_single_mod"; then |
||
14342 | 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" |
||
14343 | 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" |
||
14344 | fi |
||
14345 | |||
14346 | else |
||
14347 | ld_shlibs_CXX=no |
||
14348 | fi |
||
14349 | |||
14350 | ;; |
||
14351 | |||
14352 | os2*) |
||
14353 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
||
14354 | hardcode_minus_L_CXX=yes |
||
14355 | allow_undefined_flag_CXX=unsupported |
||
14356 | shrext_cmds=.dll |
||
14357 | archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
||
14358 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
||
14359 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
||
14360 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
||
14361 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
||
14362 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
||
14363 | emximp -o $lib $output_objdir/$libname.def' |
||
14364 | archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
||
14365 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
||
14366 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
||
14367 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
||
14368 | prefix_cmds="$SED"~ |
||
14369 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
||
14370 | prefix_cmds="$prefix_cmds -e 1d"; |
||
14371 | fi~ |
||
14372 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
||
14373 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
||
14374 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
||
14375 | emximp -o $lib $output_objdir/$libname.def' |
||
14376 | old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
||
14377 | enable_shared_with_static_runtimes_CXX=yes |
||
14378 | ;; |
||
14379 | |||
14380 | dgux*) |
||
14381 | case $cc_basename in |
||
14382 | ec++*) |
||
14383 | # FIXME: insert proper C++ library support |
||
14384 | ld_shlibs_CXX=no |
||
14385 | ;; |
||
14386 | ghcx*) |
||
14387 | # Green Hills C++ Compiler |
||
14388 | # FIXME: insert proper C++ library support |
||
14389 | ld_shlibs_CXX=no |
||
14390 | ;; |
||
14391 | *) |
||
14392 | # FIXME: insert proper C++ library support |
||
14393 | ld_shlibs_CXX=no |
||
14394 | ;; |
||
14395 | esac |
||
14396 | ;; |
||
14397 | |||
14398 | freebsd2.*) |
||
14399 | # C++ shared libraries reported to be fairly broken before |
||
14400 | # switch to ELF |
||
14401 | ld_shlibs_CXX=no |
||
14402 | ;; |
||
14403 | |||
14404 | freebsd-elf*) |
||
14405 | archive_cmds_need_lc_CXX=no |
||
14406 | ;; |
||
14407 | |||
14408 | freebsd* | dragonfly*) |
||
14409 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
||
14410 | # conventions |
||
14411 | ld_shlibs_CXX=yes |
||
14412 | ;; |
||
14413 | |||
14414 | haiku*) |
||
14415 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
14416 | link_all_deplibs_CXX=yes |
||
14417 | ;; |
||
14418 | |||
14419 | hpux9*) |
||
14420 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' |
||
14421 | hardcode_libdir_separator_CXX=: |
||
14422 | export_dynamic_flag_spec_CXX='$wl-E' |
||
14423 | hardcode_direct_CXX=yes |
||
14424 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
||
14425 | # but as the default |
||
14426 | # location of the library. |
||
14427 | |||
14428 | case $cc_basename in |
||
14429 | CC*) |
||
14430 | # FIXME: insert proper C++ library support |
||
14431 | ld_shlibs_CXX=no |
||
14432 | ;; |
||
14433 | aCC*) |
||
14434 | 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
||
14435 | # Commands to make compiler produce verbose output that lists |
||
14436 | # what "hidden" libraries, object files and flags are used when |
||
14437 | # linking a shared library. |
||
14438 | # |
||
14439 | # There doesn't appear to be a way to prevent this compiler from |
||
14440 | # explicitly linking system object files so we need to strip them |
||
14441 | # from the output so that they don't get included in the library |
||
14442 | # dependencies. |
||
14443 | 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"' |
||
14444 | ;; |
||
14445 | *) |
||
14446 | if test yes = "$GXX"; then |
||
14447 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
||
14448 | else |
||
14449 | # FIXME: insert proper C++ library support |
||
14450 | ld_shlibs_CXX=no |
||
14451 | fi |
||
14452 | ;; |
||
14453 | esac |
||
14454 | ;; |
||
14455 | |||
14456 | hpux10*|hpux11*) |
||
14457 | if test no = "$with_gnu_ld"; then |
||
14458 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' |
||
14459 | hardcode_libdir_separator_CXX=: |
||
14460 | |||
14461 | case $host_cpu in |
||
14462 | hppa*64*|ia64*) |
||
14463 | ;; |
||
14464 | *) |
||
14465 | export_dynamic_flag_spec_CXX='$wl-E' |
||
14466 | ;; |
||
14467 | esac |
||
14468 | fi |
||
14469 | case $host_cpu in |
||
14470 | hppa*64*|ia64*) |
||
14471 | hardcode_direct_CXX=no |
||
14472 | hardcode_shlibpath_var_CXX=no |
||
14473 | ;; |
||
14474 | *) |
||
14475 | hardcode_direct_CXX=yes |
||
14476 | hardcode_direct_absolute_CXX=yes |
||
14477 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
||
14478 | # but as the default |
||
14479 | # location of the library. |
||
14480 | ;; |
||
14481 | esac |
||
14482 | |||
14483 | case $cc_basename in |
||
14484 | CC*) |
||
14485 | # FIXME: insert proper C++ library support |
||
14486 | ld_shlibs_CXX=no |
||
14487 | ;; |
||
14488 | aCC*) |
||
14489 | case $host_cpu in |
||
14490 | hppa*64*) |
||
14491 | archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
14492 | ;; |
||
14493 | ia64*) |
||
14494 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
14495 | ;; |
||
14496 | *) |
||
14497 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
14498 | ;; |
||
14499 | esac |
||
14500 | # Commands to make compiler produce verbose output that lists |
||
14501 | # what "hidden" libraries, object files and flags are used when |
||
14502 | # linking a shared library. |
||
14503 | # |
||
14504 | # There doesn't appear to be a way to prevent this compiler from |
||
14505 | # explicitly linking system object files so we need to strip them |
||
14506 | # from the output so that they don't get included in the library |
||
14507 | # dependencies. |
||
14508 | 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"' |
||
14509 | ;; |
||
14510 | *) |
||
14511 | if test yes = "$GXX"; then |
||
14512 | if test no = "$with_gnu_ld"; then |
||
14513 | case $host_cpu in |
||
14514 | hppa*64*) |
||
14515 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
14516 | ;; |
||
14517 | ia64*) |
||
14518 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
14519 | ;; |
||
14520 | *) |
||
14521 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
14522 | ;; |
||
14523 | esac |
||
14524 | fi |
||
14525 | else |
||
14526 | # FIXME: insert proper C++ library support |
||
14527 | ld_shlibs_CXX=no |
||
14528 | fi |
||
14529 | ;; |
||
14530 | esac |
||
14531 | ;; |
||
14532 | |||
14533 | interix[3-9]*) |
||
14534 | hardcode_direct_CXX=no |
||
14535 | hardcode_shlibpath_var_CXX=no |
||
14536 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
||
14537 | export_dynamic_flag_spec_CXX='$wl-E' |
||
14538 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
||
14539 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
||
14540 | # default) and relocated if they conflict, which is a slow very memory |
||
14541 | # consuming and fragmenting process. To avoid this, we pick a random, |
||
14542 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
||
14543 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
||
14544 | 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' |
||
14545 | 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' |
||
14546 | ;; |
||
14547 | irix5* | irix6*) |
||
14548 | case $cc_basename in |
||
14549 | CC*) |
||
14550 | # SGI C++ |
||
14551 | 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' |
||
14552 | |||
14553 | # Archives containing C++ object files must be created using |
||
14554 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
||
14555 | # necessary to make sure instantiated templates are included |
||
14556 | # in the archive. |
||
14557 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
||
14558 | ;; |
||
14559 | *) |
||
14560 | if test yes = "$GXX"; then |
||
14561 | if test no = "$with_gnu_ld"; then |
||
14562 | archive_cmds_CXX='$CC -shared $pic_flag -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' |
||
14563 | else |
||
14564 | archive_cmds_CXX='$CC -shared $pic_flag -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' |
||
14565 | fi |
||
14566 | fi |
||
14567 | link_all_deplibs_CXX=yes |
||
14568 | ;; |
||
14569 | esac |
||
14570 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
||
14571 | hardcode_libdir_separator_CXX=: |
||
14572 | inherit_rpath_CXX=yes |
||
14573 | ;; |
||
14574 | |||
14575 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
||
14576 | case $cc_basename in |
||
14577 | KCC*) |
||
14578 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
||
14579 | |||
14580 | # KCC will only create a shared library if the output file |
||
14581 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
||
14582 | # to its proper name (with version) after linking. |
||
14583 | 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' |
||
14584 | 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' |
||
14585 | # Commands to make compiler produce verbose output that lists |
||
14586 | # what "hidden" libraries, object files and flags are used when |
||
14587 | # linking a shared library. |
||
14588 | # |
||
14589 | # There doesn't appear to be a way to prevent this compiler from |
||
14590 | # explicitly linking system object files so we need to strip them |
||
14591 | # from the output so that they don't get included in the library |
||
14592 | # dependencies. |
||
14593 | 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"' |
||
14594 | |||
14595 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
||
14596 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
||
14597 | |||
14598 | # Archives containing C++ object files must be created using |
||
14599 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
||
14600 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
||
14601 | ;; |
||
14602 | icpc* | ecpc* ) |
||
14603 | # Intel C++ |
||
14604 | with_gnu_ld=yes |
||
14605 | # version 8.0 and above of icpc choke on multiply defined symbols |
||
14606 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
||
14607 | # earlier do not add the objects themselves. |
||
14608 | case `$CC -V 2>&1` in |
||
14609 | *"Version 7."*) |
||
14610 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
||
14611 | 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' |
||
14612 | ;; |
||
14613 | *) # Version 8.0 or newer |
||
14614 | tmp_idyn= |
||
14615 | case $host_cpu in |
||
14616 | ia64*) tmp_idyn=' -i_dynamic';; |
||
14617 | esac |
||
14618 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
14619 | 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' |
||
14620 | ;; |
||
14621 | esac |
||
14622 | archive_cmds_need_lc_CXX=no |
||
14623 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
||
14624 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
||
14625 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' |
||
14626 | ;; |
||
14627 | pgCC* | pgcpp*) |
||
14628 | # Portland Group C++ compiler |
||
14629 | case `$CC -V` in |
||
14630 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
||
14631 | prelink_cmds_CXX='tpldir=Template.dir~ |
||
14632 | rm -rf $tpldir~ |
||
14633 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
||
14634 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
||
14635 | old_archive_cmds_CXX='tpldir=Template.dir~ |
||
14636 | rm -rf $tpldir~ |
||
14637 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
||
14638 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
||
14639 | $RANLIB $oldlib' |
||
14640 | archive_cmds_CXX='tpldir=Template.dir~ |
||
14641 | rm -rf $tpldir~ |
||
14642 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
||
14643 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
||
14644 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
||
14645 | rm -rf $tpldir~ |
||
14646 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
||
14647 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
||
14648 | ;; |
||
14649 | *) # Version 6 and above use weak symbols |
||
14650 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
||
14651 | 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' |
||
14652 | ;; |
||
14653 | esac |
||
14654 | |||
14655 | hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' |
||
14656 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
||
14657 | 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' |
||
14658 | ;; |
||
14659 | cxx*) |
||
14660 | # Compaq C++ |
||
14661 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
||
14662 | 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' |
||
14663 | |||
14664 | runpath_var=LD_RUN_PATH |
||
14665 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
||
14666 | hardcode_libdir_separator_CXX=: |
||
14667 | |||
14668 | # Commands to make compiler produce verbose output that lists |
||
14669 | # what "hidden" libraries, object files and flags are used when |
||
14670 | # linking a shared library. |
||
14671 | # |
||
14672 | # There doesn't appear to be a way to prevent this compiler from |
||
14673 | # explicitly linking system object files so we need to strip them |
||
14674 | # from the output so that they don't get included in the library |
||
14675 | # dependencies. |
||
14676 | 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' |
||
14677 | ;; |
||
14678 | xl* | mpixl* | bgxl*) |
||
14679 | # IBM XL 8.0 on PPC, with GNU ld |
||
14680 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
||
14681 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
||
14682 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
14683 | if test yes = "$supports_anon_versioning"; then |
||
14684 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
||
14685 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
||
14686 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
||
14687 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
||
14688 | fi |
||
14689 | ;; |
||
14690 | *) |
||
14691 | case `$CC -V 2>&1 | sed 5q` in |
||
14692 | *Sun\ C*) |
||
14693 | # Sun C++ 5.9 |
||
14694 | no_undefined_flag_CXX=' -zdefs' |
||
14695 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
14696 | 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' |
||
14697 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
||
14698 | 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' |
||
14699 | compiler_needs_object_CXX=yes |
||
14700 | |||
14701 | # Not sure whether something based on |
||
14702 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
||
14703 | # would be better. |
||
14704 | output_verbose_link_cmd='func_echo_all' |
||
14705 | |||
14706 | # Archives containing C++ object files must be created using |
||
14707 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
||
14708 | # necessary to make sure instantiated templates are included |
||
14709 | # in the archive. |
||
14710 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
||
14711 | ;; |
||
14712 | esac |
||
14713 | ;; |
||
14714 | esac |
||
14715 | ;; |
||
14716 | |||
14717 | lynxos*) |
||
14718 | # FIXME: insert proper C++ library support |
||
14719 | ld_shlibs_CXX=no |
||
14720 | ;; |
||
14721 | |||
14722 | m88k*) |
||
14723 | # FIXME: insert proper C++ library support |
||
14724 | ld_shlibs_CXX=no |
||
14725 | ;; |
||
14726 | |||
14727 | mvs*) |
||
14728 | case $cc_basename in |
||
14729 | cxx*) |
||
14730 | # FIXME: insert proper C++ library support |
||
14731 | ld_shlibs_CXX=no |
||
14732 | ;; |
||
14733 | *) |
||
14734 | # FIXME: insert proper C++ library support |
||
14735 | ld_shlibs_CXX=no |
||
14736 | ;; |
||
14737 | esac |
||
14738 | ;; |
||
14739 | |||
14740 | netbsd*) |
||
14741 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
||
14742 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
||
14743 | wlarc= |
||
14744 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
||
14745 | hardcode_direct_CXX=yes |
||
14746 | hardcode_shlibpath_var_CXX=no |
||
14747 | fi |
||
14748 | # Workaround some broken pre-1.5 toolchains |
||
14749 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
||
14750 | ;; |
||
14751 | |||
14752 | *nto* | *qnx*) |
||
14753 | ld_shlibs_CXX=yes |
||
14754 | ;; |
||
14755 | |||
14756 | openbsd* | bitrig*) |
||
14757 | if test -f /usr/libexec/ld.so; then |
||
14758 | hardcode_direct_CXX=yes |
||
14759 | hardcode_shlibpath_var_CXX=no |
||
14760 | hardcode_direct_absolute_CXX=yes |
||
14761 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
||
14762 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
||
14763 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then |
||
14764 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' |
||
14765 | export_dynamic_flag_spec_CXX='$wl-E' |
||
14766 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
||
14767 | fi |
||
14768 | output_verbose_link_cmd=func_echo_all |
||
14769 | else |
||
14770 | ld_shlibs_CXX=no |
||
14771 | fi |
||
14772 | ;; |
||
14773 | |||
14774 | osf3* | osf4* | osf5*) |
||
14775 | case $cc_basename in |
||
14776 | KCC*) |
||
14777 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
||
14778 | |||
14779 | # KCC will only create a shared library if the output file |
||
14780 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
||
14781 | # to its proper name (with version) after linking. |
||
14782 | 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' |
||
14783 | |||
14784 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
||
14785 | hardcode_libdir_separator_CXX=: |
||
14786 | |||
14787 | # Archives containing C++ object files must be created using |
||
14788 | # the KAI C++ compiler. |
||
14789 | case $host in |
||
14790 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
||
14791 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
||
14792 | esac |
||
14793 | ;; |
||
14794 | RCC*) |
||
14795 | # Rational C++ 2.4.1 |
||
14796 | # FIXME: insert proper C++ library support |
||
14797 | ld_shlibs_CXX=no |
||
14798 | ;; |
||
14799 | cxx*) |
||
14800 | case $host in |
||
14801 | osf3*) |
||
14802 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' |
||
14803 | 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' |
||
14804 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
||
14805 | ;; |
||
14806 | *) |
||
14807 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
||
14808 | 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' |
||
14809 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
||
14810 | echo "-hidden">> $lib.exp~ |
||
14811 | $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~ |
||
14812 | $RM $lib.exp' |
||
14813 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
||
14814 | ;; |
||
14815 | esac |
||
14816 | |||
14817 | hardcode_libdir_separator_CXX=: |
||
14818 | |||
14819 | # Commands to make compiler produce verbose output that lists |
||
14820 | # what "hidden" libraries, object files and flags are used when |
||
14821 | # linking a shared library. |
||
14822 | # |
||
14823 | # There doesn't appear to be a way to prevent this compiler from |
||
14824 | # explicitly linking system object files so we need to strip them |
||
14825 | # from the output so that they don't get included in the library |
||
14826 | # dependencies. |
||
14827 | 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"' |
||
14828 | ;; |
||
14829 | *) |
||
14830 | if test yes,no = "$GXX,$with_gnu_ld"; then |
||
14831 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' |
||
14832 | case $host in |
||
14833 | osf3*) |
||
14834 | 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' |
||
14835 | ;; |
||
14836 | *) |
||
14837 | archive_cmds_CXX='$CC -shared $pic_flag -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' |
||
14838 | ;; |
||
14839 | esac |
||
14840 | |||
14841 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
||
14842 | hardcode_libdir_separator_CXX=: |
||
14843 | |||
14844 | # Commands to make compiler produce verbose output that lists |
||
14845 | # what "hidden" libraries, object files and flags are used when |
||
14846 | # linking a shared library. |
||
14847 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
||
14848 | |||
14849 | else |
||
14850 | # FIXME: insert proper C++ library support |
||
14851 | ld_shlibs_CXX=no |
||
14852 | fi |
||
14853 | ;; |
||
14854 | esac |
||
14855 | ;; |
||
14856 | |||
14857 | psos*) |
||
14858 | # FIXME: insert proper C++ library support |
||
14859 | ld_shlibs_CXX=no |
||
14860 | ;; |
||
14861 | |||
14862 | sunos4*) |
||
14863 | case $cc_basename in |
||
14864 | CC*) |
||
14865 | # Sun C++ 4.x |
||
14866 | # FIXME: insert proper C++ library support |
||
14867 | ld_shlibs_CXX=no |
||
14868 | ;; |
||
14869 | lcc*) |
||
14870 | # Lucid |
||
14871 | # FIXME: insert proper C++ library support |
||
14872 | ld_shlibs_CXX=no |
||
14873 | ;; |
||
14874 | *) |
||
14875 | # FIXME: insert proper C++ library support |
||
14876 | ld_shlibs_CXX=no |
||
14877 | ;; |
||
14878 | esac |
||
14879 | ;; |
||
14880 | |||
14881 | solaris*) |
||
14882 | case $cc_basename in |
||
14883 | CC* | sunCC*) |
||
14884 | # Sun C++ 4.2, 5.x and Centerline C++ |
||
14885 | archive_cmds_need_lc_CXX=yes |
||
14886 | no_undefined_flag_CXX=' -zdefs' |
||
14887 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
14888 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
||
14889 | $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' |
||
14890 | |||
14891 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
||
14892 | hardcode_shlibpath_var_CXX=no |
||
14893 | case $host_os in |
||
14894 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
||
14895 | *) |
||
14896 | # The compiler driver will combine and reorder linker options, |
||
14897 | # but understands '-z linker_flag'. |
||
14898 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
||
14899 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
||
14900 | ;; |
||
14901 | esac |
||
14902 | link_all_deplibs_CXX=yes |
||
14903 | |||
14904 | output_verbose_link_cmd='func_echo_all' |
||
14905 | |||
14906 | # Archives containing C++ object files must be created using |
||
14907 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
||
14908 | # necessary to make sure instantiated templates are included |
||
14909 | # in the archive. |
||
14910 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
||
14911 | ;; |
||
14912 | gcx*) |
||
14913 | # Green Hills C++ Compiler |
||
14914 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
||
14915 | |||
14916 | # The C++ compiler must be used to create the archive. |
||
14917 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
||
14918 | ;; |
||
14919 | *) |
||
14920 | # GNU C++ compiler with Solaris linker |
||
14921 | if test yes,no = "$GXX,$with_gnu_ld"; then |
||
14922 | no_undefined_flag_CXX=' $wl-z ${wl}defs' |
||
14923 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
||
14924 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
||
14925 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
||
14926 | $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
||
14927 | |||
14928 | # Commands to make compiler produce verbose output that lists |
||
14929 | # what "hidden" libraries, object files and flags are used when |
||
14930 | # linking a shared library. |
||
14931 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
||
14932 | else |
||
14933 | # g++ 2.7 appears to require '-G' NOT '-shared' on this |
||
14934 | # platform. |
||
14935 | archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
||
14936 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
||
14937 | $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
||
14938 | |||
14939 | # Commands to make compiler produce verbose output that lists |
||
14940 | # what "hidden" libraries, object files and flags are used when |
||
14941 | # linking a shared library. |
||
14942 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
||
14943 | fi |
||
14944 | |||
14945 | hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' |
||
14946 | case $host_os in |
||
14947 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
||
14948 | *) |
||
14949 | whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
||
14950 | ;; |
||
14951 | esac |
||
14952 | fi |
||
14953 | ;; |
||
14954 | esac |
||
14955 | ;; |
||
14956 | |||
14957 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
||
14958 | no_undefined_flag_CXX='$wl-z,text' |
||
14959 | archive_cmds_need_lc_CXX=no |
||
14960 | hardcode_shlibpath_var_CXX=no |
||
14961 | runpath_var='LD_RUN_PATH' |
||
14962 | |||
14963 | case $cc_basename in |
||
14964 | CC*) |
||
14965 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14966 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14967 | ;; |
||
14968 | *) |
||
14969 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14970 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14971 | ;; |
||
14972 | esac |
||
14973 | ;; |
||
14974 | |||
14975 | sysv5* | sco3.2v5* | sco5v6*) |
||
14976 | # Note: We CANNOT use -z defs as we might desire, because we do not |
||
14977 | # link with -lc, and that would cause any symbols used from libc to |
||
14978 | # always be unresolved, which means just about no library would |
||
14979 | # ever link correctly. If we're not using GNU ld we use -z text |
||
14980 | # though, which does catch some bad symbols but isn't as heavy-handed |
||
14981 | # as -z defs. |
||
14982 | no_undefined_flag_CXX='$wl-z,text' |
||
14983 | allow_undefined_flag_CXX='$wl-z,nodefs' |
||
14984 | archive_cmds_need_lc_CXX=no |
||
14985 | hardcode_shlibpath_var_CXX=no |
||
14986 | hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' |
||
14987 | hardcode_libdir_separator_CXX=':' |
||
14988 | link_all_deplibs_CXX=yes |
||
14989 | export_dynamic_flag_spec_CXX='$wl-Bexport' |
||
14990 | runpath_var='LD_RUN_PATH' |
||
14991 | |||
14992 | case $cc_basename in |
||
14993 | CC*) |
||
14994 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14995 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14996 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
||
14997 | '"$old_archive_cmds_CXX" |
||
14998 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
||
14999 | '"$reload_cmds_CXX" |
||
15000 | ;; |
||
15001 | *) |
||
15002 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
15003 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
15004 | ;; |
||
15005 | esac |
||
15006 | ;; |
||
15007 | |||
15008 | tandem*) |
||
15009 | case $cc_basename in |
||
15010 | NCC*) |
||
15011 | # NonStop-UX NCC 3.20 |
||
15012 | # FIXME: insert proper C++ library support |
||
15013 | ld_shlibs_CXX=no |
||
15014 | ;; |
||
15015 | *) |
||
15016 | # FIXME: insert proper C++ library support |
||
15017 | ld_shlibs_CXX=no |
||
15018 | ;; |
||
15019 | esac |
||
15020 | ;; |
||
15021 | |||
15022 | vxworks*) |
||
15023 | # FIXME: insert proper C++ library support |
||
15024 | ld_shlibs_CXX=no |
||
15025 | ;; |
||
15026 | |||
15027 | *) |
||
15028 | # FIXME: insert proper C++ library support |
||
15029 | ld_shlibs_CXX=no |
||
15030 | ;; |
||
15031 | esac |
||
15032 | |||
15033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
||
15034 | $as_echo "$ld_shlibs_CXX" >&6; } |
||
15035 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
||
15036 | |||
15037 | GCC_CXX=$GXX |
||
15038 | LD_CXX=$LD |
||
15039 | |||
15040 | ## CAVEAT EMPTOR: |
||
15041 | ## There is no encapsulation within the following macros, do not change |
||
15042 | ## the running order or otherwise move them around unless you know exactly |
||
15043 | ## what you are doing... |
||
15044 | # Dependencies to place before and after the object being linked: |
||
15045 | predep_objects_CXX= |
||
15046 | postdep_objects_CXX= |
||
15047 | predeps_CXX= |
||
15048 | postdeps_CXX= |
||
15049 | compiler_lib_search_path_CXX= |
||
15050 | |||
15051 | cat > conftest.$ac_ext <<_LT_EOF |
||
15052 | class Foo |
||
15053 | { |
||
15054 | public: |
||
15055 | Foo (void) { a = 0; } |
||
15056 | private: |
||
15057 | int a; |
||
15058 | }; |
||
15059 | _LT_EOF |
||
15060 | |||
15061 | |||
15062 | _lt_libdeps_save_CFLAGS=$CFLAGS |
||
15063 | case "$CC $CFLAGS " in #( |
||
15064 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
||
15065 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
||
15066 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
||
15067 | esac |
||
15068 | |||
15069 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
15070 | (eval $ac_compile) 2>&5 |
||
15071 | ac_status=$? |
||
15072 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
15073 | test $ac_status = 0; }; then |
||
15074 | # Parse the compiler output and extract the necessary |
||
15075 | # objects, libraries and library flags. |
||
15076 | |||
15077 | # Sentinel used to keep track of whether or not we are before |
||
15078 | # the conftest object file. |
||
15079 | pre_test_object_deps_done=no |
||
15080 | |||
15081 | for p in `eval "$output_verbose_link_cmd"`; do |
||
15082 | case $prev$p in |
||
15083 | |||
7 | mjames | 15084 | -L* | -R* | -l*) |
2 | mjames | 15085 | # Some compilers place space between "-{L,R}" and the path. |
15086 | # Remove the space. |
||
15087 | if test x-L = "$p" || |
||
15088 | test x-R = "$p"; then |
||
15089 | prev=$p |
||
15090 | continue |
||
15091 | fi |
||
15092 | |||
15093 | # Expand the sysroot to ease extracting the directories later. |
||
15094 | if test -z "$prev"; then |
||
15095 | case $p in |
||
15096 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; |
||
15097 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; |
||
15098 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; |
||
15099 | esac |
||
15100 | fi |
||
15101 | case $p in |
||
15102 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; |
||
15103 | esac |
||
15104 | if test no = "$pre_test_object_deps_done"; then |
||
15105 | case $prev in |
||
15106 | -L | -R) |
||
15107 | # Internal compiler library paths should come after those |
||
15108 | # provided the user. The postdeps already come after the |
||
15109 | # user supplied libs so there is no need to process them. |
||
15110 | if test -z "$compiler_lib_search_path_CXX"; then |
||
15111 | compiler_lib_search_path_CXX=$prev$p |
||
15112 | else |
||
15113 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" |
||
15114 | fi |
||
15115 | ;; |
||
15116 | # The "-l" case would never come before the object being |
||
15117 | # linked, so don't bother handling this case. |
||
15118 | esac |
||
15119 | else |
||
15120 | if test -z "$postdeps_CXX"; then |
||
15121 | postdeps_CXX=$prev$p |
||
15122 | else |
||
15123 | postdeps_CXX="${postdeps_CXX} $prev$p" |
||
15124 | fi |
||
15125 | fi |
||
15126 | prev= |
||
15127 | ;; |
||
15128 | |||
15129 | *.lto.$objext) ;; # Ignore GCC LTO objects |
||
15130 | *.$objext) |
||
15131 | # This assumes that the test object file only shows up |
||
15132 | # once in the compiler output. |
||
15133 | if test "$p" = "conftest.$objext"; then |
||
15134 | pre_test_object_deps_done=yes |
||
15135 | continue |
||
15136 | fi |
||
15137 | |||
15138 | if test no = "$pre_test_object_deps_done"; then |
||
15139 | if test -z "$predep_objects_CXX"; then |
||
15140 | predep_objects_CXX=$p |
||
15141 | else |
||
15142 | predep_objects_CXX="$predep_objects_CXX $p" |
||
15143 | fi |
||
15144 | else |
||
15145 | if test -z "$postdep_objects_CXX"; then |
||
15146 | postdep_objects_CXX=$p |
||
15147 | else |
||
15148 | postdep_objects_CXX="$postdep_objects_CXX $p" |
||
15149 | fi |
||
15150 | fi |
||
15151 | ;; |
||
15152 | |||
15153 | *) ;; # Ignore the rest. |
||
15154 | |||
15155 | esac |
||
15156 | done |
||
15157 | |||
15158 | # Clean up. |
||
15159 | rm -f a.out a.exe |
||
15160 | else |
||
15161 | echo "libtool.m4: error: problem compiling CXX test program" |
||
15162 | fi |
||
15163 | |||
15164 | $RM -f confest.$objext |
||
15165 | CFLAGS=$_lt_libdeps_save_CFLAGS |
||
15166 | |||
15167 | # PORTME: override above test on systems where it is broken |
||
15168 | case $host_os in |
||
15169 | interix[3-9]*) |
||
15170 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
||
15171 | # hack all around it, let's just trust "g++" to DTRT. |
||
15172 | predep_objects_CXX= |
||
15173 | postdep_objects_CXX= |
||
15174 | postdeps_CXX= |
||
15175 | ;; |
||
15176 | esac |
||
15177 | |||
15178 | |||
15179 | case " $postdeps_CXX " in |
||
15180 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
||
15181 | esac |
||
15182 | compiler_lib_search_dirs_CXX= |
||
15183 | if test -n "${compiler_lib_search_path_CXX}"; then |
||
15184 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` |
||
15185 | fi |
||
15186 | |||
15187 | |||
15188 | |||
15189 | |||
15190 | |||
15191 | |||
15192 | |||
15193 | |||
15194 | |||
15195 | |||
15196 | |||
15197 | |||
15198 | |||
15199 | |||
15200 | |||
15201 | |||
15202 | |||
15203 | |||
15204 | |||
15205 | |||
15206 | |||
15207 | |||
15208 | |||
15209 | |||
15210 | |||
15211 | |||
15212 | |||
15213 | |||
15214 | |||
15215 | |||
15216 | |||
15217 | lt_prog_compiler_wl_CXX= |
||
15218 | lt_prog_compiler_pic_CXX= |
||
15219 | lt_prog_compiler_static_CXX= |
||
15220 | |||
15221 | |||
15222 | # C++ specific cases for pic, static, wl, etc. |
||
15223 | if test yes = "$GXX"; then |
||
15224 | lt_prog_compiler_wl_CXX='-Wl,' |
||
15225 | lt_prog_compiler_static_CXX='-static' |
||
15226 | |||
15227 | case $host_os in |
||
15228 | aix*) |
||
15229 | # All AIX code is PIC. |
||
15230 | if test ia64 = "$host_cpu"; then |
||
15231 | # AIX 5 now supports IA64 processor |
||
15232 | lt_prog_compiler_static_CXX='-Bstatic' |
||
15233 | fi |
||
15234 | lt_prog_compiler_pic_CXX='-fPIC' |
||
15235 | ;; |
||
15236 | |||
15237 | amigaos*) |
||
15238 | case $host_cpu in |
||
15239 | powerpc) |
||
15240 | # see comment about AmigaOS4 .so support |
||
15241 | lt_prog_compiler_pic_CXX='-fPIC' |
||
15242 | ;; |
||
15243 | m68k) |
||
15244 | # FIXME: we need at least 68020 code to build shared libraries, but |
||
15245 | # adding the '-m68020' flag to GCC prevents building anything better, |
||
15246 | # like '-m68040'. |
||
15247 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
||
15248 | ;; |
||
15249 | esac |
||
15250 | ;; |
||
15251 | |||
15252 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
||
15253 | # PIC is the default for these OSes. |
||
15254 | ;; |
||
7 | mjames | 15255 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
2 | mjames | 15256 | # This hack is so that the source file can tell whether it is being |
15257 | # built for inclusion in a dll (and should export symbols for example). |
||
15258 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
||
15259 | # (--disable-auto-import) libraries |
||
15260 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
||
15261 | case $host_os in |
||
15262 | os2*) |
||
15263 | lt_prog_compiler_static_CXX='$wl-static' |
||
15264 | ;; |
||
15265 | esac |
||
15266 | ;; |
||
15267 | darwin* | rhapsody*) |
||
15268 | # PIC is the default on this platform |
||
15269 | # Common symbols not allowed in MH_DYLIB files |
||
15270 | lt_prog_compiler_pic_CXX='-fno-common' |
||
15271 | ;; |
||
15272 | *djgpp*) |
||
15273 | # DJGPP does not support shared libraries at all |
||
15274 | lt_prog_compiler_pic_CXX= |
||
15275 | ;; |
||
15276 | haiku*) |
||
15277 | # PIC is the default for Haiku. |
||
15278 | # The "-static" flag exists, but is broken. |
||
15279 | lt_prog_compiler_static_CXX= |
||
15280 | ;; |
||
15281 | interix[3-9]*) |
||
15282 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
||
15283 | # Instead, we relocate shared libraries at runtime. |
||
15284 | ;; |
||
15285 | sysv4*MP*) |
||
15286 | if test -d /usr/nec; then |
||
15287 | lt_prog_compiler_pic_CXX=-Kconform_pic |
||
15288 | fi |
||
15289 | ;; |
||
15290 | hpux*) |
||
15291 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
||
15292 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
||
15293 | # sets the default TLS model and affects inlining. |
||
15294 | case $host_cpu in |
||
15295 | hppa*64*) |
||
15296 | ;; |
||
15297 | *) |
||
15298 | lt_prog_compiler_pic_CXX='-fPIC' |
||
15299 | ;; |
||
15300 | esac |
||
15301 | ;; |
||
15302 | *qnx* | *nto*) |
||
15303 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
||
15304 | # it will coredump. |
||
15305 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
||
15306 | ;; |
||
15307 | *) |
||
15308 | lt_prog_compiler_pic_CXX='-fPIC' |
||
15309 | ;; |
||
15310 | esac |
||
15311 | else |
||
15312 | case $host_os in |
||
15313 | aix[4-9]*) |
||
15314 | # All AIX code is PIC. |
||
15315 | if test ia64 = "$host_cpu"; then |
||
15316 | # AIX 5 now supports IA64 processor |
||
15317 | lt_prog_compiler_static_CXX='-Bstatic' |
||
15318 | else |
||
15319 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
||
15320 | fi |
||
15321 | ;; |
||
15322 | chorus*) |
||
15323 | case $cc_basename in |
||
15324 | cxch68*) |
||
15325 | # Green Hills C++ Compiler |
||
15326 | # _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" |
||
15327 | ;; |
||
15328 | esac |
||
15329 | ;; |
||
7 | mjames | 15330 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
2 | mjames | 15331 | # This hack is so that the source file can tell whether it is being |
15332 | # built for inclusion in a dll (and should export symbols for example). |
||
15333 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
||
15334 | ;; |
||
15335 | dgux*) |
||
15336 | case $cc_basename in |
||
15337 | ec++*) |
||
15338 | lt_prog_compiler_pic_CXX='-KPIC' |
||
15339 | ;; |
||
15340 | ghcx*) |
||
15341 | # Green Hills C++ Compiler |
||
15342 | lt_prog_compiler_pic_CXX='-pic' |
||
15343 | ;; |
||
15344 | *) |
||
15345 | ;; |
||
15346 | esac |
||
15347 | ;; |
||
15348 | freebsd* | dragonfly*) |
||
15349 | # FreeBSD uses GNU C++ |
||
15350 | ;; |
||
15351 | hpux9* | hpux10* | hpux11*) |
||
15352 | case $cc_basename in |
||
15353 | CC*) |
||
15354 | lt_prog_compiler_wl_CXX='-Wl,' |
||
15355 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
||
15356 | if test ia64 != "$host_cpu"; then |
||
15357 | lt_prog_compiler_pic_CXX='+Z' |
||
15358 | fi |
||
15359 | ;; |
||
15360 | aCC*) |
||
15361 | lt_prog_compiler_wl_CXX='-Wl,' |
||
15362 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
||
15363 | case $host_cpu in |
||
15364 | hppa*64*|ia64*) |
||
15365 | # +Z the default |
||
15366 | ;; |
||
15367 | *) |
||
15368 | lt_prog_compiler_pic_CXX='+Z' |
||
15369 | ;; |
||
15370 | esac |
||
15371 | ;; |
||
15372 | *) |
||
15373 | ;; |
||
15374 | esac |
||
15375 | ;; |
||
15376 | interix*) |
||
15377 | # This is c89, which is MS Visual C++ (no shared libs) |
||
15378 | # Anyone wants to do a port? |
||
15379 | ;; |
||
15380 | irix5* | irix6* | nonstopux*) |
||
15381 | case $cc_basename in |
||
15382 | CC*) |
||
15383 | lt_prog_compiler_wl_CXX='-Wl,' |
||
15384 | lt_prog_compiler_static_CXX='-non_shared' |
||
15385 | # CC pic flag -KPIC is the default. |
||
15386 | ;; |
||
15387 | *) |
||
15388 | ;; |
||
15389 | esac |
||
15390 | ;; |
||
15391 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
||
15392 | case $cc_basename in |
||
15393 | KCC*) |
||
15394 | # KAI C++ Compiler |
||
15395 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
||
15396 | lt_prog_compiler_pic_CXX='-fPIC' |
||
15397 | ;; |
||
15398 | ecpc* ) |
||
15399 | # old Intel C++ for x86_64, which still supported -KPIC. |
||
15400 | lt_prog_compiler_wl_CXX='-Wl,' |
||
15401 | lt_prog_compiler_pic_CXX='-KPIC' |
||
15402 | lt_prog_compiler_static_CXX='-static' |
||
15403 | ;; |
||
15404 | icpc* ) |
||
15405 | # Intel C++, used to be incompatible with GCC. |
||
15406 | # ICC 10 doesn't accept -KPIC any more. |
||
15407 | lt_prog_compiler_wl_CXX='-Wl,' |
||
15408 | lt_prog_compiler_pic_CXX='-fPIC' |
||
15409 | lt_prog_compiler_static_CXX='-static' |
||
15410 | ;; |
||
15411 | pgCC* | pgcpp*) |
||
15412 | # Portland Group C++ compiler |
||
15413 | lt_prog_compiler_wl_CXX='-Wl,' |
||
15414 | lt_prog_compiler_pic_CXX='-fpic' |
||
15415 | lt_prog_compiler_static_CXX='-Bstatic' |
||
15416 | ;; |
||
15417 | cxx*) |
||
15418 | # Compaq C++ |
||
15419 | # Make sure the PIC flag is empty. It appears that all Alpha |
||
15420 | # Linux and Compaq Tru64 Unix objects are PIC. |
||
15421 | lt_prog_compiler_pic_CXX= |
||
15422 | lt_prog_compiler_static_CXX='-non_shared' |
||
15423 | ;; |
||
15424 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
||
15425 | # IBM XL 8.0, 9.0 on PPC and BlueGene |
||
15426 | lt_prog_compiler_wl_CXX='-Wl,' |
||
15427 | lt_prog_compiler_pic_CXX='-qpic' |
||
15428 | lt_prog_compiler_static_CXX='-qstaticlink' |
||
15429 | ;; |
||
15430 | *) |
||
15431 | case `$CC -V 2>&1 | sed 5q` in |
||
15432 | *Sun\ C*) |
||
15433 | # Sun C++ 5.9 |
||
15434 | lt_prog_compiler_pic_CXX='-KPIC' |
||
15435 | lt_prog_compiler_static_CXX='-Bstatic' |
||
15436 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
||
15437 | ;; |
||
15438 | esac |
||
15439 | ;; |
||
15440 | esac |
||
15441 | ;; |
||
15442 | lynxos*) |
||
15443 | ;; |
||
15444 | m88k*) |
||
15445 | ;; |
||
15446 | mvs*) |
||
15447 | case $cc_basename in |
||
15448 | cxx*) |
||
15449 | lt_prog_compiler_pic_CXX='-W c,exportall' |
||
15450 | ;; |
||
15451 | *) |
||
15452 | ;; |
||
15453 | esac |
||
15454 | ;; |
||
7 | mjames | 15455 | netbsd* | netbsdelf*-gnu) |
2 | mjames | 15456 | ;; |
15457 | *qnx* | *nto*) |
||
15458 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
||
15459 | # it will coredump. |
||
15460 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
||
15461 | ;; |
||
15462 | osf3* | osf4* | osf5*) |
||
15463 | case $cc_basename in |
||
15464 | KCC*) |
||
15465 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
||
15466 | ;; |
||
15467 | RCC*) |
||
15468 | # Rational C++ 2.4.1 |
||
15469 | lt_prog_compiler_pic_CXX='-pic' |
||
15470 | ;; |
||
15471 | cxx*) |
||
15472 | # Digital/Compaq C++ |
||
15473 | lt_prog_compiler_wl_CXX='-Wl,' |
||
15474 | # Make sure the PIC flag is empty. It appears that all Alpha |
||
15475 | # Linux and Compaq Tru64 Unix objects are PIC. |
||
15476 | lt_prog_compiler_pic_CXX= |
||
15477 | lt_prog_compiler_static_CXX='-non_shared' |
||
15478 | ;; |
||
15479 | *) |
||
15480 | ;; |
||
15481 | esac |
||
15482 | ;; |
||
15483 | psos*) |
||
15484 | ;; |
||
15485 | solaris*) |
||
15486 | case $cc_basename in |
||
15487 | CC* | sunCC*) |
||
15488 | # Sun C++ 4.2, 5.x and Centerline C++ |
||
15489 | lt_prog_compiler_pic_CXX='-KPIC' |
||
15490 | lt_prog_compiler_static_CXX='-Bstatic' |
||
15491 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
||
15492 | ;; |
||
15493 | gcx*) |
||
15494 | # Green Hills C++ Compiler |
||
15495 | lt_prog_compiler_pic_CXX='-PIC' |
||
15496 | ;; |
||
15497 | *) |
||
15498 | ;; |
||
15499 | esac |
||
15500 | ;; |
||
15501 | sunos4*) |
||
15502 | case $cc_basename in |
||
15503 | CC*) |
||
15504 | # Sun C++ 4.x |
||
15505 | lt_prog_compiler_pic_CXX='-pic' |
||
15506 | lt_prog_compiler_static_CXX='-Bstatic' |
||
15507 | ;; |
||
15508 | lcc*) |
||
15509 | # Lucid |
||
15510 | lt_prog_compiler_pic_CXX='-pic' |
||
15511 | ;; |
||
15512 | *) |
||
15513 | ;; |
||
15514 | esac |
||
15515 | ;; |
||
15516 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
||
15517 | case $cc_basename in |
||
15518 | CC*) |
||
15519 | lt_prog_compiler_wl_CXX='-Wl,' |
||
15520 | lt_prog_compiler_pic_CXX='-KPIC' |
||
15521 | lt_prog_compiler_static_CXX='-Bstatic' |
||
15522 | ;; |
||
15523 | esac |
||
15524 | ;; |
||
15525 | tandem*) |
||
15526 | case $cc_basename in |
||
15527 | NCC*) |
||
15528 | # NonStop-UX NCC 3.20 |
||
15529 | lt_prog_compiler_pic_CXX='-KPIC' |
||
15530 | ;; |
||
15531 | *) |
||
15532 | ;; |
||
15533 | esac |
||
15534 | ;; |
||
15535 | vxworks*) |
||
15536 | ;; |
||
15537 | *) |
||
15538 | lt_prog_compiler_can_build_shared_CXX=no |
||
15539 | ;; |
||
15540 | esac |
||
15541 | fi |
||
15542 | |||
15543 | case $host_os in |
||
15544 | # For platforms that do not support PIC, -DPIC is meaningless: |
||
15545 | *djgpp*) |
||
15546 | lt_prog_compiler_pic_CXX= |
||
15547 | ;; |
||
15548 | *) |
||
15549 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
||
15550 | ;; |
||
15551 | esac |
||
15552 | |||
15553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
||
15554 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
||
15555 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : |
||
15556 | $as_echo_n "(cached) " >&6 |
||
15557 | else |
||
15558 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX |
||
15559 | fi |
||
15560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 |
||
15561 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } |
||
15562 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX |
||
15563 | |||
15564 | # |
||
15565 | # Check to make sure the PIC flag actually works. |
||
15566 | # |
||
15567 | if test -n "$lt_prog_compiler_pic_CXX"; then |
||
15568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
||
15569 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
||
15570 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
||
15571 | $as_echo_n "(cached) " >&6 |
||
15572 | else |
||
15573 | lt_cv_prog_compiler_pic_works_CXX=no |
||
15574 | ac_outfile=conftest.$ac_objext |
||
15575 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
15576 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment |
||
15577 | # Insert the option either (1) after the last *FLAGS variable, or |
||
15578 | # (2) before a word containing "conftest.", or (3) at the end. |
||
15579 | # Note that $ac_compile itself does not contain backslashes and begins |
||
15580 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
15581 | # The option is referenced via a variable to avoid confusing sed. |
||
15582 | lt_compile=`echo "$ac_compile" | $SED \ |
||
15583 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
15584 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
15585 | -e 's:$: $lt_compiler_flag:'` |
||
15586 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
||
15587 | (eval "$lt_compile" 2>conftest.err) |
||
15588 | ac_status=$? |
||
15589 | cat conftest.err >&5 |
||
15590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
15591 | if (exit $ac_status) && test -s "$ac_outfile"; then |
||
15592 | # The compiler can only warn and ignore the option if not recognized |
||
15593 | # So say no if there are warnings other than the usual output. |
||
15594 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
||
15595 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
15596 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
||
15597 | lt_cv_prog_compiler_pic_works_CXX=yes |
||
15598 | fi |
||
15599 | fi |
||
15600 | $RM conftest* |
||
15601 | |||
15602 | fi |
||
15603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
||
15604 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
||
15605 | |||
15606 | if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then |
||
15607 | case $lt_prog_compiler_pic_CXX in |
||
15608 | "" | " "*) ;; |
||
15609 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
||
15610 | esac |
||
15611 | else |
||
15612 | lt_prog_compiler_pic_CXX= |
||
15613 | lt_prog_compiler_can_build_shared_CXX=no |
||
15614 | fi |
||
15615 | |||
15616 | fi |
||
15617 | |||
15618 | |||
15619 | |||
15620 | |||
15621 | |||
15622 | # |
||
15623 | # Check to make sure the static flag actually works. |
||
15624 | # |
||
15625 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
||
15626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
||
15627 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
||
15628 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
||
15629 | $as_echo_n "(cached) " >&6 |
||
15630 | else |
||
15631 | lt_cv_prog_compiler_static_works_CXX=no |
||
15632 | save_LDFLAGS=$LDFLAGS |
||
15633 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
||
15634 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
||
15635 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
||
15636 | # The linker can only warn and ignore the option if not recognized |
||
15637 | # So say no if there are warnings |
||
15638 | if test -s conftest.err; then |
||
15639 | # Append any errors to the config.log. |
||
15640 | cat conftest.err 1>&5 |
||
15641 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
||
15642 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
15643 | if diff conftest.exp conftest.er2 >/dev/null; then |
||
15644 | lt_cv_prog_compiler_static_works_CXX=yes |
||
15645 | fi |
||
15646 | else |
||
15647 | lt_cv_prog_compiler_static_works_CXX=yes |
||
15648 | fi |
||
15649 | fi |
||
15650 | $RM -r conftest* |
||
15651 | LDFLAGS=$save_LDFLAGS |
||
15652 | |||
15653 | fi |
||
15654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
||
15655 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
||
15656 | |||
15657 | if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then |
||
15658 | : |
||
15659 | else |
||
15660 | lt_prog_compiler_static_CXX= |
||
15661 | fi |
||
15662 | |||
15663 | |||
15664 | |||
15665 | |||
15666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
||
15667 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
||
15668 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
||
15669 | $as_echo_n "(cached) " >&6 |
||
15670 | else |
||
15671 | lt_cv_prog_compiler_c_o_CXX=no |
||
15672 | $RM -r conftest 2>/dev/null |
||
15673 | mkdir conftest |
||
15674 | cd conftest |
||
15675 | mkdir out |
||
15676 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
15677 | |||
15678 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
||
15679 | # Insert the option either (1) after the last *FLAGS variable, or |
||
15680 | # (2) before a word containing "conftest.", or (3) at the end. |
||
15681 | # Note that $ac_compile itself does not contain backslashes and begins |
||
15682 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
15683 | lt_compile=`echo "$ac_compile" | $SED \ |
||
15684 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
15685 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
15686 | -e 's:$: $lt_compiler_flag:'` |
||
15687 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
||
15688 | (eval "$lt_compile" 2>out/conftest.err) |
||
15689 | ac_status=$? |
||
15690 | cat out/conftest.err >&5 |
||
15691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
15692 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
||
15693 | then |
||
15694 | # The compiler can only warn and ignore the option if not recognized |
||
15695 | # So say no if there are warnings |
||
15696 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
||
15697 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
||
15698 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
||
15699 | lt_cv_prog_compiler_c_o_CXX=yes |
||
15700 | fi |
||
15701 | fi |
||
15702 | chmod u+w . 2>&5 |
||
15703 | $RM conftest* |
||
15704 | # SGI C++ compiler will create directory out/ii_files/ for |
||
15705 | # template instantiation |
||
15706 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
||
15707 | $RM out/* && rmdir out |
||
15708 | cd .. |
||
15709 | $RM -r conftest |
||
15710 | $RM conftest* |
||
15711 | |||
15712 | fi |
||
15713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
||
15714 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
||
15715 | |||
15716 | |||
15717 | |||
15718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
||
15719 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
||
15720 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
||
15721 | $as_echo_n "(cached) " >&6 |
||
15722 | else |
||
15723 | lt_cv_prog_compiler_c_o_CXX=no |
||
15724 | $RM -r conftest 2>/dev/null |
||
15725 | mkdir conftest |
||
15726 | cd conftest |
||
15727 | mkdir out |
||
15728 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
15729 | |||
15730 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
||
15731 | # Insert the option either (1) after the last *FLAGS variable, or |
||
15732 | # (2) before a word containing "conftest.", or (3) at the end. |
||
15733 | # Note that $ac_compile itself does not contain backslashes and begins |
||
15734 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
15735 | lt_compile=`echo "$ac_compile" | $SED \ |
||
15736 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
15737 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
15738 | -e 's:$: $lt_compiler_flag:'` |
||
15739 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
||
15740 | (eval "$lt_compile" 2>out/conftest.err) |
||
15741 | ac_status=$? |
||
15742 | cat out/conftest.err >&5 |
||
15743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
15744 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
||
15745 | then |
||
15746 | # The compiler can only warn and ignore the option if not recognized |
||
15747 | # So say no if there are warnings |
||
15748 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
||
15749 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
||
15750 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
||
15751 | lt_cv_prog_compiler_c_o_CXX=yes |
||
15752 | fi |
||
15753 | fi |
||
15754 | chmod u+w . 2>&5 |
||
15755 | $RM conftest* |
||
15756 | # SGI C++ compiler will create directory out/ii_files/ for |
||
15757 | # template instantiation |
||
15758 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
||
15759 | $RM out/* && rmdir out |
||
15760 | cd .. |
||
15761 | $RM -r conftest |
||
15762 | $RM conftest* |
||
15763 | |||
15764 | fi |
||
15765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
||
15766 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
||
15767 | |||
15768 | |||
15769 | |||
15770 | |||
15771 | hard_links=nottested |
||
15772 | if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then |
||
15773 | # do not overwrite the value of need_locks provided by the user |
||
15774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
||
15775 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
||
15776 | hard_links=yes |
||
15777 | $RM conftest* |
||
15778 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
15779 | touch conftest.a |
||
15780 | ln conftest.a conftest.b 2>&5 || hard_links=no |
||
15781 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
15782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
||
15783 | $as_echo "$hard_links" >&6; } |
||
15784 | if test no = "$hard_links"; then |
||
15785 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
||
15786 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
||
15787 | need_locks=warn |
||
15788 | fi |
||
15789 | else |
||
15790 | need_locks=no |
||
15791 | fi |
||
15792 | |||
15793 | |||
15794 | |||
15795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
||
15796 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
||
15797 | |||
15798 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
||
15799 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
||
15800 | case $host_os in |
||
15801 | aix[4-9]*) |
||
15802 | # If we're using GNU nm, then we don't want the "-C" option. |
||
15803 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
||
15804 | # Without the "-l" option, or with the "-B" option, AIX nm treats |
||
15805 | # weak defined symbols like other global defined symbols, whereas |
||
15806 | # GNU nm marks them as "W". |
||
15807 | # While the 'weak' keyword is ignored in the Export File, we need |
||
15808 | # it in the Import File for the 'aix-soname' feature, so we have |
||
15809 | # to replace the "-B" option with "-P" for AIX nm. |
||
15810 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
||
15811 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
||
15812 | else |
||
15813 | export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
||
15814 | fi |
||
15815 | ;; |
||
15816 | pw32*) |
||
15817 | export_symbols_cmds_CXX=$ltdll_cmds |
||
15818 | ;; |
||
7 | mjames | 15819 | cygwin* | mingw* | cegcc*) |
2 | mjames | 15820 | case $cc_basename in |
15821 | cl*) |
||
15822 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
||
15823 | ;; |
||
15824 | *) |
||
15825 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
||
15826 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
||
15827 | ;; |
||
15828 | esac |
||
15829 | ;; |
||
7 | mjames | 15830 | linux* | k*bsd*-gnu | gnu*) |
15831 | link_all_deplibs_CXX=no |
||
15832 | ;; |
||
2 | mjames | 15833 | *) |
15834 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
||
15835 | ;; |
||
15836 | esac |
||
15837 | |||
15838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
||
15839 | $as_echo "$ld_shlibs_CXX" >&6; } |
||
15840 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
||
15841 | |||
15842 | with_gnu_ld_CXX=$with_gnu_ld |
||
15843 | |||
15844 | |||
15845 | |||
15846 | |||
15847 | |||
15848 | |||
15849 | # |
||
15850 | # Do we need to explicitly link libc? |
||
15851 | # |
||
15852 | case "x$archive_cmds_need_lc_CXX" in |
||
15853 | x|xyes) |
||
15854 | # Assume -lc should be added |
||
15855 | archive_cmds_need_lc_CXX=yes |
||
15856 | |||
15857 | if test yes,yes = "$GCC,$enable_shared"; then |
||
15858 | case $archive_cmds_CXX in |
||
15859 | *'~'*) |
||
15860 | # FIXME: we may have to deal with multi-command sequences. |
||
15861 | ;; |
||
15862 | '$CC '*) |
||
15863 | # Test whether the compiler implicitly links with -lc since on some |
||
15864 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
||
15865 | # to ld, don't add -lc before -lgcc. |
||
15866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
||
15867 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
||
15868 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
||
15869 | $as_echo_n "(cached) " >&6 |
||
15870 | else |
||
15871 | $RM conftest* |
||
15872 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
15873 | |||
15874 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
15875 | (eval $ac_compile) 2>&5 |
||
15876 | ac_status=$? |
||
15877 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
15878 | test $ac_status = 0; } 2>conftest.err; then |
||
15879 | soname=conftest |
||
15880 | lib=conftest |
||
15881 | libobjs=conftest.$ac_objext |
||
15882 | deplibs= |
||
15883 | wl=$lt_prog_compiler_wl_CXX |
||
15884 | pic_flag=$lt_prog_compiler_pic_CXX |
||
15885 | compiler_flags=-v |
||
15886 | linker_flags=-v |
||
15887 | verstring= |
||
15888 | output_objdir=. |
||
15889 | libname=conftest |
||
15890 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
||
15891 | allow_undefined_flag_CXX= |
||
15892 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
||
15893 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
||
15894 | ac_status=$? |
||
15895 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
15896 | test $ac_status = 0; } |
||
15897 | then |
||
15898 | lt_cv_archive_cmds_need_lc_CXX=no |
||
15899 | else |
||
15900 | lt_cv_archive_cmds_need_lc_CXX=yes |
||
15901 | fi |
||
15902 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
||
15903 | else |
||
15904 | cat conftest.err 1>&5 |
||
15905 | fi |
||
15906 | $RM conftest* |
||
15907 | |||
15908 | fi |
||
15909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 |
||
15910 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } |
||
15911 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX |
||
15912 | ;; |
||
15913 | esac |
||
15914 | fi |
||
15915 | ;; |
||
15916 | esac |
||
15917 | |||
15918 | |||
15919 | |||
15920 | |||
15921 | |||
15922 | |||
15923 | |||
15924 | |||
15925 | |||
15926 | |||
15927 | |||
15928 | |||
15929 | |||
15930 | |||
15931 | |||
15932 | |||
15933 | |||
15934 | |||
15935 | |||
15936 | |||
15937 | |||
15938 | |||
15939 | |||
15940 | |||
15941 | |||
15942 | |||
15943 | |||
15944 | |||
15945 | |||
15946 | |||
15947 | |||
15948 | |||
15949 | |||
15950 | |||
15951 | |||
15952 | |||
15953 | |||
15954 | |||
15955 | |||
15956 | |||
15957 | |||
15958 | |||
15959 | |||
15960 | |||
15961 | |||
15962 | |||
15963 | |||
15964 | |||
15965 | |||
15966 | |||
15967 | |||
15968 | |||
15969 | |||
15970 | |||
15971 | |||
15972 | |||
15973 | |||
15974 | |||
15975 | |||
15976 | |||
15977 | |||
15978 | |||
15979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
||
15980 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
||
15981 | |||
15982 | library_names_spec= |
||
15983 | libname_spec='lib$name' |
||
15984 | soname_spec= |
||
15985 | shrext_cmds=.so |
||
15986 | postinstall_cmds= |
||
15987 | postuninstall_cmds= |
||
15988 | finish_cmds= |
||
15989 | finish_eval= |
||
15990 | shlibpath_var= |
||
15991 | shlibpath_overrides_runpath=unknown |
||
15992 | version_type=none |
||
15993 | dynamic_linker="$host_os ld.so" |
||
15994 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
||
15995 | need_lib_prefix=unknown |
||
15996 | hardcode_into_libs=no |
||
15997 | |||
15998 | # when you set need_version to no, make sure it does not cause -set_version |
||
15999 | # flags to be left without arguments |
||
16000 | need_version=unknown |
||
16001 | |||
16002 | |||
16003 | |||
16004 | case $host_os in |
||
16005 | aix3*) |
||
16006 | version_type=linux # correct to gnu/linux during the next big refactor |
||
16007 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
||
16008 | shlibpath_var=LIBPATH |
||
16009 | |||
16010 | # AIX 3 has no versioning support, so we append a major version to the name. |
||
16011 | soname_spec='$libname$release$shared_ext$major' |
||
16012 | ;; |
||
16013 | |||
16014 | aix[4-9]*) |
||
16015 | version_type=linux # correct to gnu/linux during the next big refactor |
||
16016 | need_lib_prefix=no |
||
16017 | need_version=no |
||
16018 | hardcode_into_libs=yes |
||
16019 | if test ia64 = "$host_cpu"; then |
||
16020 | # AIX 5 supports IA64 |
||
16021 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
||
16022 | shlibpath_var=LD_LIBRARY_PATH |
||
16023 | else |
||
16024 | # With GCC up to 2.95.x, collect2 would create an import file |
||
16025 | # for dependence libraries. The import file would start with |
||
16026 | # the line '#! .'. This would cause the generated library to |
||
16027 | # depend on '.', always an invalid library. This was fixed in |
||
16028 | # development snapshots of GCC prior to 3.0. |
||
16029 | case $host_os in |
||
16030 | aix4 | aix4.[01] | aix4.[01].*) |
||
16031 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
||
16032 | echo ' yes ' |
||
16033 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
||
16034 | : |
||
16035 | else |
||
16036 | can_build_shared=no |
||
16037 | fi |
||
16038 | ;; |
||
16039 | esac |
||
16040 | # Using Import Files as archive members, it is possible to support |
||
16041 | # filename-based versioning of shared library archives on AIX. While |
||
16042 | # this would work for both with and without runtime linking, it will |
||
16043 | # prevent static linking of such archives. So we do filename-based |
||
16044 | # shared library versioning with .so extension only, which is used |
||
16045 | # when both runtime linking and shared linking is enabled. |
||
16046 | # Unfortunately, runtime linking may impact performance, so we do |
||
16047 | # not want this to be the default eventually. Also, we use the |
||
16048 | # versioned .so libs for executables only if there is the -brtl |
||
16049 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
||
16050 | # To allow for filename-based versioning support, we need to create |
||
16051 | # libNAME.so.V as an archive file, containing: |
||
16052 | # *) an Import File, referring to the versioned filename of the |
||
16053 | # archive as well as the shared archive member, telling the |
||
16054 | # bitwidth (32 or 64) of that shared object, and providing the |
||
16055 | # list of exported symbols of that shared object, eventually |
||
16056 | # decorated with the 'weak' keyword |
||
16057 | # *) the shared object with the F_LOADONLY flag set, to really avoid |
||
16058 | # it being seen by the linker. |
||
16059 | # At run time we better use the real file rather than another symlink, |
||
16060 | # but for link time we create the symlink libNAME.so -> libNAME.so.V |
||
16061 | |||
16062 | case $with_aix_soname,$aix_use_runtimelinking in |
||
16063 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
||
16064 | # soname into executable. Probably we can add versioning support to |
||
16065 | # collect2, so additional links can be useful in future. |
||
16066 | aix,yes) # traditional libtool |
||
16067 | dynamic_linker='AIX unversionable lib.so' |
||
16068 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
||
16069 | # instead of lib<name>.a to let people know that these are not |
||
16070 | # typical AIX shared libraries. |
||
16071 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16072 | ;; |
||
16073 | aix,no) # traditional AIX only |
||
16074 | dynamic_linker='AIX lib.a(lib.so.V)' |
||
16075 | # We preserve .a as extension for shared libraries through AIX4.2 |
||
16076 | # and later when we are not doing run time linking. |
||
16077 | library_names_spec='$libname$release.a $libname.a' |
||
16078 | soname_spec='$libname$release$shared_ext$major' |
||
16079 | ;; |
||
16080 | svr4,*) # full svr4 only |
||
16081 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
||
16082 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
||
16083 | # We do not specify a path in Import Files, so LIBPATH fires. |
||
16084 | shlibpath_overrides_runpath=yes |
||
16085 | ;; |
||
16086 | *,yes) # both, prefer svr4 |
||
16087 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
||
16088 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
||
16089 | # unpreferred sharedlib libNAME.a needs extra handling |
||
16090 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' |
||
16091 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' |
||
16092 | # We do not specify a path in Import Files, so LIBPATH fires. |
||
16093 | shlibpath_overrides_runpath=yes |
||
16094 | ;; |
||
16095 | *,no) # both, prefer aix |
||
16096 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
||
16097 | library_names_spec='$libname$release.a $libname.a' |
||
16098 | soname_spec='$libname$release$shared_ext$major' |
||
16099 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
||
16100 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' |
||
16101 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' |
||
16102 | ;; |
||
16103 | esac |
||
16104 | shlibpath_var=LIBPATH |
||
16105 | fi |
||
16106 | ;; |
||
16107 | |||
16108 | amigaos*) |
||
16109 | case $host_cpu in |
||
16110 | powerpc) |
||
16111 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
||
16112 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
||
16113 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16114 | ;; |
||
16115 | m68k) |
||
16116 | library_names_spec='$libname.ixlibrary $libname.a' |
||
16117 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
||
16118 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
||
16119 | ;; |
||
16120 | esac |
||
16121 | ;; |
||
16122 | |||
16123 | beos*) |
||
16124 | library_names_spec='$libname$shared_ext' |
||
16125 | dynamic_linker="$host_os ld.so" |
||
16126 | shlibpath_var=LIBRARY_PATH |
||
16127 | ;; |
||
16128 | |||
16129 | bsdi[45]*) |
||
16130 | version_type=linux # correct to gnu/linux during the next big refactor |
||
16131 | need_version=no |
||
16132 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16133 | soname_spec='$libname$release$shared_ext$major' |
||
16134 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
||
16135 | shlibpath_var=LD_LIBRARY_PATH |
||
16136 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
||
16137 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
||
16138 | # the default ld.so.conf also contains /usr/contrib/lib and |
||
16139 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
||
16140 | # libtool to hard-code these into programs |
||
16141 | ;; |
||
16142 | |||
7 | mjames | 16143 | cygwin* | mingw* | pw32* | cegcc*) |
2 | mjames | 16144 | version_type=windows |
16145 | shrext_cmds=.dll |
||
16146 | need_version=no |
||
16147 | need_lib_prefix=no |
||
16148 | |||
16149 | case $GCC,$cc_basename in |
||
16150 | yes,*) |
||
16151 | # gcc |
||
16152 | library_names_spec='$libname.dll.a' |
||
16153 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
||
16154 | postinstall_cmds='base_file=`basename \$file`~ |
||
16155 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
||
16156 | dldir=$destdir/`dirname \$dlpath`~ |
||
16157 | test -d \$dldir || mkdir -p \$dldir~ |
||
16158 | $install_prog $dir/$dlname \$dldir/$dlname~ |
||
16159 | chmod a+x \$dldir/$dlname~ |
||
16160 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
||
16161 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
||
16162 | fi' |
||
16163 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
||
16164 | dlpath=$dir/\$dldll~ |
||
16165 | $RM \$dlpath' |
||
16166 | shlibpath_overrides_runpath=yes |
||
16167 | |||
16168 | case $host_os in |
||
16169 | cygwin*) |
||
16170 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
||
16171 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
||
16172 | |||
16173 | ;; |
||
16174 | mingw* | cegcc*) |
||
16175 | # MinGW DLLs use traditional 'lib' prefix |
||
16176 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
||
16177 | ;; |
||
16178 | pw32*) |
||
16179 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
||
16180 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
||
16181 | ;; |
||
16182 | esac |
||
16183 | dynamic_linker='Win32 ld.exe' |
||
16184 | ;; |
||
16185 | |||
16186 | *,cl*) |
||
16187 | # Native MSVC |
||
16188 | libname_spec='$name' |
||
16189 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
||
16190 | library_names_spec='$libname.dll.lib' |
||
16191 | |||
16192 | case $build_os in |
||
16193 | mingw*) |
||
16194 | sys_lib_search_path_spec= |
||
16195 | lt_save_ifs=$IFS |
||
16196 | IFS=';' |
||
16197 | for lt_path in $LIB |
||
16198 | do |
||
16199 | IFS=$lt_save_ifs |
||
16200 | # Let DOS variable expansion print the short 8.3 style file name. |
||
16201 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
||
16202 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
||
16203 | done |
||
16204 | IFS=$lt_save_ifs |
||
16205 | # Convert to MSYS style. |
||
16206 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
||
16207 | ;; |
||
7 | mjames | 16208 | cygwin*) |
2 | mjames | 16209 | # Convert to unix form, then to dos form, then back to unix form |
16210 | # but this time dos style (no spaces!) so that the unix form looks |
||
16211 | # like /cygdrive/c/PROGRA~1:/cygdr... |
||
16212 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
||
16213 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
||
16214 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
||
16215 | ;; |
||
16216 | *) |
||
16217 | sys_lib_search_path_spec=$LIB |
||
16218 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
||
16219 | # It is most probably a Windows format PATH. |
||
16220 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
||
16221 | else |
||
16222 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
||
16223 | fi |
||
16224 | # FIXME: find the short name or the path components, as spaces are |
||
16225 | # common. (e.g. "Program Files" -> "PROGRA~1") |
||
16226 | ;; |
||
16227 | esac |
||
16228 | |||
16229 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
||
16230 | postinstall_cmds='base_file=`basename \$file`~ |
||
16231 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
||
16232 | dldir=$destdir/`dirname \$dlpath`~ |
||
16233 | test -d \$dldir || mkdir -p \$dldir~ |
||
16234 | $install_prog $dir/$dlname \$dldir/$dlname' |
||
16235 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
||
16236 | dlpath=$dir/\$dldll~ |
||
16237 | $RM \$dlpath' |
||
16238 | shlibpath_overrides_runpath=yes |
||
16239 | dynamic_linker='Win32 link.exe' |
||
16240 | ;; |
||
16241 | |||
16242 | *) |
||
16243 | # Assume MSVC wrapper |
||
16244 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
||
16245 | dynamic_linker='Win32 ld.exe' |
||
16246 | ;; |
||
16247 | esac |
||
16248 | # FIXME: first we should search . and the directory the executable is in |
||
16249 | shlibpath_var=PATH |
||
16250 | ;; |
||
16251 | |||
16252 | darwin* | rhapsody*) |
||
16253 | dynamic_linker="$host_os dyld" |
||
16254 | version_type=darwin |
||
16255 | need_lib_prefix=no |
||
16256 | need_version=no |
||
16257 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
||
16258 | soname_spec='$libname$release$major$shared_ext' |
||
16259 | shlibpath_overrides_runpath=yes |
||
16260 | shlibpath_var=DYLD_LIBRARY_PATH |
||
16261 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
||
16262 | |||
16263 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
||
16264 | ;; |
||
16265 | |||
16266 | dgux*) |
||
16267 | version_type=linux # correct to gnu/linux during the next big refactor |
||
16268 | need_lib_prefix=no |
||
16269 | need_version=no |
||
16270 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16271 | soname_spec='$libname$release$shared_ext$major' |
||
16272 | shlibpath_var=LD_LIBRARY_PATH |
||
16273 | ;; |
||
16274 | |||
16275 | freebsd* | dragonfly*) |
||
16276 | # DragonFly does not have aout. When/if they implement a new |
||
16277 | # versioning mechanism, adjust this. |
||
16278 | if test -x /usr/bin/objformat; then |
||
16279 | objformat=`/usr/bin/objformat` |
||
16280 | else |
||
16281 | case $host_os in |
||
16282 | freebsd[23].*) objformat=aout ;; |
||
16283 | *) objformat=elf ;; |
||
16284 | esac |
||
16285 | fi |
||
16286 | version_type=freebsd-$objformat |
||
16287 | case $version_type in |
||
16288 | freebsd-elf*) |
||
16289 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16290 | soname_spec='$libname$release$shared_ext$major' |
||
16291 | need_version=no |
||
16292 | need_lib_prefix=no |
||
16293 | ;; |
||
16294 | freebsd-*) |
||
16295 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
||
16296 | need_version=yes |
||
16297 | ;; |
||
16298 | esac |
||
16299 | shlibpath_var=LD_LIBRARY_PATH |
||
16300 | case $host_os in |
||
16301 | freebsd2.*) |
||
16302 | shlibpath_overrides_runpath=yes |
||
16303 | ;; |
||
16304 | freebsd3.[01]* | freebsdelf3.[01]*) |
||
16305 | shlibpath_overrides_runpath=yes |
||
16306 | hardcode_into_libs=yes |
||
16307 | ;; |
||
16308 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
||
16309 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
||
16310 | shlibpath_overrides_runpath=no |
||
16311 | hardcode_into_libs=yes |
||
16312 | ;; |
||
16313 | *) # from 4.6 on, and DragonFly |
||
16314 | shlibpath_overrides_runpath=yes |
||
16315 | hardcode_into_libs=yes |
||
16316 | ;; |
||
16317 | esac |
||
16318 | ;; |
||
16319 | |||
16320 | haiku*) |
||
16321 | version_type=linux # correct to gnu/linux during the next big refactor |
||
16322 | need_lib_prefix=no |
||
16323 | need_version=no |
||
16324 | dynamic_linker="$host_os runtime_loader" |
||
16325 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16326 | soname_spec='$libname$release$shared_ext$major' |
||
16327 | shlibpath_var=LIBRARY_PATH |
||
16328 | shlibpath_overrides_runpath=no |
||
16329 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
||
16330 | hardcode_into_libs=yes |
||
16331 | ;; |
||
16332 | |||
16333 | hpux9* | hpux10* | hpux11*) |
||
16334 | # Give a soname corresponding to the major version so that dld.sl refuses to |
||
16335 | # link against other versions. |
||
16336 | version_type=sunos |
||
16337 | need_lib_prefix=no |
||
16338 | need_version=no |
||
16339 | case $host_cpu in |
||
16340 | ia64*) |
||
16341 | shrext_cmds='.so' |
||
16342 | hardcode_into_libs=yes |
||
16343 | dynamic_linker="$host_os dld.so" |
||
16344 | shlibpath_var=LD_LIBRARY_PATH |
||
16345 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
16346 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16347 | soname_spec='$libname$release$shared_ext$major' |
||
16348 | if test 32 = "$HPUX_IA64_MODE"; then |
||
16349 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
||
16350 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
||
16351 | else |
||
16352 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
||
16353 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
||
16354 | fi |
||
16355 | ;; |
||
16356 | hppa*64*) |
||
16357 | shrext_cmds='.sl' |
||
16358 | hardcode_into_libs=yes |
||
16359 | dynamic_linker="$host_os dld.sl" |
||
16360 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
||
16361 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
16362 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16363 | soname_spec='$libname$release$shared_ext$major' |
||
16364 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
||
16365 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
16366 | ;; |
||
16367 | *) |
||
16368 | shrext_cmds='.sl' |
||
16369 | dynamic_linker="$host_os dld.sl" |
||
16370 | shlibpath_var=SHLIB_PATH |
||
16371 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
||
16372 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16373 | soname_spec='$libname$release$shared_ext$major' |
||
16374 | ;; |
||
16375 | esac |
||
16376 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
||
16377 | postinstall_cmds='chmod 555 $lib' |
||
16378 | # or fails outright, so override atomically: |
||
16379 | install_override_mode=555 |
||
16380 | ;; |
||
16381 | |||
16382 | interix[3-9]*) |
||
16383 | version_type=linux # correct to gnu/linux during the next big refactor |
||
16384 | need_lib_prefix=no |
||
16385 | need_version=no |
||
16386 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16387 | soname_spec='$libname$release$shared_ext$major' |
||
16388 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
||
16389 | shlibpath_var=LD_LIBRARY_PATH |
||
16390 | shlibpath_overrides_runpath=no |
||
16391 | hardcode_into_libs=yes |
||
16392 | ;; |
||
16393 | |||
16394 | irix5* | irix6* | nonstopux*) |
||
16395 | case $host_os in |
||
16396 | nonstopux*) version_type=nonstopux ;; |
||
16397 | *) |
||
16398 | if test yes = "$lt_cv_prog_gnu_ld"; then |
||
16399 | version_type=linux # correct to gnu/linux during the next big refactor |
||
16400 | else |
||
16401 | version_type=irix |
||
16402 | fi ;; |
||
16403 | esac |
||
16404 | need_lib_prefix=no |
||
16405 | need_version=no |
||
16406 | soname_spec='$libname$release$shared_ext$major' |
||
16407 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
||
16408 | case $host_os in |
||
16409 | irix5* | nonstopux*) |
||
16410 | libsuff= shlibsuff= |
||
16411 | ;; |
||
16412 | *) |
||
16413 | case $LD in # libtool.m4 will add one of these switches to LD |
||
16414 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
||
16415 | libsuff= shlibsuff= libmagic=32-bit;; |
||
16416 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
||
16417 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
||
16418 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
||
16419 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
||
16420 | *) libsuff= shlibsuff= libmagic=never-match;; |
||
16421 | esac |
||
16422 | ;; |
||
16423 | esac |
||
16424 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
||
16425 | shlibpath_overrides_runpath=no |
||
16426 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
||
16427 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
||
16428 | hardcode_into_libs=yes |
||
16429 | ;; |
||
16430 | |||
16431 | # No shared lib support for Linux oldld, aout, or coff. |
||
16432 | linux*oldld* | linux*aout* | linux*coff*) |
||
16433 | dynamic_linker=no |
||
16434 | ;; |
||
16435 | |||
16436 | linux*android*) |
||
16437 | version_type=none # Android doesn't support versioned libraries. |
||
16438 | need_lib_prefix=no |
||
16439 | need_version=no |
||
16440 | library_names_spec='$libname$release$shared_ext' |
||
16441 | soname_spec='$libname$release$shared_ext' |
||
16442 | finish_cmds= |
||
16443 | shlibpath_var=LD_LIBRARY_PATH |
||
16444 | shlibpath_overrides_runpath=yes |
||
16445 | |||
16446 | # This implies no fast_install, which is unacceptable. |
||
16447 | # Some rework will be needed to allow for fast_install |
||
16448 | # before this can be enabled. |
||
16449 | hardcode_into_libs=yes |
||
16450 | |||
16451 | dynamic_linker='Android linker' |
||
16452 | # Don't embed -rpath directories since the linker doesn't support them. |
||
16453 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
||
16454 | ;; |
||
16455 | |||
16456 | # This must be glibc/ELF. |
||
16457 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
||
16458 | version_type=linux # correct to gnu/linux during the next big refactor |
||
16459 | need_lib_prefix=no |
||
16460 | need_version=no |
||
16461 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16462 | soname_spec='$libname$release$shared_ext$major' |
||
16463 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
||
16464 | shlibpath_var=LD_LIBRARY_PATH |
||
16465 | shlibpath_overrides_runpath=no |
||
16466 | |||
16467 | # Some binutils ld are patched to set DT_RUNPATH |
||
16468 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
||
16469 | $as_echo_n "(cached) " >&6 |
||
16470 | else |
||
16471 | lt_cv_shlibpath_overrides_runpath=no |
||
16472 | save_LDFLAGS=$LDFLAGS |
||
16473 | save_libdir=$libdir |
||
16474 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
||
16475 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
||
16476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
16477 | /* end confdefs.h. */ |
||
16478 | |||
16479 | int |
||
16480 | main () |
||
16481 | { |
||
16482 | |||
16483 | ; |
||
16484 | return 0; |
||
16485 | } |
||
16486 | _ACEOF |
||
16487 | if ac_fn_cxx_try_link "$LINENO"; then : |
||
16488 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
||
16489 | lt_cv_shlibpath_overrides_runpath=yes |
||
16490 | fi |
||
16491 | fi |
||
16492 | rm -f core conftest.err conftest.$ac_objext \ |
||
16493 | conftest$ac_exeext conftest.$ac_ext |
||
16494 | LDFLAGS=$save_LDFLAGS |
||
16495 | libdir=$save_libdir |
||
16496 | |||
16497 | fi |
||
16498 | |||
16499 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
||
16500 | |||
16501 | # This implies no fast_install, which is unacceptable. |
||
16502 | # Some rework will be needed to allow for fast_install |
||
16503 | # before this can be enabled. |
||
16504 | hardcode_into_libs=yes |
||
16505 | |||
16506 | # Ideally, we could use ldconfig to report *all* directores which are |
||
16507 | # searched for libraries, however this is still not possible. Aside from not |
||
16508 | # being certain /sbin/ldconfig is available, command |
||
16509 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
||
16510 | # even though it is searched at run-time. Try to do the best guess by |
||
16511 | # appending ld.so.conf contents (and includes) to the search path. |
||
16512 | if test -f /etc/ld.so.conf; then |
||
16513 | 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' ' '` |
||
16514 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
||
16515 | fi |
||
16516 | |||
16517 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
||
16518 | # powerpc, because MkLinux only supported shared libraries with the |
||
16519 | # GNU dynamic linker. Since this was broken with cross compilers, |
||
16520 | # most powerpc-linux boxes support dynamic linking these days and |
||
16521 | # people can always --disable-shared, the test was removed, and we |
||
16522 | # assume the GNU/Linux dynamic linker is in use. |
||
16523 | dynamic_linker='GNU/Linux ld.so' |
||
16524 | ;; |
||
16525 | |||
7 | mjames | 16526 | netbsdelf*-gnu) |
16527 | version_type=linux |
||
16528 | need_lib_prefix=no |
||
16529 | need_version=no |
||
16530 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
16531 | soname_spec='${libname}${release}${shared_ext}$major' |
||
16532 | shlibpath_var=LD_LIBRARY_PATH |
||
16533 | shlibpath_overrides_runpath=no |
||
16534 | hardcode_into_libs=yes |
||
16535 | dynamic_linker='NetBSD ld.elf_so' |
||
16536 | ;; |
||
16537 | |||
2 | mjames | 16538 | netbsd*) |
16539 | version_type=sunos |
||
16540 | need_lib_prefix=no |
||
16541 | need_version=no |
||
16542 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
||
16543 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
||
16544 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
16545 | dynamic_linker='NetBSD (a.out) ld.so' |
||
16546 | else |
||
16547 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16548 | soname_spec='$libname$release$shared_ext$major' |
||
16549 | dynamic_linker='NetBSD ld.elf_so' |
||
16550 | fi |
||
16551 | shlibpath_var=LD_LIBRARY_PATH |
||
16552 | shlibpath_overrides_runpath=yes |
||
16553 | hardcode_into_libs=yes |
||
16554 | ;; |
||
16555 | |||
16556 | newsos6) |
||
16557 | version_type=linux # correct to gnu/linux during the next big refactor |
||
16558 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16559 | shlibpath_var=LD_LIBRARY_PATH |
||
16560 | shlibpath_overrides_runpath=yes |
||
16561 | ;; |
||
16562 | |||
16563 | *nto* | *qnx*) |
||
16564 | version_type=qnx |
||
16565 | need_lib_prefix=no |
||
16566 | need_version=no |
||
16567 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16568 | soname_spec='$libname$release$shared_ext$major' |
||
16569 | shlibpath_var=LD_LIBRARY_PATH |
||
16570 | shlibpath_overrides_runpath=no |
||
16571 | hardcode_into_libs=yes |
||
16572 | dynamic_linker='ldqnx.so' |
||
16573 | ;; |
||
16574 | |||
16575 | openbsd* | bitrig*) |
||
16576 | version_type=sunos |
||
16577 | sys_lib_dlsearch_path_spec=/usr/lib |
||
16578 | need_lib_prefix=no |
||
16579 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
||
16580 | need_version=no |
||
16581 | else |
||
16582 | need_version=yes |
||
16583 | fi |
||
16584 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
||
16585 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
16586 | shlibpath_var=LD_LIBRARY_PATH |
||
16587 | shlibpath_overrides_runpath=yes |
||
16588 | ;; |
||
16589 | |||
16590 | os2*) |
||
16591 | libname_spec='$name' |
||
16592 | version_type=windows |
||
16593 | shrext_cmds=.dll |
||
16594 | need_version=no |
||
16595 | need_lib_prefix=no |
||
16596 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
||
16597 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
||
16598 | v=$($ECHO $release$versuffix | tr -d .-); |
||
16599 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
||
16600 | $ECHO $n$v`$shared_ext' |
||
16601 | library_names_spec='${libname}_dll.$libext' |
||
16602 | dynamic_linker='OS/2 ld.exe' |
||
16603 | shlibpath_var=BEGINLIBPATH |
||
16604 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
||
16605 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
16606 | postinstall_cmds='base_file=`basename \$file`~ |
||
16607 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
||
16608 | dldir=$destdir/`dirname \$dlpath`~ |
||
16609 | test -d \$dldir || mkdir -p \$dldir~ |
||
16610 | $install_prog $dir/$dlname \$dldir/$dlname~ |
||
16611 | chmod a+x \$dldir/$dlname~ |
||
16612 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
||
16613 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
||
16614 | fi' |
||
16615 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
||
16616 | dlpath=$dir/\$dldll~ |
||
16617 | $RM \$dlpath' |
||
16618 | ;; |
||
16619 | |||
16620 | osf3* | osf4* | osf5*) |
||
16621 | version_type=osf |
||
16622 | need_lib_prefix=no |
||
16623 | need_version=no |
||
16624 | soname_spec='$libname$release$shared_ext$major' |
||
16625 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16626 | shlibpath_var=LD_LIBRARY_PATH |
||
16627 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
||
16628 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
16629 | ;; |
||
16630 | |||
16631 | rdos*) |
||
16632 | dynamic_linker=no |
||
16633 | ;; |
||
16634 | |||
16635 | solaris*) |
||
16636 | version_type=linux # correct to gnu/linux during the next big refactor |
||
16637 | need_lib_prefix=no |
||
16638 | need_version=no |
||
16639 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16640 | soname_spec='$libname$release$shared_ext$major' |
||
16641 | shlibpath_var=LD_LIBRARY_PATH |
||
16642 | shlibpath_overrides_runpath=yes |
||
16643 | hardcode_into_libs=yes |
||
16644 | # ldd complains unless libraries are executable |
||
16645 | postinstall_cmds='chmod +x $lib' |
||
16646 | ;; |
||
16647 | |||
16648 | sunos4*) |
||
16649 | version_type=sunos |
||
16650 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
||
16651 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
||
16652 | shlibpath_var=LD_LIBRARY_PATH |
||
16653 | shlibpath_overrides_runpath=yes |
||
16654 | if test yes = "$with_gnu_ld"; then |
||
16655 | need_lib_prefix=no |
||
16656 | fi |
||
16657 | need_version=yes |
||
16658 | ;; |
||
16659 | |||
16660 | sysv4 | sysv4.3*) |
||
16661 | version_type=linux # correct to gnu/linux during the next big refactor |
||
16662 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16663 | soname_spec='$libname$release$shared_ext$major' |
||
16664 | shlibpath_var=LD_LIBRARY_PATH |
||
16665 | case $host_vendor in |
||
16666 | sni) |
||
16667 | shlibpath_overrides_runpath=no |
||
16668 | need_lib_prefix=no |
||
16669 | runpath_var=LD_RUN_PATH |
||
16670 | ;; |
||
16671 | siemens) |
||
16672 | need_lib_prefix=no |
||
16673 | ;; |
||
16674 | motorola) |
||
16675 | need_lib_prefix=no |
||
16676 | need_version=no |
||
16677 | shlibpath_overrides_runpath=no |
||
16678 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
||
16679 | ;; |
||
16680 | esac |
||
16681 | ;; |
||
16682 | |||
16683 | sysv4*MP*) |
||
16684 | if test -d /usr/nec; then |
||
16685 | version_type=linux # correct to gnu/linux during the next big refactor |
||
16686 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
||
16687 | soname_spec='$libname$shared_ext.$major' |
||
16688 | shlibpath_var=LD_LIBRARY_PATH |
||
16689 | fi |
||
16690 | ;; |
||
16691 | |||
16692 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
||
16693 | version_type=sco |
||
16694 | need_lib_prefix=no |
||
16695 | need_version=no |
||
16696 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
||
16697 | soname_spec='$libname$release$shared_ext$major' |
||
16698 | shlibpath_var=LD_LIBRARY_PATH |
||
16699 | shlibpath_overrides_runpath=yes |
||
16700 | hardcode_into_libs=yes |
||
16701 | if test yes = "$with_gnu_ld"; then |
||
16702 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
||
16703 | else |
||
16704 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
||
16705 | case $host_os in |
||
16706 | sco3.2v5*) |
||
16707 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
||
16708 | ;; |
||
16709 | esac |
||
16710 | fi |
||
16711 | sys_lib_dlsearch_path_spec='/usr/lib' |
||
16712 | ;; |
||
16713 | |||
16714 | tpf*) |
||
16715 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
||
16716 | version_type=linux # correct to gnu/linux during the next big refactor |
||
16717 | need_lib_prefix=no |
||
16718 | need_version=no |
||
16719 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16720 | shlibpath_var=LD_LIBRARY_PATH |
||
16721 | shlibpath_overrides_runpath=no |
||
16722 | hardcode_into_libs=yes |
||
16723 | ;; |
||
16724 | |||
16725 | uts4*) |
||
16726 | version_type=linux # correct to gnu/linux during the next big refactor |
||
16727 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
16728 | soname_spec='$libname$release$shared_ext$major' |
||
16729 | shlibpath_var=LD_LIBRARY_PATH |
||
16730 | ;; |
||
16731 | |||
16732 | *) |
||
16733 | dynamic_linker=no |
||
16734 | ;; |
||
16735 | esac |
||
16736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
||
16737 | $as_echo "$dynamic_linker" >&6; } |
||
16738 | test no = "$dynamic_linker" && can_build_shared=no |
||
16739 | |||
16740 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
||
16741 | if test yes = "$GCC"; then |
||
16742 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
||
16743 | fi |
||
16744 | |||
16745 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
||
16746 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
||
16747 | fi |
||
16748 | |||
16749 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
||
16750 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
||
16751 | fi |
||
16752 | |||
16753 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
||
16754 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
||
16755 | |||
16756 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
||
16757 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
||
16758 | |||
16759 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
||
16760 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
||
16761 | |||
16762 | |||
16763 | |||
16764 | |||
16765 | |||
16766 | |||
16767 | |||
16768 | |||
16769 | |||
16770 | |||
16771 | |||
16772 | |||
16773 | |||
16774 | |||
16775 | |||
16776 | |||
16777 | |||
16778 | |||
16779 | |||
16780 | |||
16781 | |||
16782 | |||
16783 | |||
16784 | |||
16785 | |||
16786 | |||
16787 | |||
16788 | |||
16789 | |||
16790 | |||
16791 | |||
16792 | |||
16793 | |||
16794 | |||
16795 | |||
16796 | |||
16797 | |||
16798 | |||
16799 | |||
16800 | |||
16801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
||
16802 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
||
16803 | hardcode_action_CXX= |
||
16804 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
||
16805 | test -n "$runpath_var_CXX" || |
||
16806 | test yes = "$hardcode_automatic_CXX"; then |
||
16807 | |||
16808 | # We can hardcode non-existent directories. |
||
16809 | if test no != "$hardcode_direct_CXX" && |
||
16810 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
||
16811 | # have to relink, otherwise we might link with an installed library |
||
16812 | # when we should be linking with a yet-to-be-installed one |
||
16813 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && |
||
16814 | test no != "$hardcode_minus_L_CXX"; then |
||
16815 | # Linking always hardcodes the temporary library directory. |
||
16816 | hardcode_action_CXX=relink |
||
16817 | else |
||
16818 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
||
16819 | hardcode_action_CXX=immediate |
||
16820 | fi |
||
16821 | else |
||
16822 | # We cannot hardcode anything, or else we can only hardcode existing |
||
16823 | # directories. |
||
16824 | hardcode_action_CXX=unsupported |
||
16825 | fi |
||
16826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
||
16827 | $as_echo "$hardcode_action_CXX" >&6; } |
||
16828 | |||
16829 | if test relink = "$hardcode_action_CXX" || |
||
16830 | test yes = "$inherit_rpath_CXX"; then |
||
16831 | # Fast installation is not supported |
||
16832 | enable_fast_install=no |
||
16833 | elif test yes = "$shlibpath_overrides_runpath" || |
||
16834 | test no = "$enable_shared"; then |
||
16835 | # Fast installation is not necessary |
||
16836 | enable_fast_install=needless |
||
16837 | fi |
||
16838 | |||
16839 | |||
16840 | |||
16841 | |||
16842 | |||
16843 | |||
16844 | |||
16845 | fi # test -n "$compiler" |
||
16846 | |||
16847 | CC=$lt_save_CC |
||
16848 | CFLAGS=$lt_save_CFLAGS |
||
16849 | LDCXX=$LD |
||
16850 | LD=$lt_save_LD |
||
16851 | GCC=$lt_save_GCC |
||
16852 | with_gnu_ld=$lt_save_with_gnu_ld |
||
16853 | lt_cv_path_LDCXX=$lt_cv_path_LD |
||
16854 | lt_cv_path_LD=$lt_save_path_LD |
||
16855 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
||
16856 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
||
16857 | fi # test yes != "$_lt_caught_CXX_error" |
||
16858 | |||
16859 | ac_ext=c |
||
16860 | ac_cpp='$CPP $CPPFLAGS' |
||
16861 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
16862 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
16863 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
16864 | |||
16865 | |||
16866 | |||
16867 | |||
16868 | |||
16869 | |||
16870 | ac_config_files="$ac_config_files Makefile vertlib/Makefile cmdlib/Makefile versionlib/Makefile acf_src/Makefile cdi_src/Makefile eagle_src/Makefile frb_src/Makefile gen_src/Makefile mentor_src/Makefile net_src/Makefile orcad_src/Makefile pads_src/Makefile protel_src/Makefile rep2_src/Makefile rep_src/Makefile" |
||
16871 | |||
16872 | cat >confcache <<\_ACEOF |
||
16873 | # This file is a shell script that caches the results of configure |
||
16874 | # tests run on this system so they can be shared between configure |
||
16875 | # scripts and configure runs, see configure's option --config-cache. |
||
16876 | # It is not useful on other systems. If it contains results you don't |
||
16877 | # want to keep, you may remove or edit it. |
||
16878 | # |
||
16879 | # config.status only pays attention to the cache file if you give it |
||
16880 | # the --recheck option to rerun configure. |
||
16881 | # |
||
16882 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
||
16883 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
||
16884 | # following values. |
||
16885 | |||
16886 | _ACEOF |
||
16887 | |||
16888 | # The following way of writing the cache mishandles newlines in values, |
||
16889 | # but we know of no workaround that is simple, portable, and efficient. |
||
16890 | # So, we kill variables containing newlines. |
||
16891 | # Ultrix sh set writes to stderr and can't be redirected directly, |
||
16892 | # and sets the high bit in the cache file unless we assign to the vars. |
||
16893 | ( |
||
16894 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
||
16895 | eval ac_val=\$$ac_var |
||
16896 | case $ac_val in #( |
||
16897 | *${as_nl}*) |
||
16898 | case $ac_var in #( |
||
16899 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
||
16900 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
||
16901 | esac |
||
16902 | case $ac_var in #( |
||
16903 | _ | IFS | as_nl) ;; #( |
||
16904 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
||
16905 | *) { eval $ac_var=; unset $ac_var;} ;; |
||
16906 | esac ;; |
||
16907 | esac |
||
16908 | done |
||
16909 | |||
16910 | (set) 2>&1 | |
||
16911 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
||
16912 | *${as_nl}ac_space=\ *) |
||
16913 | # `set' does not quote correctly, so add quotes: double-quote |
||
16914 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
||
16915 | sed -n \ |
||
16916 | "s/'/'\\\\''/g; |
||
16917 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
||
16918 | ;; #( |
||
16919 | *) |
||
16920 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
||
16921 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
||
16922 | ;; |
||
16923 | esac | |
||
16924 | sort |
||
16925 | ) | |
||
16926 | sed ' |
||
16927 | /^ac_cv_env_/b end |
||
16928 | t clear |
||
16929 | :clear |
||
16930 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
||
16931 | t end |
||
16932 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
||
16933 | :end' >>confcache |
||
16934 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
||
16935 | if test -w "$cache_file"; then |
||
16936 | if test "x$cache_file" != "x/dev/null"; then |
||
16937 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
||
16938 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
||
16939 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
||
16940 | cat confcache >"$cache_file" |
||
16941 | else |
||
16942 | case $cache_file in #( |
||
16943 | */* | ?:*) |
||
16944 | mv -f confcache "$cache_file"$$ && |
||
16945 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
||
16946 | *) |
||
16947 | mv -f confcache "$cache_file" ;; |
||
16948 | esac |
||
16949 | fi |
||
16950 | fi |
||
16951 | else |
||
16952 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
||
16953 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
||
16954 | fi |
||
16955 | fi |
||
16956 | rm -f confcache |
||
16957 | |||
16958 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
||
16959 | # Let make expand exec_prefix. |
||
16960 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
||
16961 | |||
16962 | DEFS=-DHAVE_CONFIG_H |
||
16963 | |||
16964 | ac_libobjs= |
||
16965 | ac_ltlibobjs= |
||
16966 | U= |
||
16967 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
||
16968 | # 1. Remove the extension, and $U if already installed. |
||
16969 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
||
16970 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
||
16971 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
||
16972 | # will be set to the directory where LIBOBJS objects are built. |
||
16973 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
||
16974 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
||
16975 | done |
||
16976 | LIBOBJS=$ac_libobjs |
||
16977 | |||
16978 | LTLIBOBJS=$ac_ltlibobjs |
||
16979 | |||
16980 | |||
16981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
||
16982 | $as_echo_n "checking that generated files are newer than configure... " >&6; } |
||
16983 | if test -n "$am_sleep_pid"; then |
||
16984 | # Hide warnings about reused PIDs. |
||
16985 | wait $am_sleep_pid 2>/dev/null |
||
16986 | fi |
||
16987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
||
16988 | $as_echo "done" >&6; } |
||
16989 | if test -n "$EXEEXT"; then |
||
16990 | am__EXEEXT_TRUE= |
||
16991 | am__EXEEXT_FALSE='#' |
||
16992 | else |
||
16993 | am__EXEEXT_TRUE='#' |
||
16994 | am__EXEEXT_FALSE= |
||
16995 | fi |
||
16996 | |||
16997 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
||
16998 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
||
16999 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
17000 | fi |
||
17001 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
||
17002 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
||
17003 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
17004 | fi |
||
17005 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
||
17006 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
||
17007 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
17008 | fi |
||
17009 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
||
17010 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
||
17011 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
17012 | fi |
||
17013 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
||
17014 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
||
17015 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
17016 | fi |
||
17017 | |||
17018 | : "${CONFIG_STATUS=./config.status}" |
||
17019 | ac_write_fail=0 |
||
17020 | ac_clean_files_save=$ac_clean_files |
||
17021 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
||
17022 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
||
17023 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
||
17024 | as_write_fail=0 |
||
17025 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
||
17026 | #! $SHELL |
||
17027 | # Generated by $as_me. |
||
17028 | # Run this file to recreate the current configuration. |
||
17029 | # Compiler output produced by configure, useful for debugging |
||
17030 | # configure, is in config.log if it exists. |
||
17031 | |||
17032 | debug=false |
||
17033 | ac_cs_recheck=false |
||
17034 | ac_cs_silent=false |
||
17035 | |||
17036 | SHELL=\${CONFIG_SHELL-$SHELL} |
||
17037 | export SHELL |
||
17038 | _ASEOF |
||
17039 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
||
17040 | ## -------------------- ## |
||
17041 | ## M4sh Initialization. ## |
||
17042 | ## -------------------- ## |
||
17043 | |||
17044 | # Be more Bourne compatible |
||
17045 | DUALCASE=1; export DUALCASE # for MKS sh |
||
17046 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
||
17047 | emulate sh |
||
17048 | NULLCMD=: |
||
17049 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
||
17050 | # is contrary to our usage. Disable this feature. |
||
17051 | alias -g '${1+"$@"}'='"$@"' |
||
17052 | setopt NO_GLOB_SUBST |
||
17053 | else |
||
17054 | case `(set -o) 2>/dev/null` in #( |
||
17055 | *posix*) : |
||
17056 | set -o posix ;; #( |
||
17057 | *) : |
||
17058 | ;; |
||
17059 | esac |
||
17060 | fi |
||
17061 | |||
17062 | |||
17063 | as_nl=' |
||
17064 | ' |
||
17065 | export as_nl |
||
17066 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
||
17067 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
||
17068 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
||
17069 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
||
17070 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
||
17071 | # but without wasting forks for bash or zsh. |
||
17072 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
||
17073 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
||
17074 | as_echo='print -r --' |
||
17075 | as_echo_n='print -rn --' |
||
17076 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
||
17077 | as_echo='printf %s\n' |
||
17078 | as_echo_n='printf %s' |
||
17079 | else |
||
17080 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
||
17081 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
||
17082 | as_echo_n='/usr/ucb/echo -n' |
||
17083 | else |
||
17084 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
||
17085 | as_echo_n_body='eval |
||
17086 | arg=$1; |
||
17087 | case $arg in #( |
||
17088 | *"$as_nl"*) |
||
17089 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
||
17090 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
||
17091 | esac; |
||
17092 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
||
17093 | ' |
||
17094 | export as_echo_n_body |
||
17095 | as_echo_n='sh -c $as_echo_n_body as_echo' |
||
17096 | fi |
||
17097 | export as_echo_body |
||
17098 | as_echo='sh -c $as_echo_body as_echo' |
||
17099 | fi |
||
17100 | |||
17101 | # The user is always right. |
||
17102 | if test "${PATH_SEPARATOR+set}" != set; then |
||
17103 | PATH_SEPARATOR=: |
||
17104 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
||
17105 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
||
17106 | PATH_SEPARATOR=';' |
||
17107 | } |
||
17108 | fi |
||
17109 | |||
17110 | |||
17111 | # IFS |
||
17112 | # We need space, tab and new line, in precisely that order. Quoting is |
||
17113 | # there to prevent editors from complaining about space-tab. |
||
17114 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
||
17115 | # splitting by setting IFS to empty value.) |
||
17116 | IFS=" "" $as_nl" |
||
17117 | |||
17118 | # Find who we are. Look in the path if we contain no directory separator. |
||
17119 | as_myself= |
||
17120 | case $0 in #(( |
||
17121 | *[\\/]* ) as_myself=$0 ;; |
||
17122 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
17123 | for as_dir in $PATH |
||
17124 | do |
||
17125 | IFS=$as_save_IFS |
||
17126 | test -z "$as_dir" && as_dir=. |
||
17127 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
||
17128 | done |
||
17129 | IFS=$as_save_IFS |
||
17130 | |||
17131 | ;; |
||
17132 | esac |
||
17133 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
||
17134 | # in which case we are not to be found in the path. |
||
17135 | if test "x$as_myself" = x; then |
||
17136 | as_myself=$0 |
||
17137 | fi |
||
17138 | if test ! -f "$as_myself"; then |
||
17139 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
||
17140 | exit 1 |
||
17141 | fi |
||
17142 | |||
17143 | # Unset variables that we do not need and which cause bugs (e.g. in |
||
17144 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
||
17145 | # suppresses any "Segmentation fault" message there. '((' could |
||
17146 | # trigger a bug in pdksh 5.2.14. |
||
17147 | for as_var in BASH_ENV ENV MAIL MAILPATH |
||
17148 | do eval test x\${$as_var+set} = xset \ |
||
17149 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
||
17150 | done |
||
17151 | PS1='$ ' |
||
17152 | PS2='> ' |
||
17153 | PS4='+ ' |
||
17154 | |||
17155 | # NLS nuisances. |
||
17156 | LC_ALL=C |
||
17157 | export LC_ALL |
||
17158 | LANGUAGE=C |
||
17159 | export LANGUAGE |
||
17160 | |||
17161 | # CDPATH. |
||
17162 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
||
17163 | |||
17164 | |||
17165 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
||
17166 | # ---------------------------------------- |
||
17167 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
||
17168 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
||
17169 | # script with STATUS, using 1 if that was 0. |
||
17170 | as_fn_error () |
||
17171 | { |
||
17172 | as_status=$1; test $as_status -eq 0 && as_status=1 |
||
17173 | if test "$4"; then |
||
17174 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
17175 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
||
17176 | fi |
||
17177 | $as_echo "$as_me: error: $2" >&2 |
||
17178 | as_fn_exit $as_status |
||
17179 | } # as_fn_error |
||
17180 | |||
17181 | |||
17182 | # as_fn_set_status STATUS |
||
17183 | # ----------------------- |
||
17184 | # Set $? to STATUS, without forking. |
||
17185 | as_fn_set_status () |
||
17186 | { |
||
17187 | return $1 |
||
17188 | } # as_fn_set_status |
||
17189 | |||
17190 | # as_fn_exit STATUS |
||
17191 | # ----------------- |
||
17192 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
||
17193 | as_fn_exit () |
||
17194 | { |
||
17195 | set +e |
||
17196 | as_fn_set_status $1 |
||
17197 | exit $1 |
||
17198 | } # as_fn_exit |
||
17199 | |||
17200 | # as_fn_unset VAR |
||
17201 | # --------------- |
||
17202 | # Portably unset VAR. |
||
17203 | as_fn_unset () |
||
17204 | { |
||
17205 | { eval $1=; unset $1;} |
||
17206 | } |
||
17207 | as_unset=as_fn_unset |
||
17208 | # as_fn_append VAR VALUE |
||
17209 | # ---------------------- |
||
17210 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
||
17211 | # advantage of any shell optimizations that allow amortized linear growth over |
||
17212 | # repeated appends, instead of the typical quadratic growth present in naive |
||
17213 | # implementations. |
||
17214 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
||
17215 | eval 'as_fn_append () |
||
17216 | { |
||
17217 | eval $1+=\$2 |
||
17218 | }' |
||
17219 | else |
||
17220 | as_fn_append () |
||
17221 | { |
||
17222 | eval $1=\$$1\$2 |
||
17223 | } |
||
17224 | fi # as_fn_append |
||
17225 | |||
17226 | # as_fn_arith ARG... |
||
17227 | # ------------------ |
||
17228 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
||
17229 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
||
17230 | # must be portable across $(()) and expr. |
||
17231 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
||
17232 | eval 'as_fn_arith () |
||
17233 | { |
||
17234 | as_val=$(( $* )) |
||
17235 | }' |
||
17236 | else |
||
17237 | as_fn_arith () |
||
17238 | { |
||
17239 | as_val=`expr "$@" || test $? -eq 1` |
||
17240 | } |
||
17241 | fi # as_fn_arith |
||
17242 | |||
17243 | |||
17244 | if expr a : '\(a\)' >/dev/null 2>&1 && |
||
17245 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
||
17246 | as_expr=expr |
||
17247 | else |
||
17248 | as_expr=false |
||
17249 | fi |
||
17250 | |||
17251 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
||
17252 | as_basename=basename |
||
17253 | else |
||
17254 | as_basename=false |
||
17255 | fi |
||
17256 | |||
17257 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
||
17258 | as_dirname=dirname |
||
17259 | else |
||
17260 | as_dirname=false |
||
17261 | fi |
||
17262 | |||
17263 | as_me=`$as_basename -- "$0" || |
||
17264 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
||
17265 | X"$0" : 'X\(//\)$' \| \ |
||
17266 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
||
17267 | $as_echo X/"$0" | |
||
17268 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
||
17269 | s//\1/ |
||
17270 | q |
||
17271 | } |
||
17272 | /^X\/\(\/\/\)$/{ |
||
17273 | s//\1/ |
||
17274 | q |
||
17275 | } |
||
17276 | /^X\/\(\/\).*/{ |
||
17277 | s//\1/ |
||
17278 | q |
||
17279 | } |
||
17280 | s/.*/./; q'` |
||
17281 | |||
17282 | # Avoid depending upon Character Ranges. |
||
17283 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
||
17284 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
17285 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
||
17286 | as_cr_digits='0123456789' |
||
17287 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
||
17288 | |||
17289 | ECHO_C= ECHO_N= ECHO_T= |
||
17290 | case `echo -n x` in #((((( |
||
17291 | -n*) |
||
17292 | case `echo 'xy\c'` in |
||
17293 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
||
17294 | xy) ECHO_C='\c';; |
||
17295 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
||
17296 | ECHO_T=' ';; |
||
17297 | esac;; |
||
17298 | *) |
||
17299 | ECHO_N='-n';; |
||
17300 | esac |
||
17301 | |||
17302 | rm -f conf$$ conf$$.exe conf$$.file |
||
17303 | if test -d conf$$.dir; then |
||
17304 | rm -f conf$$.dir/conf$$.file |
||
17305 | else |
||
17306 | rm -f conf$$.dir |
||
17307 | mkdir conf$$.dir 2>/dev/null |
||
17308 | fi |
||
17309 | if (echo >conf$$.file) 2>/dev/null; then |
||
17310 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
||
17311 | as_ln_s='ln -s' |
||
17312 | # ... but there are two gotchas: |
||
17313 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
||
17314 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
||
17315 | # In both cases, we have to default to `cp -pR'. |
||
17316 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
||
17317 | as_ln_s='cp -pR' |
||
17318 | elif ln conf$$.file conf$$ 2>/dev/null; then |
||
17319 | as_ln_s=ln |
||
17320 | else |
||
17321 | as_ln_s='cp -pR' |
||
17322 | fi |
||
17323 | else |
||
17324 | as_ln_s='cp -pR' |
||
17325 | fi |
||
17326 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
||
17327 | rmdir conf$$.dir 2>/dev/null |
||
17328 | |||
17329 | |||
17330 | # as_fn_mkdir_p |
||
17331 | # ------------- |
||
17332 | # Create "$as_dir" as a directory, including parents if necessary. |
||
17333 | as_fn_mkdir_p () |
||
17334 | { |
||
17335 | |||
17336 | case $as_dir in #( |
||
17337 | -*) as_dir=./$as_dir;; |
||
17338 | esac |
||
17339 | test -d "$as_dir" || eval $as_mkdir_p || { |
||
17340 | as_dirs= |
||
17341 | while :; do |
||
17342 | case $as_dir in #( |
||
17343 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
||
17344 | *) as_qdir=$as_dir;; |
||
17345 | esac |
||
17346 | as_dirs="'$as_qdir' $as_dirs" |
||
17347 | as_dir=`$as_dirname -- "$as_dir" || |
||
17348 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
17349 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
||
17350 | X"$as_dir" : 'X\(//\)$' \| \ |
||
17351 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
||
17352 | $as_echo X"$as_dir" | |
||
17353 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
17354 | s//\1/ |
||
17355 | q |
||
17356 | } |
||
17357 | /^X\(\/\/\)[^/].*/{ |
||
17358 | s//\1/ |
||
17359 | q |
||
17360 | } |
||
17361 | /^X\(\/\/\)$/{ |
||
17362 | s//\1/ |
||
17363 | q |
||
17364 | } |
||
17365 | /^X\(\/\).*/{ |
||
17366 | s//\1/ |
||
17367 | q |
||
17368 | } |
||
17369 | s/.*/./; q'` |
||
17370 | test -d "$as_dir" && break |
||
17371 | done |
||
17372 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
||
17373 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
||
17374 | |||
17375 | |||
17376 | } # as_fn_mkdir_p |
||
17377 | if mkdir -p . 2>/dev/null; then |
||
17378 | as_mkdir_p='mkdir -p "$as_dir"' |
||
17379 | else |
||
17380 | test -d ./-p && rmdir ./-p |
||
17381 | as_mkdir_p=false |
||
17382 | fi |
||
17383 | |||
17384 | |||
17385 | # as_fn_executable_p FILE |
||
17386 | # ----------------------- |
||
17387 | # Test if FILE is an executable regular file. |
||
17388 | as_fn_executable_p () |
||
17389 | { |
||
17390 | test -f "$1" && test -x "$1" |
||
17391 | } # as_fn_executable_p |
||
17392 | as_test_x='test -x' |
||
17393 | as_executable_p=as_fn_executable_p |
||
17394 | |||
17395 | # Sed expression to map a string onto a valid CPP name. |
||
17396 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
||
17397 | |||
17398 | # Sed expression to map a string onto a valid variable name. |
||
17399 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
||
17400 | |||
17401 | |||
17402 | exec 6>&1 |
||
17403 | ## ----------------------------------- ## |
||
17404 | ## Main body of $CONFIG_STATUS script. ## |
||
17405 | ## ----------------------------------- ## |
||
17406 | _ASEOF |
||
17407 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
||
17408 | |||
17409 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
17410 | # Save the log message, to keep $0 and so on meaningful, and to |
||
17411 | # report actual input values of CONFIG_FILES etc. instead of their |
||
17412 | # values after options handling. |
||
17413 | ac_log=" |
||
17414 | This file was extended by metal $as_me 1.2, which was |
||
17415 | generated by GNU Autoconf 2.69. Invocation command line was |
||
17416 | |||
17417 | CONFIG_FILES = $CONFIG_FILES |
||
17418 | CONFIG_HEADERS = $CONFIG_HEADERS |
||
17419 | CONFIG_LINKS = $CONFIG_LINKS |
||
17420 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
||
17421 | $ $0 $@ |
||
17422 | |||
17423 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
||
17424 | " |
||
17425 | |||
17426 | _ACEOF |
||
17427 | |||
17428 | case $ac_config_files in *" |
||
17429 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
||
17430 | esac |
||
17431 | |||
17432 | case $ac_config_headers in *" |
||
17433 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
||
17434 | esac |
||
17435 | |||
17436 | |||
17437 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
17438 | # Files that config.status was made for. |
||
17439 | config_files="$ac_config_files" |
||
17440 | config_headers="$ac_config_headers" |
||
17441 | config_commands="$ac_config_commands" |
||
17442 | |||
17443 | _ACEOF |
||
17444 | |||
17445 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
17446 | ac_cs_usage="\ |
||
17447 | \`$as_me' instantiates files and other configuration actions |
||
17448 | from templates according to the current configuration. Unless the files |
||
17449 | and actions are specified as TAGs, all are instantiated by default. |
||
17450 | |||
17451 | Usage: $0 [OPTION]... [TAG]... |
||
17452 | |||
17453 | -h, --help print this help, then exit |
||
17454 | -V, --version print version number and configuration settings, then exit |
||
17455 | --config print configuration, then exit |
||
17456 | -q, --quiet, --silent |
||
17457 | do not print progress messages |
||
17458 | -d, --debug don't remove temporary files |
||
17459 | --recheck update $as_me by reconfiguring in the same conditions |
||
17460 | --file=FILE[:TEMPLATE] |
||
17461 | instantiate the configuration file FILE |
||
17462 | --header=FILE[:TEMPLATE] |
||
17463 | instantiate the configuration header FILE |
||
17464 | |||
17465 | Configuration files: |
||
17466 | $config_files |
||
17467 | |||
17468 | Configuration headers: |
||
17469 | $config_headers |
||
17470 | |||
17471 | Configuration commands: |
||
17472 | $config_commands |
||
17473 | |||
17474 | Report bugs to <mike@hamble.online>." |
||
17475 | |||
17476 | _ACEOF |
||
17477 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
17478 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
||
17479 | ac_cs_version="\\ |
||
17480 | metal config.status 1.2 |
||
17481 | configured by $0, generated by GNU Autoconf 2.69, |
||
17482 | with options \\"\$ac_cs_config\\" |
||
17483 | |||
17484 | Copyright (C) 2012 Free Software Foundation, Inc. |
||
17485 | This config.status script is free software; the Free Software Foundation |
||
17486 | gives unlimited permission to copy, distribute and modify it." |
||
17487 | |||
17488 | ac_pwd='$ac_pwd' |
||
17489 | srcdir='$srcdir' |
||
17490 | INSTALL='$INSTALL' |
||
17491 | MKDIR_P='$MKDIR_P' |
||
17492 | AWK='$AWK' |
||
17493 | test -n "\$AWK" || AWK=awk |
||
17494 | _ACEOF |
||
17495 | |||
17496 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
17497 | # The default lists apply if the user does not specify any file. |
||
17498 | ac_need_defaults=: |
||
17499 | while test $# != 0 |
||
17500 | do |
||
17501 | case $1 in |
||
17502 | --*=?*) |
||
17503 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
||
17504 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
||
17505 | ac_shift=: |
||
17506 | ;; |
||
17507 | --*=) |
||
17508 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
||
17509 | ac_optarg= |
||
17510 | ac_shift=: |
||
17511 | ;; |
||
17512 | *) |
||
17513 | ac_option=$1 |
||
17514 | ac_optarg=$2 |
||
17515 | ac_shift=shift |
||
17516 | ;; |
||
17517 | esac |
||
17518 | |||
17519 | case $ac_option in |
||
17520 | # Handling of the options. |
||
17521 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
||
17522 | ac_cs_recheck=: ;; |
||
17523 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
||
17524 | $as_echo "$ac_cs_version"; exit ;; |
||
17525 | --config | --confi | --conf | --con | --co | --c ) |
||
17526 | $as_echo "$ac_cs_config"; exit ;; |
||
17527 | --debug | --debu | --deb | --de | --d | -d ) |
||
17528 | debug=: ;; |
||
17529 | --file | --fil | --fi | --f ) |
||
17530 | $ac_shift |
||
17531 | case $ac_optarg in |
||
17532 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
17533 | '') as_fn_error $? "missing file argument" ;; |
||
17534 | esac |
||
17535 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
||
17536 | ac_need_defaults=false;; |
||
17537 | --header | --heade | --head | --hea ) |
||
17538 | $ac_shift |
||
17539 | case $ac_optarg in |
||
17540 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
17541 | esac |
||
17542 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
||
17543 | ac_need_defaults=false;; |
||
17544 | --he | --h) |
||
17545 | # Conflict between --help and --header |
||
17546 | as_fn_error $? "ambiguous option: \`$1' |
||
17547 | Try \`$0 --help' for more information.";; |
||
17548 | --help | --hel | -h ) |
||
17549 | $as_echo "$ac_cs_usage"; exit ;; |
||
17550 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
17551 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
||
17552 | ac_cs_silent=: ;; |
||
17553 | |||
17554 | # This is an error. |
||
17555 | -*) as_fn_error $? "unrecognized option: \`$1' |
||
17556 | Try \`$0 --help' for more information." ;; |
||
17557 | |||
17558 | *) as_fn_append ac_config_targets " $1" |
||
17559 | ac_need_defaults=false ;; |
||
17560 | |||
17561 | esac |
||
17562 | shift |
||
17563 | done |
||
17564 | |||
17565 | ac_configure_extra_args= |
||
17566 | |||
17567 | if $ac_cs_silent; then |
||
17568 | exec 6>/dev/null |
||
17569 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
||
17570 | fi |
||
17571 | |||
17572 | _ACEOF |
||
17573 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
17574 | if \$ac_cs_recheck; then |
||
17575 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
||
17576 | shift |
||
17577 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
||
17578 | CONFIG_SHELL='$SHELL' |
||
17579 | export CONFIG_SHELL |
||
17580 | exec "\$@" |
||
17581 | fi |
||
17582 | |||
17583 | _ACEOF |
||
17584 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
17585 | exec 5>>config.log |
||
17586 | { |
||
17587 | echo |
||
17588 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
||
17589 | ## Running $as_me. ## |
||
17590 | _ASBOX |
||
17591 | $as_echo "$ac_log" |
||
17592 | } >&5 |
||
17593 | |||
17594 | _ACEOF |
||
17595 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
17596 | # |
||
17597 | # INIT-COMMANDS |
||
17598 | # |
||
17599 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
||
17600 | |||
17601 | |||
17602 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
||
17603 | # if CDPATH is set. |
||
17604 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
||
17605 | |||
17606 | sed_quote_subst='$sed_quote_subst' |
||
17607 | double_quote_subst='$double_quote_subst' |
||
17608 | delay_variable_subst='$delay_variable_subst' |
||
17609 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
||
17610 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
||
17611 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
||
17612 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
||
17613 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
||
17614 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
||
17615 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
||
17616 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
||
17617 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
||
17618 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
||
17619 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
||
17620 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
||
17621 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
||
17622 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
||
17623 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
||
17624 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
||
17625 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
||
17626 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
||
17627 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
||
17628 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
||
17629 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
||
17630 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
||
17631 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
||
17632 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
||
17633 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
||
17634 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
||
17635 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
||
17636 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
||
17637 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
||
17638 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
||
17639 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
||
17640 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
||
17641 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
||
17642 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
||
17643 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
||
17644 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
||
17645 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
||
17646 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
||
17647 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
||
17648 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
||
17649 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
||
17650 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
||
17651 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
||
17652 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
||
17653 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
||
17654 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
||
17655 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
||
17656 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
||
17657 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
||
17658 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
||
17659 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
||
17660 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
||
17661 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
||
17662 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
||
17663 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
||
17664 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
||
17665 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
||
17666 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
||
17667 | 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"`' |
||
17668 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
||
17669 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
||
17670 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
||
17671 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
||
17672 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
||
17673 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
||
17674 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
||
17675 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
||
17676 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
||
17677 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
||
17678 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
||
17679 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
||
17680 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
||
17681 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
||
17682 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
||
17683 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
||
17684 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
||
17685 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
||
17686 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
||
17687 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
||
17688 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
||
17689 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
||
17690 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
||
17691 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
||
17692 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
||
17693 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
||
17694 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
||
17695 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
||
17696 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
||
17697 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
||
17698 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
||
17699 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
||
17700 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
||
17701 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
||
17702 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
||
17703 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
||
17704 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
||
17705 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
||
17706 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
||
17707 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
||
17708 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
||
17709 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
||
17710 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
||
17711 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
||
17712 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
||
17713 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
||
17714 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
||
17715 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
||
17716 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
||
17717 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
||
17718 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
||
17719 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
||
17720 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
||
17721 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
||
17722 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
||
17723 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
||
17724 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
||
17725 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
||
17726 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
||
17727 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
||
17728 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
||
17729 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
||
17730 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
||
17731 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
||
17732 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
||
17733 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
||
17734 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
||
17735 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
||
17736 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
||
17737 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
||
17738 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
||
17739 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
||
17740 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
||
17741 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
||
17742 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
||
17743 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
||
17744 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
||
17745 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
||
17746 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
||
17747 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
||
17748 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
||
17749 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
||
17750 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
||
17751 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
||
17752 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
17753 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
17754 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
||
17755 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
||
17756 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' |
||
17757 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
||
17758 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
||
17759 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
||
17760 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
||
17761 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
||
17762 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
||
17763 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
||
17764 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
||
17765 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
||
17766 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
17767 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
17768 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
17769 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
17770 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
17771 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
17772 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
||
17773 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
||
17774 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
||
17775 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
||
17776 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
||
17777 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
||
17778 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
||
17779 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
||
17780 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
||
17781 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
||
17782 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
||
17783 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' |
||
17784 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
||
17785 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
17786 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
||
17787 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
||
17788 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
17789 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
17790 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
||
17791 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
||
17792 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
||
17793 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
||
17794 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
||
17795 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
||
17796 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
||
17797 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' |
||
17798 | |||
17799 | LTCC='$LTCC' |
||
17800 | LTCFLAGS='$LTCFLAGS' |
||
17801 | compiler='$compiler_DEFAULT' |
||
17802 | |||
17803 | # A function that is used when there is no print builtin or printf. |
||
17804 | func_fallback_echo () |
||
17805 | { |
||
17806 | eval 'cat <<_LTECHO_EOF |
||
17807 | \$1 |
||
17808 | _LTECHO_EOF' |
||
17809 | } |
||
17810 | |||
17811 | # Quote evaled strings. |
||
17812 | for var in SHELL \ |
||
17813 | ECHO \ |
||
17814 | PATH_SEPARATOR \ |
||
17815 | SED \ |
||
17816 | GREP \ |
||
17817 | EGREP \ |
||
17818 | FGREP \ |
||
17819 | LD \ |
||
17820 | NM \ |
||
17821 | LN_S \ |
||
17822 | lt_SP2NL \ |
||
17823 | lt_NL2SP \ |
||
17824 | reload_flag \ |
||
17825 | OBJDUMP \ |
||
17826 | deplibs_check_method \ |
||
17827 | file_magic_cmd \ |
||
17828 | file_magic_glob \ |
||
17829 | want_nocaseglob \ |
||
17830 | DLLTOOL \ |
||
17831 | sharedlib_from_linklib_cmd \ |
||
17832 | AR \ |
||
17833 | AR_FLAGS \ |
||
17834 | archiver_list_spec \ |
||
17835 | STRIP \ |
||
17836 | RANLIB \ |
||
17837 | CC \ |
||
17838 | CFLAGS \ |
||
17839 | compiler \ |
||
17840 | lt_cv_sys_global_symbol_pipe \ |
||
17841 | lt_cv_sys_global_symbol_to_cdecl \ |
||
17842 | lt_cv_sys_global_symbol_to_import \ |
||
17843 | lt_cv_sys_global_symbol_to_c_name_address \ |
||
17844 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
||
17845 | lt_cv_nm_interface \ |
||
17846 | nm_file_list_spec \ |
||
17847 | lt_cv_truncate_bin \ |
||
17848 | lt_prog_compiler_no_builtin_flag \ |
||
17849 | lt_prog_compiler_pic \ |
||
17850 | lt_prog_compiler_wl \ |
||
17851 | lt_prog_compiler_static \ |
||
17852 | lt_cv_prog_compiler_c_o \ |
||
17853 | need_locks \ |
||
17854 | MANIFEST_TOOL \ |
||
17855 | DSYMUTIL \ |
||
17856 | NMEDIT \ |
||
17857 | LIPO \ |
||
17858 | OTOOL \ |
||
17859 | OTOOL64 \ |
||
17860 | shrext_cmds \ |
||
17861 | export_dynamic_flag_spec \ |
||
17862 | whole_archive_flag_spec \ |
||
17863 | compiler_needs_object \ |
||
17864 | with_gnu_ld \ |
||
17865 | allow_undefined_flag \ |
||
17866 | no_undefined_flag \ |
||
17867 | hardcode_libdir_flag_spec \ |
||
17868 | hardcode_libdir_separator \ |
||
17869 | exclude_expsyms \ |
||
17870 | include_expsyms \ |
||
17871 | file_list_spec \ |
||
17872 | variables_saved_for_relink \ |
||
17873 | libname_spec \ |
||
17874 | library_names_spec \ |
||
17875 | soname_spec \ |
||
17876 | install_override_mode \ |
||
17877 | finish_eval \ |
||
17878 | old_striplib \ |
||
17879 | striplib \ |
||
17880 | compiler_lib_search_dirs \ |
||
17881 | predep_objects \ |
||
17882 | postdep_objects \ |
||
17883 | predeps \ |
||
17884 | postdeps \ |
||
17885 | compiler_lib_search_path \ |
||
17886 | LD_CXX \ |
||
17887 | reload_flag_CXX \ |
||
17888 | compiler_CXX \ |
||
17889 | lt_prog_compiler_no_builtin_flag_CXX \ |
||
17890 | lt_prog_compiler_pic_CXX \ |
||
17891 | lt_prog_compiler_wl_CXX \ |
||
17892 | lt_prog_compiler_static_CXX \ |
||
17893 | lt_cv_prog_compiler_c_o_CXX \ |
||
17894 | export_dynamic_flag_spec_CXX \ |
||
17895 | whole_archive_flag_spec_CXX \ |
||
17896 | compiler_needs_object_CXX \ |
||
17897 | with_gnu_ld_CXX \ |
||
17898 | allow_undefined_flag_CXX \ |
||
17899 | no_undefined_flag_CXX \ |
||
17900 | hardcode_libdir_flag_spec_CXX \ |
||
17901 | hardcode_libdir_separator_CXX \ |
||
17902 | exclude_expsyms_CXX \ |
||
17903 | include_expsyms_CXX \ |
||
17904 | file_list_spec_CXX \ |
||
17905 | compiler_lib_search_dirs_CXX \ |
||
17906 | predep_objects_CXX \ |
||
17907 | postdep_objects_CXX \ |
||
17908 | predeps_CXX \ |
||
17909 | postdeps_CXX \ |
||
17910 | compiler_lib_search_path_CXX; do |
||
17911 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
||
17912 | *[\\\\\\\`\\"\\\$]*) |
||
17913 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
||
17914 | ;; |
||
17915 | *) |
||
17916 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
||
17917 | ;; |
||
17918 | esac |
||
17919 | done |
||
17920 | |||
17921 | # Double-quote double-evaled strings. |
||
17922 | for var in reload_cmds \ |
||
17923 | old_postinstall_cmds \ |
||
17924 | old_postuninstall_cmds \ |
||
17925 | old_archive_cmds \ |
||
17926 | extract_expsyms_cmds \ |
||
17927 | old_archive_from_new_cmds \ |
||
17928 | old_archive_from_expsyms_cmds \ |
||
17929 | archive_cmds \ |
||
17930 | archive_expsym_cmds \ |
||
17931 | module_cmds \ |
||
17932 | module_expsym_cmds \ |
||
17933 | export_symbols_cmds \ |
||
17934 | prelink_cmds \ |
||
17935 | postlink_cmds \ |
||
17936 | postinstall_cmds \ |
||
17937 | postuninstall_cmds \ |
||
17938 | finish_cmds \ |
||
17939 | sys_lib_search_path_spec \ |
||
17940 | configure_time_dlsearch_path \ |
||
17941 | configure_time_lt_sys_library_path \ |
||
17942 | reload_cmds_CXX \ |
||
17943 | old_archive_cmds_CXX \ |
||
17944 | old_archive_from_new_cmds_CXX \ |
||
17945 | old_archive_from_expsyms_cmds_CXX \ |
||
17946 | archive_cmds_CXX \ |
||
17947 | archive_expsym_cmds_CXX \ |
||
17948 | module_cmds_CXX \ |
||
17949 | module_expsym_cmds_CXX \ |
||
17950 | export_symbols_cmds_CXX \ |
||
17951 | prelink_cmds_CXX \ |
||
17952 | postlink_cmds_CXX; do |
||
17953 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
||
17954 | *[\\\\\\\`\\"\\\$]*) |
||
17955 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
||
17956 | ;; |
||
17957 | *) |
||
17958 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
||
17959 | ;; |
||
17960 | esac |
||
17961 | done |
||
17962 | |||
17963 | ac_aux_dir='$ac_aux_dir' |
||
17964 | |||
17965 | # See if we are running on zsh, and set the options that allow our |
||
17966 | # commands through without removal of \ escapes INIT. |
||
17967 | if test -n "\${ZSH_VERSION+set}"; then |
||
17968 | setopt NO_GLOB_SUBST |
||
17969 | fi |
||
17970 | |||
17971 | |||
17972 | PACKAGE='$PACKAGE' |
||
17973 | VERSION='$VERSION' |
||
17974 | RM='$RM' |
||
17975 | ofile='$ofile' |
||
17976 | |||
17977 | |||
17978 | |||
17979 | |||
17980 | |||
17981 | |||
17982 | _ACEOF |
||
17983 | |||
17984 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
17985 | |||
17986 | # Handling of arguments. |
||
17987 | for ac_config_target in $ac_config_targets |
||
17988 | do |
||
17989 | case $ac_config_target in |
||
17990 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
||
17991 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
||
17992 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
||
17993 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
||
17994 | "vertlib/Makefile") CONFIG_FILES="$CONFIG_FILES vertlib/Makefile" ;; |
||
17995 | "cmdlib/Makefile") CONFIG_FILES="$CONFIG_FILES cmdlib/Makefile" ;; |
||
17996 | "versionlib/Makefile") CONFIG_FILES="$CONFIG_FILES versionlib/Makefile" ;; |
||
17997 | "acf_src/Makefile") CONFIG_FILES="$CONFIG_FILES acf_src/Makefile" ;; |
||
17998 | "cdi_src/Makefile") CONFIG_FILES="$CONFIG_FILES cdi_src/Makefile" ;; |
||
17999 | "eagle_src/Makefile") CONFIG_FILES="$CONFIG_FILES eagle_src/Makefile" ;; |
||
18000 | "frb_src/Makefile") CONFIG_FILES="$CONFIG_FILES frb_src/Makefile" ;; |
||
18001 | "gen_src/Makefile") CONFIG_FILES="$CONFIG_FILES gen_src/Makefile" ;; |
||
18002 | "mentor_src/Makefile") CONFIG_FILES="$CONFIG_FILES mentor_src/Makefile" ;; |
||
18003 | "net_src/Makefile") CONFIG_FILES="$CONFIG_FILES net_src/Makefile" ;; |
||
18004 | "orcad_src/Makefile") CONFIG_FILES="$CONFIG_FILES orcad_src/Makefile" ;; |
||
18005 | "pads_src/Makefile") CONFIG_FILES="$CONFIG_FILES pads_src/Makefile" ;; |
||
18006 | "protel_src/Makefile") CONFIG_FILES="$CONFIG_FILES protel_src/Makefile" ;; |
||
18007 | "rep2_src/Makefile") CONFIG_FILES="$CONFIG_FILES rep2_src/Makefile" ;; |
||
18008 | "rep_src/Makefile") CONFIG_FILES="$CONFIG_FILES rep_src/Makefile" ;; |
||
18009 | |||
18010 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
||
18011 | esac |
||
18012 | done |
||
18013 | |||
18014 | |||
18015 | # If the user did not use the arguments to specify the items to instantiate, |
||
18016 | # then the envvar interface is used. Set only those that are not. |
||
18017 | # We use the long form for the default assignment because of an extremely |
||
18018 | # bizarre bug on SunOS 4.1.3. |
||
18019 | if $ac_need_defaults; then |
||
18020 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
||
18021 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
||
18022 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
||
18023 | fi |
||
18024 | |||
18025 | # Have a temporary directory for convenience. Make it in the build tree |
||
18026 | # simply because there is no reason against having it here, and in addition, |
||
18027 | # creating and moving files from /tmp can sometimes cause problems. |
||
18028 | # Hook for its removal unless debugging. |
||
18029 | # Note that there is a small window in which the directory will not be cleaned: |
||
18030 | # after its creation but before its name has been assigned to `$tmp'. |
||
18031 | $debug || |
||
18032 | { |
||
18033 | tmp= ac_tmp= |
||
18034 | trap 'exit_status=$? |
||
18035 | : "${ac_tmp:=$tmp}" |
||
18036 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
||
18037 | ' 0 |
||
18038 | trap 'as_fn_exit 1' 1 2 13 15 |
||
18039 | } |
||
18040 | # Create a (secure) tmp directory for tmp files. |
||
18041 | |||
18042 | { |
||
18043 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
||
18044 | test -d "$tmp" |
||
18045 | } || |
||
18046 | { |
||
18047 | tmp=./conf$$-$RANDOM |
||
18048 | (umask 077 && mkdir "$tmp") |
||
18049 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
||
18050 | ac_tmp=$tmp |
||
18051 | |||
18052 | # Set up the scripts for CONFIG_FILES section. |
||
18053 | # No need to generate them if there are no CONFIG_FILES. |
||
18054 | # This happens for instance with `./config.status config.h'. |
||
18055 | if test -n "$CONFIG_FILES"; then |
||
18056 | |||
18057 | |||
18058 | ac_cr=`echo X | tr X '\015'` |
||
18059 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
||
18060 | # But we know of no other shell where ac_cr would be empty at this |
||
18061 | # point, so we can use a bashism as a fallback. |
||
18062 | if test "x$ac_cr" = x; then |
||
18063 | eval ac_cr=\$\'\\r\' |
||
18064 | fi |
||
18065 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
||
18066 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
||
18067 | ac_cs_awk_cr='\\r' |
||
18068 | else |
||
18069 | ac_cs_awk_cr=$ac_cr |
||
18070 | fi |
||
18071 | |||
18072 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
||
18073 | _ACEOF |
||
18074 | |||
18075 | |||
18076 | { |
||
18077 | echo "cat >conf$$subs.awk <<_ACEOF" && |
||
18078 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
||
18079 | echo "_ACEOF" |
||
18080 | } >conf$$subs.sh || |
||
18081 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
||
18082 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
||
18083 | ac_delim='%!_!# ' |
||
18084 | for ac_last_try in false false false false false :; do |
||
18085 | . ./conf$$subs.sh || |
||
18086 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
||
18087 | |||
18088 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
||
18089 | if test $ac_delim_n = $ac_delim_num; then |
||
18090 | break |
||
18091 | elif $ac_last_try; then |
||
18092 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
||
18093 | else |
||
18094 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
||
18095 | fi |
||
18096 | done |
||
18097 | rm -f conf$$subs.sh |
||
18098 | |||
18099 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
18100 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
||
18101 | _ACEOF |
||
18102 | sed -n ' |
||
18103 | h |
||
18104 | s/^/S["/; s/!.*/"]=/ |
||
18105 | p |
||
18106 | g |
||
18107 | s/^[^!]*!// |
||
18108 | :repl |
||
18109 | t repl |
||
18110 | s/'"$ac_delim"'$// |
||
18111 | t delim |
||
18112 | :nl |
||
18113 | h |
||
18114 | s/\(.\{148\}\)..*/\1/ |
||
18115 | t more1 |
||
18116 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
||
18117 | p |
||
18118 | n |
||
18119 | b repl |
||
18120 | :more1 |
||
18121 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
||
18122 | p |
||
18123 | g |
||
18124 | s/.\{148\}// |
||
18125 | t nl |
||
18126 | :delim |
||
18127 | h |
||
18128 | s/\(.\{148\}\)..*/\1/ |
||
18129 | t more2 |
||
18130 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
||
18131 | p |
||
18132 | b |
||
18133 | :more2 |
||
18134 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
||
18135 | p |
||
18136 | g |
||
18137 | s/.\{148\}// |
||
18138 | t delim |
||
18139 | ' <conf$$subs.awk | sed ' |
||
18140 | /^[^""]/{ |
||
18141 | N |
||
18142 | s/\n// |
||
18143 | } |
||
18144 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
||
18145 | rm -f conf$$subs.awk |
||
18146 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
18147 | _ACAWK |
||
18148 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
||
18149 | for (key in S) S_is_set[key] = 1 |
||
18150 | FS = "" |
||
18151 | |||
18152 | } |
||
18153 | { |
||
18154 | line = $ 0 |
||
18155 | nfields = split(line, field, "@") |
||
18156 | substed = 0 |
||
18157 | len = length(field[1]) |
||
18158 | for (i = 2; i < nfields; i++) { |
||
18159 | key = field[i] |
||
18160 | keylen = length(key) |
||
18161 | if (S_is_set[key]) { |
||
18162 | value = S[key] |
||
18163 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
||
18164 | len += length(value) + length(field[++i]) |
||
18165 | substed = 1 |
||
18166 | } else |
||
18167 | len += 1 + keylen |
||
18168 | } |
||
18169 | |||
18170 | print line |
||
18171 | } |
||
18172 | |||
18173 | _ACAWK |
||
18174 | _ACEOF |
||
18175 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
18176 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
||
18177 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
||
18178 | else |
||
18179 | cat |
||
18180 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
||
18181 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
||
18182 | _ACEOF |
||
18183 | |||
18184 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
||
18185 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
||
18186 | # trailing colons and then remove the whole line if VPATH becomes empty |
||
18187 | # (actually we leave an empty line to preserve line numbers). |
||
18188 | if test "x$srcdir" = x.; then |
||
18189 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
||
18190 | h |
||
18191 | s/// |
||
18192 | s/^/:/ |
||
18193 | s/[ ]*$/:/ |
||
18194 | s/:\$(srcdir):/:/g |
||
18195 | s/:\${srcdir}:/:/g |
||
18196 | s/:@srcdir@:/:/g |
||
18197 | s/^:*// |
||
18198 | s/:*$// |
||
18199 | x |
||
18200 | s/\(=[ ]*\).*/\1/ |
||
18201 | G |
||
18202 | s/\n// |
||
18203 | s/^[^=]*=[ ]*$// |
||
18204 | }' |
||
18205 | fi |
||
18206 | |||
18207 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
18208 | fi # test -n "$CONFIG_FILES" |
||
18209 | |||
18210 | # Set up the scripts for CONFIG_HEADERS section. |
||
18211 | # No need to generate them if there are no CONFIG_HEADERS. |
||
18212 | # This happens for instance with `./config.status Makefile'. |
||
18213 | if test -n "$CONFIG_HEADERS"; then |
||
18214 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
||
18215 | BEGIN { |
||
18216 | _ACEOF |
||
18217 | |||
18218 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
||
18219 | # here-document in config.status, that substitutes the proper values into |
||
18220 | # config.h.in to produce config.h. |
||
18221 | |||
18222 | # Create a delimiter string that does not exist in confdefs.h, to ease |
||
18223 | # handling of long lines. |
||
18224 | ac_delim='%!_!# ' |
||
18225 | for ac_last_try in false false :; do |
||
18226 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
||
18227 | if test -z "$ac_tt"; then |
||
18228 | break |
||
18229 | elif $ac_last_try; then |
||
18230 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
||
18231 | else |
||
18232 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
||
18233 | fi |
||
18234 | done |
||
18235 | |||
18236 | # For the awk script, D is an array of macro values keyed by name, |
||
18237 | # likewise P contains macro parameters if any. Preserve backslash |
||
18238 | # newline sequences. |
||
18239 | |||
18240 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
||
18241 | sed -n ' |
||
18242 | s/.\{148\}/&'"$ac_delim"'/g |
||
18243 | t rset |
||
18244 | :rset |
||
18245 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
||
18246 | t def |
||
18247 | d |
||
18248 | :def |
||
18249 | s/\\$// |
||
18250 | t bsnl |
||
18251 | s/["\\]/\\&/g |
||
18252 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
||
18253 | D["\1"]=" \3"/p |
||
18254 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
||
18255 | d |
||
18256 | :bsnl |
||
18257 | s/["\\]/\\&/g |
||
18258 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
||
18259 | D["\1"]=" \3\\\\\\n"\\/p |
||
18260 | t cont |
||
18261 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
||
18262 | t cont |
||
18263 | d |
||
18264 | :cont |
||
18265 | n |
||
18266 | s/.\{148\}/&'"$ac_delim"'/g |
||
18267 | t clear |
||
18268 | :clear |
||
18269 | s/\\$// |
||
18270 | t bsnlc |
||
18271 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
||
18272 | d |
||
18273 | :bsnlc |
||
18274 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
||
18275 | b cont |
||
18276 | ' <confdefs.h | sed ' |
||
18277 | s/'"$ac_delim"'/"\\\ |
||
18278 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
||
18279 | |||
18280 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
18281 | for (key in D) D_is_set[key] = 1 |
||
18282 | FS = "" |
||
18283 | } |
||
18284 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
||
18285 | line = \$ 0 |
||
18286 | split(line, arg, " ") |
||
18287 | if (arg[1] == "#") { |
||
18288 | defundef = arg[2] |
||
18289 | mac1 = arg[3] |
||
18290 | } else { |
||
18291 | defundef = substr(arg[1], 2) |
||
18292 | mac1 = arg[2] |
||
18293 | } |
||
18294 | split(mac1, mac2, "(") #) |
||
18295 | macro = mac2[1] |
||
18296 | prefix = substr(line, 1, index(line, defundef) - 1) |
||
18297 | if (D_is_set[macro]) { |
||
18298 | # Preserve the white space surrounding the "#". |
||
18299 | print prefix "define", macro P[macro] D[macro] |
||
18300 | next |
||
18301 | } else { |
||
18302 | # Replace #undef with comments. This is necessary, for example, |
||
18303 | # in the case of _POSIX_SOURCE, which is predefined and required |
||
18304 | # on some systems where configure will not decide to define it. |
||
18305 | if (defundef == "undef") { |
||
18306 | print "/*", prefix defundef, macro, "*/" |
||
18307 | next |
||
18308 | } |
||
18309 | } |
||
18310 | } |
||
18311 | { print } |
||
18312 | _ACAWK |
||
18313 | _ACEOF |
||
18314 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
18315 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
||
18316 | fi # test -n "$CONFIG_HEADERS" |
||
18317 | |||
18318 | |||
18319 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
||
18320 | shift |
||
18321 | for ac_tag |
||
18322 | do |
||
18323 | case $ac_tag in |
||
18324 | :[FHLC]) ac_mode=$ac_tag; continue;; |
||
18325 | esac |
||
18326 | case $ac_mode$ac_tag in |
||
18327 | :[FHL]*:*);; |
||
18328 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
||
18329 | :[FH]-) ac_tag=-:-;; |
||
18330 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
||
18331 | esac |
||
18332 | ac_save_IFS=$IFS |
||
18333 | IFS=: |
||
18334 | set x $ac_tag |
||
18335 | IFS=$ac_save_IFS |
||
18336 | shift |
||
18337 | ac_file=$1 |
||
18338 | shift |
||
18339 | |||
18340 | case $ac_mode in |
||
18341 | :L) ac_source=$1;; |
||
18342 | :[FH]) |
||
18343 | ac_file_inputs= |
||
18344 | for ac_f |
||
18345 | do |
||
18346 | case $ac_f in |
||
18347 | -) ac_f="$ac_tmp/stdin";; |
||
18348 | *) # Look for the file first in the build tree, then in the source tree |
||
18349 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
||
18350 | # because $ac_f cannot contain `:'. |
||
18351 | test -f "$ac_f" || |
||
18352 | case $ac_f in |
||
18353 | [\\/$]*) false;; |
||
18354 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
||
18355 | esac || |
||
18356 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
||
18357 | esac |
||
18358 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
||
18359 | as_fn_append ac_file_inputs " '$ac_f'" |
||
18360 | done |
||
18361 | |||
18362 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
||
18363 | # use $as_me), people would be surprised to read: |
||
18364 | # /* config.h. Generated by config.status. */ |
||
18365 | configure_input='Generated from '` |
||
18366 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
||
18367 | `' by configure.' |
||
18368 | if test x"$ac_file" != x-; then |
||
18369 | configure_input="$ac_file. $configure_input" |
||
18370 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
||
18371 | $as_echo "$as_me: creating $ac_file" >&6;} |
||
18372 | fi |
||
18373 | # Neutralize special characters interpreted by sed in replacement strings. |
||
18374 | case $configure_input in #( |
||
18375 | *\&* | *\|* | *\\* ) |
||
18376 | ac_sed_conf_input=`$as_echo "$configure_input" | |
||
18377 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
||
18378 | *) ac_sed_conf_input=$configure_input;; |
||
18379 | esac |
||
18380 | |||
18381 | case $ac_tag in |
||
18382 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
||
18383 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
||
18384 | esac |
||
18385 | ;; |
||
18386 | esac |
||
18387 | |||
18388 | ac_dir=`$as_dirname -- "$ac_file" || |
||
18389 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
18390 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
||
18391 | X"$ac_file" : 'X\(//\)$' \| \ |
||
18392 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
||
18393 | $as_echo X"$ac_file" | |
||
18394 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
18395 | s//\1/ |
||
18396 | q |
||
18397 | } |
||
18398 | /^X\(\/\/\)[^/].*/{ |
||
18399 | s//\1/ |
||
18400 | q |
||
18401 | } |
||
18402 | /^X\(\/\/\)$/{ |
||
18403 | s//\1/ |
||
18404 | q |
||
18405 | } |
||
18406 | /^X\(\/\).*/{ |
||
18407 | s//\1/ |
||
18408 | q |
||
18409 | } |
||
18410 | s/.*/./; q'` |
||
18411 | as_dir="$ac_dir"; as_fn_mkdir_p |
||
18412 | ac_builddir=. |
||
18413 | |||
18414 | case "$ac_dir" in |
||
18415 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
18416 | *) |
||
18417 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
||
18418 | # A ".." for each directory in $ac_dir_suffix. |
||
18419 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
||
18420 | case $ac_top_builddir_sub in |
||
18421 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
18422 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
||
18423 | esac ;; |
||
18424 | esac |
||
18425 | ac_abs_top_builddir=$ac_pwd |
||
18426 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
||
18427 | # for backward compatibility: |
||
18428 | ac_top_builddir=$ac_top_build_prefix |
||
18429 | |||
18430 | case $srcdir in |
||
18431 | .) # We are building in place. |
||
18432 | ac_srcdir=. |
||
18433 | ac_top_srcdir=$ac_top_builddir_sub |
||
18434 | ac_abs_top_srcdir=$ac_pwd ;; |
||
18435 | [\\/]* | ?:[\\/]* ) # Absolute name. |
||
18436 | ac_srcdir=$srcdir$ac_dir_suffix; |
||
18437 | ac_top_srcdir=$srcdir |
||
18438 | ac_abs_top_srcdir=$srcdir ;; |
||
18439 | *) # Relative name. |
||
18440 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
||
18441 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
||
18442 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
||
18443 | esac |
||
18444 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
||
18445 | |||
18446 | |||
18447 | case $ac_mode in |
||
18448 | :F) |
||
18449 | # |
||
18450 | # CONFIG_FILE |
||
18451 | # |
||
18452 | |||
18453 | case $INSTALL in |
||
18454 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
||
18455 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
||
18456 | esac |
||
18457 | ac_MKDIR_P=$MKDIR_P |
||
18458 | case $MKDIR_P in |
||
18459 | [\\/$]* | ?:[\\/]* ) ;; |
||
18460 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
||
18461 | esac |
||
18462 | _ACEOF |
||
18463 | |||
18464 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
18465 | # If the template does not know about datarootdir, expand it. |
||
18466 | # FIXME: This hack should be removed a few years after 2.60. |
||
18467 | ac_datarootdir_hack=; ac_datarootdir_seen= |
||
18468 | ac_sed_dataroot=' |
||
18469 | /datarootdir/ { |
||
18470 | p |
||
18471 | q |
||
18472 | } |
||
18473 | /@datadir@/p |
||
18474 | /@docdir@/p |
||
18475 | /@infodir@/p |
||
18476 | /@localedir@/p |
||
18477 | /@mandir@/p' |
||
18478 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
||
18479 | *datarootdir*) ac_datarootdir_seen=yes;; |
||
18480 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
||
18481 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
||
18482 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
||
18483 | _ACEOF |
||
18484 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
18485 | ac_datarootdir_hack=' |
||
18486 | s&@datadir@&$datadir&g |
||
18487 | s&@docdir@&$docdir&g |
||
18488 | s&@infodir@&$infodir&g |
||
18489 | s&@localedir@&$localedir&g |
||
18490 | s&@mandir@&$mandir&g |
||
18491 | s&\\\${datarootdir}&$datarootdir&g' ;; |
||
18492 | esac |
||
18493 | _ACEOF |
||
18494 | |||
18495 | # Neutralize VPATH when `$srcdir' = `.'. |
||
18496 | # Shell code in configure.ac might set extrasub. |
||
18497 | # FIXME: do we really want to maintain this feature? |
||
18498 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
18499 | ac_sed_extra="$ac_vpsub |
||
18500 | $extrasub |
||
18501 | _ACEOF |
||
18502 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
18503 | :t |
||
18504 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
||
18505 | s|@configure_input@|$ac_sed_conf_input|;t t |
||
18506 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
||
18507 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
||
18508 | s&@srcdir@&$ac_srcdir&;t t |
||
18509 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
||
18510 | s&@top_srcdir@&$ac_top_srcdir&;t t |
||
18511 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
||
18512 | s&@builddir@&$ac_builddir&;t t |
||
18513 | s&@abs_builddir@&$ac_abs_builddir&;t t |
||
18514 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
||
18515 | s&@INSTALL@&$ac_INSTALL&;t t |
||
18516 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
||
18517 | $ac_datarootdir_hack |
||
18518 | " |
||
18519 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
||
18520 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
||
18521 | |||
18522 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
||
18523 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
||
18524 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
||
18525 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
||
18526 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
||
18527 | which seems to be undefined. Please make sure it is defined" >&5 |
||
18528 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
||
18529 | which seems to be undefined. Please make sure it is defined" >&2;} |
||
18530 | |||
18531 | rm -f "$ac_tmp/stdin" |
||
18532 | case $ac_file in |
||
18533 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
||
18534 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
||
18535 | esac \ |
||
18536 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
||
18537 | ;; |
||
18538 | :H) |
||
18539 | # |
||
18540 | # CONFIG_HEADER |
||
18541 | # |
||
18542 | if test x"$ac_file" != x-; then |
||
18543 | { |
||
18544 | $as_echo "/* $configure_input */" \ |
||
18545 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
||
18546 | } >"$ac_tmp/config.h" \ |
||
18547 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
||
18548 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
||
18549 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
||
18550 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
||
18551 | else |
||
18552 | rm -f "$ac_file" |
||
18553 | mv "$ac_tmp/config.h" "$ac_file" \ |
||
18554 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
||
18555 | fi |
||
18556 | else |
||
18557 | $as_echo "/* $configure_input */" \ |
||
18558 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
||
18559 | || as_fn_error $? "could not create -" "$LINENO" 5 |
||
18560 | fi |
||
18561 | # Compute "$ac_file"'s index in $config_headers. |
||
18562 | _am_arg="$ac_file" |
||
18563 | _am_stamp_count=1 |
||
18564 | for _am_header in $config_headers :; do |
||
18565 | case $_am_header in |
||
18566 | $_am_arg | $_am_arg:* ) |
||
18567 | break ;; |
||
18568 | * ) |
||
18569 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
||
18570 | esac |
||
18571 | done |
||
18572 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
||
18573 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
18574 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
||
18575 | X"$_am_arg" : 'X\(//\)$' \| \ |
||
18576 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
||
18577 | $as_echo X"$_am_arg" | |
||
18578 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
18579 | s//\1/ |
||
18580 | q |
||
18581 | } |
||
18582 | /^X\(\/\/\)[^/].*/{ |
||
18583 | s//\1/ |
||
18584 | q |
||
18585 | } |
||
18586 | /^X\(\/\/\)$/{ |
||
18587 | s//\1/ |
||
18588 | q |
||
18589 | } |
||
18590 | /^X\(\/\).*/{ |
||
18591 | s//\1/ |
||
18592 | q |
||
18593 | } |
||
18594 | s/.*/./; q'`/stamp-h$_am_stamp_count |
||
18595 | ;; |
||
18596 | |||
18597 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
||
18598 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
||
18599 | ;; |
||
18600 | esac |
||
18601 | |||
18602 | |||
18603 | case $ac_file$ac_mode in |
||
18604 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
||
18605 | # Older Autoconf quotes --file arguments for eval, but not when files |
||
18606 | # are listed without --file. Let's play safe and only enable the eval |
||
18607 | # if we detect the quoting. |
||
18608 | case $CONFIG_FILES in |
||
18609 | *\'*) eval set x "$CONFIG_FILES" ;; |
||
18610 | *) set x $CONFIG_FILES ;; |
||
18611 | esac |
||
18612 | shift |
||
18613 | for mf |
||
18614 | do |
||
18615 | # Strip MF so we end up with the name of the file. |
||
18616 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
||
18617 | # Check whether this is an Automake generated Makefile or not. |
||
18618 | # We used to match only the files named 'Makefile.in', but |
||
18619 | # some people rename them; so instead we look at the file content. |
||
18620 | # Grep'ing the first line is not enough: some people post-process |
||
18621 | # each Makefile.in and add a new line on top of each file to say so. |
||
18622 | # Grep'ing the whole file is not good either: AIX grep has a line |
||
18623 | # limit of 2048, but all sed's we know have understand at least 4000. |
||
18624 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
||
18625 | dirpart=`$as_dirname -- "$mf" || |
||
18626 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
18627 | X"$mf" : 'X\(//\)[^/]' \| \ |
||
18628 | X"$mf" : 'X\(//\)$' \| \ |
||
18629 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
||
18630 | $as_echo X"$mf" | |
||
18631 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
18632 | s//\1/ |
||
18633 | q |
||
18634 | } |
||
18635 | /^X\(\/\/\)[^/].*/{ |
||
18636 | s//\1/ |
||
18637 | q |
||
18638 | } |
||
18639 | /^X\(\/\/\)$/{ |
||
18640 | s//\1/ |
||
18641 | q |
||
18642 | } |
||
18643 | /^X\(\/\).*/{ |
||
18644 | s//\1/ |
||
18645 | q |
||
18646 | } |
||
18647 | s/.*/./; q'` |
||
18648 | else |
||
18649 | continue |
||
18650 | fi |
||
18651 | # Extract the definition of DEPDIR, am__include, and am__quote |
||
18652 | # from the Makefile without running 'make'. |
||
18653 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
||
18654 | test -z "$DEPDIR" && continue |
||
18655 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
||
18656 | test -z "$am__include" && continue |
||
18657 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
||
18658 | # Find all dependency output files, they are included files with |
||
18659 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
||
18660 | # simplest approach to changing $(DEPDIR) to its actual value in the |
||
18661 | # expansion. |
||
18662 | for file in `sed -n " |
||
18663 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
||
18664 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
||
18665 | # Make sure the directory exists. |
||
18666 | test -f "$dirpart/$file" && continue |
||
18667 | fdir=`$as_dirname -- "$file" || |
||
18668 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
18669 | X"$file" : 'X\(//\)[^/]' \| \ |
||
18670 | X"$file" : 'X\(//\)$' \| \ |
||
18671 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
||
18672 | $as_echo X"$file" | |
||
18673 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
18674 | s//\1/ |
||
18675 | q |
||
18676 | } |
||
18677 | /^X\(\/\/\)[^/].*/{ |
||
18678 | s//\1/ |
||
18679 | q |
||
18680 | } |
||
18681 | /^X\(\/\/\)$/{ |
||
18682 | s//\1/ |
||
18683 | q |
||
18684 | } |
||
18685 | /^X\(\/\).*/{ |
||
18686 | s//\1/ |
||
18687 | q |
||
18688 | } |
||
18689 | s/.*/./; q'` |
||
18690 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
||
18691 | # echo "creating $dirpart/$file" |
||
18692 | echo '# dummy' > "$dirpart/$file" |
||
18693 | done |
||
18694 | done |
||
18695 | } |
||
18696 | ;; |
||
18697 | "libtool":C) |
||
18698 | |||
18699 | # See if we are running on zsh, and set the options that allow our |
||
18700 | # commands through without removal of \ escapes. |
||
18701 | if test -n "${ZSH_VERSION+set}"; then |
||
18702 | setopt NO_GLOB_SUBST |
||
18703 | fi |
||
18704 | |||
18705 | cfgfile=${ofile}T |
||
18706 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
||
18707 | $RM "$cfgfile" |
||
18708 | |||
18709 | cat <<_LT_EOF >> "$cfgfile" |
||
18710 | #! $SHELL |
||
18711 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
||
18712 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
||
18713 | |||
18714 | # Provide generalized library-building support services. |
||
18715 | # Written by Gordon Matzigkeit, 1996 |
||
18716 | |||
18717 | # Copyright (C) 2014 Free Software Foundation, Inc. |
||
18718 | # This is free software; see the source for copying conditions. There is NO |
||
18719 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
||
18720 | |||
18721 | # GNU Libtool is free software; you can redistribute it and/or modify |
||
18722 | # it under the terms of the GNU General Public License as published by |
||
18723 | # the Free Software Foundation; either version 2 of of the License, or |
||
18724 | # (at your option) any later version. |
||
18725 | # |
||
18726 | # As a special exception to the GNU General Public License, if you |
||
18727 | # distribute this file as part of a program or library that is built |
||
18728 | # using GNU Libtool, you may include this file under the same |
||
18729 | # distribution terms that you use for the rest of that program. |
||
18730 | # |
||
18731 | # GNU Libtool is distributed in the hope that it will be useful, but |
||
18732 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
||
18733 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
18734 | # GNU General Public License for more details. |
||
18735 | # |
||
18736 | # You should have received a copy of the GNU General Public License |
||
18737 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
||
18738 | |||
18739 | |||
18740 | # The names of the tagged configurations supported by this script. |
||
18741 | available_tags='CXX ' |
||
18742 | |||
18743 | # Configured defaults for sys_lib_dlsearch_path munging. |
||
18744 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
||
18745 | |||
18746 | # ### BEGIN LIBTOOL CONFIG |
||
18747 | |||
18748 | # Which release of libtool.m4 was used? |
||
18749 | macro_version=$macro_version |
||
18750 | macro_revision=$macro_revision |
||
18751 | |||
18752 | # Whether or not to build shared libraries. |
||
18753 | build_libtool_libs=$enable_shared |
||
18754 | |||
18755 | # Whether or not to build static libraries. |
||
18756 | build_old_libs=$enable_static |
||
18757 | |||
18758 | # What type of objects to build. |
||
18759 | pic_mode=$pic_mode |
||
18760 | |||
18761 | # Whether or not to optimize for fast installation. |
||
18762 | fast_install=$enable_fast_install |
||
18763 | |||
18764 | # Shared archive member basename,for filename based shared library versioning on AIX. |
||
18765 | shared_archive_member_spec=$shared_archive_member_spec |
||
18766 | |||
18767 | # Shell to use when invoking shell scripts. |
||
18768 | SHELL=$lt_SHELL |
||
18769 | |||
18770 | # An echo program that protects backslashes. |
||
18771 | ECHO=$lt_ECHO |
||
18772 | |||
18773 | # The PATH separator for the build system. |
||
18774 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
||
18775 | |||
18776 | # The host system. |
||
18777 | host_alias=$host_alias |
||
18778 | host=$host |
||
18779 | host_os=$host_os |
||
18780 | |||
18781 | # The build system. |
||
18782 | build_alias=$build_alias |
||
18783 | build=$build |
||
18784 | build_os=$build_os |
||
18785 | |||
18786 | # A sed program that does not truncate output. |
||
18787 | SED=$lt_SED |
||
18788 | |||
18789 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
||
18790 | Xsed="\$SED -e 1s/^X//" |
||
18791 | |||
18792 | # A grep program that handles long lines. |
||
18793 | GREP=$lt_GREP |
||
18794 | |||
18795 | # An ERE matcher. |
||
18796 | EGREP=$lt_EGREP |
||
18797 | |||
18798 | # A literal string matcher. |
||
18799 | FGREP=$lt_FGREP |
||
18800 | |||
18801 | # A BSD- or MS-compatible name lister. |
||
18802 | NM=$lt_NM |
||
18803 | |||
18804 | # Whether we need soft or hard links. |
||
18805 | LN_S=$lt_LN_S |
||
18806 | |||
18807 | # What is the maximum length of a command? |
||
18808 | max_cmd_len=$max_cmd_len |
||
18809 | |||
18810 | # Object file suffix (normally "o"). |
||
18811 | objext=$ac_objext |
||
18812 | |||
18813 | # Executable file suffix (normally ""). |
||
18814 | exeext=$exeext |
||
18815 | |||
18816 | # whether the shell understands "unset". |
||
18817 | lt_unset=$lt_unset |
||
18818 | |||
18819 | # turn spaces into newlines. |
||
18820 | SP2NL=$lt_lt_SP2NL |
||
18821 | |||
18822 | # turn newlines into spaces. |
||
18823 | NL2SP=$lt_lt_NL2SP |
||
18824 | |||
18825 | # convert \$build file names to \$host format. |
||
18826 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
||
18827 | |||
18828 | # convert \$build files to toolchain format. |
||
18829 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
||
18830 | |||
18831 | # An object symbol dumper. |
||
18832 | OBJDUMP=$lt_OBJDUMP |
||
18833 | |||
18834 | # Method to check whether dependent libraries are shared objects. |
||
18835 | deplibs_check_method=$lt_deplibs_check_method |
||
18836 | |||
18837 | # Command to use when deplibs_check_method = "file_magic". |
||
18838 | file_magic_cmd=$lt_file_magic_cmd |
||
18839 | |||
18840 | # How to find potential files when deplibs_check_method = "file_magic". |
||
18841 | file_magic_glob=$lt_file_magic_glob |
||
18842 | |||
18843 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
||
18844 | want_nocaseglob=$lt_want_nocaseglob |
||
18845 | |||
18846 | # DLL creation program. |
||
18847 | DLLTOOL=$lt_DLLTOOL |
||
18848 | |||
18849 | # Command to associate shared and link libraries. |
||
18850 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
||
18851 | |||
18852 | # The archiver. |
||
18853 | AR=$lt_AR |
||
18854 | |||
18855 | # Flags to create an archive. |
||
18856 | AR_FLAGS=$lt_AR_FLAGS |
||
18857 | |||
18858 | # How to feed a file listing to the archiver. |
||
18859 | archiver_list_spec=$lt_archiver_list_spec |
||
18860 | |||
18861 | # A symbol stripping program. |
||
18862 | STRIP=$lt_STRIP |
||
18863 | |||
18864 | # Commands used to install an old-style archive. |
||
18865 | RANLIB=$lt_RANLIB |
||
18866 | old_postinstall_cmds=$lt_old_postinstall_cmds |
||
18867 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
||
18868 | |||
18869 | # Whether to use a lock for old archive extraction. |
||
18870 | lock_old_archive_extraction=$lock_old_archive_extraction |
||
18871 | |||
18872 | # A C compiler. |
||
18873 | LTCC=$lt_CC |
||
18874 | |||
18875 | # LTCC compiler flags. |
||
18876 | LTCFLAGS=$lt_CFLAGS |
||
18877 | |||
18878 | # Take the output of nm and produce a listing of raw symbols and C names. |
||
18879 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
||
18880 | |||
18881 | # Transform the output of nm in a proper C declaration. |
||
18882 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
||
18883 | |||
18884 | # Transform the output of nm into a list of symbols to manually relocate. |
||
18885 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
||
18886 | |||
18887 | # Transform the output of nm in a C name address pair. |
||
18888 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
||
18889 | |||
18890 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
||
18891 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
||
18892 | |||
18893 | # The name lister interface. |
||
18894 | nm_interface=$lt_lt_cv_nm_interface |
||
18895 | |||
18896 | # Specify filename containing input files for \$NM. |
||
18897 | nm_file_list_spec=$lt_nm_file_list_spec |
||
18898 | |||
18899 | # The root where to search for dependent libraries,and where our libraries should be installed. |
||
18900 | lt_sysroot=$lt_sysroot |
||
18901 | |||
18902 | # Command to truncate a binary pipe. |
||
18903 | lt_truncate_bin=$lt_lt_cv_truncate_bin |
||
18904 | |||
18905 | # The name of the directory that contains temporary libtool files. |
||
18906 | objdir=$objdir |
||
18907 | |||
18908 | # Used to examine libraries when file_magic_cmd begins with "file". |
||
18909 | MAGIC_CMD=$MAGIC_CMD |
||
18910 | |||
18911 | # Must we lock files when doing compilation? |
||
18912 | need_locks=$lt_need_locks |
||
18913 | |||
18914 | # Manifest tool. |
||
18915 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
||
18916 | |||
18917 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
||
18918 | DSYMUTIL=$lt_DSYMUTIL |
||
18919 | |||
18920 | # Tool to change global to local symbols on Mac OS X. |
||
18921 | NMEDIT=$lt_NMEDIT |
||
18922 | |||
18923 | # Tool to manipulate fat objects and archives on Mac OS X. |
||
18924 | LIPO=$lt_LIPO |
||
18925 | |||
18926 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
||
18927 | OTOOL=$lt_OTOOL |
||
18928 | |||
18929 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
||
18930 | OTOOL64=$lt_OTOOL64 |
||
18931 | |||
18932 | # Old archive suffix (normally "a"). |
||
18933 | libext=$libext |
||
18934 | |||
18935 | # Shared library suffix (normally ".so"). |
||
18936 | shrext_cmds=$lt_shrext_cmds |
||
18937 | |||
18938 | # The commands to extract the exported symbol list from a shared archive. |
||
18939 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
||
18940 | |||
18941 | # Variables whose values should be saved in libtool wrapper scripts and |
||
18942 | # restored at link time. |
||
18943 | variables_saved_for_relink=$lt_variables_saved_for_relink |
||
18944 | |||
18945 | # Do we need the "lib" prefix for modules? |
||
18946 | need_lib_prefix=$need_lib_prefix |
||
18947 | |||
18948 | # Do we need a version for libraries? |
||
18949 | need_version=$need_version |
||
18950 | |||
18951 | # Library versioning type. |
||
18952 | version_type=$version_type |
||
18953 | |||
18954 | # Shared library runtime path variable. |
||
18955 | runpath_var=$runpath_var |
||
18956 | |||
18957 | # Shared library path variable. |
||
18958 | shlibpath_var=$shlibpath_var |
||
18959 | |||
18960 | # Is shlibpath searched before the hard-coded library search path? |
||
18961 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
||
18962 | |||
18963 | # Format of library name prefix. |
||
18964 | libname_spec=$lt_libname_spec |
||
18965 | |||
18966 | # List of archive names. First name is the real one, the rest are links. |
||
18967 | # The last name is the one that the linker finds with -lNAME |
||
18968 | library_names_spec=$lt_library_names_spec |
||
18969 | |||
18970 | # The coded name of the library, if different from the real name. |
||
18971 | soname_spec=$lt_soname_spec |
||
18972 | |||
18973 | # Permission mode override for installation of shared libraries. |
||
18974 | install_override_mode=$lt_install_override_mode |
||
18975 | |||
18976 | # Command to use after installation of a shared archive. |
||
18977 | postinstall_cmds=$lt_postinstall_cmds |
||
18978 | |||
18979 | # Command to use after uninstallation of a shared archive. |
||
18980 | postuninstall_cmds=$lt_postuninstall_cmds |
||
18981 | |||
18982 | # Commands used to finish a libtool library installation in a directory. |
||
18983 | finish_cmds=$lt_finish_cmds |
||
18984 | |||
18985 | # As "finish_cmds", except a single script fragment to be evaled but |
||
18986 | # not shown. |
||
18987 | finish_eval=$lt_finish_eval |
||
18988 | |||
18989 | # Whether we should hardcode library paths into libraries. |
||
18990 | hardcode_into_libs=$hardcode_into_libs |
||
18991 | |||
18992 | # Compile-time system search path for libraries. |
||
18993 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
||
18994 | |||
18995 | # Detected run-time system search path for libraries. |
||
18996 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
||
18997 | |||
18998 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
||
18999 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
||
19000 | |||
19001 | # Whether dlopen is supported. |
||
19002 | dlopen_support=$enable_dlopen |
||
19003 | |||
19004 | # Whether dlopen of programs is supported. |
||
19005 | dlopen_self=$enable_dlopen_self |
||
19006 | |||
19007 | # Whether dlopen of statically linked programs is supported. |
||
19008 | dlopen_self_static=$enable_dlopen_self_static |
||
19009 | |||
19010 | # Commands to strip libraries. |
||
19011 | old_striplib=$lt_old_striplib |
||
19012 | striplib=$lt_striplib |
||
19013 | |||
19014 | |||
19015 | # The linker used to build libraries. |
||
19016 | LD=$lt_LD |
||
19017 | |||
19018 | # How to create reloadable object files. |
||
19019 | reload_flag=$lt_reload_flag |
||
19020 | reload_cmds=$lt_reload_cmds |
||
19021 | |||
19022 | # Commands used to build an old-style archive. |
||
19023 | old_archive_cmds=$lt_old_archive_cmds |
||
19024 | |||
19025 | # A language specific compiler. |
||
19026 | CC=$lt_compiler |
||
19027 | |||
19028 | # Is the compiler the GNU compiler? |
||
19029 | with_gcc=$GCC |
||
19030 | |||
19031 | # Compiler flag to turn off builtin functions. |
||
19032 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
||
19033 | |||
19034 | # Additional compiler flags for building library objects. |
||
19035 | pic_flag=$lt_lt_prog_compiler_pic |
||
19036 | |||
19037 | # How to pass a linker flag through the compiler. |
||
19038 | wl=$lt_lt_prog_compiler_wl |
||
19039 | |||
19040 | # Compiler flag to prevent dynamic linking. |
||
19041 | link_static_flag=$lt_lt_prog_compiler_static |
||
19042 | |||
19043 | # Does compiler simultaneously support -c and -o options? |
||
19044 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
||
19045 | |||
19046 | # Whether or not to add -lc for building shared libraries. |
||
19047 | build_libtool_need_lc=$archive_cmds_need_lc |
||
19048 | |||
19049 | # Whether or not to disallow shared libs when runtime libs are static. |
||
19050 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
||
19051 | |||
19052 | # Compiler flag to allow reflexive dlopens. |
||
19053 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
||
19054 | |||
19055 | # Compiler flag to generate shared objects directly from archives. |
||
19056 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
||
19057 | |||
19058 | # Whether the compiler copes with passing no objects directly. |
||
19059 | compiler_needs_object=$lt_compiler_needs_object |
||
19060 | |||
19061 | # Create an old-style archive from a shared archive. |
||
19062 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
||
19063 | |||
19064 | # Create a temporary old-style archive to link instead of a shared archive. |
||
19065 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
||
19066 | |||
19067 | # Commands used to build a shared archive. |
||
19068 | archive_cmds=$lt_archive_cmds |
||
19069 | archive_expsym_cmds=$lt_archive_expsym_cmds |
||
19070 | |||
19071 | # Commands used to build a loadable module if different from building |
||
19072 | # a shared archive. |
||
19073 | module_cmds=$lt_module_cmds |
||
19074 | module_expsym_cmds=$lt_module_expsym_cmds |
||
19075 | |||
19076 | # Whether we are building with GNU ld or not. |
||
19077 | with_gnu_ld=$lt_with_gnu_ld |
||
19078 | |||
19079 | # Flag that allows shared libraries with undefined symbols to be built. |
||
19080 | allow_undefined_flag=$lt_allow_undefined_flag |
||
19081 | |||
19082 | # Flag that enforces no undefined symbols. |
||
19083 | no_undefined_flag=$lt_no_undefined_flag |
||
19084 | |||
19085 | # Flag to hardcode \$libdir into a binary during linking. |
||
19086 | # This must work even if \$libdir does not exist |
||
19087 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
||
19088 | |||
19089 | # Whether we need a single "-rpath" flag with a separated argument. |
||
19090 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
||
19091 | |||
19092 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
||
19093 | # DIR into the resulting binary. |
||
19094 | hardcode_direct=$hardcode_direct |
||
19095 | |||
19096 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
||
19097 | # DIR into the resulting binary and the resulting library dependency is |
||
19098 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
||
19099 | # library is relocated. |
||
19100 | hardcode_direct_absolute=$hardcode_direct_absolute |
||
19101 | |||
19102 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
||
19103 | # into the resulting binary. |
||
19104 | hardcode_minus_L=$hardcode_minus_L |
||
19105 | |||
19106 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
||
19107 | # into the resulting binary. |
||
19108 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
||
19109 | |||
19110 | # Set to "yes" if building a shared library automatically hardcodes DIR |
||
19111 | # into the library and all subsequent libraries and executables linked |
||
19112 | # against it. |
||
19113 | hardcode_automatic=$hardcode_automatic |
||
19114 | |||
19115 | # Set to yes if linker adds runtime paths of dependent libraries |
||
19116 | # to runtime path list. |
||
19117 | inherit_rpath=$inherit_rpath |
||
19118 | |||
19119 | # Whether libtool must link a program against all its dependency libraries. |
||
19120 | link_all_deplibs=$link_all_deplibs |
||
19121 | |||
19122 | # Set to "yes" if exported symbols are required. |
||
19123 | always_export_symbols=$always_export_symbols |
||
19124 | |||
19125 | # The commands to list exported symbols. |
||
19126 | export_symbols_cmds=$lt_export_symbols_cmds |
||
19127 | |||
19128 | # Symbols that should not be listed in the preloaded symbols. |
||
19129 | exclude_expsyms=$lt_exclude_expsyms |
||
19130 | |||
19131 | # Symbols that must always be exported. |
||
19132 | include_expsyms=$lt_include_expsyms |
||
19133 | |||
19134 | # Commands necessary for linking programs (against libraries) with templates. |
||
19135 | prelink_cmds=$lt_prelink_cmds |
||
19136 | |||
19137 | # Commands necessary for finishing linking programs. |
||
19138 | postlink_cmds=$lt_postlink_cmds |
||
19139 | |||
19140 | # Specify filename containing input files. |
||
19141 | file_list_spec=$lt_file_list_spec |
||
19142 | |||
19143 | # How to hardcode a shared library path into an executable. |
||
19144 | hardcode_action=$hardcode_action |
||
19145 | |||
19146 | # The directories searched by this compiler when creating a shared library. |
||
19147 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
||
19148 | |||
19149 | # Dependencies to place before and after the objects being linked to |
||
19150 | # create a shared library. |
||
19151 | predep_objects=$lt_predep_objects |
||
19152 | postdep_objects=$lt_postdep_objects |
||
19153 | predeps=$lt_predeps |
||
19154 | postdeps=$lt_postdeps |
||
19155 | |||
19156 | # The library search path used internally by the compiler when linking |
||
19157 | # a shared library. |
||
19158 | compiler_lib_search_path=$lt_compiler_lib_search_path |
||
19159 | |||
19160 | # ### END LIBTOOL CONFIG |
||
19161 | |||
19162 | _LT_EOF |
||
19163 | |||
19164 | cat <<'_LT_EOF' >> "$cfgfile" |
||
19165 | |||
19166 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
||
19167 | |||
19168 | # func_munge_path_list VARIABLE PATH |
||
19169 | # ----------------------------------- |
||
19170 | # VARIABLE is name of variable containing _space_ separated list of |
||
19171 | # directories to be munged by the contents of PATH, which is string |
||
19172 | # having a format: |
||
19173 | # "DIR[:DIR]:" |
||
19174 | # string "DIR[ DIR]" will be prepended to VARIABLE |
||
19175 | # ":DIR[:DIR]" |
||
19176 | # string "DIR[ DIR]" will be appended to VARIABLE |
||
19177 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
||
19178 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
||
19179 | # "DIRA[ DIRA]" will be appended to VARIABLE |
||
19180 | # "DIR[:DIR]" |
||
19181 | # VARIABLE will be replaced by "DIR[ DIR]" |
||
19182 | func_munge_path_list () |
||
19183 | { |
||
19184 | case x$2 in |
||
19185 | x) |
||
19186 | ;; |
||
19187 | *:) |
||
19188 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
||
19189 | ;; |
||
19190 | x:*) |
||
19191 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
||
19192 | ;; |
||
19193 | *::*) |
||
19194 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
||
19195 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
||
19196 | ;; |
||
19197 | *) |
||
19198 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
||
19199 | ;; |
||
19200 | esac |
||
19201 | } |
||
19202 | |||
19203 | |||
19204 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
||
19205 | func_cc_basename () |
||
19206 | { |
||
19207 | for cc_temp in $*""; do |
||
19208 | case $cc_temp in |
||
19209 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
||
19210 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
||
19211 | \-*) ;; |
||
19212 | *) break;; |
||
19213 | esac |
||
19214 | done |
||
19215 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
||
19216 | } |
||
19217 | |||
19218 | |||
19219 | # ### END FUNCTIONS SHARED WITH CONFIGURE |
||
19220 | |||
19221 | _LT_EOF |
||
19222 | |||
19223 | case $host_os in |
||
19224 | aix3*) |
||
19225 | cat <<\_LT_EOF >> "$cfgfile" |
||
19226 | # AIX sometimes has problems with the GCC collect2 program. For some |
||
19227 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
||
19228 | # vanish in a puff of smoke. |
||
19229 | if test set != "${COLLECT_NAMES+set}"; then |
||
19230 | COLLECT_NAMES= |
||
19231 | export COLLECT_NAMES |
||
19232 | fi |
||
19233 | _LT_EOF |
||
19234 | ;; |
||
19235 | esac |
||
19236 | |||
19237 | |||
19238 | ltmain=$ac_aux_dir/ltmain.sh |
||
19239 | |||
19240 | |||
19241 | # We use sed instead of cat because bash on DJGPP gets confused if |
||
19242 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
||
19243 | # text mode, it properly converts lines to CR/LF. This bash problem |
||
19244 | # is reportedly fixed, but why not run on old versions too? |
||
19245 | sed '$q' "$ltmain" >> "$cfgfile" \ |
||
19246 | || (rm -f "$cfgfile"; exit 1) |
||
19247 | |||
19248 | mv -f "$cfgfile" "$ofile" || |
||
19249 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
||
19250 | chmod +x "$ofile" |
||
19251 | |||
19252 | |||
19253 | cat <<_LT_EOF >> "$ofile" |
||
19254 | |||
19255 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
||
19256 | |||
19257 | # The linker used to build libraries. |
||
19258 | LD=$lt_LD_CXX |
||
19259 | |||
19260 | # How to create reloadable object files. |
||
19261 | reload_flag=$lt_reload_flag_CXX |
||
19262 | reload_cmds=$lt_reload_cmds_CXX |
||
19263 | |||
19264 | # Commands used to build an old-style archive. |
||
19265 | old_archive_cmds=$lt_old_archive_cmds_CXX |
||
19266 | |||
19267 | # A language specific compiler. |
||
19268 | CC=$lt_compiler_CXX |
||
19269 | |||
19270 | # Is the compiler the GNU compiler? |
||
19271 | with_gcc=$GCC_CXX |
||
19272 | |||
19273 | # Compiler flag to turn off builtin functions. |
||
19274 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
||
19275 | |||
19276 | # Additional compiler flags for building library objects. |
||
19277 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
||
19278 | |||
19279 | # How to pass a linker flag through the compiler. |
||
19280 | wl=$lt_lt_prog_compiler_wl_CXX |
||
19281 | |||
19282 | # Compiler flag to prevent dynamic linking. |
||
19283 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
||
19284 | |||
19285 | # Does compiler simultaneously support -c and -o options? |
||
19286 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
||
19287 | |||
19288 | # Whether or not to add -lc for building shared libraries. |
||
19289 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
||
19290 | |||
19291 | # Whether or not to disallow shared libs when runtime libs are static. |
||
19292 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
||
19293 | |||
19294 | # Compiler flag to allow reflexive dlopens. |
||
19295 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
||
19296 | |||
19297 | # Compiler flag to generate shared objects directly from archives. |
||
19298 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
||
19299 | |||
19300 | # Whether the compiler copes with passing no objects directly. |
||
19301 | compiler_needs_object=$lt_compiler_needs_object_CXX |
||
19302 | |||
19303 | # Create an old-style archive from a shared archive. |
||
19304 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
||
19305 | |||
19306 | # Create a temporary old-style archive to link instead of a shared archive. |
||
19307 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
||
19308 | |||
19309 | # Commands used to build a shared archive. |
||
19310 | archive_cmds=$lt_archive_cmds_CXX |
||
19311 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
||
19312 | |||
19313 | # Commands used to build a loadable module if different from building |
||
19314 | # a shared archive. |
||
19315 | module_cmds=$lt_module_cmds_CXX |
||
19316 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
||
19317 | |||
19318 | # Whether we are building with GNU ld or not. |
||
19319 | with_gnu_ld=$lt_with_gnu_ld_CXX |
||
19320 | |||
19321 | # Flag that allows shared libraries with undefined symbols to be built. |
||
19322 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
||
19323 | |||
19324 | # Flag that enforces no undefined symbols. |
||
19325 | no_undefined_flag=$lt_no_undefined_flag_CXX |
||
19326 | |||
19327 | # Flag to hardcode \$libdir into a binary during linking. |
||
19328 | # This must work even if \$libdir does not exist |
||
19329 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
||
19330 | |||
19331 | # Whether we need a single "-rpath" flag with a separated argument. |
||
19332 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
||
19333 | |||
19334 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
||
19335 | # DIR into the resulting binary. |
||
19336 | hardcode_direct=$hardcode_direct_CXX |
||
19337 | |||
19338 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
||
19339 | # DIR into the resulting binary and the resulting library dependency is |
||
19340 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
||
19341 | # library is relocated. |
||
19342 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
||
19343 | |||
19344 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
||
19345 | # into the resulting binary. |
||
19346 | hardcode_minus_L=$hardcode_minus_L_CXX |
||
19347 | |||
19348 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
||
19349 | # into the resulting binary. |
||
19350 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
||
19351 | |||
19352 | # Set to "yes" if building a shared library automatically hardcodes DIR |
||
19353 | # into the library and all subsequent libraries and executables linked |
||
19354 | # against it. |
||
19355 | hardcode_automatic=$hardcode_automatic_CXX |
||
19356 | |||
19357 | # Set to yes if linker adds runtime paths of dependent libraries |
||
19358 | # to runtime path list. |
||
19359 | inherit_rpath=$inherit_rpath_CXX |
||
19360 | |||
19361 | # Whether libtool must link a program against all its dependency libraries. |
||
19362 | link_all_deplibs=$link_all_deplibs_CXX |
||
19363 | |||
19364 | # Set to "yes" if exported symbols are required. |
||
19365 | always_export_symbols=$always_export_symbols_CXX |
||
19366 | |||
19367 | # The commands to list exported symbols. |
||
19368 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
||
19369 | |||
19370 | # Symbols that should not be listed in the preloaded symbols. |
||
19371 | exclude_expsyms=$lt_exclude_expsyms_CXX |
||
19372 | |||
19373 | # Symbols that must always be exported. |
||
19374 | include_expsyms=$lt_include_expsyms_CXX |
||
19375 | |||
19376 | # Commands necessary for linking programs (against libraries) with templates. |
||
19377 | prelink_cmds=$lt_prelink_cmds_CXX |
||
19378 | |||
19379 | # Commands necessary for finishing linking programs. |
||
19380 | postlink_cmds=$lt_postlink_cmds_CXX |
||
19381 | |||
19382 | # Specify filename containing input files. |
||
19383 | file_list_spec=$lt_file_list_spec_CXX |
||
19384 | |||
19385 | # How to hardcode a shared library path into an executable. |
||
19386 | hardcode_action=$hardcode_action_CXX |
||
19387 | |||
19388 | # The directories searched by this compiler when creating a shared library. |
||
19389 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
||
19390 | |||
19391 | # Dependencies to place before and after the objects being linked to |
||
19392 | # create a shared library. |
||
19393 | predep_objects=$lt_predep_objects_CXX |
||
19394 | postdep_objects=$lt_postdep_objects_CXX |
||
19395 | predeps=$lt_predeps_CXX |
||
19396 | postdeps=$lt_postdeps_CXX |
||
19397 | |||
19398 | # The library search path used internally by the compiler when linking |
||
19399 | # a shared library. |
||
19400 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
||
19401 | |||
19402 | # ### END LIBTOOL TAG CONFIG: CXX |
||
19403 | _LT_EOF |
||
19404 | |||
19405 | ;; |
||
19406 | |||
19407 | esac |
||
19408 | done # for ac_tag |
||
19409 | |||
19410 | |||
19411 | as_fn_exit 0 |
||
19412 | _ACEOF |
||
19413 | ac_clean_files=$ac_clean_files_save |
||
19414 | |||
19415 | test $ac_write_fail = 0 || |
||
19416 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
||
19417 | |||
19418 | |||
19419 | # configure is writing to config.log, and then calls config.status. |
||
19420 | # config.status does its own redirection, appending to config.log. |
||
19421 | # Unfortunately, on DOS this fails, as config.log is still kept open |
||
19422 | # by configure, so config.status won't be able to write to it; its |
||
19423 | # output is simply discarded. So we exec the FD to /dev/null, |
||
19424 | # effectively closing config.log, so it can be properly (re)opened and |
||
19425 | # appended to by config.status. When coming back to configure, we |
||
19426 | # need to make the FD available again. |
||
19427 | if test "$no_create" != yes; then |
||
19428 | ac_cs_success=: |
||
19429 | ac_config_status_args= |
||
19430 | test "$silent" = yes && |
||
19431 | ac_config_status_args="$ac_config_status_args --quiet" |
||
19432 | exec 5>/dev/null |
||
19433 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
||
19434 | exec 5>>config.log |
||
19435 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
||
19436 | # would make configure fail if this is the last instruction. |
||
19437 | $ac_cs_success || as_fn_exit 1 |
||
19438 | fi |
||
19439 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
||
19440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
||
19441 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
||
19442 | fi |
||
19443 | |||
19444 |