Mercurial > openid
comparison configure @ 0:3c209338e596
Ur/Web module initializes libcurl
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 26 Dec 2010 12:04:08 -0500 |
parents | |
children | c230e6da3ff6 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3c209338e596 |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.67 for urweb_openid 1.0. | |
4 # | |
5 # | |
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | |
8 # 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 case $0 in #(( | |
93 *[\\/]* ) as_myself=$0 ;; | |
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
95 for as_dir in $PATH | |
96 do | |
97 IFS=$as_save_IFS | |
98 test -z "$as_dir" && as_dir=. | |
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
100 done | |
101 IFS=$as_save_IFS | |
102 | |
103 ;; | |
104 esac | |
105 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
106 # in which case we are not to be found in the path. | |
107 if test "x$as_myself" = x; then | |
108 as_myself=$0 | |
109 fi | |
110 if test ! -f "$as_myself"; then | |
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
112 exit 1 | |
113 fi | |
114 | |
115 # Unset variables that we do not need and which cause bugs (e.g. in | |
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
117 # suppresses any "Segmentation fault" message there. '((' could | |
118 # trigger a bug in pdksh 5.2.14. | |
119 for as_var in BASH_ENV ENV MAIL MAILPATH | |
120 do eval test x\${$as_var+set} = xset \ | |
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
122 done | |
123 PS1='$ ' | |
124 PS2='> ' | |
125 PS4='+ ' | |
126 | |
127 # NLS nuisances. | |
128 LC_ALL=C | |
129 export LC_ALL | |
130 LANGUAGE=C | |
131 export LANGUAGE | |
132 | |
133 # CDPATH. | |
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
135 | |
136 if test "x$CONFIG_SHELL" = x; then | |
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
138 emulate sh | |
139 NULLCMD=: | |
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
141 # is contrary to our usage. Disable this feature. | |
142 alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
143 setopt NO_GLOB_SUBST | |
144 else | |
145 case \`(set -o) 2>/dev/null\` in #( | |
146 *posix*) : | |
147 set -o posix ;; #( | |
148 *) : | |
149 ;; | |
150 esac | |
151 fi | |
152 " | |
153 as_required="as_fn_return () { (exit \$1); } | |
154 as_fn_success () { as_fn_return 0; } | |
155 as_fn_failure () { as_fn_return 1; } | |
156 as_fn_ret_success () { return 0; } | |
157 as_fn_ret_failure () { return 1; } | |
158 | |
159 exitcode=0 | |
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
165 | |
166 else | |
167 exitcode=1; echo positional parameters were not saved. | |
168 fi | |
169 test x\$exitcode = x0 || exit 1" | |
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
174 test \$(( 1 + 1 )) = 2 || exit 1" | |
175 if (eval "$as_required") 2>/dev/null; then : | |
176 as_have_required=yes | |
177 else | |
178 as_have_required=no | |
179 fi | |
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
181 | |
182 else | |
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
184 as_found=false | |
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
186 do | |
187 IFS=$as_save_IFS | |
188 test -z "$as_dir" && as_dir=. | |
189 as_found=: | |
190 case $as_dir in #( | |
191 /*) | |
192 for as_base in sh bash ksh sh5; do | |
193 # Try only shells that exist, to save several forks. | |
194 as_shell=$as_dir/$as_base | |
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 CONFIG_SHELL=$as_shell as_have_required=yes | |
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
199 break 2 | |
200 fi | |
201 fi | |
202 done;; | |
203 esac | |
204 as_found=false | |
205 done | |
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
208 CONFIG_SHELL=$SHELL as_have_required=yes | |
209 fi; } | |
210 IFS=$as_save_IFS | |
211 | |
212 | |
213 if test "x$CONFIG_SHELL" != x; then : | |
214 # We cannot yet assume a decent shell, so we have to provide a | |
215 # neutralization value for shells without unset; and this also | |
216 # works around shells that cannot unset nonexistent variables. | |
217 BASH_ENV=/dev/null | |
218 ENV=/dev/null | |
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
220 export CONFIG_SHELL | |
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
222 fi | |
223 | |
224 if test x$as_have_required = xno; then : | |
225 $as_echo "$0: This script requires a shell more modern than all" | |
226 $as_echo "$0: the shells that I found on your system." | |
227 if test x${ZSH_VERSION+set} = xset ; then | |
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
230 else | |
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
232 $0: including any error possibly output before this | |
233 $0: message. Then install a modern shell, or manually run | |
234 $0: the script under such a shell if you do have one." | |
235 fi | |
236 exit 1 | |
237 fi | |
238 fi | |
239 fi | |
240 SHELL=${CONFIG_SHELL-/bin/sh} | |
241 export SHELL | |
242 # Unset more variables known to interfere with behavior of common tools. | |
243 CLICOLOR_FORCE= GREP_OPTIONS= | |
244 unset CLICOLOR_FORCE GREP_OPTIONS | |
245 | |
246 ## --------------------- ## | |
247 ## M4sh Shell Functions. ## | |
248 ## --------------------- ## | |
249 # as_fn_unset VAR | |
250 # --------------- | |
251 # Portably unset VAR. | |
252 as_fn_unset () | |
253 { | |
254 { eval $1=; unset $1;} | |
255 } | |
256 as_unset=as_fn_unset | |
257 | |
258 # as_fn_set_status STATUS | |
259 # ----------------------- | |
260 # Set $? to STATUS, without forking. | |
261 as_fn_set_status () | |
262 { | |
263 return $1 | |
264 } # as_fn_set_status | |
265 | |
266 # as_fn_exit STATUS | |
267 # ----------------- | |
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
269 as_fn_exit () | |
270 { | |
271 set +e | |
272 as_fn_set_status $1 | |
273 exit $1 | |
274 } # as_fn_exit | |
275 | |
276 # as_fn_mkdir_p | |
277 # ------------- | |
278 # Create "$as_dir" as a directory, including parents if necessary. | |
279 as_fn_mkdir_p () | |
280 { | |
281 | |
282 case $as_dir in #( | |
283 -*) as_dir=./$as_dir;; | |
284 esac | |
285 test -d "$as_dir" || eval $as_mkdir_p || { | |
286 as_dirs= | |
287 while :; do | |
288 case $as_dir in #( | |
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
290 *) as_qdir=$as_dir;; | |
291 esac | |
292 as_dirs="'$as_qdir' $as_dirs" | |
293 as_dir=`$as_dirname -- "$as_dir" || | |
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
295 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
296 X"$as_dir" : 'X\(//\)$' \| \ | |
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
298 $as_echo X"$as_dir" | | |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
300 s//\1/ | |
301 q | |
302 } | |
303 /^X\(\/\/\)[^/].*/{ | |
304 s//\1/ | |
305 q | |
306 } | |
307 /^X\(\/\/\)$/{ | |
308 s//\1/ | |
309 q | |
310 } | |
311 /^X\(\/\).*/{ | |
312 s//\1/ | |
313 q | |
314 } | |
315 s/.*/./; q'` | |
316 test -d "$as_dir" && break | |
317 done | |
318 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
320 | |
321 | |
322 } # as_fn_mkdir_p | |
323 # as_fn_append VAR VALUE | |
324 # ---------------------- | |
325 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
326 # advantage of any shell optimizations that allow amortized linear growth over | |
327 # repeated appends, instead of the typical quadratic growth present in naive | |
328 # implementations. | |
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
330 eval 'as_fn_append () | |
331 { | |
332 eval $1+=\$2 | |
333 }' | |
334 else | |
335 as_fn_append () | |
336 { | |
337 eval $1=\$$1\$2 | |
338 } | |
339 fi # as_fn_append | |
340 | |
341 # as_fn_arith ARG... | |
342 # ------------------ | |
343 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
345 # must be portable across $(()) and expr. | |
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
347 eval 'as_fn_arith () | |
348 { | |
349 as_val=$(( $* )) | |
350 }' | |
351 else | |
352 as_fn_arith () | |
353 { | |
354 as_val=`expr "$@" || test $? -eq 1` | |
355 } | |
356 fi # as_fn_arith | |
357 | |
358 | |
359 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
360 # ---------------------------------------- | |
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
363 # script with STATUS, using 1 if that was 0. | |
364 as_fn_error () | |
365 { | |
366 as_status=$1; test $as_status -eq 0 && as_status=1 | |
367 if test "$4"; then | |
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
370 fi | |
371 $as_echo "$as_me: error: $2" >&2 | |
372 as_fn_exit $as_status | |
373 } # as_fn_error | |
374 | |
375 if expr a : '\(a\)' >/dev/null 2>&1 && | |
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
377 as_expr=expr | |
378 else | |
379 as_expr=false | |
380 fi | |
381 | |
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
383 as_basename=basename | |
384 else | |
385 as_basename=false | |
386 fi | |
387 | |
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
389 as_dirname=dirname | |
390 else | |
391 as_dirname=false | |
392 fi | |
393 | |
394 as_me=`$as_basename -- "$0" || | |
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
396 X"$0" : 'X\(//\)$' \| \ | |
397 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
398 $as_echo X/"$0" | | |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
400 s//\1/ | |
401 q | |
402 } | |
403 /^X\/\(\/\/\)$/{ | |
404 s//\1/ | |
405 q | |
406 } | |
407 /^X\/\(\/\).*/{ | |
408 s//\1/ | |
409 q | |
410 } | |
411 s/.*/./; q'` | |
412 | |
413 # Avoid depending upon Character Ranges. | |
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
417 as_cr_digits='0123456789' | |
418 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
419 | |
420 | |
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
426 sed -n ' | |
427 p | |
428 /[$]LINENO/= | |
429 ' <$as_myself | | |
430 sed ' | |
431 s/[$]LINENO.*/&-/ | |
432 t lineno | |
433 b | |
434 :lineno | |
435 N | |
436 :loop | |
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
438 t loop | |
439 s/-\n.*// | |
440 ' >$as_me.lineno && | |
441 chmod +x "$as_me.lineno" || | |
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
443 | |
444 # Don't try to exec as it changes $[0], causing all sort of problems | |
445 # (the dirname of $[0] is not the place where we might find the | |
446 # original and so on. Autoconf is especially sensitive to this). | |
447 . "./$as_me.lineno" | |
448 # Exit status is that of the last command. | |
449 exit | |
450 } | |
451 | |
452 ECHO_C= ECHO_N= ECHO_T= | |
453 case `echo -n x` in #((((( | |
454 -n*) | |
455 case `echo 'xy\c'` in | |
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
457 xy) ECHO_C='\c';; | |
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
459 ECHO_T=' ';; | |
460 esac;; | |
461 *) | |
462 ECHO_N='-n';; | |
463 esac | |
464 | |
465 rm -f conf$$ conf$$.exe conf$$.file | |
466 if test -d conf$$.dir; then | |
467 rm -f conf$$.dir/conf$$.file | |
468 else | |
469 rm -f conf$$.dir | |
470 mkdir conf$$.dir 2>/dev/null | |
471 fi | |
472 if (echo >conf$$.file) 2>/dev/null; then | |
473 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
474 as_ln_s='ln -s' | |
475 # ... but there are two gotchas: | |
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
478 # In both cases, we have to default to `cp -p'. | |
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
480 as_ln_s='cp -p' | |
481 elif ln conf$$.file conf$$ 2>/dev/null; then | |
482 as_ln_s=ln | |
483 else | |
484 as_ln_s='cp -p' | |
485 fi | |
486 else | |
487 as_ln_s='cp -p' | |
488 fi | |
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
490 rmdir conf$$.dir 2>/dev/null | |
491 | |
492 if mkdir -p . 2>/dev/null; then | |
493 as_mkdir_p='mkdir -p "$as_dir"' | |
494 else | |
495 test -d ./-p && rmdir ./-p | |
496 as_mkdir_p=false | |
497 fi | |
498 | |
499 if test -x / >/dev/null 2>&1; then | |
500 as_test_x='test -x' | |
501 else | |
502 if ls -dL / >/dev/null 2>&1; then | |
503 as_ls_L_option=L | |
504 else | |
505 as_ls_L_option= | |
506 fi | |
507 as_test_x=' | |
508 eval sh -c '\'' | |
509 if test -d "$1"; then | |
510 test -d "$1/."; | |
511 else | |
512 case $1 in #( | |
513 -*)set "./$1";; | |
514 esac; | |
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
516 ???[sx]*):;;*)false;;esac;fi | |
517 '\'' sh | |
518 ' | |
519 fi | |
520 as_executable_p=$as_test_x | |
521 | |
522 # Sed expression to map a string onto a valid CPP name. | |
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
524 | |
525 # Sed expression to map a string onto a valid variable name. | |
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
527 | |
528 | |
529 | |
530 # Check that we are running under the correct shell. | |
531 SHELL=${CONFIG_SHELL-/bin/sh} | |
532 | |
533 case X$lt_ECHO in | |
534 X*--fallback-echo) | |
535 # Remove one level of quotation (which was required for Make). | |
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
537 ;; | |
538 esac | |
539 | |
540 ECHO=${lt_ECHO-echo} | |
541 if test "X$1" = X--no-reexec; then | |
542 # Discard the --no-reexec flag, and continue. | |
543 shift | |
544 elif test "X$1" = X--fallback-echo; then | |
545 # Avoid inline document here, it may be left over | |
546 : | |
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
548 # Yippee, $ECHO works! | |
549 : | |
550 else | |
551 # Restart under the correct shell. | |
552 exec $SHELL "$0" --no-reexec ${1+"$@"} | |
553 fi | |
554 | |
555 if test "X$1" = X--fallback-echo; then | |
556 # used as fallback echo | |
557 shift | |
558 cat <<_LT_EOF | |
559 $* | |
560 _LT_EOF | |
561 exit 0 | |
562 fi | |
563 | |
564 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
565 # if CDPATH is set. | |
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
567 | |
568 if test -z "$lt_ECHO"; then | |
569 if test "X${echo_test_string+set}" != Xset; then | |
570 # find a string as large as possible, as long as the shell can cope with it | |
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
575 then | |
576 break | |
577 fi | |
578 done | |
579 fi | |
580 | |
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
583 test "X$echo_testing_string" = "X$echo_test_string"; then | |
584 : | |
585 else | |
586 # The Solaris, AIX, and Digital Unix default echo programs unquote | |
587 # backslashes. This makes it impossible to quote backslashes using | |
588 # echo "$something" | sed 's/\\/\\\\/g' | |
589 # | |
590 # So, first we look for a working echo in the user's PATH. | |
591 | |
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
593 for dir in $PATH /usr/ucb; do | |
594 IFS="$lt_save_ifs" | |
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
598 test "X$echo_testing_string" = "X$echo_test_string"; then | |
599 ECHO="$dir/echo" | |
600 break | |
601 fi | |
602 done | |
603 IFS="$lt_save_ifs" | |
604 | |
605 if test "X$ECHO" = Xecho; then | |
606 # We didn't find a better echo, so look for alternatives. | |
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
609 test "X$echo_testing_string" = "X$echo_test_string"; then | |
610 # This shell has a builtin print -r that does the trick. | |
611 ECHO='print -r' | |
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
613 test "X$CONFIG_SHELL" != X/bin/ksh; then | |
614 # If we have ksh, try running configure again with it. | |
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
616 export ORIGINAL_CONFIG_SHELL | |
617 CONFIG_SHELL=/bin/ksh | |
618 export CONFIG_SHELL | |
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
620 else | |
621 # Try using printf. | |
622 ECHO='printf %s\n' | |
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
625 test "X$echo_testing_string" = "X$echo_test_string"; then | |
626 # Cool, printf works | |
627 : | |
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
629 test "X$echo_testing_string" = 'X\t' && | |
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
631 test "X$echo_testing_string" = "X$echo_test_string"; then | |
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
633 export CONFIG_SHELL | |
634 SHELL="$CONFIG_SHELL" | |
635 export SHELL | |
636 ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
638 test "X$echo_testing_string" = 'X\t' && | |
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
640 test "X$echo_testing_string" = "X$echo_test_string"; then | |
641 ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
642 else | |
643 # maybe with a smaller string... | |
644 prev=: | |
645 | |
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
648 then | |
649 break | |
650 fi | |
651 prev="$cmd" | |
652 done | |
653 | |
654 if test "$prev" != 'sed 50q "$0"'; then | |
655 echo_test_string=`eval $prev` | |
656 export echo_test_string | |
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
658 else | |
659 # Oops. We lost completely, so just stick with echo. | |
660 ECHO=echo | |
661 fi | |
662 fi | |
663 fi | |
664 fi | |
665 fi | |
666 fi | |
667 | |
668 # Copy echo and quote the copy suitably for passing to libtool from | |
669 # the Makefile, instead of quoting the original, which is used later. | |
670 lt_ECHO=$ECHO | |
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
673 fi | |
674 | |
675 | |
676 | |
677 | |
678 test -n "$DJDIR" || exec 7<&0 </dev/null | |
679 exec 6>&1 | |
680 | |
681 # Name of the host. | |
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
683 # so uname gets run too. | |
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
685 | |
686 # | |
687 # Initializations. | |
688 # | |
689 ac_default_prefix=/usr/local | |
690 ac_clean_files= | |
691 ac_config_libobj_dir=. | |
692 LIBOBJS= | |
693 cross_compiling=no | |
694 subdirs= | |
695 MFLAGS= | |
696 MAKEFLAGS= | |
697 | |
698 # Identity of this package. | |
699 PACKAGE_NAME='urweb_openid' | |
700 PACKAGE_TARNAME='urweb_openid' | |
701 PACKAGE_VERSION='1.0' | |
702 PACKAGE_STRING='urweb_openid 1.0' | |
703 PACKAGE_BUGREPORT='' | |
704 PACKAGE_URL='' | |
705 | |
706 # Factoring default headers for most tests. | |
707 ac_includes_default="\ | |
708 #include <stdio.h> | |
709 #ifdef HAVE_SYS_TYPES_H | |
710 # include <sys/types.h> | |
711 #endif | |
712 #ifdef HAVE_SYS_STAT_H | |
713 # include <sys/stat.h> | |
714 #endif | |
715 #ifdef STDC_HEADERS | |
716 # include <stdlib.h> | |
717 # include <stddef.h> | |
718 #else | |
719 # ifdef HAVE_STDLIB_H | |
720 # include <stdlib.h> | |
721 # endif | |
722 #endif | |
723 #ifdef HAVE_STRING_H | |
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
725 # include <memory.h> | |
726 # endif | |
727 # include <string.h> | |
728 #endif | |
729 #ifdef HAVE_STRINGS_H | |
730 # include <strings.h> | |
731 #endif | |
732 #ifdef HAVE_INTTYPES_H | |
733 # include <inttypes.h> | |
734 #endif | |
735 #ifdef HAVE_STDINT_H | |
736 # include <stdint.h> | |
737 #endif | |
738 #ifdef HAVE_UNISTD_H | |
739 # include <unistd.h> | |
740 #endif" | |
741 | |
742 ac_subst_vars='am__EXEEXT_FALSE | |
743 am__EXEEXT_TRUE | |
744 LTLIBOBJS | |
745 LIBOBJS | |
746 INCLUDE | |
747 LIB | |
748 LIBCURL | |
749 LIBCURL_CPPFLAGS | |
750 _libcurl_config | |
751 OPENSSL_LDFLAGS | |
752 OPENSSL_LIBS | |
753 OPENSSL_INCLUDES | |
754 PKG_CONFIG | |
755 OTOOL64 | |
756 OTOOL | |
757 LIPO | |
758 NMEDIT | |
759 DSYMUTIL | |
760 lt_ECHO | |
761 RANLIB | |
762 AR | |
763 OBJDUMP | |
764 LN_S | |
765 NM | |
766 ac_ct_DUMPBIN | |
767 DUMPBIN | |
768 LD | |
769 FGREP | |
770 SED | |
771 host_os | |
772 host_vendor | |
773 host_cpu | |
774 host | |
775 build_os | |
776 build_vendor | |
777 build_cpu | |
778 build | |
779 LIBTOOL | |
780 am__fastdepCC_FALSE | |
781 am__fastdepCC_TRUE | |
782 CCDEPMODE | |
783 AMDEPBACKSLASH | |
784 AMDEP_FALSE | |
785 AMDEP_TRUE | |
786 am__quote | |
787 am__include | |
788 DEPDIR | |
789 am__untar | |
790 am__tar | |
791 AMTAR | |
792 am__leading_dot | |
793 SET_MAKE | |
794 AWK | |
795 mkdir_p | |
796 MKDIR_P | |
797 INSTALL_STRIP_PROGRAM | |
798 STRIP | |
799 install_sh | |
800 MAKEINFO | |
801 AUTOHEADER | |
802 AUTOMAKE | |
803 AUTOCONF | |
804 ACLOCAL | |
805 VERSION | |
806 PACKAGE | |
807 CYGPATH_W | |
808 am__isrc | |
809 INSTALL_DATA | |
810 INSTALL_SCRIPT | |
811 INSTALL_PROGRAM | |
812 EGREP | |
813 GREP | |
814 CPP | |
815 OBJEXT | |
816 EXEEXT | |
817 ac_ct_CC | |
818 CPPFLAGS | |
819 LDFLAGS | |
820 CFLAGS | |
821 CC | |
822 target_alias | |
823 host_alias | |
824 build_alias | |
825 LIBS | |
826 ECHO_T | |
827 ECHO_N | |
828 ECHO_C | |
829 DEFS | |
830 mandir | |
831 localedir | |
832 libdir | |
833 psdir | |
834 pdfdir | |
835 dvidir | |
836 htmldir | |
837 infodir | |
838 docdir | |
839 oldincludedir | |
840 includedir | |
841 localstatedir | |
842 sharedstatedir | |
843 sysconfdir | |
844 datadir | |
845 datarootdir | |
846 libexecdir | |
847 sbindir | |
848 bindir | |
849 program_transform_name | |
850 prefix | |
851 exec_prefix | |
852 PACKAGE_URL | |
853 PACKAGE_BUGREPORT | |
854 PACKAGE_STRING | |
855 PACKAGE_VERSION | |
856 PACKAGE_TARNAME | |
857 PACKAGE_NAME | |
858 PATH_SEPARATOR | |
859 SHELL' | |
860 ac_subst_files='' | |
861 ac_user_opts=' | |
862 enable_option_checking | |
863 enable_dependency_tracking | |
864 enable_shared | |
865 enable_static | |
866 with_pic | |
867 enable_fast_install | |
868 with_gnu_ld | |
869 enable_libtool_lock | |
870 with_openssl | |
871 with_libcurl | |
872 ' | |
873 ac_precious_vars='build_alias | |
874 host_alias | |
875 target_alias | |
876 CC | |
877 CFLAGS | |
878 LDFLAGS | |
879 LIBS | |
880 CPPFLAGS | |
881 CPP' | |
882 | |
883 | |
884 # Initialize some variables set by options. | |
885 ac_init_help= | |
886 ac_init_version=false | |
887 ac_unrecognized_opts= | |
888 ac_unrecognized_sep= | |
889 # The variables have the same names as the options, with | |
890 # dashes changed to underlines. | |
891 cache_file=/dev/null | |
892 exec_prefix=NONE | |
893 no_create= | |
894 no_recursion= | |
895 prefix=NONE | |
896 program_prefix=NONE | |
897 program_suffix=NONE | |
898 program_transform_name=s,x,x, | |
899 silent= | |
900 site= | |
901 srcdir= | |
902 verbose= | |
903 x_includes=NONE | |
904 x_libraries=NONE | |
905 | |
906 # Installation directory options. | |
907 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
908 # and all the variables that are supposed to be based on exec_prefix | |
909 # by default will actually change. | |
910 # Use braces instead of parens because sh, perl, etc. also accept them. | |
911 # (The list follows the same order as the GNU Coding Standards.) | |
912 bindir='${exec_prefix}/bin' | |
913 sbindir='${exec_prefix}/sbin' | |
914 libexecdir='${exec_prefix}/libexec' | |
915 datarootdir='${prefix}/share' | |
916 datadir='${datarootdir}' | |
917 sysconfdir='${prefix}/etc' | |
918 sharedstatedir='${prefix}/com' | |
919 localstatedir='${prefix}/var' | |
920 includedir='${prefix}/include' | |
921 oldincludedir='/usr/include' | |
922 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
923 infodir='${datarootdir}/info' | |
924 htmldir='${docdir}' | |
925 dvidir='${docdir}' | |
926 pdfdir='${docdir}' | |
927 psdir='${docdir}' | |
928 libdir='${exec_prefix}/lib' | |
929 localedir='${datarootdir}/locale' | |
930 mandir='${datarootdir}/man' | |
931 | |
932 ac_prev= | |
933 ac_dashdash= | |
934 for ac_option | |
935 do | |
936 # If the previous option needs an argument, assign it. | |
937 if test -n "$ac_prev"; then | |
938 eval $ac_prev=\$ac_option | |
939 ac_prev= | |
940 continue | |
941 fi | |
942 | |
943 case $ac_option in | |
944 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
945 *=) ac_optarg= ;; | |
946 *) ac_optarg=yes ;; | |
947 esac | |
948 | |
949 # Accept the important Cygnus configure options, so we can diagnose typos. | |
950 | |
951 case $ac_dashdash$ac_option in | |
952 --) | |
953 ac_dashdash=yes ;; | |
954 | |
955 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
956 ac_prev=bindir ;; | |
957 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
958 bindir=$ac_optarg ;; | |
959 | |
960 -build | --build | --buil | --bui | --bu) | |
961 ac_prev=build_alias ;; | |
962 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
963 build_alias=$ac_optarg ;; | |
964 | |
965 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
966 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
967 ac_prev=cache_file ;; | |
968 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
969 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
970 cache_file=$ac_optarg ;; | |
971 | |
972 --config-cache | -C) | |
973 cache_file=config.cache ;; | |
974 | |
975 -datadir | --datadir | --datadi | --datad) | |
976 ac_prev=datadir ;; | |
977 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
978 datadir=$ac_optarg ;; | |
979 | |
980 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
981 | --dataroo | --dataro | --datar) | |
982 ac_prev=datarootdir ;; | |
983 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
984 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
985 datarootdir=$ac_optarg ;; | |
986 | |
987 -disable-* | --disable-*) | |
988 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
989 # Reject names that are not valid shell variable names. | |
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
991 as_fn_error $? "invalid feature name: $ac_useropt" | |
992 ac_useropt_orig=$ac_useropt | |
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
994 case $ac_user_opts in | |
995 *" | |
996 "enable_$ac_useropt" | |
997 "*) ;; | |
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
999 ac_unrecognized_sep=', ';; | |
1000 esac | |
1001 eval enable_$ac_useropt=no ;; | |
1002 | |
1003 -docdir | --docdir | --docdi | --doc | --do) | |
1004 ac_prev=docdir ;; | |
1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1006 docdir=$ac_optarg ;; | |
1007 | |
1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1009 ac_prev=dvidir ;; | |
1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1011 dvidir=$ac_optarg ;; | |
1012 | |
1013 -enable-* | --enable-*) | |
1014 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1015 # Reject names that are not valid shell variable names. | |
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1017 as_fn_error $? "invalid feature name: $ac_useropt" | |
1018 ac_useropt_orig=$ac_useropt | |
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1020 case $ac_user_opts in | |
1021 *" | |
1022 "enable_$ac_useropt" | |
1023 "*) ;; | |
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1025 ac_unrecognized_sep=', ';; | |
1026 esac | |
1027 eval enable_$ac_useropt=\$ac_optarg ;; | |
1028 | |
1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1031 | --exec | --exe | --ex) | |
1032 ac_prev=exec_prefix ;; | |
1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1035 | --exec=* | --exe=* | --ex=*) | |
1036 exec_prefix=$ac_optarg ;; | |
1037 | |
1038 -gas | --gas | --ga | --g) | |
1039 # Obsolete; use --with-gas. | |
1040 with_gas=yes ;; | |
1041 | |
1042 -help | --help | --hel | --he | -h) | |
1043 ac_init_help=long ;; | |
1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1045 ac_init_help=recursive ;; | |
1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1047 ac_init_help=short ;; | |
1048 | |
1049 -host | --host | --hos | --ho) | |
1050 ac_prev=host_alias ;; | |
1051 -host=* | --host=* | --hos=* | --ho=*) | |
1052 host_alias=$ac_optarg ;; | |
1053 | |
1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1055 ac_prev=htmldir ;; | |
1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1057 | --ht=*) | |
1058 htmldir=$ac_optarg ;; | |
1059 | |
1060 -includedir | --includedir | --includedi | --included | --include \ | |
1061 | --includ | --inclu | --incl | --inc) | |
1062 ac_prev=includedir ;; | |
1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1064 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1065 includedir=$ac_optarg ;; | |
1066 | |
1067 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1068 ac_prev=infodir ;; | |
1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1070 infodir=$ac_optarg ;; | |
1071 | |
1072 -libdir | --libdir | --libdi | --libd) | |
1073 ac_prev=libdir ;; | |
1074 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1075 libdir=$ac_optarg ;; | |
1076 | |
1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1078 | --libexe | --libex | --libe) | |
1079 ac_prev=libexecdir ;; | |
1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1081 | --libexe=* | --libex=* | --libe=*) | |
1082 libexecdir=$ac_optarg ;; | |
1083 | |
1084 -localedir | --localedir | --localedi | --localed | --locale) | |
1085 ac_prev=localedir ;; | |
1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1087 localedir=$ac_optarg ;; | |
1088 | |
1089 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1090 | --localstate | --localstat | --localsta | --localst | --locals) | |
1091 ac_prev=localstatedir ;; | |
1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1094 localstatedir=$ac_optarg ;; | |
1095 | |
1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1097 ac_prev=mandir ;; | |
1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1099 mandir=$ac_optarg ;; | |
1100 | |
1101 -nfp | --nfp | --nf) | |
1102 # Obsolete; use --without-fp. | |
1103 with_fp=no ;; | |
1104 | |
1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1106 | --no-cr | --no-c | -n) | |
1107 no_create=yes ;; | |
1108 | |
1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1111 no_recursion=yes ;; | |
1112 | |
1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1115 | --oldin | --oldi | --old | --ol | --o) | |
1116 ac_prev=oldincludedir ;; | |
1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1120 oldincludedir=$ac_optarg ;; | |
1121 | |
1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1123 ac_prev=prefix ;; | |
1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1125 prefix=$ac_optarg ;; | |
1126 | |
1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1128 | --program-pre | --program-pr | --program-p) | |
1129 ac_prev=program_prefix ;; | |
1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1132 program_prefix=$ac_optarg ;; | |
1133 | |
1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1135 | --program-suf | --program-su | --program-s) | |
1136 ac_prev=program_suffix ;; | |
1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1139 program_suffix=$ac_optarg ;; | |
1140 | |
1141 -program-transform-name | --program-transform-name \ | |
1142 | --program-transform-nam | --program-transform-na \ | |
1143 | --program-transform-n | --program-transform- \ | |
1144 | --program-transform | --program-transfor \ | |
1145 | --program-transfo | --program-transf \ | |
1146 | --program-trans | --program-tran \ | |
1147 | --progr-tra | --program-tr | --program-t) | |
1148 ac_prev=program_transform_name ;; | |
1149 -program-transform-name=* | --program-transform-name=* \ | |
1150 | --program-transform-nam=* | --program-transform-na=* \ | |
1151 | --program-transform-n=* | --program-transform-=* \ | |
1152 | --program-transform=* | --program-transfor=* \ | |
1153 | --program-transfo=* | --program-transf=* \ | |
1154 | --program-trans=* | --program-tran=* \ | |
1155 | --progr-tra=* | --program-tr=* | --program-t=*) | |
1156 program_transform_name=$ac_optarg ;; | |
1157 | |
1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1159 ac_prev=pdfdir ;; | |
1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1161 pdfdir=$ac_optarg ;; | |
1162 | |
1163 -psdir | --psdir | --psdi | --psd | --ps) | |
1164 ac_prev=psdir ;; | |
1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1166 psdir=$ac_optarg ;; | |
1167 | |
1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1169 | -silent | --silent | --silen | --sile | --sil) | |
1170 silent=yes ;; | |
1171 | |
1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1173 ac_prev=sbindir ;; | |
1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1175 | --sbi=* | --sb=*) | |
1176 sbindir=$ac_optarg ;; | |
1177 | |
1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1180 | --sharedst | --shareds | --shared | --share | --shar \ | |
1181 | --sha | --sh) | |
1182 ac_prev=sharedstatedir ;; | |
1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1186 | --sha=* | --sh=*) | |
1187 sharedstatedir=$ac_optarg ;; | |
1188 | |
1189 -site | --site | --sit) | |
1190 ac_prev=site ;; | |
1191 -site=* | --site=* | --sit=*) | |
1192 site=$ac_optarg ;; | |
1193 | |
1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1195 ac_prev=srcdir ;; | |
1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1197 srcdir=$ac_optarg ;; | |
1198 | |
1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1200 | --syscon | --sysco | --sysc | --sys | --sy) | |
1201 ac_prev=sysconfdir ;; | |
1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1204 sysconfdir=$ac_optarg ;; | |
1205 | |
1206 -target | --target | --targe | --targ | --tar | --ta | --t) | |
1207 ac_prev=target_alias ;; | |
1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1209 target_alias=$ac_optarg ;; | |
1210 | |
1211 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1212 verbose=yes ;; | |
1213 | |
1214 -version | --version | --versio | --versi | --vers | -V) | |
1215 ac_init_version=: ;; | |
1216 | |
1217 -with-* | --with-*) | |
1218 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1219 # Reject names that are not valid shell variable names. | |
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1221 as_fn_error $? "invalid package name: $ac_useropt" | |
1222 ac_useropt_orig=$ac_useropt | |
1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1224 case $ac_user_opts in | |
1225 *" | |
1226 "with_$ac_useropt" | |
1227 "*) ;; | |
1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1229 ac_unrecognized_sep=', ';; | |
1230 esac | |
1231 eval with_$ac_useropt=\$ac_optarg ;; | |
1232 | |
1233 -without-* | --without-*) | |
1234 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1235 # Reject names that are not valid shell variable names. | |
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1237 as_fn_error $? "invalid package name: $ac_useropt" | |
1238 ac_useropt_orig=$ac_useropt | |
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1240 case $ac_user_opts in | |
1241 *" | |
1242 "with_$ac_useropt" | |
1243 "*) ;; | |
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1245 ac_unrecognized_sep=', ';; | |
1246 esac | |
1247 eval with_$ac_useropt=no ;; | |
1248 | |
1249 --x) | |
1250 # Obsolete; use --with-x. | |
1251 with_x=yes ;; | |
1252 | |
1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1254 | --x-incl | --x-inc | --x-in | --x-i) | |
1255 ac_prev=x_includes ;; | |
1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1258 x_includes=$ac_optarg ;; | |
1259 | |
1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1262 ac_prev=x_libraries ;; | |
1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1265 x_libraries=$ac_optarg ;; | |
1266 | |
1267 -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1268 Try \`$0 --help' for more information" | |
1269 ;; | |
1270 | |
1271 *=*) | |
1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1273 # Reject names that are not valid shell variable names. | |
1274 case $ac_envvar in #( | |
1275 '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1276 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1277 esac | |
1278 eval $ac_envvar=\$ac_optarg | |
1279 export $ac_envvar ;; | |
1280 | |
1281 *) | |
1282 # FIXME: should be removed in autoconf 3.0. | |
1283 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1285 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1286 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1287 ;; | |
1288 | |
1289 esac | |
1290 done | |
1291 | |
1292 if test -n "$ac_prev"; then | |
1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1294 as_fn_error $? "missing argument to $ac_option" | |
1295 fi | |
1296 | |
1297 if test -n "$ac_unrecognized_opts"; then | |
1298 case $enable_option_checking in | |
1299 no) ;; | |
1300 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1301 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1302 esac | |
1303 fi | |
1304 | |
1305 # Check all directory arguments for consistency. | |
1306 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1307 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1309 libdir localedir mandir | |
1310 do | |
1311 eval ac_val=\$$ac_var | |
1312 # Remove trailing slashes. | |
1313 case $ac_val in | |
1314 */ ) | |
1315 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1316 eval $ac_var=\$ac_val;; | |
1317 esac | |
1318 # Be sure to have absolute directory names. | |
1319 case $ac_val in | |
1320 [\\/$]* | ?:[\\/]* ) continue;; | |
1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1322 esac | |
1323 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1324 done | |
1325 | |
1326 # There might be people who depend on the old broken behavior: `$host' | |
1327 # used to hold the argument of --host etc. | |
1328 # FIXME: To remove some day. | |
1329 build=$build_alias | |
1330 host=$host_alias | |
1331 target=$target_alias | |
1332 | |
1333 # FIXME: To remove some day. | |
1334 if test "x$host_alias" != x; then | |
1335 if test "x$build_alias" = x; then | |
1336 cross_compiling=maybe | |
1337 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | |
1338 If a cross compiler is detected then cross compile mode will be used" >&2 | |
1339 elif test "x$build_alias" != "x$host_alias"; then | |
1340 cross_compiling=yes | |
1341 fi | |
1342 fi | |
1343 | |
1344 ac_tool_prefix= | |
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1346 | |
1347 test "$silent" = yes && exec 6>/dev/null | |
1348 | |
1349 | |
1350 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1351 ac_ls_di=`ls -di .` && | |
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1353 as_fn_error $? "working directory cannot be determined" | |
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1355 as_fn_error $? "pwd does not report name of working directory" | |
1356 | |
1357 | |
1358 # Find the source files, if location was not specified. | |
1359 if test -z "$srcdir"; then | |
1360 ac_srcdir_defaulted=yes | |
1361 # Try the directory containing this script, then the parent directory. | |
1362 ac_confdir=`$as_dirname -- "$as_myself" || | |
1363 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1364 X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1365 X"$as_myself" : 'X\(//\)$' \| \ | |
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1367 $as_echo X"$as_myself" | | |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1369 s//\1/ | |
1370 q | |
1371 } | |
1372 /^X\(\/\/\)[^/].*/{ | |
1373 s//\1/ | |
1374 q | |
1375 } | |
1376 /^X\(\/\/\)$/{ | |
1377 s//\1/ | |
1378 q | |
1379 } | |
1380 /^X\(\/\).*/{ | |
1381 s//\1/ | |
1382 q | |
1383 } | |
1384 s/.*/./; q'` | |
1385 srcdir=$ac_confdir | |
1386 if test ! -r "$srcdir/$ac_unique_file"; then | |
1387 srcdir=.. | |
1388 fi | |
1389 else | |
1390 ac_srcdir_defaulted=no | |
1391 fi | |
1392 if test ! -r "$srcdir/$ac_unique_file"; then | |
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1395 fi | |
1396 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1397 ac_abs_confdir=`( | |
1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1399 pwd)` | |
1400 # When building in place, set srcdir=. | |
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1402 srcdir=. | |
1403 fi | |
1404 # Remove unnecessary trailing slashes from srcdir. | |
1405 # Double slashes in file names in object file debugging info | |
1406 # mess up M-x gdb in Emacs. | |
1407 case $srcdir in | |
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1409 esac | |
1410 for ac_var in $ac_precious_vars; do | |
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1412 eval ac_env_${ac_var}_value=\$${ac_var} | |
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1415 done | |
1416 | |
1417 # | |
1418 # Report the --help message. | |
1419 # | |
1420 if test "$ac_init_help" = "long"; then | |
1421 # Omit some internal or obsolete options to make the list less imposing. | |
1422 # This message is too long to be a string in the A/UX 3.1 sh. | |
1423 cat <<_ACEOF | |
1424 \`configure' configures urweb_openid 1.0 to adapt to many kinds of systems. | |
1425 | |
1426 Usage: $0 [OPTION]... [VAR=VALUE]... | |
1427 | |
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1429 VAR=VALUE. See below for descriptions of some of the useful variables. | |
1430 | |
1431 Defaults for the options are specified in brackets. | |
1432 | |
1433 Configuration: | |
1434 -h, --help display this help and exit | |
1435 --help=short display options specific to this package | |
1436 --help=recursive display the short help of all the included packages | |
1437 -V, --version display version information and exit | |
1438 -q, --quiet, --silent do not print \`checking ...' messages | |
1439 --cache-file=FILE cache test results in FILE [disabled] | |
1440 -C, --config-cache alias for \`--cache-file=config.cache' | |
1441 -n, --no-create do not create output files | |
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1443 | |
1444 Installation directories: | |
1445 --prefix=PREFIX install architecture-independent files in PREFIX | |
1446 [$ac_default_prefix] | |
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1448 [PREFIX] | |
1449 | |
1450 By default, \`make install' will install all the files in | |
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1453 for instance \`--prefix=\$HOME'. | |
1454 | |
1455 For better control, use the options below. | |
1456 | |
1457 Fine tuning of the installation directories: | |
1458 --bindir=DIR user executables [EPREFIX/bin] | |
1459 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1460 --libexecdir=DIR program executables [EPREFIX/libexec] | |
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1464 --libdir=DIR object code libraries [EPREFIX/lib] | |
1465 --includedir=DIR C header files [PREFIX/include] | |
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1469 --infodir=DIR info documentation [DATAROOTDIR/info] | |
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1471 --mandir=DIR man documentation [DATAROOTDIR/man] | |
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/urweb_openid] | |
1473 --htmldir=DIR html documentation [DOCDIR] | |
1474 --dvidir=DIR dvi documentation [DOCDIR] | |
1475 --pdfdir=DIR pdf documentation [DOCDIR] | |
1476 --psdir=DIR ps documentation [DOCDIR] | |
1477 _ACEOF | |
1478 | |
1479 cat <<\_ACEOF | |
1480 | |
1481 Program names: | |
1482 --program-prefix=PREFIX prepend PREFIX to installed program names | |
1483 --program-suffix=SUFFIX append SUFFIX to installed program names | |
1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1485 | |
1486 System types: | |
1487 --build=BUILD configure for building on BUILD [guessed] | |
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1489 _ACEOF | |
1490 fi | |
1491 | |
1492 if test -n "$ac_init_help"; then | |
1493 case $ac_init_help in | |
1494 short | recursive ) echo "Configuration of urweb_openid 1.0:";; | |
1495 esac | |
1496 cat <<\_ACEOF | |
1497 | |
1498 Optional Features: | |
1499 --disable-option-checking ignore unrecognized --enable/--with options | |
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1502 --disable-dependency-tracking speeds up one-time build | |
1503 --enable-dependency-tracking do not reject slow dependency extractors | |
1504 --enable-shared[=PKGS] build shared libraries [default=yes] | |
1505 --enable-static[=PKGS] build static libraries [default=yes] | |
1506 --enable-fast-install[=PKGS] | |
1507 optimize for fast installation [default=yes] | |
1508 --disable-libtool-lock avoid locking (might break parallel builds) | |
1509 | |
1510 Optional Packages: | |
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1513 --with-pic try to use only PIC/non-PIC objects [default=use | |
1514 both] | |
1515 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1516 --with-openssl=DIR root of the OpenSSL directory | |
1517 --with-libcurl=DIR look for the curl library in DIR | |
1518 | |
1519 Some influential environment variables: | |
1520 CC C compiler command | |
1521 CFLAGS C compiler flags | |
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1523 nonstandard directory <lib dir> | |
1524 LIBS libraries to pass to the linker, e.g. -l<library> | |
1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1526 you have headers in a nonstandard directory <include dir> | |
1527 CPP C preprocessor | |
1528 | |
1529 Use these variables to override the choices made by `configure' or to help | |
1530 it to find libraries and programs with nonstandard names/locations. | |
1531 | |
1532 Report bugs to the package provider. | |
1533 _ACEOF | |
1534 ac_status=$? | |
1535 fi | |
1536 | |
1537 if test "$ac_init_help" = "recursive"; then | |
1538 # If there are subdirs, report their specific --help. | |
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1540 test -d "$ac_dir" || | |
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1542 continue | |
1543 ac_builddir=. | |
1544 | |
1545 case "$ac_dir" in | |
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1547 *) | |
1548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1549 # A ".." for each directory in $ac_dir_suffix. | |
1550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1551 case $ac_top_builddir_sub in | |
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1554 esac ;; | |
1555 esac | |
1556 ac_abs_top_builddir=$ac_pwd | |
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1558 # for backward compatibility: | |
1559 ac_top_builddir=$ac_top_build_prefix | |
1560 | |
1561 case $srcdir in | |
1562 .) # We are building in place. | |
1563 ac_srcdir=. | |
1564 ac_top_srcdir=$ac_top_builddir_sub | |
1565 ac_abs_top_srcdir=$ac_pwd ;; | |
1566 [\\/]* | ?:[\\/]* ) # Absolute name. | |
1567 ac_srcdir=$srcdir$ac_dir_suffix; | |
1568 ac_top_srcdir=$srcdir | |
1569 ac_abs_top_srcdir=$srcdir ;; | |
1570 *) # Relative name. | |
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1574 esac | |
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1576 | |
1577 cd "$ac_dir" || { ac_status=$?; continue; } | |
1578 # Check for guested configure. | |
1579 if test -f "$ac_srcdir/configure.gnu"; then | |
1580 echo && | |
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1582 elif test -f "$ac_srcdir/configure"; then | |
1583 echo && | |
1584 $SHELL "$ac_srcdir/configure" --help=recursive | |
1585 else | |
1586 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1587 fi || ac_status=$? | |
1588 cd "$ac_pwd" || { ac_status=$?; break; } | |
1589 done | |
1590 fi | |
1591 | |
1592 test -n "$ac_init_help" && exit $ac_status | |
1593 if $ac_init_version; then | |
1594 cat <<\_ACEOF | |
1595 urweb_openid configure 1.0 | |
1596 generated by GNU Autoconf 2.67 | |
1597 | |
1598 Copyright (C) 2010 Free Software Foundation, Inc. | |
1599 This configure script is free software; the Free Software Foundation | |
1600 gives unlimited permission to copy, distribute and modify it. | |
1601 _ACEOF | |
1602 exit | |
1603 fi | |
1604 | |
1605 ## ------------------------ ## | |
1606 ## Autoconf initialization. ## | |
1607 ## ------------------------ ## | |
1608 | |
1609 # ac_fn_c_try_compile LINENO | |
1610 # -------------------------- | |
1611 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1612 ac_fn_c_try_compile () | |
1613 { | |
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1615 rm -f conftest.$ac_objext | |
1616 if { { ac_try="$ac_compile" | |
1617 case "(($ac_try" in | |
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1619 *) ac_try_echo=$ac_try;; | |
1620 esac | |
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1622 $as_echo "$ac_try_echo"; } >&5 | |
1623 (eval "$ac_compile") 2>conftest.err | |
1624 ac_status=$? | |
1625 if test -s conftest.err; then | |
1626 grep -v '^ *+' conftest.err >conftest.er1 | |
1627 cat conftest.er1 >&5 | |
1628 mv -f conftest.er1 conftest.err | |
1629 fi | |
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1631 test $ac_status = 0; } && { | |
1632 test -z "$ac_c_werror_flag" || | |
1633 test ! -s conftest.err | |
1634 } && test -s conftest.$ac_objext; then : | |
1635 ac_retval=0 | |
1636 else | |
1637 $as_echo "$as_me: failed program was:" >&5 | |
1638 sed 's/^/| /' conftest.$ac_ext >&5 | |
1639 | |
1640 ac_retval=1 | |
1641 fi | |
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1643 as_fn_set_status $ac_retval | |
1644 | |
1645 } # ac_fn_c_try_compile | |
1646 | |
1647 # ac_fn_c_try_cpp LINENO | |
1648 # ---------------------- | |
1649 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1650 ac_fn_c_try_cpp () | |
1651 { | |
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1653 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1654 case "(($ac_try" in | |
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1656 *) ac_try_echo=$ac_try;; | |
1657 esac | |
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1659 $as_echo "$ac_try_echo"; } >&5 | |
1660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1661 ac_status=$? | |
1662 if test -s conftest.err; then | |
1663 grep -v '^ *+' conftest.err >conftest.er1 | |
1664 cat conftest.er1 >&5 | |
1665 mv -f conftest.er1 conftest.err | |
1666 fi | |
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1668 test $ac_status = 0; } > conftest.i && { | |
1669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1670 test ! -s conftest.err | |
1671 }; then : | |
1672 ac_retval=0 | |
1673 else | |
1674 $as_echo "$as_me: failed program was:" >&5 | |
1675 sed 's/^/| /' conftest.$ac_ext >&5 | |
1676 | |
1677 ac_retval=1 | |
1678 fi | |
1679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1680 as_fn_set_status $ac_retval | |
1681 | |
1682 } # ac_fn_c_try_cpp | |
1683 | |
1684 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1685 # ------------------------------------------------------- | |
1686 # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1687 # the include files in INCLUDES and setting the cache variable VAR | |
1688 # accordingly. | |
1689 ac_fn_c_check_header_mongrel () | |
1690 { | |
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1692 if eval "test \"\${$3+set}\"" = set; then : | |
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1694 $as_echo_n "checking for $2... " >&6; } | |
1695 if eval "test \"\${$3+set}\"" = set; then : | |
1696 $as_echo_n "(cached) " >&6 | |
1697 fi | |
1698 eval ac_res=\$$3 | |
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1700 $as_echo "$ac_res" >&6; } | |
1701 else | |
1702 # Is the header compilable? | |
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1704 $as_echo_n "checking $2 usability... " >&6; } | |
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1706 /* end confdefs.h. */ | |
1707 $4 | |
1708 #include <$2> | |
1709 _ACEOF | |
1710 if ac_fn_c_try_compile "$LINENO"; then : | |
1711 ac_header_compiler=yes | |
1712 else | |
1713 ac_header_compiler=no | |
1714 fi | |
1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1717 $as_echo "$ac_header_compiler" >&6; } | |
1718 | |
1719 # Is the header present? | |
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1721 $as_echo_n "checking $2 presence... " >&6; } | |
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1723 /* end confdefs.h. */ | |
1724 #include <$2> | |
1725 _ACEOF | |
1726 if ac_fn_c_try_cpp "$LINENO"; then : | |
1727 ac_header_preproc=yes | |
1728 else | |
1729 ac_header_preproc=no | |
1730 fi | |
1731 rm -f conftest.err conftest.i conftest.$ac_ext | |
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1733 $as_echo "$ac_header_preproc" >&6; } | |
1734 | |
1735 # So? What about this header? | |
1736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1737 yes:no: ) | |
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1739 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1741 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1742 ;; | |
1743 no:yes:* ) | |
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1745 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1747 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1749 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1751 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1753 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1754 ;; | |
1755 esac | |
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1757 $as_echo_n "checking for $2... " >&6; } | |
1758 if eval "test \"\${$3+set}\"" = set; then : | |
1759 $as_echo_n "(cached) " >&6 | |
1760 else | |
1761 eval "$3=\$ac_header_compiler" | |
1762 fi | |
1763 eval ac_res=\$$3 | |
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1765 $as_echo "$ac_res" >&6; } | |
1766 fi | |
1767 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1768 | |
1769 } # ac_fn_c_check_header_mongrel | |
1770 | |
1771 # ac_fn_c_try_run LINENO | |
1772 # ---------------------- | |
1773 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1774 # that executables *can* be run. | |
1775 ac_fn_c_try_run () | |
1776 { | |
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1778 if { { ac_try="$ac_link" | |
1779 case "(($ac_try" in | |
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1781 *) ac_try_echo=$ac_try;; | |
1782 esac | |
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1784 $as_echo "$ac_try_echo"; } >&5 | |
1785 (eval "$ac_link") 2>&5 | |
1786 ac_status=$? | |
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1788 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1789 { { case "(($ac_try" in | |
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1791 *) ac_try_echo=$ac_try;; | |
1792 esac | |
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1794 $as_echo "$ac_try_echo"; } >&5 | |
1795 (eval "$ac_try") 2>&5 | |
1796 ac_status=$? | |
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1798 test $ac_status = 0; }; }; then : | |
1799 ac_retval=0 | |
1800 else | |
1801 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1802 $as_echo "$as_me: failed program was:" >&5 | |
1803 sed 's/^/| /' conftest.$ac_ext >&5 | |
1804 | |
1805 ac_retval=$ac_status | |
1806 fi | |
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1809 as_fn_set_status $ac_retval | |
1810 | |
1811 } # ac_fn_c_try_run | |
1812 | |
1813 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1814 # ------------------------------------------------------- | |
1815 # Tests whether HEADER exists and can be compiled using the include files in | |
1816 # INCLUDES, setting the cache variable VAR accordingly. | |
1817 ac_fn_c_check_header_compile () | |
1818 { | |
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1821 $as_echo_n "checking for $2... " >&6; } | |
1822 if eval "test \"\${$3+set}\"" = set; then : | |
1823 $as_echo_n "(cached) " >&6 | |
1824 else | |
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1826 /* end confdefs.h. */ | |
1827 $4 | |
1828 #include <$2> | |
1829 _ACEOF | |
1830 if ac_fn_c_try_compile "$LINENO"; then : | |
1831 eval "$3=yes" | |
1832 else | |
1833 eval "$3=no" | |
1834 fi | |
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1836 fi | |
1837 eval ac_res=\$$3 | |
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1839 $as_echo "$ac_res" >&6; } | |
1840 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1841 | |
1842 } # ac_fn_c_check_header_compile | |
1843 | |
1844 # ac_fn_c_try_link LINENO | |
1845 # ----------------------- | |
1846 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1847 ac_fn_c_try_link () | |
1848 { | |
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1850 rm -f conftest.$ac_objext conftest$ac_exeext | |
1851 if { { ac_try="$ac_link" | |
1852 case "(($ac_try" in | |
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1854 *) ac_try_echo=$ac_try;; | |
1855 esac | |
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1857 $as_echo "$ac_try_echo"; } >&5 | |
1858 (eval "$ac_link") 2>conftest.err | |
1859 ac_status=$? | |
1860 if test -s conftest.err; then | |
1861 grep -v '^ *+' conftest.err >conftest.er1 | |
1862 cat conftest.er1 >&5 | |
1863 mv -f conftest.er1 conftest.err | |
1864 fi | |
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1866 test $ac_status = 0; } && { | |
1867 test -z "$ac_c_werror_flag" || | |
1868 test ! -s conftest.err | |
1869 } && test -s conftest$ac_exeext && { | |
1870 test "$cross_compiling" = yes || | |
1871 $as_test_x conftest$ac_exeext | |
1872 }; then : | |
1873 ac_retval=0 | |
1874 else | |
1875 $as_echo "$as_me: failed program was:" >&5 | |
1876 sed 's/^/| /' conftest.$ac_ext >&5 | |
1877 | |
1878 ac_retval=1 | |
1879 fi | |
1880 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1881 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1882 # interfere with the next link command; also delete a directory that is | |
1883 # left behind by Apple's compiler. We do this before executing the actions. | |
1884 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1885 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1886 as_fn_set_status $ac_retval | |
1887 | |
1888 } # ac_fn_c_try_link | |
1889 | |
1890 # ac_fn_c_check_func LINENO FUNC VAR | |
1891 # ---------------------------------- | |
1892 # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1893 ac_fn_c_check_func () | |
1894 { | |
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1897 $as_echo_n "checking for $2... " >&6; } | |
1898 if eval "test \"\${$3+set}\"" = set; then : | |
1899 $as_echo_n "(cached) " >&6 | |
1900 else | |
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1902 /* end confdefs.h. */ | |
1903 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1904 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1905 #define $2 innocuous_$2 | |
1906 | |
1907 /* System header to define __stub macros and hopefully few prototypes, | |
1908 which can conflict with char $2 (); below. | |
1909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1910 <limits.h> exists even on freestanding compilers. */ | |
1911 | |
1912 #ifdef __STDC__ | |
1913 # include <limits.h> | |
1914 #else | |
1915 # include <assert.h> | |
1916 #endif | |
1917 | |
1918 #undef $2 | |
1919 | |
1920 /* Override any GCC internal prototype to avoid an error. | |
1921 Use char because int might match the return type of a GCC | |
1922 builtin and then its argument prototype would still apply. */ | |
1923 #ifdef __cplusplus | |
1924 extern "C" | |
1925 #endif | |
1926 char $2 (); | |
1927 /* The GNU C library defines this for functions which it implements | |
1928 to always fail with ENOSYS. Some functions are actually named | |
1929 something starting with __ and the normal name is an alias. */ | |
1930 #if defined __stub_$2 || defined __stub___$2 | |
1931 choke me | |
1932 #endif | |
1933 | |
1934 int | |
1935 main () | |
1936 { | |
1937 return $2 (); | |
1938 ; | |
1939 return 0; | |
1940 } | |
1941 _ACEOF | |
1942 if ac_fn_c_try_link "$LINENO"; then : | |
1943 eval "$3=yes" | |
1944 else | |
1945 eval "$3=no" | |
1946 fi | |
1947 rm -f core conftest.err conftest.$ac_objext \ | |
1948 conftest$ac_exeext conftest.$ac_ext | |
1949 fi | |
1950 eval ac_res=\$$3 | |
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1952 $as_echo "$ac_res" >&6; } | |
1953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1954 | |
1955 } # ac_fn_c_check_func | |
1956 cat >config.log <<_ACEOF | |
1957 This file contains any messages produced by compilers while | |
1958 running configure, to aid debugging if configure makes a mistake. | |
1959 | |
1960 It was created by urweb_openid $as_me 1.0, which was | |
1961 generated by GNU Autoconf 2.67. Invocation command line was | |
1962 | |
1963 $ $0 $@ | |
1964 | |
1965 _ACEOF | |
1966 exec 5>>config.log | |
1967 { | |
1968 cat <<_ASUNAME | |
1969 ## --------- ## | |
1970 ## Platform. ## | |
1971 ## --------- ## | |
1972 | |
1973 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1974 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1975 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1976 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1977 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1978 | |
1979 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1980 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1981 | |
1982 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1983 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1984 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1985 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1986 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1987 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1988 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1989 | |
1990 _ASUNAME | |
1991 | |
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1993 for as_dir in $PATH | |
1994 do | |
1995 IFS=$as_save_IFS | |
1996 test -z "$as_dir" && as_dir=. | |
1997 $as_echo "PATH: $as_dir" | |
1998 done | |
1999 IFS=$as_save_IFS | |
2000 | |
2001 } >&5 | |
2002 | |
2003 cat >&5 <<_ACEOF | |
2004 | |
2005 | |
2006 ## ----------- ## | |
2007 ## Core tests. ## | |
2008 ## ----------- ## | |
2009 | |
2010 _ACEOF | |
2011 | |
2012 | |
2013 # Keep a trace of the command line. | |
2014 # Strip out --no-create and --no-recursion so they do not pile up. | |
2015 # Strip out --silent because we don't want to record it for future runs. | |
2016 # Also quote any args containing shell meta-characters. | |
2017 # Make two passes to allow for proper duplicate-argument suppression. | |
2018 ac_configure_args= | |
2019 ac_configure_args0= | |
2020 ac_configure_args1= | |
2021 ac_must_keep_next=false | |
2022 for ac_pass in 1 2 | |
2023 do | |
2024 for ac_arg | |
2025 do | |
2026 case $ac_arg in | |
2027 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2029 | -silent | --silent | --silen | --sile | --sil) | |
2030 continue ;; | |
2031 *\'*) | |
2032 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2033 esac | |
2034 case $ac_pass in | |
2035 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2036 2) | |
2037 as_fn_append ac_configure_args1 " '$ac_arg'" | |
2038 if test $ac_must_keep_next = true; then | |
2039 ac_must_keep_next=false # Got value, back to normal. | |
2040 else | |
2041 case $ac_arg in | |
2042 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2043 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2044 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2045 | -with-* | --with-* | -without-* | --without-* | --x) | |
2046 case "$ac_configure_args0 " in | |
2047 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2048 esac | |
2049 ;; | |
2050 -* ) ac_must_keep_next=true ;; | |
2051 esac | |
2052 fi | |
2053 as_fn_append ac_configure_args " '$ac_arg'" | |
2054 ;; | |
2055 esac | |
2056 done | |
2057 done | |
2058 { ac_configure_args0=; unset ac_configure_args0;} | |
2059 { ac_configure_args1=; unset ac_configure_args1;} | |
2060 | |
2061 # When interrupted or exit'd, cleanup temporary files, and complete | |
2062 # config.log. We remove comments because anyway the quotes in there | |
2063 # would cause problems or look ugly. | |
2064 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2065 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2066 trap 'exit_status=$? | |
2067 # Save into config.log some information that might help in debugging. | |
2068 { | |
2069 echo | |
2070 | |
2071 $as_echo "## ---------------- ## | |
2072 ## Cache variables. ## | |
2073 ## ---------------- ##" | |
2074 echo | |
2075 # The following way of writing the cache mishandles newlines in values, | |
2076 ( | |
2077 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2078 eval ac_val=\$$ac_var | |
2079 case $ac_val in #( | |
2080 *${as_nl}*) | |
2081 case $ac_var in #( | |
2082 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2083 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2084 esac | |
2085 case $ac_var in #( | |
2086 _ | IFS | as_nl) ;; #( | |
2087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2088 *) { eval $ac_var=; unset $ac_var;} ;; | |
2089 esac ;; | |
2090 esac | |
2091 done | |
2092 (set) 2>&1 | | |
2093 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2094 *${as_nl}ac_space=\ *) | |
2095 sed -n \ | |
2096 "s/'\''/'\''\\\\'\'''\''/g; | |
2097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2098 ;; #( | |
2099 *) | |
2100 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2101 ;; | |
2102 esac | | |
2103 sort | |
2104 ) | |
2105 echo | |
2106 | |
2107 $as_echo "## ----------------- ## | |
2108 ## Output variables. ## | |
2109 ## ----------------- ##" | |
2110 echo | |
2111 for ac_var in $ac_subst_vars | |
2112 do | |
2113 eval ac_val=\$$ac_var | |
2114 case $ac_val in | |
2115 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2116 esac | |
2117 $as_echo "$ac_var='\''$ac_val'\''" | |
2118 done | sort | |
2119 echo | |
2120 | |
2121 if test -n "$ac_subst_files"; then | |
2122 $as_echo "## ------------------- ## | |
2123 ## File substitutions. ## | |
2124 ## ------------------- ##" | |
2125 echo | |
2126 for ac_var in $ac_subst_files | |
2127 do | |
2128 eval ac_val=\$$ac_var | |
2129 case $ac_val in | |
2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2131 esac | |
2132 $as_echo "$ac_var='\''$ac_val'\''" | |
2133 done | sort | |
2134 echo | |
2135 fi | |
2136 | |
2137 if test -s confdefs.h; then | |
2138 $as_echo "## ----------- ## | |
2139 ## confdefs.h. ## | |
2140 ## ----------- ##" | |
2141 echo | |
2142 cat confdefs.h | |
2143 echo | |
2144 fi | |
2145 test "$ac_signal" != 0 && | |
2146 $as_echo "$as_me: caught signal $ac_signal" | |
2147 $as_echo "$as_me: exit $exit_status" | |
2148 } >&5 | |
2149 rm -f core *.core core.conftest.* && | |
2150 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2151 exit $exit_status | |
2152 ' 0 | |
2153 for ac_signal in 1 2 13 15; do | |
2154 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2155 done | |
2156 ac_signal=0 | |
2157 | |
2158 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2159 rm -f -r conftest* confdefs.h | |
2160 | |
2161 $as_echo "/* confdefs.h */" > confdefs.h | |
2162 | |
2163 # Predefined preprocessor variables. | |
2164 | |
2165 cat >>confdefs.h <<_ACEOF | |
2166 #define PACKAGE_NAME "$PACKAGE_NAME" | |
2167 _ACEOF | |
2168 | |
2169 cat >>confdefs.h <<_ACEOF | |
2170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2171 _ACEOF | |
2172 | |
2173 cat >>confdefs.h <<_ACEOF | |
2174 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2175 _ACEOF | |
2176 | |
2177 cat >>confdefs.h <<_ACEOF | |
2178 #define PACKAGE_STRING "$PACKAGE_STRING" | |
2179 _ACEOF | |
2180 | |
2181 cat >>confdefs.h <<_ACEOF | |
2182 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2183 _ACEOF | |
2184 | |
2185 cat >>confdefs.h <<_ACEOF | |
2186 #define PACKAGE_URL "$PACKAGE_URL" | |
2187 _ACEOF | |
2188 | |
2189 | |
2190 # Let the site file select an alternate cache file if it wants to. | |
2191 # Prefer an explicitly selected file to automatically selected ones. | |
2192 ac_site_file1=NONE | |
2193 ac_site_file2=NONE | |
2194 if test -n "$CONFIG_SITE"; then | |
2195 # We do not want a PATH search for config.site. | |
2196 case $CONFIG_SITE in #(( | |
2197 -*) ac_site_file1=./$CONFIG_SITE;; | |
2198 */*) ac_site_file1=$CONFIG_SITE;; | |
2199 *) ac_site_file1=./$CONFIG_SITE;; | |
2200 esac | |
2201 elif test "x$prefix" != xNONE; then | |
2202 ac_site_file1=$prefix/share/config.site | |
2203 ac_site_file2=$prefix/etc/config.site | |
2204 else | |
2205 ac_site_file1=$ac_default_prefix/share/config.site | |
2206 ac_site_file2=$ac_default_prefix/etc/config.site | |
2207 fi | |
2208 for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2209 do | |
2210 test "x$ac_site_file" = xNONE && continue | |
2211 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2213 $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2214 sed 's/^/| /' "$ac_site_file" >&5 | |
2215 . "$ac_site_file" \ | |
2216 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2218 as_fn_error $? "failed to load site script $ac_site_file | |
2219 See \`config.log' for more details" "$LINENO" 5 ; } | |
2220 fi | |
2221 done | |
2222 | |
2223 if test -r "$cache_file"; then | |
2224 # Some versions of bash will fail to source /dev/null (special files | |
2225 # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2226 if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2228 $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2229 case $cache_file in | |
2230 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2231 *) . "./$cache_file";; | |
2232 esac | |
2233 fi | |
2234 else | |
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2236 $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2237 >$cache_file | |
2238 fi | |
2239 | |
2240 # Check that the precious variables saved in the cache have kept the same | |
2241 # value. | |
2242 ac_cache_corrupted=false | |
2243 for ac_var in $ac_precious_vars; do | |
2244 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2245 eval ac_new_set=\$ac_env_${ac_var}_set | |
2246 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2247 eval ac_new_val=\$ac_env_${ac_var}_value | |
2248 case $ac_old_set,$ac_new_set in | |
2249 set,) | |
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2251 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2252 ac_cache_corrupted=: ;; | |
2253 ,set) | |
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2255 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2256 ac_cache_corrupted=: ;; | |
2257 ,);; | |
2258 *) | |
2259 if test "x$ac_old_val" != "x$ac_new_val"; then | |
2260 # differences in whitespace do not lead to failure. | |
2261 ac_old_val_w=`echo x $ac_old_val` | |
2262 ac_new_val_w=`echo x $ac_new_val` | |
2263 if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2265 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2266 ac_cache_corrupted=: | |
2267 else | |
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2269 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2270 eval $ac_var=\$ac_old_val | |
2271 fi | |
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2273 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2275 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2276 fi;; | |
2277 esac | |
2278 # Pass precious variables to config.status. | |
2279 if test "$ac_new_set" = set; then | |
2280 case $ac_new_val in | |
2281 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2282 *) ac_arg=$ac_var=$ac_new_val ;; | |
2283 esac | |
2284 case " $ac_configure_args " in | |
2285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2286 *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2287 esac | |
2288 fi | |
2289 done | |
2290 if $ac_cache_corrupted; then | |
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2294 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2295 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2296 fi | |
2297 ## -------------------- ## | |
2298 ## Main body of script. ## | |
2299 ## -------------------- ## | |
2300 | |
2301 ac_ext=c | |
2302 ac_cpp='$CPP $CPPFLAGS' | |
2303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2305 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2306 | |
2307 | |
2308 ac_ext=c | |
2309 ac_cpp='$CPP $CPPFLAGS' | |
2310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2312 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2313 if test -n "$ac_tool_prefix"; then | |
2314 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2315 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2317 $as_echo_n "checking for $ac_word... " >&6; } | |
2318 if test "${ac_cv_prog_CC+set}" = set; then : | |
2319 $as_echo_n "(cached) " >&6 | |
2320 else | |
2321 if test -n "$CC"; then | |
2322 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2323 else | |
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2325 for as_dir in $PATH | |
2326 do | |
2327 IFS=$as_save_IFS | |
2328 test -z "$as_dir" && as_dir=. | |
2329 for ac_exec_ext in '' $ac_executable_extensions; do | |
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2331 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2333 break 2 | |
2334 fi | |
2335 done | |
2336 done | |
2337 IFS=$as_save_IFS | |
2338 | |
2339 fi | |
2340 fi | |
2341 CC=$ac_cv_prog_CC | |
2342 if test -n "$CC"; then | |
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2344 $as_echo "$CC" >&6; } | |
2345 else | |
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2347 $as_echo "no" >&6; } | |
2348 fi | |
2349 | |
2350 | |
2351 fi | |
2352 if test -z "$ac_cv_prog_CC"; then | |
2353 ac_ct_CC=$CC | |
2354 # Extract the first word of "gcc", so it can be a program name with args. | |
2355 set dummy gcc; ac_word=$2 | |
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2357 $as_echo_n "checking for $ac_word... " >&6; } | |
2358 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2359 $as_echo_n "(cached) " >&6 | |
2360 else | |
2361 if test -n "$ac_ct_CC"; then | |
2362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2363 else | |
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2365 for as_dir in $PATH | |
2366 do | |
2367 IFS=$as_save_IFS | |
2368 test -z "$as_dir" && as_dir=. | |
2369 for ac_exec_ext in '' $ac_executable_extensions; do | |
2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2371 ac_cv_prog_ac_ct_CC="gcc" | |
2372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2373 break 2 | |
2374 fi | |
2375 done | |
2376 done | |
2377 IFS=$as_save_IFS | |
2378 | |
2379 fi | |
2380 fi | |
2381 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2382 if test -n "$ac_ct_CC"; then | |
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2384 $as_echo "$ac_ct_CC" >&6; } | |
2385 else | |
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2387 $as_echo "no" >&6; } | |
2388 fi | |
2389 | |
2390 if test "x$ac_ct_CC" = x; then | |
2391 CC="" | |
2392 else | |
2393 case $cross_compiling:$ac_tool_warned in | |
2394 yes:) | |
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2397 ac_tool_warned=yes ;; | |
2398 esac | |
2399 CC=$ac_ct_CC | |
2400 fi | |
2401 else | |
2402 CC="$ac_cv_prog_CC" | |
2403 fi | |
2404 | |
2405 if test -z "$CC"; then | |
2406 if test -n "$ac_tool_prefix"; then | |
2407 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2408 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2410 $as_echo_n "checking for $ac_word... " >&6; } | |
2411 if test "${ac_cv_prog_CC+set}" = set; then : | |
2412 $as_echo_n "(cached) " >&6 | |
2413 else | |
2414 if test -n "$CC"; then | |
2415 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2416 else | |
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2418 for as_dir in $PATH | |
2419 do | |
2420 IFS=$as_save_IFS | |
2421 test -z "$as_dir" && as_dir=. | |
2422 for ac_exec_ext in '' $ac_executable_extensions; do | |
2423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2424 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2426 break 2 | |
2427 fi | |
2428 done | |
2429 done | |
2430 IFS=$as_save_IFS | |
2431 | |
2432 fi | |
2433 fi | |
2434 CC=$ac_cv_prog_CC | |
2435 if test -n "$CC"; then | |
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2437 $as_echo "$CC" >&6; } | |
2438 else | |
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2440 $as_echo "no" >&6; } | |
2441 fi | |
2442 | |
2443 | |
2444 fi | |
2445 fi | |
2446 if test -z "$CC"; then | |
2447 # Extract the first word of "cc", so it can be a program name with args. | |
2448 set dummy cc; ac_word=$2 | |
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2450 $as_echo_n "checking for $ac_word... " >&6; } | |
2451 if test "${ac_cv_prog_CC+set}" = set; then : | |
2452 $as_echo_n "(cached) " >&6 | |
2453 else | |
2454 if test -n "$CC"; then | |
2455 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2456 else | |
2457 ac_prog_rejected=no | |
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2459 for as_dir in $PATH | |
2460 do | |
2461 IFS=$as_save_IFS | |
2462 test -z "$as_dir" && as_dir=. | |
2463 for ac_exec_ext in '' $ac_executable_extensions; do | |
2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2465 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2466 ac_prog_rejected=yes | |
2467 continue | |
2468 fi | |
2469 ac_cv_prog_CC="cc" | |
2470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2471 break 2 | |
2472 fi | |
2473 done | |
2474 done | |
2475 IFS=$as_save_IFS | |
2476 | |
2477 if test $ac_prog_rejected = yes; then | |
2478 # We found a bogon in the path, so make sure we never use it. | |
2479 set dummy $ac_cv_prog_CC | |
2480 shift | |
2481 if test $# != 0; then | |
2482 # We chose a different compiler from the bogus one. | |
2483 # However, it has the same basename, so the bogon will be chosen | |
2484 # first if we set CC to just the basename; use the full file name. | |
2485 shift | |
2486 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2487 fi | |
2488 fi | |
2489 fi | |
2490 fi | |
2491 CC=$ac_cv_prog_CC | |
2492 if test -n "$CC"; then | |
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2494 $as_echo "$CC" >&6; } | |
2495 else | |
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2497 $as_echo "no" >&6; } | |
2498 fi | |
2499 | |
2500 | |
2501 fi | |
2502 if test -z "$CC"; then | |
2503 if test -n "$ac_tool_prefix"; then | |
2504 for ac_prog in cl.exe | |
2505 do | |
2506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2509 $as_echo_n "checking for $ac_word... " >&6; } | |
2510 if test "${ac_cv_prog_CC+set}" = set; then : | |
2511 $as_echo_n "(cached) " >&6 | |
2512 else | |
2513 if test -n "$CC"; then | |
2514 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2515 else | |
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2517 for as_dir in $PATH | |
2518 do | |
2519 IFS=$as_save_IFS | |
2520 test -z "$as_dir" && as_dir=. | |
2521 for ac_exec_ext in '' $ac_executable_extensions; do | |
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2523 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2525 break 2 | |
2526 fi | |
2527 done | |
2528 done | |
2529 IFS=$as_save_IFS | |
2530 | |
2531 fi | |
2532 fi | |
2533 CC=$ac_cv_prog_CC | |
2534 if test -n "$CC"; then | |
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2536 $as_echo "$CC" >&6; } | |
2537 else | |
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2539 $as_echo "no" >&6; } | |
2540 fi | |
2541 | |
2542 | |
2543 test -n "$CC" && break | |
2544 done | |
2545 fi | |
2546 if test -z "$CC"; then | |
2547 ac_ct_CC=$CC | |
2548 for ac_prog in cl.exe | |
2549 do | |
2550 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2551 set dummy $ac_prog; ac_word=$2 | |
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2553 $as_echo_n "checking for $ac_word... " >&6; } | |
2554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2555 $as_echo_n "(cached) " >&6 | |
2556 else | |
2557 if test -n "$ac_ct_CC"; then | |
2558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2559 else | |
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2561 for as_dir in $PATH | |
2562 do | |
2563 IFS=$as_save_IFS | |
2564 test -z "$as_dir" && as_dir=. | |
2565 for ac_exec_ext in '' $ac_executable_extensions; do | |
2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2567 ac_cv_prog_ac_ct_CC="$ac_prog" | |
2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2569 break 2 | |
2570 fi | |
2571 done | |
2572 done | |
2573 IFS=$as_save_IFS | |
2574 | |
2575 fi | |
2576 fi | |
2577 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2578 if test -n "$ac_ct_CC"; then | |
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2580 $as_echo "$ac_ct_CC" >&6; } | |
2581 else | |
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2583 $as_echo "no" >&6; } | |
2584 fi | |
2585 | |
2586 | |
2587 test -n "$ac_ct_CC" && break | |
2588 done | |
2589 | |
2590 if test "x$ac_ct_CC" = x; then | |
2591 CC="" | |
2592 else | |
2593 case $cross_compiling:$ac_tool_warned in | |
2594 yes:) | |
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2597 ac_tool_warned=yes ;; | |
2598 esac | |
2599 CC=$ac_ct_CC | |
2600 fi | |
2601 fi | |
2602 | |
2603 fi | |
2604 | |
2605 | |
2606 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2608 as_fn_error $? "no acceptable C compiler found in \$PATH | |
2609 See \`config.log' for more details" "$LINENO" 5 ; } | |
2610 | |
2611 # Provide some information about the compiler. | |
2612 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2613 set X $ac_compile | |
2614 ac_compiler=$2 | |
2615 for ac_option in --version -v -V -qversion; do | |
2616 { { ac_try="$ac_compiler $ac_option >&5" | |
2617 case "(($ac_try" in | |
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2619 *) ac_try_echo=$ac_try;; | |
2620 esac | |
2621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2622 $as_echo "$ac_try_echo"; } >&5 | |
2623 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2624 ac_status=$? | |
2625 if test -s conftest.err; then | |
2626 sed '10a\ | |
2627 ... rest of stderr output deleted ... | |
2628 10q' conftest.err >conftest.er1 | |
2629 cat conftest.er1 >&5 | |
2630 fi | |
2631 rm -f conftest.er1 conftest.err | |
2632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2633 test $ac_status = 0; } | |
2634 done | |
2635 | |
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2637 /* end confdefs.h. */ | |
2638 | |
2639 int | |
2640 main () | |
2641 { | |
2642 | |
2643 ; | |
2644 return 0; | |
2645 } | |
2646 _ACEOF | |
2647 ac_clean_files_save=$ac_clean_files | |
2648 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2649 # Try to create an executable without -o first, disregard a.out. | |
2650 # It will help us diagnose broken compilers, and finding out an intuition | |
2651 # of exeext. | |
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2653 $as_echo_n "checking whether the C compiler works... " >&6; } | |
2654 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2655 | |
2656 # The possible output files: | |
2657 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2658 | |
2659 ac_rmfiles= | |
2660 for ac_file in $ac_files | |
2661 do | |
2662 case $ac_file in | |
2663 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2664 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2665 esac | |
2666 done | |
2667 rm -f $ac_rmfiles | |
2668 | |
2669 if { { ac_try="$ac_link_default" | |
2670 case "(($ac_try" in | |
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2672 *) ac_try_echo=$ac_try;; | |
2673 esac | |
2674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2675 $as_echo "$ac_try_echo"; } >&5 | |
2676 (eval "$ac_link_default") 2>&5 | |
2677 ac_status=$? | |
2678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2679 test $ac_status = 0; }; then : | |
2680 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2681 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2682 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2683 # so that the user can short-circuit this test for compilers unknown to | |
2684 # Autoconf. | |
2685 for ac_file in $ac_files '' | |
2686 do | |
2687 test -f "$ac_file" || continue | |
2688 case $ac_file in | |
2689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2690 ;; | |
2691 [ab].out ) | |
2692 # We found the default executable, but exeext='' is most | |
2693 # certainly right. | |
2694 break;; | |
2695 *.* ) | |
2696 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2697 then :; else | |
2698 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2699 fi | |
2700 # We set ac_cv_exeext here because the later test for it is not | |
2701 # safe: cross compilers may not add the suffix if given an `-o' | |
2702 # argument, so we may need to know it at that point already. | |
2703 # Even if this section looks crufty: it has the advantage of | |
2704 # actually working. | |
2705 break;; | |
2706 * ) | |
2707 break;; | |
2708 esac | |
2709 done | |
2710 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2711 | |
2712 else | |
2713 ac_file='' | |
2714 fi | |
2715 if test -z "$ac_file"; then : | |
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2717 $as_echo "no" >&6; } | |
2718 $as_echo "$as_me: failed program was:" >&5 | |
2719 sed 's/^/| /' conftest.$ac_ext >&5 | |
2720 | |
2721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2723 as_fn_error 77 "C compiler cannot create executables | |
2724 See \`config.log' for more details" "$LINENO" 5 ; } | |
2725 else | |
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2727 $as_echo "yes" >&6; } | |
2728 fi | |
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2730 $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2732 $as_echo "$ac_file" >&6; } | |
2733 ac_exeext=$ac_cv_exeext | |
2734 | |
2735 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
2736 ac_clean_files=$ac_clean_files_save | |
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2738 $as_echo_n "checking for suffix of executables... " >&6; } | |
2739 if { { ac_try="$ac_link" | |
2740 case "(($ac_try" in | |
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2742 *) ac_try_echo=$ac_try;; | |
2743 esac | |
2744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2745 $as_echo "$ac_try_echo"; } >&5 | |
2746 (eval "$ac_link") 2>&5 | |
2747 ac_status=$? | |
2748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2749 test $ac_status = 0; }; then : | |
2750 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2751 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2752 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2753 # `rm'. | |
2754 for ac_file in conftest.exe conftest conftest.*; do | |
2755 test -f "$ac_file" || continue | |
2756 case $ac_file in | |
2757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2758 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2759 break;; | |
2760 * ) break;; | |
2761 esac | |
2762 done | |
2763 else | |
2764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2766 as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
2767 See \`config.log' for more details" "$LINENO" 5 ; } | |
2768 fi | |
2769 rm -f conftest conftest$ac_cv_exeext | |
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
2771 $as_echo "$ac_cv_exeext" >&6; } | |
2772 | |
2773 rm -f conftest.$ac_ext | |
2774 EXEEXT=$ac_cv_exeext | |
2775 ac_exeext=$EXEEXT | |
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2777 /* end confdefs.h. */ | |
2778 #include <stdio.h> | |
2779 int | |
2780 main () | |
2781 { | |
2782 FILE *f = fopen ("conftest.out", "w"); | |
2783 return ferror (f) || fclose (f) != 0; | |
2784 | |
2785 ; | |
2786 return 0; | |
2787 } | |
2788 _ACEOF | |
2789 ac_clean_files="$ac_clean_files conftest.out" | |
2790 # Check that the compiler produces executables we can run. If not, either | |
2791 # the compiler is broken, or we cross compile. | |
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2793 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2794 if test "$cross_compiling" != yes; then | |
2795 { { ac_try="$ac_link" | |
2796 case "(($ac_try" in | |
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2798 *) ac_try_echo=$ac_try;; | |
2799 esac | |
2800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2801 $as_echo "$ac_try_echo"; } >&5 | |
2802 (eval "$ac_link") 2>&5 | |
2803 ac_status=$? | |
2804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2805 test $ac_status = 0; } | |
2806 if { ac_try='./conftest$ac_cv_exeext' | |
2807 { { case "(($ac_try" in | |
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2809 *) ac_try_echo=$ac_try;; | |
2810 esac | |
2811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2812 $as_echo "$ac_try_echo"; } >&5 | |
2813 (eval "$ac_try") 2>&5 | |
2814 ac_status=$? | |
2815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2816 test $ac_status = 0; }; }; then | |
2817 cross_compiling=no | |
2818 else | |
2819 if test "$cross_compiling" = maybe; then | |
2820 cross_compiling=yes | |
2821 else | |
2822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2824 as_fn_error $? "cannot run C compiled programs. | |
2825 If you meant to cross compile, use \`--host'. | |
2826 See \`config.log' for more details" "$LINENO" 5 ; } | |
2827 fi | |
2828 fi | |
2829 fi | |
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2831 $as_echo "$cross_compiling" >&6; } | |
2832 | |
2833 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2834 ac_clean_files=$ac_clean_files_save | |
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
2836 $as_echo_n "checking for suffix of object files... " >&6; } | |
2837 if test "${ac_cv_objext+set}" = set; then : | |
2838 $as_echo_n "(cached) " >&6 | |
2839 else | |
2840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2841 /* end confdefs.h. */ | |
2842 | |
2843 int | |
2844 main () | |
2845 { | |
2846 | |
2847 ; | |
2848 return 0; | |
2849 } | |
2850 _ACEOF | |
2851 rm -f conftest.o conftest.obj | |
2852 if { { ac_try="$ac_compile" | |
2853 case "(($ac_try" in | |
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2855 *) ac_try_echo=$ac_try;; | |
2856 esac | |
2857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2858 $as_echo "$ac_try_echo"; } >&5 | |
2859 (eval "$ac_compile") 2>&5 | |
2860 ac_status=$? | |
2861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2862 test $ac_status = 0; }; then : | |
2863 for ac_file in conftest.o conftest.obj conftest.*; do | |
2864 test -f "$ac_file" || continue; | |
2865 case $ac_file in | |
2866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2867 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2868 break;; | |
2869 esac | |
2870 done | |
2871 else | |
2872 $as_echo "$as_me: failed program was:" >&5 | |
2873 sed 's/^/| /' conftest.$ac_ext >&5 | |
2874 | |
2875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2877 as_fn_error $? "cannot compute suffix of object files: cannot compile | |
2878 See \`config.log' for more details" "$LINENO" 5 ; } | |
2879 fi | |
2880 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2881 fi | |
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
2883 $as_echo "$ac_cv_objext" >&6; } | |
2884 OBJEXT=$ac_cv_objext | |
2885 ac_objext=$OBJEXT | |
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2887 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2888 if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
2889 $as_echo_n "(cached) " >&6 | |
2890 else | |
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2892 /* end confdefs.h. */ | |
2893 | |
2894 int | |
2895 main () | |
2896 { | |
2897 #ifndef __GNUC__ | |
2898 choke me | |
2899 #endif | |
2900 | |
2901 ; | |
2902 return 0; | |
2903 } | |
2904 _ACEOF | |
2905 if ac_fn_c_try_compile "$LINENO"; then : | |
2906 ac_compiler_gnu=yes | |
2907 else | |
2908 ac_compiler_gnu=no | |
2909 fi | |
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2911 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2912 | |
2913 fi | |
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
2915 $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2916 if test $ac_compiler_gnu = yes; then | |
2917 GCC=yes | |
2918 else | |
2919 GCC= | |
2920 fi | |
2921 ac_test_CFLAGS=${CFLAGS+set} | |
2922 ac_save_CFLAGS=$CFLAGS | |
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
2924 $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2925 if test "${ac_cv_prog_cc_g+set}" = set; then : | |
2926 $as_echo_n "(cached) " >&6 | |
2927 else | |
2928 ac_save_c_werror_flag=$ac_c_werror_flag | |
2929 ac_c_werror_flag=yes | |
2930 ac_cv_prog_cc_g=no | |
2931 CFLAGS="-g" | |
2932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2933 /* end confdefs.h. */ | |
2934 | |
2935 int | |
2936 main () | |
2937 { | |
2938 | |
2939 ; | |
2940 return 0; | |
2941 } | |
2942 _ACEOF | |
2943 if ac_fn_c_try_compile "$LINENO"; then : | |
2944 ac_cv_prog_cc_g=yes | |
2945 else | |
2946 CFLAGS="" | |
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2948 /* end confdefs.h. */ | |
2949 | |
2950 int | |
2951 main () | |
2952 { | |
2953 | |
2954 ; | |
2955 return 0; | |
2956 } | |
2957 _ACEOF | |
2958 if ac_fn_c_try_compile "$LINENO"; then : | |
2959 | |
2960 else | |
2961 ac_c_werror_flag=$ac_save_c_werror_flag | |
2962 CFLAGS="-g" | |
2963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2964 /* end confdefs.h. */ | |
2965 | |
2966 int | |
2967 main () | |
2968 { | |
2969 | |
2970 ; | |
2971 return 0; | |
2972 } | |
2973 _ACEOF | |
2974 if ac_fn_c_try_compile "$LINENO"; then : | |
2975 ac_cv_prog_cc_g=yes | |
2976 fi | |
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2978 fi | |
2979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2980 fi | |
2981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2982 ac_c_werror_flag=$ac_save_c_werror_flag | |
2983 fi | |
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
2985 $as_echo "$ac_cv_prog_cc_g" >&6; } | |
2986 if test "$ac_test_CFLAGS" = set; then | |
2987 CFLAGS=$ac_save_CFLAGS | |
2988 elif test $ac_cv_prog_cc_g = yes; then | |
2989 if test "$GCC" = yes; then | |
2990 CFLAGS="-g -O2" | |
2991 else | |
2992 CFLAGS="-g" | |
2993 fi | |
2994 else | |
2995 if test "$GCC" = yes; then | |
2996 CFLAGS="-O2" | |
2997 else | |
2998 CFLAGS= | |
2999 fi | |
3000 fi | |
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3002 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3003 if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3004 $as_echo_n "(cached) " >&6 | |
3005 else | |
3006 ac_cv_prog_cc_c89=no | |
3007 ac_save_CC=$CC | |
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3009 /* end confdefs.h. */ | |
3010 #include <stdarg.h> | |
3011 #include <stdio.h> | |
3012 #include <sys/types.h> | |
3013 #include <sys/stat.h> | |
3014 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3015 struct buf { int x; }; | |
3016 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3017 static char *e (p, i) | |
3018 char **p; | |
3019 int i; | |
3020 { | |
3021 return p[i]; | |
3022 } | |
3023 static char *f (char * (*g) (char **, int), char **p, ...) | |
3024 { | |
3025 char *s; | |
3026 va_list v; | |
3027 va_start (v,p); | |
3028 s = g (p, va_arg (v,int)); | |
3029 va_end (v); | |
3030 return s; | |
3031 } | |
3032 | |
3033 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3034 function prototypes and stuff, but not '\xHH' hex character constants. | |
3035 These don't provoke an error unfortunately, instead are silently treated | |
3036 as 'x'. The following induces an error, until -std is added to get | |
3037 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3038 array size at least. It's necessary to write '\x00'==0 to get something | |
3039 that's true only with -std. */ | |
3040 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3041 | |
3042 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3043 inside strings and character constants. */ | |
3044 #define FOO(x) 'x' | |
3045 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3046 | |
3047 int test (int i, double x); | |
3048 struct s1 {int (*f) (int a);}; | |
3049 struct s2 {int (*f) (double a);}; | |
3050 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3051 int argc; | |
3052 char **argv; | |
3053 int | |
3054 main () | |
3055 { | |
3056 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3057 ; | |
3058 return 0; | |
3059 } | |
3060 _ACEOF | |
3061 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3062 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3063 do | |
3064 CC="$ac_save_CC $ac_arg" | |
3065 if ac_fn_c_try_compile "$LINENO"; then : | |
3066 ac_cv_prog_cc_c89=$ac_arg | |
3067 fi | |
3068 rm -f core conftest.err conftest.$ac_objext | |
3069 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3070 done | |
3071 rm -f conftest.$ac_ext | |
3072 CC=$ac_save_CC | |
3073 | |
3074 fi | |
3075 # AC_CACHE_VAL | |
3076 case "x$ac_cv_prog_cc_c89" in | |
3077 x) | |
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3079 $as_echo "none needed" >&6; } ;; | |
3080 xno) | |
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3082 $as_echo "unsupported" >&6; } ;; | |
3083 *) | |
3084 CC="$CC $ac_cv_prog_cc_c89" | |
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3086 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3087 esac | |
3088 if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3089 | |
3090 fi | |
3091 | |
3092 ac_ext=c | |
3093 ac_cpp='$CPP $CPPFLAGS' | |
3094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3096 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3097 | |
3098 | |
3099 ac_ext=c | |
3100 ac_cpp='$CPP $CPPFLAGS' | |
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3105 $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3106 # On Suns, sometimes $CPP names a directory. | |
3107 if test -n "$CPP" && test -d "$CPP"; then | |
3108 CPP= | |
3109 fi | |
3110 if test -z "$CPP"; then | |
3111 if test "${ac_cv_prog_CPP+set}" = set; then : | |
3112 $as_echo_n "(cached) " >&6 | |
3113 else | |
3114 # Double quotes because CPP needs to be expanded | |
3115 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3116 do | |
3117 ac_preproc_ok=false | |
3118 for ac_c_preproc_warn_flag in '' yes | |
3119 do | |
3120 # Use a header file that comes with gcc, so configuring glibc | |
3121 # with a fresh cross-compiler works. | |
3122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3123 # <limits.h> exists even on freestanding compilers. | |
3124 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3125 # not just through cpp. "Syntax error" is here to catch this case. | |
3126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3127 /* end confdefs.h. */ | |
3128 #ifdef __STDC__ | |
3129 # include <limits.h> | |
3130 #else | |
3131 # include <assert.h> | |
3132 #endif | |
3133 Syntax error | |
3134 _ACEOF | |
3135 if ac_fn_c_try_cpp "$LINENO"; then : | |
3136 | |
3137 else | |
3138 # Broken: fails on valid input. | |
3139 continue | |
3140 fi | |
3141 rm -f conftest.err conftest.i conftest.$ac_ext | |
3142 | |
3143 # OK, works on sane cases. Now check whether nonexistent headers | |
3144 # can be detected and how. | |
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3146 /* end confdefs.h. */ | |
3147 #include <ac_nonexistent.h> | |
3148 _ACEOF | |
3149 if ac_fn_c_try_cpp "$LINENO"; then : | |
3150 # Broken: success on invalid input. | |
3151 continue | |
3152 else | |
3153 # Passes both tests. | |
3154 ac_preproc_ok=: | |
3155 break | |
3156 fi | |
3157 rm -f conftest.err conftest.i conftest.$ac_ext | |
3158 | |
3159 done | |
3160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3161 rm -f conftest.i conftest.err conftest.$ac_ext | |
3162 if $ac_preproc_ok; then : | |
3163 break | |
3164 fi | |
3165 | |
3166 done | |
3167 ac_cv_prog_CPP=$CPP | |
3168 | |
3169 fi | |
3170 CPP=$ac_cv_prog_CPP | |
3171 else | |
3172 ac_cv_prog_CPP=$CPP | |
3173 fi | |
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3175 $as_echo "$CPP" >&6; } | |
3176 ac_preproc_ok=false | |
3177 for ac_c_preproc_warn_flag in '' yes | |
3178 do | |
3179 # Use a header file that comes with gcc, so configuring glibc | |
3180 # with a fresh cross-compiler works. | |
3181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3182 # <limits.h> exists even on freestanding compilers. | |
3183 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3184 # not just through cpp. "Syntax error" is here to catch this case. | |
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3186 /* end confdefs.h. */ | |
3187 #ifdef __STDC__ | |
3188 # include <limits.h> | |
3189 #else | |
3190 # include <assert.h> | |
3191 #endif | |
3192 Syntax error | |
3193 _ACEOF | |
3194 if ac_fn_c_try_cpp "$LINENO"; then : | |
3195 | |
3196 else | |
3197 # Broken: fails on valid input. | |
3198 continue | |
3199 fi | |
3200 rm -f conftest.err conftest.i conftest.$ac_ext | |
3201 | |
3202 # OK, works on sane cases. Now check whether nonexistent headers | |
3203 # can be detected and how. | |
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3205 /* end confdefs.h. */ | |
3206 #include <ac_nonexistent.h> | |
3207 _ACEOF | |
3208 if ac_fn_c_try_cpp "$LINENO"; then : | |
3209 # Broken: success on invalid input. | |
3210 continue | |
3211 else | |
3212 # Passes both tests. | |
3213 ac_preproc_ok=: | |
3214 break | |
3215 fi | |
3216 rm -f conftest.err conftest.i conftest.$ac_ext | |
3217 | |
3218 done | |
3219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3220 rm -f conftest.i conftest.err conftest.$ac_ext | |
3221 if $ac_preproc_ok; then : | |
3222 | |
3223 else | |
3224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3226 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3227 See \`config.log' for more details" "$LINENO" 5 ; } | |
3228 fi | |
3229 | |
3230 ac_ext=c | |
3231 ac_cpp='$CPP $CPPFLAGS' | |
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3235 | |
3236 | |
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3238 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3239 if test "${ac_cv_path_GREP+set}" = set; then : | |
3240 $as_echo_n "(cached) " >&6 | |
3241 else | |
3242 if test -z "$GREP"; then | |
3243 ac_path_GREP_found=false | |
3244 # Loop through the user's path and test for each of PROGNAME-LIST | |
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3246 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3247 do | |
3248 IFS=$as_save_IFS | |
3249 test -z "$as_dir" && as_dir=. | |
3250 for ac_prog in grep ggrep; do | |
3251 for ac_exec_ext in '' $ac_executable_extensions; do | |
3252 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3253 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3254 # Check for GNU ac_path_GREP and select it if it is found. | |
3255 # Check for GNU $ac_path_GREP | |
3256 case `"$ac_path_GREP" --version 2>&1` in | |
3257 *GNU*) | |
3258 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3259 *) | |
3260 ac_count=0 | |
3261 $as_echo_n 0123456789 >"conftest.in" | |
3262 while : | |
3263 do | |
3264 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3265 mv "conftest.tmp" "conftest.in" | |
3266 cp "conftest.in" "conftest.nl" | |
3267 $as_echo 'GREP' >> "conftest.nl" | |
3268 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3270 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3271 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3272 # Best one so far, save it but keep looking for a better one | |
3273 ac_cv_path_GREP="$ac_path_GREP" | |
3274 ac_path_GREP_max=$ac_count | |
3275 fi | |
3276 # 10*(2^10) chars as input seems more than enough | |
3277 test $ac_count -gt 10 && break | |
3278 done | |
3279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3280 esac | |
3281 | |
3282 $ac_path_GREP_found && break 3 | |
3283 done | |
3284 done | |
3285 done | |
3286 IFS=$as_save_IFS | |
3287 if test -z "$ac_cv_path_GREP"; then | |
3288 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3289 fi | |
3290 else | |
3291 ac_cv_path_GREP=$GREP | |
3292 fi | |
3293 | |
3294 fi | |
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3296 $as_echo "$ac_cv_path_GREP" >&6; } | |
3297 GREP="$ac_cv_path_GREP" | |
3298 | |
3299 | |
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3301 $as_echo_n "checking for egrep... " >&6; } | |
3302 if test "${ac_cv_path_EGREP+set}" = set; then : | |
3303 $as_echo_n "(cached) " >&6 | |
3304 else | |
3305 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3306 then ac_cv_path_EGREP="$GREP -E" | |
3307 else | |
3308 if test -z "$EGREP"; then | |
3309 ac_path_EGREP_found=false | |
3310 # Loop through the user's path and test for each of PROGNAME-LIST | |
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3313 do | |
3314 IFS=$as_save_IFS | |
3315 test -z "$as_dir" && as_dir=. | |
3316 for ac_prog in egrep; do | |
3317 for ac_exec_ext in '' $ac_executable_extensions; do | |
3318 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3319 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3320 # Check for GNU ac_path_EGREP and select it if it is found. | |
3321 # Check for GNU $ac_path_EGREP | |
3322 case `"$ac_path_EGREP" --version 2>&1` in | |
3323 *GNU*) | |
3324 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3325 *) | |
3326 ac_count=0 | |
3327 $as_echo_n 0123456789 >"conftest.in" | |
3328 while : | |
3329 do | |
3330 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3331 mv "conftest.tmp" "conftest.in" | |
3332 cp "conftest.in" "conftest.nl" | |
3333 $as_echo 'EGREP' >> "conftest.nl" | |
3334 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3336 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3337 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3338 # Best one so far, save it but keep looking for a better one | |
3339 ac_cv_path_EGREP="$ac_path_EGREP" | |
3340 ac_path_EGREP_max=$ac_count | |
3341 fi | |
3342 # 10*(2^10) chars as input seems more than enough | |
3343 test $ac_count -gt 10 && break | |
3344 done | |
3345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3346 esac | |
3347 | |
3348 $ac_path_EGREP_found && break 3 | |
3349 done | |
3350 done | |
3351 done | |
3352 IFS=$as_save_IFS | |
3353 if test -z "$ac_cv_path_EGREP"; then | |
3354 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3355 fi | |
3356 else | |
3357 ac_cv_path_EGREP=$EGREP | |
3358 fi | |
3359 | |
3360 fi | |
3361 fi | |
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3363 $as_echo "$ac_cv_path_EGREP" >&6; } | |
3364 EGREP="$ac_cv_path_EGREP" | |
3365 | |
3366 | |
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3368 $as_echo_n "checking for ANSI C header files... " >&6; } | |
3369 if test "${ac_cv_header_stdc+set}" = set; then : | |
3370 $as_echo_n "(cached) " >&6 | |
3371 else | |
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3373 /* end confdefs.h. */ | |
3374 #include <stdlib.h> | |
3375 #include <stdarg.h> | |
3376 #include <string.h> | |
3377 #include <float.h> | |
3378 | |
3379 int | |
3380 main () | |
3381 { | |
3382 | |
3383 ; | |
3384 return 0; | |
3385 } | |
3386 _ACEOF | |
3387 if ac_fn_c_try_compile "$LINENO"; then : | |
3388 ac_cv_header_stdc=yes | |
3389 else | |
3390 ac_cv_header_stdc=no | |
3391 fi | |
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3393 | |
3394 if test $ac_cv_header_stdc = yes; then | |
3395 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3397 /* end confdefs.h. */ | |
3398 #include <string.h> | |
3399 | |
3400 _ACEOF | |
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3402 $EGREP "memchr" >/dev/null 2>&1; then : | |
3403 | |
3404 else | |
3405 ac_cv_header_stdc=no | |
3406 fi | |
3407 rm -f conftest* | |
3408 | |
3409 fi | |
3410 | |
3411 if test $ac_cv_header_stdc = yes; then | |
3412 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3414 /* end confdefs.h. */ | |
3415 #include <stdlib.h> | |
3416 | |
3417 _ACEOF | |
3418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3419 $EGREP "free" >/dev/null 2>&1; then : | |
3420 | |
3421 else | |
3422 ac_cv_header_stdc=no | |
3423 fi | |
3424 rm -f conftest* | |
3425 | |
3426 fi | |
3427 | |
3428 if test $ac_cv_header_stdc = yes; then | |
3429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3430 if test "$cross_compiling" = yes; then : | |
3431 : | |
3432 else | |
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3434 /* end confdefs.h. */ | |
3435 #include <ctype.h> | |
3436 #include <stdlib.h> | |
3437 #if ((' ' & 0x0FF) == 0x020) | |
3438 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3439 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3440 #else | |
3441 # define ISLOWER(c) \ | |
3442 (('a' <= (c) && (c) <= 'i') \ | |
3443 || ('j' <= (c) && (c) <= 'r') \ | |
3444 || ('s' <= (c) && (c) <= 'z')) | |
3445 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3446 #endif | |
3447 | |
3448 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3449 int | |
3450 main () | |
3451 { | |
3452 int i; | |
3453 for (i = 0; i < 256; i++) | |
3454 if (XOR (islower (i), ISLOWER (i)) | |
3455 || toupper (i) != TOUPPER (i)) | |
3456 return 2; | |
3457 return 0; | |
3458 } | |
3459 _ACEOF | |
3460 if ac_fn_c_try_run "$LINENO"; then : | |
3461 | |
3462 else | |
3463 ac_cv_header_stdc=no | |
3464 fi | |
3465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3466 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3467 fi | |
3468 | |
3469 fi | |
3470 fi | |
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3472 $as_echo "$ac_cv_header_stdc" >&6; } | |
3473 if test $ac_cv_header_stdc = yes; then | |
3474 | |
3475 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3476 | |
3477 fi | |
3478 | |
3479 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3480 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3481 inttypes.h stdint.h unistd.h | |
3482 do : | |
3483 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3484 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3485 " | |
3486 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
3487 cat >>confdefs.h <<_ACEOF | |
3488 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3489 _ACEOF | |
3490 | |
3491 fi | |
3492 | |
3493 done | |
3494 | |
3495 | |
3496 | |
3497 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
3498 if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
3499 MINIX=yes | |
3500 else | |
3501 MINIX= | |
3502 fi | |
3503 | |
3504 | |
3505 if test "$MINIX" = yes; then | |
3506 | |
3507 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3508 | |
3509 | |
3510 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3511 | |
3512 | |
3513 $as_echo "#define _MINIX 1" >>confdefs.h | |
3514 | |
3515 fi | |
3516 | |
3517 | |
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3519 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
3520 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
3521 $as_echo_n "(cached) " >&6 | |
3522 else | |
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3524 /* end confdefs.h. */ | |
3525 | |
3526 # define __EXTENSIONS__ 1 | |
3527 $ac_includes_default | |
3528 int | |
3529 main () | |
3530 { | |
3531 | |
3532 ; | |
3533 return 0; | |
3534 } | |
3535 _ACEOF | |
3536 if ac_fn_c_try_compile "$LINENO"; then : | |
3537 ac_cv_safe_to_define___extensions__=yes | |
3538 else | |
3539 ac_cv_safe_to_define___extensions__=no | |
3540 fi | |
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3542 fi | |
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
3544 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3545 test $ac_cv_safe_to_define___extensions__ = yes && | |
3546 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
3547 | |
3548 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
3549 | |
3550 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
3551 | |
3552 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
3553 | |
3554 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
3555 | |
3556 | |
3557 am__api_version='1.11' | |
3558 | |
3559 ac_aux_dir= | |
3560 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
3561 if test -f "$ac_dir/install-sh"; then | |
3562 ac_aux_dir=$ac_dir | |
3563 ac_install_sh="$ac_aux_dir/install-sh -c" | |
3564 break | |
3565 elif test -f "$ac_dir/install.sh"; then | |
3566 ac_aux_dir=$ac_dir | |
3567 ac_install_sh="$ac_aux_dir/install.sh -c" | |
3568 break | |
3569 elif test -f "$ac_dir/shtool"; then | |
3570 ac_aux_dir=$ac_dir | |
3571 ac_install_sh="$ac_aux_dir/shtool install -c" | |
3572 break | |
3573 fi | |
3574 done | |
3575 if test -z "$ac_aux_dir"; then | |
3576 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
3577 fi | |
3578 | |
3579 # These three variables are undocumented and unsupported, | |
3580 # and are intended to be withdrawn in a future Autoconf release. | |
3581 # They can cause serious problems if a builder's source tree is in a directory | |
3582 # whose full name contains unusual characters. | |
3583 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3584 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3585 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3586 | |
3587 | |
3588 # Find a good install program. We prefer a C program (faster), | |
3589 # so one script is as good as another. But avoid the broken or | |
3590 # incompatible versions: | |
3591 # SysV /etc/install, /usr/sbin/install | |
3592 # SunOS /usr/etc/install | |
3593 # IRIX /sbin/install | |
3594 # AIX /bin/install | |
3595 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3599 # OS/2's system install, which has a completely different semantic | |
3600 # ./install, which can be erroneously created by make from ./install.sh. | |
3601 # Reject install programs that cannot install multiple files. | |
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3603 $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3604 if test -z "$INSTALL"; then | |
3605 if test "${ac_cv_path_install+set}" = set; then : | |
3606 $as_echo_n "(cached) " >&6 | |
3607 else | |
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3609 for as_dir in $PATH | |
3610 do | |
3611 IFS=$as_save_IFS | |
3612 test -z "$as_dir" && as_dir=. | |
3613 # Account for people who put trailing slashes in PATH elements. | |
3614 case $as_dir/ in #(( | |
3615 ./ | .// | /[cC]/* | \ | |
3616 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3617 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3618 /usr/ucb/* ) ;; | |
3619 *) | |
3620 # OSF1 and SCO ODT 3.0 have their own names for install. | |
3621 # Don't use installbsd from OSF since it installs stuff as root | |
3622 # by default. | |
3623 for ac_prog in ginstall scoinst install; do | |
3624 for ac_exec_ext in '' $ac_executable_extensions; do | |
3625 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3626 if test $ac_prog = install && | |
3627 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3628 # AIX install. It has an incompatible calling convention. | |
3629 : | |
3630 elif test $ac_prog = install && | |
3631 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3632 # program-specific install script used by HP pwplus--don't use. | |
3633 : | |
3634 else | |
3635 rm -rf conftest.one conftest.two conftest.dir | |
3636 echo one > conftest.one | |
3637 echo two > conftest.two | |
3638 mkdir conftest.dir | |
3639 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3640 test -s conftest.one && test -s conftest.two && | |
3641 test -s conftest.dir/conftest.one && | |
3642 test -s conftest.dir/conftest.two | |
3643 then | |
3644 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3645 break 3 | |
3646 fi | |
3647 fi | |
3648 fi | |
3649 done | |
3650 done | |
3651 ;; | |
3652 esac | |
3653 | |
3654 done | |
3655 IFS=$as_save_IFS | |
3656 | |
3657 rm -rf conftest.one conftest.two conftest.dir | |
3658 | |
3659 fi | |
3660 if test "${ac_cv_path_install+set}" = set; then | |
3661 INSTALL=$ac_cv_path_install | |
3662 else | |
3663 # As a last resort, use the slow shell script. Don't cache a | |
3664 # value for INSTALL within a source directory, because that will | |
3665 # break other packages using the cache if that directory is | |
3666 # removed, or if the value is a relative name. | |
3667 INSTALL=$ac_install_sh | |
3668 fi | |
3669 fi | |
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
3671 $as_echo "$INSTALL" >&6; } | |
3672 | |
3673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3674 # It thinks the first close brace ends the variable substitution. | |
3675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3676 | |
3677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3678 | |
3679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3680 | |
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
3682 $as_echo_n "checking whether build environment is sane... " >&6; } | |
3683 # Just in case | |
3684 sleep 1 | |
3685 echo timestamp > conftest.file | |
3686 # Reject unsafe characters in $srcdir or the absolute working directory | |
3687 # name. Accept space and tab only in the latter. | |
3688 am_lf=' | |
3689 ' | |
3690 case `pwd` in | |
3691 *[\\\"\#\$\&\'\`$am_lf]*) | |
3692 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; | |
3693 esac | |
3694 case $srcdir in | |
3695 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3696 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; | |
3697 esac | |
3698 | |
3699 # Do `set' in a subshell so we don't clobber the current shell's | |
3700 # arguments. Must try -L first in case configure is actually a | |
3701 # symlink; some systems play weird games with the mod time of symlinks | |
3702 # (eg FreeBSD returns the mod time of the symlink's containing | |
3703 # directory). | |
3704 if ( | |
3705 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3706 if test "$*" = "X"; then | |
3707 # -L didn't work. | |
3708 set X `ls -t "$srcdir/configure" conftest.file` | |
3709 fi | |
3710 rm -f conftest.file | |
3711 if test "$*" != "X $srcdir/configure conftest.file" \ | |
3712 && test "$*" != "X conftest.file $srcdir/configure"; then | |
3713 | |
3714 # If neither matched, then we have a broken ls. This can happen | |
3715 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3716 # broken ls alias from the environment. This has actually | |
3717 # happened. Such a system could not be considered "sane". | |
3718 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3719 alias in your environment" "$LINENO" 5 | |
3720 fi | |
3721 | |
3722 test "$2" = conftest.file | |
3723 ) | |
3724 then | |
3725 # Ok. | |
3726 : | |
3727 else | |
3728 as_fn_error $? "newly created file is older than distributed files! | |
3729 Check your system clock" "$LINENO" 5 | |
3730 fi | |
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3732 $as_echo "yes" >&6; } | |
3733 test "$program_prefix" != NONE && | |
3734 program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
3735 # Use a double $ so make ignores it. | |
3736 test "$program_suffix" != NONE && | |
3737 program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
3738 # Double any \ or $. | |
3739 # By default was `s,x,x', remove it if useless. | |
3740 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
3741 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
3742 | |
3743 # expand $ac_aux_dir to an absolute path | |
3744 am_aux_dir=`cd $ac_aux_dir && pwd` | |
3745 | |
3746 if test x"${MISSING+set}" != xset; then | |
3747 case $am_aux_dir in | |
3748 *\ * | *\ *) | |
3749 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3750 *) | |
3751 MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3752 esac | |
3753 fi | |
3754 # Use eval to expand $SHELL | |
3755 if eval "$MISSING --run true"; then | |
3756 am_missing_run="$MISSING --run " | |
3757 else | |
3758 am_missing_run= | |
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
3760 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
3761 fi | |
3762 | |
3763 if test x"${install_sh}" != xset; then | |
3764 case $am_aux_dir in | |
3765 *\ * | *\ *) | |
3766 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3767 *) | |
3768 install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3769 esac | |
3770 fi | |
3771 | |
3772 # Installed binaries are usually stripped using `strip' when the user | |
3773 # run `make install-strip'. However `strip' might not be the right | |
3774 # tool to use in cross-compilation environments, therefore Automake | |
3775 # will honor the `STRIP' environment variable to overrule this program. | |
3776 if test "$cross_compiling" != no; then | |
3777 if test -n "$ac_tool_prefix"; then | |
3778 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3779 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3781 $as_echo_n "checking for $ac_word... " >&6; } | |
3782 if test "${ac_cv_prog_STRIP+set}" = set; then : | |
3783 $as_echo_n "(cached) " >&6 | |
3784 else | |
3785 if test -n "$STRIP"; then | |
3786 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3787 else | |
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3789 for as_dir in $PATH | |
3790 do | |
3791 IFS=$as_save_IFS | |
3792 test -z "$as_dir" && as_dir=. | |
3793 for ac_exec_ext in '' $ac_executable_extensions; do | |
3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3795 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3797 break 2 | |
3798 fi | |
3799 done | |
3800 done | |
3801 IFS=$as_save_IFS | |
3802 | |
3803 fi | |
3804 fi | |
3805 STRIP=$ac_cv_prog_STRIP | |
3806 if test -n "$STRIP"; then | |
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3808 $as_echo "$STRIP" >&6; } | |
3809 else | |
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3811 $as_echo "no" >&6; } | |
3812 fi | |
3813 | |
3814 | |
3815 fi | |
3816 if test -z "$ac_cv_prog_STRIP"; then | |
3817 ac_ct_STRIP=$STRIP | |
3818 # Extract the first word of "strip", so it can be a program name with args. | |
3819 set dummy strip; ac_word=$2 | |
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3821 $as_echo_n "checking for $ac_word... " >&6; } | |
3822 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
3823 $as_echo_n "(cached) " >&6 | |
3824 else | |
3825 if test -n "$ac_ct_STRIP"; then | |
3826 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3827 else | |
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3829 for as_dir in $PATH | |
3830 do | |
3831 IFS=$as_save_IFS | |
3832 test -z "$as_dir" && as_dir=. | |
3833 for ac_exec_ext in '' $ac_executable_extensions; do | |
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3835 ac_cv_prog_ac_ct_STRIP="strip" | |
3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3837 break 2 | |
3838 fi | |
3839 done | |
3840 done | |
3841 IFS=$as_save_IFS | |
3842 | |
3843 fi | |
3844 fi | |
3845 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3846 if test -n "$ac_ct_STRIP"; then | |
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3848 $as_echo "$ac_ct_STRIP" >&6; } | |
3849 else | |
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3851 $as_echo "no" >&6; } | |
3852 fi | |
3853 | |
3854 if test "x$ac_ct_STRIP" = x; then | |
3855 STRIP=":" | |
3856 else | |
3857 case $cross_compiling:$ac_tool_warned in | |
3858 yes:) | |
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3861 ac_tool_warned=yes ;; | |
3862 esac | |
3863 STRIP=$ac_ct_STRIP | |
3864 fi | |
3865 else | |
3866 STRIP="$ac_cv_prog_STRIP" | |
3867 fi | |
3868 | |
3869 fi | |
3870 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3871 | |
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3873 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3874 if test -z "$MKDIR_P"; then | |
3875 if test "${ac_cv_path_mkdir+set}" = set; then : | |
3876 $as_echo_n "(cached) " >&6 | |
3877 else | |
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3879 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3880 do | |
3881 IFS=$as_save_IFS | |
3882 test -z "$as_dir" && as_dir=. | |
3883 for ac_prog in mkdir gmkdir; do | |
3884 for ac_exec_ext in '' $ac_executable_extensions; do | |
3885 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3886 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3887 'mkdir (GNU coreutils) '* | \ | |
3888 'mkdir (coreutils) '* | \ | |
3889 'mkdir (fileutils) '4.1*) | |
3890 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3891 break 3;; | |
3892 esac | |
3893 done | |
3894 done | |
3895 done | |
3896 IFS=$as_save_IFS | |
3897 | |
3898 fi | |
3899 | |
3900 test -d ./--version && rmdir ./--version | |
3901 if test "${ac_cv_path_mkdir+set}" = set; then | |
3902 MKDIR_P="$ac_cv_path_mkdir -p" | |
3903 else | |
3904 # As a last resort, use the slow shell script. Don't cache a | |
3905 # value for MKDIR_P within a source directory, because that will | |
3906 # break other packages using the cache if that directory is | |
3907 # removed, or if the value is a relative name. | |
3908 MKDIR_P="$ac_install_sh -d" | |
3909 fi | |
3910 fi | |
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3912 $as_echo "$MKDIR_P" >&6; } | |
3913 | |
3914 mkdir_p="$MKDIR_P" | |
3915 case $mkdir_p in | |
3916 [\\/$]* | ?:[\\/]*) ;; | |
3917 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3918 esac | |
3919 | |
3920 for ac_prog in gawk mawk nawk awk | |
3921 do | |
3922 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3923 set dummy $ac_prog; ac_word=$2 | |
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3925 $as_echo_n "checking for $ac_word... " >&6; } | |
3926 if test "${ac_cv_prog_AWK+set}" = set; then : | |
3927 $as_echo_n "(cached) " >&6 | |
3928 else | |
3929 if test -n "$AWK"; then | |
3930 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3931 else | |
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3933 for as_dir in $PATH | |
3934 do | |
3935 IFS=$as_save_IFS | |
3936 test -z "$as_dir" && as_dir=. | |
3937 for ac_exec_ext in '' $ac_executable_extensions; do | |
3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3939 ac_cv_prog_AWK="$ac_prog" | |
3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3941 break 2 | |
3942 fi | |
3943 done | |
3944 done | |
3945 IFS=$as_save_IFS | |
3946 | |
3947 fi | |
3948 fi | |
3949 AWK=$ac_cv_prog_AWK | |
3950 if test -n "$AWK"; then | |
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3952 $as_echo "$AWK" >&6; } | |
3953 else | |
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3955 $as_echo "no" >&6; } | |
3956 fi | |
3957 | |
3958 | |
3959 test -n "$AWK" && break | |
3960 done | |
3961 | |
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3963 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3964 set x ${MAKE-make} | |
3965 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3966 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | |
3967 $as_echo_n "(cached) " >&6 | |
3968 else | |
3969 cat >conftest.make <<\_ACEOF | |
3970 SHELL = /bin/sh | |
3971 all: | |
3972 @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3973 _ACEOF | |
3974 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
3975 case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3976 *@@@%%%=?*=@@@%%%*) | |
3977 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3978 *) | |
3979 eval ac_cv_prog_make_${ac_make}_set=no;; | |
3980 esac | |
3981 rm -f conftest.make | |
3982 fi | |
3983 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3985 $as_echo "yes" >&6; } | |
3986 SET_MAKE= | |
3987 else | |
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3989 $as_echo "no" >&6; } | |
3990 SET_MAKE="MAKE=${MAKE-make}" | |
3991 fi | |
3992 | |
3993 rm -rf .tst 2>/dev/null | |
3994 mkdir .tst 2>/dev/null | |
3995 if test -d .tst; then | |
3996 am__leading_dot=. | |
3997 else | |
3998 am__leading_dot=_ | |
3999 fi | |
4000 rmdir .tst 2>/dev/null | |
4001 | |
4002 DEPDIR="${am__leading_dot}deps" | |
4003 | |
4004 ac_config_commands="$ac_config_commands depfiles" | |
4005 | |
4006 | |
4007 am_make=${MAKE-make} | |
4008 cat > confinc << 'END' | |
4009 am__doit: | |
4010 @echo this is the am__doit target | |
4011 .PHONY: am__doit | |
4012 END | |
4013 # If we don't find an include directive, just comment out the code. | |
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4015 $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4016 am__include="#" | |
4017 am__quote= | |
4018 _am_result=none | |
4019 # First try GNU make style include. | |
4020 echo "include confinc" > confmf | |
4021 # Ignore all kinds of additional output from `make'. | |
4022 case `$am_make -s -f confmf 2> /dev/null` in #( | |
4023 *the\ am__doit\ target*) | |
4024 am__include=include | |
4025 am__quote= | |
4026 _am_result=GNU | |
4027 ;; | |
4028 esac | |
4029 # Now try BSD make style include. | |
4030 if test "$am__include" = "#"; then | |
4031 echo '.include "confinc"' > confmf | |
4032 case `$am_make -s -f confmf 2> /dev/null` in #( | |
4033 *the\ am__doit\ target*) | |
4034 am__include=.include | |
4035 am__quote="\"" | |
4036 _am_result=BSD | |
4037 ;; | |
4038 esac | |
4039 fi | |
4040 | |
4041 | |
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4043 $as_echo "$_am_result" >&6; } | |
4044 rm -f confinc confmf | |
4045 | |
4046 # Check whether --enable-dependency-tracking was given. | |
4047 if test "${enable_dependency_tracking+set}" = set; then : | |
4048 enableval=$enable_dependency_tracking; | |
4049 fi | |
4050 | |
4051 if test "x$enable_dependency_tracking" != xno; then | |
4052 am_depcomp="$ac_aux_dir/depcomp" | |
4053 AMDEPBACKSLASH='\' | |
4054 fi | |
4055 if test "x$enable_dependency_tracking" != xno; then | |
4056 AMDEP_TRUE= | |
4057 AMDEP_FALSE='#' | |
4058 else | |
4059 AMDEP_TRUE='#' | |
4060 AMDEP_FALSE= | |
4061 fi | |
4062 | |
4063 | |
4064 if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
4065 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4066 # is not polluted with repeated "-I." | |
4067 am__isrc=' -I$(srcdir)' | |
4068 # test to see if srcdir already configured | |
4069 if test -f $srcdir/config.status; then | |
4070 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4071 fi | |
4072 fi | |
4073 | |
4074 # test whether we have cygpath | |
4075 if test -z "$CYGPATH_W"; then | |
4076 if (cygpath --version) >/dev/null 2>/dev/null; then | |
4077 CYGPATH_W='cygpath -w' | |
4078 else | |
4079 CYGPATH_W=echo | |
4080 fi | |
4081 fi | |
4082 | |
4083 | |
4084 # Define the identity of the package. | |
4085 PACKAGE='urweb_openid' | |
4086 VERSION='1.0' | |
4087 | |
4088 | |
4089 # Some tools Automake needs. | |
4090 | |
4091 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
4092 | |
4093 | |
4094 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
4095 | |
4096 | |
4097 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
4098 | |
4099 | |
4100 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
4101 | |
4102 | |
4103 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
4104 | |
4105 # We need awk for the "check" target. The system "awk" is bad on | |
4106 # some platforms. | |
4107 # Always define AMTAR for backward compatibility. | |
4108 | |
4109 AMTAR=${AMTAR-"${am_missing_run}tar"} | |
4110 | |
4111 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
4112 | |
4113 | |
4114 | |
4115 | |
4116 depcc="$CC" am_compiler_list= | |
4117 | |
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4119 $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4120 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4121 $as_echo_n "(cached) " >&6 | |
4122 else | |
4123 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4124 # We make a subdir and do the tests there. Otherwise we can end up | |
4125 # making bogus files that we don't know about and never remove. For | |
4126 # instance it was reported that on HP-UX the gcc test will end up | |
4127 # making a dummy file named `D' -- because `-MD' means `put the output | |
4128 # in D'. | |
4129 mkdir conftest.dir | |
4130 # Copy depcomp to subdir because otherwise we won't find it if we're | |
4131 # using a relative directory. | |
4132 cp "$am_depcomp" conftest.dir | |
4133 cd conftest.dir | |
4134 # We will build objects and dependencies in a subdirectory because | |
4135 # it helps to detect inapplicable dependency modes. For instance | |
4136 # both Tru64's cc and ICC support -MD to output dependencies as a | |
4137 # side effect of compilation, but ICC will put the dependencies in | |
4138 # the current directory while Tru64 will put them in the object | |
4139 # directory. | |
4140 mkdir sub | |
4141 | |
4142 am_cv_CC_dependencies_compiler_type=none | |
4143 if test "$am_compiler_list" = ""; then | |
4144 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4145 fi | |
4146 am__universal=false | |
4147 case " $depcc " in #( | |
4148 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4149 esac | |
4150 | |
4151 for depmode in $am_compiler_list; do | |
4152 # Setup a source with many dependencies, because some compilers | |
4153 # like to wrap large dependency lists on column 80 (with \), and | |
4154 # we should not choose a depcomp mode which is confused by this. | |
4155 # | |
4156 # We need to recreate these files for each test, as the compiler may | |
4157 # overwrite some of them when testing with obscure command lines. | |
4158 # This happens at least with the AIX C compiler. | |
4159 : > sub/conftest.c | |
4160 for i in 1 2 3 4 5 6; do | |
4161 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4162 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4163 # Solaris 8's {/usr,}/bin/sh. | |
4164 touch sub/conftst$i.h | |
4165 done | |
4166 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4167 | |
4168 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4169 # mode. It turns out that the SunPro C++ compiler does not properly | |
4170 # handle `-M -o', and we need to detect this. Also, some Intel | |
4171 # versions had trouble with output in subdirs | |
4172 am__obj=sub/conftest.${OBJEXT-o} | |
4173 am__minus_obj="-o $am__obj" | |
4174 case $depmode in | |
4175 gcc) | |
4176 # This depmode causes a compiler race in universal mode. | |
4177 test "$am__universal" = false || continue | |
4178 ;; | |
4179 nosideeffect) | |
4180 # after this tag, mechanisms are not by side-effect, so they'll | |
4181 # only be used when explicitly requested | |
4182 if test "x$enable_dependency_tracking" = xyes; then | |
4183 continue | |
4184 else | |
4185 break | |
4186 fi | |
4187 ;; | |
4188 msvisualcpp | msvcmsys) | |
4189 # This compiler won't grok `-c -o', but also, the minuso test has | |
4190 # not run yet. These depmodes are late enough in the game, and | |
4191 # so weak that their functioning should not be impacted. | |
4192 am__obj=conftest.${OBJEXT-o} | |
4193 am__minus_obj= | |
4194 ;; | |
4195 none) break ;; | |
4196 esac | |
4197 if depmode=$depmode \ | |
4198 source=sub/conftest.c object=$am__obj \ | |
4199 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4200 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4201 >/dev/null 2>conftest.err && | |
4202 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4203 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4204 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4205 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4206 # icc doesn't choke on unknown options, it will just issue warnings | |
4207 # or remarks (even with -Werror). So we grep stderr for any message | |
4208 # that says an option was ignored or not supported. | |
4209 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4210 # icc: Command line warning: ignoring option '-M'; no argument required | |
4211 # The diagnosis changed in icc 8.0: | |
4212 # icc: Command line remark: option '-MP' not supported | |
4213 if (grep 'ignoring option' conftest.err || | |
4214 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4215 am_cv_CC_dependencies_compiler_type=$depmode | |
4216 break | |
4217 fi | |
4218 fi | |
4219 done | |
4220 | |
4221 cd .. | |
4222 rm -rf conftest.dir | |
4223 else | |
4224 am_cv_CC_dependencies_compiler_type=none | |
4225 fi | |
4226 | |
4227 fi | |
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4229 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4230 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4231 | |
4232 if | |
4233 test "x$enable_dependency_tracking" != xno \ | |
4234 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4235 am__fastdepCC_TRUE= | |
4236 am__fastdepCC_FALSE='#' | |
4237 else | |
4238 am__fastdepCC_TRUE='#' | |
4239 am__fastdepCC_FALSE= | |
4240 fi | |
4241 | |
4242 | |
4243 | |
4244 ac_ext=c | |
4245 ac_cpp='$CPP $CPPFLAGS' | |
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4249 if test -n "$ac_tool_prefix"; then | |
4250 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4251 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4253 $as_echo_n "checking for $ac_word... " >&6; } | |
4254 if test "${ac_cv_prog_CC+set}" = set; then : | |
4255 $as_echo_n "(cached) " >&6 | |
4256 else | |
4257 if test -n "$CC"; then | |
4258 ac_cv_prog_CC="$CC" # Let the user override the test. | |
4259 else | |
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4261 for as_dir in $PATH | |
4262 do | |
4263 IFS=$as_save_IFS | |
4264 test -z "$as_dir" && as_dir=. | |
4265 for ac_exec_ext in '' $ac_executable_extensions; do | |
4266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4267 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4269 break 2 | |
4270 fi | |
4271 done | |
4272 done | |
4273 IFS=$as_save_IFS | |
4274 | |
4275 fi | |
4276 fi | |
4277 CC=$ac_cv_prog_CC | |
4278 if test -n "$CC"; then | |
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4280 $as_echo "$CC" >&6; } | |
4281 else | |
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4283 $as_echo "no" >&6; } | |
4284 fi | |
4285 | |
4286 | |
4287 fi | |
4288 if test -z "$ac_cv_prog_CC"; then | |
4289 ac_ct_CC=$CC | |
4290 # Extract the first word of "gcc", so it can be a program name with args. | |
4291 set dummy gcc; ac_word=$2 | |
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4293 $as_echo_n "checking for $ac_word... " >&6; } | |
4294 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4295 $as_echo_n "(cached) " >&6 | |
4296 else | |
4297 if test -n "$ac_ct_CC"; then | |
4298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4299 else | |
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4301 for as_dir in $PATH | |
4302 do | |
4303 IFS=$as_save_IFS | |
4304 test -z "$as_dir" && as_dir=. | |
4305 for ac_exec_ext in '' $ac_executable_extensions; do | |
4306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4307 ac_cv_prog_ac_ct_CC="gcc" | |
4308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4309 break 2 | |
4310 fi | |
4311 done | |
4312 done | |
4313 IFS=$as_save_IFS | |
4314 | |
4315 fi | |
4316 fi | |
4317 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4318 if test -n "$ac_ct_CC"; then | |
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4320 $as_echo "$ac_ct_CC" >&6; } | |
4321 else | |
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4323 $as_echo "no" >&6; } | |
4324 fi | |
4325 | |
4326 if test "x$ac_ct_CC" = x; then | |
4327 CC="" | |
4328 else | |
4329 case $cross_compiling:$ac_tool_warned in | |
4330 yes:) | |
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4333 ac_tool_warned=yes ;; | |
4334 esac | |
4335 CC=$ac_ct_CC | |
4336 fi | |
4337 else | |
4338 CC="$ac_cv_prog_CC" | |
4339 fi | |
4340 | |
4341 if test -z "$CC"; then | |
4342 if test -n "$ac_tool_prefix"; then | |
4343 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4344 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4346 $as_echo_n "checking for $ac_word... " >&6; } | |
4347 if test "${ac_cv_prog_CC+set}" = set; then : | |
4348 $as_echo_n "(cached) " >&6 | |
4349 else | |
4350 if test -n "$CC"; then | |
4351 ac_cv_prog_CC="$CC" # Let the user override the test. | |
4352 else | |
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4354 for as_dir in $PATH | |
4355 do | |
4356 IFS=$as_save_IFS | |
4357 test -z "$as_dir" && as_dir=. | |
4358 for ac_exec_ext in '' $ac_executable_extensions; do | |
4359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4360 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4362 break 2 | |
4363 fi | |
4364 done | |
4365 done | |
4366 IFS=$as_save_IFS | |
4367 | |
4368 fi | |
4369 fi | |
4370 CC=$ac_cv_prog_CC | |
4371 if test -n "$CC"; then | |
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4373 $as_echo "$CC" >&6; } | |
4374 else | |
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4376 $as_echo "no" >&6; } | |
4377 fi | |
4378 | |
4379 | |
4380 fi | |
4381 fi | |
4382 if test -z "$CC"; then | |
4383 # Extract the first word of "cc", so it can be a program name with args. | |
4384 set dummy cc; ac_word=$2 | |
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4386 $as_echo_n "checking for $ac_word... " >&6; } | |
4387 if test "${ac_cv_prog_CC+set}" = set; then : | |
4388 $as_echo_n "(cached) " >&6 | |
4389 else | |
4390 if test -n "$CC"; then | |
4391 ac_cv_prog_CC="$CC" # Let the user override the test. | |
4392 else | |
4393 ac_prog_rejected=no | |
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4395 for as_dir in $PATH | |
4396 do | |
4397 IFS=$as_save_IFS | |
4398 test -z "$as_dir" && as_dir=. | |
4399 for ac_exec_ext in '' $ac_executable_extensions; do | |
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4401 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4402 ac_prog_rejected=yes | |
4403 continue | |
4404 fi | |
4405 ac_cv_prog_CC="cc" | |
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4407 break 2 | |
4408 fi | |
4409 done | |
4410 done | |
4411 IFS=$as_save_IFS | |
4412 | |
4413 if test $ac_prog_rejected = yes; then | |
4414 # We found a bogon in the path, so make sure we never use it. | |
4415 set dummy $ac_cv_prog_CC | |
4416 shift | |
4417 if test $# != 0; then | |
4418 # We chose a different compiler from the bogus one. | |
4419 # However, it has the same basename, so the bogon will be chosen | |
4420 # first if we set CC to just the basename; use the full file name. | |
4421 shift | |
4422 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4423 fi | |
4424 fi | |
4425 fi | |
4426 fi | |
4427 CC=$ac_cv_prog_CC | |
4428 if test -n "$CC"; then | |
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4430 $as_echo "$CC" >&6; } | |
4431 else | |
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4433 $as_echo "no" >&6; } | |
4434 fi | |
4435 | |
4436 | |
4437 fi | |
4438 if test -z "$CC"; then | |
4439 if test -n "$ac_tool_prefix"; then | |
4440 for ac_prog in cl.exe | |
4441 do | |
4442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4445 $as_echo_n "checking for $ac_word... " >&6; } | |
4446 if test "${ac_cv_prog_CC+set}" = set; then : | |
4447 $as_echo_n "(cached) " >&6 | |
4448 else | |
4449 if test -n "$CC"; then | |
4450 ac_cv_prog_CC="$CC" # Let the user override the test. | |
4451 else | |
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4453 for as_dir in $PATH | |
4454 do | |
4455 IFS=$as_save_IFS | |
4456 test -z "$as_dir" && as_dir=. | |
4457 for ac_exec_ext in '' $ac_executable_extensions; do | |
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4459 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4461 break 2 | |
4462 fi | |
4463 done | |
4464 done | |
4465 IFS=$as_save_IFS | |
4466 | |
4467 fi | |
4468 fi | |
4469 CC=$ac_cv_prog_CC | |
4470 if test -n "$CC"; then | |
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4472 $as_echo "$CC" >&6; } | |
4473 else | |
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4475 $as_echo "no" >&6; } | |
4476 fi | |
4477 | |
4478 | |
4479 test -n "$CC" && break | |
4480 done | |
4481 fi | |
4482 if test -z "$CC"; then | |
4483 ac_ct_CC=$CC | |
4484 for ac_prog in cl.exe | |
4485 do | |
4486 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4487 set dummy $ac_prog; ac_word=$2 | |
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4489 $as_echo_n "checking for $ac_word... " >&6; } | |
4490 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4491 $as_echo_n "(cached) " >&6 | |
4492 else | |
4493 if test -n "$ac_ct_CC"; then | |
4494 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4495 else | |
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4497 for as_dir in $PATH | |
4498 do | |
4499 IFS=$as_save_IFS | |
4500 test -z "$as_dir" && as_dir=. | |
4501 for ac_exec_ext in '' $ac_executable_extensions; do | |
4502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4503 ac_cv_prog_ac_ct_CC="$ac_prog" | |
4504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4505 break 2 | |
4506 fi | |
4507 done | |
4508 done | |
4509 IFS=$as_save_IFS | |
4510 | |
4511 fi | |
4512 fi | |
4513 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4514 if test -n "$ac_ct_CC"; then | |
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4516 $as_echo "$ac_ct_CC" >&6; } | |
4517 else | |
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4519 $as_echo "no" >&6; } | |
4520 fi | |
4521 | |
4522 | |
4523 test -n "$ac_ct_CC" && break | |
4524 done | |
4525 | |
4526 if test "x$ac_ct_CC" = x; then | |
4527 CC="" | |
4528 else | |
4529 case $cross_compiling:$ac_tool_warned in | |
4530 yes:) | |
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4533 ac_tool_warned=yes ;; | |
4534 esac | |
4535 CC=$ac_ct_CC | |
4536 fi | |
4537 fi | |
4538 | |
4539 fi | |
4540 | |
4541 | |
4542 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4544 as_fn_error $? "no acceptable C compiler found in \$PATH | |
4545 See \`config.log' for more details" "$LINENO" 5 ; } | |
4546 | |
4547 # Provide some information about the compiler. | |
4548 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4549 set X $ac_compile | |
4550 ac_compiler=$2 | |
4551 for ac_option in --version -v -V -qversion; do | |
4552 { { ac_try="$ac_compiler $ac_option >&5" | |
4553 case "(($ac_try" in | |
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4555 *) ac_try_echo=$ac_try;; | |
4556 esac | |
4557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4558 $as_echo "$ac_try_echo"; } >&5 | |
4559 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4560 ac_status=$? | |
4561 if test -s conftest.err; then | |
4562 sed '10a\ | |
4563 ... rest of stderr output deleted ... | |
4564 10q' conftest.err >conftest.er1 | |
4565 cat conftest.er1 >&5 | |
4566 fi | |
4567 rm -f conftest.er1 conftest.err | |
4568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4569 test $ac_status = 0; } | |
4570 done | |
4571 | |
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4573 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4574 if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4575 $as_echo_n "(cached) " >&6 | |
4576 else | |
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4578 /* end confdefs.h. */ | |
4579 | |
4580 int | |
4581 main () | |
4582 { | |
4583 #ifndef __GNUC__ | |
4584 choke me | |
4585 #endif | |
4586 | |
4587 ; | |
4588 return 0; | |
4589 } | |
4590 _ACEOF | |
4591 if ac_fn_c_try_compile "$LINENO"; then : | |
4592 ac_compiler_gnu=yes | |
4593 else | |
4594 ac_compiler_gnu=no | |
4595 fi | |
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4597 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4598 | |
4599 fi | |
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4601 $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4602 if test $ac_compiler_gnu = yes; then | |
4603 GCC=yes | |
4604 else | |
4605 GCC= | |
4606 fi | |
4607 ac_test_CFLAGS=${CFLAGS+set} | |
4608 ac_save_CFLAGS=$CFLAGS | |
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4610 $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4611 if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4612 $as_echo_n "(cached) " >&6 | |
4613 else | |
4614 ac_save_c_werror_flag=$ac_c_werror_flag | |
4615 ac_c_werror_flag=yes | |
4616 ac_cv_prog_cc_g=no | |
4617 CFLAGS="-g" | |
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4619 /* end confdefs.h. */ | |
4620 | |
4621 int | |
4622 main () | |
4623 { | |
4624 | |
4625 ; | |
4626 return 0; | |
4627 } | |
4628 _ACEOF | |
4629 if ac_fn_c_try_compile "$LINENO"; then : | |
4630 ac_cv_prog_cc_g=yes | |
4631 else | |
4632 CFLAGS="" | |
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4634 /* end confdefs.h. */ | |
4635 | |
4636 int | |
4637 main () | |
4638 { | |
4639 | |
4640 ; | |
4641 return 0; | |
4642 } | |
4643 _ACEOF | |
4644 if ac_fn_c_try_compile "$LINENO"; then : | |
4645 | |
4646 else | |
4647 ac_c_werror_flag=$ac_save_c_werror_flag | |
4648 CFLAGS="-g" | |
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4650 /* end confdefs.h. */ | |
4651 | |
4652 int | |
4653 main () | |
4654 { | |
4655 | |
4656 ; | |
4657 return 0; | |
4658 } | |
4659 _ACEOF | |
4660 if ac_fn_c_try_compile "$LINENO"; then : | |
4661 ac_cv_prog_cc_g=yes | |
4662 fi | |
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4664 fi | |
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4666 fi | |
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4668 ac_c_werror_flag=$ac_save_c_werror_flag | |
4669 fi | |
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4671 $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4672 if test "$ac_test_CFLAGS" = set; then | |
4673 CFLAGS=$ac_save_CFLAGS | |
4674 elif test $ac_cv_prog_cc_g = yes; then | |
4675 if test "$GCC" = yes; then | |
4676 CFLAGS="-g -O2" | |
4677 else | |
4678 CFLAGS="-g" | |
4679 fi | |
4680 else | |
4681 if test "$GCC" = yes; then | |
4682 CFLAGS="-O2" | |
4683 else | |
4684 CFLAGS= | |
4685 fi | |
4686 fi | |
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4688 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4689 if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4690 $as_echo_n "(cached) " >&6 | |
4691 else | |
4692 ac_cv_prog_cc_c89=no | |
4693 ac_save_CC=$CC | |
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4695 /* end confdefs.h. */ | |
4696 #include <stdarg.h> | |
4697 #include <stdio.h> | |
4698 #include <sys/types.h> | |
4699 #include <sys/stat.h> | |
4700 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4701 struct buf { int x; }; | |
4702 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4703 static char *e (p, i) | |
4704 char **p; | |
4705 int i; | |
4706 { | |
4707 return p[i]; | |
4708 } | |
4709 static char *f (char * (*g) (char **, int), char **p, ...) | |
4710 { | |
4711 char *s; | |
4712 va_list v; | |
4713 va_start (v,p); | |
4714 s = g (p, va_arg (v,int)); | |
4715 va_end (v); | |
4716 return s; | |
4717 } | |
4718 | |
4719 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4720 function prototypes and stuff, but not '\xHH' hex character constants. | |
4721 These don't provoke an error unfortunately, instead are silently treated | |
4722 as 'x'. The following induces an error, until -std is added to get | |
4723 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4724 array size at least. It's necessary to write '\x00'==0 to get something | |
4725 that's true only with -std. */ | |
4726 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4727 | |
4728 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4729 inside strings and character constants. */ | |
4730 #define FOO(x) 'x' | |
4731 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4732 | |
4733 int test (int i, double x); | |
4734 struct s1 {int (*f) (int a);}; | |
4735 struct s2 {int (*f) (double a);}; | |
4736 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4737 int argc; | |
4738 char **argv; | |
4739 int | |
4740 main () | |
4741 { | |
4742 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4743 ; | |
4744 return 0; | |
4745 } | |
4746 _ACEOF | |
4747 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4748 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4749 do | |
4750 CC="$ac_save_CC $ac_arg" | |
4751 if ac_fn_c_try_compile "$LINENO"; then : | |
4752 ac_cv_prog_cc_c89=$ac_arg | |
4753 fi | |
4754 rm -f core conftest.err conftest.$ac_objext | |
4755 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4756 done | |
4757 rm -f conftest.$ac_ext | |
4758 CC=$ac_save_CC | |
4759 | |
4760 fi | |
4761 # AC_CACHE_VAL | |
4762 case "x$ac_cv_prog_cc_c89" in | |
4763 x) | |
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4765 $as_echo "none needed" >&6; } ;; | |
4766 xno) | |
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4768 $as_echo "unsupported" >&6; } ;; | |
4769 *) | |
4770 CC="$CC $ac_cv_prog_cc_c89" | |
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4772 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4773 esac | |
4774 if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4775 | |
4776 fi | |
4777 | |
4778 ac_ext=c | |
4779 ac_cpp='$CPP $CPPFLAGS' | |
4780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4782 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4783 | |
4784 case `pwd` in | |
4785 *\ * | *\ *) | |
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4787 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4788 esac | |
4789 | |
4790 | |
4791 | |
4792 macro_version='2.2.6b' | |
4793 macro_revision='1.3017' | |
4794 | |
4795 | |
4796 | |
4797 | |
4798 | |
4799 | |
4800 | |
4801 | |
4802 | |
4803 | |
4804 | |
4805 | |
4806 | |
4807 ltmain="$ac_aux_dir/ltmain.sh" | |
4808 | |
4809 # Make sure we can run config.sub. | |
4810 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
4811 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
4812 | |
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
4814 $as_echo_n "checking build system type... " >&6; } | |
4815 if test "${ac_cv_build+set}" = set; then : | |
4816 $as_echo_n "(cached) " >&6 | |
4817 else | |
4818 ac_build_alias=$build_alias | |
4819 test "x$ac_build_alias" = x && | |
4820 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4821 test "x$ac_build_alias" = x && | |
4822 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
4823 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
4824 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
4825 | |
4826 fi | |
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
4828 $as_echo "$ac_cv_build" >&6; } | |
4829 case $ac_cv_build in | |
4830 *-*-*) ;; | |
4831 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; | |
4832 esac | |
4833 build=$ac_cv_build | |
4834 ac_save_IFS=$IFS; IFS='-' | |
4835 set x $ac_cv_build | |
4836 shift | |
4837 build_cpu=$1 | |
4838 build_vendor=$2 | |
4839 shift; shift | |
4840 # Remember, the first character of IFS is used to create $*, | |
4841 # except with old shells: | |
4842 build_os=$* | |
4843 IFS=$ac_save_IFS | |
4844 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4845 | |
4846 | |
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
4848 $as_echo_n "checking host system type... " >&6; } | |
4849 if test "${ac_cv_host+set}" = set; then : | |
4850 $as_echo_n "(cached) " >&6 | |
4851 else | |
4852 if test "x$host_alias" = x; then | |
4853 ac_cv_host=$ac_cv_build | |
4854 else | |
4855 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
4856 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
4857 fi | |
4858 | |
4859 fi | |
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
4861 $as_echo "$ac_cv_host" >&6; } | |
4862 case $ac_cv_host in | |
4863 *-*-*) ;; | |
4864 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; | |
4865 esac | |
4866 host=$ac_cv_host | |
4867 ac_save_IFS=$IFS; IFS='-' | |
4868 set x $ac_cv_host | |
4869 shift | |
4870 host_cpu=$1 | |
4871 host_vendor=$2 | |
4872 shift; shift | |
4873 # Remember, the first character of IFS is used to create $*, | |
4874 # except with old shells: | |
4875 host_os=$* | |
4876 IFS=$ac_save_IFS | |
4877 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4878 | |
4879 | |
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
4881 $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4882 if test "${ac_cv_path_SED+set}" = set; then : | |
4883 $as_echo_n "(cached) " >&6 | |
4884 else | |
4885 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4886 for ac_i in 1 2 3 4 5 6 7; do | |
4887 ac_script="$ac_script$as_nl$ac_script" | |
4888 done | |
4889 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4890 { ac_script=; unset ac_script;} | |
4891 if test -z "$SED"; then | |
4892 ac_path_SED_found=false | |
4893 # Loop through the user's path and test for each of PROGNAME-LIST | |
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4895 for as_dir in $PATH | |
4896 do | |
4897 IFS=$as_save_IFS | |
4898 test -z "$as_dir" && as_dir=. | |
4899 for ac_prog in sed gsed; do | |
4900 for ac_exec_ext in '' $ac_executable_extensions; do | |
4901 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4902 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4903 # Check for GNU ac_path_SED and select it if it is found. | |
4904 # Check for GNU $ac_path_SED | |
4905 case `"$ac_path_SED" --version 2>&1` in | |
4906 *GNU*) | |
4907 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4908 *) | |
4909 ac_count=0 | |
4910 $as_echo_n 0123456789 >"conftest.in" | |
4911 while : | |
4912 do | |
4913 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4914 mv "conftest.tmp" "conftest.in" | |
4915 cp "conftest.in" "conftest.nl" | |
4916 $as_echo '' >> "conftest.nl" | |
4917 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4919 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4920 if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4921 # Best one so far, save it but keep looking for a better one | |
4922 ac_cv_path_SED="$ac_path_SED" | |
4923 ac_path_SED_max=$ac_count | |
4924 fi | |
4925 # 10*(2^10) chars as input seems more than enough | |
4926 test $ac_count -gt 10 && break | |
4927 done | |
4928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4929 esac | |
4930 | |
4931 $ac_path_SED_found && break 3 | |
4932 done | |
4933 done | |
4934 done | |
4935 IFS=$as_save_IFS | |
4936 if test -z "$ac_cv_path_SED"; then | |
4937 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
4938 fi | |
4939 else | |
4940 ac_cv_path_SED=$SED | |
4941 fi | |
4942 | |
4943 fi | |
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4945 $as_echo "$ac_cv_path_SED" >&6; } | |
4946 SED="$ac_cv_path_SED" | |
4947 rm -f conftest.sed | |
4948 | |
4949 test -z "$SED" && SED=sed | |
4950 Xsed="$SED -e 1s/^X//" | |
4951 | |
4952 | |
4953 | |
4954 | |
4955 | |
4956 | |
4957 | |
4958 | |
4959 | |
4960 | |
4961 | |
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
4963 $as_echo_n "checking for fgrep... " >&6; } | |
4964 if test "${ac_cv_path_FGREP+set}" = set; then : | |
4965 $as_echo_n "(cached) " >&6 | |
4966 else | |
4967 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4968 then ac_cv_path_FGREP="$GREP -F" | |
4969 else | |
4970 if test -z "$FGREP"; then | |
4971 ac_path_FGREP_found=false | |
4972 # Loop through the user's path and test for each of PROGNAME-LIST | |
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4975 do | |
4976 IFS=$as_save_IFS | |
4977 test -z "$as_dir" && as_dir=. | |
4978 for ac_prog in fgrep; do | |
4979 for ac_exec_ext in '' $ac_executable_extensions; do | |
4980 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4981 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
4982 # Check for GNU ac_path_FGREP and select it if it is found. | |
4983 # Check for GNU $ac_path_FGREP | |
4984 case `"$ac_path_FGREP" --version 2>&1` in | |
4985 *GNU*) | |
4986 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4987 *) | |
4988 ac_count=0 | |
4989 $as_echo_n 0123456789 >"conftest.in" | |
4990 while : | |
4991 do | |
4992 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4993 mv "conftest.tmp" "conftest.in" | |
4994 cp "conftest.in" "conftest.nl" | |
4995 $as_echo 'FGREP' >> "conftest.nl" | |
4996 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4998 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4999 if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5000 # Best one so far, save it but keep looking for a better one | |
5001 ac_cv_path_FGREP="$ac_path_FGREP" | |
5002 ac_path_FGREP_max=$ac_count | |
5003 fi | |
5004 # 10*(2^10) chars as input seems more than enough | |
5005 test $ac_count -gt 10 && break | |
5006 done | |
5007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5008 esac | |
5009 | |
5010 $ac_path_FGREP_found && break 3 | |
5011 done | |
5012 done | |
5013 done | |
5014 IFS=$as_save_IFS | |
5015 if test -z "$ac_cv_path_FGREP"; then | |
5016 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5017 fi | |
5018 else | |
5019 ac_cv_path_FGREP=$FGREP | |
5020 fi | |
5021 | |
5022 fi | |
5023 fi | |
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5025 $as_echo "$ac_cv_path_FGREP" >&6; } | |
5026 FGREP="$ac_cv_path_FGREP" | |
5027 | |
5028 | |
5029 test -z "$GREP" && GREP=grep | |
5030 | |
5031 | |
5032 | |
5033 | |
5034 | |
5035 | |
5036 | |
5037 | |
5038 | |
5039 | |
5040 | |
5041 | |
5042 | |
5043 | |
5044 | |
5045 | |
5046 | |
5047 | |
5048 | |
5049 # Check whether --with-gnu-ld was given. | |
5050 if test "${with_gnu_ld+set}" = set; then : | |
5051 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5052 else | |
5053 with_gnu_ld=no | |
5054 fi | |
5055 | |
5056 ac_prog=ld | |
5057 if test "$GCC" = yes; then | |
5058 # Check if gcc -print-prog-name=ld gives a path. | |
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5060 $as_echo_n "checking for ld used by $CC... " >&6; } | |
5061 case $host in | |
5062 *-*-mingw*) | |
5063 # gcc leaves a trailing carriage return which upsets mingw | |
5064 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5065 *) | |
5066 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5067 esac | |
5068 case $ac_prog in | |
5069 # Accept absolute paths. | |
5070 [\\/]* | ?:[\\/]*) | |
5071 re_direlt='/[^/][^/]*/\.\./' | |
5072 # Canonicalize the pathname of ld | |
5073 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5074 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5075 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5076 done | |
5077 test -z "$LD" && LD="$ac_prog" | |
5078 ;; | |
5079 "") | |
5080 # If it fails, then pretend we aren't using GCC. | |
5081 ac_prog=ld | |
5082 ;; | |
5083 *) | |
5084 # If it is relative, then search for the first ld in PATH. | |
5085 with_gnu_ld=unknown | |
5086 ;; | |
5087 esac | |
5088 elif test "$with_gnu_ld" = yes; then | |
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5090 $as_echo_n "checking for GNU ld... " >&6; } | |
5091 else | |
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5093 $as_echo_n "checking for non-GNU ld... " >&6; } | |
5094 fi | |
5095 if test "${lt_cv_path_LD+set}" = set; then : | |
5096 $as_echo_n "(cached) " >&6 | |
5097 else | |
5098 if test -z "$LD"; then | |
5099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5100 for ac_dir in $PATH; do | |
5101 IFS="$lt_save_ifs" | |
5102 test -z "$ac_dir" && ac_dir=. | |
5103 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5104 lt_cv_path_LD="$ac_dir/$ac_prog" | |
5105 # Check to see if the program is GNU ld. I'd rather use --version, | |
5106 # but apparently some variants of GNU ld only accept -v. | |
5107 # Break only if it was the GNU/non-GNU ld that we prefer. | |
5108 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5109 *GNU* | *'with BFD'*) | |
5110 test "$with_gnu_ld" != no && break | |
5111 ;; | |
5112 *) | |
5113 test "$with_gnu_ld" != yes && break | |
5114 ;; | |
5115 esac | |
5116 fi | |
5117 done | |
5118 IFS="$lt_save_ifs" | |
5119 else | |
5120 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5121 fi | |
5122 fi | |
5123 | |
5124 LD="$lt_cv_path_LD" | |
5125 if test -n "$LD"; then | |
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5127 $as_echo "$LD" >&6; } | |
5128 else | |
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5130 $as_echo "no" >&6; } | |
5131 fi | |
5132 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5134 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5135 if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
5136 $as_echo_n "(cached) " >&6 | |
5137 else | |
5138 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5139 case `$LD -v 2>&1 </dev/null` in | |
5140 *GNU* | *'with BFD'*) | |
5141 lt_cv_prog_gnu_ld=yes | |
5142 ;; | |
5143 *) | |
5144 lt_cv_prog_gnu_ld=no | |
5145 ;; | |
5146 esac | |
5147 fi | |
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5149 $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5150 with_gnu_ld=$lt_cv_prog_gnu_ld | |
5151 | |
5152 | |
5153 | |
5154 | |
5155 | |
5156 | |
5157 | |
5158 | |
5159 | |
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5161 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5162 if test "${lt_cv_path_NM+set}" = set; then : | |
5163 $as_echo_n "(cached) " >&6 | |
5164 else | |
5165 if test -n "$NM"; then | |
5166 # Let the user override the test. | |
5167 lt_cv_path_NM="$NM" | |
5168 else | |
5169 lt_nm_to_check="${ac_tool_prefix}nm" | |
5170 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5171 lt_nm_to_check="$lt_nm_to_check nm" | |
5172 fi | |
5173 for lt_tmp_nm in $lt_nm_to_check; do | |
5174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5175 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5176 IFS="$lt_save_ifs" | |
5177 test -z "$ac_dir" && ac_dir=. | |
5178 tmp_nm="$ac_dir/$lt_tmp_nm" | |
5179 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5180 # Check to see if the nm accepts a BSD-compat flag. | |
5181 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5182 # nm: unknown option "B" ignored | |
5183 # Tru64's nm complains that /dev/null is an invalid object file | |
5184 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5185 */dev/null* | *'Invalid file or object type'*) | |
5186 lt_cv_path_NM="$tmp_nm -B" | |
5187 break | |
5188 ;; | |
5189 *) | |
5190 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5191 */dev/null*) | |
5192 lt_cv_path_NM="$tmp_nm -p" | |
5193 break | |
5194 ;; | |
5195 *) | |
5196 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5197 continue # so that we can try to find one that supports BSD flags | |
5198 ;; | |
5199 esac | |
5200 ;; | |
5201 esac | |
5202 fi | |
5203 done | |
5204 IFS="$lt_save_ifs" | |
5205 done | |
5206 : ${lt_cv_path_NM=no} | |
5207 fi | |
5208 fi | |
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5210 $as_echo "$lt_cv_path_NM" >&6; } | |
5211 if test "$lt_cv_path_NM" != "no"; then | |
5212 NM="$lt_cv_path_NM" | |
5213 else | |
5214 # Didn't find any BSD compatible name lister, look for dumpbin. | |
5215 if test -n "$ac_tool_prefix"; then | |
5216 for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5217 do | |
5218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5221 $as_echo_n "checking for $ac_word... " >&6; } | |
5222 if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
5223 $as_echo_n "(cached) " >&6 | |
5224 else | |
5225 if test -n "$DUMPBIN"; then | |
5226 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5227 else | |
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5229 for as_dir in $PATH | |
5230 do | |
5231 IFS=$as_save_IFS | |
5232 test -z "$as_dir" && as_dir=. | |
5233 for ac_exec_ext in '' $ac_executable_extensions; do | |
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5235 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5237 break 2 | |
5238 fi | |
5239 done | |
5240 done | |
5241 IFS=$as_save_IFS | |
5242 | |
5243 fi | |
5244 fi | |
5245 DUMPBIN=$ac_cv_prog_DUMPBIN | |
5246 if test -n "$DUMPBIN"; then | |
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5248 $as_echo "$DUMPBIN" >&6; } | |
5249 else | |
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5251 $as_echo "no" >&6; } | |
5252 fi | |
5253 | |
5254 | |
5255 test -n "$DUMPBIN" && break | |
5256 done | |
5257 fi | |
5258 if test -z "$DUMPBIN"; then | |
5259 ac_ct_DUMPBIN=$DUMPBIN | |
5260 for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5261 do | |
5262 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5263 set dummy $ac_prog; ac_word=$2 | |
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5265 $as_echo_n "checking for $ac_word... " >&6; } | |
5266 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
5267 $as_echo_n "(cached) " >&6 | |
5268 else | |
5269 if test -n "$ac_ct_DUMPBIN"; then | |
5270 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5271 else | |
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5273 for as_dir in $PATH | |
5274 do | |
5275 IFS=$as_save_IFS | |
5276 test -z "$as_dir" && as_dir=. | |
5277 for ac_exec_ext in '' $ac_executable_extensions; do | |
5278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5279 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5281 break 2 | |
5282 fi | |
5283 done | |
5284 done | |
5285 IFS=$as_save_IFS | |
5286 | |
5287 fi | |
5288 fi | |
5289 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5290 if test -n "$ac_ct_DUMPBIN"; then | |
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5292 $as_echo "$ac_ct_DUMPBIN" >&6; } | |
5293 else | |
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5295 $as_echo "no" >&6; } | |
5296 fi | |
5297 | |
5298 | |
5299 test -n "$ac_ct_DUMPBIN" && break | |
5300 done | |
5301 | |
5302 if test "x$ac_ct_DUMPBIN" = x; then | |
5303 DUMPBIN=":" | |
5304 else | |
5305 case $cross_compiling:$ac_tool_warned in | |
5306 yes:) | |
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5309 ac_tool_warned=yes ;; | |
5310 esac | |
5311 DUMPBIN=$ac_ct_DUMPBIN | |
5312 fi | |
5313 fi | |
5314 | |
5315 | |
5316 if test "$DUMPBIN" != ":"; then | |
5317 NM="$DUMPBIN" | |
5318 fi | |
5319 fi | |
5320 test -z "$NM" && NM=nm | |
5321 | |
5322 | |
5323 | |
5324 | |
5325 | |
5326 | |
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5328 $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5329 if test "${lt_cv_nm_interface+set}" = set; then : | |
5330 $as_echo_n "(cached) " >&6 | |
5331 else | |
5332 lt_cv_nm_interface="BSD nm" | |
5333 echo "int some_variable = 0;" > conftest.$ac_ext | |
5334 (eval echo "\"\$as_me:5334: $ac_compile\"" >&5) | |
5335 (eval "$ac_compile" 2>conftest.err) | |
5336 cat conftest.err >&5 | |
5337 (eval echo "\"\$as_me:5337: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5338 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5339 cat conftest.err >&5 | |
5340 (eval echo "\"\$as_me:5340: output\"" >&5) | |
5341 cat conftest.out >&5 | |
5342 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5343 lt_cv_nm_interface="MS dumpbin" | |
5344 fi | |
5345 rm -f conftest* | |
5346 fi | |
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
5348 $as_echo "$lt_cv_nm_interface" >&6; } | |
5349 | |
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5351 $as_echo_n "checking whether ln -s works... " >&6; } | |
5352 LN_S=$as_ln_s | |
5353 if test "$LN_S" = "ln -s"; then | |
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5355 $as_echo "yes" >&6; } | |
5356 else | |
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5358 $as_echo "no, using $LN_S" >&6; } | |
5359 fi | |
5360 | |
5361 # find the maximum length of command line arguments | |
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5363 $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5364 if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
5365 $as_echo_n "(cached) " >&6 | |
5366 else | |
5367 i=0 | |
5368 teststring="ABCD" | |
5369 | |
5370 case $build_os in | |
5371 msdosdjgpp*) | |
5372 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5373 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5374 # during glob expansion). Even if it were fixed, the result of this | |
5375 # check would be larger than it should be. | |
5376 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5377 ;; | |
5378 | |
5379 gnu*) | |
5380 # Under GNU Hurd, this test is not required because there is | |
5381 # no limit to the length of command line arguments. | |
5382 # Libtool will interpret -1 as no limit whatsoever | |
5383 lt_cv_sys_max_cmd_len=-1; | |
5384 ;; | |
5385 | |
5386 cygwin* | mingw* | cegcc*) | |
5387 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5388 # about 5 minutes as the teststring grows exponentially. | |
5389 # Worse, since 9x/ME are not pre-emptively multitasking, | |
5390 # you end up with a "frozen" computer, even though with patience | |
5391 # the test eventually succeeds (with a max line length of 256k). | |
5392 # Instead, let's just punt: use the minimum linelength reported by | |
5393 # all of the supported platforms: 8192 (on NT/2K/XP). | |
5394 lt_cv_sys_max_cmd_len=8192; | |
5395 ;; | |
5396 | |
5397 amigaos*) | |
5398 # On AmigaOS with pdksh, this test takes hours, literally. | |
5399 # So we just punt and use a minimum line length of 8192. | |
5400 lt_cv_sys_max_cmd_len=8192; | |
5401 ;; | |
5402 | |
5403 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5404 # This has been around since 386BSD, at least. Likely further. | |
5405 if test -x /sbin/sysctl; then | |
5406 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5407 elif test -x /usr/sbin/sysctl; then | |
5408 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5409 else | |
5410 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5411 fi | |
5412 # And add a safety zone | |
5413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5414 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5415 ;; | |
5416 | |
5417 interix*) | |
5418 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5419 lt_cv_sys_max_cmd_len=196608 | |
5420 ;; | |
5421 | |
5422 osf*) | |
5423 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5424 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5425 # nice to cause kernel panics so lets avoid the loop below. | |
5426 # First set a reasonable default. | |
5427 lt_cv_sys_max_cmd_len=16384 | |
5428 # | |
5429 if test -x /sbin/sysconfig; then | |
5430 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5431 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5432 esac | |
5433 fi | |
5434 ;; | |
5435 sco3.2v5*) | |
5436 lt_cv_sys_max_cmd_len=102400 | |
5437 ;; | |
5438 sysv5* | sco5v6* | sysv4.2uw2*) | |
5439 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5440 if test -n "$kargmax"; then | |
5441 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5442 else | |
5443 lt_cv_sys_max_cmd_len=32768 | |
5444 fi | |
5445 ;; | |
5446 *) | |
5447 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5448 if test -n "$lt_cv_sys_max_cmd_len"; then | |
5449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5451 else | |
5452 # Make teststring a little bigger before we do anything with it. | |
5453 # a 1K string should be a reasonable start. | |
5454 for i in 1 2 3 4 5 6 7 8 ; do | |
5455 teststring=$teststring$teststring | |
5456 done | |
5457 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5458 # If test is not a shell built-in, we'll probably end up computing a | |
5459 # maximum length that is only half of the actual maximum length, but | |
5460 # we can't tell. | |
5461 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
5462 = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
5463 test $i != 17 # 1/2 MB should be enough | |
5464 do | |
5465 i=`expr $i + 1` | |
5466 teststring=$teststring$teststring | |
5467 done | |
5468 # Only check the string length outside the loop. | |
5469 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5470 teststring= | |
5471 # Add a significant safety factor because C++ compilers can tack on | |
5472 # massive amounts of additional arguments before passing them to the | |
5473 # linker. It appears as though 1/2 is a usable value. | |
5474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5475 fi | |
5476 ;; | |
5477 esac | |
5478 | |
5479 fi | |
5480 | |
5481 if test -n $lt_cv_sys_max_cmd_len ; then | |
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5483 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5484 else | |
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5486 $as_echo "none" >&6; } | |
5487 fi | |
5488 max_cmd_len=$lt_cv_sys_max_cmd_len | |
5489 | |
5490 | |
5491 | |
5492 | |
5493 | |
5494 | |
5495 : ${CP="cp -f"} | |
5496 : ${MV="mv -f"} | |
5497 : ${RM="rm -f"} | |
5498 | |
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
5500 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5501 # Try some XSI features | |
5502 xsi_shell=no | |
5503 ( _lt_dummy="a/b/c" | |
5504 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
5505 = c,a/b,, \ | |
5506 && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5507 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5508 && xsi_shell=yes | |
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5510 $as_echo "$xsi_shell" >&6; } | |
5511 | |
5512 | |
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
5514 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
5515 lt_shell_append=no | |
5516 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5517 >/dev/null 2>&1 \ | |
5518 && lt_shell_append=yes | |
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
5520 $as_echo "$lt_shell_append" >&6; } | |
5521 | |
5522 | |
5523 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5524 lt_unset=unset | |
5525 else | |
5526 lt_unset=false | |
5527 fi | |
5528 | |
5529 | |
5530 | |
5531 | |
5532 | |
5533 # test EBCDIC or ASCII | |
5534 case `echo X|tr X '\101'` in | |
5535 A) # ASCII based system | |
5536 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5537 lt_SP2NL='tr \040 \012' | |
5538 lt_NL2SP='tr \015\012 \040\040' | |
5539 ;; | |
5540 *) # EBCDIC based system | |
5541 lt_SP2NL='tr \100 \n' | |
5542 lt_NL2SP='tr \r\n \100\100' | |
5543 ;; | |
5544 esac | |
5545 | |
5546 | |
5547 | |
5548 | |
5549 | |
5550 | |
5551 | |
5552 | |
5553 | |
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5555 $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5556 if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
5557 $as_echo_n "(cached) " >&6 | |
5558 else | |
5559 lt_cv_ld_reload_flag='-r' | |
5560 fi | |
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5562 $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5563 reload_flag=$lt_cv_ld_reload_flag | |
5564 case $reload_flag in | |
5565 "" | " "*) ;; | |
5566 *) reload_flag=" $reload_flag" ;; | |
5567 esac | |
5568 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5569 case $host_os in | |
5570 darwin*) | |
5571 if test "$GCC" = yes; then | |
5572 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5573 else | |
5574 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5575 fi | |
5576 ;; | |
5577 esac | |
5578 | |
5579 | |
5580 | |
5581 | |
5582 | |
5583 | |
5584 | |
5585 | |
5586 | |
5587 if test -n "$ac_tool_prefix"; then | |
5588 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5589 set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5591 $as_echo_n "checking for $ac_word... " >&6; } | |
5592 if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
5593 $as_echo_n "(cached) " >&6 | |
5594 else | |
5595 if test -n "$OBJDUMP"; then | |
5596 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5597 else | |
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5599 for as_dir in $PATH | |
5600 do | |
5601 IFS=$as_save_IFS | |
5602 test -z "$as_dir" && as_dir=. | |
5603 for ac_exec_ext in '' $ac_executable_extensions; do | |
5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5605 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5607 break 2 | |
5608 fi | |
5609 done | |
5610 done | |
5611 IFS=$as_save_IFS | |
5612 | |
5613 fi | |
5614 fi | |
5615 OBJDUMP=$ac_cv_prog_OBJDUMP | |
5616 if test -n "$OBJDUMP"; then | |
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5618 $as_echo "$OBJDUMP" >&6; } | |
5619 else | |
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5621 $as_echo "no" >&6; } | |
5622 fi | |
5623 | |
5624 | |
5625 fi | |
5626 if test -z "$ac_cv_prog_OBJDUMP"; then | |
5627 ac_ct_OBJDUMP=$OBJDUMP | |
5628 # Extract the first word of "objdump", so it can be a program name with args. | |
5629 set dummy objdump; ac_word=$2 | |
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5631 $as_echo_n "checking for $ac_word... " >&6; } | |
5632 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
5633 $as_echo_n "(cached) " >&6 | |
5634 else | |
5635 if test -n "$ac_ct_OBJDUMP"; then | |
5636 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5637 else | |
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5639 for as_dir in $PATH | |
5640 do | |
5641 IFS=$as_save_IFS | |
5642 test -z "$as_dir" && as_dir=. | |
5643 for ac_exec_ext in '' $ac_executable_extensions; do | |
5644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5645 ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5647 break 2 | |
5648 fi | |
5649 done | |
5650 done | |
5651 IFS=$as_save_IFS | |
5652 | |
5653 fi | |
5654 fi | |
5655 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5656 if test -n "$ac_ct_OBJDUMP"; then | |
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5658 $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5659 else | |
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5661 $as_echo "no" >&6; } | |
5662 fi | |
5663 | |
5664 if test "x$ac_ct_OBJDUMP" = x; then | |
5665 OBJDUMP="false" | |
5666 else | |
5667 case $cross_compiling:$ac_tool_warned in | |
5668 yes:) | |
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5671 ac_tool_warned=yes ;; | |
5672 esac | |
5673 OBJDUMP=$ac_ct_OBJDUMP | |
5674 fi | |
5675 else | |
5676 OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5677 fi | |
5678 | |
5679 test -z "$OBJDUMP" && OBJDUMP=objdump | |
5680 | |
5681 | |
5682 | |
5683 | |
5684 | |
5685 | |
5686 | |
5687 | |
5688 | |
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5690 $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5691 if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
5692 $as_echo_n "(cached) " >&6 | |
5693 else | |
5694 lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5695 lt_cv_file_magic_test_file= | |
5696 lt_cv_deplibs_check_method='unknown' | |
5697 # Need to set the preceding variable on all platforms that support | |
5698 # interlibrary dependencies. | |
5699 # 'none' -- dependencies not supported. | |
5700 # `unknown' -- same as none, but documents that we really don't know. | |
5701 # 'pass_all' -- all dependencies passed with no checks. | |
5702 # 'test_compile' -- check by making test program. | |
5703 # 'file_magic [[regex]]' -- check by looking for files in library path | |
5704 # which responds to the $file_magic_cmd with a given extended regex. | |
5705 # If you have `file' or equivalent on your system and you're not sure | |
5706 # whether `pass_all' will *always* work, you probably want this one. | |
5707 | |
5708 case $host_os in | |
5709 aix[4-9]*) | |
5710 lt_cv_deplibs_check_method=pass_all | |
5711 ;; | |
5712 | |
5713 beos*) | |
5714 lt_cv_deplibs_check_method=pass_all | |
5715 ;; | |
5716 | |
5717 bsdi[45]*) | |
5718 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5719 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5720 lt_cv_file_magic_test_file=/shlib/libc.so | |
5721 ;; | |
5722 | |
5723 cygwin*) | |
5724 # func_win32_libid is a shell function defined in ltmain.sh | |
5725 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5726 lt_cv_file_magic_cmd='func_win32_libid' | |
5727 ;; | |
5728 | |
5729 mingw* | pw32*) | |
5730 # Base MSYS/MinGW do not provide the 'file' command needed by | |
5731 # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5732 # unless we find 'file', for example because we are cross-compiling. | |
5733 if ( file / ) >/dev/null 2>&1; then | |
5734 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5735 lt_cv_file_magic_cmd='func_win32_libid' | |
5736 else | |
5737 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5738 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5739 fi | |
5740 ;; | |
5741 | |
5742 cegcc) | |
5743 # use the weaker test based on 'objdump'. See mingw*. | |
5744 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5745 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5746 ;; | |
5747 | |
5748 darwin* | rhapsody*) | |
5749 lt_cv_deplibs_check_method=pass_all | |
5750 ;; | |
5751 | |
5752 freebsd* | dragonfly*) | |
5753 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5754 case $host_cpu in | |
5755 i*86 ) | |
5756 # Not sure whether the presence of OpenBSD here was a mistake. | |
5757 # Let's accept both of them until this is cleared up. | |
5758 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5759 lt_cv_file_magic_cmd=/usr/bin/file | |
5760 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5761 ;; | |
5762 esac | |
5763 else | |
5764 lt_cv_deplibs_check_method=pass_all | |
5765 fi | |
5766 ;; | |
5767 | |
5768 gnu*) | |
5769 lt_cv_deplibs_check_method=pass_all | |
5770 ;; | |
5771 | |
5772 hpux10.20* | hpux11*) | |
5773 lt_cv_file_magic_cmd=/usr/bin/file | |
5774 case $host_cpu in | |
5775 ia64*) | |
5776 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5777 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5778 ;; | |
5779 hppa*64*) | |
5780 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
5781 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5782 ;; | |
5783 *) | |
5784 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
5785 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5786 ;; | |
5787 esac | |
5788 ;; | |
5789 | |
5790 interix[3-9]*) | |
5791 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5793 ;; | |
5794 | |
5795 irix5* | irix6* | nonstopux*) | |
5796 case $LD in | |
5797 *-32|*"-32 ") libmagic=32-bit;; | |
5798 *-n32|*"-n32 ") libmagic=N32;; | |
5799 *-64|*"-64 ") libmagic=64-bit;; | |
5800 *) libmagic=never-match;; | |
5801 esac | |
5802 lt_cv_deplibs_check_method=pass_all | |
5803 ;; | |
5804 | |
5805 # This must be Linux ELF. | |
5806 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
5807 lt_cv_deplibs_check_method=pass_all | |
5808 ;; | |
5809 | |
5810 netbsd* | netbsdelf*-gnu) | |
5811 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5813 else | |
5814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5815 fi | |
5816 ;; | |
5817 | |
5818 newos6*) | |
5819 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5820 lt_cv_file_magic_cmd=/usr/bin/file | |
5821 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5822 ;; | |
5823 | |
5824 *nto* | *qnx*) | |
5825 lt_cv_deplibs_check_method=pass_all | |
5826 ;; | |
5827 | |
5828 openbsd*) | |
5829 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5831 else | |
5832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5833 fi | |
5834 ;; | |
5835 | |
5836 osf3* | osf4* | osf5*) | |
5837 lt_cv_deplibs_check_method=pass_all | |
5838 ;; | |
5839 | |
5840 rdos*) | |
5841 lt_cv_deplibs_check_method=pass_all | |
5842 ;; | |
5843 | |
5844 solaris*) | |
5845 lt_cv_deplibs_check_method=pass_all | |
5846 ;; | |
5847 | |
5848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5849 lt_cv_deplibs_check_method=pass_all | |
5850 ;; | |
5851 | |
5852 sysv4 | sysv4.3*) | |
5853 case $host_vendor in | |
5854 motorola) | |
5855 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]' | |
5856 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5857 ;; | |
5858 ncr) | |
5859 lt_cv_deplibs_check_method=pass_all | |
5860 ;; | |
5861 sequent) | |
5862 lt_cv_file_magic_cmd='/bin/file' | |
5863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5864 ;; | |
5865 sni) | |
5866 lt_cv_file_magic_cmd='/bin/file' | |
5867 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5868 lt_cv_file_magic_test_file=/lib/libc.so | |
5869 ;; | |
5870 siemens) | |
5871 lt_cv_deplibs_check_method=pass_all | |
5872 ;; | |
5873 pc) | |
5874 lt_cv_deplibs_check_method=pass_all | |
5875 ;; | |
5876 esac | |
5877 ;; | |
5878 | |
5879 tpf*) | |
5880 lt_cv_deplibs_check_method=pass_all | |
5881 ;; | |
5882 esac | |
5883 | |
5884 fi | |
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
5886 $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5887 file_magic_cmd=$lt_cv_file_magic_cmd | |
5888 deplibs_check_method=$lt_cv_deplibs_check_method | |
5889 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5890 | |
5891 | |
5892 | |
5893 | |
5894 | |
5895 | |
5896 | |
5897 | |
5898 | |
5899 | |
5900 | |
5901 | |
5902 if test -n "$ac_tool_prefix"; then | |
5903 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5904 set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5906 $as_echo_n "checking for $ac_word... " >&6; } | |
5907 if test "${ac_cv_prog_AR+set}" = set; then : | |
5908 $as_echo_n "(cached) " >&6 | |
5909 else | |
5910 if test -n "$AR"; then | |
5911 ac_cv_prog_AR="$AR" # Let the user override the test. | |
5912 else | |
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5914 for as_dir in $PATH | |
5915 do | |
5916 IFS=$as_save_IFS | |
5917 test -z "$as_dir" && as_dir=. | |
5918 for ac_exec_ext in '' $ac_executable_extensions; do | |
5919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5920 ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5922 break 2 | |
5923 fi | |
5924 done | |
5925 done | |
5926 IFS=$as_save_IFS | |
5927 | |
5928 fi | |
5929 fi | |
5930 AR=$ac_cv_prog_AR | |
5931 if test -n "$AR"; then | |
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5933 $as_echo "$AR" >&6; } | |
5934 else | |
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5936 $as_echo "no" >&6; } | |
5937 fi | |
5938 | |
5939 | |
5940 fi | |
5941 if test -z "$ac_cv_prog_AR"; then | |
5942 ac_ct_AR=$AR | |
5943 # Extract the first word of "ar", so it can be a program name with args. | |
5944 set dummy ar; ac_word=$2 | |
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5946 $as_echo_n "checking for $ac_word... " >&6; } | |
5947 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
5948 $as_echo_n "(cached) " >&6 | |
5949 else | |
5950 if test -n "$ac_ct_AR"; then | |
5951 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5952 else | |
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5954 for as_dir in $PATH | |
5955 do | |
5956 IFS=$as_save_IFS | |
5957 test -z "$as_dir" && as_dir=. | |
5958 for ac_exec_ext in '' $ac_executable_extensions; do | |
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5960 ac_cv_prog_ac_ct_AR="ar" | |
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5962 break 2 | |
5963 fi | |
5964 done | |
5965 done | |
5966 IFS=$as_save_IFS | |
5967 | |
5968 fi | |
5969 fi | |
5970 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5971 if test -n "$ac_ct_AR"; then | |
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5973 $as_echo "$ac_ct_AR" >&6; } | |
5974 else | |
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5976 $as_echo "no" >&6; } | |
5977 fi | |
5978 | |
5979 if test "x$ac_ct_AR" = x; then | |
5980 AR="false" | |
5981 else | |
5982 case $cross_compiling:$ac_tool_warned in | |
5983 yes:) | |
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5986 ac_tool_warned=yes ;; | |
5987 esac | |
5988 AR=$ac_ct_AR | |
5989 fi | |
5990 else | |
5991 AR="$ac_cv_prog_AR" | |
5992 fi | |
5993 | |
5994 test -z "$AR" && AR=ar | |
5995 test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5996 | |
5997 | |
5998 | |
5999 | |
6000 | |
6001 | |
6002 | |
6003 | |
6004 | |
6005 | |
6006 | |
6007 if test -n "$ac_tool_prefix"; then | |
6008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6009 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6011 $as_echo_n "checking for $ac_word... " >&6; } | |
6012 if test "${ac_cv_prog_STRIP+set}" = set; then : | |
6013 $as_echo_n "(cached) " >&6 | |
6014 else | |
6015 if test -n "$STRIP"; then | |
6016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6017 else | |
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6019 for as_dir in $PATH | |
6020 do | |
6021 IFS=$as_save_IFS | |
6022 test -z "$as_dir" && as_dir=. | |
6023 for ac_exec_ext in '' $ac_executable_extensions; do | |
6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6025 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6027 break 2 | |
6028 fi | |
6029 done | |
6030 done | |
6031 IFS=$as_save_IFS | |
6032 | |
6033 fi | |
6034 fi | |
6035 STRIP=$ac_cv_prog_STRIP | |
6036 if test -n "$STRIP"; then | |
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6038 $as_echo "$STRIP" >&6; } | |
6039 else | |
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6041 $as_echo "no" >&6; } | |
6042 fi | |
6043 | |
6044 | |
6045 fi | |
6046 if test -z "$ac_cv_prog_STRIP"; then | |
6047 ac_ct_STRIP=$STRIP | |
6048 # Extract the first word of "strip", so it can be a program name with args. | |
6049 set dummy strip; ac_word=$2 | |
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6051 $as_echo_n "checking for $ac_word... " >&6; } | |
6052 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
6053 $as_echo_n "(cached) " >&6 | |
6054 else | |
6055 if test -n "$ac_ct_STRIP"; then | |
6056 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6057 else | |
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6059 for as_dir in $PATH | |
6060 do | |
6061 IFS=$as_save_IFS | |
6062 test -z "$as_dir" && as_dir=. | |
6063 for ac_exec_ext in '' $ac_executable_extensions; do | |
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6065 ac_cv_prog_ac_ct_STRIP="strip" | |
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6067 break 2 | |
6068 fi | |
6069 done | |
6070 done | |
6071 IFS=$as_save_IFS | |
6072 | |
6073 fi | |
6074 fi | |
6075 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6076 if test -n "$ac_ct_STRIP"; then | |
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6078 $as_echo "$ac_ct_STRIP" >&6; } | |
6079 else | |
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6081 $as_echo "no" >&6; } | |
6082 fi | |
6083 | |
6084 if test "x$ac_ct_STRIP" = x; then | |
6085 STRIP=":" | |
6086 else | |
6087 case $cross_compiling:$ac_tool_warned in | |
6088 yes:) | |
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6091 ac_tool_warned=yes ;; | |
6092 esac | |
6093 STRIP=$ac_ct_STRIP | |
6094 fi | |
6095 else | |
6096 STRIP="$ac_cv_prog_STRIP" | |
6097 fi | |
6098 | |
6099 test -z "$STRIP" && STRIP=: | |
6100 | |
6101 | |
6102 | |
6103 | |
6104 | |
6105 | |
6106 if test -n "$ac_tool_prefix"; then | |
6107 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6108 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6110 $as_echo_n "checking for $ac_word... " >&6; } | |
6111 if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
6112 $as_echo_n "(cached) " >&6 | |
6113 else | |
6114 if test -n "$RANLIB"; then | |
6115 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6116 else | |
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6118 for as_dir in $PATH | |
6119 do | |
6120 IFS=$as_save_IFS | |
6121 test -z "$as_dir" && as_dir=. | |
6122 for ac_exec_ext in '' $ac_executable_extensions; do | |
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6124 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6126 break 2 | |
6127 fi | |
6128 done | |
6129 done | |
6130 IFS=$as_save_IFS | |
6131 | |
6132 fi | |
6133 fi | |
6134 RANLIB=$ac_cv_prog_RANLIB | |
6135 if test -n "$RANLIB"; then | |
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6137 $as_echo "$RANLIB" >&6; } | |
6138 else | |
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6140 $as_echo "no" >&6; } | |
6141 fi | |
6142 | |
6143 | |
6144 fi | |
6145 if test -z "$ac_cv_prog_RANLIB"; then | |
6146 ac_ct_RANLIB=$RANLIB | |
6147 # Extract the first word of "ranlib", so it can be a program name with args. | |
6148 set dummy ranlib; ac_word=$2 | |
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6150 $as_echo_n "checking for $ac_word... " >&6; } | |
6151 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
6152 $as_echo_n "(cached) " >&6 | |
6153 else | |
6154 if test -n "$ac_ct_RANLIB"; then | |
6155 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6156 else | |
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6158 for as_dir in $PATH | |
6159 do | |
6160 IFS=$as_save_IFS | |
6161 test -z "$as_dir" && as_dir=. | |
6162 for ac_exec_ext in '' $ac_executable_extensions; do | |
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6164 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6166 break 2 | |
6167 fi | |
6168 done | |
6169 done | |
6170 IFS=$as_save_IFS | |
6171 | |
6172 fi | |
6173 fi | |
6174 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6175 if test -n "$ac_ct_RANLIB"; then | |
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6177 $as_echo "$ac_ct_RANLIB" >&6; } | |
6178 else | |
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6180 $as_echo "no" >&6; } | |
6181 fi | |
6182 | |
6183 if test "x$ac_ct_RANLIB" = x; then | |
6184 RANLIB=":" | |
6185 else | |
6186 case $cross_compiling:$ac_tool_warned in | |
6187 yes:) | |
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6190 ac_tool_warned=yes ;; | |
6191 esac | |
6192 RANLIB=$ac_ct_RANLIB | |
6193 fi | |
6194 else | |
6195 RANLIB="$ac_cv_prog_RANLIB" | |
6196 fi | |
6197 | |
6198 test -z "$RANLIB" && RANLIB=: | |
6199 | |
6200 | |
6201 | |
6202 | |
6203 | |
6204 | |
6205 # Determine commands to create old-style static archives. | |
6206 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6207 old_postinstall_cmds='chmod 644 $oldlib' | |
6208 old_postuninstall_cmds= | |
6209 | |
6210 if test -n "$RANLIB"; then | |
6211 case $host_os in | |
6212 openbsd*) | |
6213 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6214 ;; | |
6215 *) | |
6216 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6217 ;; | |
6218 esac | |
6219 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6220 fi | |
6221 | |
6222 | |
6223 | |
6224 | |
6225 | |
6226 | |
6227 | |
6228 | |
6229 | |
6230 | |
6231 | |
6232 | |
6233 | |
6234 | |
6235 | |
6236 | |
6237 | |
6238 | |
6239 | |
6240 | |
6241 | |
6242 | |
6243 | |
6244 | |
6245 | |
6246 | |
6247 | |
6248 | |
6249 | |
6250 | |
6251 | |
6252 | |
6253 | |
6254 | |
6255 # If no C compiler was specified, use CC. | |
6256 LTCC=${LTCC-"$CC"} | |
6257 | |
6258 # If no C compiler flags were specified, use CFLAGS. | |
6259 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6260 | |
6261 # Allow CC to be a program name with arguments. | |
6262 compiler=$CC | |
6263 | |
6264 | |
6265 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6267 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6268 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
6269 $as_echo_n "(cached) " >&6 | |
6270 else | |
6271 | |
6272 # These are sane defaults that work on at least a few old systems. | |
6273 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6274 | |
6275 # Character class describing NM global symbol codes. | |
6276 symcode='[BCDEGRST]' | |
6277 | |
6278 # Regexp to match symbols that can be accessed directly from C. | |
6279 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6280 | |
6281 # Define system-specific variables. | |
6282 case $host_os in | |
6283 aix*) | |
6284 symcode='[BCDT]' | |
6285 ;; | |
6286 cygwin* | mingw* | pw32* | cegcc*) | |
6287 symcode='[ABCDGISTW]' | |
6288 ;; | |
6289 hpux*) | |
6290 if test "$host_cpu" = ia64; then | |
6291 symcode='[ABCDEGRST]' | |
6292 fi | |
6293 ;; | |
6294 irix* | nonstopux*) | |
6295 symcode='[BCDEGRST]' | |
6296 ;; | |
6297 osf*) | |
6298 symcode='[BCDEGQRST]' | |
6299 ;; | |
6300 solaris*) | |
6301 symcode='[BDRT]' | |
6302 ;; | |
6303 sco3.2v5*) | |
6304 symcode='[DT]' | |
6305 ;; | |
6306 sysv4.2uw2*) | |
6307 symcode='[DT]' | |
6308 ;; | |
6309 sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6310 symcode='[ABDT]' | |
6311 ;; | |
6312 sysv4) | |
6313 symcode='[DFNSTU]' | |
6314 ;; | |
6315 esac | |
6316 | |
6317 # If we're using GNU nm, then use its standard symbol codes. | |
6318 case `$NM -V 2>&1` in | |
6319 *GNU* | *'with BFD'*) | |
6320 symcode='[ABCDGIRSTW]' ;; | |
6321 esac | |
6322 | |
6323 # Transform an extracted symbol line into a proper C declaration. | |
6324 # Some systems (esp. on ia64) link data and code symbols differently, | |
6325 # so use this general approach. | |
6326 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6327 | |
6328 # Transform an extracted symbol line into symbol name and symbol address | |
6329 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6330 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
6331 | |
6332 # Handle CRLF in mingw tool chain | |
6333 opt_cr= | |
6334 case $build_os in | |
6335 mingw*) | |
6336 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6337 ;; | |
6338 esac | |
6339 | |
6340 # Try without a prefix underscore, then with it. | |
6341 for ac_symprfx in "" "_"; do | |
6342 | |
6343 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6344 symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6345 | |
6346 # Write the raw and C identifiers. | |
6347 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6348 # Fake it for dumpbin and say T for any non-static function | |
6349 # and D for any global variable. | |
6350 # Also find C++ and __fastcall symbols from MSVC++, | |
6351 # which start with @ or ?. | |
6352 lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6353 " {last_section=section; section=\$ 3};"\ | |
6354 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6355 " \$ 0!~/External *\|/{next};"\ | |
6356 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6357 " {if(hide[section]) next};"\ | |
6358 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6359 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6360 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6361 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6362 " ' prfx=^$ac_symprfx" | |
6363 else | |
6364 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6365 fi | |
6366 | |
6367 # Check to see that the pipe works correctly. | |
6368 pipe_works=no | |
6369 | |
6370 rm -f conftest* | |
6371 cat > conftest.$ac_ext <<_LT_EOF | |
6372 #ifdef __cplusplus | |
6373 extern "C" { | |
6374 #endif | |
6375 char nm_test_var; | |
6376 void nm_test_func(void); | |
6377 void nm_test_func(void){} | |
6378 #ifdef __cplusplus | |
6379 } | |
6380 #endif | |
6381 int main(){nm_test_var='a';nm_test_func();return(0);} | |
6382 _LT_EOF | |
6383 | |
6384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6385 (eval $ac_compile) 2>&5 | |
6386 ac_status=$? | |
6387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6388 test $ac_status = 0; }; then | |
6389 # Now try to grab the symbols. | |
6390 nlist=conftest.nm | |
6391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | |
6392 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
6393 ac_status=$? | |
6394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6395 test $ac_status = 0; } && test -s "$nlist"; then | |
6396 # Try sorting and uniquifying the output. | |
6397 if sort "$nlist" | uniq > "$nlist"T; then | |
6398 mv -f "$nlist"T "$nlist" | |
6399 else | |
6400 rm -f "$nlist"T | |
6401 fi | |
6402 | |
6403 # Make sure that we snagged all the symbols we need. | |
6404 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6405 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6406 cat <<_LT_EOF > conftest.$ac_ext | |
6407 #ifdef __cplusplus | |
6408 extern "C" { | |
6409 #endif | |
6410 | |
6411 _LT_EOF | |
6412 # Now generate the symbol file. | |
6413 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6414 | |
6415 cat <<_LT_EOF >> conftest.$ac_ext | |
6416 | |
6417 /* The mapping between symbol names and symbols. */ | |
6418 const struct { | |
6419 const char *name; | |
6420 void *address; | |
6421 } | |
6422 lt__PROGRAM__LTX_preloaded_symbols[] = | |
6423 { | |
6424 { "@PROGRAM@", (void *) 0 }, | |
6425 _LT_EOF | |
6426 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6427 cat <<\_LT_EOF >> conftest.$ac_ext | |
6428 {0, (void *) 0} | |
6429 }; | |
6430 | |
6431 /* This works around a problem in FreeBSD linker */ | |
6432 #ifdef FREEBSD_WORKAROUND | |
6433 static const void *lt_preloaded_setup() { | |
6434 return lt__PROGRAM__LTX_preloaded_symbols; | |
6435 } | |
6436 #endif | |
6437 | |
6438 #ifdef __cplusplus | |
6439 } | |
6440 #endif | |
6441 _LT_EOF | |
6442 # Now try linking the two files. | |
6443 mv conftest.$ac_objext conftstm.$ac_objext | |
6444 lt_save_LIBS="$LIBS" | |
6445 lt_save_CFLAGS="$CFLAGS" | |
6446 LIBS="conftstm.$ac_objext" | |
6447 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6449 (eval $ac_link) 2>&5 | |
6450 ac_status=$? | |
6451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6452 test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
6453 pipe_works=yes | |
6454 fi | |
6455 LIBS="$lt_save_LIBS" | |
6456 CFLAGS="$lt_save_CFLAGS" | |
6457 else | |
6458 echo "cannot find nm_test_func in $nlist" >&5 | |
6459 fi | |
6460 else | |
6461 echo "cannot find nm_test_var in $nlist" >&5 | |
6462 fi | |
6463 else | |
6464 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6465 fi | |
6466 else | |
6467 echo "$progname: failed program was:" >&5 | |
6468 cat conftest.$ac_ext >&5 | |
6469 fi | |
6470 rm -rf conftest* conftst* | |
6471 | |
6472 # Do not use the global_symbol_pipe unless it works. | |
6473 if test "$pipe_works" = yes; then | |
6474 break | |
6475 else | |
6476 lt_cv_sys_global_symbol_pipe= | |
6477 fi | |
6478 done | |
6479 | |
6480 fi | |
6481 | |
6482 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6483 lt_cv_sys_global_symbol_to_cdecl= | |
6484 fi | |
6485 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6487 $as_echo "failed" >&6; } | |
6488 else | |
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6490 $as_echo "ok" >&6; } | |
6491 fi | |
6492 | |
6493 | |
6494 | |
6495 | |
6496 | |
6497 | |
6498 | |
6499 | |
6500 | |
6501 | |
6502 | |
6503 | |
6504 | |
6505 | |
6506 | |
6507 | |
6508 | |
6509 | |
6510 | |
6511 | |
6512 | |
6513 | |
6514 # Check whether --enable-libtool-lock was given. | |
6515 if test "${enable_libtool_lock+set}" = set; then : | |
6516 enableval=$enable_libtool_lock; | |
6517 fi | |
6518 | |
6519 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6520 | |
6521 # Some flags need to be propagated to the compiler or linker for good | |
6522 # libtool support. | |
6523 case $host in | |
6524 ia64-*-hpux*) | |
6525 # Find out which ABI we are using. | |
6526 echo 'int i;' > conftest.$ac_ext | |
6527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6528 (eval $ac_compile) 2>&5 | |
6529 ac_status=$? | |
6530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6531 test $ac_status = 0; }; then | |
6532 case `/usr/bin/file conftest.$ac_objext` in | |
6533 *ELF-32*) | |
6534 HPUX_IA64_MODE="32" | |
6535 ;; | |
6536 *ELF-64*) | |
6537 HPUX_IA64_MODE="64" | |
6538 ;; | |
6539 esac | |
6540 fi | |
6541 rm -rf conftest* | |
6542 ;; | |
6543 *-*-irix6*) | |
6544 # Find out which ABI we are using. | |
6545 echo '#line 6545 "configure"' > conftest.$ac_ext | |
6546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6547 (eval $ac_compile) 2>&5 | |
6548 ac_status=$? | |
6549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6550 test $ac_status = 0; }; then | |
6551 if test "$lt_cv_prog_gnu_ld" = yes; then | |
6552 case `/usr/bin/file conftest.$ac_objext` in | |
6553 *32-bit*) | |
6554 LD="${LD-ld} -melf32bsmip" | |
6555 ;; | |
6556 *N32*) | |
6557 LD="${LD-ld} -melf32bmipn32" | |
6558 ;; | |
6559 *64-bit*) | |
6560 LD="${LD-ld} -melf64bmip" | |
6561 ;; | |
6562 esac | |
6563 else | |
6564 case `/usr/bin/file conftest.$ac_objext` in | |
6565 *32-bit*) | |
6566 LD="${LD-ld} -32" | |
6567 ;; | |
6568 *N32*) | |
6569 LD="${LD-ld} -n32" | |
6570 ;; | |
6571 *64-bit*) | |
6572 LD="${LD-ld} -64" | |
6573 ;; | |
6574 esac | |
6575 fi | |
6576 fi | |
6577 rm -rf conftest* | |
6578 ;; | |
6579 | |
6580 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6581 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6582 # Find out which ABI we are using. | |
6583 echo 'int i;' > conftest.$ac_ext | |
6584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6585 (eval $ac_compile) 2>&5 | |
6586 ac_status=$? | |
6587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6588 test $ac_status = 0; }; then | |
6589 case `/usr/bin/file conftest.o` in | |
6590 *32-bit*) | |
6591 case $host in | |
6592 x86_64-*kfreebsd*-gnu) | |
6593 LD="${LD-ld} -m elf_i386_fbsd" | |
6594 ;; | |
6595 x86_64-*linux*) | |
6596 LD="${LD-ld} -m elf_i386" | |
6597 ;; | |
6598 ppc64-*linux*|powerpc64-*linux*) | |
6599 LD="${LD-ld} -m elf32ppclinux" | |
6600 ;; | |
6601 s390x-*linux*) | |
6602 LD="${LD-ld} -m elf_s390" | |
6603 ;; | |
6604 sparc64-*linux*) | |
6605 LD="${LD-ld} -m elf32_sparc" | |
6606 ;; | |
6607 esac | |
6608 ;; | |
6609 *64-bit*) | |
6610 case $host in | |
6611 x86_64-*kfreebsd*-gnu) | |
6612 LD="${LD-ld} -m elf_x86_64_fbsd" | |
6613 ;; | |
6614 x86_64-*linux*) | |
6615 LD="${LD-ld} -m elf_x86_64" | |
6616 ;; | |
6617 ppc*-*linux*|powerpc*-*linux*) | |
6618 LD="${LD-ld} -m elf64ppc" | |
6619 ;; | |
6620 s390*-*linux*|s390*-*tpf*) | |
6621 LD="${LD-ld} -m elf64_s390" | |
6622 ;; | |
6623 sparc*-*linux*) | |
6624 LD="${LD-ld} -m elf64_sparc" | |
6625 ;; | |
6626 esac | |
6627 ;; | |
6628 esac | |
6629 fi | |
6630 rm -rf conftest* | |
6631 ;; | |
6632 | |
6633 *-*-sco3.2v5*) | |
6634 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6635 SAVE_CFLAGS="$CFLAGS" | |
6636 CFLAGS="$CFLAGS -belf" | |
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
6638 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6639 if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
6640 $as_echo_n "(cached) " >&6 | |
6641 else | |
6642 ac_ext=c | |
6643 ac_cpp='$CPP $CPPFLAGS' | |
6644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6646 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6647 | |
6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6649 /* end confdefs.h. */ | |
6650 | |
6651 int | |
6652 main () | |
6653 { | |
6654 | |
6655 ; | |
6656 return 0; | |
6657 } | |
6658 _ACEOF | |
6659 if ac_fn_c_try_link "$LINENO"; then : | |
6660 lt_cv_cc_needs_belf=yes | |
6661 else | |
6662 lt_cv_cc_needs_belf=no | |
6663 fi | |
6664 rm -f core conftest.err conftest.$ac_objext \ | |
6665 conftest$ac_exeext conftest.$ac_ext | |
6666 ac_ext=c | |
6667 ac_cpp='$CPP $CPPFLAGS' | |
6668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6670 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6671 | |
6672 fi | |
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
6674 $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6675 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6676 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6677 CFLAGS="$SAVE_CFLAGS" | |
6678 fi | |
6679 ;; | |
6680 sparc*-*solaris*) | |
6681 # Find out which ABI we are using. | |
6682 echo 'int i;' > conftest.$ac_ext | |
6683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6684 (eval $ac_compile) 2>&5 | |
6685 ac_status=$? | |
6686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6687 test $ac_status = 0; }; then | |
6688 case `/usr/bin/file conftest.o` in | |
6689 *64-bit*) | |
6690 case $lt_cv_prog_gnu_ld in | |
6691 yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6692 *) | |
6693 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6694 LD="${LD-ld} -64" | |
6695 fi | |
6696 ;; | |
6697 esac | |
6698 ;; | |
6699 esac | |
6700 fi | |
6701 rm -rf conftest* | |
6702 ;; | |
6703 esac | |
6704 | |
6705 need_locks="$enable_libtool_lock" | |
6706 | |
6707 | |
6708 case $host_os in | |
6709 rhapsody* | darwin*) | |
6710 if test -n "$ac_tool_prefix"; then | |
6711 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6712 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6714 $as_echo_n "checking for $ac_word... " >&6; } | |
6715 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
6716 $as_echo_n "(cached) " >&6 | |
6717 else | |
6718 if test -n "$DSYMUTIL"; then | |
6719 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6720 else | |
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6722 for as_dir in $PATH | |
6723 do | |
6724 IFS=$as_save_IFS | |
6725 test -z "$as_dir" && as_dir=. | |
6726 for ac_exec_ext in '' $ac_executable_extensions; do | |
6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6728 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6730 break 2 | |
6731 fi | |
6732 done | |
6733 done | |
6734 IFS=$as_save_IFS | |
6735 | |
6736 fi | |
6737 fi | |
6738 DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6739 if test -n "$DSYMUTIL"; then | |
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
6741 $as_echo "$DSYMUTIL" >&6; } | |
6742 else | |
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6744 $as_echo "no" >&6; } | |
6745 fi | |
6746 | |
6747 | |
6748 fi | |
6749 if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6750 ac_ct_DSYMUTIL=$DSYMUTIL | |
6751 # Extract the first word of "dsymutil", so it can be a program name with args. | |
6752 set dummy dsymutil; ac_word=$2 | |
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6754 $as_echo_n "checking for $ac_word... " >&6; } | |
6755 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
6756 $as_echo_n "(cached) " >&6 | |
6757 else | |
6758 if test -n "$ac_ct_DSYMUTIL"; then | |
6759 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6760 else | |
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6762 for as_dir in $PATH | |
6763 do | |
6764 IFS=$as_save_IFS | |
6765 test -z "$as_dir" && as_dir=. | |
6766 for ac_exec_ext in '' $ac_executable_extensions; do | |
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6768 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6770 break 2 | |
6771 fi | |
6772 done | |
6773 done | |
6774 IFS=$as_save_IFS | |
6775 | |
6776 fi | |
6777 fi | |
6778 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6779 if test -n "$ac_ct_DSYMUTIL"; then | |
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
6781 $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
6782 else | |
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6784 $as_echo "no" >&6; } | |
6785 fi | |
6786 | |
6787 if test "x$ac_ct_DSYMUTIL" = x; then | |
6788 DSYMUTIL=":" | |
6789 else | |
6790 case $cross_compiling:$ac_tool_warned in | |
6791 yes:) | |
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6794 ac_tool_warned=yes ;; | |
6795 esac | |
6796 DSYMUTIL=$ac_ct_DSYMUTIL | |
6797 fi | |
6798 else | |
6799 DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6800 fi | |
6801 | |
6802 if test -n "$ac_tool_prefix"; then | |
6803 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6804 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6806 $as_echo_n "checking for $ac_word... " >&6; } | |
6807 if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
6808 $as_echo_n "(cached) " >&6 | |
6809 else | |
6810 if test -n "$NMEDIT"; then | |
6811 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6812 else | |
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6814 for as_dir in $PATH | |
6815 do | |
6816 IFS=$as_save_IFS | |
6817 test -z "$as_dir" && as_dir=. | |
6818 for ac_exec_ext in '' $ac_executable_extensions; do | |
6819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6820 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
6821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6822 break 2 | |
6823 fi | |
6824 done | |
6825 done | |
6826 IFS=$as_save_IFS | |
6827 | |
6828 fi | |
6829 fi | |
6830 NMEDIT=$ac_cv_prog_NMEDIT | |
6831 if test -n "$NMEDIT"; then | |
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
6833 $as_echo "$NMEDIT" >&6; } | |
6834 else | |
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6836 $as_echo "no" >&6; } | |
6837 fi | |
6838 | |
6839 | |
6840 fi | |
6841 if test -z "$ac_cv_prog_NMEDIT"; then | |
6842 ac_ct_NMEDIT=$NMEDIT | |
6843 # Extract the first word of "nmedit", so it can be a program name with args. | |
6844 set dummy nmedit; ac_word=$2 | |
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6846 $as_echo_n "checking for $ac_word... " >&6; } | |
6847 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
6848 $as_echo_n "(cached) " >&6 | |
6849 else | |
6850 if test -n "$ac_ct_NMEDIT"; then | |
6851 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6852 else | |
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6854 for as_dir in $PATH | |
6855 do | |
6856 IFS=$as_save_IFS | |
6857 test -z "$as_dir" && as_dir=. | |
6858 for ac_exec_ext in '' $ac_executable_extensions; do | |
6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6860 ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6862 break 2 | |
6863 fi | |
6864 done | |
6865 done | |
6866 IFS=$as_save_IFS | |
6867 | |
6868 fi | |
6869 fi | |
6870 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6871 if test -n "$ac_ct_NMEDIT"; then | |
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
6873 $as_echo "$ac_ct_NMEDIT" >&6; } | |
6874 else | |
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6876 $as_echo "no" >&6; } | |
6877 fi | |
6878 | |
6879 if test "x$ac_ct_NMEDIT" = x; then | |
6880 NMEDIT=":" | |
6881 else | |
6882 case $cross_compiling:$ac_tool_warned in | |
6883 yes:) | |
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6886 ac_tool_warned=yes ;; | |
6887 esac | |
6888 NMEDIT=$ac_ct_NMEDIT | |
6889 fi | |
6890 else | |
6891 NMEDIT="$ac_cv_prog_NMEDIT" | |
6892 fi | |
6893 | |
6894 if test -n "$ac_tool_prefix"; then | |
6895 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6896 set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6898 $as_echo_n "checking for $ac_word... " >&6; } | |
6899 if test "${ac_cv_prog_LIPO+set}" = set; then : | |
6900 $as_echo_n "(cached) " >&6 | |
6901 else | |
6902 if test -n "$LIPO"; then | |
6903 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6904 else | |
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6906 for as_dir in $PATH | |
6907 do | |
6908 IFS=$as_save_IFS | |
6909 test -z "$as_dir" && as_dir=. | |
6910 for ac_exec_ext in '' $ac_executable_extensions; do | |
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6912 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6914 break 2 | |
6915 fi | |
6916 done | |
6917 done | |
6918 IFS=$as_save_IFS | |
6919 | |
6920 fi | |
6921 fi | |
6922 LIPO=$ac_cv_prog_LIPO | |
6923 if test -n "$LIPO"; then | |
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
6925 $as_echo "$LIPO" >&6; } | |
6926 else | |
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6928 $as_echo "no" >&6; } | |
6929 fi | |
6930 | |
6931 | |
6932 fi | |
6933 if test -z "$ac_cv_prog_LIPO"; then | |
6934 ac_ct_LIPO=$LIPO | |
6935 # Extract the first word of "lipo", so it can be a program name with args. | |
6936 set dummy lipo; ac_word=$2 | |
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6938 $as_echo_n "checking for $ac_word... " >&6; } | |
6939 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
6940 $as_echo_n "(cached) " >&6 | |
6941 else | |
6942 if test -n "$ac_ct_LIPO"; then | |
6943 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6944 else | |
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6946 for as_dir in $PATH | |
6947 do | |
6948 IFS=$as_save_IFS | |
6949 test -z "$as_dir" && as_dir=. | |
6950 for ac_exec_ext in '' $ac_executable_extensions; do | |
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6952 ac_cv_prog_ac_ct_LIPO="lipo" | |
6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6954 break 2 | |
6955 fi | |
6956 done | |
6957 done | |
6958 IFS=$as_save_IFS | |
6959 | |
6960 fi | |
6961 fi | |
6962 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6963 if test -n "$ac_ct_LIPO"; then | |
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
6965 $as_echo "$ac_ct_LIPO" >&6; } | |
6966 else | |
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6968 $as_echo "no" >&6; } | |
6969 fi | |
6970 | |
6971 if test "x$ac_ct_LIPO" = x; then | |
6972 LIPO=":" | |
6973 else | |
6974 case $cross_compiling:$ac_tool_warned in | |
6975 yes:) | |
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6978 ac_tool_warned=yes ;; | |
6979 esac | |
6980 LIPO=$ac_ct_LIPO | |
6981 fi | |
6982 else | |
6983 LIPO="$ac_cv_prog_LIPO" | |
6984 fi | |
6985 | |
6986 if test -n "$ac_tool_prefix"; then | |
6987 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6988 set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6990 $as_echo_n "checking for $ac_word... " >&6; } | |
6991 if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
6992 $as_echo_n "(cached) " >&6 | |
6993 else | |
6994 if test -n "$OTOOL"; then | |
6995 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6996 else | |
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6998 for as_dir in $PATH | |
6999 do | |
7000 IFS=$as_save_IFS | |
7001 test -z "$as_dir" && as_dir=. | |
7002 for ac_exec_ext in '' $ac_executable_extensions; do | |
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7004 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7006 break 2 | |
7007 fi | |
7008 done | |
7009 done | |
7010 IFS=$as_save_IFS | |
7011 | |
7012 fi | |
7013 fi | |
7014 OTOOL=$ac_cv_prog_OTOOL | |
7015 if test -n "$OTOOL"; then | |
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7017 $as_echo "$OTOOL" >&6; } | |
7018 else | |
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7020 $as_echo "no" >&6; } | |
7021 fi | |
7022 | |
7023 | |
7024 fi | |
7025 if test -z "$ac_cv_prog_OTOOL"; then | |
7026 ac_ct_OTOOL=$OTOOL | |
7027 # Extract the first word of "otool", so it can be a program name with args. | |
7028 set dummy otool; ac_word=$2 | |
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7030 $as_echo_n "checking for $ac_word... " >&6; } | |
7031 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
7032 $as_echo_n "(cached) " >&6 | |
7033 else | |
7034 if test -n "$ac_ct_OTOOL"; then | |
7035 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7036 else | |
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7038 for as_dir in $PATH | |
7039 do | |
7040 IFS=$as_save_IFS | |
7041 test -z "$as_dir" && as_dir=. | |
7042 for ac_exec_ext in '' $ac_executable_extensions; do | |
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7044 ac_cv_prog_ac_ct_OTOOL="otool" | |
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7046 break 2 | |
7047 fi | |
7048 done | |
7049 done | |
7050 IFS=$as_save_IFS | |
7051 | |
7052 fi | |
7053 fi | |
7054 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7055 if test -n "$ac_ct_OTOOL"; then | |
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7057 $as_echo "$ac_ct_OTOOL" >&6; } | |
7058 else | |
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7060 $as_echo "no" >&6; } | |
7061 fi | |
7062 | |
7063 if test "x$ac_ct_OTOOL" = x; then | |
7064 OTOOL=":" | |
7065 else | |
7066 case $cross_compiling:$ac_tool_warned in | |
7067 yes:) | |
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7070 ac_tool_warned=yes ;; | |
7071 esac | |
7072 OTOOL=$ac_ct_OTOOL | |
7073 fi | |
7074 else | |
7075 OTOOL="$ac_cv_prog_OTOOL" | |
7076 fi | |
7077 | |
7078 if test -n "$ac_tool_prefix"; then | |
7079 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7080 set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7082 $as_echo_n "checking for $ac_word... " >&6; } | |
7083 if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
7084 $as_echo_n "(cached) " >&6 | |
7085 else | |
7086 if test -n "$OTOOL64"; then | |
7087 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7088 else | |
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7090 for as_dir in $PATH | |
7091 do | |
7092 IFS=$as_save_IFS | |
7093 test -z "$as_dir" && as_dir=. | |
7094 for ac_exec_ext in '' $ac_executable_extensions; do | |
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7096 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7098 break 2 | |
7099 fi | |
7100 done | |
7101 done | |
7102 IFS=$as_save_IFS | |
7103 | |
7104 fi | |
7105 fi | |
7106 OTOOL64=$ac_cv_prog_OTOOL64 | |
7107 if test -n "$OTOOL64"; then | |
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7109 $as_echo "$OTOOL64" >&6; } | |
7110 else | |
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7112 $as_echo "no" >&6; } | |
7113 fi | |
7114 | |
7115 | |
7116 fi | |
7117 if test -z "$ac_cv_prog_OTOOL64"; then | |
7118 ac_ct_OTOOL64=$OTOOL64 | |
7119 # Extract the first word of "otool64", so it can be a program name with args. | |
7120 set dummy otool64; ac_word=$2 | |
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7122 $as_echo_n "checking for $ac_word... " >&6; } | |
7123 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
7124 $as_echo_n "(cached) " >&6 | |
7125 else | |
7126 if test -n "$ac_ct_OTOOL64"; then | |
7127 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7128 else | |
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7130 for as_dir in $PATH | |
7131 do | |
7132 IFS=$as_save_IFS | |
7133 test -z "$as_dir" && as_dir=. | |
7134 for ac_exec_ext in '' $ac_executable_extensions; do | |
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7136 ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7138 break 2 | |
7139 fi | |
7140 done | |
7141 done | |
7142 IFS=$as_save_IFS | |
7143 | |
7144 fi | |
7145 fi | |
7146 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7147 if test -n "$ac_ct_OTOOL64"; then | |
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7149 $as_echo "$ac_ct_OTOOL64" >&6; } | |
7150 else | |
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7152 $as_echo "no" >&6; } | |
7153 fi | |
7154 | |
7155 if test "x$ac_ct_OTOOL64" = x; then | |
7156 OTOOL64=":" | |
7157 else | |
7158 case $cross_compiling:$ac_tool_warned in | |
7159 yes:) | |
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7162 ac_tool_warned=yes ;; | |
7163 esac | |
7164 OTOOL64=$ac_ct_OTOOL64 | |
7165 fi | |
7166 else | |
7167 OTOOL64="$ac_cv_prog_OTOOL64" | |
7168 fi | |
7169 | |
7170 | |
7171 | |
7172 | |
7173 | |
7174 | |
7175 | |
7176 | |
7177 | |
7178 | |
7179 | |
7180 | |
7181 | |
7182 | |
7183 | |
7184 | |
7185 | |
7186 | |
7187 | |
7188 | |
7189 | |
7190 | |
7191 | |
7192 | |
7193 | |
7194 | |
7195 | |
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7197 $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7198 if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
7199 $as_echo_n "(cached) " >&6 | |
7200 else | |
7201 lt_cv_apple_cc_single_mod=no | |
7202 if test -z "${LT_MULTI_MODULE}"; then | |
7203 # By default we will add the -single_module flag. You can override | |
7204 # by either setting the environment variable LT_MULTI_MODULE | |
7205 # non-empty at configure time, or by adding -multi_module to the | |
7206 # link flags. | |
7207 rm -rf libconftest.dylib* | |
7208 echo "int foo(void){return 1;}" > conftest.c | |
7209 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7210 -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7211 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7212 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7213 _lt_result=$? | |
7214 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7215 lt_cv_apple_cc_single_mod=yes | |
7216 else | |
7217 cat conftest.err >&5 | |
7218 fi | |
7219 rm -rf libconftest.dylib* | |
7220 rm -f conftest.* | |
7221 fi | |
7222 fi | |
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7224 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7226 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7227 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
7228 $as_echo_n "(cached) " >&6 | |
7229 else | |
7230 lt_cv_ld_exported_symbols_list=no | |
7231 save_LDFLAGS=$LDFLAGS | |
7232 echo "_main" > conftest.sym | |
7233 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7235 /* end confdefs.h. */ | |
7236 | |
7237 int | |
7238 main () | |
7239 { | |
7240 | |
7241 ; | |
7242 return 0; | |
7243 } | |
7244 _ACEOF | |
7245 if ac_fn_c_try_link "$LINENO"; then : | |
7246 lt_cv_ld_exported_symbols_list=yes | |
7247 else | |
7248 lt_cv_ld_exported_symbols_list=no | |
7249 fi | |
7250 rm -f core conftest.err conftest.$ac_objext \ | |
7251 conftest$ac_exeext conftest.$ac_ext | |
7252 LDFLAGS="$save_LDFLAGS" | |
7253 | |
7254 fi | |
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7256 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7257 case $host_os in | |
7258 rhapsody* | darwin1.[012]) | |
7259 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7260 darwin1.*) | |
7261 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7262 darwin*) # darwin 5.x on | |
7263 # if running on 10.5 or later, the deployment target defaults | |
7264 # to the OS version, if on x86, and 10.4, the deployment | |
7265 # target defaults to 10.4. Don't you love it? | |
7266 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7267 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7268 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7269 10.[012]*) | |
7270 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7271 10.*) | |
7272 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7273 esac | |
7274 ;; | |
7275 esac | |
7276 if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7277 _lt_dar_single_mod='$single_module' | |
7278 fi | |
7279 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7280 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7281 else | |
7282 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7283 fi | |
7284 if test "$DSYMUTIL" != ":"; then | |
7285 _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7286 else | |
7287 _lt_dsymutil= | |
7288 fi | |
7289 ;; | |
7290 esac | |
7291 | |
7292 for ac_header in dlfcn.h | |
7293 do : | |
7294 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7295 " | |
7296 if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
7297 cat >>confdefs.h <<_ACEOF | |
7298 #define HAVE_DLFCN_H 1 | |
7299 _ACEOF | |
7300 | |
7301 fi | |
7302 | |
7303 done | |
7304 | |
7305 | |
7306 | |
7307 # Set options | |
7308 | |
7309 | |
7310 | |
7311 enable_dlopen=no | |
7312 | |
7313 | |
7314 enable_win32_dll=no | |
7315 | |
7316 | |
7317 # Check whether --enable-shared was given. | |
7318 if test "${enable_shared+set}" = set; then : | |
7319 enableval=$enable_shared; p=${PACKAGE-default} | |
7320 case $enableval in | |
7321 yes) enable_shared=yes ;; | |
7322 no) enable_shared=no ;; | |
7323 *) | |
7324 enable_shared=no | |
7325 # Look at the argument we got. We use all the common list separators. | |
7326 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7327 for pkg in $enableval; do | |
7328 IFS="$lt_save_ifs" | |
7329 if test "X$pkg" = "X$p"; then | |
7330 enable_shared=yes | |
7331 fi | |
7332 done | |
7333 IFS="$lt_save_ifs" | |
7334 ;; | |
7335 esac | |
7336 else | |
7337 enable_shared=yes | |
7338 fi | |
7339 | |
7340 | |
7341 | |
7342 | |
7343 | |
7344 | |
7345 | |
7346 | |
7347 | |
7348 # Check whether --enable-static was given. | |
7349 if test "${enable_static+set}" = set; then : | |
7350 enableval=$enable_static; p=${PACKAGE-default} | |
7351 case $enableval in | |
7352 yes) enable_static=yes ;; | |
7353 no) enable_static=no ;; | |
7354 *) | |
7355 enable_static=no | |
7356 # Look at the argument we got. We use all the common list separators. | |
7357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7358 for pkg in $enableval; do | |
7359 IFS="$lt_save_ifs" | |
7360 if test "X$pkg" = "X$p"; then | |
7361 enable_static=yes | |
7362 fi | |
7363 done | |
7364 IFS="$lt_save_ifs" | |
7365 ;; | |
7366 esac | |
7367 else | |
7368 enable_static=yes | |
7369 fi | |
7370 | |
7371 | |
7372 | |
7373 | |
7374 | |
7375 | |
7376 | |
7377 | |
7378 | |
7379 | |
7380 # Check whether --with-pic was given. | |
7381 if test "${with_pic+set}" = set; then : | |
7382 withval=$with_pic; pic_mode="$withval" | |
7383 else | |
7384 pic_mode=default | |
7385 fi | |
7386 | |
7387 | |
7388 test -z "$pic_mode" && pic_mode=default | |
7389 | |
7390 | |
7391 | |
7392 | |
7393 | |
7394 | |
7395 | |
7396 # Check whether --enable-fast-install was given. | |
7397 if test "${enable_fast_install+set}" = set; then : | |
7398 enableval=$enable_fast_install; p=${PACKAGE-default} | |
7399 case $enableval in | |
7400 yes) enable_fast_install=yes ;; | |
7401 no) enable_fast_install=no ;; | |
7402 *) | |
7403 enable_fast_install=no | |
7404 # Look at the argument we got. We use all the common list separators. | |
7405 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7406 for pkg in $enableval; do | |
7407 IFS="$lt_save_ifs" | |
7408 if test "X$pkg" = "X$p"; then | |
7409 enable_fast_install=yes | |
7410 fi | |
7411 done | |
7412 IFS="$lt_save_ifs" | |
7413 ;; | |
7414 esac | |
7415 else | |
7416 enable_fast_install=yes | |
7417 fi | |
7418 | |
7419 | |
7420 | |
7421 | |
7422 | |
7423 | |
7424 | |
7425 | |
7426 | |
7427 | |
7428 | |
7429 # This can be used to rebuild libtool when needed | |
7430 LIBTOOL_DEPS="$ltmain" | |
7431 | |
7432 # Always use our own libtool. | |
7433 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7434 | |
7435 | |
7436 | |
7437 | |
7438 | |
7439 | |
7440 | |
7441 | |
7442 | |
7443 | |
7444 | |
7445 | |
7446 | |
7447 | |
7448 | |
7449 | |
7450 | |
7451 | |
7452 | |
7453 | |
7454 | |
7455 | |
7456 | |
7457 | |
7458 | |
7459 test -z "$LN_S" && LN_S="ln -s" | |
7460 | |
7461 | |
7462 | |
7463 | |
7464 | |
7465 | |
7466 | |
7467 | |
7468 | |
7469 | |
7470 | |
7471 | |
7472 | |
7473 | |
7474 if test -n "${ZSH_VERSION+set}" ; then | |
7475 setopt NO_GLOB_SUBST | |
7476 fi | |
7477 | |
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7479 $as_echo_n "checking for objdir... " >&6; } | |
7480 if test "${lt_cv_objdir+set}" = set; then : | |
7481 $as_echo_n "(cached) " >&6 | |
7482 else | |
7483 rm -f .libs 2>/dev/null | |
7484 mkdir .libs 2>/dev/null | |
7485 if test -d .libs; then | |
7486 lt_cv_objdir=.libs | |
7487 else | |
7488 # MS-DOS does not allow filenames that begin with a dot. | |
7489 lt_cv_objdir=_libs | |
7490 fi | |
7491 rmdir .libs 2>/dev/null | |
7492 fi | |
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7494 $as_echo "$lt_cv_objdir" >&6; } | |
7495 objdir=$lt_cv_objdir | |
7496 | |
7497 | |
7498 | |
7499 | |
7500 | |
7501 cat >>confdefs.h <<_ACEOF | |
7502 #define LT_OBJDIR "$lt_cv_objdir/" | |
7503 _ACEOF | |
7504 | |
7505 | |
7506 | |
7507 | |
7508 | |
7509 | |
7510 | |
7511 | |
7512 | |
7513 | |
7514 | |
7515 | |
7516 | |
7517 | |
7518 | |
7519 | |
7520 | |
7521 case $host_os in | |
7522 aix3*) | |
7523 # AIX sometimes has problems with the GCC collect2 program. For some | |
7524 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7525 # vanish in a puff of smoke. | |
7526 if test "X${COLLECT_NAMES+set}" != Xset; then | |
7527 COLLECT_NAMES= | |
7528 export COLLECT_NAMES | |
7529 fi | |
7530 ;; | |
7531 esac | |
7532 | |
7533 # Sed substitution that helps us do robust quoting. It backslashifies | |
7534 # metacharacters that are still active within double-quoted strings. | |
7535 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
7536 | |
7537 # Same as above, but do not quote variable references. | |
7538 double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
7539 | |
7540 # Sed substitution to delay expansion of an escaped shell variable in a | |
7541 # double_quote_subst'ed string. | |
7542 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
7543 | |
7544 # Sed substitution to delay expansion of an escaped single quote. | |
7545 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
7546 | |
7547 # Sed substitution to avoid accidental globbing in evaled expressions | |
7548 no_glob_subst='s/\*/\\\*/g' | |
7549 | |
7550 # Global variables: | |
7551 ofile=libtool | |
7552 can_build_shared=yes | |
7553 | |
7554 # All known linkers require a `.a' archive for static linking (except MSVC, | |
7555 # which needs '.lib'). | |
7556 libext=a | |
7557 | |
7558 with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7559 | |
7560 old_CC="$CC" | |
7561 old_CFLAGS="$CFLAGS" | |
7562 | |
7563 # Set sane defaults for various variables | |
7564 test -z "$CC" && CC=cc | |
7565 test -z "$LTCC" && LTCC=$CC | |
7566 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7567 test -z "$LD" && LD=ld | |
7568 test -z "$ac_objext" && ac_objext=o | |
7569 | |
7570 for cc_temp in $compiler""; do | |
7571 case $cc_temp in | |
7572 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7573 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7574 \-*) ;; | |
7575 *) break;; | |
7576 esac | |
7577 done | |
7578 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7579 | |
7580 | |
7581 # Only perform the check for file, if the check method requires it | |
7582 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7583 case $deplibs_check_method in | |
7584 file_magic*) | |
7585 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
7587 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7588 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7589 $as_echo_n "(cached) " >&6 | |
7590 else | |
7591 case $MAGIC_CMD in | |
7592 [\\/*] | ?:[\\/]*) | |
7593 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7594 ;; | |
7595 *) | |
7596 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7598 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7599 for ac_dir in $ac_dummy; do | |
7600 IFS="$lt_save_ifs" | |
7601 test -z "$ac_dir" && ac_dir=. | |
7602 if test -f $ac_dir/${ac_tool_prefix}file; then | |
7603 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7604 if test -n "$file_magic_test_file"; then | |
7605 case $deplibs_check_method in | |
7606 "file_magic "*) | |
7607 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7609 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7610 $EGREP "$file_magic_regex" > /dev/null; then | |
7611 : | |
7612 else | |
7613 cat <<_LT_EOF 1>&2 | |
7614 | |
7615 *** Warning: the command libtool uses to detect shared libraries, | |
7616 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7617 *** The result is that libtool may fail to recognize shared libraries | |
7618 *** as such. This will affect the creation of libtool libraries that | |
7619 *** depend on shared libraries, but programs linked with such libtool | |
7620 *** libraries will work regardless of this problem. Nevertheless, you | |
7621 *** may want to report the problem to your system manager and/or to | |
7622 *** bug-libtool@gnu.org | |
7623 | |
7624 _LT_EOF | |
7625 fi ;; | |
7626 esac | |
7627 fi | |
7628 break | |
7629 fi | |
7630 done | |
7631 IFS="$lt_save_ifs" | |
7632 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7633 ;; | |
7634 esac | |
7635 fi | |
7636 | |
7637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7638 if test -n "$MAGIC_CMD"; then | |
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
7640 $as_echo "$MAGIC_CMD" >&6; } | |
7641 else | |
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7643 $as_echo "no" >&6; } | |
7644 fi | |
7645 | |
7646 | |
7647 | |
7648 | |
7649 | |
7650 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7651 if test -n "$ac_tool_prefix"; then | |
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
7653 $as_echo_n "checking for file... " >&6; } | |
7654 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7655 $as_echo_n "(cached) " >&6 | |
7656 else | |
7657 case $MAGIC_CMD in | |
7658 [\\/*] | ?:[\\/]*) | |
7659 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7660 ;; | |
7661 *) | |
7662 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7664 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7665 for ac_dir in $ac_dummy; do | |
7666 IFS="$lt_save_ifs" | |
7667 test -z "$ac_dir" && ac_dir=. | |
7668 if test -f $ac_dir/file; then | |
7669 lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7670 if test -n "$file_magic_test_file"; then | |
7671 case $deplibs_check_method in | |
7672 "file_magic "*) | |
7673 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7674 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7675 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7676 $EGREP "$file_magic_regex" > /dev/null; then | |
7677 : | |
7678 else | |
7679 cat <<_LT_EOF 1>&2 | |
7680 | |
7681 *** Warning: the command libtool uses to detect shared libraries, | |
7682 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7683 *** The result is that libtool may fail to recognize shared libraries | |
7684 *** as such. This will affect the creation of libtool libraries that | |
7685 *** depend on shared libraries, but programs linked with such libtool | |
7686 *** libraries will work regardless of this problem. Nevertheless, you | |
7687 *** may want to report the problem to your system manager and/or to | |
7688 *** bug-libtool@gnu.org | |
7689 | |
7690 _LT_EOF | |
7691 fi ;; | |
7692 esac | |
7693 fi | |
7694 break | |
7695 fi | |
7696 done | |
7697 IFS="$lt_save_ifs" | |
7698 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7699 ;; | |
7700 esac | |
7701 fi | |
7702 | |
7703 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7704 if test -n "$MAGIC_CMD"; then | |
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
7706 $as_echo "$MAGIC_CMD" >&6; } | |
7707 else | |
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7709 $as_echo "no" >&6; } | |
7710 fi | |
7711 | |
7712 | |
7713 else | |
7714 MAGIC_CMD=: | |
7715 fi | |
7716 fi | |
7717 | |
7718 fi | |
7719 ;; | |
7720 esac | |
7721 | |
7722 # Use C for the default configuration in the libtool script | |
7723 | |
7724 lt_save_CC="$CC" | |
7725 ac_ext=c | |
7726 ac_cpp='$CPP $CPPFLAGS' | |
7727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7729 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7730 | |
7731 | |
7732 # Source file extension for C test sources. | |
7733 ac_ext=c | |
7734 | |
7735 # Object file extension for compiled C test sources. | |
7736 objext=o | |
7737 objext=$objext | |
7738 | |
7739 # Code to be used in simple compile tests | |
7740 lt_simple_compile_test_code="int some_variable = 0;" | |
7741 | |
7742 # Code to be used in simple link tests | |
7743 lt_simple_link_test_code='int main(){return(0);}' | |
7744 | |
7745 | |
7746 | |
7747 | |
7748 | |
7749 | |
7750 | |
7751 # If no C compiler was specified, use CC. | |
7752 LTCC=${LTCC-"$CC"} | |
7753 | |
7754 # If no C compiler flags were specified, use CFLAGS. | |
7755 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7756 | |
7757 # Allow CC to be a program name with arguments. | |
7758 compiler=$CC | |
7759 | |
7760 # Save the default compiler, since it gets overwritten when the other | |
7761 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7762 compiler_DEFAULT=$CC | |
7763 | |
7764 # save warnings/boilerplate of simple test code | |
7765 ac_outfile=conftest.$ac_objext | |
7766 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7767 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7768 _lt_compiler_boilerplate=`cat conftest.err` | |
7769 $RM conftest* | |
7770 | |
7771 ac_outfile=conftest.$ac_objext | |
7772 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7773 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7774 _lt_linker_boilerplate=`cat conftest.err` | |
7775 $RM -r conftest* | |
7776 | |
7777 | |
7778 ## CAVEAT EMPTOR: | |
7779 ## There is no encapsulation within the following macros, do not change | |
7780 ## the running order or otherwise move them around unless you know exactly | |
7781 ## what you are doing... | |
7782 if test -n "$compiler"; then | |
7783 | |
7784 lt_prog_compiler_no_builtin_flag= | |
7785 | |
7786 if test "$GCC" = yes; then | |
7787 lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
7788 | |
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
7790 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
7791 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
7792 $as_echo_n "(cached) " >&6 | |
7793 else | |
7794 lt_cv_prog_compiler_rtti_exceptions=no | |
7795 ac_outfile=conftest.$ac_objext | |
7796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7797 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7798 # Insert the option either (1) after the last *FLAGS variable, or | |
7799 # (2) before a word containing "conftest.", or (3) at the end. | |
7800 # Note that $ac_compile itself does not contain backslashes and begins | |
7801 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7802 # The option is referenced via a variable to avoid confusing sed. | |
7803 lt_compile=`echo "$ac_compile" | $SED \ | |
7804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7806 -e 's:$: $lt_compiler_flag:'` | |
7807 (eval echo "\"\$as_me:7807: $lt_compile\"" >&5) | |
7808 (eval "$lt_compile" 2>conftest.err) | |
7809 ac_status=$? | |
7810 cat conftest.err >&5 | |
7811 echo "$as_me:7811: \$? = $ac_status" >&5 | |
7812 if (exit $ac_status) && test -s "$ac_outfile"; then | |
7813 # The compiler can only warn and ignore the option if not recognized | |
7814 # So say no if there are warnings other than the usual output. | |
7815 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7817 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7818 lt_cv_prog_compiler_rtti_exceptions=yes | |
7819 fi | |
7820 fi | |
7821 $RM conftest* | |
7822 | |
7823 fi | |
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
7825 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
7826 | |
7827 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7828 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7829 else | |
7830 : | |
7831 fi | |
7832 | |
7833 fi | |
7834 | |
7835 | |
7836 | |
7837 | |
7838 | |
7839 | |
7840 lt_prog_compiler_wl= | |
7841 lt_prog_compiler_pic= | |
7842 lt_prog_compiler_static= | |
7843 | |
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
7845 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
7846 | |
7847 if test "$GCC" = yes; then | |
7848 lt_prog_compiler_wl='-Wl,' | |
7849 lt_prog_compiler_static='-static' | |
7850 | |
7851 case $host_os in | |
7852 aix*) | |
7853 # All AIX code is PIC. | |
7854 if test "$host_cpu" = ia64; then | |
7855 # AIX 5 now supports IA64 processor | |
7856 lt_prog_compiler_static='-Bstatic' | |
7857 fi | |
7858 ;; | |
7859 | |
7860 amigaos*) | |
7861 case $host_cpu in | |
7862 powerpc) | |
7863 # see comment about AmigaOS4 .so support | |
7864 lt_prog_compiler_pic='-fPIC' | |
7865 ;; | |
7866 m68k) | |
7867 # FIXME: we need at least 68020 code to build shared libraries, but | |
7868 # adding the `-m68020' flag to GCC prevents building anything better, | |
7869 # like `-m68040'. | |
7870 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7871 ;; | |
7872 esac | |
7873 ;; | |
7874 | |
7875 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
7876 # PIC is the default for these OSes. | |
7877 ;; | |
7878 | |
7879 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
7880 # This hack is so that the source file can tell whether it is being | |
7881 # built for inclusion in a dll (and should export symbols for example). | |
7882 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7883 # (--disable-auto-import) libraries | |
7884 lt_prog_compiler_pic='-DDLL_EXPORT' | |
7885 ;; | |
7886 | |
7887 darwin* | rhapsody*) | |
7888 # PIC is the default on this platform | |
7889 # Common symbols not allowed in MH_DYLIB files | |
7890 lt_prog_compiler_pic='-fno-common' | |
7891 ;; | |
7892 | |
7893 hpux*) | |
7894 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
7895 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7896 # sets the default TLS model and affects inlining. | |
7897 case $host_cpu in | |
7898 hppa*64*) | |
7899 # +Z the default | |
7900 ;; | |
7901 *) | |
7902 lt_prog_compiler_pic='-fPIC' | |
7903 ;; | |
7904 esac | |
7905 ;; | |
7906 | |
7907 interix[3-9]*) | |
7908 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7909 # Instead, we relocate shared libraries at runtime. | |
7910 ;; | |
7911 | |
7912 msdosdjgpp*) | |
7913 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7914 # on systems that don't support them. | |
7915 lt_prog_compiler_can_build_shared=no | |
7916 enable_shared=no | |
7917 ;; | |
7918 | |
7919 *nto* | *qnx*) | |
7920 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7921 # it will coredump. | |
7922 lt_prog_compiler_pic='-fPIC -shared' | |
7923 ;; | |
7924 | |
7925 sysv4*MP*) | |
7926 if test -d /usr/nec; then | |
7927 lt_prog_compiler_pic=-Kconform_pic | |
7928 fi | |
7929 ;; | |
7930 | |
7931 *) | |
7932 lt_prog_compiler_pic='-fPIC' | |
7933 ;; | |
7934 esac | |
7935 else | |
7936 # PORTME Check for flag to pass linker flags through the system compiler. | |
7937 case $host_os in | |
7938 aix*) | |
7939 lt_prog_compiler_wl='-Wl,' | |
7940 if test "$host_cpu" = ia64; then | |
7941 # AIX 5 now supports IA64 processor | |
7942 lt_prog_compiler_static='-Bstatic' | |
7943 else | |
7944 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7945 fi | |
7946 ;; | |
7947 | |
7948 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
7949 # This hack is so that the source file can tell whether it is being | |
7950 # built for inclusion in a dll (and should export symbols for example). | |
7951 lt_prog_compiler_pic='-DDLL_EXPORT' | |
7952 ;; | |
7953 | |
7954 hpux9* | hpux10* | hpux11*) | |
7955 lt_prog_compiler_wl='-Wl,' | |
7956 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7957 # not for PA HP-UX. | |
7958 case $host_cpu in | |
7959 hppa*64*|ia64*) | |
7960 # +Z the default | |
7961 ;; | |
7962 *) | |
7963 lt_prog_compiler_pic='+Z' | |
7964 ;; | |
7965 esac | |
7966 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7967 lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7968 ;; | |
7969 | |
7970 irix5* | irix6* | nonstopux*) | |
7971 lt_prog_compiler_wl='-Wl,' | |
7972 # PIC (with -KPIC) is the default. | |
7973 lt_prog_compiler_static='-non_shared' | |
7974 ;; | |
7975 | |
7976 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
7977 case $cc_basename in | |
7978 # old Intel for x86_64 which still supported -KPIC. | |
7979 ecc*) | |
7980 lt_prog_compiler_wl='-Wl,' | |
7981 lt_prog_compiler_pic='-KPIC' | |
7982 lt_prog_compiler_static='-static' | |
7983 ;; | |
7984 # icc used to be incompatible with GCC. | |
7985 # ICC 10 doesn't accept -KPIC any more. | |
7986 icc* | ifort*) | |
7987 lt_prog_compiler_wl='-Wl,' | |
7988 lt_prog_compiler_pic='-fPIC' | |
7989 lt_prog_compiler_static='-static' | |
7990 ;; | |
7991 # Lahey Fortran 8.1. | |
7992 lf95*) | |
7993 lt_prog_compiler_wl='-Wl,' | |
7994 lt_prog_compiler_pic='--shared' | |
7995 lt_prog_compiler_static='--static' | |
7996 ;; | |
7997 pgcc* | pgf77* | pgf90* | pgf95*) | |
7998 # Portland Group compilers (*not* the Pentium gcc compiler, | |
7999 # which looks to be a dead project) | |
8000 lt_prog_compiler_wl='-Wl,' | |
8001 lt_prog_compiler_pic='-fpic' | |
8002 lt_prog_compiler_static='-Bstatic' | |
8003 ;; | |
8004 ccc*) | |
8005 lt_prog_compiler_wl='-Wl,' | |
8006 # All Alpha code is PIC. | |
8007 lt_prog_compiler_static='-non_shared' | |
8008 ;; | |
8009 xl*) | |
8010 # IBM XL C 8.0/Fortran 10.1 on PPC | |
8011 lt_prog_compiler_wl='-Wl,' | |
8012 lt_prog_compiler_pic='-qpic' | |
8013 lt_prog_compiler_static='-qstaticlink' | |
8014 ;; | |
8015 *) | |
8016 case `$CC -V 2>&1 | sed 5q` in | |
8017 *Sun\ C*) | |
8018 # Sun C 5.9 | |
8019 lt_prog_compiler_pic='-KPIC' | |
8020 lt_prog_compiler_static='-Bstatic' | |
8021 lt_prog_compiler_wl='-Wl,' | |
8022 ;; | |
8023 *Sun\ F*) | |
8024 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8025 lt_prog_compiler_pic='-KPIC' | |
8026 lt_prog_compiler_static='-Bstatic' | |
8027 lt_prog_compiler_wl='' | |
8028 ;; | |
8029 esac | |
8030 ;; | |
8031 esac | |
8032 ;; | |
8033 | |
8034 newsos6) | |
8035 lt_prog_compiler_pic='-KPIC' | |
8036 lt_prog_compiler_static='-Bstatic' | |
8037 ;; | |
8038 | |
8039 *nto* | *qnx*) | |
8040 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8041 # it will coredump. | |
8042 lt_prog_compiler_pic='-fPIC -shared' | |
8043 ;; | |
8044 | |
8045 osf3* | osf4* | osf5*) | |
8046 lt_prog_compiler_wl='-Wl,' | |
8047 # All OSF/1 code is PIC. | |
8048 lt_prog_compiler_static='-non_shared' | |
8049 ;; | |
8050 | |
8051 rdos*) | |
8052 lt_prog_compiler_static='-non_shared' | |
8053 ;; | |
8054 | |
8055 solaris*) | |
8056 lt_prog_compiler_pic='-KPIC' | |
8057 lt_prog_compiler_static='-Bstatic' | |
8058 case $cc_basename in | |
8059 f77* | f90* | f95*) | |
8060 lt_prog_compiler_wl='-Qoption ld ';; | |
8061 *) | |
8062 lt_prog_compiler_wl='-Wl,';; | |
8063 esac | |
8064 ;; | |
8065 | |
8066 sunos4*) | |
8067 lt_prog_compiler_wl='-Qoption ld ' | |
8068 lt_prog_compiler_pic='-PIC' | |
8069 lt_prog_compiler_static='-Bstatic' | |
8070 ;; | |
8071 | |
8072 sysv4 | sysv4.2uw2* | sysv4.3*) | |
8073 lt_prog_compiler_wl='-Wl,' | |
8074 lt_prog_compiler_pic='-KPIC' | |
8075 lt_prog_compiler_static='-Bstatic' | |
8076 ;; | |
8077 | |
8078 sysv4*MP*) | |
8079 if test -d /usr/nec ;then | |
8080 lt_prog_compiler_pic='-Kconform_pic' | |
8081 lt_prog_compiler_static='-Bstatic' | |
8082 fi | |
8083 ;; | |
8084 | |
8085 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8086 lt_prog_compiler_wl='-Wl,' | |
8087 lt_prog_compiler_pic='-KPIC' | |
8088 lt_prog_compiler_static='-Bstatic' | |
8089 ;; | |
8090 | |
8091 unicos*) | |
8092 lt_prog_compiler_wl='-Wl,' | |
8093 lt_prog_compiler_can_build_shared=no | |
8094 ;; | |
8095 | |
8096 uts4*) | |
8097 lt_prog_compiler_pic='-pic' | |
8098 lt_prog_compiler_static='-Bstatic' | |
8099 ;; | |
8100 | |
8101 *) | |
8102 lt_prog_compiler_can_build_shared=no | |
8103 ;; | |
8104 esac | |
8105 fi | |
8106 | |
8107 case $host_os in | |
8108 # For platforms which do not support PIC, -DPIC is meaningless: | |
8109 *djgpp*) | |
8110 lt_prog_compiler_pic= | |
8111 ;; | |
8112 *) | |
8113 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8114 ;; | |
8115 esac | |
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
8117 $as_echo "$lt_prog_compiler_pic" >&6; } | |
8118 | |
8119 | |
8120 | |
8121 | |
8122 | |
8123 | |
8124 # | |
8125 # Check to make sure the PIC flag actually works. | |
8126 # | |
8127 if test -n "$lt_prog_compiler_pic"; then | |
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8129 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8130 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
8131 $as_echo_n "(cached) " >&6 | |
8132 else | |
8133 lt_cv_prog_compiler_pic_works=no | |
8134 ac_outfile=conftest.$ac_objext | |
8135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8136 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8137 # Insert the option either (1) after the last *FLAGS variable, or | |
8138 # (2) before a word containing "conftest.", or (3) at the end. | |
8139 # Note that $ac_compile itself does not contain backslashes and begins | |
8140 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8141 # The option is referenced via a variable to avoid confusing sed. | |
8142 lt_compile=`echo "$ac_compile" | $SED \ | |
8143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8145 -e 's:$: $lt_compiler_flag:'` | |
8146 (eval echo "\"\$as_me:8146: $lt_compile\"" >&5) | |
8147 (eval "$lt_compile" 2>conftest.err) | |
8148 ac_status=$? | |
8149 cat conftest.err >&5 | |
8150 echo "$as_me:8150: \$? = $ac_status" >&5 | |
8151 if (exit $ac_status) && test -s "$ac_outfile"; then | |
8152 # The compiler can only warn and ignore the option if not recognized | |
8153 # So say no if there are warnings other than the usual output. | |
8154 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8156 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8157 lt_cv_prog_compiler_pic_works=yes | |
8158 fi | |
8159 fi | |
8160 $RM conftest* | |
8161 | |
8162 fi | |
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8164 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8165 | |
8166 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
8167 case $lt_prog_compiler_pic in | |
8168 "" | " "*) ;; | |
8169 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8170 esac | |
8171 else | |
8172 lt_prog_compiler_pic= | |
8173 lt_prog_compiler_can_build_shared=no | |
8174 fi | |
8175 | |
8176 fi | |
8177 | |
8178 | |
8179 | |
8180 | |
8181 | |
8182 | |
8183 # | |
8184 # Check to make sure the static flag actually works. | |
8185 # | |
8186 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8188 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8189 if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
8190 $as_echo_n "(cached) " >&6 | |
8191 else | |
8192 lt_cv_prog_compiler_static_works=no | |
8193 save_LDFLAGS="$LDFLAGS" | |
8194 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8195 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8196 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8197 # The linker can only warn and ignore the option if not recognized | |
8198 # So say no if there are warnings | |
8199 if test -s conftest.err; then | |
8200 # Append any errors to the config.log. | |
8201 cat conftest.err 1>&5 | |
8202 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8204 if diff conftest.exp conftest.er2 >/dev/null; then | |
8205 lt_cv_prog_compiler_static_works=yes | |
8206 fi | |
8207 else | |
8208 lt_cv_prog_compiler_static_works=yes | |
8209 fi | |
8210 fi | |
8211 $RM -r conftest* | |
8212 LDFLAGS="$save_LDFLAGS" | |
8213 | |
8214 fi | |
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
8216 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
8217 | |
8218 if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
8219 : | |
8220 else | |
8221 lt_prog_compiler_static= | |
8222 fi | |
8223 | |
8224 | |
8225 | |
8226 | |
8227 | |
8228 | |
8229 | |
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8231 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8232 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8233 $as_echo_n "(cached) " >&6 | |
8234 else | |
8235 lt_cv_prog_compiler_c_o=no | |
8236 $RM -r conftest 2>/dev/null | |
8237 mkdir conftest | |
8238 cd conftest | |
8239 mkdir out | |
8240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8241 | |
8242 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8243 # Insert the option either (1) after the last *FLAGS variable, or | |
8244 # (2) before a word containing "conftest.", or (3) at the end. | |
8245 # Note that $ac_compile itself does not contain backslashes and begins | |
8246 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8247 lt_compile=`echo "$ac_compile" | $SED \ | |
8248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8250 -e 's:$: $lt_compiler_flag:'` | |
8251 (eval echo "\"\$as_me:8251: $lt_compile\"" >&5) | |
8252 (eval "$lt_compile" 2>out/conftest.err) | |
8253 ac_status=$? | |
8254 cat out/conftest.err >&5 | |
8255 echo "$as_me:8255: \$? = $ac_status" >&5 | |
8256 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8257 then | |
8258 # The compiler can only warn and ignore the option if not recognized | |
8259 # So say no if there are warnings | |
8260 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8261 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8262 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8263 lt_cv_prog_compiler_c_o=yes | |
8264 fi | |
8265 fi | |
8266 chmod u+w . 2>&5 | |
8267 $RM conftest* | |
8268 # SGI C++ compiler will create directory out/ii_files/ for | |
8269 # template instantiation | |
8270 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8271 $RM out/* && rmdir out | |
8272 cd .. | |
8273 $RM -r conftest | |
8274 $RM conftest* | |
8275 | |
8276 fi | |
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8278 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8279 | |
8280 | |
8281 | |
8282 | |
8283 | |
8284 | |
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8286 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8287 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8288 $as_echo_n "(cached) " >&6 | |
8289 else | |
8290 lt_cv_prog_compiler_c_o=no | |
8291 $RM -r conftest 2>/dev/null | |
8292 mkdir conftest | |
8293 cd conftest | |
8294 mkdir out | |
8295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8296 | |
8297 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8298 # Insert the option either (1) after the last *FLAGS variable, or | |
8299 # (2) before a word containing "conftest.", or (3) at the end. | |
8300 # Note that $ac_compile itself does not contain backslashes and begins | |
8301 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8302 lt_compile=`echo "$ac_compile" | $SED \ | |
8303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8305 -e 's:$: $lt_compiler_flag:'` | |
8306 (eval echo "\"\$as_me:8306: $lt_compile\"" >&5) | |
8307 (eval "$lt_compile" 2>out/conftest.err) | |
8308 ac_status=$? | |
8309 cat out/conftest.err >&5 | |
8310 echo "$as_me:8310: \$? = $ac_status" >&5 | |
8311 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8312 then | |
8313 # The compiler can only warn and ignore the option if not recognized | |
8314 # So say no if there are warnings | |
8315 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8318 lt_cv_prog_compiler_c_o=yes | |
8319 fi | |
8320 fi | |
8321 chmod u+w . 2>&5 | |
8322 $RM conftest* | |
8323 # SGI C++ compiler will create directory out/ii_files/ for | |
8324 # template instantiation | |
8325 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8326 $RM out/* && rmdir out | |
8327 cd .. | |
8328 $RM -r conftest | |
8329 $RM conftest* | |
8330 | |
8331 fi | |
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8333 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8334 | |
8335 | |
8336 | |
8337 | |
8338 hard_links="nottested" | |
8339 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8340 # do not overwrite the value of need_locks provided by the user | |
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
8342 $as_echo_n "checking if we can lock with hard links... " >&6; } | |
8343 hard_links=yes | |
8344 $RM conftest* | |
8345 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8346 touch conftest.a | |
8347 ln conftest.a conftest.b 2>&5 || hard_links=no | |
8348 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
8350 $as_echo "$hard_links" >&6; } | |
8351 if test "$hard_links" = no; then | |
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8353 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8354 need_locks=warn | |
8355 fi | |
8356 else | |
8357 need_locks=no | |
8358 fi | |
8359 | |
8360 | |
8361 | |
8362 | |
8363 | |
8364 | |
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8366 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
8367 | |
8368 runpath_var= | |
8369 allow_undefined_flag= | |
8370 always_export_symbols=no | |
8371 archive_cmds= | |
8372 archive_expsym_cmds= | |
8373 compiler_needs_object=no | |
8374 enable_shared_with_static_runtimes=no | |
8375 export_dynamic_flag_spec= | |
8376 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8377 hardcode_automatic=no | |
8378 hardcode_direct=no | |
8379 hardcode_direct_absolute=no | |
8380 hardcode_libdir_flag_spec= | |
8381 hardcode_libdir_flag_spec_ld= | |
8382 hardcode_libdir_separator= | |
8383 hardcode_minus_L=no | |
8384 hardcode_shlibpath_var=unsupported | |
8385 inherit_rpath=no | |
8386 link_all_deplibs=unknown | |
8387 module_cmds= | |
8388 module_expsym_cmds= | |
8389 old_archive_from_new_cmds= | |
8390 old_archive_from_expsyms_cmds= | |
8391 thread_safe_flag_spec= | |
8392 whole_archive_flag_spec= | |
8393 # include_expsyms should be a list of space-separated symbols to be *always* | |
8394 # included in the symbol list | |
8395 include_expsyms= | |
8396 # exclude_expsyms can be an extended regexp of symbols to exclude | |
8397 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8398 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8399 # as well as any symbol that contains `d'. | |
8400 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
8401 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8402 # platforms (ab)use it in PIC code, but their linkers get confused if | |
8403 # the symbol is explicitly referenced. Since portable code cannot | |
8404 # rely on this symbol name, it's probably fine to never include it in | |
8405 # preloaded symbol tables. | |
8406 # Exclude shared library initialization/finalization symbols. | |
8407 extract_expsyms_cmds= | |
8408 | |
8409 case $host_os in | |
8410 cygwin* | mingw* | pw32* | cegcc*) | |
8411 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8412 # When not using gcc, we currently assume that we are using | |
8413 # Microsoft Visual C++. | |
8414 if test "$GCC" != yes; then | |
8415 with_gnu_ld=no | |
8416 fi | |
8417 ;; | |
8418 interix*) | |
8419 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8420 with_gnu_ld=yes | |
8421 ;; | |
8422 openbsd*) | |
8423 with_gnu_ld=no | |
8424 ;; | |
8425 linux* | k*bsd*-gnu) | |
8426 link_all_deplibs=no | |
8427 ;; | |
8428 esac | |
8429 | |
8430 ld_shlibs=yes | |
8431 if test "$with_gnu_ld" = yes; then | |
8432 # If archive_cmds runs LD, not CC, wlarc should be empty | |
8433 wlarc='${wl}' | |
8434 | |
8435 # Set some defaults for GNU ld with shared library support. These | |
8436 # are reset later if shared libraries are not supported. Putting them | |
8437 # here allows them to be overridden if necessary. | |
8438 runpath_var=LD_RUN_PATH | |
8439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8440 export_dynamic_flag_spec='${wl}--export-dynamic' | |
8441 # ancient GNU ld didn't support --whole-archive et. al. | |
8442 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8443 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8444 else | |
8445 whole_archive_flag_spec= | |
8446 fi | |
8447 supports_anon_versioning=no | |
8448 case `$LD -v 2>&1` in | |
8449 *GNU\ gold*) supports_anon_versioning=yes ;; | |
8450 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8451 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8452 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8453 *\ 2.11.*) ;; # other 2.11 versions | |
8454 *) supports_anon_versioning=yes ;; | |
8455 esac | |
8456 | |
8457 # See if GNU ld supports shared libraries. | |
8458 case $host_os in | |
8459 aix[3-9]*) | |
8460 # On AIX/PPC, the GNU linker is very broken | |
8461 if test "$host_cpu" != ia64; then | |
8462 ld_shlibs=no | |
8463 cat <<_LT_EOF 1>&2 | |
8464 | |
8465 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
8466 *** to be unable to reliably create shared libraries on AIX. | |
8467 *** Therefore, libtool is disabling shared libraries support. If you | |
8468 *** really care for shared libraries, you may want to modify your PATH | |
8469 *** so that a non-GNU linker is found, and then restart. | |
8470 | |
8471 _LT_EOF | |
8472 fi | |
8473 ;; | |
8474 | |
8475 amigaos*) | |
8476 case $host_cpu in | |
8477 powerpc) | |
8478 # see comment about AmigaOS4 .so support | |
8479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8480 archive_expsym_cmds='' | |
8481 ;; | |
8482 m68k) | |
8483 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)' | |
8484 hardcode_libdir_flag_spec='-L$libdir' | |
8485 hardcode_minus_L=yes | |
8486 ;; | |
8487 esac | |
8488 ;; | |
8489 | |
8490 beos*) | |
8491 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8492 allow_undefined_flag=unsupported | |
8493 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8494 # support --undefined. This deserves some investigation. FIXME | |
8495 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8496 else | |
8497 ld_shlibs=no | |
8498 fi | |
8499 ;; | |
8500 | |
8501 cygwin* | mingw* | pw32* | cegcc*) | |
8502 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8503 # as there is no search path for DLLs. | |
8504 hardcode_libdir_flag_spec='-L$libdir' | |
8505 allow_undefined_flag=unsupported | |
8506 always_export_symbols=no | |
8507 enable_shared_with_static_runtimes=yes | |
8508 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8509 | |
8510 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8512 # If the export-symbols file already is a .def file (1st line | |
8513 # is EXPORTS), use it as is; otherwise, prepend... | |
8514 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8515 cp $export_symbols $output_objdir/$soname.def; | |
8516 else | |
8517 echo EXPORTS > $output_objdir/$soname.def; | |
8518 cat $export_symbols >> $output_objdir/$soname.def; | |
8519 fi~ | |
8520 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8521 else | |
8522 ld_shlibs=no | |
8523 fi | |
8524 ;; | |
8525 | |
8526 interix[3-9]*) | |
8527 hardcode_direct=no | |
8528 hardcode_shlibpath_var=no | |
8529 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8530 export_dynamic_flag_spec='${wl}-E' | |
8531 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8532 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8533 # default) and relocated if they conflict, which is a slow very memory | |
8534 # consuming and fragmenting process. To avoid this, we pick a random, | |
8535 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8536 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8537 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8538 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' | |
8539 ;; | |
8540 | |
8541 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
8542 tmp_diet=no | |
8543 if test "$host_os" = linux-dietlibc; then | |
8544 case $cc_basename in | |
8545 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8546 esac | |
8547 fi | |
8548 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8549 && test "$tmp_diet" = no | |
8550 then | |
8551 tmp_addflag= | |
8552 tmp_sharedflag='-shared' | |
8553 case $cc_basename,$host_cpu in | |
8554 pgcc*) # Portland Group C compiler | |
8555 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
8556 tmp_addflag=' $pic_flag' | |
8557 ;; | |
8558 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8559 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
8560 tmp_addflag=' $pic_flag -Mnomain' ;; | |
8561 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8562 tmp_addflag=' -i_dynamic' ;; | |
8563 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8564 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8565 ifc* | ifort*) # Intel Fortran compiler | |
8566 tmp_addflag=' -nofor_main' ;; | |
8567 lf95*) # Lahey Fortran 8.1 | |
8568 whole_archive_flag_spec= | |
8569 tmp_sharedflag='--shared' ;; | |
8570 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8571 tmp_sharedflag='-qmkshrobj' | |
8572 tmp_addflag= ;; | |
8573 esac | |
8574 case `$CC -V 2>&1 | sed 5q` in | |
8575 *Sun\ C*) # Sun C 5.9 | |
8576 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
8577 compiler_needs_object=yes | |
8578 tmp_sharedflag='-G' ;; | |
8579 *Sun\ F*) # Sun Fortran 8.3 | |
8580 tmp_sharedflag='-G' ;; | |
8581 esac | |
8582 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8583 | |
8584 if test "x$supports_anon_versioning" = xyes; then | |
8585 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8586 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8587 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8588 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8589 fi | |
8590 | |
8591 case $cc_basename in | |
8592 xlf*) | |
8593 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8594 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8595 hardcode_libdir_flag_spec= | |
8596 hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8597 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8598 if test "x$supports_anon_versioning" = xyes; then | |
8599 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8600 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8601 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8602 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8603 fi | |
8604 ;; | |
8605 esac | |
8606 else | |
8607 ld_shlibs=no | |
8608 fi | |
8609 ;; | |
8610 | |
8611 netbsd* | netbsdelf*-gnu) | |
8612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8613 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8614 wlarc= | |
8615 else | |
8616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8618 fi | |
8619 ;; | |
8620 | |
8621 solaris*) | |
8622 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8623 ld_shlibs=no | |
8624 cat <<_LT_EOF 1>&2 | |
8625 | |
8626 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8627 *** create shared libraries on Solaris systems. Therefore, libtool | |
8628 *** is disabling shared libraries support. We urge you to upgrade GNU | |
8629 *** binutils to release 2.9.1 or newer. Another option is to modify | |
8630 *** your PATH or compiler configuration so that the native linker is | |
8631 *** used, and then restart. | |
8632 | |
8633 _LT_EOF | |
8634 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8637 else | |
8638 ld_shlibs=no | |
8639 fi | |
8640 ;; | |
8641 | |
8642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8643 case `$LD -v 2>&1` in | |
8644 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8645 ld_shlibs=no | |
8646 cat <<_LT_EOF 1>&2 | |
8647 | |
8648 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8649 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8650 *** is disabling shared libraries support. We urge you to upgrade GNU | |
8651 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8652 *** your PATH or compiler configuration so that the native linker is | |
8653 *** used, and then restart. | |
8654 | |
8655 _LT_EOF | |
8656 ;; | |
8657 *) | |
8658 # For security reasons, it is highly recommended that you always | |
8659 # use absolute paths for naming shared libraries, and exclude the | |
8660 # DT_RUNPATH tag from executables and libraries. But doing so | |
8661 # requires that you compile everything twice, which is a pain. | |
8662 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8663 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8665 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8666 else | |
8667 ld_shlibs=no | |
8668 fi | |
8669 ;; | |
8670 esac | |
8671 ;; | |
8672 | |
8673 sunos4*) | |
8674 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8675 wlarc= | |
8676 hardcode_direct=yes | |
8677 hardcode_shlibpath_var=no | |
8678 ;; | |
8679 | |
8680 *) | |
8681 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8683 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8684 else | |
8685 ld_shlibs=no | |
8686 fi | |
8687 ;; | |
8688 esac | |
8689 | |
8690 if test "$ld_shlibs" = no; then | |
8691 runpath_var= | |
8692 hardcode_libdir_flag_spec= | |
8693 export_dynamic_flag_spec= | |
8694 whole_archive_flag_spec= | |
8695 fi | |
8696 else | |
8697 # PORTME fill in a description of your system's linker (not GNU ld) | |
8698 case $host_os in | |
8699 aix3*) | |
8700 allow_undefined_flag=unsupported | |
8701 always_export_symbols=yes | |
8702 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' | |
8703 # Note: this linker hardcodes the directories in LIBPATH if there | |
8704 # are no directories specified by -L. | |
8705 hardcode_minus_L=yes | |
8706 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8707 # Neither direct hardcoding nor static linking is supported with a | |
8708 # broken collect2. | |
8709 hardcode_direct=unsupported | |
8710 fi | |
8711 ;; | |
8712 | |
8713 aix[4-9]*) | |
8714 if test "$host_cpu" = ia64; then | |
8715 # On IA64, the linker does run time linking by default, so we don't | |
8716 # have to do anything special. | |
8717 aix_use_runtimelinking=no | |
8718 exp_sym_flag='-Bexport' | |
8719 no_entry_flag="" | |
8720 else | |
8721 # If we're using GNU nm, then we don't want the "-C" option. | |
8722 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8723 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8724 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
8725 else | |
8726 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
8727 fi | |
8728 aix_use_runtimelinking=no | |
8729 | |
8730 # Test if we are trying to use run time linking or normal | |
8731 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8732 # need to do runtime linking. | |
8733 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
8734 for ld_flag in $LDFLAGS; do | |
8735 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8736 aix_use_runtimelinking=yes | |
8737 break | |
8738 fi | |
8739 done | |
8740 ;; | |
8741 esac | |
8742 | |
8743 exp_sym_flag='-bexport' | |
8744 no_entry_flag='-bnoentry' | |
8745 fi | |
8746 | |
8747 # When large executables or shared objects are built, AIX ld can | |
8748 # have problems creating the table of contents. If linking a library | |
8749 # or program results in "error TOC overflow" add -mminimal-toc to | |
8750 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8751 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8752 | |
8753 archive_cmds='' | |
8754 hardcode_direct=yes | |
8755 hardcode_direct_absolute=yes | |
8756 hardcode_libdir_separator=':' | |
8757 link_all_deplibs=yes | |
8758 file_list_spec='${wl}-f,' | |
8759 | |
8760 if test "$GCC" = yes; then | |
8761 case $host_os in aix4.[012]|aix4.[012].*) | |
8762 # We only want to do this on AIX 4.2 and lower, the check | |
8763 # below for broken collect2 doesn't work under 4.3+ | |
8764 collect2name=`${CC} -print-prog-name=collect2` | |
8765 if test -f "$collect2name" && | |
8766 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8767 then | |
8768 # We have reworked collect2 | |
8769 : | |
8770 else | |
8771 # We have old collect2 | |
8772 hardcode_direct=unsupported | |
8773 # It fails to find uninstalled libraries when the uninstalled | |
8774 # path is not listed in the libpath. Setting hardcode_minus_L | |
8775 # to unsupported forces relinking | |
8776 hardcode_minus_L=yes | |
8777 hardcode_libdir_flag_spec='-L$libdir' | |
8778 hardcode_libdir_separator= | |
8779 fi | |
8780 ;; | |
8781 esac | |
8782 shared_flag='-shared' | |
8783 if test "$aix_use_runtimelinking" = yes; then | |
8784 shared_flag="$shared_flag "'${wl}-G' | |
8785 fi | |
8786 link_all_deplibs=no | |
8787 else | |
8788 # not using gcc | |
8789 if test "$host_cpu" = ia64; then | |
8790 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8791 # chokes on -Wl,-G. The following line is correct: | |
8792 shared_flag='-G' | |
8793 else | |
8794 if test "$aix_use_runtimelinking" = yes; then | |
8795 shared_flag='${wl}-G' | |
8796 else | |
8797 shared_flag='${wl}-bM:SRE' | |
8798 fi | |
8799 fi | |
8800 fi | |
8801 | |
8802 export_dynamic_flag_spec='${wl}-bexpall' | |
8803 # It seems that -bexpall does not export symbols beginning with | |
8804 # underscore (_), so it is better to generate a list of symbols to export. | |
8805 always_export_symbols=yes | |
8806 if test "$aix_use_runtimelinking" = yes; then | |
8807 # Warning - without using the other runtime loading flags (-brtl), | |
8808 # -berok will link without error, but may produce a broken library. | |
8809 allow_undefined_flag='-berok' | |
8810 # Determine the default libpath from the value encoded in an | |
8811 # empty executable. | |
8812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8813 /* end confdefs.h. */ | |
8814 | |
8815 int | |
8816 main () | |
8817 { | |
8818 | |
8819 ; | |
8820 return 0; | |
8821 } | |
8822 _ACEOF | |
8823 if ac_fn_c_try_link "$LINENO"; then : | |
8824 | |
8825 lt_aix_libpath_sed=' | |
8826 /Import File Strings/,/^$/ { | |
8827 /^0/ { | |
8828 s/^0 *\(.*\)$/\1/ | |
8829 p | |
8830 } | |
8831 }' | |
8832 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8833 # Check for a 64-bit object if we didn't find anything. | |
8834 if test -z "$aix_libpath"; then | |
8835 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8836 fi | |
8837 fi | |
8838 rm -f core conftest.err conftest.$ac_objext \ | |
8839 conftest$ac_exeext conftest.$ac_ext | |
8840 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8841 | |
8842 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8843 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
8844 else | |
8845 if test "$host_cpu" = ia64; then | |
8846 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8847 allow_undefined_flag="-z nodefs" | |
8848 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" | |
8849 else | |
8850 # Determine the default libpath from the value encoded in an | |
8851 # empty executable. | |
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8853 /* end confdefs.h. */ | |
8854 | |
8855 int | |
8856 main () | |
8857 { | |
8858 | |
8859 ; | |
8860 return 0; | |
8861 } | |
8862 _ACEOF | |
8863 if ac_fn_c_try_link "$LINENO"; then : | |
8864 | |
8865 lt_aix_libpath_sed=' | |
8866 /Import File Strings/,/^$/ { | |
8867 /^0/ { | |
8868 s/^0 *\(.*\)$/\1/ | |
8869 p | |
8870 } | |
8871 }' | |
8872 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8873 # Check for a 64-bit object if we didn't find anything. | |
8874 if test -z "$aix_libpath"; then | |
8875 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8876 fi | |
8877 fi | |
8878 rm -f core conftest.err conftest.$ac_objext \ | |
8879 conftest$ac_exeext conftest.$ac_ext | |
8880 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8881 | |
8882 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8883 # Warning - without using the other run time loading flags, | |
8884 # -berok will link without error, but may produce a broken library. | |
8885 no_undefined_flag=' ${wl}-bernotok' | |
8886 allow_undefined_flag=' ${wl}-berok' | |
8887 # Exported symbols can be pulled into shared objects from archives | |
8888 whole_archive_flag_spec='$convenience' | |
8889 archive_cmds_need_lc=yes | |
8890 # This is similar to how AIX traditionally builds its shared libraries. | |
8891 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
8892 fi | |
8893 fi | |
8894 ;; | |
8895 | |
8896 amigaos*) | |
8897 case $host_cpu in | |
8898 powerpc) | |
8899 # see comment about AmigaOS4 .so support | |
8900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8901 archive_expsym_cmds='' | |
8902 ;; | |
8903 m68k) | |
8904 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)' | |
8905 hardcode_libdir_flag_spec='-L$libdir' | |
8906 hardcode_minus_L=yes | |
8907 ;; | |
8908 esac | |
8909 ;; | |
8910 | |
8911 bsdi[45]*) | |
8912 export_dynamic_flag_spec=-rdynamic | |
8913 ;; | |
8914 | |
8915 cygwin* | mingw* | pw32* | cegcc*) | |
8916 # When not using gcc, we currently assume that we are using | |
8917 # Microsoft Visual C++. | |
8918 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8919 # no search path for DLLs. | |
8920 hardcode_libdir_flag_spec=' ' | |
8921 allow_undefined_flag=unsupported | |
8922 # Tell ltmain to make .lib files, not .a files. | |
8923 libext=lib | |
8924 # Tell ltmain to make .dll files, not .so files. | |
8925 shrext_cmds=".dll" | |
8926 # FIXME: Setting linknames here is a bad hack. | |
8927 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8928 # The linker will automatically build a .lib file if we build a DLL. | |
8929 old_archive_from_new_cmds='true' | |
8930 # FIXME: Should let the user specify the lib program. | |
8931 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8932 fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8933 enable_shared_with_static_runtimes=yes | |
8934 ;; | |
8935 | |
8936 darwin* | rhapsody*) | |
8937 | |
8938 | |
8939 archive_cmds_need_lc=no | |
8940 hardcode_direct=no | |
8941 hardcode_automatic=yes | |
8942 hardcode_shlibpath_var=unsupported | |
8943 whole_archive_flag_spec='' | |
8944 link_all_deplibs=yes | |
8945 allow_undefined_flag="$_lt_dar_allow_undefined" | |
8946 case $cc_basename in | |
8947 ifort*) _lt_dar_can_shared=yes ;; | |
8948 *) _lt_dar_can_shared=$GCC ;; | |
8949 esac | |
8950 if test "$_lt_dar_can_shared" = "yes"; then | |
8951 output_verbose_link_cmd=echo | |
8952 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
8953 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
8954 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}" | |
8955 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}" | |
8956 | |
8957 else | |
8958 ld_shlibs=no | |
8959 fi | |
8960 | |
8961 ;; | |
8962 | |
8963 dgux*) | |
8964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8965 hardcode_libdir_flag_spec='-L$libdir' | |
8966 hardcode_shlibpath_var=no | |
8967 ;; | |
8968 | |
8969 freebsd1*) | |
8970 ld_shlibs=no | |
8971 ;; | |
8972 | |
8973 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
8974 # support. Future versions do this automatically, but an explicit c++rt0.o | |
8975 # does not break anything, and helps significantly (at the cost of a little | |
8976 # extra space). | |
8977 freebsd2.2*) | |
8978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8979 hardcode_libdir_flag_spec='-R$libdir' | |
8980 hardcode_direct=yes | |
8981 hardcode_shlibpath_var=no | |
8982 ;; | |
8983 | |
8984 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
8985 freebsd2*) | |
8986 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8987 hardcode_direct=yes | |
8988 hardcode_minus_L=yes | |
8989 hardcode_shlibpath_var=no | |
8990 ;; | |
8991 | |
8992 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8993 freebsd* | dragonfly*) | |
8994 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8995 hardcode_libdir_flag_spec='-R$libdir' | |
8996 hardcode_direct=yes | |
8997 hardcode_shlibpath_var=no | |
8998 ;; | |
8999 | |
9000 hpux9*) | |
9001 if test "$GCC" = yes; then | |
9002 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9003 else | |
9004 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9005 fi | |
9006 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9007 hardcode_libdir_separator=: | |
9008 hardcode_direct=yes | |
9009 | |
9010 # hardcode_minus_L: Not really in the search PATH, | |
9011 # but as the default location of the library. | |
9012 hardcode_minus_L=yes | |
9013 export_dynamic_flag_spec='${wl}-E' | |
9014 ;; | |
9015 | |
9016 hpux10*) | |
9017 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9018 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9019 else | |
9020 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9021 fi | |
9022 if test "$with_gnu_ld" = no; then | |
9023 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9024 hardcode_libdir_flag_spec_ld='+b $libdir' | |
9025 hardcode_libdir_separator=: | |
9026 hardcode_direct=yes | |
9027 hardcode_direct_absolute=yes | |
9028 export_dynamic_flag_spec='${wl}-E' | |
9029 # hardcode_minus_L: Not really in the search PATH, | |
9030 # but as the default location of the library. | |
9031 hardcode_minus_L=yes | |
9032 fi | |
9033 ;; | |
9034 | |
9035 hpux11*) | |
9036 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9037 case $host_cpu in | |
9038 hppa*64*) | |
9039 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9040 ;; | |
9041 ia64*) | |
9042 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9043 ;; | |
9044 *) | |
9045 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9046 ;; | |
9047 esac | |
9048 else | |
9049 case $host_cpu in | |
9050 hppa*64*) | |
9051 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9052 ;; | |
9053 ia64*) | |
9054 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9055 ;; | |
9056 *) | |
9057 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9058 ;; | |
9059 esac | |
9060 fi | |
9061 if test "$with_gnu_ld" = no; then | |
9062 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9063 hardcode_libdir_separator=: | |
9064 | |
9065 case $host_cpu in | |
9066 hppa*64*|ia64*) | |
9067 hardcode_direct=no | |
9068 hardcode_shlibpath_var=no | |
9069 ;; | |
9070 *) | |
9071 hardcode_direct=yes | |
9072 hardcode_direct_absolute=yes | |
9073 export_dynamic_flag_spec='${wl}-E' | |
9074 | |
9075 # hardcode_minus_L: Not really in the search PATH, | |
9076 # but as the default location of the library. | |
9077 hardcode_minus_L=yes | |
9078 ;; | |
9079 esac | |
9080 fi | |
9081 ;; | |
9082 | |
9083 irix5* | irix6* | nonstopux*) | |
9084 if test "$GCC" = yes; then | |
9085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9086 # Try to use the -exported_symbol ld option, if it does not | |
9087 # work, assume that -exports_file does not work either and | |
9088 # implicitly export all symbols. | |
9089 save_LDFLAGS="$LDFLAGS" | |
9090 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9092 /* end confdefs.h. */ | |
9093 int foo(void) {} | |
9094 _ACEOF | |
9095 if ac_fn_c_try_link "$LINENO"; then : | |
9096 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
9097 | |
9098 fi | |
9099 rm -f core conftest.err conftest.$ac_objext \ | |
9100 conftest$ac_exeext conftest.$ac_ext | |
9101 LDFLAGS="$save_LDFLAGS" | |
9102 else | |
9103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
9105 fi | |
9106 archive_cmds_need_lc='no' | |
9107 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9108 hardcode_libdir_separator=: | |
9109 inherit_rpath=yes | |
9110 link_all_deplibs=yes | |
9111 ;; | |
9112 | |
9113 netbsd* | netbsdelf*-gnu) | |
9114 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9116 else | |
9117 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9118 fi | |
9119 hardcode_libdir_flag_spec='-R$libdir' | |
9120 hardcode_direct=yes | |
9121 hardcode_shlibpath_var=no | |
9122 ;; | |
9123 | |
9124 newsos6) | |
9125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9126 hardcode_direct=yes | |
9127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9128 hardcode_libdir_separator=: | |
9129 hardcode_shlibpath_var=no | |
9130 ;; | |
9131 | |
9132 *nto* | *qnx*) | |
9133 ;; | |
9134 | |
9135 openbsd*) | |
9136 if test -f /usr/libexec/ld.so; then | |
9137 hardcode_direct=yes | |
9138 hardcode_shlibpath_var=no | |
9139 hardcode_direct_absolute=yes | |
9140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9141 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9142 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9143 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9144 export_dynamic_flag_spec='${wl}-E' | |
9145 else | |
9146 case $host_os in | |
9147 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9148 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9149 hardcode_libdir_flag_spec='-R$libdir' | |
9150 ;; | |
9151 *) | |
9152 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9153 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9154 ;; | |
9155 esac | |
9156 fi | |
9157 else | |
9158 ld_shlibs=no | |
9159 fi | |
9160 ;; | |
9161 | |
9162 os2*) | |
9163 hardcode_libdir_flag_spec='-L$libdir' | |
9164 hardcode_minus_L=yes | |
9165 allow_undefined_flag=unsupported | |
9166 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
9167 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9168 ;; | |
9169 | |
9170 osf3*) | |
9171 if test "$GCC" = yes; then | |
9172 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9173 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9174 else | |
9175 allow_undefined_flag=' -expect_unresolved \*' | |
9176 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9177 fi | |
9178 archive_cmds_need_lc='no' | |
9179 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9180 hardcode_libdir_separator=: | |
9181 ;; | |
9182 | |
9183 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9184 if test "$GCC" = yes; then | |
9185 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9186 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9188 else | |
9189 allow_undefined_flag=' -expect_unresolved \*' | |
9190 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9191 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~ | |
9192 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
9193 | |
9194 # Both c and cxx compiler support -rpath directly | |
9195 hardcode_libdir_flag_spec='-rpath $libdir' | |
9196 fi | |
9197 archive_cmds_need_lc='no' | |
9198 hardcode_libdir_separator=: | |
9199 ;; | |
9200 | |
9201 solaris*) | |
9202 no_undefined_flag=' -z defs' | |
9203 if test "$GCC" = yes; then | |
9204 wlarc='${wl}' | |
9205 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9206 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9207 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9208 else | |
9209 case `$CC -V 2>&1` in | |
9210 *"Compilers 5.0"*) | |
9211 wlarc='' | |
9212 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9213 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9214 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9215 ;; | |
9216 *) | |
9217 wlarc='${wl}' | |
9218 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9219 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9220 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9221 ;; | |
9222 esac | |
9223 fi | |
9224 hardcode_libdir_flag_spec='-R$libdir' | |
9225 hardcode_shlibpath_var=no | |
9226 case $host_os in | |
9227 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9228 *) | |
9229 # The compiler driver will combine and reorder linker options, | |
9230 # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9231 # but is careful enough not to reorder. | |
9232 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9233 if test "$GCC" = yes; then | |
9234 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9235 else | |
9236 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9237 fi | |
9238 ;; | |
9239 esac | |
9240 link_all_deplibs=yes | |
9241 ;; | |
9242 | |
9243 sunos4*) | |
9244 if test "x$host_vendor" = xsequent; then | |
9245 # Use $CC to link under sequent, because it throws in some extra .o | |
9246 # files that make .init and .fini sections work. | |
9247 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9248 else | |
9249 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9250 fi | |
9251 hardcode_libdir_flag_spec='-L$libdir' | |
9252 hardcode_direct=yes | |
9253 hardcode_minus_L=yes | |
9254 hardcode_shlibpath_var=no | |
9255 ;; | |
9256 | |
9257 sysv4) | |
9258 case $host_vendor in | |
9259 sni) | |
9260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9261 hardcode_direct=yes # is this really true??? | |
9262 ;; | |
9263 siemens) | |
9264 ## LD is ld it makes a PLAMLIB | |
9265 ## CC just makes a GrossModule. | |
9266 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9267 reload_cmds='$CC -r -o $output$reload_objs' | |
9268 hardcode_direct=no | |
9269 ;; | |
9270 motorola) | |
9271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9272 hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9273 ;; | |
9274 esac | |
9275 runpath_var='LD_RUN_PATH' | |
9276 hardcode_shlibpath_var=no | |
9277 ;; | |
9278 | |
9279 sysv4.3*) | |
9280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9281 hardcode_shlibpath_var=no | |
9282 export_dynamic_flag_spec='-Bexport' | |
9283 ;; | |
9284 | |
9285 sysv4*MP*) | |
9286 if test -d /usr/nec; then | |
9287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9288 hardcode_shlibpath_var=no | |
9289 runpath_var=LD_RUN_PATH | |
9290 hardcode_runpath_var=yes | |
9291 ld_shlibs=yes | |
9292 fi | |
9293 ;; | |
9294 | |
9295 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9296 no_undefined_flag='${wl}-z,text' | |
9297 archive_cmds_need_lc=no | |
9298 hardcode_shlibpath_var=no | |
9299 runpath_var='LD_RUN_PATH' | |
9300 | |
9301 if test "$GCC" = yes; then | |
9302 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9303 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9304 else | |
9305 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9306 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9307 fi | |
9308 ;; | |
9309 | |
9310 sysv5* | sco3.2v5* | sco5v6*) | |
9311 # Note: We can NOT use -z defs as we might desire, because we do not | |
9312 # link with -lc, and that would cause any symbols used from libc to | |
9313 # always be unresolved, which means just about no library would | |
9314 # ever link correctly. If we're not using GNU ld we use -z text | |
9315 # though, which does catch some bad symbols but isn't as heavy-handed | |
9316 # as -z defs. | |
9317 no_undefined_flag='${wl}-z,text' | |
9318 allow_undefined_flag='${wl}-z,nodefs' | |
9319 archive_cmds_need_lc=no | |
9320 hardcode_shlibpath_var=no | |
9321 hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9322 hardcode_libdir_separator=':' | |
9323 link_all_deplibs=yes | |
9324 export_dynamic_flag_spec='${wl}-Bexport' | |
9325 runpath_var='LD_RUN_PATH' | |
9326 | |
9327 if test "$GCC" = yes; then | |
9328 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9329 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9330 else | |
9331 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9332 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9333 fi | |
9334 ;; | |
9335 | |
9336 uts4*) | |
9337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9338 hardcode_libdir_flag_spec='-L$libdir' | |
9339 hardcode_shlibpath_var=no | |
9340 ;; | |
9341 | |
9342 *) | |
9343 ld_shlibs=no | |
9344 ;; | |
9345 esac | |
9346 | |
9347 if test x$host_vendor = xsni; then | |
9348 case $host in | |
9349 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9350 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9351 ;; | |
9352 esac | |
9353 fi | |
9354 fi | |
9355 | |
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
9357 $as_echo "$ld_shlibs" >&6; } | |
9358 test "$ld_shlibs" = no && can_build_shared=no | |
9359 | |
9360 with_gnu_ld=$with_gnu_ld | |
9361 | |
9362 | |
9363 | |
9364 | |
9365 | |
9366 | |
9367 | |
9368 | |
9369 | |
9370 | |
9371 | |
9372 | |
9373 | |
9374 | |
9375 | |
9376 # | |
9377 # Do we need to explicitly link libc? | |
9378 # | |
9379 case "x$archive_cmds_need_lc" in | |
9380 x|xyes) | |
9381 # Assume -lc should be added | |
9382 archive_cmds_need_lc=yes | |
9383 | |
9384 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9385 case $archive_cmds in | |
9386 *'~'*) | |
9387 # FIXME: we may have to deal with multi-command sequences. | |
9388 ;; | |
9389 '$CC '*) | |
9390 # Test whether the compiler implicitly links with -lc since on some | |
9391 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9392 # to ld, don't add -lc before -lgcc. | |
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
9394 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9395 $RM conftest* | |
9396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9397 | |
9398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9399 (eval $ac_compile) 2>&5 | |
9400 ac_status=$? | |
9401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9402 test $ac_status = 0; } 2>conftest.err; then | |
9403 soname=conftest | |
9404 lib=conftest | |
9405 libobjs=conftest.$ac_objext | |
9406 deplibs= | |
9407 wl=$lt_prog_compiler_wl | |
9408 pic_flag=$lt_prog_compiler_pic | |
9409 compiler_flags=-v | |
9410 linker_flags=-v | |
9411 verstring= | |
9412 output_objdir=. | |
9413 libname=conftest | |
9414 lt_save_allow_undefined_flag=$allow_undefined_flag | |
9415 allow_undefined_flag= | |
9416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
9417 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
9418 ac_status=$? | |
9419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9420 test $ac_status = 0; } | |
9421 then | |
9422 archive_cmds_need_lc=no | |
9423 else | |
9424 archive_cmds_need_lc=yes | |
9425 fi | |
9426 allow_undefined_flag=$lt_save_allow_undefined_flag | |
9427 else | |
9428 cat conftest.err 1>&5 | |
9429 fi | |
9430 $RM conftest* | |
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | |
9432 $as_echo "$archive_cmds_need_lc" >&6; } | |
9433 ;; | |
9434 esac | |
9435 fi | |
9436 ;; | |
9437 esac | |
9438 | |
9439 | |
9440 | |
9441 | |
9442 | |
9443 | |
9444 | |
9445 | |
9446 | |
9447 | |
9448 | |
9449 | |
9450 | |
9451 | |
9452 | |
9453 | |
9454 | |
9455 | |
9456 | |
9457 | |
9458 | |
9459 | |
9460 | |
9461 | |
9462 | |
9463 | |
9464 | |
9465 | |
9466 | |
9467 | |
9468 | |
9469 | |
9470 | |
9471 | |
9472 | |
9473 | |
9474 | |
9475 | |
9476 | |
9477 | |
9478 | |
9479 | |
9480 | |
9481 | |
9482 | |
9483 | |
9484 | |
9485 | |
9486 | |
9487 | |
9488 | |
9489 | |
9490 | |
9491 | |
9492 | |
9493 | |
9494 | |
9495 | |
9496 | |
9497 | |
9498 | |
9499 | |
9500 | |
9501 | |
9502 | |
9503 | |
9504 | |
9505 | |
9506 | |
9507 | |
9508 | |
9509 | |
9510 | |
9511 | |
9512 | |
9513 | |
9514 | |
9515 | |
9516 | |
9517 | |
9518 | |
9519 | |
9520 | |
9521 | |
9522 | |
9523 | |
9524 | |
9525 | |
9526 | |
9527 | |
9528 | |
9529 | |
9530 | |
9531 | |
9532 | |
9533 | |
9534 | |
9535 | |
9536 | |
9537 | |
9538 | |
9539 | |
9540 | |
9541 | |
9542 | |
9543 | |
9544 | |
9545 | |
9546 | |
9547 | |
9548 | |
9549 | |
9550 | |
9551 | |
9552 | |
9553 | |
9554 | |
9555 | |
9556 | |
9557 | |
9558 | |
9559 | |
9560 | |
9561 | |
9562 | |
9563 | |
9564 | |
9565 | |
9566 | |
9567 | |
9568 | |
9569 | |
9570 | |
9571 | |
9572 | |
9573 | |
9574 | |
9575 | |
9576 | |
9577 | |
9578 | |
9579 | |
9580 | |
9581 | |
9582 | |
9583 | |
9584 | |
9585 | |
9586 | |
9587 | |
9588 | |
9589 | |
9590 | |
9591 | |
9592 | |
9593 | |
9594 | |
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
9596 $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
9597 | |
9598 if test "$GCC" = yes; then | |
9599 case $host_os in | |
9600 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9601 *) lt_awk_arg="/^libraries:/" ;; | |
9602 esac | |
9603 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9604 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9605 # if the path contains ";" then we assume it to be the separator | |
9606 # otherwise default to the standard path separator (i.e. ":") - it is | |
9607 # assumed that no part of a normal pathname contains ";" but that should | |
9608 # okay in the real world where ";" in dirpaths is itself problematic. | |
9609 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9610 else | |
9611 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9612 fi | |
9613 # Ok, now we have the path, separated by spaces, we can step through it | |
9614 # and add multilib dir if necessary. | |
9615 lt_tmp_lt_search_path_spec= | |
9616 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9617 for lt_sys_path in $lt_search_path_spec; do | |
9618 if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9619 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9620 else | |
9621 test -d "$lt_sys_path" && \ | |
9622 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9623 fi | |
9624 done | |
9625 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9626 BEGIN {RS=" "; FS="/|\n";} { | |
9627 lt_foo=""; | |
9628 lt_count=0; | |
9629 for (lt_i = NF; lt_i > 0; lt_i--) { | |
9630 if ($lt_i != "" && $lt_i != ".") { | |
9631 if ($lt_i == "..") { | |
9632 lt_count++; | |
9633 } else { | |
9634 if (lt_count == 0) { | |
9635 lt_foo="/" $lt_i lt_foo; | |
9636 } else { | |
9637 lt_count--; | |
9638 } | |
9639 } | |
9640 } | |
9641 } | |
9642 if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9643 if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9644 }'` | |
9645 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9646 else | |
9647 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9648 fi | |
9649 library_names_spec= | |
9650 libname_spec='lib$name' | |
9651 soname_spec= | |
9652 shrext_cmds=".so" | |
9653 postinstall_cmds= | |
9654 postuninstall_cmds= | |
9655 finish_cmds= | |
9656 finish_eval= | |
9657 shlibpath_var= | |
9658 shlibpath_overrides_runpath=unknown | |
9659 version_type=none | |
9660 dynamic_linker="$host_os ld.so" | |
9661 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9662 need_lib_prefix=unknown | |
9663 hardcode_into_libs=no | |
9664 | |
9665 # when you set need_version to no, make sure it does not cause -set_version | |
9666 # flags to be left without arguments | |
9667 need_version=unknown | |
9668 | |
9669 case $host_os in | |
9670 aix3*) | |
9671 version_type=linux | |
9672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9673 shlibpath_var=LIBPATH | |
9674 | |
9675 # AIX 3 has no versioning support, so we append a major version to the name. | |
9676 soname_spec='${libname}${release}${shared_ext}$major' | |
9677 ;; | |
9678 | |
9679 aix[4-9]*) | |
9680 version_type=linux | |
9681 need_lib_prefix=no | |
9682 need_version=no | |
9683 hardcode_into_libs=yes | |
9684 if test "$host_cpu" = ia64; then | |
9685 # AIX 5 supports IA64 | |
9686 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9687 shlibpath_var=LD_LIBRARY_PATH | |
9688 else | |
9689 # With GCC up to 2.95.x, collect2 would create an import file | |
9690 # for dependence libraries. The import file would start with | |
9691 # the line `#! .'. This would cause the generated library to | |
9692 # depend on `.', always an invalid library. This was fixed in | |
9693 # development snapshots of GCC prior to 3.0. | |
9694 case $host_os in | |
9695 aix4 | aix4.[01] | aix4.[01].*) | |
9696 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9697 echo ' yes ' | |
9698 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9699 : | |
9700 else | |
9701 can_build_shared=no | |
9702 fi | |
9703 ;; | |
9704 esac | |
9705 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9706 # soname into executable. Probably we can add versioning support to | |
9707 # collect2, so additional links can be useful in future. | |
9708 if test "$aix_use_runtimelinking" = yes; then | |
9709 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9710 # instead of lib<name>.a to let people know that these are not | |
9711 # typical AIX shared libraries. | |
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9713 else | |
9714 # We preserve .a as extension for shared libraries through AIX4.2 | |
9715 # and later when we are not doing run time linking. | |
9716 library_names_spec='${libname}${release}.a $libname.a' | |
9717 soname_spec='${libname}${release}${shared_ext}$major' | |
9718 fi | |
9719 shlibpath_var=LIBPATH | |
9720 fi | |
9721 ;; | |
9722 | |
9723 amigaos*) | |
9724 case $host_cpu in | |
9725 powerpc) | |
9726 # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9727 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9729 ;; | |
9730 m68k) | |
9731 library_names_spec='$libname.ixlibrary $libname.a' | |
9732 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9733 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
9734 ;; | |
9735 esac | |
9736 ;; | |
9737 | |
9738 beos*) | |
9739 library_names_spec='${libname}${shared_ext}' | |
9740 dynamic_linker="$host_os ld.so" | |
9741 shlibpath_var=LIBRARY_PATH | |
9742 ;; | |
9743 | |
9744 bsdi[45]*) | |
9745 version_type=linux | |
9746 need_version=no | |
9747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9748 soname_spec='${libname}${release}${shared_ext}$major' | |
9749 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9750 shlibpath_var=LD_LIBRARY_PATH | |
9751 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9752 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9753 # the default ld.so.conf also contains /usr/contrib/lib and | |
9754 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9755 # libtool to hard-code these into programs | |
9756 ;; | |
9757 | |
9758 cygwin* | mingw* | pw32* | cegcc*) | |
9759 version_type=windows | |
9760 shrext_cmds=".dll" | |
9761 need_version=no | |
9762 need_lib_prefix=no | |
9763 | |
9764 case $GCC,$host_os in | |
9765 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
9766 library_names_spec='$libname.dll.a' | |
9767 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9768 postinstall_cmds='base_file=`basename \${file}`~ | |
9769 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
9770 dldir=$destdir/`dirname \$dlpath`~ | |
9771 test -d \$dldir || mkdir -p \$dldir~ | |
9772 $install_prog $dir/$dlname \$dldir/$dlname~ | |
9773 chmod a+x \$dldir/$dlname~ | |
9774 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9775 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9776 fi' | |
9777 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9778 dlpath=$dir/\$dldll~ | |
9779 $RM \$dlpath' | |
9780 shlibpath_overrides_runpath=yes | |
9781 | |
9782 case $host_os in | |
9783 cygwin*) | |
9784 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9785 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9786 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
9787 ;; | |
9788 mingw* | cegcc*) | |
9789 # MinGW DLLs use traditional 'lib' prefix | |
9790 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9791 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9792 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
9793 # It is most probably a Windows format PATH printed by | |
9794 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
9795 # path with ; separators, and with drive letters. We can handle the | |
9796 # drive letters (cygwin fileutils understands them), so leave them, | |
9797 # especially as we might pass files found there to a mingw objdump, | |
9798 # which wouldn't understand a cygwinified path. Ahh. | |
9799 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
9800 else | |
9801 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9802 fi | |
9803 ;; | |
9804 pw32*) | |
9805 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9806 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9807 ;; | |
9808 esac | |
9809 ;; | |
9810 | |
9811 *) | |
9812 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9813 ;; | |
9814 esac | |
9815 dynamic_linker='Win32 ld.exe' | |
9816 # FIXME: first we should search . and the directory the executable is in | |
9817 shlibpath_var=PATH | |
9818 ;; | |
9819 | |
9820 darwin* | rhapsody*) | |
9821 dynamic_linker="$host_os dyld" | |
9822 version_type=darwin | |
9823 need_lib_prefix=no | |
9824 need_version=no | |
9825 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
9826 soname_spec='${libname}${release}${major}$shared_ext' | |
9827 shlibpath_overrides_runpath=yes | |
9828 shlibpath_var=DYLD_LIBRARY_PATH | |
9829 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9830 | |
9831 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
9832 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
9833 ;; | |
9834 | |
9835 dgux*) | |
9836 version_type=linux | |
9837 need_lib_prefix=no | |
9838 need_version=no | |
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9840 soname_spec='${libname}${release}${shared_ext}$major' | |
9841 shlibpath_var=LD_LIBRARY_PATH | |
9842 ;; | |
9843 | |
9844 freebsd1*) | |
9845 dynamic_linker=no | |
9846 ;; | |
9847 | |
9848 freebsd* | dragonfly*) | |
9849 # DragonFly does not have aout. When/if they implement a new | |
9850 # versioning mechanism, adjust this. | |
9851 if test -x /usr/bin/objformat; then | |
9852 objformat=`/usr/bin/objformat` | |
9853 else | |
9854 case $host_os in | |
9855 freebsd[123]*) objformat=aout ;; | |
9856 *) objformat=elf ;; | |
9857 esac | |
9858 fi | |
9859 version_type=freebsd-$objformat | |
9860 case $version_type in | |
9861 freebsd-elf*) | |
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9863 need_version=no | |
9864 need_lib_prefix=no | |
9865 ;; | |
9866 freebsd-*) | |
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9868 need_version=yes | |
9869 ;; | |
9870 esac | |
9871 shlibpath_var=LD_LIBRARY_PATH | |
9872 case $host_os in | |
9873 freebsd2*) | |
9874 shlibpath_overrides_runpath=yes | |
9875 ;; | |
9876 freebsd3.[01]* | freebsdelf3.[01]*) | |
9877 shlibpath_overrides_runpath=yes | |
9878 hardcode_into_libs=yes | |
9879 ;; | |
9880 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9881 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9882 shlibpath_overrides_runpath=no | |
9883 hardcode_into_libs=yes | |
9884 ;; | |
9885 *) # from 4.6 on, and DragonFly | |
9886 shlibpath_overrides_runpath=yes | |
9887 hardcode_into_libs=yes | |
9888 ;; | |
9889 esac | |
9890 ;; | |
9891 | |
9892 gnu*) | |
9893 version_type=linux | |
9894 need_lib_prefix=no | |
9895 need_version=no | |
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9897 soname_spec='${libname}${release}${shared_ext}$major' | |
9898 shlibpath_var=LD_LIBRARY_PATH | |
9899 hardcode_into_libs=yes | |
9900 ;; | |
9901 | |
9902 hpux9* | hpux10* | hpux11*) | |
9903 # Give a soname corresponding to the major version so that dld.sl refuses to | |
9904 # link against other versions. | |
9905 version_type=sunos | |
9906 need_lib_prefix=no | |
9907 need_version=no | |
9908 case $host_cpu in | |
9909 ia64*) | |
9910 shrext_cmds='.so' | |
9911 hardcode_into_libs=yes | |
9912 dynamic_linker="$host_os dld.so" | |
9913 shlibpath_var=LD_LIBRARY_PATH | |
9914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9916 soname_spec='${libname}${release}${shared_ext}$major' | |
9917 if test "X$HPUX_IA64_MODE" = X32; then | |
9918 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9919 else | |
9920 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9921 fi | |
9922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9923 ;; | |
9924 hppa*64*) | |
9925 shrext_cmds='.sl' | |
9926 hardcode_into_libs=yes | |
9927 dynamic_linker="$host_os dld.sl" | |
9928 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9929 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9931 soname_spec='${libname}${release}${shared_ext}$major' | |
9932 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9934 ;; | |
9935 *) | |
9936 shrext_cmds='.sl' | |
9937 dynamic_linker="$host_os dld.sl" | |
9938 shlibpath_var=SHLIB_PATH | |
9939 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9941 soname_spec='${libname}${release}${shared_ext}$major' | |
9942 ;; | |
9943 esac | |
9944 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
9945 postinstall_cmds='chmod 555 $lib' | |
9946 ;; | |
9947 | |
9948 interix[3-9]*) | |
9949 version_type=linux | |
9950 need_lib_prefix=no | |
9951 need_version=no | |
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9953 soname_spec='${libname}${release}${shared_ext}$major' | |
9954 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9955 shlibpath_var=LD_LIBRARY_PATH | |
9956 shlibpath_overrides_runpath=no | |
9957 hardcode_into_libs=yes | |
9958 ;; | |
9959 | |
9960 irix5* | irix6* | nonstopux*) | |
9961 case $host_os in | |
9962 nonstopux*) version_type=nonstopux ;; | |
9963 *) | |
9964 if test "$lt_cv_prog_gnu_ld" = yes; then | |
9965 version_type=linux | |
9966 else | |
9967 version_type=irix | |
9968 fi ;; | |
9969 esac | |
9970 need_lib_prefix=no | |
9971 need_version=no | |
9972 soname_spec='${libname}${release}${shared_ext}$major' | |
9973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9974 case $host_os in | |
9975 irix5* | nonstopux*) | |
9976 libsuff= shlibsuff= | |
9977 ;; | |
9978 *) | |
9979 case $LD in # libtool.m4 will add one of these switches to LD | |
9980 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9981 libsuff= shlibsuff= libmagic=32-bit;; | |
9982 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9983 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9984 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9985 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9986 *) libsuff= shlibsuff= libmagic=never-match;; | |
9987 esac | |
9988 ;; | |
9989 esac | |
9990 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9991 shlibpath_overrides_runpath=no | |
9992 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9993 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9994 hardcode_into_libs=yes | |
9995 ;; | |
9996 | |
9997 # No shared lib support for Linux oldld, aout, or coff. | |
9998 linux*oldld* | linux*aout* | linux*coff*) | |
9999 dynamic_linker=no | |
10000 ;; | |
10001 | |
10002 # This must be Linux ELF. | |
10003 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
10004 version_type=linux | |
10005 need_lib_prefix=no | |
10006 need_version=no | |
10007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10008 soname_spec='${libname}${release}${shared_ext}$major' | |
10009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10010 shlibpath_var=LD_LIBRARY_PATH | |
10011 shlibpath_overrides_runpath=no | |
10012 # Some binutils ld are patched to set DT_RUNPATH | |
10013 save_LDFLAGS=$LDFLAGS | |
10014 save_libdir=$libdir | |
10015 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10016 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10018 /* end confdefs.h. */ | |
10019 | |
10020 int | |
10021 main () | |
10022 { | |
10023 | |
10024 ; | |
10025 return 0; | |
10026 } | |
10027 _ACEOF | |
10028 if ac_fn_c_try_link "$LINENO"; then : | |
10029 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10030 shlibpath_overrides_runpath=yes | |
10031 fi | |
10032 fi | |
10033 rm -f core conftest.err conftest.$ac_objext \ | |
10034 conftest$ac_exeext conftest.$ac_ext | |
10035 LDFLAGS=$save_LDFLAGS | |
10036 libdir=$save_libdir | |
10037 | |
10038 # This implies no fast_install, which is unacceptable. | |
10039 # Some rework will be needed to allow for fast_install | |
10040 # before this can be enabled. | |
10041 hardcode_into_libs=yes | |
10042 | |
10043 # Append ld.so.conf contents to the search path | |
10044 if test -f /etc/ld.so.conf; then | |
10045 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
10046 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
10047 fi | |
10048 | |
10049 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10050 # powerpc, because MkLinux only supported shared libraries with the | |
10051 # GNU dynamic linker. Since this was broken with cross compilers, | |
10052 # most powerpc-linux boxes support dynamic linking these days and | |
10053 # people can always --disable-shared, the test was removed, and we | |
10054 # assume the GNU/Linux dynamic linker is in use. | |
10055 dynamic_linker='GNU/Linux ld.so' | |
10056 ;; | |
10057 | |
10058 netbsdelf*-gnu) | |
10059 version_type=linux | |
10060 need_lib_prefix=no | |
10061 need_version=no | |
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10063 soname_spec='${libname}${release}${shared_ext}$major' | |
10064 shlibpath_var=LD_LIBRARY_PATH | |
10065 shlibpath_overrides_runpath=no | |
10066 hardcode_into_libs=yes | |
10067 dynamic_linker='NetBSD ld.elf_so' | |
10068 ;; | |
10069 | |
10070 netbsd*) | |
10071 version_type=sunos | |
10072 need_lib_prefix=no | |
10073 need_version=no | |
10074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10077 dynamic_linker='NetBSD (a.out) ld.so' | |
10078 else | |
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10080 soname_spec='${libname}${release}${shared_ext}$major' | |
10081 dynamic_linker='NetBSD ld.elf_so' | |
10082 fi | |
10083 shlibpath_var=LD_LIBRARY_PATH | |
10084 shlibpath_overrides_runpath=yes | |
10085 hardcode_into_libs=yes | |
10086 ;; | |
10087 | |
10088 newsos6) | |
10089 version_type=linux | |
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10091 shlibpath_var=LD_LIBRARY_PATH | |
10092 shlibpath_overrides_runpath=yes | |
10093 ;; | |
10094 | |
10095 *nto* | *qnx*) | |
10096 version_type=qnx | |
10097 need_lib_prefix=no | |
10098 need_version=no | |
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10100 soname_spec='${libname}${release}${shared_ext}$major' | |
10101 shlibpath_var=LD_LIBRARY_PATH | |
10102 shlibpath_overrides_runpath=no | |
10103 hardcode_into_libs=yes | |
10104 dynamic_linker='ldqnx.so' | |
10105 ;; | |
10106 | |
10107 openbsd*) | |
10108 version_type=sunos | |
10109 sys_lib_dlsearch_path_spec="/usr/lib" | |
10110 need_lib_prefix=no | |
10111 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10112 case $host_os in | |
10113 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10114 *) need_version=no ;; | |
10115 esac | |
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10118 shlibpath_var=LD_LIBRARY_PATH | |
10119 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10120 case $host_os in | |
10121 openbsd2.[89] | openbsd2.[89].*) | |
10122 shlibpath_overrides_runpath=no | |
10123 ;; | |
10124 *) | |
10125 shlibpath_overrides_runpath=yes | |
10126 ;; | |
10127 esac | |
10128 else | |
10129 shlibpath_overrides_runpath=yes | |
10130 fi | |
10131 ;; | |
10132 | |
10133 os2*) | |
10134 libname_spec='$name' | |
10135 shrext_cmds=".dll" | |
10136 need_lib_prefix=no | |
10137 library_names_spec='$libname${shared_ext} $libname.a' | |
10138 dynamic_linker='OS/2 ld.exe' | |
10139 shlibpath_var=LIBPATH | |
10140 ;; | |
10141 | |
10142 osf3* | osf4* | osf5*) | |
10143 version_type=osf | |
10144 need_lib_prefix=no | |
10145 need_version=no | |
10146 soname_spec='${libname}${release}${shared_ext}$major' | |
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10148 shlibpath_var=LD_LIBRARY_PATH | |
10149 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10150 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10151 ;; | |
10152 | |
10153 rdos*) | |
10154 dynamic_linker=no | |
10155 ;; | |
10156 | |
10157 solaris*) | |
10158 version_type=linux | |
10159 need_lib_prefix=no | |
10160 need_version=no | |
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10162 soname_spec='${libname}${release}${shared_ext}$major' | |
10163 shlibpath_var=LD_LIBRARY_PATH | |
10164 shlibpath_overrides_runpath=yes | |
10165 hardcode_into_libs=yes | |
10166 # ldd complains unless libraries are executable | |
10167 postinstall_cmds='chmod +x $lib' | |
10168 ;; | |
10169 | |
10170 sunos4*) | |
10171 version_type=sunos | |
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10173 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10174 shlibpath_var=LD_LIBRARY_PATH | |
10175 shlibpath_overrides_runpath=yes | |
10176 if test "$with_gnu_ld" = yes; then | |
10177 need_lib_prefix=no | |
10178 fi | |
10179 need_version=yes | |
10180 ;; | |
10181 | |
10182 sysv4 | sysv4.3*) | |
10183 version_type=linux | |
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10185 soname_spec='${libname}${release}${shared_ext}$major' | |
10186 shlibpath_var=LD_LIBRARY_PATH | |
10187 case $host_vendor in | |
10188 sni) | |
10189 shlibpath_overrides_runpath=no | |
10190 need_lib_prefix=no | |
10191 runpath_var=LD_RUN_PATH | |
10192 ;; | |
10193 siemens) | |
10194 need_lib_prefix=no | |
10195 ;; | |
10196 motorola) | |
10197 need_lib_prefix=no | |
10198 need_version=no | |
10199 shlibpath_overrides_runpath=no | |
10200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10201 ;; | |
10202 esac | |
10203 ;; | |
10204 | |
10205 sysv4*MP*) | |
10206 if test -d /usr/nec ;then | |
10207 version_type=linux | |
10208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10209 soname_spec='$libname${shared_ext}.$major' | |
10210 shlibpath_var=LD_LIBRARY_PATH | |
10211 fi | |
10212 ;; | |
10213 | |
10214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10215 version_type=freebsd-elf | |
10216 need_lib_prefix=no | |
10217 need_version=no | |
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10219 soname_spec='${libname}${release}${shared_ext}$major' | |
10220 shlibpath_var=LD_LIBRARY_PATH | |
10221 shlibpath_overrides_runpath=yes | |
10222 hardcode_into_libs=yes | |
10223 if test "$with_gnu_ld" = yes; then | |
10224 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10225 else | |
10226 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10227 case $host_os in | |
10228 sco3.2v5*) | |
10229 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10230 ;; | |
10231 esac | |
10232 fi | |
10233 sys_lib_dlsearch_path_spec='/usr/lib' | |
10234 ;; | |
10235 | |
10236 tpf*) | |
10237 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10238 version_type=linux | |
10239 need_lib_prefix=no | |
10240 need_version=no | |
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10242 shlibpath_var=LD_LIBRARY_PATH | |
10243 shlibpath_overrides_runpath=no | |
10244 hardcode_into_libs=yes | |
10245 ;; | |
10246 | |
10247 uts4*) | |
10248 version_type=linux | |
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10250 soname_spec='${libname}${release}${shared_ext}$major' | |
10251 shlibpath_var=LD_LIBRARY_PATH | |
10252 ;; | |
10253 | |
10254 *) | |
10255 dynamic_linker=no | |
10256 ;; | |
10257 esac | |
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
10259 $as_echo "$dynamic_linker" >&6; } | |
10260 test "$dynamic_linker" = no && can_build_shared=no | |
10261 | |
10262 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10263 if test "$GCC" = yes; then | |
10264 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10265 fi | |
10266 | |
10267 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
10268 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10269 fi | |
10270 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10271 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10272 fi | |
10273 | |
10274 | |
10275 | |
10276 | |
10277 | |
10278 | |
10279 | |
10280 | |
10281 | |
10282 | |
10283 | |
10284 | |
10285 | |
10286 | |
10287 | |
10288 | |
10289 | |
10290 | |
10291 | |
10292 | |
10293 | |
10294 | |
10295 | |
10296 | |
10297 | |
10298 | |
10299 | |
10300 | |
10301 | |
10302 | |
10303 | |
10304 | |
10305 | |
10306 | |
10307 | |
10308 | |
10309 | |
10310 | |
10311 | |
10312 | |
10313 | |
10314 | |
10315 | |
10316 | |
10317 | |
10318 | |
10319 | |
10320 | |
10321 | |
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
10361 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
10362 hardcode_action= | |
10363 if test -n "$hardcode_libdir_flag_spec" || | |
10364 test -n "$runpath_var" || | |
10365 test "X$hardcode_automatic" = "Xyes" ; then | |
10366 | |
10367 # We can hardcode non-existent directories. | |
10368 if test "$hardcode_direct" != no && | |
10369 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10370 # have to relink, otherwise we might link with an installed library | |
10371 # when we should be linking with a yet-to-be-installed one | |
10372 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10373 test "$hardcode_minus_L" != no; then | |
10374 # Linking always hardcodes the temporary library directory. | |
10375 hardcode_action=relink | |
10376 else | |
10377 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10378 hardcode_action=immediate | |
10379 fi | |
10380 else | |
10381 # We cannot hardcode anything, or else we can only hardcode existing | |
10382 # directories. | |
10383 hardcode_action=unsupported | |
10384 fi | |
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
10386 $as_echo "$hardcode_action" >&6; } | |
10387 | |
10388 if test "$hardcode_action" = relink || | |
10389 test "$inherit_rpath" = yes; then | |
10390 # Fast installation is not supported | |
10391 enable_fast_install=no | |
10392 elif test "$shlibpath_overrides_runpath" = yes || | |
10393 test "$enable_shared" = no; then | |
10394 # Fast installation is not necessary | |
10395 enable_fast_install=needless | |
10396 fi | |
10397 | |
10398 | |
10399 | |
10400 | |
10401 | |
10402 | |
10403 if test "x$enable_dlopen" != xyes; then | |
10404 enable_dlopen=unknown | |
10405 enable_dlopen_self=unknown | |
10406 enable_dlopen_self_static=unknown | |
10407 else | |
10408 lt_cv_dlopen=no | |
10409 lt_cv_dlopen_libs= | |
10410 | |
10411 case $host_os in | |
10412 beos*) | |
10413 lt_cv_dlopen="load_add_on" | |
10414 lt_cv_dlopen_libs= | |
10415 lt_cv_dlopen_self=yes | |
10416 ;; | |
10417 | |
10418 mingw* | pw32* | cegcc*) | |
10419 lt_cv_dlopen="LoadLibrary" | |
10420 lt_cv_dlopen_libs= | |
10421 ;; | |
10422 | |
10423 cygwin*) | |
10424 lt_cv_dlopen="dlopen" | |
10425 lt_cv_dlopen_libs= | |
10426 ;; | |
10427 | |
10428 darwin*) | |
10429 # if libdl is installed we need to link against it | |
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
10431 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10432 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10433 $as_echo_n "(cached) " >&6 | |
10434 else | |
10435 ac_check_lib_save_LIBS=$LIBS | |
10436 LIBS="-ldl $LIBS" | |
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10438 /* end confdefs.h. */ | |
10439 | |
10440 /* Override any GCC internal prototype to avoid an error. | |
10441 Use char because int might match the return type of a GCC | |
10442 builtin and then its argument prototype would still apply. */ | |
10443 #ifdef __cplusplus | |
10444 extern "C" | |
10445 #endif | |
10446 char dlopen (); | |
10447 int | |
10448 main () | |
10449 { | |
10450 return dlopen (); | |
10451 ; | |
10452 return 0; | |
10453 } | |
10454 _ACEOF | |
10455 if ac_fn_c_try_link "$LINENO"; then : | |
10456 ac_cv_lib_dl_dlopen=yes | |
10457 else | |
10458 ac_cv_lib_dl_dlopen=no | |
10459 fi | |
10460 rm -f core conftest.err conftest.$ac_objext \ | |
10461 conftest$ac_exeext conftest.$ac_ext | |
10462 LIBS=$ac_check_lib_save_LIBS | |
10463 fi | |
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
10465 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10466 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
10467 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10468 else | |
10469 | |
10470 lt_cv_dlopen="dyld" | |
10471 lt_cv_dlopen_libs= | |
10472 lt_cv_dlopen_self=yes | |
10473 | |
10474 fi | |
10475 | |
10476 ;; | |
10477 | |
10478 *) | |
10479 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
10480 if test "x$ac_cv_func_shl_load" = x""yes; then : | |
10481 lt_cv_dlopen="shl_load" | |
10482 else | |
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
10484 $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10485 if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
10486 $as_echo_n "(cached) " >&6 | |
10487 else | |
10488 ac_check_lib_save_LIBS=$LIBS | |
10489 LIBS="-ldld $LIBS" | |
10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10491 /* end confdefs.h. */ | |
10492 | |
10493 /* Override any GCC internal prototype to avoid an error. | |
10494 Use char because int might match the return type of a GCC | |
10495 builtin and then its argument prototype would still apply. */ | |
10496 #ifdef __cplusplus | |
10497 extern "C" | |
10498 #endif | |
10499 char shl_load (); | |
10500 int | |
10501 main () | |
10502 { | |
10503 return shl_load (); | |
10504 ; | |
10505 return 0; | |
10506 } | |
10507 _ACEOF | |
10508 if ac_fn_c_try_link "$LINENO"; then : | |
10509 ac_cv_lib_dld_shl_load=yes | |
10510 else | |
10511 ac_cv_lib_dld_shl_load=no | |
10512 fi | |
10513 rm -f core conftest.err conftest.$ac_objext \ | |
10514 conftest$ac_exeext conftest.$ac_ext | |
10515 LIBS=$ac_check_lib_save_LIBS | |
10516 fi | |
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
10518 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10519 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
10520 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10521 else | |
10522 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
10523 if test "x$ac_cv_func_dlopen" = x""yes; then : | |
10524 lt_cv_dlopen="dlopen" | |
10525 else | |
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
10527 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10528 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10529 $as_echo_n "(cached) " >&6 | |
10530 else | |
10531 ac_check_lib_save_LIBS=$LIBS | |
10532 LIBS="-ldl $LIBS" | |
10533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10534 /* end confdefs.h. */ | |
10535 | |
10536 /* Override any GCC internal prototype to avoid an error. | |
10537 Use char because int might match the return type of a GCC | |
10538 builtin and then its argument prototype would still apply. */ | |
10539 #ifdef __cplusplus | |
10540 extern "C" | |
10541 #endif | |
10542 char dlopen (); | |
10543 int | |
10544 main () | |
10545 { | |
10546 return dlopen (); | |
10547 ; | |
10548 return 0; | |
10549 } | |
10550 _ACEOF | |
10551 if ac_fn_c_try_link "$LINENO"; then : | |
10552 ac_cv_lib_dl_dlopen=yes | |
10553 else | |
10554 ac_cv_lib_dl_dlopen=no | |
10555 fi | |
10556 rm -f core conftest.err conftest.$ac_objext \ | |
10557 conftest$ac_exeext conftest.$ac_ext | |
10558 LIBS=$ac_check_lib_save_LIBS | |
10559 fi | |
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
10561 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10562 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
10563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10564 else | |
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
10566 $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10567 if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
10568 $as_echo_n "(cached) " >&6 | |
10569 else | |
10570 ac_check_lib_save_LIBS=$LIBS | |
10571 LIBS="-lsvld $LIBS" | |
10572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10573 /* end confdefs.h. */ | |
10574 | |
10575 /* Override any GCC internal prototype to avoid an error. | |
10576 Use char because int might match the return type of a GCC | |
10577 builtin and then its argument prototype would still apply. */ | |
10578 #ifdef __cplusplus | |
10579 extern "C" | |
10580 #endif | |
10581 char dlopen (); | |
10582 int | |
10583 main () | |
10584 { | |
10585 return dlopen (); | |
10586 ; | |
10587 return 0; | |
10588 } | |
10589 _ACEOF | |
10590 if ac_fn_c_try_link "$LINENO"; then : | |
10591 ac_cv_lib_svld_dlopen=yes | |
10592 else | |
10593 ac_cv_lib_svld_dlopen=no | |
10594 fi | |
10595 rm -f core conftest.err conftest.$ac_objext \ | |
10596 conftest$ac_exeext conftest.$ac_ext | |
10597 LIBS=$ac_check_lib_save_LIBS | |
10598 fi | |
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
10600 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
10601 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
10602 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10603 else | |
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
10605 $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
10606 if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
10607 $as_echo_n "(cached) " >&6 | |
10608 else | |
10609 ac_check_lib_save_LIBS=$LIBS | |
10610 LIBS="-ldld $LIBS" | |
10611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10612 /* end confdefs.h. */ | |
10613 | |
10614 /* Override any GCC internal prototype to avoid an error. | |
10615 Use char because int might match the return type of a GCC | |
10616 builtin and then its argument prototype would still apply. */ | |
10617 #ifdef __cplusplus | |
10618 extern "C" | |
10619 #endif | |
10620 char dld_link (); | |
10621 int | |
10622 main () | |
10623 { | |
10624 return dld_link (); | |
10625 ; | |
10626 return 0; | |
10627 } | |
10628 _ACEOF | |
10629 if ac_fn_c_try_link "$LINENO"; then : | |
10630 ac_cv_lib_dld_dld_link=yes | |
10631 else | |
10632 ac_cv_lib_dld_dld_link=no | |
10633 fi | |
10634 rm -f core conftest.err conftest.$ac_objext \ | |
10635 conftest$ac_exeext conftest.$ac_ext | |
10636 LIBS=$ac_check_lib_save_LIBS | |
10637 fi | |
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
10639 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
10640 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
10641 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
10642 fi | |
10643 | |
10644 | |
10645 fi | |
10646 | |
10647 | |
10648 fi | |
10649 | |
10650 | |
10651 fi | |
10652 | |
10653 | |
10654 fi | |
10655 | |
10656 | |
10657 fi | |
10658 | |
10659 ;; | |
10660 esac | |
10661 | |
10662 if test "x$lt_cv_dlopen" != xno; then | |
10663 enable_dlopen=yes | |
10664 else | |
10665 enable_dlopen=no | |
10666 fi | |
10667 | |
10668 case $lt_cv_dlopen in | |
10669 dlopen) | |
10670 save_CPPFLAGS="$CPPFLAGS" | |
10671 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10672 | |
10673 save_LDFLAGS="$LDFLAGS" | |
10674 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10675 | |
10676 save_LIBS="$LIBS" | |
10677 LIBS="$lt_cv_dlopen_libs $LIBS" | |
10678 | |
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
10680 $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
10681 if test "${lt_cv_dlopen_self+set}" = set; then : | |
10682 $as_echo_n "(cached) " >&6 | |
10683 else | |
10684 if test "$cross_compiling" = yes; then : | |
10685 lt_cv_dlopen_self=cross | |
10686 else | |
10687 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10688 lt_status=$lt_dlunknown | |
10689 cat > conftest.$ac_ext <<_LT_EOF | |
10690 #line 10690 "configure" | |
10691 #include "confdefs.h" | |
10692 | |
10693 #if HAVE_DLFCN_H | |
10694 #include <dlfcn.h> | |
10695 #endif | |
10696 | |
10697 #include <stdio.h> | |
10698 | |
10699 #ifdef RTLD_GLOBAL | |
10700 # define LT_DLGLOBAL RTLD_GLOBAL | |
10701 #else | |
10702 # ifdef DL_GLOBAL | |
10703 # define LT_DLGLOBAL DL_GLOBAL | |
10704 # else | |
10705 # define LT_DLGLOBAL 0 | |
10706 # endif | |
10707 #endif | |
10708 | |
10709 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10710 find out it does not work in some platform. */ | |
10711 #ifndef LT_DLLAZY_OR_NOW | |
10712 # ifdef RTLD_LAZY | |
10713 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10714 # else | |
10715 # ifdef DL_LAZY | |
10716 # define LT_DLLAZY_OR_NOW DL_LAZY | |
10717 # else | |
10718 # ifdef RTLD_NOW | |
10719 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10720 # else | |
10721 # ifdef DL_NOW | |
10722 # define LT_DLLAZY_OR_NOW DL_NOW | |
10723 # else | |
10724 # define LT_DLLAZY_OR_NOW 0 | |
10725 # endif | |
10726 # endif | |
10727 # endif | |
10728 # endif | |
10729 #endif | |
10730 | |
10731 void fnord() { int i=42;} | |
10732 int main () | |
10733 { | |
10734 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10735 int status = $lt_dlunknown; | |
10736 | |
10737 if (self) | |
10738 { | |
10739 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10740 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10741 /* dlclose (self); */ | |
10742 } | |
10743 else | |
10744 puts (dlerror ()); | |
10745 | |
10746 return status; | |
10747 } | |
10748 _LT_EOF | |
10749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
10750 (eval $ac_link) 2>&5 | |
10751 ac_status=$? | |
10752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10753 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10754 (./conftest; exit; ) >&5 2>/dev/null | |
10755 lt_status=$? | |
10756 case x$lt_status in | |
10757 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10758 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10759 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10760 esac | |
10761 else : | |
10762 # compilation failed | |
10763 lt_cv_dlopen_self=no | |
10764 fi | |
10765 fi | |
10766 rm -fr conftest* | |
10767 | |
10768 | |
10769 fi | |
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
10771 $as_echo "$lt_cv_dlopen_self" >&6; } | |
10772 | |
10773 if test "x$lt_cv_dlopen_self" = xyes; then | |
10774 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
10776 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
10777 if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
10778 $as_echo_n "(cached) " >&6 | |
10779 else | |
10780 if test "$cross_compiling" = yes; then : | |
10781 lt_cv_dlopen_self_static=cross | |
10782 else | |
10783 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10784 lt_status=$lt_dlunknown | |
10785 cat > conftest.$ac_ext <<_LT_EOF | |
10786 #line 10786 "configure" | |
10787 #include "confdefs.h" | |
10788 | |
10789 #if HAVE_DLFCN_H | |
10790 #include <dlfcn.h> | |
10791 #endif | |
10792 | |
10793 #include <stdio.h> | |
10794 | |
10795 #ifdef RTLD_GLOBAL | |
10796 # define LT_DLGLOBAL RTLD_GLOBAL | |
10797 #else | |
10798 # ifdef DL_GLOBAL | |
10799 # define LT_DLGLOBAL DL_GLOBAL | |
10800 # else | |
10801 # define LT_DLGLOBAL 0 | |
10802 # endif | |
10803 #endif | |
10804 | |
10805 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10806 find out it does not work in some platform. */ | |
10807 #ifndef LT_DLLAZY_OR_NOW | |
10808 # ifdef RTLD_LAZY | |
10809 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10810 # else | |
10811 # ifdef DL_LAZY | |
10812 # define LT_DLLAZY_OR_NOW DL_LAZY | |
10813 # else | |
10814 # ifdef RTLD_NOW | |
10815 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10816 # else | |
10817 # ifdef DL_NOW | |
10818 # define LT_DLLAZY_OR_NOW DL_NOW | |
10819 # else | |
10820 # define LT_DLLAZY_OR_NOW 0 | |
10821 # endif | |
10822 # endif | |
10823 # endif | |
10824 # endif | |
10825 #endif | |
10826 | |
10827 void fnord() { int i=42;} | |
10828 int main () | |
10829 { | |
10830 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10831 int status = $lt_dlunknown; | |
10832 | |
10833 if (self) | |
10834 { | |
10835 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10836 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10837 /* dlclose (self); */ | |
10838 } | |
10839 else | |
10840 puts (dlerror ()); | |
10841 | |
10842 return status; | |
10843 } | |
10844 _LT_EOF | |
10845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
10846 (eval $ac_link) 2>&5 | |
10847 ac_status=$? | |
10848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10849 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10850 (./conftest; exit; ) >&5 2>/dev/null | |
10851 lt_status=$? | |
10852 case x$lt_status in | |
10853 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10854 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10855 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10856 esac | |
10857 else : | |
10858 # compilation failed | |
10859 lt_cv_dlopen_self_static=no | |
10860 fi | |
10861 fi | |
10862 rm -fr conftest* | |
10863 | |
10864 | |
10865 fi | |
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
10867 $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
10868 fi | |
10869 | |
10870 CPPFLAGS="$save_CPPFLAGS" | |
10871 LDFLAGS="$save_LDFLAGS" | |
10872 LIBS="$save_LIBS" | |
10873 ;; | |
10874 esac | |
10875 | |
10876 case $lt_cv_dlopen_self in | |
10877 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10878 *) enable_dlopen_self=unknown ;; | |
10879 esac | |
10880 | |
10881 case $lt_cv_dlopen_self_static in | |
10882 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10883 *) enable_dlopen_self_static=unknown ;; | |
10884 esac | |
10885 fi | |
10886 | |
10887 | |
10888 | |
10889 | |
10890 | |
10891 | |
10892 | |
10893 | |
10894 | |
10895 | |
10896 | |
10897 | |
10898 | |
10899 | |
10900 | |
10901 | |
10902 | |
10903 striplib= | |
10904 old_striplib= | |
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
10906 $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
10907 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
10908 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10909 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10911 $as_echo "yes" >&6; } | |
10912 else | |
10913 # FIXME - insert some real tests, host_os isn't really good enough | |
10914 case $host_os in | |
10915 darwin*) | |
10916 if test -n "$STRIP" ; then | |
10917 striplib="$STRIP -x" | |
10918 old_striplib="$STRIP -S" | |
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10920 $as_echo "yes" >&6; } | |
10921 else | |
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10923 $as_echo "no" >&6; } | |
10924 fi | |
10925 ;; | |
10926 *) | |
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10928 $as_echo "no" >&6; } | |
10929 ;; | |
10930 esac | |
10931 fi | |
10932 | |
10933 | |
10934 | |
10935 | |
10936 | |
10937 | |
10938 | |
10939 | |
10940 | |
10941 | |
10942 | |
10943 | |
10944 # Report which library types will actually be built | |
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
10946 $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
10948 $as_echo "$can_build_shared" >&6; } | |
10949 | |
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
10951 $as_echo_n "checking whether to build shared libraries... " >&6; } | |
10952 test "$can_build_shared" = "no" && enable_shared=no | |
10953 | |
10954 # On AIX, shared libraries and static libraries use the same namespace, and | |
10955 # are all built from PIC. | |
10956 case $host_os in | |
10957 aix3*) | |
10958 test "$enable_shared" = yes && enable_static=no | |
10959 if test -n "$RANLIB"; then | |
10960 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10961 postinstall_cmds='$RANLIB $lib' | |
10962 fi | |
10963 ;; | |
10964 | |
10965 aix[4-9]*) | |
10966 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
10967 test "$enable_shared" = yes && enable_static=no | |
10968 fi | |
10969 ;; | |
10970 esac | |
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
10972 $as_echo "$enable_shared" >&6; } | |
10973 | |
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
10975 $as_echo_n "checking whether to build static libraries... " >&6; } | |
10976 # Make sure either enable_shared or enable_static is yes. | |
10977 test "$enable_shared" = yes || enable_static=yes | |
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
10979 $as_echo "$enable_static" >&6; } | |
10980 | |
10981 | |
10982 | |
10983 | |
10984 fi | |
10985 ac_ext=c | |
10986 ac_cpp='$CPP $CPPFLAGS' | |
10987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10989 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10990 | |
10991 CC="$lt_save_CC" | |
10992 | |
10993 | |
10994 | |
10995 | |
10996 | |
10997 | |
10998 | |
10999 | |
11000 | |
11001 | |
11002 | |
11003 | |
11004 | |
11005 ac_config_commands="$ac_config_commands libtool" | |
11006 | |
11007 | |
11008 | |
11009 | |
11010 # Only expand once: | |
11011 | |
11012 | |
11013 | |
11014 | |
11015 | |
11016 found=false | |
11017 | |
11018 # Check whether --with-openssl was given. | |
11019 if test "${with_openssl+set}" = set; then : | |
11020 withval=$with_openssl; | |
11021 case "$withval" in | |
11022 "" | y | ye | yes | n | no) | |
11023 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 | |
11024 ;; | |
11025 *) ssldirs="$withval" | |
11026 ;; | |
11027 esac | |
11028 | |
11029 else | |
11030 | |
11031 # if pkg-config is installed and openssl has installed a .pc file, | |
11032 # then use that information and don't search ssldirs | |
11033 # Extract the first word of "pkg-config", so it can be a program name with args. | |
11034 set dummy pkg-config; ac_word=$2 | |
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11036 $as_echo_n "checking for $ac_word... " >&6; } | |
11037 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | |
11038 $as_echo_n "(cached) " >&6 | |
11039 else | |
11040 case $PKG_CONFIG in | |
11041 [\\/]* | ?:[\\/]*) | |
11042 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11043 ;; | |
11044 *) | |
11045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11046 for as_dir in $PATH | |
11047 do | |
11048 IFS=$as_save_IFS | |
11049 test -z "$as_dir" && as_dir=. | |
11050 for ac_exec_ext in '' $ac_executable_extensions; do | |
11051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11052 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11054 break 2 | |
11055 fi | |
11056 done | |
11057 done | |
11058 IFS=$as_save_IFS | |
11059 | |
11060 ;; | |
11061 esac | |
11062 fi | |
11063 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11064 if test -n "$PKG_CONFIG"; then | |
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
11066 $as_echo "$PKG_CONFIG" >&6; } | |
11067 else | |
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11069 $as_echo "no" >&6; } | |
11070 fi | |
11071 | |
11072 | |
11073 if test x"$PKG_CONFIG" != x""; then | |
11074 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` | |
11075 if test $? = 0; then | |
11076 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` | |
11077 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` | |
11078 found=true | |
11079 fi | |
11080 fi | |
11081 | |
11082 # no such luck; use some default ssldirs | |
11083 if ! $found; then | |
11084 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" | |
11085 fi | |
11086 | |
11087 | |
11088 fi | |
11089 | |
11090 | |
11091 | |
11092 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in | |
11093 # an 'openssl' subdirectory | |
11094 | |
11095 if ! $found; then | |
11096 OPENSSL_INCLUDES= | |
11097 for ssldir in $ssldirs; do | |
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 | |
11099 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } | |
11100 if test -f "$ssldir/include/openssl/ssl.h"; then | |
11101 OPENSSL_INCLUDES="-I$ssldir/include" | |
11102 OPENSSL_LDFLAGS="-L$ssldir/lib" | |
11103 OPENSSL_LIBS="-lssl -lcrypto" | |
11104 found=true | |
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11106 $as_echo "yes" >&6; } | |
11107 break | |
11108 else | |
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11110 $as_echo "no" >&6; } | |
11111 fi | |
11112 done | |
11113 | |
11114 # if the file wasn't found, well, go ahead and try the link anyway -- maybe | |
11115 # it will just work! | |
11116 fi | |
11117 | |
11118 # try the preprocessor and linker with our new flags, | |
11119 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS | |
11120 | |
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 | |
11122 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } | |
11123 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ | |
11124 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 | |
11125 | |
11126 save_LIBS="$LIBS" | |
11127 save_LDFLAGS="$LDFLAGS" | |
11128 save_CPPFLAGS="$CPPFLAGS" | |
11129 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" | |
11130 LIBS="$OPENSSL_LIBS $LIBS" | |
11131 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" | |
11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11133 /* end confdefs.h. */ | |
11134 #include <openssl/ssl.h> | |
11135 int | |
11136 main () | |
11137 { | |
11138 SSL_new(NULL) | |
11139 ; | |
11140 return 0; | |
11141 } | |
11142 _ACEOF | |
11143 if ac_fn_c_try_link "$LINENO"; then : | |
11144 | |
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11146 $as_echo "yes" >&6; } | |
11147 echo >/dev/null | |
11148 | |
11149 else | |
11150 | |
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11152 $as_echo "no" >&6; } | |
11153 echo "You must install OpenSSL development files."; exit 1 | |
11154 | |
11155 fi | |
11156 rm -f core conftest.err conftest.$ac_objext \ | |
11157 conftest$ac_exeext conftest.$ac_ext | |
11158 CPPFLAGS="$save_CPPFLAGS" | |
11159 LDFLAGS="$save_LDFLAGS" | |
11160 LIBS="$save_LIBS" | |
11161 | |
11162 | |
11163 | |
11164 | |
11165 | |
11166 | |
11167 | |
11168 | |
11169 | |
11170 | |
11171 | |
11172 | |
11173 | |
11174 | |
11175 | |
11176 | |
11177 | |
11178 | |
11179 | |
11180 | |
11181 | |
11182 | |
11183 | |
11184 | |
11185 | |
11186 | |
11187 | |
11188 | |
11189 | |
11190 | |
11191 | |
11192 # Check whether --with-libcurl was given. | |
11193 if test "${with_libcurl+set}" = set; then : | |
11194 withval=$with_libcurl; _libcurl_with=$withval | |
11195 else | |
11196 _libcurl_with=yes | |
11197 fi | |
11198 | |
11199 | |
11200 if test "$_libcurl_with" != "no" ; then | |
11201 | |
11202 for ac_prog in gawk mawk nawk awk | |
11203 do | |
11204 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11205 set dummy $ac_prog; ac_word=$2 | |
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11207 $as_echo_n "checking for $ac_word... " >&6; } | |
11208 if test "${ac_cv_prog_AWK+set}" = set; then : | |
11209 $as_echo_n "(cached) " >&6 | |
11210 else | |
11211 if test -n "$AWK"; then | |
11212 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
11213 else | |
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11215 for as_dir in $PATH | |
11216 do | |
11217 IFS=$as_save_IFS | |
11218 test -z "$as_dir" && as_dir=. | |
11219 for ac_exec_ext in '' $ac_executable_extensions; do | |
11220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11221 ac_cv_prog_AWK="$ac_prog" | |
11222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11223 break 2 | |
11224 fi | |
11225 done | |
11226 done | |
11227 IFS=$as_save_IFS | |
11228 | |
11229 fi | |
11230 fi | |
11231 AWK=$ac_cv_prog_AWK | |
11232 if test -n "$AWK"; then | |
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
11234 $as_echo "$AWK" >&6; } | |
11235 else | |
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11237 $as_echo "no" >&6; } | |
11238 fi | |
11239 | |
11240 | |
11241 test -n "$AWK" && break | |
11242 done | |
11243 | |
11244 | |
11245 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'" | |
11246 | |
11247 _libcurl_try_link=yes | |
11248 | |
11249 if test -d "$_libcurl_with" ; then | |
11250 LIBCURL_CPPFLAGS="-I$withval/include" | |
11251 _libcurl_ldflags="-L$withval/lib" | |
11252 # Extract the first word of "curl-config", so it can be a program name with args. | |
11253 set dummy curl-config; ac_word=$2 | |
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11255 $as_echo_n "checking for $ac_word... " >&6; } | |
11256 if test "${ac_cv_path__libcurl_config+set}" = set; then : | |
11257 $as_echo_n "(cached) " >&6 | |
11258 else | |
11259 case $_libcurl_config in | |
11260 [\\/]* | ?:[\\/]*) | |
11261 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. | |
11262 ;; | |
11263 *) | |
11264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11265 for as_dir in "$withval/bin" | |
11266 do | |
11267 IFS=$as_save_IFS | |
11268 test -z "$as_dir" && as_dir=. | |
11269 for ac_exec_ext in '' $ac_executable_extensions; do | |
11270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11271 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" | |
11272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11273 break 2 | |
11274 fi | |
11275 done | |
11276 done | |
11277 IFS=$as_save_IFS | |
11278 | |
11279 test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin"" | |
11280 ;; | |
11281 esac | |
11282 fi | |
11283 _libcurl_config=$ac_cv_path__libcurl_config | |
11284 if test -n "$_libcurl_config"; then | |
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 | |
11286 $as_echo "$_libcurl_config" >&6; } | |
11287 else | |
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11289 $as_echo "no" >&6; } | |
11290 fi | |
11291 | |
11292 | |
11293 else | |
11294 # Extract the first word of "curl-config", so it can be a program name with args. | |
11295 set dummy curl-config; ac_word=$2 | |
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11297 $as_echo_n "checking for $ac_word... " >&6; } | |
11298 if test "${ac_cv_path__libcurl_config+set}" = set; then : | |
11299 $as_echo_n "(cached) " >&6 | |
11300 else | |
11301 case $_libcurl_config in | |
11302 [\\/]* | ?:[\\/]*) | |
11303 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. | |
11304 ;; | |
11305 *) | |
11306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11307 for as_dir in $PATH | |
11308 do | |
11309 IFS=$as_save_IFS | |
11310 test -z "$as_dir" && as_dir=. | |
11311 for ac_exec_ext in '' $ac_executable_extensions; do | |
11312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11313 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" | |
11314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11315 break 2 | |
11316 fi | |
11317 done | |
11318 done | |
11319 IFS=$as_save_IFS | |
11320 | |
11321 ;; | |
11322 esac | |
11323 fi | |
11324 _libcurl_config=$ac_cv_path__libcurl_config | |
11325 if test -n "$_libcurl_config"; then | |
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 | |
11327 $as_echo "$_libcurl_config" >&6; } | |
11328 else | |
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11330 $as_echo "no" >&6; } | |
11331 fi | |
11332 | |
11333 | |
11334 fi | |
11335 | |
11336 if test x$_libcurl_config != "x" ; then | |
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5 | |
11338 $as_echo_n "checking for the version of libcurl... " >&6; } | |
11339 if test "${libcurl_cv_lib_curl_version+set}" = set; then : | |
11340 $as_echo_n "(cached) " >&6 | |
11341 else | |
11342 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'` | |
11343 fi | |
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5 | |
11345 $as_echo "$libcurl_cv_lib_curl_version" >&6; } | |
11346 | |
11347 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse` | |
11348 _libcurl_wanted=`echo 0 | $_libcurl_version_parse` | |
11349 | |
11350 if test $_libcurl_wanted -gt 0 ; then | |
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version " >&5 | |
11352 $as_echo_n "checking for libcurl >= version ... " >&6; } | |
11353 if test "${libcurl_cv_lib_version_ok+set}" = set; then : | |
11354 $as_echo_n "(cached) " >&6 | |
11355 else | |
11356 | |
11357 if test $_libcurl_version -ge $_libcurl_wanted ; then | |
11358 libcurl_cv_lib_version_ok=yes | |
11359 else | |
11360 libcurl_cv_lib_version_ok=no | |
11361 fi | |
11362 | |
11363 fi | |
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5 | |
11365 $as_echo "$libcurl_cv_lib_version_ok" >&6; } | |
11366 fi | |
11367 | |
11368 if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then | |
11369 if test x"$LIBCURL_CPPFLAGS" = "x" ; then | |
11370 LIBCURL_CPPFLAGS=`$_libcurl_config --cflags` | |
11371 fi | |
11372 if test x"$LIBCURL" = "x" ; then | |
11373 LIBCURL=`$_libcurl_config --libs` | |
11374 | |
11375 # This is so silly, but Apple actually has a bug in their | |
11376 # curl-config script. Fixed in Tiger, but there are still | |
11377 # lots of Panther installs around. | |
11378 case "${host}" in | |
11379 powerpc-apple-darwin7*) | |
11380 LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'` | |
11381 ;; | |
11382 esac | |
11383 fi | |
11384 | |
11385 # All curl-config scripts support --feature | |
11386 _libcurl_features=`$_libcurl_config --feature` | |
11387 | |
11388 # Is it modern enough to have --protocols? (7.12.4) | |
11389 if test $_libcurl_version -ge 461828 ; then | |
11390 _libcurl_protocols=`$_libcurl_config --protocols` | |
11391 fi | |
11392 else | |
11393 _libcurl_try_link=no | |
11394 fi | |
11395 | |
11396 unset _libcurl_wanted | |
11397 fi | |
11398 | |
11399 if test $_libcurl_try_link = yes ; then | |
11400 | |
11401 # we didn't find curl-config, so let's see if the user-supplied | |
11402 # link line (or failing that, "-lcurl") is enough. | |
11403 LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"} | |
11404 | |
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5 | |
11406 $as_echo_n "checking whether libcurl is usable... " >&6; } | |
11407 if test "${libcurl_cv_lib_curl_usable+set}" = set; then : | |
11408 $as_echo_n "(cached) " >&6 | |
11409 else | |
11410 | |
11411 _libcurl_save_cppflags=$CPPFLAGS | |
11412 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS" | |
11413 _libcurl_save_libs=$LIBS | |
11414 LIBS="$LIBCURL $LIBS" | |
11415 | |
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11417 /* end confdefs.h. */ | |
11418 #include <curl/curl.h> | |
11419 int | |
11420 main () | |
11421 { | |
11422 | |
11423 /* Try and use a few common options to force a failure if we are | |
11424 missing symbols or can't link. */ | |
11425 int x; | |
11426 curl_easy_setopt(NULL,CURLOPT_URL,NULL); | |
11427 x=CURL_ERROR_SIZE; | |
11428 x=CURLOPT_WRITEFUNCTION; | |
11429 x=CURLOPT_FILE; | |
11430 x=CURLOPT_ERRORBUFFER; | |
11431 x=CURLOPT_STDERR; | |
11432 x=CURLOPT_VERBOSE; | |
11433 | |
11434 ; | |
11435 return 0; | |
11436 } | |
11437 _ACEOF | |
11438 if ac_fn_c_try_link "$LINENO"; then : | |
11439 libcurl_cv_lib_curl_usable=yes | |
11440 else | |
11441 libcurl_cv_lib_curl_usable=no | |
11442 fi | |
11443 rm -f core conftest.err conftest.$ac_objext \ | |
11444 conftest$ac_exeext conftest.$ac_ext | |
11445 | |
11446 CPPFLAGS=$_libcurl_save_cppflags | |
11447 LIBS=$_libcurl_save_libs | |
11448 unset _libcurl_save_cppflags | |
11449 unset _libcurl_save_libs | |
11450 | |
11451 fi | |
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5 | |
11453 $as_echo "$libcurl_cv_lib_curl_usable" >&6; } | |
11454 | |
11455 if test $libcurl_cv_lib_curl_usable = yes ; then | |
11456 | |
11457 # Does curl_free() exist in this version of libcurl? | |
11458 # If not, fake it with free() | |
11459 | |
11460 _libcurl_save_cppflags=$CPPFLAGS | |
11461 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" | |
11462 _libcurl_save_libs=$LIBS | |
11463 LIBS="$LIBS $LIBCURL" | |
11464 | |
11465 ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free" | |
11466 if test "x$ac_cv_func_curl_free" = x""yes; then : | |
11467 | |
11468 else | |
11469 | |
11470 $as_echo "#define curl_free free" >>confdefs.h | |
11471 | |
11472 fi | |
11473 | |
11474 | |
11475 CPPFLAGS=$_libcurl_save_cppflags | |
11476 LIBS=$_libcurl_save_libs | |
11477 unset _libcurl_save_cppflags | |
11478 unset _libcurl_save_libs | |
11479 | |
11480 | |
11481 $as_echo "#define HAVE_LIBCURL 1" >>confdefs.h | |
11482 | |
11483 | |
11484 | |
11485 | |
11486 for _libcurl_feature in $_libcurl_features ; do | |
11487 cat >>confdefs.h <<_ACEOF | |
11488 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1 | |
11489 _ACEOF | |
11490 | |
11491 eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes | |
11492 done | |
11493 | |
11494 if test "x$_libcurl_protocols" = "x" ; then | |
11495 | |
11496 # We don't have --protocols, so just assume that all | |
11497 # protocols are available | |
11498 _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP" | |
11499 | |
11500 if test x$libcurl_feature_SSL = xyes ; then | |
11501 _libcurl_protocols="$_libcurl_protocols HTTPS" | |
11502 | |
11503 # FTPS wasn't standards-compliant until version | |
11504 # 7.11.0 (0x070b00 == 461568) | |
11505 if test $_libcurl_version -ge 461568; then | |
11506 _libcurl_protocols="$_libcurl_protocols FTPS" | |
11507 fi | |
11508 fi | |
11509 | |
11510 # RTSP, IMAP, POP3 and SMTP were added in | |
11511 # 7.20.0 (0x071400 == 463872) | |
11512 if test $_libcurl_version -ge 463872; then | |
11513 _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP" | |
11514 fi | |
11515 fi | |
11516 | |
11517 for _libcurl_protocol in $_libcurl_protocols ; do | |
11518 cat >>confdefs.h <<_ACEOF | |
11519 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1 | |
11520 _ACEOF | |
11521 | |
11522 eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes | |
11523 done | |
11524 else | |
11525 unset LIBCURL | |
11526 unset LIBCURL_CPPFLAGS | |
11527 fi | |
11528 fi | |
11529 | |
11530 unset _libcurl_try_link | |
11531 unset _libcurl_version_parse | |
11532 unset _libcurl_config | |
11533 unset _libcurl_feature | |
11534 unset _libcurl_features | |
11535 unset _libcurl_protocol | |
11536 unset _libcurl_protocols | |
11537 unset _libcurl_version | |
11538 unset _libcurl_ldflags | |
11539 fi | |
11540 | |
11541 if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then | |
11542 # This is the IF-NO path | |
11543 echo "You must install libcurl development files."; exit 1 | |
11544 else | |
11545 # This is the IF-YES path | |
11546 echo >/dev/null | |
11547 fi | |
11548 | |
11549 unset _libcurl_with | |
11550 | |
11551 | |
11552 if test $prefix = "NONE"; then | |
11553 prefix=/usr/local | |
11554 fi | |
11555 | |
11556 if test -z $LIB; then | |
11557 LIB=$prefix/lib/urweb | |
11558 fi | |
11559 | |
11560 if test -z $INCLUDE; then | |
11561 INCLUDE=$prefix/include/urweb | |
11562 fi | |
11563 | |
11564 | |
11565 | |
11566 | |
11567 ac_config_files="$ac_config_files Makefile src/c/Makefile src/ur/config.urp" | |
11568 | |
11569 | |
11570 cat >confcache <<\_ACEOF | |
11571 # This file is a shell script that caches the results of configure | |
11572 # tests run on this system so they can be shared between configure | |
11573 # scripts and configure runs, see configure's option --config-cache. | |
11574 # It is not useful on other systems. If it contains results you don't | |
11575 # want to keep, you may remove or edit it. | |
11576 # | |
11577 # config.status only pays attention to the cache file if you give it | |
11578 # the --recheck option to rerun configure. | |
11579 # | |
11580 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11581 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11582 # following values. | |
11583 | |
11584 _ACEOF | |
11585 | |
11586 # The following way of writing the cache mishandles newlines in values, | |
11587 # but we know of no workaround that is simple, portable, and efficient. | |
11588 # So, we kill variables containing newlines. | |
11589 # Ultrix sh set writes to stderr and can't be redirected directly, | |
11590 # and sets the high bit in the cache file unless we assign to the vars. | |
11591 ( | |
11592 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11593 eval ac_val=\$$ac_var | |
11594 case $ac_val in #( | |
11595 *${as_nl}*) | |
11596 case $ac_var in #( | |
11597 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
11598 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
11599 esac | |
11600 case $ac_var in #( | |
11601 _ | IFS | as_nl) ;; #( | |
11602 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
11603 *) { eval $ac_var=; unset $ac_var;} ;; | |
11604 esac ;; | |
11605 esac | |
11606 done | |
11607 | |
11608 (set) 2>&1 | | |
11609 case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
11610 *${as_nl}ac_space=\ *) | |
11611 # `set' does not quote correctly, so add quotes: double-quote | |
11612 # substitution turns \\\\ into \\, and sed turns \\ into \. | |
11613 sed -n \ | |
11614 "s/'/'\\\\''/g; | |
11615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
11616 ;; #( | |
11617 *) | |
11618 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11619 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
11620 ;; | |
11621 esac | | |
11622 sort | |
11623 ) | | |
11624 sed ' | |
11625 /^ac_cv_env_/b end | |
11626 t clear | |
11627 :clear | |
11628 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11629 t end | |
11630 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11631 :end' >>confcache | |
11632 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11633 if test -w "$cache_file"; then | |
11634 test "x$cache_file" != "x/dev/null" && | |
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
11636 $as_echo "$as_me: updating cache $cache_file" >&6;} | |
11637 cat confcache >$cache_file | |
11638 else | |
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
11640 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
11641 fi | |
11642 fi | |
11643 rm -f confcache | |
11644 | |
11645 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
11646 # Let make expand exec_prefix. | |
11647 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11648 | |
11649 # Transform confdefs.h into DEFS. | |
11650 # Protect against shell expansion while executing Makefile rules. | |
11651 # Protect against Makefile macro expansion. | |
11652 # | |
11653 # If the first sed substitution is executed (which looks for macros that | |
11654 # take arguments), then branch to the quote section. Otherwise, | |
11655 # look for a macro that doesn't take arguments. | |
11656 ac_script=' | |
11657 :mline | |
11658 /\\$/{ | |
11659 N | |
11660 s,\\\n,, | |
11661 b mline | |
11662 } | |
11663 t clear | |
11664 :clear | |
11665 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
11666 t quote | |
11667 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
11668 t quote | |
11669 b any | |
11670 :quote | |
11671 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
11672 s/\[/\\&/g | |
11673 s/\]/\\&/g | |
11674 s/\$/$$/g | |
11675 H | |
11676 :any | |
11677 ${ | |
11678 g | |
11679 s/^\n// | |
11680 s/\n/ /g | |
11681 p | |
11682 } | |
11683 ' | |
11684 DEFS=`sed -n "$ac_script" confdefs.h` | |
11685 | |
11686 | |
11687 ac_libobjs= | |
11688 ac_ltlibobjs= | |
11689 U= | |
11690 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11691 # 1. Remove the extension, and $U if already installed. | |
11692 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
11693 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
11694 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
11695 # will be set to the directory where LIBOBJS objects are built. | |
11696 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11697 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
11698 done | |
11699 LIBOBJS=$ac_libobjs | |
11700 | |
11701 LTLIBOBJS=$ac_ltlibobjs | |
11702 | |
11703 | |
11704 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
11705 as_fn_error $? "conditional \"AMDEP\" was never defined. | |
11706 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11707 fi | |
11708 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
11709 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
11710 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11711 fi | |
11712 if test -n "$EXEEXT"; then | |
11713 am__EXEEXT_TRUE= | |
11714 am__EXEEXT_FALSE='#' | |
11715 else | |
11716 am__EXEEXT_TRUE='#' | |
11717 am__EXEEXT_FALSE= | |
11718 fi | |
11719 | |
11720 | |
11721 : ${CONFIG_STATUS=./config.status} | |
11722 ac_write_fail=0 | |
11723 ac_clean_files_save=$ac_clean_files | |
11724 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
11726 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11727 as_write_fail=0 | |
11728 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
11729 #! $SHELL | |
11730 # Generated by $as_me. | |
11731 # Run this file to recreate the current configuration. | |
11732 # Compiler output produced by configure, useful for debugging | |
11733 # configure, is in config.log if it exists. | |
11734 | |
11735 debug=false | |
11736 ac_cs_recheck=false | |
11737 ac_cs_silent=false | |
11738 | |
11739 SHELL=\${CONFIG_SHELL-$SHELL} | |
11740 export SHELL | |
11741 _ASEOF | |
11742 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
11743 ## -------------------- ## | |
11744 ## M4sh Initialization. ## | |
11745 ## -------------------- ## | |
11746 | |
11747 # Be more Bourne compatible | |
11748 DUALCASE=1; export DUALCASE # for MKS sh | |
11749 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
11750 emulate sh | |
11751 NULLCMD=: | |
11752 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
11753 # is contrary to our usage. Disable this feature. | |
11754 alias -g '${1+"$@"}'='"$@"' | |
11755 setopt NO_GLOB_SUBST | |
11756 else | |
11757 case `(set -o) 2>/dev/null` in #( | |
11758 *posix*) : | |
11759 set -o posix ;; #( | |
11760 *) : | |
11761 ;; | |
11762 esac | |
11763 fi | |
11764 | |
11765 | |
11766 as_nl=' | |
11767 ' | |
11768 export as_nl | |
11769 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
11770 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
11771 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
11772 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
11773 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
11774 # but without wasting forks for bash or zsh. | |
11775 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
11776 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11777 as_echo='print -r --' | |
11778 as_echo_n='print -rn --' | |
11779 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11780 as_echo='printf %s\n' | |
11781 as_echo_n='printf %s' | |
11782 else | |
11783 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
11784 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
11785 as_echo_n='/usr/ucb/echo -n' | |
11786 else | |
11787 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
11788 as_echo_n_body='eval | |
11789 arg=$1; | |
11790 case $arg in #( | |
11791 *"$as_nl"*) | |
11792 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
11793 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
11794 esac; | |
11795 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
11796 ' | |
11797 export as_echo_n_body | |
11798 as_echo_n='sh -c $as_echo_n_body as_echo' | |
11799 fi | |
11800 export as_echo_body | |
11801 as_echo='sh -c $as_echo_body as_echo' | |
11802 fi | |
11803 | |
11804 # The user is always right. | |
11805 if test "${PATH_SEPARATOR+set}" != set; then | |
11806 PATH_SEPARATOR=: | |
11807 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
11808 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
11809 PATH_SEPARATOR=';' | |
11810 } | |
11811 fi | |
11812 | |
11813 | |
11814 # IFS | |
11815 # We need space, tab and new line, in precisely that order. Quoting is | |
11816 # there to prevent editors from complaining about space-tab. | |
11817 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11818 # splitting by setting IFS to empty value.) | |
11819 IFS=" "" $as_nl" | |
11820 | |
11821 # Find who we are. Look in the path if we contain no directory separator. | |
11822 case $0 in #(( | |
11823 *[\\/]* ) as_myself=$0 ;; | |
11824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11825 for as_dir in $PATH | |
11826 do | |
11827 IFS=$as_save_IFS | |
11828 test -z "$as_dir" && as_dir=. | |
11829 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11830 done | |
11831 IFS=$as_save_IFS | |
11832 | |
11833 ;; | |
11834 esac | |
11835 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11836 # in which case we are not to be found in the path. | |
11837 if test "x$as_myself" = x; then | |
11838 as_myself=$0 | |
11839 fi | |
11840 if test ! -f "$as_myself"; then | |
11841 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
11842 exit 1 | |
11843 fi | |
11844 | |
11845 # Unset variables that we do not need and which cause bugs (e.g. in | |
11846 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
11847 # suppresses any "Segmentation fault" message there. '((' could | |
11848 # trigger a bug in pdksh 5.2.14. | |
11849 for as_var in BASH_ENV ENV MAIL MAILPATH | |
11850 do eval test x\${$as_var+set} = xset \ | |
11851 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
11852 done | |
11853 PS1='$ ' | |
11854 PS2='> ' | |
11855 PS4='+ ' | |
11856 | |
11857 # NLS nuisances. | |
11858 LC_ALL=C | |
11859 export LC_ALL | |
11860 LANGUAGE=C | |
11861 export LANGUAGE | |
11862 | |
11863 # CDPATH. | |
11864 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
11865 | |
11866 | |
11867 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
11868 # ---------------------------------------- | |
11869 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
11870 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
11871 # script with STATUS, using 1 if that was 0. | |
11872 as_fn_error () | |
11873 { | |
11874 as_status=$1; test $as_status -eq 0 && as_status=1 | |
11875 if test "$4"; then | |
11876 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
11877 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
11878 fi | |
11879 $as_echo "$as_me: error: $2" >&2 | |
11880 as_fn_exit $as_status | |
11881 } # as_fn_error | |
11882 | |
11883 | |
11884 # as_fn_set_status STATUS | |
11885 # ----------------------- | |
11886 # Set $? to STATUS, without forking. | |
11887 as_fn_set_status () | |
11888 { | |
11889 return $1 | |
11890 } # as_fn_set_status | |
11891 | |
11892 # as_fn_exit STATUS | |
11893 # ----------------- | |
11894 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
11895 as_fn_exit () | |
11896 { | |
11897 set +e | |
11898 as_fn_set_status $1 | |
11899 exit $1 | |
11900 } # as_fn_exit | |
11901 | |
11902 # as_fn_unset VAR | |
11903 # --------------- | |
11904 # Portably unset VAR. | |
11905 as_fn_unset () | |
11906 { | |
11907 { eval $1=; unset $1;} | |
11908 } | |
11909 as_unset=as_fn_unset | |
11910 # as_fn_append VAR VALUE | |
11911 # ---------------------- | |
11912 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
11913 # advantage of any shell optimizations that allow amortized linear growth over | |
11914 # repeated appends, instead of the typical quadratic growth present in naive | |
11915 # implementations. | |
11916 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
11917 eval 'as_fn_append () | |
11918 { | |
11919 eval $1+=\$2 | |
11920 }' | |
11921 else | |
11922 as_fn_append () | |
11923 { | |
11924 eval $1=\$$1\$2 | |
11925 } | |
11926 fi # as_fn_append | |
11927 | |
11928 # as_fn_arith ARG... | |
11929 # ------------------ | |
11930 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
11931 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
11932 # must be portable across $(()) and expr. | |
11933 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
11934 eval 'as_fn_arith () | |
11935 { | |
11936 as_val=$(( $* )) | |
11937 }' | |
11938 else | |
11939 as_fn_arith () | |
11940 { | |
11941 as_val=`expr "$@" || test $? -eq 1` | |
11942 } | |
11943 fi # as_fn_arith | |
11944 | |
11945 | |
11946 if expr a : '\(a\)' >/dev/null 2>&1 && | |
11947 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
11948 as_expr=expr | |
11949 else | |
11950 as_expr=false | |
11951 fi | |
11952 | |
11953 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
11954 as_basename=basename | |
11955 else | |
11956 as_basename=false | |
11957 fi | |
11958 | |
11959 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
11960 as_dirname=dirname | |
11961 else | |
11962 as_dirname=false | |
11963 fi | |
11964 | |
11965 as_me=`$as_basename -- "$0" || | |
11966 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
11967 X"$0" : 'X\(//\)$' \| \ | |
11968 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
11969 $as_echo X/"$0" | | |
11970 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
11971 s//\1/ | |
11972 q | |
11973 } | |
11974 /^X\/\(\/\/\)$/{ | |
11975 s//\1/ | |
11976 q | |
11977 } | |
11978 /^X\/\(\/\).*/{ | |
11979 s//\1/ | |
11980 q | |
11981 } | |
11982 s/.*/./; q'` | |
11983 | |
11984 # Avoid depending upon Character Ranges. | |
11985 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11986 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11987 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11988 as_cr_digits='0123456789' | |
11989 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11990 | |
11991 ECHO_C= ECHO_N= ECHO_T= | |
11992 case `echo -n x` in #((((( | |
11993 -n*) | |
11994 case `echo 'xy\c'` in | |
11995 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
11996 xy) ECHO_C='\c';; | |
11997 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
11998 ECHO_T=' ';; | |
11999 esac;; | |
12000 *) | |
12001 ECHO_N='-n';; | |
12002 esac | |
12003 | |
12004 rm -f conf$$ conf$$.exe conf$$.file | |
12005 if test -d conf$$.dir; then | |
12006 rm -f conf$$.dir/conf$$.file | |
12007 else | |
12008 rm -f conf$$.dir | |
12009 mkdir conf$$.dir 2>/dev/null | |
12010 fi | |
12011 if (echo >conf$$.file) 2>/dev/null; then | |
12012 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12013 as_ln_s='ln -s' | |
12014 # ... but there are two gotchas: | |
12015 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12016 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12017 # In both cases, we have to default to `cp -p'. | |
12018 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12019 as_ln_s='cp -p' | |
12020 elif ln conf$$.file conf$$ 2>/dev/null; then | |
12021 as_ln_s=ln | |
12022 else | |
12023 as_ln_s='cp -p' | |
12024 fi | |
12025 else | |
12026 as_ln_s='cp -p' | |
12027 fi | |
12028 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
12029 rmdir conf$$.dir 2>/dev/null | |
12030 | |
12031 | |
12032 # as_fn_mkdir_p | |
12033 # ------------- | |
12034 # Create "$as_dir" as a directory, including parents if necessary. | |
12035 as_fn_mkdir_p () | |
12036 { | |
12037 | |
12038 case $as_dir in #( | |
12039 -*) as_dir=./$as_dir;; | |
12040 esac | |
12041 test -d "$as_dir" || eval $as_mkdir_p || { | |
12042 as_dirs= | |
12043 while :; do | |
12044 case $as_dir in #( | |
12045 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12046 *) as_qdir=$as_dir;; | |
12047 esac | |
12048 as_dirs="'$as_qdir' $as_dirs" | |
12049 as_dir=`$as_dirname -- "$as_dir" || | |
12050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12051 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12052 X"$as_dir" : 'X\(//\)$' \| \ | |
12053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12054 $as_echo X"$as_dir" | | |
12055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12056 s//\1/ | |
12057 q | |
12058 } | |
12059 /^X\(\/\/\)[^/].*/{ | |
12060 s//\1/ | |
12061 q | |
12062 } | |
12063 /^X\(\/\/\)$/{ | |
12064 s//\1/ | |
12065 q | |
12066 } | |
12067 /^X\(\/\).*/{ | |
12068 s//\1/ | |
12069 q | |
12070 } | |
12071 s/.*/./; q'` | |
12072 test -d "$as_dir" && break | |
12073 done | |
12074 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12075 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
12076 | |
12077 | |
12078 } # as_fn_mkdir_p | |
12079 if mkdir -p . 2>/dev/null; then | |
12080 as_mkdir_p='mkdir -p "$as_dir"' | |
12081 else | |
12082 test -d ./-p && rmdir ./-p | |
12083 as_mkdir_p=false | |
12084 fi | |
12085 | |
12086 if test -x / >/dev/null 2>&1; then | |
12087 as_test_x='test -x' | |
12088 else | |
12089 if ls -dL / >/dev/null 2>&1; then | |
12090 as_ls_L_option=L | |
12091 else | |
12092 as_ls_L_option= | |
12093 fi | |
12094 as_test_x=' | |
12095 eval sh -c '\'' | |
12096 if test -d "$1"; then | |
12097 test -d "$1/."; | |
12098 else | |
12099 case $1 in #( | |
12100 -*)set "./$1";; | |
12101 esac; | |
12102 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
12103 ???[sx]*):;;*)false;;esac;fi | |
12104 '\'' sh | |
12105 ' | |
12106 fi | |
12107 as_executable_p=$as_test_x | |
12108 | |
12109 # Sed expression to map a string onto a valid CPP name. | |
12110 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12111 | |
12112 # Sed expression to map a string onto a valid variable name. | |
12113 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12114 | |
12115 | |
12116 exec 6>&1 | |
12117 ## ----------------------------------- ## | |
12118 ## Main body of $CONFIG_STATUS script. ## | |
12119 ## ----------------------------------- ## | |
12120 _ASEOF | |
12121 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
12122 | |
12123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12124 # Save the log message, to keep $0 and so on meaningful, and to | |
12125 # report actual input values of CONFIG_FILES etc. instead of their | |
12126 # values after options handling. | |
12127 ac_log=" | |
12128 This file was extended by urweb_openid $as_me 1.0, which was | |
12129 generated by GNU Autoconf 2.67. Invocation command line was | |
12130 | |
12131 CONFIG_FILES = $CONFIG_FILES | |
12132 CONFIG_HEADERS = $CONFIG_HEADERS | |
12133 CONFIG_LINKS = $CONFIG_LINKS | |
12134 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12135 $ $0 $@ | |
12136 | |
12137 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
12138 " | |
12139 | |
12140 _ACEOF | |
12141 | |
12142 case $ac_config_files in *" | |
12143 "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
12144 esac | |
12145 | |
12146 | |
12147 | |
12148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12149 # Files that config.status was made for. | |
12150 config_files="$ac_config_files" | |
12151 config_commands="$ac_config_commands" | |
12152 | |
12153 _ACEOF | |
12154 | |
12155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12156 ac_cs_usage="\ | |
12157 \`$as_me' instantiates files and other configuration actions | |
12158 from templates according to the current configuration. Unless the files | |
12159 and actions are specified as TAGs, all are instantiated by default. | |
12160 | |
12161 Usage: $0 [OPTION]... [TAG]... | |
12162 | |
12163 -h, --help print this help, then exit | |
12164 -V, --version print version number and configuration settings, then exit | |
12165 --config print configuration, then exit | |
12166 -q, --quiet, --silent | |
12167 do not print progress messages | |
12168 -d, --debug don't remove temporary files | |
12169 --recheck update $as_me by reconfiguring in the same conditions | |
12170 --file=FILE[:TEMPLATE] | |
12171 instantiate the configuration file FILE | |
12172 | |
12173 Configuration files: | |
12174 $config_files | |
12175 | |
12176 Configuration commands: | |
12177 $config_commands | |
12178 | |
12179 Report bugs to the package provider." | |
12180 | |
12181 _ACEOF | |
12182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12183 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
12184 ac_cs_version="\\ | |
12185 urweb_openid config.status 1.0 | |
12186 configured by $0, generated by GNU Autoconf 2.67, | |
12187 with options \\"\$ac_cs_config\\" | |
12188 | |
12189 Copyright (C) 2010 Free Software Foundation, Inc. | |
12190 This config.status script is free software; the Free Software Foundation | |
12191 gives unlimited permission to copy, distribute and modify it." | |
12192 | |
12193 ac_pwd='$ac_pwd' | |
12194 srcdir='$srcdir' | |
12195 INSTALL='$INSTALL' | |
12196 MKDIR_P='$MKDIR_P' | |
12197 AWK='$AWK' | |
12198 test -n "\$AWK" || AWK=awk | |
12199 _ACEOF | |
12200 | |
12201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12202 # The default lists apply if the user does not specify any file. | |
12203 ac_need_defaults=: | |
12204 while test $# != 0 | |
12205 do | |
12206 case $1 in | |
12207 --*=?*) | |
12208 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12209 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
12210 ac_shift=: | |
12211 ;; | |
12212 --*=) | |
12213 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12214 ac_optarg= | |
12215 ac_shift=: | |
12216 ;; | |
12217 *) | |
12218 ac_option=$1 | |
12219 ac_optarg=$2 | |
12220 ac_shift=shift | |
12221 ;; | |
12222 esac | |
12223 | |
12224 case $ac_option in | |
12225 # Handling of the options. | |
12226 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
12227 ac_cs_recheck=: ;; | |
12228 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
12229 $as_echo "$ac_cs_version"; exit ;; | |
12230 --config | --confi | --conf | --con | --co | --c ) | |
12231 $as_echo "$ac_cs_config"; exit ;; | |
12232 --debug | --debu | --deb | --de | --d | -d ) | |
12233 debug=: ;; | |
12234 --file | --fil | --fi | --f ) | |
12235 $ac_shift | |
12236 case $ac_optarg in | |
12237 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12238 '') as_fn_error $? "missing file argument" ;; | |
12239 esac | |
12240 as_fn_append CONFIG_FILES " '$ac_optarg'" | |
12241 ac_need_defaults=false;; | |
12242 --he | --h | --help | --hel | -h ) | |
12243 $as_echo "$ac_cs_usage"; exit ;; | |
12244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
12245 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12246 ac_cs_silent=: ;; | |
12247 | |
12248 # This is an error. | |
12249 -*) as_fn_error $? "unrecognized option: \`$1' | |
12250 Try \`$0 --help' for more information." ;; | |
12251 | |
12252 *) as_fn_append ac_config_targets " $1" | |
12253 ac_need_defaults=false ;; | |
12254 | |
12255 esac | |
12256 shift | |
12257 done | |
12258 | |
12259 ac_configure_extra_args= | |
12260 | |
12261 if $ac_cs_silent; then | |
12262 exec 6>/dev/null | |
12263 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12264 fi | |
12265 | |
12266 _ACEOF | |
12267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12268 if \$ac_cs_recheck; then | |
12269 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
12270 shift | |
12271 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
12272 CONFIG_SHELL='$SHELL' | |
12273 export CONFIG_SHELL | |
12274 exec "\$@" | |
12275 fi | |
12276 | |
12277 _ACEOF | |
12278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12279 exec 5>>config.log | |
12280 { | |
12281 echo | |
12282 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12283 ## Running $as_me. ## | |
12284 _ASBOX | |
12285 $as_echo "$ac_log" | |
12286 } >&5 | |
12287 | |
12288 _ACEOF | |
12289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12290 # | |
12291 # INIT-COMMANDS | |
12292 # | |
12293 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
12294 | |
12295 | |
12296 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
12297 # if CDPATH is set. | |
12298 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12299 | |
12300 sed_quote_subst='$sed_quote_subst' | |
12301 double_quote_subst='$double_quote_subst' | |
12302 delay_variable_subst='$delay_variable_subst' | |
12303 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
12304 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
12305 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
12306 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12307 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
12308 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
12309 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
12310 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
12311 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
12312 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
12313 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
12314 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
12315 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
12316 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
12317 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12318 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12319 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12320 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
12321 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
12322 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
12323 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
12324 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
12325 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
12326 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
12327 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
12328 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
12329 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12330 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12331 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
12332 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
12333 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
12334 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
12335 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
12336 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
12337 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
12338 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12339 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12340 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12341 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
12342 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
12343 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
12344 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
12345 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
12346 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
12347 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
12348 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
12349 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
12350 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
12351 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
12352 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
12353 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12354 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
12355 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
12356 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12357 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
12358 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
12359 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
12360 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
12361 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
12362 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
12363 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
12364 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
12365 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12366 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12367 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
12368 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
12369 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12370 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12371 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
12372 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12373 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12374 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12375 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12376 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12377 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12378 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
12379 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12380 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12381 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12382 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
12383 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
12384 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
12385 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
12386 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
12387 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12388 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
12389 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
12390 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
12391 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
12392 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
12393 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12394 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
12395 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
12396 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12397 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12398 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
12399 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
12400 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
12401 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
12402 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12403 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12404 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
12405 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12406 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12407 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12408 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12409 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12410 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12411 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
12412 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
12413 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12414 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12415 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
12416 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
12417 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
12418 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12419 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
12420 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
12421 | |
12422 LTCC='$LTCC' | |
12423 LTCFLAGS='$LTCFLAGS' | |
12424 compiler='$compiler_DEFAULT' | |
12425 | |
12426 # Quote evaled strings. | |
12427 for var in SED \ | |
12428 GREP \ | |
12429 EGREP \ | |
12430 FGREP \ | |
12431 LD \ | |
12432 NM \ | |
12433 LN_S \ | |
12434 lt_SP2NL \ | |
12435 lt_NL2SP \ | |
12436 reload_flag \ | |
12437 OBJDUMP \ | |
12438 deplibs_check_method \ | |
12439 file_magic_cmd \ | |
12440 AR \ | |
12441 AR_FLAGS \ | |
12442 STRIP \ | |
12443 RANLIB \ | |
12444 CC \ | |
12445 CFLAGS \ | |
12446 compiler \ | |
12447 lt_cv_sys_global_symbol_pipe \ | |
12448 lt_cv_sys_global_symbol_to_cdecl \ | |
12449 lt_cv_sys_global_symbol_to_c_name_address \ | |
12450 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
12451 SHELL \ | |
12452 ECHO \ | |
12453 lt_prog_compiler_no_builtin_flag \ | |
12454 lt_prog_compiler_wl \ | |
12455 lt_prog_compiler_pic \ | |
12456 lt_prog_compiler_static \ | |
12457 lt_cv_prog_compiler_c_o \ | |
12458 need_locks \ | |
12459 DSYMUTIL \ | |
12460 NMEDIT \ | |
12461 LIPO \ | |
12462 OTOOL \ | |
12463 OTOOL64 \ | |
12464 shrext_cmds \ | |
12465 export_dynamic_flag_spec \ | |
12466 whole_archive_flag_spec \ | |
12467 compiler_needs_object \ | |
12468 with_gnu_ld \ | |
12469 allow_undefined_flag \ | |
12470 no_undefined_flag \ | |
12471 hardcode_libdir_flag_spec \ | |
12472 hardcode_libdir_flag_spec_ld \ | |
12473 hardcode_libdir_separator \ | |
12474 fix_srcfile_path \ | |
12475 exclude_expsyms \ | |
12476 include_expsyms \ | |
12477 file_list_spec \ | |
12478 variables_saved_for_relink \ | |
12479 libname_spec \ | |
12480 library_names_spec \ | |
12481 soname_spec \ | |
12482 finish_eval \ | |
12483 old_striplib \ | |
12484 striplib; do | |
12485 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
12486 *[\\\\\\\`\\"\\\$]*) | |
12487 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
12488 ;; | |
12489 *) | |
12490 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12491 ;; | |
12492 esac | |
12493 done | |
12494 | |
12495 # Double-quote double-evaled strings. | |
12496 for var in reload_cmds \ | |
12497 old_postinstall_cmds \ | |
12498 old_postuninstall_cmds \ | |
12499 old_archive_cmds \ | |
12500 extract_expsyms_cmds \ | |
12501 old_archive_from_new_cmds \ | |
12502 old_archive_from_expsyms_cmds \ | |
12503 archive_cmds \ | |
12504 archive_expsym_cmds \ | |
12505 module_cmds \ | |
12506 module_expsym_cmds \ | |
12507 export_symbols_cmds \ | |
12508 prelink_cmds \ | |
12509 postinstall_cmds \ | |
12510 postuninstall_cmds \ | |
12511 finish_cmds \ | |
12512 sys_lib_search_path_spec \ | |
12513 sys_lib_dlsearch_path_spec; do | |
12514 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
12515 *[\\\\\\\`\\"\\\$]*) | |
12516 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
12517 ;; | |
12518 *) | |
12519 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12520 ;; | |
12521 esac | |
12522 done | |
12523 | |
12524 # Fix-up fallback echo if it was mangled by the above quoting rules. | |
12525 case \$lt_ECHO in | |
12526 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
12527 ;; | |
12528 esac | |
12529 | |
12530 ac_aux_dir='$ac_aux_dir' | |
12531 xsi_shell='$xsi_shell' | |
12532 lt_shell_append='$lt_shell_append' | |
12533 | |
12534 # See if we are running on zsh, and set the options which allow our | |
12535 # commands through without removal of \ escapes INIT. | |
12536 if test -n "\${ZSH_VERSION+set}" ; then | |
12537 setopt NO_GLOB_SUBST | |
12538 fi | |
12539 | |
12540 | |
12541 PACKAGE='$PACKAGE' | |
12542 VERSION='$VERSION' | |
12543 TIMESTAMP='$TIMESTAMP' | |
12544 RM='$RM' | |
12545 ofile='$ofile' | |
12546 | |
12547 | |
12548 | |
12549 | |
12550 _ACEOF | |
12551 | |
12552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12553 | |
12554 # Handling of arguments. | |
12555 for ac_config_target in $ac_config_targets | |
12556 do | |
12557 case $ac_config_target in | |
12558 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
12559 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
12560 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12561 "src/c/Makefile") CONFIG_FILES="$CONFIG_FILES src/c/Makefile" ;; | |
12562 "src/ur/config.urp") CONFIG_FILES="$CONFIG_FILES src/ur/config.urp" ;; | |
12563 | |
12564 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | |
12565 esac | |
12566 done | |
12567 | |
12568 | |
12569 # If the user did not use the arguments to specify the items to instantiate, | |
12570 # then the envvar interface is used. Set only those that are not. | |
12571 # We use the long form for the default assignment because of an extremely | |
12572 # bizarre bug on SunOS 4.1.3. | |
12573 if $ac_need_defaults; then | |
12574 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12575 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
12576 fi | |
12577 | |
12578 # Have a temporary directory for convenience. Make it in the build tree | |
12579 # simply because there is no reason against having it here, and in addition, | |
12580 # creating and moving files from /tmp can sometimes cause problems. | |
12581 # Hook for its removal unless debugging. | |
12582 # Note that there is a small window in which the directory will not be cleaned: | |
12583 # after its creation but before its name has been assigned to `$tmp'. | |
12584 $debug || | |
12585 { | |
12586 tmp= | |
12587 trap 'exit_status=$? | |
12588 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12589 ' 0 | |
12590 trap 'as_fn_exit 1' 1 2 13 15 | |
12591 } | |
12592 # Create a (secure) tmp directory for tmp files. | |
12593 | |
12594 { | |
12595 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
12596 test -n "$tmp" && test -d "$tmp" | |
12597 } || | |
12598 { | |
12599 tmp=./conf$$-$RANDOM | |
12600 (umask 077 && mkdir "$tmp") | |
12601 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
12602 | |
12603 # Set up the scripts for CONFIG_FILES section. | |
12604 # No need to generate them if there are no CONFIG_FILES. | |
12605 # This happens for instance with `./config.status config.h'. | |
12606 if test -n "$CONFIG_FILES"; then | |
12607 | |
12608 | |
12609 ac_cr=`echo X | tr X '\015'` | |
12610 # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
12611 # But we know of no other shell where ac_cr would be empty at this | |
12612 # point, so we can use a bashism as a fallback. | |
12613 if test "x$ac_cr" = x; then | |
12614 eval ac_cr=\$\'\\r\' | |
12615 fi | |
12616 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
12617 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12618 ac_cs_awk_cr='\\r' | |
12619 else | |
12620 ac_cs_awk_cr=$ac_cr | |
12621 fi | |
12622 | |
12623 echo 'BEGIN {' >"$tmp/subs1.awk" && | |
12624 _ACEOF | |
12625 | |
12626 | |
12627 { | |
12628 echo "cat >conf$$subs.awk <<_ACEOF" && | |
12629 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
12630 echo "_ACEOF" | |
12631 } >conf$$subs.sh || | |
12632 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
12633 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
12634 ac_delim='%!_!# ' | |
12635 for ac_last_try in false false false false false :; do | |
12636 . ./conf$$subs.sh || | |
12637 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
12638 | |
12639 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
12640 if test $ac_delim_n = $ac_delim_num; then | |
12641 break | |
12642 elif $ac_last_try; then | |
12643 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
12644 else | |
12645 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12646 fi | |
12647 done | |
12648 rm -f conf$$subs.sh | |
12649 | |
12650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12651 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
12652 _ACEOF | |
12653 sed -n ' | |
12654 h | |
12655 s/^/S["/; s/!.*/"]=/ | |
12656 p | |
12657 g | |
12658 s/^[^!]*!// | |
12659 :repl | |
12660 t repl | |
12661 s/'"$ac_delim"'$// | |
12662 t delim | |
12663 :nl | |
12664 h | |
12665 s/\(.\{148\}\)..*/\1/ | |
12666 t more1 | |
12667 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
12668 p | |
12669 n | |
12670 b repl | |
12671 :more1 | |
12672 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12673 p | |
12674 g | |
12675 s/.\{148\}// | |
12676 t nl | |
12677 :delim | |
12678 h | |
12679 s/\(.\{148\}\)..*/\1/ | |
12680 t more2 | |
12681 s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
12682 p | |
12683 b | |
12684 :more2 | |
12685 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12686 p | |
12687 g | |
12688 s/.\{148\}// | |
12689 t delim | |
12690 ' <conf$$subs.awk | sed ' | |
12691 /^[^""]/{ | |
12692 N | |
12693 s/\n// | |
12694 } | |
12695 ' >>$CONFIG_STATUS || ac_write_fail=1 | |
12696 rm -f conf$$subs.awk | |
12697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12698 _ACAWK | |
12699 cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
12700 for (key in S) S_is_set[key] = 1 | |
12701 FS = "" | |
12702 | |
12703 } | |
12704 { | |
12705 line = $ 0 | |
12706 nfields = split(line, field, "@") | |
12707 substed = 0 | |
12708 len = length(field[1]) | |
12709 for (i = 2; i < nfields; i++) { | |
12710 key = field[i] | |
12711 keylen = length(key) | |
12712 if (S_is_set[key]) { | |
12713 value = S[key] | |
12714 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
12715 len += length(value) + length(field[++i]) | |
12716 substed = 1 | |
12717 } else | |
12718 len += 1 + keylen | |
12719 } | |
12720 | |
12721 print line | |
12722 } | |
12723 | |
12724 _ACAWK | |
12725 _ACEOF | |
12726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12727 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
12728 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
12729 else | |
12730 cat | |
12731 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
12732 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
12733 _ACEOF | |
12734 | |
12735 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
12736 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
12737 # trailing colons and then remove the whole line if VPATH becomes empty | |
12738 # (actually we leave an empty line to preserve line numbers). | |
12739 if test "x$srcdir" = x.; then | |
12740 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
12741 h | |
12742 s/// | |
12743 s/^/:/ | |
12744 s/[ ]*$/:/ | |
12745 s/:\$(srcdir):/:/g | |
12746 s/:\${srcdir}:/:/g | |
12747 s/:@srcdir@:/:/g | |
12748 s/^:*// | |
12749 s/:*$// | |
12750 x | |
12751 s/\(=[ ]*\).*/\1/ | |
12752 G | |
12753 s/\n// | |
12754 s/^[^=]*=[ ]*$// | |
12755 }' | |
12756 fi | |
12757 | |
12758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12759 fi # test -n "$CONFIG_FILES" | |
12760 | |
12761 | |
12762 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" | |
12763 shift | |
12764 for ac_tag | |
12765 do | |
12766 case $ac_tag in | |
12767 :[FHLC]) ac_mode=$ac_tag; continue;; | |
12768 esac | |
12769 case $ac_mode$ac_tag in | |
12770 :[FHL]*:*);; | |
12771 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; | |
12772 :[FH]-) ac_tag=-:-;; | |
12773 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12774 esac | |
12775 ac_save_IFS=$IFS | |
12776 IFS=: | |
12777 set x $ac_tag | |
12778 IFS=$ac_save_IFS | |
12779 shift | |
12780 ac_file=$1 | |
12781 shift | |
12782 | |
12783 case $ac_mode in | |
12784 :L) ac_source=$1;; | |
12785 :[FH]) | |
12786 ac_file_inputs= | |
12787 for ac_f | |
12788 do | |
12789 case $ac_f in | |
12790 -) ac_f="$tmp/stdin";; | |
12791 *) # Look for the file first in the build tree, then in the source tree | |
12792 # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12793 # because $ac_f cannot contain `:'. | |
12794 test -f "$ac_f" || | |
12795 case $ac_f in | |
12796 [\\/$]*) false;; | |
12797 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12798 esac || | |
12799 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; | |
12800 esac | |
12801 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
12802 as_fn_append ac_file_inputs " '$ac_f'" | |
12803 done | |
12804 | |
12805 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12806 # use $as_me), people would be surprised to read: | |
12807 # /* config.h. Generated by config.status. */ | |
12808 configure_input='Generated from '` | |
12809 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
12810 `' by configure.' | |
12811 if test x"$ac_file" != x-; then | |
12812 configure_input="$ac_file. $configure_input" | |
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
12814 $as_echo "$as_me: creating $ac_file" >&6;} | |
12815 fi | |
12816 # Neutralize special characters interpreted by sed in replacement strings. | |
12817 case $configure_input in #( | |
12818 *\&* | *\|* | *\\* ) | |
12819 ac_sed_conf_input=`$as_echo "$configure_input" | | |
12820 sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
12821 *) ac_sed_conf_input=$configure_input;; | |
12822 esac | |
12823 | |
12824 case $ac_tag in | |
12825 *:-:* | *:-) cat >"$tmp/stdin" \ | |
12826 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
12827 esac | |
12828 ;; | |
12829 esac | |
12830 | |
12831 ac_dir=`$as_dirname -- "$ac_file" || | |
12832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12833 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12834 X"$ac_file" : 'X\(//\)$' \| \ | |
12835 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
12836 $as_echo X"$ac_file" | | |
12837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12838 s//\1/ | |
12839 q | |
12840 } | |
12841 /^X\(\/\/\)[^/].*/{ | |
12842 s//\1/ | |
12843 q | |
12844 } | |
12845 /^X\(\/\/\)$/{ | |
12846 s//\1/ | |
12847 q | |
12848 } | |
12849 /^X\(\/\).*/{ | |
12850 s//\1/ | |
12851 q | |
12852 } | |
12853 s/.*/./; q'` | |
12854 as_dir="$ac_dir"; as_fn_mkdir_p | |
12855 ac_builddir=. | |
12856 | |
12857 case "$ac_dir" in | |
12858 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12859 *) | |
12860 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
12861 # A ".." for each directory in $ac_dir_suffix. | |
12862 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
12863 case $ac_top_builddir_sub in | |
12864 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12865 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12866 esac ;; | |
12867 esac | |
12868 ac_abs_top_builddir=$ac_pwd | |
12869 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12870 # for backward compatibility: | |
12871 ac_top_builddir=$ac_top_build_prefix | |
12872 | |
12873 case $srcdir in | |
12874 .) # We are building in place. | |
12875 ac_srcdir=. | |
12876 ac_top_srcdir=$ac_top_builddir_sub | |
12877 ac_abs_top_srcdir=$ac_pwd ;; | |
12878 [\\/]* | ?:[\\/]* ) # Absolute name. | |
12879 ac_srcdir=$srcdir$ac_dir_suffix; | |
12880 ac_top_srcdir=$srcdir | |
12881 ac_abs_top_srcdir=$srcdir ;; | |
12882 *) # Relative name. | |
12883 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12884 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12885 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
12886 esac | |
12887 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
12888 | |
12889 | |
12890 case $ac_mode in | |
12891 :F) | |
12892 # | |
12893 # CONFIG_FILE | |
12894 # | |
12895 | |
12896 case $INSTALL in | |
12897 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
12898 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
12899 esac | |
12900 ac_MKDIR_P=$MKDIR_P | |
12901 case $MKDIR_P in | |
12902 [\\/$]* | ?:[\\/]* ) ;; | |
12903 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
12904 esac | |
12905 _ACEOF | |
12906 | |
12907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12908 # If the template does not know about datarootdir, expand it. | |
12909 # FIXME: This hack should be removed a few years after 2.60. | |
12910 ac_datarootdir_hack=; ac_datarootdir_seen= | |
12911 ac_sed_dataroot=' | |
12912 /datarootdir/ { | |
12913 p | |
12914 q | |
12915 } | |
12916 /@datadir@/p | |
12917 /@docdir@/p | |
12918 /@infodir@/p | |
12919 /@localedir@/p | |
12920 /@mandir@/p' | |
12921 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
12922 *datarootdir*) ac_datarootdir_seen=yes;; | |
12923 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
12925 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
12926 _ACEOF | |
12927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12928 ac_datarootdir_hack=' | |
12929 s&@datadir@&$datadir&g | |
12930 s&@docdir@&$docdir&g | |
12931 s&@infodir@&$infodir&g | |
12932 s&@localedir@&$localedir&g | |
12933 s&@mandir@&$mandir&g | |
12934 s&\\\${datarootdir}&$datarootdir&g' ;; | |
12935 esac | |
12936 _ACEOF | |
12937 | |
12938 # Neutralize VPATH when `$srcdir' = `.'. | |
12939 # Shell code in configure.ac might set extrasub. | |
12940 # FIXME: do we really want to maintain this feature? | |
12941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12942 ac_sed_extra="$ac_vpsub | |
12943 $extrasub | |
12944 _ACEOF | |
12945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12946 :t | |
12947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12948 s|@configure_input@|$ac_sed_conf_input|;t t | |
12949 s&@top_builddir@&$ac_top_builddir_sub&;t t | |
12950 s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
12951 s&@srcdir@&$ac_srcdir&;t t | |
12952 s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12953 s&@top_srcdir@&$ac_top_srcdir&;t t | |
12954 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12955 s&@builddir@&$ac_builddir&;t t | |
12956 s&@abs_builddir@&$ac_abs_builddir&;t t | |
12957 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12958 s&@INSTALL@&$ac_INSTALL&;t t | |
12959 s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
12960 $ac_datarootdir_hack | |
12961 " | |
12962 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
12963 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
12964 | |
12965 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
12966 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
12967 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
12969 which seems to be undefined. Please make sure it is defined" >&5 | |
12970 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
12971 which seems to be undefined. Please make sure it is defined" >&2;} | |
12972 | |
12973 rm -f "$tmp/stdin" | |
12974 case $ac_file in | |
12975 -) cat "$tmp/out" && rm -f "$tmp/out";; | |
12976 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
12977 esac \ | |
12978 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
12979 ;; | |
12980 | |
12981 | |
12982 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
12983 $as_echo "$as_me: executing $ac_file commands" >&6;} | |
12984 ;; | |
12985 esac | |
12986 | |
12987 | |
12988 case $ac_file$ac_mode in | |
12989 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
12990 # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
12991 # are listed without --file. Let's play safe and only enable the eval | |
12992 # if we detect the quoting. | |
12993 case $CONFIG_FILES in | |
12994 *\'*) eval set x "$CONFIG_FILES" ;; | |
12995 *) set x $CONFIG_FILES ;; | |
12996 esac | |
12997 shift | |
12998 for mf | |
12999 do | |
13000 # Strip MF so we end up with the name of the file. | |
13001 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13002 # Check whether this is an Automake generated Makefile or not. | |
13003 # We used to match only the files named `Makefile.in', but | |
13004 # some people rename them; so instead we look at the file content. | |
13005 # Grep'ing the first line is not enough: some people post-process | |
13006 # each Makefile.in and add a new line on top of each file to say so. | |
13007 # Grep'ing the whole file is not good either: AIX grep has a line | |
13008 # limit of 2048, but all sed's we know have understand at least 4000. | |
13009 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
13010 dirpart=`$as_dirname -- "$mf" || | |
13011 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13012 X"$mf" : 'X\(//\)[^/]' \| \ | |
13013 X"$mf" : 'X\(//\)$' \| \ | |
13014 X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
13015 $as_echo X"$mf" | | |
13016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13017 s//\1/ | |
13018 q | |
13019 } | |
13020 /^X\(\/\/\)[^/].*/{ | |
13021 s//\1/ | |
13022 q | |
13023 } | |
13024 /^X\(\/\/\)$/{ | |
13025 s//\1/ | |
13026 q | |
13027 } | |
13028 /^X\(\/\).*/{ | |
13029 s//\1/ | |
13030 q | |
13031 } | |
13032 s/.*/./; q'` | |
13033 else | |
13034 continue | |
13035 fi | |
13036 # Extract the definition of DEPDIR, am__include, and am__quote | |
13037 # from the Makefile without running `make'. | |
13038 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
13039 test -z "$DEPDIR" && continue | |
13040 am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
13041 test -z "am__include" && continue | |
13042 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
13043 # When using ansi2knr, U may be empty or an underscore; expand it | |
13044 U=`sed -n 's/^U = //p' < "$mf"` | |
13045 # Find all dependency output files, they are included files with | |
13046 # $(DEPDIR) in their names. We invoke sed twice because it is the | |
13047 # simplest approach to changing $(DEPDIR) to its actual value in the | |
13048 # expansion. | |
13049 for file in `sed -n " | |
13050 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
13051 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
13052 # Make sure the directory exists. | |
13053 test -f "$dirpart/$file" && continue | |
13054 fdir=`$as_dirname -- "$file" || | |
13055 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13056 X"$file" : 'X\(//\)[^/]' \| \ | |
13057 X"$file" : 'X\(//\)$' \| \ | |
13058 X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
13059 $as_echo X"$file" | | |
13060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13061 s//\1/ | |
13062 q | |
13063 } | |
13064 /^X\(\/\/\)[^/].*/{ | |
13065 s//\1/ | |
13066 q | |
13067 } | |
13068 /^X\(\/\/\)$/{ | |
13069 s//\1/ | |
13070 q | |
13071 } | |
13072 /^X\(\/\).*/{ | |
13073 s//\1/ | |
13074 q | |
13075 } | |
13076 s/.*/./; q'` | |
13077 as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
13078 # echo "creating $dirpart/$file" | |
13079 echo '# dummy' > "$dirpart/$file" | |
13080 done | |
13081 done | |
13082 } | |
13083 ;; | |
13084 "libtool":C) | |
13085 | |
13086 # See if we are running on zsh, and set the options which allow our | |
13087 # commands through without removal of \ escapes. | |
13088 if test -n "${ZSH_VERSION+set}" ; then | |
13089 setopt NO_GLOB_SUBST | |
13090 fi | |
13091 | |
13092 cfgfile="${ofile}T" | |
13093 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
13094 $RM "$cfgfile" | |
13095 | |
13096 cat <<_LT_EOF >> "$cfgfile" | |
13097 #! $SHELL | |
13098 | |
13099 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
13100 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
13101 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13102 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
13103 # | |
13104 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
13105 # 2006, 2007, 2008 Free Software Foundation, Inc. | |
13106 # Written by Gordon Matzigkeit, 1996 | |
13107 # | |
13108 # This file is part of GNU Libtool. | |
13109 # | |
13110 # GNU Libtool is free software; you can redistribute it and/or | |
13111 # modify it under the terms of the GNU General Public License as | |
13112 # published by the Free Software Foundation; either version 2 of | |
13113 # the License, or (at your option) any later version. | |
13114 # | |
13115 # As a special exception to the GNU General Public License, | |
13116 # if you distribute this file as part of a program or library that | |
13117 # is built using GNU Libtool, you may include this file under the | |
13118 # same distribution terms that you use for the rest of that program. | |
13119 # | |
13120 # GNU Libtool is distributed in the hope that it will be useful, | |
13121 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13122 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13123 # GNU General Public License for more details. | |
13124 # | |
13125 # You should have received a copy of the GNU General Public License | |
13126 # along with GNU Libtool; see the file COPYING. If not, a copy | |
13127 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
13128 # obtained by writing to the Free Software Foundation, Inc., | |
13129 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
13130 | |
13131 | |
13132 # The names of the tagged configurations supported by this script. | |
13133 available_tags="" | |
13134 | |
13135 # ### BEGIN LIBTOOL CONFIG | |
13136 | |
13137 # Which release of libtool.m4 was used? | |
13138 macro_version=$macro_version | |
13139 macro_revision=$macro_revision | |
13140 | |
13141 # Whether or not to build shared libraries. | |
13142 build_libtool_libs=$enable_shared | |
13143 | |
13144 # Whether or not to build static libraries. | |
13145 build_old_libs=$enable_static | |
13146 | |
13147 # What type of objects to build. | |
13148 pic_mode=$pic_mode | |
13149 | |
13150 # Whether or not to optimize for fast installation. | |
13151 fast_install=$enable_fast_install | |
13152 | |
13153 # The host system. | |
13154 host_alias=$host_alias | |
13155 host=$host | |
13156 host_os=$host_os | |
13157 | |
13158 # The build system. | |
13159 build_alias=$build_alias | |
13160 build=$build | |
13161 build_os=$build_os | |
13162 | |
13163 # A sed program that does not truncate output. | |
13164 SED=$lt_SED | |
13165 | |
13166 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
13167 Xsed="\$SED -e 1s/^X//" | |
13168 | |
13169 # A grep program that handles long lines. | |
13170 GREP=$lt_GREP | |
13171 | |
13172 # An ERE matcher. | |
13173 EGREP=$lt_EGREP | |
13174 | |
13175 # A literal string matcher. | |
13176 FGREP=$lt_FGREP | |
13177 | |
13178 # A BSD- or MS-compatible name lister. | |
13179 NM=$lt_NM | |
13180 | |
13181 # Whether we need soft or hard links. | |
13182 LN_S=$lt_LN_S | |
13183 | |
13184 # What is the maximum length of a command? | |
13185 max_cmd_len=$max_cmd_len | |
13186 | |
13187 # Object file suffix (normally "o"). | |
13188 objext=$ac_objext | |
13189 | |
13190 # Executable file suffix (normally ""). | |
13191 exeext=$exeext | |
13192 | |
13193 # whether the shell understands "unset". | |
13194 lt_unset=$lt_unset | |
13195 | |
13196 # turn spaces into newlines. | |
13197 SP2NL=$lt_lt_SP2NL | |
13198 | |
13199 # turn newlines into spaces. | |
13200 NL2SP=$lt_lt_NL2SP | |
13201 | |
13202 # How to create reloadable object files. | |
13203 reload_flag=$lt_reload_flag | |
13204 reload_cmds=$lt_reload_cmds | |
13205 | |
13206 # An object symbol dumper. | |
13207 OBJDUMP=$lt_OBJDUMP | |
13208 | |
13209 # Method to check whether dependent libraries are shared objects. | |
13210 deplibs_check_method=$lt_deplibs_check_method | |
13211 | |
13212 # Command to use when deplibs_check_method == "file_magic". | |
13213 file_magic_cmd=$lt_file_magic_cmd | |
13214 | |
13215 # The archiver. | |
13216 AR=$lt_AR | |
13217 AR_FLAGS=$lt_AR_FLAGS | |
13218 | |
13219 # A symbol stripping program. | |
13220 STRIP=$lt_STRIP | |
13221 | |
13222 # Commands used to install an old-style archive. | |
13223 RANLIB=$lt_RANLIB | |
13224 old_postinstall_cmds=$lt_old_postinstall_cmds | |
13225 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
13226 | |
13227 # A C compiler. | |
13228 LTCC=$lt_CC | |
13229 | |
13230 # LTCC compiler flags. | |
13231 LTCFLAGS=$lt_CFLAGS | |
13232 | |
13233 # Take the output of nm and produce a listing of raw symbols and C names. | |
13234 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
13235 | |
13236 # Transform the output of nm in a proper C declaration. | |
13237 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
13238 | |
13239 # Transform the output of nm in a C name address pair. | |
13240 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
13241 | |
13242 # Transform the output of nm in a C name address pair when lib prefix is needed. | |
13243 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
13244 | |
13245 # The name of the directory that contains temporary libtool files. | |
13246 objdir=$objdir | |
13247 | |
13248 # Shell to use when invoking shell scripts. | |
13249 SHELL=$lt_SHELL | |
13250 | |
13251 # An echo program that does not interpret backslashes. | |
13252 ECHO=$lt_ECHO | |
13253 | |
13254 # Used to examine libraries when file_magic_cmd begins with "file". | |
13255 MAGIC_CMD=$MAGIC_CMD | |
13256 | |
13257 # Must we lock files when doing compilation? | |
13258 need_locks=$lt_need_locks | |
13259 | |
13260 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
13261 DSYMUTIL=$lt_DSYMUTIL | |
13262 | |
13263 # Tool to change global to local symbols on Mac OS X. | |
13264 NMEDIT=$lt_NMEDIT | |
13265 | |
13266 # Tool to manipulate fat objects and archives on Mac OS X. | |
13267 LIPO=$lt_LIPO | |
13268 | |
13269 # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
13270 OTOOL=$lt_OTOOL | |
13271 | |
13272 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
13273 OTOOL64=$lt_OTOOL64 | |
13274 | |
13275 # Old archive suffix (normally "a"). | |
13276 libext=$libext | |
13277 | |
13278 # Shared library suffix (normally ".so"). | |
13279 shrext_cmds=$lt_shrext_cmds | |
13280 | |
13281 # The commands to extract the exported symbol list from a shared archive. | |
13282 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
13283 | |
13284 # Variables whose values should be saved in libtool wrapper scripts and | |
13285 # restored at link time. | |
13286 variables_saved_for_relink=$lt_variables_saved_for_relink | |
13287 | |
13288 # Do we need the "lib" prefix for modules? | |
13289 need_lib_prefix=$need_lib_prefix | |
13290 | |
13291 # Do we need a version for libraries? | |
13292 need_version=$need_version | |
13293 | |
13294 # Library versioning type. | |
13295 version_type=$version_type | |
13296 | |
13297 # Shared library runtime path variable. | |
13298 runpath_var=$runpath_var | |
13299 | |
13300 # Shared library path variable. | |
13301 shlibpath_var=$shlibpath_var | |
13302 | |
13303 # Is shlibpath searched before the hard-coded library search path? | |
13304 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
13305 | |
13306 # Format of library name prefix. | |
13307 libname_spec=$lt_libname_spec | |
13308 | |
13309 # List of archive names. First name is the real one, the rest are links. | |
13310 # The last name is the one that the linker finds with -lNAME | |
13311 library_names_spec=$lt_library_names_spec | |
13312 | |
13313 # The coded name of the library, if different from the real name. | |
13314 soname_spec=$lt_soname_spec | |
13315 | |
13316 # Command to use after installation of a shared archive. | |
13317 postinstall_cmds=$lt_postinstall_cmds | |
13318 | |
13319 # Command to use after uninstallation of a shared archive. | |
13320 postuninstall_cmds=$lt_postuninstall_cmds | |
13321 | |
13322 # Commands used to finish a libtool library installation in a directory. | |
13323 finish_cmds=$lt_finish_cmds | |
13324 | |
13325 # As "finish_cmds", except a single script fragment to be evaled but | |
13326 # not shown. | |
13327 finish_eval=$lt_finish_eval | |
13328 | |
13329 # Whether we should hardcode library paths into libraries. | |
13330 hardcode_into_libs=$hardcode_into_libs | |
13331 | |
13332 # Compile-time system search path for libraries. | |
13333 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
13334 | |
13335 # Run-time system search path for libraries. | |
13336 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
13337 | |
13338 # Whether dlopen is supported. | |
13339 dlopen_support=$enable_dlopen | |
13340 | |
13341 # Whether dlopen of programs is supported. | |
13342 dlopen_self=$enable_dlopen_self | |
13343 | |
13344 # Whether dlopen of statically linked programs is supported. | |
13345 dlopen_self_static=$enable_dlopen_self_static | |
13346 | |
13347 # Commands to strip libraries. | |
13348 old_striplib=$lt_old_striplib | |
13349 striplib=$lt_striplib | |
13350 | |
13351 | |
13352 # The linker used to build libraries. | |
13353 LD=$lt_LD | |
13354 | |
13355 # Commands used to build an old-style archive. | |
13356 old_archive_cmds=$lt_old_archive_cmds | |
13357 | |
13358 # A language specific compiler. | |
13359 CC=$lt_compiler | |
13360 | |
13361 # Is the compiler the GNU compiler? | |
13362 with_gcc=$GCC | |
13363 | |
13364 # Compiler flag to turn off builtin functions. | |
13365 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
13366 | |
13367 # How to pass a linker flag through the compiler. | |
13368 wl=$lt_lt_prog_compiler_wl | |
13369 | |
13370 # Additional compiler flags for building library objects. | |
13371 pic_flag=$lt_lt_prog_compiler_pic | |
13372 | |
13373 # Compiler flag to prevent dynamic linking. | |
13374 link_static_flag=$lt_lt_prog_compiler_static | |
13375 | |
13376 # Does compiler simultaneously support -c and -o options? | |
13377 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
13378 | |
13379 # Whether or not to add -lc for building shared libraries. | |
13380 build_libtool_need_lc=$archive_cmds_need_lc | |
13381 | |
13382 # Whether or not to disallow shared libs when runtime libs are static. | |
13383 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
13384 | |
13385 # Compiler flag to allow reflexive dlopens. | |
13386 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
13387 | |
13388 # Compiler flag to generate shared objects directly from archives. | |
13389 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
13390 | |
13391 # Whether the compiler copes with passing no objects directly. | |
13392 compiler_needs_object=$lt_compiler_needs_object | |
13393 | |
13394 # Create an old-style archive from a shared archive. | |
13395 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
13396 | |
13397 # Create a temporary old-style archive to link instead of a shared archive. | |
13398 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
13399 | |
13400 # Commands used to build a shared archive. | |
13401 archive_cmds=$lt_archive_cmds | |
13402 archive_expsym_cmds=$lt_archive_expsym_cmds | |
13403 | |
13404 # Commands used to build a loadable module if different from building | |
13405 # a shared archive. | |
13406 module_cmds=$lt_module_cmds | |
13407 module_expsym_cmds=$lt_module_expsym_cmds | |
13408 | |
13409 # Whether we are building with GNU ld or not. | |
13410 with_gnu_ld=$lt_with_gnu_ld | |
13411 | |
13412 # Flag that allows shared libraries with undefined symbols to be built. | |
13413 allow_undefined_flag=$lt_allow_undefined_flag | |
13414 | |
13415 # Flag that enforces no undefined symbols. | |
13416 no_undefined_flag=$lt_no_undefined_flag | |
13417 | |
13418 # Flag to hardcode \$libdir into a binary during linking. | |
13419 # This must work even if \$libdir does not exist | |
13420 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
13421 | |
13422 # If ld is used when linking, flag to hardcode \$libdir into a binary | |
13423 # during linking. This must work even if \$libdir does not exist. | |
13424 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
13425 | |
13426 # Whether we need a single "-rpath" flag with a separated argument. | |
13427 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
13428 | |
13429 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13430 # DIR into the resulting binary. | |
13431 hardcode_direct=$hardcode_direct | |
13432 | |
13433 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13434 # DIR into the resulting binary and the resulting library dependency is | |
13435 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
13436 # library is relocated. | |
13437 hardcode_direct_absolute=$hardcode_direct_absolute | |
13438 | |
13439 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
13440 # into the resulting binary. | |
13441 hardcode_minus_L=$hardcode_minus_L | |
13442 | |
13443 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
13444 # into the resulting binary. | |
13445 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
13446 | |
13447 # Set to "yes" if building a shared library automatically hardcodes DIR | |
13448 # into the library and all subsequent libraries and executables linked | |
13449 # against it. | |
13450 hardcode_automatic=$hardcode_automatic | |
13451 | |
13452 # Set to yes if linker adds runtime paths of dependent libraries | |
13453 # to runtime path list. | |
13454 inherit_rpath=$inherit_rpath | |
13455 | |
13456 # Whether libtool must link a program against all its dependency libraries. | |
13457 link_all_deplibs=$link_all_deplibs | |
13458 | |
13459 # Fix the shell variable \$srcfile for the compiler. | |
13460 fix_srcfile_path=$lt_fix_srcfile_path | |
13461 | |
13462 # Set to "yes" if exported symbols are required. | |
13463 always_export_symbols=$always_export_symbols | |
13464 | |
13465 # The commands to list exported symbols. | |
13466 export_symbols_cmds=$lt_export_symbols_cmds | |
13467 | |
13468 # Symbols that should not be listed in the preloaded symbols. | |
13469 exclude_expsyms=$lt_exclude_expsyms | |
13470 | |
13471 # Symbols that must always be exported. | |
13472 include_expsyms=$lt_include_expsyms | |
13473 | |
13474 # Commands necessary for linking programs (against libraries) with templates. | |
13475 prelink_cmds=$lt_prelink_cmds | |
13476 | |
13477 # Specify filename containing input files. | |
13478 file_list_spec=$lt_file_list_spec | |
13479 | |
13480 # How to hardcode a shared library path into an executable. | |
13481 hardcode_action=$hardcode_action | |
13482 | |
13483 # ### END LIBTOOL CONFIG | |
13484 | |
13485 _LT_EOF | |
13486 | |
13487 case $host_os in | |
13488 aix3*) | |
13489 cat <<\_LT_EOF >> "$cfgfile" | |
13490 # AIX sometimes has problems with the GCC collect2 program. For some | |
13491 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
13492 # vanish in a puff of smoke. | |
13493 if test "X${COLLECT_NAMES+set}" != Xset; then | |
13494 COLLECT_NAMES= | |
13495 export COLLECT_NAMES | |
13496 fi | |
13497 _LT_EOF | |
13498 ;; | |
13499 esac | |
13500 | |
13501 | |
13502 ltmain="$ac_aux_dir/ltmain.sh" | |
13503 | |
13504 | |
13505 # We use sed instead of cat because bash on DJGPP gets confused if | |
13506 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
13507 # text mode, it properly converts lines to CR/LF. This bash problem | |
13508 # is reportedly fixed, but why not run on old versions too? | |
13509 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
13510 || (rm -f "$cfgfile"; exit 1) | |
13511 | |
13512 case $xsi_shell in | |
13513 yes) | |
13514 cat << \_LT_EOF >> "$cfgfile" | |
13515 | |
13516 # func_dirname file append nondir_replacement | |
13517 # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
13518 # otherwise set result to NONDIR_REPLACEMENT. | |
13519 func_dirname () | |
13520 { | |
13521 case ${1} in | |
13522 */*) func_dirname_result="${1%/*}${2}" ;; | |
13523 * ) func_dirname_result="${3}" ;; | |
13524 esac | |
13525 } | |
13526 | |
13527 # func_basename file | |
13528 func_basename () | |
13529 { | |
13530 func_basename_result="${1##*/}" | |
13531 } | |
13532 | |
13533 # func_dirname_and_basename file append nondir_replacement | |
13534 # perform func_basename and func_dirname in a single function | |
13535 # call: | |
13536 # dirname: Compute the dirname of FILE. If nonempty, | |
13537 # add APPEND to the result, otherwise set result | |
13538 # to NONDIR_REPLACEMENT. | |
13539 # value returned in "$func_dirname_result" | |
13540 # basename: Compute filename of FILE. | |
13541 # value retuned in "$func_basename_result" | |
13542 # Implementation must be kept synchronized with func_dirname | |
13543 # and func_basename. For efficiency, we do not delegate to | |
13544 # those functions but instead duplicate the functionality here. | |
13545 func_dirname_and_basename () | |
13546 { | |
13547 case ${1} in | |
13548 */*) func_dirname_result="${1%/*}${2}" ;; | |
13549 * ) func_dirname_result="${3}" ;; | |
13550 esac | |
13551 func_basename_result="${1##*/}" | |
13552 } | |
13553 | |
13554 # func_stripname prefix suffix name | |
13555 # strip PREFIX and SUFFIX off of NAME. | |
13556 # PREFIX and SUFFIX must not contain globbing or regex special | |
13557 # characters, hashes, percent signs, but SUFFIX may contain a leading | |
13558 # dot (in which case that matches only a dot). | |
13559 func_stripname () | |
13560 { | |
13561 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
13562 # positional parameters, so assign one to ordinary parameter first. | |
13563 func_stripname_result=${3} | |
13564 func_stripname_result=${func_stripname_result#"${1}"} | |
13565 func_stripname_result=${func_stripname_result%"${2}"} | |
13566 } | |
13567 | |
13568 # func_opt_split | |
13569 func_opt_split () | |
13570 { | |
13571 func_opt_split_opt=${1%%=*} | |
13572 func_opt_split_arg=${1#*=} | |
13573 } | |
13574 | |
13575 # func_lo2o object | |
13576 func_lo2o () | |
13577 { | |
13578 case ${1} in | |
13579 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
13580 *) func_lo2o_result=${1} ;; | |
13581 esac | |
13582 } | |
13583 | |
13584 # func_xform libobj-or-source | |
13585 func_xform () | |
13586 { | |
13587 func_xform_result=${1%.*}.lo | |
13588 } | |
13589 | |
13590 # func_arith arithmetic-term... | |
13591 func_arith () | |
13592 { | |
13593 func_arith_result=$(( $* )) | |
13594 } | |
13595 | |
13596 # func_len string | |
13597 # STRING may not start with a hyphen. | |
13598 func_len () | |
13599 { | |
13600 func_len_result=${#1} | |
13601 } | |
13602 | |
13603 _LT_EOF | |
13604 ;; | |
13605 *) # Bourne compatible functions. | |
13606 cat << \_LT_EOF >> "$cfgfile" | |
13607 | |
13608 # func_dirname file append nondir_replacement | |
13609 # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
13610 # otherwise set result to NONDIR_REPLACEMENT. | |
13611 func_dirname () | |
13612 { | |
13613 # Extract subdirectory from the argument. | |
13614 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
13615 if test "X$func_dirname_result" = "X${1}"; then | |
13616 func_dirname_result="${3}" | |
13617 else | |
13618 func_dirname_result="$func_dirname_result${2}" | |
13619 fi | |
13620 } | |
13621 | |
13622 # func_basename file | |
13623 func_basename () | |
13624 { | |
13625 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
13626 } | |
13627 | |
13628 | |
13629 # func_stripname prefix suffix name | |
13630 # strip PREFIX and SUFFIX off of NAME. | |
13631 # PREFIX and SUFFIX must not contain globbing or regex special | |
13632 # characters, hashes, percent signs, but SUFFIX may contain a leading | |
13633 # dot (in which case that matches only a dot). | |
13634 # func_strip_suffix prefix name | |
13635 func_stripname () | |
13636 { | |
13637 case ${2} in | |
13638 .*) func_stripname_result=`$ECHO "X${3}" \ | |
13639 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
13640 *) func_stripname_result=`$ECHO "X${3}" \ | |
13641 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
13642 esac | |
13643 } | |
13644 | |
13645 # sed scripts: | |
13646 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
13647 my_sed_long_arg='1s/^-[^=]*=//' | |
13648 | |
13649 # func_opt_split | |
13650 func_opt_split () | |
13651 { | |
13652 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
13653 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
13654 } | |
13655 | |
13656 # func_lo2o object | |
13657 func_lo2o () | |
13658 { | |
13659 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
13660 } | |
13661 | |
13662 # func_xform libobj-or-source | |
13663 func_xform () | |
13664 { | |
13665 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
13666 } | |
13667 | |
13668 # func_arith arithmetic-term... | |
13669 func_arith () | |
13670 { | |
13671 func_arith_result=`expr "$@"` | |
13672 } | |
13673 | |
13674 # func_len string | |
13675 # STRING may not start with a hyphen. | |
13676 func_len () | |
13677 { | |
13678 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
13679 } | |
13680 | |
13681 _LT_EOF | |
13682 esac | |
13683 | |
13684 case $lt_shell_append in | |
13685 yes) | |
13686 cat << \_LT_EOF >> "$cfgfile" | |
13687 | |
13688 # func_append var value | |
13689 # Append VALUE to the end of shell variable VAR. | |
13690 func_append () | |
13691 { | |
13692 eval "$1+=\$2" | |
13693 } | |
13694 _LT_EOF | |
13695 ;; | |
13696 *) | |
13697 cat << \_LT_EOF >> "$cfgfile" | |
13698 | |
13699 # func_append var value | |
13700 # Append VALUE to the end of shell variable VAR. | |
13701 func_append () | |
13702 { | |
13703 eval "$1=\$$1\$2" | |
13704 } | |
13705 | |
13706 _LT_EOF | |
13707 ;; | |
13708 esac | |
13709 | |
13710 | |
13711 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
13712 || (rm -f "$cfgfile"; exit 1) | |
13713 | |
13714 mv -f "$cfgfile" "$ofile" || | |
13715 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
13716 chmod +x "$ofile" | |
13717 | |
13718 ;; | |
13719 | |
13720 esac | |
13721 done # for ac_tag | |
13722 | |
13723 | |
13724 as_fn_exit 0 | |
13725 _ACEOF | |
13726 ac_clean_files=$ac_clean_files_save | |
13727 | |
13728 test $ac_write_fail = 0 || | |
13729 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
13730 | |
13731 | |
13732 # configure is writing to config.log, and then calls config.status. | |
13733 # config.status does its own redirection, appending to config.log. | |
13734 # Unfortunately, on DOS this fails, as config.log is still kept open | |
13735 # by configure, so config.status won't be able to write to it; its | |
13736 # output is simply discarded. So we exec the FD to /dev/null, | |
13737 # effectively closing config.log, so it can be properly (re)opened and | |
13738 # appended to by config.status. When coming back to configure, we | |
13739 # need to make the FD available again. | |
13740 if test "$no_create" != yes; then | |
13741 ac_cs_success=: | |
13742 ac_config_status_args= | |
13743 test "$silent" = yes && | |
13744 ac_config_status_args="$ac_config_status_args --quiet" | |
13745 exec 5>/dev/null | |
13746 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13747 exec 5>>config.log | |
13748 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13749 # would make configure fail if this is the last instruction. | |
13750 $ac_cs_success || as_fn_exit 1 | |
13751 fi | |
13752 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
13754 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
13755 fi | |
13756 | |
13757 | |
13758 cat <<EOF | |
13759 | |
13760 Ur/Web OpenID library configuration: | |
13761 lib directory: LIB $LIB | |
13762 include directory: INCLUDE $INCLUDE | |
13763 Extra GCC args: GCCARGS $GCCARGS | |
13764 EOF |