Commit | Line | Data |
---|---|---|
d9898ee8 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
8d138742 | 3 | # Generated by GNU Autoconf 2.63 for courier-authlib 0.63.0. |
d9898ee8 | 4 | # |
8d138742 | 5 | # Report bugs to <courier-users@lists.sourceforge.net>. |
d9898ee8 | 6 | # |
dd184caf | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8d138742 | 8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
d9898ee8 | 9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
dd184caf | 15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
d9898ee8 | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 | emulate sh | |
19 | NULLCMD=: | |
8d138742 | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
d9898ee8 | 21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
dd184caf | 23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in | |
26 | *posix*) set -o posix ;; | |
27 | esac | |
28 | ||
29 | fi | |
30 | ||
31 | ||
32 | ||
33 | ||
34 | # PATH needs CR | |
35 | # Avoid depending upon Character Ranges. | |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39 | as_cr_digits='0123456789' | |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41 | ||
8d138742 CE |
42 | as_nl=' |
43 | ' | |
44 | export as_nl | |
45 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
46 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
47 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
49 | if (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' | |
dd184caf | 56 | else |
8d138742 CE |
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' | |
dd184caf | 69 | fi |
8d138742 CE |
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 | } | |
d9898ee8 | 81 | fi |
d9898ee8 | 82 | |
83 | # Support unset when possible. | |
84 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
85 | as_unset=unset | |
86 | else | |
87 | as_unset=false | |
88 | fi | |
89 | ||
90 | ||
dd184caf | 91 | # IFS |
92 | # We need space, tab and new line, in precisely that order. Quoting is | |
93 | # there to prevent editors from complaining about space-tab. | |
94 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
95 | # splitting by setting IFS to empty value.) | |
dd184caf | 96 | IFS=" "" $as_nl" |
97 | ||
98 | # Find who we are. Look in the path if we contain no directory separator. | |
99 | case $0 in | |
100 | *[\\/]* ) as_myself=$0 ;; | |
101 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
102 | for as_dir in $PATH | |
103 | do | |
104 | IFS=$as_save_IFS | |
105 | test -z "$as_dir" && as_dir=. | |
106 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
107 | done | |
108 | IFS=$as_save_IFS | |
109 | ||
110 | ;; | |
111 | esac | |
112 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
113 | # in which case we are not to be found in the path. | |
114 | if test "x$as_myself" = x; then | |
115 | as_myself=$0 | |
116 | fi | |
117 | if test ! -f "$as_myself"; then | |
8d138742 | 118 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
dd184caf | 119 | { (exit 1); exit 1; } |
120 | fi | |
121 | ||
d9898ee8 | 122 | # Work around bugs in pre-3.0 UWIN ksh. |
dd184caf | 123 | for as_var in ENV MAIL MAILPATH |
124 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
125 | done | |
d9898ee8 | 126 | PS1='$ ' |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
8d138742 CE |
131 | LC_ALL=C |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
d9898ee8 | 135 | |
136 | # Required to use basename. | |
dd184caf | 137 | if expr a : '\(a\)' >/dev/null 2>&1 && |
138 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
d9898ee8 | 139 | as_expr=expr |
140 | else | |
141 | as_expr=false | |
142 | fi | |
143 | ||
dd184caf | 144 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 | 145 | as_basename=basename |
146 | else | |
147 | as_basename=false | |
148 | fi | |
149 | ||
150 | ||
151 | # Name of the executable. | |
dd184caf | 152 | as_me=`$as_basename -- "$0" || |
d9898ee8 | 153 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
154 | X"$0" : 'X\(//\)$' \| \ | |
dd184caf | 155 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8d138742 | 156 | $as_echo X/"$0" | |
dd184caf | 157 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
158 | s//\1/ | |
159 | q | |
160 | } | |
161 | /^X\/\(\/\/\)$/{ | |
162 | s//\1/ | |
163 | q | |
164 | } | |
165 | /^X\/\(\/\).*/{ | |
166 | s//\1/ | |
167 | q | |
168 | } | |
169 | s/.*/./; q'` | |
d9898ee8 | 170 | |
dd184caf | 171 | # CDPATH. |
172 | $as_unset CDPATH | |
d9898ee8 | 173 | |
d9898ee8 | 174 | |
dd184caf | 175 | if test "x$CONFIG_SHELL" = x; then |
176 | if (eval ":") 2>/dev/null; then | |
177 | as_have_required=yes | |
178 | else | |
179 | as_have_required=no | |
d9898ee8 | 180 | fi |
181 | ||
8d138742 | 182 | if test $as_have_required = yes && (eval ": |
dd184caf | 183 | (as_func_return () { |
184 | (exit \$1) | |
185 | } | |
186 | as_func_success () { | |
187 | as_func_return 0 | |
188 | } | |
189 | as_func_failure () { | |
190 | as_func_return 1 | |
191 | } | |
192 | as_func_ret_success () { | |
193 | return 0 | |
194 | } | |
195 | as_func_ret_failure () { | |
196 | return 1 | |
197 | } | |
d9898ee8 | 198 | |
dd184caf | 199 | exitcode=0 |
200 | if as_func_success; then | |
201 | : | |
202 | else | |
203 | exitcode=1 | |
204 | echo as_func_success failed. | |
205 | fi | |
d9898ee8 | 206 | |
dd184caf | 207 | if as_func_failure; then |
208 | exitcode=1 | |
209 | echo as_func_failure succeeded. | |
210 | fi | |
211 | ||
212 | if as_func_ret_success; then | |
213 | : | |
214 | else | |
215 | exitcode=1 | |
216 | echo as_func_ret_success failed. | |
217 | fi | |
218 | ||
219 | if as_func_ret_failure; then | |
220 | exitcode=1 | |
221 | echo as_func_ret_failure succeeded. | |
222 | fi | |
223 | ||
224 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
225 | : | |
226 | else | |
227 | exitcode=1 | |
228 | echo positional parameters were not saved. | |
229 | fi | |
230 | ||
231 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
232 | ||
233 | ( | |
234 | as_lineno_1=\$LINENO | |
235 | as_lineno_2=\$LINENO | |
236 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
237 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
238 | ") 2> /dev/null; then | |
239 | : | |
240 | else | |
241 | as_candidate_shells= | |
d9898ee8 | 242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
243 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
244 | do | |
245 | IFS=$as_save_IFS | |
246 | test -z "$as_dir" && as_dir=. | |
dd184caf | 247 | case $as_dir in |
d9898ee8 | 248 | /*) |
dd184caf | 249 | for as_base in sh bash ksh sh5; do |
250 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
251 | done;; | |
252 | esac | |
253 | done | |
254 | IFS=$as_save_IFS | |
255 | ||
256 | ||
257 | for as_shell in $as_candidate_shells $SHELL; do | |
258 | # Try only shells that exist, to save several forks. | |
259 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
260 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
262 | emulate sh | |
263 | NULLCMD=: | |
8d138742 | 264 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
dd184caf | 265 | # is contrary to our usage. Disable this feature. |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
269 | case `(set -o) 2>/dev/null` in | |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
273 | fi | |
274 | ||
275 | ||
276 | : | |
277 | _ASEOF | |
278 | }; then | |
279 | CONFIG_SHELL=$as_shell | |
280 | as_have_required=yes | |
281 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
282 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
283 | emulate sh | |
284 | NULLCMD=: | |
8d138742 | 285 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
dd184caf | 286 | # is contrary to our usage. Disable this feature. |
287 | alias -g '${1+"$@"}'='"$@"' | |
288 | setopt NO_GLOB_SUBST | |
289 | else | |
290 | case `(set -o) 2>/dev/null` in | |
291 | *posix*) set -o posix ;; | |
292 | esac | |
293 | ||
294 | fi | |
295 | ||
296 | ||
297 | : | |
298 | (as_func_return () { | |
299 | (exit $1) | |
300 | } | |
301 | as_func_success () { | |
302 | as_func_return 0 | |
303 | } | |
304 | as_func_failure () { | |
305 | as_func_return 1 | |
306 | } | |
307 | as_func_ret_success () { | |
308 | return 0 | |
309 | } | |
310 | as_func_ret_failure () { | |
311 | return 1 | |
312 | } | |
313 | ||
314 | exitcode=0 | |
315 | if as_func_success; then | |
316 | : | |
317 | else | |
318 | exitcode=1 | |
319 | echo as_func_success failed. | |
320 | fi | |
321 | ||
322 | if as_func_failure; then | |
323 | exitcode=1 | |
324 | echo as_func_failure succeeded. | |
325 | fi | |
326 | ||
327 | if as_func_ret_success; then | |
328 | : | |
329 | else | |
330 | exitcode=1 | |
331 | echo as_func_ret_success failed. | |
332 | fi | |
333 | ||
334 | if as_func_ret_failure; then | |
335 | exitcode=1 | |
336 | echo as_func_ret_failure succeeded. | |
337 | fi | |
338 | ||
339 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
340 | : | |
341 | else | |
342 | exitcode=1 | |
343 | echo positional parameters were not saved. | |
344 | fi | |
345 | ||
346 | test $exitcode = 0) || { (exit 1); exit 1; } | |
347 | ||
348 | ( | |
d9898ee8 | 349 | as_lineno_1=$LINENO |
350 | as_lineno_2=$LINENO | |
d9898ee8 | 351 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dd184caf | 352 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
353 | ||
354 | _ASEOF | |
355 | }; then | |
356 | break | |
357 | fi | |
358 | ||
359 | fi | |
360 | ||
361 | done | |
362 | ||
363 | if test "x$CONFIG_SHELL" != x; then | |
364 | for as_var in BASH_ENV ENV | |
8d138742 CE |
365 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
366 | done | |
367 | export CONFIG_SHELL | |
368 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
dd184caf | 369 | fi |
370 | ||
371 | ||
372 | if test $as_have_required = no; then | |
373 | echo This script requires a shell more modern than all the | |
374 | echo shells that I found on your system. Please install a | |
375 | echo modern shell, or manually run the script under such a | |
376 | echo shell if you do have one. | |
377 | { (exit 1); exit 1; } | |
378 | fi | |
379 | ||
380 | ||
381 | fi | |
382 | ||
383 | fi | |
384 | ||
385 | ||
386 | ||
387 | (eval "as_func_return () { | |
388 | (exit \$1) | |
389 | } | |
390 | as_func_success () { | |
391 | as_func_return 0 | |
392 | } | |
393 | as_func_failure () { | |
394 | as_func_return 1 | |
395 | } | |
396 | as_func_ret_success () { | |
397 | return 0 | |
398 | } | |
399 | as_func_ret_failure () { | |
400 | return 1 | |
401 | } | |
402 | ||
403 | exitcode=0 | |
404 | if as_func_success; then | |
405 | : | |
406 | else | |
407 | exitcode=1 | |
408 | echo as_func_success failed. | |
409 | fi | |
410 | ||
411 | if as_func_failure; then | |
412 | exitcode=1 | |
413 | echo as_func_failure succeeded. | |
414 | fi | |
415 | ||
416 | if as_func_ret_success; then | |
417 | : | |
418 | else | |
419 | exitcode=1 | |
420 | echo as_func_ret_success failed. | |
421 | fi | |
422 | ||
423 | if as_func_ret_failure; then | |
424 | exitcode=1 | |
425 | echo as_func_ret_failure succeeded. | |
426 | fi | |
427 | ||
428 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
429 | : | |
430 | else | |
431 | exitcode=1 | |
432 | echo positional parameters were not saved. | |
433 | fi | |
434 | ||
435 | test \$exitcode = 0") || { | |
436 | echo No shell found that supports shell functions. | |
8d138742 CE |
437 | echo Please tell bug-autoconf@gnu.org about your system, |
438 | echo including any error possibly output before this message. | |
439 | echo This can help us improve future autoconf versions. | |
440 | echo Configuration will now proceed without shell functions. | |
dd184caf | 441 | } |
442 | ||
443 | ||
444 | ||
445 | as_lineno_1=$LINENO | |
446 | as_lineno_2=$LINENO | |
447 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
448 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
d9898ee8 | 449 | |
450 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
451 | # uniformly replaced by the line number. The first 'sed' inserts a | |
dd184caf | 452 | # line-number line after each line using $LINENO; the second 'sed' |
453 | # does the real work. The second script uses 'N' to pair each | |
454 | # line-number line with the line containing $LINENO, and appends | |
455 | # trailing '-' during substitution so that $LINENO is not a special | |
456 | # case at line end. | |
d9898ee8 | 457 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dd184caf | 458 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
459 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
460 | sed -n ' | |
461 | p | |
462 | /[$]LINENO/= | |
463 | ' <$as_myself | | |
d9898ee8 | 464 | sed ' |
dd184caf | 465 | s/[$]LINENO.*/&-/ |
466 | t lineno | |
467 | b | |
468 | :lineno | |
d9898ee8 | 469 | N |
dd184caf | 470 | :loop |
471 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
d9898ee8 | 472 | t loop |
dd184caf | 473 | s/-\n.*// |
d9898ee8 | 474 | ' >$as_me.lineno && |
dd184caf | 475 | chmod +x "$as_me.lineno" || |
8d138742 | 476 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
d9898ee8 | 477 | { (exit 1); exit 1; }; } |
478 | ||
479 | # Don't try to exec as it changes $[0], causing all sort of problems | |
480 | # (the dirname of $[0] is not the place where we might find the | |
dd184caf | 481 | # original and so on. Autoconf is especially sensitive to this). |
482 | . "./$as_me.lineno" | |
d9898ee8 | 483 | # Exit status is that of the last command. |
484 | exit | |
485 | } | |
486 | ||
487 | ||
dd184caf | 488 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
489 | as_dirname=dirname | |
490 | else | |
491 | as_dirname=false | |
492 | fi | |
493 | ||
494 | ECHO_C= ECHO_N= ECHO_T= | |
495 | case `echo -n x` in | |
496 | -n*) | |
497 | case `echo 'x\c'` in | |
498 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
499 | *) ECHO_C='\c';; | |
500 | esac;; | |
501 | *) | |
502 | ECHO_N='-n';; | |
d9898ee8 | 503 | esac |
dd184caf | 504 | if expr a : '\(a\)' >/dev/null 2>&1 && |
505 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
d9898ee8 | 506 | as_expr=expr |
507 | else | |
508 | as_expr=false | |
509 | fi | |
510 | ||
511 | rm -f conf$$ conf$$.exe conf$$.file | |
dd184caf | 512 | if test -d conf$$.dir; then |
513 | rm -f conf$$.dir/conf$$.file | |
514 | else | |
515 | rm -f conf$$.dir | |
8d138742 CE |
516 | mkdir conf$$.dir 2>/dev/null |
517 | fi | |
518 | if (echo >conf$$.file) 2>/dev/null; then | |
519 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
520 | as_ln_s='ln -s' | |
521 | # ... but there are two gotchas: | |
522 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
523 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
524 | # In both cases, we have to default to `cp -p'. | |
525 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
526 | as_ln_s='cp -p' | |
527 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
528 | as_ln_s=ln | |
529 | else | |
d9898ee8 | 530 | as_ln_s='cp -p' |
8d138742 | 531 | fi |
d9898ee8 | 532 | else |
533 | as_ln_s='cp -p' | |
534 | fi | |
dd184caf | 535 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
536 | rmdir conf$$.dir 2>/dev/null | |
d9898ee8 | 537 | |
538 | if mkdir -p . 2>/dev/null; then | |
539 | as_mkdir_p=: | |
540 | else | |
541 | test -d ./-p && rmdir ./-p | |
542 | as_mkdir_p=false | |
543 | fi | |
544 | ||
dd184caf | 545 | if test -x / >/dev/null 2>&1; then |
546 | as_test_x='test -x' | |
547 | else | |
548 | if ls -dL / >/dev/null 2>&1; then | |
549 | as_ls_L_option=L | |
550 | else | |
551 | as_ls_L_option= | |
552 | fi | |
553 | as_test_x=' | |
554 | eval sh -c '\'' | |
555 | if test -d "$1"; then | |
8d138742 | 556 | test -d "$1/."; |
dd184caf | 557 | else |
558 | case $1 in | |
8d138742 | 559 | -*)set "./$1";; |
dd184caf | 560 | esac; |
561 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
562 | ???[sx]*):;;*)false;;esac;fi | |
563 | '\'' sh | |
564 | ' | |
565 | fi | |
566 | as_executable_p=$as_test_x | |
d9898ee8 | 567 | |
568 | # Sed expression to map a string onto a valid CPP name. | |
569 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
570 | ||
571 | # Sed expression to map a string onto a valid variable name. | |
572 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
573 | ||
574 | ||
d9898ee8 | 575 | |
8d138742 CE |
576 | lt_ltdl_dir='libltdl' |
577 | ||
d9898ee8 | 578 | |
579 | # Check that we are running under the correct shell. | |
580 | SHELL=${CONFIG_SHELL-/bin/sh} | |
581 | ||
8d138742 | 582 | case X$lt_ECHO in |
d9898ee8 | 583 | X*--fallback-echo) |
584 | # Remove one level of quotation (which was required for Make). | |
8d138742 | 585 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
d9898ee8 | 586 | ;; |
587 | esac | |
588 | ||
8d138742 | 589 | ECHO=${lt_ECHO-echo} |
d9898ee8 | 590 | if test "X$1" = X--no-reexec; then |
591 | # Discard the --no-reexec flag, and continue. | |
592 | shift | |
593 | elif test "X$1" = X--fallback-echo; then | |
594 | # Avoid inline document here, it may be left over | |
595 | : | |
8d138742 CE |
596 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
597 | # Yippee, $ECHO works! | |
d9898ee8 | 598 | : |
599 | else | |
600 | # Restart under the correct shell. | |
601 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
602 | fi | |
603 | ||
604 | if test "X$1" = X--fallback-echo; then | |
605 | # used as fallback echo | |
606 | shift | |
8d138742 | 607 | cat <<_LT_EOF |
d9898ee8 | 608 | $* |
8d138742 | 609 | _LT_EOF |
d9898ee8 | 610 | exit 0 |
611 | fi | |
612 | ||
613 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
614 | # if CDPATH is set. | |
615 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
616 | ||
8d138742 CE |
617 | if test -z "$lt_ECHO"; then |
618 | if test "X${echo_test_string+set}" != Xset; then | |
619 | # find a string as large as possible, as long as the shell can cope with it | |
620 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
621 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
622 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
623 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
624 | then | |
625 | break | |
626 | fi | |
627 | done | |
628 | fi | |
d9898ee8 | 629 | |
8d138742 CE |
630 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
631 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
632 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
633 | : | |
634 | else | |
635 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
636 | # backslashes. This makes it impossible to quote backslashes using | |
637 | # echo "$something" | sed 's/\\/\\\\/g' | |
638 | # | |
639 | # So, first we look for a working echo in the user's PATH. | |
d9898ee8 | 640 | |
8d138742 CE |
641 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
642 | for dir in $PATH /usr/ucb; do | |
643 | IFS="$lt_save_ifs" | |
644 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
645 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
646 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
647 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
648 | ECHO="$dir/echo" | |
649 | break | |
650 | fi | |
651 | done | |
d9898ee8 | 652 | IFS="$lt_save_ifs" |
d9898ee8 | 653 | |
8d138742 CE |
654 | if test "X$ECHO" = Xecho; then |
655 | # We didn't find a better echo, so look for alternatives. | |
656 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
657 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
658 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
659 | # This shell has a builtin print -r that does the trick. | |
660 | ECHO='print -r' | |
661 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
662 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
663 | # If we have ksh, try running configure again with it. | |
664 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
665 | export ORIGINAL_CONFIG_SHELL | |
666 | CONFIG_SHELL=/bin/ksh | |
667 | export CONFIG_SHELL | |
668 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
d9898ee8 | 669 | else |
8d138742 CE |
670 | # Try using printf. |
671 | ECHO='printf %s\n' | |
672 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
673 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
674 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
675 | # Cool, printf works | |
676 | : | |
677 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
678 | test "X$echo_testing_string" = 'X\t' && | |
679 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
680 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
681 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
682 | export CONFIG_SHELL | |
683 | SHELL="$CONFIG_SHELL" | |
684 | export SHELL | |
685 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
686 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
687 | test "X$echo_testing_string" = 'X\t' && | |
688 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
689 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
690 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
691 | else | |
692 | # maybe with a smaller string... | |
693 | prev=: | |
d9898ee8 | 694 | |
8d138742 CE |
695 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
696 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
697 | then | |
698 | break | |
699 | fi | |
700 | prev="$cmd" | |
701 | done | |
d9898ee8 | 702 | |
8d138742 CE |
703 | if test "$prev" != 'sed 50q "$0"'; then |
704 | echo_test_string=`eval $prev` | |
705 | export echo_test_string | |
706 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
707 | else | |
708 | # Oops. We lost completely, so just stick with echo. | |
709 | ECHO=echo | |
710 | fi | |
711 | fi | |
d9898ee8 | 712 | fi |
713 | fi | |
714 | fi | |
715 | fi | |
d9898ee8 | 716 | |
717 | # Copy echo and quote the copy suitably for passing to libtool from | |
718 | # the Makefile, instead of quoting the original, which is used later. | |
8d138742 CE |
719 | lt_ECHO=$ECHO |
720 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
721 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
d9898ee8 | 722 | fi |
723 | ||
724 | ||
725 | ||
726 | ||
8d138742 | 727 | lt_dlopen_dir="$lt_ltdl_dir" |
d9898ee8 | 728 | |
dd184caf | 729 | exec 7<&0 </dev/null 6>&1 |
730 | ||
d9898ee8 | 731 | # Name of the host. |
732 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
733 | # so uname gets run too. | |
734 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
735 | ||
d9898ee8 | 736 | # |
737 | # Initializations. | |
738 | # | |
739 | ac_default_prefix=/usr/local | |
dd184caf | 740 | ac_clean_files= |
d9898ee8 | 741 | ac_config_libobj_dir=. |
dd184caf | 742 | LIBOBJS= |
d9898ee8 | 743 | cross_compiling=no |
744 | subdirs= | |
745 | MFLAGS= | |
746 | MAKEFLAGS= | |
747 | SHELL=${CONFIG_SHELL-/bin/sh} | |
748 | ||
d9898ee8 | 749 | # Identity of this package. |
750 | PACKAGE_NAME='courier-authlib' | |
751 | PACKAGE_TARNAME='courier-authlib' | |
8d138742 CE |
752 | PACKAGE_VERSION='0.63.0' |
753 | PACKAGE_STRING='courier-authlib 0.63.0' | |
754 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' | |
d9898ee8 | 755 | |
756 | ac_unique_file="courierauth.h" | |
757 | # Factoring default headers for most tests. | |
758 | ac_includes_default="\ | |
759 | #include <stdio.h> | |
dd184caf | 760 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 | 761 | # include <sys/types.h> |
762 | #endif | |
dd184caf | 763 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 | 764 | # include <sys/stat.h> |
765 | #endif | |
dd184caf | 766 | #ifdef STDC_HEADERS |
d9898ee8 | 767 | # include <stdlib.h> |
768 | # include <stddef.h> | |
769 | #else | |
dd184caf | 770 | # ifdef HAVE_STDLIB_H |
d9898ee8 | 771 | # include <stdlib.h> |
772 | # endif | |
773 | #endif | |
dd184caf | 774 | #ifdef HAVE_STRING_H |
775 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
d9898ee8 | 776 | # include <memory.h> |
777 | # endif | |
778 | # include <string.h> | |
779 | #endif | |
dd184caf | 780 | #ifdef HAVE_STRINGS_H |
d9898ee8 | 781 | # include <strings.h> |
782 | #endif | |
dd184caf | 783 | #ifdef HAVE_INTTYPES_H |
d9898ee8 | 784 | # include <inttypes.h> |
d9898ee8 | 785 | #endif |
dd184caf | 786 | #ifdef HAVE_STDINT_H |
787 | # include <stdint.h> | |
788 | #endif | |
789 | #ifdef HAVE_UNISTD_H | |
d9898ee8 | 790 | # include <unistd.h> |
791 | #endif" | |
792 | ||
8d138742 CE |
793 | enable_option_checking=no |
794 | ac_subst_vars='ltdl_LTLIBOBJS | |
795 | ltdl_LIBOBJS | |
796 | am__EXEEXT_FALSE | |
797 | am__EXEEXT_TRUE | |
798 | LTLIBOBJS | |
799 | LIBOBJS | |
800 | HAVE_SGML_FALSE | |
801 | HAVE_SGML_TRUE | |
802 | REPOSITORY | |
803 | mailgroup | |
804 | mailuser | |
805 | LIBM | |
806 | authdaemonvar | |
807 | authdaemonrc | |
808 | CRYPTLIBS | |
809 | LIBAUTHPIPE | |
810 | HAVE_PIPE_FALSE | |
811 | HAVE_PIPE_TRUE | |
812 | authProg | |
813 | LIBAUTHCUSTOM | |
814 | HAVE_CUSTOM_FALSE | |
815 | HAVE_CUSTOM_TRUE | |
816 | HAVE_AUTHMYSQL_FALSE | |
817 | HAVE_AUTHMYSQL_TRUE | |
818 | MYSQL_LIBS | |
819 | LIBAUTHMYSQL | |
820 | MYSQL_CONFIG | |
821 | authmysqlrc | |
822 | HAVE_AUTHPGSQL_FALSE | |
823 | HAVE_AUTHPGSQL_TRUE | |
824 | LIBAUTHPGSQL | |
825 | PGSQL_LIBS | |
826 | PG_CONFIG | |
827 | authpgsqlrc | |
828 | LIBAUTHPWD | |
829 | LIBAUTHSHADOW | |
830 | SHADOWLIBS | |
831 | HAVE_LDAP_FALSE | |
832 | HAVE_LDAP_TRUE | |
833 | LIBAUTHLDAP | |
834 | LDAPLIBS | |
835 | authldaprc | |
836 | LIBAUTHPAM | |
837 | AUTHPAMCRYPT | |
838 | LIBDL | |
839 | userdb | |
840 | LIBAUTHUSERDB | |
841 | LIBDB | |
842 | LIBGDBM | |
843 | dblibrary | |
844 | USE_DB | |
845 | USE_GDBM | |
846 | NETLIBS | |
847 | PASSWD | |
848 | EXPECT | |
849 | COURIERCONFIG | |
850 | PERL | |
851 | LTDLOPEN | |
852 | LT_CONFIG_H | |
853 | subdirs | |
854 | CONVENIENCE_LTDL_FALSE | |
855 | CONVENIENCE_LTDL_TRUE | |
856 | INSTALL_LTDL_FALSE | |
857 | INSTALL_LTDL_TRUE | |
858 | ARGZ_H | |
859 | sys_symbol_underscore | |
860 | LIBADD_DL | |
861 | LT_DLPREOPEN | |
862 | LIBADD_DLD_LINK | |
863 | LIBADD_SHL_LOAD | |
864 | LIBADD_DLOPEN | |
865 | LT_DLLOADERS | |
866 | INCLTDL | |
867 | LTDLINCL | |
868 | LTDLDEPS | |
869 | LIBLTDL | |
870 | OTOOL64 | |
871 | OTOOL | |
872 | LIPO | |
873 | NMEDIT | |
874 | DSYMUTIL | |
875 | lt_ECHO | |
876 | RANLIB | |
877 | AR | |
878 | OBJDUMP | |
879 | NM | |
880 | ac_ct_DUMPBIN | |
881 | DUMPBIN | |
882 | LD | |
883 | FGREP | |
884 | EGREP | |
885 | GREP | |
886 | SED | |
887 | host_os | |
888 | host_vendor | |
889 | host_cpu | |
890 | host | |
891 | build_os | |
892 | build_vendor | |
893 | build_cpu | |
894 | build | |
895 | LIBTOOL | |
896 | SYSCONFTOOL | |
897 | SYSCONFTOOL_PERL | |
898 | LN_S | |
899 | CPP | |
900 | am__fastdepCC_FALSE | |
901 | am__fastdepCC_TRUE | |
902 | CCDEPMODE | |
903 | AMDEPBACKSLASH | |
904 | AMDEP_FALSE | |
905 | AMDEP_TRUE | |
906 | am__quote | |
907 | am__include | |
908 | DEPDIR | |
909 | OBJEXT | |
910 | EXEEXT | |
911 | ac_ct_CC | |
912 | CPPFLAGS | |
913 | LDFLAGS | |
914 | CFLAGS | |
915 | CC | |
916 | am__untar | |
917 | am__tar | |
918 | AMTAR | |
919 | am__leading_dot | |
920 | SET_MAKE | |
921 | AWK | |
922 | mkdir_p | |
923 | MKDIR_P | |
924 | INSTALL_STRIP_PROGRAM | |
925 | STRIP | |
926 | install_sh | |
927 | MAKEINFO | |
928 | AUTOHEADER | |
929 | AUTOMAKE | |
930 | AUTOCONF | |
931 | ACLOCAL | |
932 | VERSION | |
933 | PACKAGE | |
934 | CYGPATH_W | |
935 | am__isrc | |
936 | INSTALL_DATA | |
937 | INSTALL_SCRIPT | |
938 | INSTALL_PROGRAM | |
939 | target_alias | |
940 | host_alias | |
dd184caf | 941 | build_alias |
8d138742 CE |
942 | LIBS |
943 | ECHO_T | |
944 | ECHO_N | |
945 | ECHO_C | |
946 | DEFS | |
947 | mandir | |
948 | localedir | |
949 | libdir | |
950 | psdir | |
951 | pdfdir | |
952 | dvidir | |
953 | htmldir | |
954 | infodir | |
955 | docdir | |
956 | oldincludedir | |
957 | includedir | |
958 | localstatedir | |
959 | sharedstatedir | |
960 | sysconfdir | |
961 | datadir | |
962 | datarootdir | |
963 | libexecdir | |
964 | sbindir | |
965 | bindir | |
966 | program_transform_name | |
967 | prefix | |
968 | exec_prefix | |
969 | PACKAGE_BUGREPORT | |
970 | PACKAGE_STRING | |
971 | PACKAGE_VERSION | |
972 | PACKAGE_TARNAME | |
973 | PACKAGE_NAME | |
974 | PATH_SEPARATOR | |
975 | SHELL' | |
976 | ac_subst_files='' | |
977 | ac_user_opts=' | |
978 | enable_option_checking | |
979 | enable_dependency_tracking | |
980 | enable_shared | |
981 | enable_static | |
982 | with_pic | |
983 | enable_fast_install | |
984 | with_gnu_ld | |
985 | enable_libtool_lock | |
986 | with_included_ltdl | |
987 | with_ltdl_include | |
988 | with_ltdl_lib | |
989 | enable_ltdl_install | |
990 | with_redhat | |
991 | with_pkgconfdir | |
992 | with_db | |
993 | with_authuserdb | |
994 | with_makedatprog | |
995 | with_userdb | |
996 | with_authpam | |
997 | with_authpam_libraries | |
998 | with_authldap | |
999 | with_authldaprc | |
1000 | with_authpwd | |
1001 | with_authshadow | |
1002 | with_authpgsqlrc | |
1003 | with_authpgsql | |
1004 | with_pgsql_libs | |
1005 | with_pgsql_includes | |
1006 | with_authmysqlrc | |
1007 | with_authmysql | |
1008 | with_mysql_libs | |
1009 | with_mysql_includes | |
1010 | with_authcustom | |
1011 | with_pipeprog | |
1012 | with_authpipe | |
1013 | with_authdaemonrc | |
1014 | with_authdaemonvar | |
1015 | with_mailuser | |
1016 | with_mailgroup | |
1017 | with_stdheaderdir | |
1018 | with_repository | |
1019 | ' | |
1020 | ac_precious_vars='build_alias | |
dd184caf | 1021 | host_alias |
1022 | target_alias | |
1023 | CC | |
1024 | CFLAGS | |
1025 | LDFLAGS | |
1026 | LIBS | |
1027 | CPPFLAGS | |
8d138742 CE |
1028 | CPP' |
1029 | ac_subdirs_all='libltdl | |
1030 | bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb unicode rfc822 random128 liblock liblog' | |
d9898ee8 | 1031 | |
1032 | # Initialize some variables set by options. | |
1033 | ac_init_help= | |
1034 | ac_init_version=false | |
8d138742 CE |
1035 | ac_unrecognized_opts= |
1036 | ac_unrecognized_sep= | |
d9898ee8 | 1037 | # The variables have the same names as the options, with |
1038 | # dashes changed to underlines. | |
1039 | cache_file=/dev/null | |
1040 | exec_prefix=NONE | |
1041 | no_create= | |
1042 | no_recursion= | |
1043 | prefix=NONE | |
1044 | program_prefix=NONE | |
1045 | program_suffix=NONE | |
1046 | program_transform_name=s,x,x, | |
1047 | silent= | |
1048 | site= | |
1049 | srcdir= | |
1050 | verbose= | |
1051 | x_includes=NONE | |
1052 | x_libraries=NONE | |
1053 | ||
1054 | # Installation directory options. | |
1055 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
1056 | # and all the variables that are supposed to be based on exec_prefix | |
1057 | # by default will actually change. | |
1058 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
dd184caf | 1059 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 1060 | bindir='${exec_prefix}/bin' |
1061 | sbindir='${exec_prefix}/sbin' | |
1062 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 1063 | datarootdir='${prefix}/share' |
1064 | datadir='${datarootdir}' | |
d9898ee8 | 1065 | sysconfdir='${prefix}/etc' |
1066 | sharedstatedir='${prefix}/com' | |
1067 | localstatedir='${prefix}/var' | |
d9898ee8 | 1068 | includedir='${prefix}/include' |
1069 | oldincludedir='/usr/include' | |
dd184caf | 1070 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
1071 | infodir='${datarootdir}/info' | |
1072 | htmldir='${docdir}' | |
1073 | dvidir='${docdir}' | |
1074 | pdfdir='${docdir}' | |
1075 | psdir='${docdir}' | |
1076 | libdir='${exec_prefix}/lib' | |
1077 | localedir='${datarootdir}/locale' | |
1078 | mandir='${datarootdir}/man' | |
d9898ee8 | 1079 | |
1080 | ac_prev= | |
dd184caf | 1081 | ac_dashdash= |
d9898ee8 | 1082 | for ac_option |
1083 | do | |
1084 | # If the previous option needs an argument, assign it. | |
1085 | if test -n "$ac_prev"; then | |
dd184caf | 1086 | eval $ac_prev=\$ac_option |
d9898ee8 | 1087 | ac_prev= |
1088 | continue | |
1089 | fi | |
1090 | ||
dd184caf | 1091 | case $ac_option in |
1092 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1093 | *) ac_optarg=yes ;; | |
1094 | esac | |
d9898ee8 | 1095 | |
1096 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1097 | ||
dd184caf | 1098 | case $ac_dashdash$ac_option in |
1099 | --) | |
1100 | ac_dashdash=yes ;; | |
d9898ee8 | 1101 | |
1102 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1103 | ac_prev=bindir ;; | |
1104 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1105 | bindir=$ac_optarg ;; | |
1106 | ||
1107 | -build | --build | --buil | --bui | --bu) | |
1108 | ac_prev=build_alias ;; | |
1109 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1110 | build_alias=$ac_optarg ;; | |
1111 | ||
1112 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1113 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1114 | ac_prev=cache_file ;; | |
1115 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1116 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1117 | cache_file=$ac_optarg ;; | |
1118 | ||
1119 | --config-cache | -C) | |
1120 | cache_file=config.cache ;; | |
1121 | ||
dd184caf | 1122 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 1123 | ac_prev=datadir ;; |
dd184caf | 1124 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 1125 | datadir=$ac_optarg ;; |
1126 | ||
dd184caf | 1127 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1128 | | --dataroo | --dataro | --datar) | |
1129 | ac_prev=datarootdir ;; | |
1130 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1131 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1132 | datarootdir=$ac_optarg ;; | |
1133 | ||
d9898ee8 | 1134 | -disable-* | --disable-*) |
8d138742 | 1135 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 1136 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1137 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1138 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
d9898ee8 | 1139 | { (exit 1); exit 1; }; } |
8d138742 CE |
1140 | ac_useropt_orig=$ac_useropt |
1141 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1142 | case $ac_user_opts in | |
1143 | *" | |
1144 | "enable_$ac_useropt" | |
1145 | "*) ;; | |
1146 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1147 | ac_unrecognized_sep=', ';; | |
1148 | esac | |
1149 | eval enable_$ac_useropt=no ;; | |
dd184caf | 1150 | |
1151 | -docdir | --docdir | --docdi | --doc | --do) | |
1152 | ac_prev=docdir ;; | |
1153 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1154 | docdir=$ac_optarg ;; | |
1155 | ||
1156 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1157 | ac_prev=dvidir ;; | |
1158 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1159 | dvidir=$ac_optarg ;; | |
d9898ee8 | 1160 | |
1161 | -enable-* | --enable-*) | |
8d138742 | 1162 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 1163 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1164 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1165 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
d9898ee8 | 1166 | { (exit 1); exit 1; }; } |
8d138742 CE |
1167 | ac_useropt_orig=$ac_useropt |
1168 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1169 | case $ac_user_opts in | |
1170 | *" | |
1171 | "enable_$ac_useropt" | |
1172 | "*) ;; | |
1173 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1174 | ac_unrecognized_sep=', ';; | |
1175 | esac | |
1176 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1177 | |
1178 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1179 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1180 | | --exec | --exe | --ex) | |
1181 | ac_prev=exec_prefix ;; | |
1182 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1183 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1184 | | --exec=* | --exe=* | --ex=*) | |
1185 | exec_prefix=$ac_optarg ;; | |
1186 | ||
1187 | -gas | --gas | --ga | --g) | |
1188 | # Obsolete; use --with-gas. | |
1189 | with_gas=yes ;; | |
1190 | ||
1191 | -help | --help | --hel | --he | -h) | |
1192 | ac_init_help=long ;; | |
1193 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1194 | ac_init_help=recursive ;; | |
1195 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1196 | ac_init_help=short ;; | |
1197 | ||
1198 | -host | --host | --hos | --ho) | |
1199 | ac_prev=host_alias ;; | |
1200 | -host=* | --host=* | --hos=* | --ho=*) | |
1201 | host_alias=$ac_optarg ;; | |
1202 | ||
dd184caf | 1203 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1204 | ac_prev=htmldir ;; | |
1205 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1206 | | --ht=*) | |
1207 | htmldir=$ac_optarg ;; | |
1208 | ||
d9898ee8 | 1209 | -includedir | --includedir | --includedi | --included | --include \ |
1210 | | --includ | --inclu | --incl | --inc) | |
1211 | ac_prev=includedir ;; | |
1212 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1213 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1214 | includedir=$ac_optarg ;; | |
1215 | ||
1216 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1217 | ac_prev=infodir ;; | |
1218 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1219 | infodir=$ac_optarg ;; | |
1220 | ||
1221 | -libdir | --libdir | --libdi | --libd) | |
1222 | ac_prev=libdir ;; | |
1223 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1224 | libdir=$ac_optarg ;; | |
1225 | ||
1226 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1227 | | --libexe | --libex | --libe) | |
1228 | ac_prev=libexecdir ;; | |
1229 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1230 | | --libexe=* | --libex=* | --libe=*) | |
1231 | libexecdir=$ac_optarg ;; | |
1232 | ||
dd184caf | 1233 | -localedir | --localedir | --localedi | --localed | --locale) |
1234 | ac_prev=localedir ;; | |
1235 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1236 | localedir=$ac_optarg ;; | |
1237 | ||
d9898ee8 | 1238 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 1239 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 1240 | ac_prev=localstatedir ;; |
1241 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 1242 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 1243 | localstatedir=$ac_optarg ;; |
1244 | ||
1245 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1246 | ac_prev=mandir ;; | |
1247 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1248 | mandir=$ac_optarg ;; | |
1249 | ||
1250 | -nfp | --nfp | --nf) | |
1251 | # Obsolete; use --without-fp. | |
1252 | with_fp=no ;; | |
1253 | ||
1254 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1255 | | --no-cr | --no-c | -n) | |
1256 | no_create=yes ;; | |
1257 | ||
1258 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1259 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1260 | no_recursion=yes ;; | |
1261 | ||
1262 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1263 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1264 | | --oldin | --oldi | --old | --ol | --o) | |
1265 | ac_prev=oldincludedir ;; | |
1266 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1267 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1268 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1269 | oldincludedir=$ac_optarg ;; | |
1270 | ||
1271 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1272 | ac_prev=prefix ;; | |
1273 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1274 | prefix=$ac_optarg ;; | |
1275 | ||
1276 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1277 | | --program-pre | --program-pr | --program-p) | |
1278 | ac_prev=program_prefix ;; | |
1279 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1280 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1281 | program_prefix=$ac_optarg ;; | |
1282 | ||
1283 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1284 | | --program-suf | --program-su | --program-s) | |
1285 | ac_prev=program_suffix ;; | |
1286 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1287 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1288 | program_suffix=$ac_optarg ;; | |
1289 | ||
1290 | -program-transform-name | --program-transform-name \ | |
1291 | | --program-transform-nam | --program-transform-na \ | |
1292 | | --program-transform-n | --program-transform- \ | |
1293 | | --program-transform | --program-transfor \ | |
1294 | | --program-transfo | --program-transf \ | |
1295 | | --program-trans | --program-tran \ | |
1296 | | --progr-tra | --program-tr | --program-t) | |
1297 | ac_prev=program_transform_name ;; | |
1298 | -program-transform-name=* | --program-transform-name=* \ | |
1299 | | --program-transform-nam=* | --program-transform-na=* \ | |
1300 | | --program-transform-n=* | --program-transform-=* \ | |
1301 | | --program-transform=* | --program-transfor=* \ | |
1302 | | --program-transfo=* | --program-transf=* \ | |
1303 | | --program-trans=* | --program-tran=* \ | |
1304 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1305 | program_transform_name=$ac_optarg ;; | |
1306 | ||
dd184caf | 1307 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1308 | ac_prev=pdfdir ;; | |
1309 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1310 | pdfdir=$ac_optarg ;; | |
1311 | ||
1312 | -psdir | --psdir | --psdi | --psd | --ps) | |
1313 | ac_prev=psdir ;; | |
1314 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1315 | psdir=$ac_optarg ;; | |
1316 | ||
d9898ee8 | 1317 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1318 | | -silent | --silent | --silen | --sile | --sil) | |
1319 | silent=yes ;; | |
1320 | ||
1321 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1322 | ac_prev=sbindir ;; | |
1323 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1324 | | --sbi=* | --sb=*) | |
1325 | sbindir=$ac_optarg ;; | |
1326 | ||
1327 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1328 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1329 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1330 | | --sha | --sh) | |
1331 | ac_prev=sharedstatedir ;; | |
1332 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1333 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1334 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1335 | | --sha=* | --sh=*) | |
1336 | sharedstatedir=$ac_optarg ;; | |
1337 | ||
1338 | -site | --site | --sit) | |
1339 | ac_prev=site ;; | |
1340 | -site=* | --site=* | --sit=*) | |
1341 | site=$ac_optarg ;; | |
1342 | ||
1343 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1344 | ac_prev=srcdir ;; | |
1345 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1346 | srcdir=$ac_optarg ;; | |
1347 | ||
1348 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1349 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1350 | ac_prev=sysconfdir ;; | |
1351 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1352 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1353 | sysconfdir=$ac_optarg ;; | |
1354 | ||
1355 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1356 | ac_prev=target_alias ;; | |
1357 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1358 | target_alias=$ac_optarg ;; | |
1359 | ||
1360 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1361 | verbose=yes ;; | |
1362 | ||
1363 | -version | --version | --versio | --versi | --vers | -V) | |
1364 | ac_init_version=: ;; | |
1365 | ||
1366 | -with-* | --with-*) | |
8d138742 | 1367 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1368 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1369 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1370 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
d9898ee8 | 1371 | { (exit 1); exit 1; }; } |
8d138742 CE |
1372 | ac_useropt_orig=$ac_useropt |
1373 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1374 | case $ac_user_opts in | |
1375 | *" | |
1376 | "with_$ac_useropt" | |
1377 | "*) ;; | |
1378 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1379 | ac_unrecognized_sep=', ';; | |
1380 | esac | |
1381 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1382 | |
1383 | -without-* | --without-*) | |
8d138742 | 1384 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1385 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1386 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1387 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
d9898ee8 | 1388 | { (exit 1); exit 1; }; } |
8d138742 CE |
1389 | ac_useropt_orig=$ac_useropt |
1390 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1391 | case $ac_user_opts in | |
1392 | *" | |
1393 | "with_$ac_useropt" | |
1394 | "*) ;; | |
1395 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1396 | ac_unrecognized_sep=', ';; | |
1397 | esac | |
1398 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1399 | |
1400 | --x) | |
1401 | # Obsolete; use --with-x. | |
1402 | with_x=yes ;; | |
1403 | ||
1404 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1405 | | --x-incl | --x-inc | --x-in | --x-i) | |
1406 | ac_prev=x_includes ;; | |
1407 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1408 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1409 | x_includes=$ac_optarg ;; | |
1410 | ||
1411 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1412 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1413 | ac_prev=x_libraries ;; | |
1414 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1415 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1416 | x_libraries=$ac_optarg ;; | |
1417 | ||
8d138742 | 1418 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
d9898ee8 | 1419 | Try \`$0 --help' for more information." >&2 |
1420 | { (exit 1); exit 1; }; } | |
1421 | ;; | |
1422 | ||
1423 | *=*) | |
1424 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1425 | # Reject names that are not valid shell variable names. | |
1426 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
8d138742 | 1427 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
d9898ee8 | 1428 | { (exit 1); exit 1; }; } |
dd184caf | 1429 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1430 | export $ac_envvar ;; |
1431 | ||
1432 | *) | |
1433 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1434 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1435 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1436 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d9898ee8 | 1437 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1438 | ;; | |
1439 | ||
1440 | esac | |
1441 | done | |
1442 | ||
1443 | if test -n "$ac_prev"; then | |
1444 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
8d138742 | 1445 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
d9898ee8 | 1446 | { (exit 1); exit 1; }; } |
1447 | fi | |
1448 | ||
8d138742 CE |
1449 | if test -n "$ac_unrecognized_opts"; then |
1450 | case $enable_option_checking in | |
1451 | no) ;; | |
1452 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1453 | { (exit 1); exit 1; }; } ;; | |
1454 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1455 | esac | |
1456 | fi | |
1457 | ||
1458 | # Check all directory arguments for consistency. | |
dd184caf | 1459 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1460 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1461 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1462 | libdir localedir mandir | |
d9898ee8 | 1463 | do |
dd184caf | 1464 | eval ac_val=\$$ac_var |
8d138742 CE |
1465 | # Remove trailing slashes. |
1466 | case $ac_val in | |
1467 | */ ) | |
1468 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1469 | eval $ac_var=\$ac_val;; | |
1470 | esac | |
1471 | # Be sure to have absolute directory names. | |
d9898ee8 | 1472 | case $ac_val in |
dd184caf | 1473 | [\\/$]* | ?:[\\/]* ) continue;; |
1474 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1475 | esac |
8d138742 | 1476 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
dd184caf | 1477 | { (exit 1); exit 1; }; } |
d9898ee8 | 1478 | done |
1479 | ||
1480 | # There might be people who depend on the old broken behavior: `$host' | |
1481 | # used to hold the argument of --host etc. | |
1482 | # FIXME: To remove some day. | |
1483 | build=$build_alias | |
1484 | host=$host_alias | |
1485 | target=$target_alias | |
1486 | ||
1487 | # FIXME: To remove some day. | |
1488 | if test "x$host_alias" != x; then | |
1489 | if test "x$build_alias" = x; then | |
1490 | cross_compiling=maybe | |
8d138742 | 1491 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
d9898ee8 | 1492 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1493 | elif test "x$build_alias" != "x$host_alias"; then | |
1494 | cross_compiling=yes | |
1495 | fi | |
1496 | fi | |
1497 | ||
1498 | ac_tool_prefix= | |
1499 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1500 | ||
1501 | test "$silent" = yes && exec 6>/dev/null | |
1502 | ||
1503 | ||
dd184caf | 1504 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1505 | ac_ls_di=`ls -di .` && | |
1506 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
8d138742 | 1507 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
dd184caf | 1508 | { (exit 1); exit 1; }; } |
1509 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
8d138742 | 1510 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
dd184caf | 1511 | { (exit 1); exit 1; }; } |
1512 | ||
1513 | ||
d9898ee8 | 1514 | # Find the source files, if location was not specified. |
1515 | if test -z "$srcdir"; then | |
1516 | ac_srcdir_defaulted=yes | |
dd184caf | 1517 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1518 | ac_confdir=`$as_dirname -- "$as_myself" || |
1519 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1520 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1521 | X"$as_myself" : 'X\(//\)$' \| \ | |
1522 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1523 | $as_echo X"$as_myself" | | |
dd184caf | 1524 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1525 | s//\1/ | |
1526 | q | |
1527 | } | |
1528 | /^X\(\/\/\)[^/].*/{ | |
1529 | s//\1/ | |
1530 | q | |
1531 | } | |
1532 | /^X\(\/\/\)$/{ | |
1533 | s//\1/ | |
1534 | q | |
1535 | } | |
1536 | /^X\(\/\).*/{ | |
1537 | s//\1/ | |
1538 | q | |
1539 | } | |
1540 | s/.*/./; q'` | |
d9898ee8 | 1541 | srcdir=$ac_confdir |
dd184caf | 1542 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1543 | srcdir=.. |
1544 | fi | |
1545 | else | |
1546 | ac_srcdir_defaulted=no | |
1547 | fi | |
dd184caf | 1548 | if test ! -r "$srcdir/$ac_unique_file"; then |
1549 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
8d138742 | 1550 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
d9898ee8 | 1551 | { (exit 1); exit 1; }; } |
d9898ee8 | 1552 | fi |
dd184caf | 1553 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1554 | ac_abs_confdir=`( | |
8d138742 | 1555 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
d9898ee8 | 1556 | { (exit 1); exit 1; }; } |
dd184caf | 1557 | pwd)` |
1558 | # When building in place, set srcdir=. | |
1559 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1560 | srcdir=. | |
1561 | fi | |
1562 | # Remove unnecessary trailing slashes from srcdir. | |
1563 | # Double slashes in file names in object file debugging info | |
1564 | # mess up M-x gdb in Emacs. | |
1565 | case $srcdir in | |
1566 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1567 | esac | |
1568 | for ac_var in $ac_precious_vars; do | |
1569 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1570 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1571 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1572 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1573 | done | |
d9898ee8 | 1574 | |
1575 | # | |
1576 | # Report the --help message. | |
1577 | # | |
1578 | if test "$ac_init_help" = "long"; then | |
1579 | # Omit some internal or obsolete options to make the list less imposing. | |
1580 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1581 | cat <<_ACEOF | |
8d138742 | 1582 | \`configure' configures courier-authlib 0.63.0 to adapt to many kinds of systems. |
d9898ee8 | 1583 | |
1584 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1585 | ||
1586 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1587 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1588 | ||
1589 | Defaults for the options are specified in brackets. | |
1590 | ||
1591 | Configuration: | |
1592 | -h, --help display this help and exit | |
1593 | --help=short display options specific to this package | |
1594 | --help=recursive display the short help of all the included packages | |
1595 | -V, --version display version information and exit | |
1596 | -q, --quiet, --silent do not print \`checking...' messages | |
1597 | --cache-file=FILE cache test results in FILE [disabled] | |
1598 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1599 | -n, --no-create do not create output files | |
1600 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1601 | ||
d9898ee8 | 1602 | Installation directories: |
1603 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1604 | [$ac_default_prefix] |
d9898ee8 | 1605 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1606 | [PREFIX] |
d9898ee8 | 1607 | |
1608 | By default, \`make install' will install all the files in | |
1609 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1610 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1611 | for instance \`--prefix=\$HOME'. | |
1612 | ||
1613 | For better control, use the options below. | |
1614 | ||
1615 | Fine tuning of the installation directories: | |
8d138742 CE |
1616 | --bindir=DIR user executables [EPREFIX/bin] |
1617 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1618 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1619 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1620 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1621 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1622 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1623 | --includedir=DIR C header files [PREFIX/include] | |
1624 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1625 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1626 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1627 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1628 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1629 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1630 | --docdir=DIR documentation root [DATAROOTDIR/doc/courier-authlib] | |
1631 | --htmldir=DIR html documentation [DOCDIR] | |
1632 | --dvidir=DIR dvi documentation [DOCDIR] | |
1633 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1634 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1635 | _ACEOF |
1636 | ||
1637 | cat <<\_ACEOF | |
1638 | ||
1639 | Program names: | |
1640 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1641 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1642 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1643 | ||
1644 | System types: | |
1645 | --build=BUILD configure for building on BUILD [guessed] | |
1646 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1647 | _ACEOF | |
1648 | fi | |
1649 | ||
1650 | if test -n "$ac_init_help"; then | |
1651 | case $ac_init_help in | |
8d138742 | 1652 | short | recursive ) echo "Configuration of courier-authlib 0.63.0:";; |
d9898ee8 | 1653 | esac |
1654 | cat <<\_ACEOF | |
1655 | ||
1656 | Optional Features: | |
8d138742 | 1657 | --disable-option-checking ignore unrecognized --enable/--with options |
d9898ee8 | 1658 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1659 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1660 | --disable-dependency-tracking speeds up one-time build | |
1661 | --enable-dependency-tracking do not reject slow dependency extractors | |
dd184caf | 1662 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1663 | --enable-static[=PKGS] build static libraries [default=yes] | |
d9898ee8 | 1664 | --enable-fast-install[=PKGS] |
1665 | optimize for fast installation [default=yes] | |
1666 | --disable-libtool-lock avoid locking (might break parallel builds) | |
8d138742 | 1667 | --enable-ltdl-install install libltdl |
d9898ee8 | 1668 | |
1669 | Optional Packages: | |
1670 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1671 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d9898ee8 | 1672 | --with-pic try to use only PIC/non-PIC objects [default=use |
1673 | both] | |
8d138742 CE |
1674 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1675 | --with-included-ltdl use the GNU ltdl sources included here | |
1676 | --with-ltdl-include=DIR use the ltdl headers installed in DIR | |
1677 | --with-ltdl-lib=DIR use the libltdl.la installed in DIR | |
d9898ee8 | 1678 | |
1679 | --with-pkgconfdir=d Install config files in directory | |
1680 | --with-db=gdbm Use the GDBM library. | |
1681 | --with-db=db Use the libdb.a library. | |
1682 | --without-authuserdb Do not include the authuserdb module | |
1683 | ||
1684 | --without-authpam Do not include the authpam module | |
1685 | --with-authpam-libraries="libs" Link 'libs' with authpam, this may be | |
1686 | required for FreeBSD 3.3 | |
1687 | --without-authldap Do not include the authldap module | |
1688 | --with-authldaprc=filename Expect to find authldaprc here | |
1689 | --without-authpwd Do not include the authpwd module | |
1690 | --without-authshadow Do not include the authshadow module | |
d9898ee8 | 1691 | --with-authpgsqlrc=filename Expect to find authpgsql here |
1692 | --without-authpgsql Do not include the authpgsql module | |
1693 | --with-pgsql-libs=DIR Look for pgsql libs in this dir | |
1694 | --with-pgsql-includes=DIR Look for pgsql includes in this dir | |
1695 | --with-authmysqlrc=filename Expect to find authmysql here | |
1696 | --without-authmysql Do not include the authmysql module | |
1697 | --with-mysql-libs=DIR Look for mysql libs in this dir | |
1698 | --with-mysql-includes=DIR Look for mysql includes in this dir | |
1699 | --without-authcustom Do not include the authcustom module | |
1700 | --with-pipeprog=filename Expect to find the pipe-prog here | |
1701 | --without-authpipe Do not include the authpipe module | |
1702 | --with-authdaemonrc=filename Expect to find authdaemonrc here | |
1703 | --with-authdaemonvar=directory Directory where authdaemon.pid and | |
1704 | the listening socket is created | |
1705 | --with-mailuser=user Specify mail user name (defaults to | |
1706 | courier, daemon, admin, bin, or root) | |
1707 | --with-mailgroup=group Specify mail group name (defaults to courier, | |
1708 | daemon, sys, adm, or root) | |
1709 | --without-stdheaderdir Header files will be installed into a directory | |
1710 | not in the compiler's default search path. | |
1711 | ||
1712 | Some influential environment variables: | |
1713 | CC C compiler command | |
1714 | CFLAGS C compiler flags | |
1715 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1716 | nonstandard directory <lib dir> | |
dd184caf | 1717 | LIBS libraries to pass to the linker, e.g. -l<library> |
1718 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1719 | you have headers in a nonstandard directory <include dir> | |
d9898ee8 | 1720 | CPP C preprocessor |
d9898ee8 | 1721 | |
1722 | Use these variables to override the choices made by `configure' or to help | |
1723 | it to find libraries and programs with nonstandard names/locations. | |
1724 | ||
8d138742 | 1725 | Report bugs to <courier-users@lists.sourceforge.net>. |
d9898ee8 | 1726 | _ACEOF |
dd184caf | 1727 | ac_status=$? |
d9898ee8 | 1728 | fi |
1729 | ||
1730 | if test "$ac_init_help" = "recursive"; then | |
1731 | # If there are subdirs, report their specific --help. | |
d9898ee8 | 1732 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
8d138742 CE |
1733 | test -d "$ac_dir" || |
1734 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1735 | continue | |
d9898ee8 | 1736 | ac_builddir=. |
1737 | ||
dd184caf | 1738 | case "$ac_dir" in |
1739 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1740 | *) | |
8d138742 | 1741 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
dd184caf | 1742 | # A ".." for each directory in $ac_dir_suffix. |
8d138742 | 1743 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
dd184caf | 1744 | case $ac_top_builddir_sub in |
1745 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1746 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1747 | esac ;; | |
1748 | esac | |
1749 | ac_abs_top_builddir=$ac_pwd | |
1750 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1751 | # for backward compatibility: | |
1752 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 1753 | |
1754 | case $srcdir in | |
dd184caf | 1755 | .) # We are building in place. |
d9898ee8 | 1756 | ac_srcdir=. |
dd184caf | 1757 | ac_top_srcdir=$ac_top_builddir_sub |
1758 | ac_abs_top_srcdir=$ac_pwd ;; | |
1759 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
d9898ee8 | 1760 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf | 1761 | ac_top_srcdir=$srcdir |
1762 | ac_abs_top_srcdir=$srcdir ;; | |
1763 | *) # Relative name. | |
1764 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1765 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1766 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
d9898ee8 | 1767 | esac |
dd184caf | 1768 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1769 | ||
1770 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1771 | # Check for guested configure. | |
1772 | if test -f "$ac_srcdir/configure.gnu"; then | |
1773 | echo && | |
1774 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1775 | elif test -f "$ac_srcdir/configure"; then | |
1776 | echo && | |
1777 | $SHELL "$ac_srcdir/configure" --help=recursive | |
d9898ee8 | 1778 | else |
8d138742 | 1779 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf | 1780 | fi || ac_status=$? |
1781 | cd "$ac_pwd" || { ac_status=$?; break; } | |
d9898ee8 | 1782 | done |
1783 | fi | |
1784 | ||
dd184caf | 1785 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 | 1786 | if $ac_init_version; then |
1787 | cat <<\_ACEOF | |
8d138742 CE |
1788 | courier-authlib configure 0.63.0 |
1789 | generated by GNU Autoconf 2.63 | |
d9898ee8 | 1790 | |
dd184caf | 1791 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8d138742 | 1792 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
d9898ee8 | 1793 | This configure script is free software; the Free Software Foundation |
1794 | gives unlimited permission to copy, distribute and modify it. | |
1795 | _ACEOF | |
dd184caf | 1796 | exit |
d9898ee8 | 1797 | fi |
dd184caf | 1798 | cat >config.log <<_ACEOF |
d9898ee8 | 1799 | This file contains any messages produced by compilers while |
1800 | running configure, to aid debugging if configure makes a mistake. | |
1801 | ||
8d138742 CE |
1802 | It was created by courier-authlib $as_me 0.63.0, which was |
1803 | generated by GNU Autoconf 2.63. Invocation command line was | |
d9898ee8 | 1804 | |
1805 | $ $0 $@ | |
1806 | ||
1807 | _ACEOF | |
dd184caf | 1808 | exec 5>>config.log |
d9898ee8 | 1809 | { |
1810 | cat <<_ASUNAME | |
1811 | ## --------- ## | |
1812 | ## Platform. ## | |
1813 | ## --------- ## | |
1814 | ||
1815 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1816 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1817 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1818 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1819 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1820 | ||
1821 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1822 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1823 | ||
1824 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1825 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1826 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
dd184caf | 1827 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 | 1828 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1829 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1830 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1831 | ||
1832 | _ASUNAME | |
1833 | ||
1834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1835 | for as_dir in $PATH | |
1836 | do | |
1837 | IFS=$as_save_IFS | |
1838 | test -z "$as_dir" && as_dir=. | |
8d138742 | 1839 | $as_echo "PATH: $as_dir" |
d9898ee8 | 1840 | done |
dd184caf | 1841 | IFS=$as_save_IFS |
d9898ee8 | 1842 | |
1843 | } >&5 | |
1844 | ||
1845 | cat >&5 <<_ACEOF | |
1846 | ||
1847 | ||
1848 | ## ----------- ## | |
1849 | ## Core tests. ## | |
1850 | ## ----------- ## | |
1851 | ||
1852 | _ACEOF | |
1853 | ||
1854 | ||
1855 | # Keep a trace of the command line. | |
1856 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1857 | # Strip out --silent because we don't want to record it for future runs. | |
1858 | # Also quote any args containing shell meta-characters. | |
1859 | # Make two passes to allow for proper duplicate-argument suppression. | |
1860 | ac_configure_args= | |
1861 | ac_configure_args0= | |
1862 | ac_configure_args1= | |
d9898ee8 | 1863 | ac_must_keep_next=false |
1864 | for ac_pass in 1 2 | |
1865 | do | |
1866 | for ac_arg | |
1867 | do | |
1868 | case $ac_arg in | |
1869 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1870 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1871 | | -silent | --silent | --silen | --sile | --sil) | |
1872 | continue ;; | |
dd184caf | 1873 | *\'*) |
8d138742 | 1874 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 1875 | esac |
1876 | case $ac_pass in | |
1877 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1878 | 2) | |
1879 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1880 | if test $ac_must_keep_next = true; then | |
1881 | ac_must_keep_next=false # Got value, back to normal. | |
1882 | else | |
1883 | case $ac_arg in | |
1884 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1885 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1886 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1887 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1888 | case "$ac_configure_args0 " in | |
1889 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1890 | esac | |
1891 | ;; | |
1892 | -* ) ac_must_keep_next=true ;; | |
1893 | esac | |
1894 | fi | |
dd184caf | 1895 | ac_configure_args="$ac_configure_args '$ac_arg'" |
d9898ee8 | 1896 | ;; |
1897 | esac | |
1898 | done | |
1899 | done | |
1900 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1901 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1902 | ||
1903 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1904 | # config.log. We remove comments because anyway the quotes in there | |
1905 | # would cause problems or look ugly. | |
dd184caf | 1906 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1907 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
d9898ee8 | 1908 | trap 'exit_status=$? |
1909 | # Save into config.log some information that might help in debugging. | |
1910 | { | |
1911 | echo | |
1912 | ||
1913 | cat <<\_ASBOX | |
1914 | ## ---------------- ## | |
1915 | ## Cache variables. ## | |
1916 | ## ---------------- ## | |
1917 | _ASBOX | |
1918 | echo | |
1919 | # The following way of writing the cache mishandles newlines in values, | |
dd184caf | 1920 | ( |
1921 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1922 | eval ac_val=\$$ac_var | |
1923 | case $ac_val in #( | |
1924 | *${as_nl}*) | |
1925 | case $ac_var in #( | |
8d138742 CE |
1926 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1927 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
dd184caf | 1928 | esac |
1929 | case $ac_var in #( | |
1930 | _ | IFS | as_nl) ;; #( | |
8d138742 | 1931 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
dd184caf | 1932 | *) $as_unset $ac_var ;; |
1933 | esac ;; | |
1934 | esac | |
1935 | done | |
d9898ee8 | 1936 | (set) 2>&1 | |
dd184caf | 1937 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1938 | *${as_nl}ac_space=\ *) | |
d9898ee8 | 1939 | sed -n \ |
dd184caf | 1940 | "s/'\''/'\''\\\\'\'''\''/g; |
1941 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1942 | ;; #( | |
d9898ee8 | 1943 | *) |
dd184caf | 1944 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 | 1945 | ;; |
dd184caf | 1946 | esac | |
1947 | sort | |
1948 | ) | |
d9898ee8 | 1949 | echo |
1950 | ||
1951 | cat <<\_ASBOX | |
1952 | ## ----------------- ## | |
1953 | ## Output variables. ## | |
1954 | ## ----------------- ## | |
1955 | _ASBOX | |
1956 | echo | |
1957 | for ac_var in $ac_subst_vars | |
1958 | do | |
dd184caf | 1959 | eval ac_val=\$$ac_var |
1960 | case $ac_val in | |
8d138742 | 1961 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 1962 | esac |
8d138742 | 1963 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 1964 | done | sort |
1965 | echo | |
1966 | ||
1967 | if test -n "$ac_subst_files"; then | |
1968 | cat <<\_ASBOX | |
dd184caf | 1969 | ## ------------------- ## |
1970 | ## File substitutions. ## | |
1971 | ## ------------------- ## | |
d9898ee8 | 1972 | _ASBOX |
1973 | echo | |
1974 | for ac_var in $ac_subst_files | |
1975 | do | |
dd184caf | 1976 | eval ac_val=\$$ac_var |
1977 | case $ac_val in | |
8d138742 | 1978 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 1979 | esac |
8d138742 | 1980 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 1981 | done | sort |
1982 | echo | |
1983 | fi | |
1984 | ||
1985 | if test -s confdefs.h; then | |
1986 | cat <<\_ASBOX | |
1987 | ## ----------- ## | |
1988 | ## confdefs.h. ## | |
1989 | ## ----------- ## | |
1990 | _ASBOX | |
1991 | echo | |
dd184caf | 1992 | cat confdefs.h |
d9898ee8 | 1993 | echo |
1994 | fi | |
1995 | test "$ac_signal" != 0 && | |
8d138742 CE |
1996 | $as_echo "$as_me: caught signal $ac_signal" |
1997 | $as_echo "$as_me: exit $exit_status" | |
d9898ee8 | 1998 | } >&5 |
dd184caf | 1999 | rm -f core *.core core.conftest.* && |
2000 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
d9898ee8 | 2001 | exit $exit_status |
dd184caf | 2002 | ' 0 |
d9898ee8 | 2003 | for ac_signal in 1 2 13 15; do |
2004 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
2005 | done | |
2006 | ac_signal=0 | |
2007 | ||
2008 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
dd184caf | 2009 | rm -f -r conftest* confdefs.h |
d9898ee8 | 2010 | |
2011 | # Predefined preprocessor variables. | |
2012 | ||
2013 | cat >>confdefs.h <<_ACEOF | |
2014 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2015 | _ACEOF | |
2016 | ||
2017 | ||
2018 | cat >>confdefs.h <<_ACEOF | |
2019 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2020 | _ACEOF | |
2021 | ||
2022 | ||
2023 | cat >>confdefs.h <<_ACEOF | |
2024 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2025 | _ACEOF | |
2026 | ||
2027 | ||
2028 | cat >>confdefs.h <<_ACEOF | |
2029 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2030 | _ACEOF | |
2031 | ||
2032 | ||
2033 | cat >>confdefs.h <<_ACEOF | |
2034 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2035 | _ACEOF | |
2036 | ||
2037 | ||
2038 | # Let the site file select an alternate cache file if it wants to. | |
8d138742 CE |
2039 | # Prefer an explicitly selected file to automatically selected ones. |
2040 | ac_site_file1=NONE | |
2041 | ac_site_file2=NONE | |
dd184caf | 2042 | if test -n "$CONFIG_SITE"; then |
8d138742 | 2043 | ac_site_file1=$CONFIG_SITE |
dd184caf | 2044 | elif test "x$prefix" != xNONE; then |
8d138742 CE |
2045 | ac_site_file1=$prefix/share/config.site |
2046 | ac_site_file2=$prefix/etc/config.site | |
dd184caf | 2047 | else |
8d138742 CE |
2048 | ac_site_file1=$ac_default_prefix/share/config.site |
2049 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d9898ee8 | 2050 | fi |
8d138742 | 2051 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
dd184caf | 2052 | do |
8d138742 | 2053 | test "x$ac_site_file" = xNONE && continue |
d9898ee8 | 2054 | if test -r "$ac_site_file"; then |
8d138742 CE |
2055 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
2056 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
d9898ee8 | 2057 | sed 's/^/| /' "$ac_site_file" >&5 |
2058 | . "$ac_site_file" | |
2059 | fi | |
2060 | done | |
2061 | ||
2062 | if test -r "$cache_file"; then | |
2063 | # Some versions of bash will fail to source /dev/null (special | |
2064 | # files actually), so we avoid doing that. | |
2065 | if test -f "$cache_file"; then | |
8d138742 CE |
2066 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
2067 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
d9898ee8 | 2068 | case $cache_file in |
dd184caf | 2069 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2070 | *) . "./$cache_file";; | |
d9898ee8 | 2071 | esac |
2072 | fi | |
2073 | else | |
8d138742 CE |
2074 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
2075 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
d9898ee8 | 2076 | >$cache_file |
2077 | fi | |
2078 | ||
2079 | # Check that the precious variables saved in the cache have kept the same | |
2080 | # value. | |
2081 | ac_cache_corrupted=false | |
dd184caf | 2082 | for ac_var in $ac_precious_vars; do |
d9898ee8 | 2083 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2084 | eval ac_new_set=\$ac_env_${ac_var}_set | |
dd184caf | 2085 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2086 | eval ac_new_val=\$ac_env_${ac_var}_value | |
d9898ee8 | 2087 | case $ac_old_set,$ac_new_set in |
2088 | set,) | |
8d138742 CE |
2089 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2090 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
d9898ee8 | 2091 | ac_cache_corrupted=: ;; |
2092 | ,set) | |
8d138742 CE |
2093 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
2094 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
d9898ee8 | 2095 | ac_cache_corrupted=: ;; |
2096 | ,);; | |
2097 | *) | |
2098 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8d138742 CE |
2099 | # differences in whitespace do not lead to failure. |
2100 | ac_old_val_w=`echo x $ac_old_val` | |
2101 | ac_new_val_w=`echo x $ac_new_val` | |
2102 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2103 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
2104 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2105 | ac_cache_corrupted=: | |
2106 | else | |
2107 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2108 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2109 | eval $ac_var=\$ac_old_val | |
2110 | fi | |
2111 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2112 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2113 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2114 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
d9898ee8 | 2115 | fi;; |
2116 | esac | |
2117 | # Pass precious variables to config.status. | |
2118 | if test "$ac_new_set" = set; then | |
2119 | case $ac_new_val in | |
8d138742 | 2120 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 2121 | *) ac_arg=$ac_var=$ac_new_val ;; |
2122 | esac | |
2123 | case " $ac_configure_args " in | |
2124 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2125 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2126 | esac | |
2127 | fi | |
2128 | done | |
2129 | if $ac_cache_corrupted; then | |
8d138742 CE |
2130 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2131 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2132 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2133 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2134 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2135 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
d9898ee8 | 2136 | { (exit 1); exit 1; }; } |
2137 | fi | |
2138 | ||
d9898ee8 | 2139 | |
2140 | ||
2141 | ||
2142 | ||
2143 | ||
2144 | ||
2145 | ||
2146 | ||
2147 | ||
2148 | ||
2149 | ||
2150 | ||
2151 | ||
2152 | ||
2153 | ||
2154 | ||
2155 | ||
2156 | ||
2157 | ||
2158 | ||
2159 | ||
2160 | ||
2161 | ||
2162 | ||
dd184caf | 2163 | ac_ext=c |
2164 | ac_cpp='$CPP $CPPFLAGS' | |
2165 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2166 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2167 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2168 | |
2169 | ||
2170 | ||
2171 | ||
dd184caf | 2172 | ac_config_headers="$ac_config_headers courier_auth_config.h" |
d9898ee8 | 2173 | |
d9898ee8 | 2174 | |
8d138742 CE |
2175 | |
2176 | am__api_version='1.11' | |
d9898ee8 | 2177 | |
d9898ee8 | 2178 | ac_aux_dir= |
dd184caf | 2179 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2180 | if test -f "$ac_dir/install-sh"; then | |
d9898ee8 | 2181 | ac_aux_dir=$ac_dir |
2182 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2183 | break | |
dd184caf | 2184 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2185 | ac_aux_dir=$ac_dir |
2186 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2187 | break | |
dd184caf | 2188 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2189 | ac_aux_dir=$ac_dir |
2190 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2191 | break | |
2192 | fi | |
2193 | done | |
2194 | if test -z "$ac_aux_dir"; then | |
8d138742 CE |
2195 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
2196 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
d9898ee8 | 2197 | { (exit 1); exit 1; }; } |
2198 | fi | |
dd184caf | 2199 | |
2200 | # These three variables are undocumented and unsupported, | |
2201 | # and are intended to be withdrawn in a future Autoconf release. | |
2202 | # They can cause serious problems if a builder's source tree is in a directory | |
2203 | # whose full name contains unusual characters. | |
2204 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2205 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2206 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2207 | ||
d9898ee8 | 2208 | |
2209 | # Find a good install program. We prefer a C program (faster), | |
2210 | # so one script is as good as another. But avoid the broken or | |
2211 | # incompatible versions: | |
2212 | # SysV /etc/install, /usr/sbin/install | |
2213 | # SunOS /usr/etc/install | |
2214 | # IRIX /sbin/install | |
2215 | # AIX /bin/install | |
2216 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2217 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2218 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2219 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2220 | # OS/2's system install, which has a completely different semantic | |
2221 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 CE |
2222 | # Reject install programs that cannot install multiple files. |
2223 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2224 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d9898ee8 | 2225 | if test -z "$INSTALL"; then |
2226 | if test "${ac_cv_path_install+set}" = set; then | |
8d138742 | 2227 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2228 | else |
2229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2230 | for as_dir in $PATH | |
2231 | do | |
2232 | IFS=$as_save_IFS | |
2233 | test -z "$as_dir" && as_dir=. | |
2234 | # Account for people who put trailing slashes in PATH elements. | |
2235 | case $as_dir/ in | |
2236 | ./ | .// | /cC/* | \ | |
2237 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2238 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2239 | /usr/ucb/* ) ;; | |
2240 | *) | |
2241 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2242 | # Don't use installbsd from OSF since it installs stuff as root | |
2243 | # by default. | |
2244 | for ac_prog in ginstall scoinst install; do | |
2245 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2246 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 | 2247 | if test $ac_prog = install && |
2248 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2249 | # AIX install. It has an incompatible calling convention. | |
2250 | : | |
2251 | elif test $ac_prog = install && | |
2252 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2253 | # program-specific install script used by HP pwplus--don't use. | |
2254 | : | |
2255 | else | |
8d138742 CE |
2256 | rm -rf conftest.one conftest.two conftest.dir |
2257 | echo one > conftest.one | |
2258 | echo two > conftest.two | |
2259 | mkdir conftest.dir | |
2260 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2261 | test -s conftest.one && test -s conftest.two && | |
2262 | test -s conftest.dir/conftest.one && | |
2263 | test -s conftest.dir/conftest.two | |
2264 | then | |
2265 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2266 | break 3 | |
2267 | fi | |
d9898ee8 | 2268 | fi |
2269 | fi | |
2270 | done | |
2271 | done | |
2272 | ;; | |
2273 | esac | |
8d138742 | 2274 | |
d9898ee8 | 2275 | done |
dd184caf | 2276 | IFS=$as_save_IFS |
d9898ee8 | 2277 | |
8d138742 | 2278 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2279 | |
2280 | fi | |
2281 | if test "${ac_cv_path_install+set}" = set; then | |
2282 | INSTALL=$ac_cv_path_install | |
2283 | else | |
dd184caf | 2284 | # As a last resort, use the slow shell script. Don't cache a |
2285 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2286 | # break other packages using the cache if that directory is |
dd184caf | 2287 | # removed, or if the value is a relative name. |
d9898ee8 | 2288 | INSTALL=$ac_install_sh |
2289 | fi | |
2290 | fi | |
8d138742 CE |
2291 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2292 | $as_echo "$INSTALL" >&6; } | |
d9898ee8 | 2293 | |
2294 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2295 | # It thinks the first close brace ends the variable substitution. | |
2296 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2297 | ||
2298 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2299 | ||
2300 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2301 | ||
8d138742 CE |
2302 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2303 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
d9898ee8 | 2304 | # Just in case |
2305 | sleep 1 | |
2306 | echo timestamp > conftest.file | |
8d138742 CE |
2307 | # Reject unsafe characters in $srcdir or the absolute working directory |
2308 | # name. Accept space and tab only in the latter. | |
2309 | am_lf=' | |
2310 | ' | |
2311 | case `pwd` in | |
2312 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2313 | { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 | |
2314 | $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} | |
2315 | { (exit 1); exit 1; }; };; | |
2316 | esac | |
2317 | case $srcdir in | |
2318 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2319 | { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 | |
2320 | $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} | |
2321 | { (exit 1); exit 1; }; };; | |
2322 | esac | |
2323 | ||
d9898ee8 | 2324 | # Do `set' in a subshell so we don't clobber the current shell's |
2325 | # arguments. Must try -L first in case configure is actually a | |
2326 | # symlink; some systems play weird games with the mod time of symlinks | |
2327 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2328 | # directory). | |
2329 | if ( | |
8d138742 | 2330 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
d9898ee8 | 2331 | if test "$*" = "X"; then |
2332 | # -L didn't work. | |
8d138742 | 2333 | set X `ls -t "$srcdir/configure" conftest.file` |
d9898ee8 | 2334 | fi |
2335 | rm -f conftest.file | |
2336 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2337 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2338 | ||
2339 | # If neither matched, then we have a broken ls. This can happen | |
2340 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2341 | # broken ls alias from the environment. This has actually | |
2342 | # happened. Such a system could not be considered "sane". | |
8d138742 | 2343 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
d9898ee8 | 2344 | alias in your environment" >&5 |
8d138742 | 2345 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
d9898ee8 | 2346 | alias in your environment" >&2;} |
2347 | { (exit 1); exit 1; }; } | |
2348 | fi | |
2349 | ||
2350 | test "$2" = conftest.file | |
2351 | ) | |
2352 | then | |
2353 | # Ok. | |
2354 | : | |
2355 | else | |
8d138742 | 2356 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
d9898ee8 | 2357 | Check your system clock" >&5 |
8d138742 | 2358 | $as_echo "$as_me: error: newly created file is older than distributed files! |
d9898ee8 | 2359 | Check your system clock" >&2;} |
2360 | { (exit 1); exit 1; }; } | |
2361 | fi | |
8d138742 CE |
2362 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2363 | $as_echo "yes" >&6; } | |
d9898ee8 | 2364 | test "$program_prefix" != NONE && |
dd184caf | 2365 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2366 | # Use a double $ so make ignores it. |
2367 | test "$program_suffix" != NONE && | |
dd184caf | 2368 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2369 | # Double any \ or $. |
d9898ee8 | 2370 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2371 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2372 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2373 | |
2374 | # expand $ac_aux_dir to an absolute path | |
2375 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2376 | ||
8d138742 CE |
2377 | if test x"${MISSING+set}" != xset; then |
2378 | case $am_aux_dir in | |
2379 | *\ * | *\ *) | |
2380 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2381 | *) | |
2382 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2383 | esac | |
2384 | fi | |
d9898ee8 | 2385 | # Use eval to expand $SHELL |
2386 | if eval "$MISSING --run true"; then | |
2387 | am_missing_run="$MISSING --run " | |
2388 | else | |
2389 | am_missing_run= | |
8d138742 CE |
2390 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2391 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2392 | fi | |
2393 | ||
2394 | if test x"${install_sh}" != xset; then | |
2395 | case $am_aux_dir in | |
2396 | *\ * | *\ *) | |
2397 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2398 | *) | |
2399 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2400 | esac | |
2401 | fi | |
2402 | ||
2403 | # Installed binaries are usually stripped using `strip' when the user | |
2404 | # run `make install-strip'. However `strip' might not be the right | |
2405 | # tool to use in cross-compilation environments, therefore Automake | |
2406 | # will honor the `STRIP' environment variable to overrule this program. | |
2407 | if test "$cross_compiling" != no; then | |
2408 | if test -n "$ac_tool_prefix"; then | |
2409 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2410 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2411 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2412 | $as_echo_n "checking for $ac_word... " >&6; } | |
2413 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2414 | $as_echo_n "(cached) " >&6 | |
2415 | else | |
2416 | if test -n "$STRIP"; then | |
2417 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2418 | else | |
2419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2420 | for as_dir in $PATH | |
2421 | do | |
2422 | IFS=$as_save_IFS | |
2423 | test -z "$as_dir" && as_dir=. | |
2424 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2425 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2426 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2427 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2428 | break 2 | |
2429 | fi | |
2430 | done | |
2431 | done | |
2432 | IFS=$as_save_IFS | |
2433 | ||
2434 | fi | |
2435 | fi | |
2436 | STRIP=$ac_cv_prog_STRIP | |
2437 | if test -n "$STRIP"; then | |
2438 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2439 | $as_echo "$STRIP" >&6; } | |
2440 | else | |
2441 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2442 | $as_echo "no" >&6; } | |
2443 | fi | |
2444 | ||
2445 | ||
2446 | fi | |
2447 | if test -z "$ac_cv_prog_STRIP"; then | |
2448 | ac_ct_STRIP=$STRIP | |
2449 | # Extract the first word of "strip", so it can be a program name with args. | |
2450 | set dummy strip; ac_word=$2 | |
2451 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2452 | $as_echo_n "checking for $ac_word... " >&6; } | |
2453 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2454 | $as_echo_n "(cached) " >&6 | |
2455 | else | |
2456 | if test -n "$ac_ct_STRIP"; then | |
2457 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2458 | else | |
2459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2460 | for as_dir in $PATH | |
2461 | do | |
2462 | IFS=$as_save_IFS | |
2463 | test -z "$as_dir" && as_dir=. | |
2464 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2465 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2466 | ac_cv_prog_ac_ct_STRIP="strip" | |
2467 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2468 | break 2 | |
2469 | fi | |
2470 | done | |
2471 | done | |
2472 | IFS=$as_save_IFS | |
2473 | ||
2474 | fi | |
2475 | fi | |
2476 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2477 | if test -n "$ac_ct_STRIP"; then | |
2478 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2479 | $as_echo "$ac_ct_STRIP" >&6; } | |
2480 | else | |
2481 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2482 | $as_echo "no" >&6; } | |
2483 | fi | |
2484 | ||
2485 | if test "x$ac_ct_STRIP" = x; then | |
2486 | STRIP=":" | |
2487 | else | |
2488 | case $cross_compiling:$ac_tool_warned in | |
2489 | yes:) | |
2490 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2491 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2492 | ac_tool_warned=yes ;; | |
2493 | esac | |
2494 | STRIP=$ac_ct_STRIP | |
2495 | fi | |
2496 | else | |
2497 | STRIP="$ac_cv_prog_STRIP" | |
2498 | fi | |
2499 | ||
d9898ee8 | 2500 | fi |
8d138742 | 2501 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 | 2502 | |
8d138742 CE |
2503 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2504 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
dd184caf | 2505 | if test -z "$MKDIR_P"; then |
2506 | if test "${ac_cv_path_mkdir+set}" = set; then | |
8d138742 | 2507 | $as_echo_n "(cached) " >&6 |
dd184caf | 2508 | else |
2509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2510 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2511 | do | |
2512 | IFS=$as_save_IFS | |
2513 | test -z "$as_dir" && as_dir=. | |
2514 | for ac_prog in mkdir gmkdir; do | |
2515 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2516 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2517 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2518 | 'mkdir (GNU coreutils) '* | \ | |
2519 | 'mkdir (coreutils) '* | \ | |
2520 | 'mkdir (fileutils) '4.1*) | |
2521 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2522 | break 3;; | |
2523 | esac | |
2524 | done | |
2525 | done | |
2526 | done | |
2527 | IFS=$as_save_IFS | |
2528 | ||
2529 | fi | |
2530 | ||
2531 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2532 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2533 | else |
dd184caf | 2534 | # As a last resort, use the slow shell script. Don't cache a |
2535 | # value for MKDIR_P within a source directory, because that will | |
2536 | # break other packages using the cache if that directory is | |
2537 | # removed, or if the value is a relative name. | |
2538 | test -d ./--version && rmdir ./--version | |
2539 | MKDIR_P="$ac_install_sh -d" | |
d9898ee8 | 2540 | fi |
2541 | fi | |
8d138742 CE |
2542 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2543 | $as_echo "$MKDIR_P" >&6; } | |
dd184caf | 2544 | |
2545 | mkdir_p="$MKDIR_P" | |
2546 | case $mkdir_p in | |
2547 | [\\/$]* | ?:[\\/]*) ;; | |
2548 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2549 | esac | |
d9898ee8 | 2550 | |
2551 | for ac_prog in gawk mawk nawk awk | |
2552 | do | |
2553 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2554 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
2555 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2556 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2557 | if test "${ac_cv_prog_AWK+set}" = set; then |
8d138742 | 2558 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2559 | else |
2560 | if test -n "$AWK"; then | |
2561 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2562 | else | |
2563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2564 | for as_dir in $PATH | |
2565 | do | |
2566 | IFS=$as_save_IFS | |
2567 | test -z "$as_dir" && as_dir=. | |
2568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2570 | ac_cv_prog_AWK="$ac_prog" |
8d138742 | 2571 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2572 | break 2 |
2573 | fi | |
2574 | done | |
2575 | done | |
dd184caf | 2576 | IFS=$as_save_IFS |
d9898ee8 | 2577 | |
2578 | fi | |
2579 | fi | |
2580 | AWK=$ac_cv_prog_AWK | |
2581 | if test -n "$AWK"; then | |
8d138742 CE |
2582 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2583 | $as_echo "$AWK" >&6; } | |
d9898ee8 | 2584 | else |
8d138742 CE |
2585 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2586 | $as_echo "no" >&6; } | |
d9898ee8 | 2587 | fi |
2588 | ||
dd184caf | 2589 | |
d9898ee8 | 2590 | test -n "$AWK" && break |
2591 | done | |
2592 | ||
8d138742 CE |
2593 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2594 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2595 | set x ${MAKE-make} | |
2596 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
dd184caf | 2597 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 2598 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2599 | else |
2600 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2601 | SHELL = /bin/sh |
d9898ee8 | 2602 | all: |
dd184caf | 2603 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2604 | _ACEOF |
2605 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
dd184caf | 2606 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2607 | *@@@%%%=?*=@@@%%%*) | |
2608 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2609 | *) | |
2610 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2611 | esac | |
d9898ee8 | 2612 | rm -f conftest.make |
2613 | fi | |
dd184caf | 2614 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
8d138742 CE |
2615 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2616 | $as_echo "yes" >&6; } | |
d9898ee8 | 2617 | SET_MAKE= |
2618 | else | |
8d138742 CE |
2619 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2620 | $as_echo "no" >&6; } | |
d9898ee8 | 2621 | SET_MAKE="MAKE=${MAKE-make}" |
2622 | fi | |
2623 | ||
2624 | rm -rf .tst 2>/dev/null | |
2625 | mkdir .tst 2>/dev/null | |
2626 | if test -d .tst; then | |
2627 | am__leading_dot=. | |
2628 | else | |
2629 | am__leading_dot=_ | |
2630 | fi | |
2631 | rmdir .tst 2>/dev/null | |
2632 | ||
dd184caf | 2633 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2634 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2635 | # is not polluted with repeated "-I." | |
2636 | am__isrc=' -I$(srcdir)' | |
2637 | # test to see if srcdir already configured | |
2638 | if test -f $srcdir/config.status; then | |
8d138742 CE |
2639 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2640 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
d9898ee8 | 2641 | { (exit 1); exit 1; }; } |
dd184caf | 2642 | fi |
d9898ee8 | 2643 | fi |
2644 | ||
2645 | # test whether we have cygpath | |
2646 | if test -z "$CYGPATH_W"; then | |
2647 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2648 | CYGPATH_W='cygpath -w' | |
2649 | else | |
2650 | CYGPATH_W=echo | |
2651 | fi | |
2652 | fi | |
2653 | ||
2654 | ||
2655 | # Define the identity of the package. | |
2656 | PACKAGE='courier-authlib' | |
8d138742 | 2657 | VERSION='0.63.0' |
d9898ee8 | 2658 | |
2659 | ||
2660 | cat >>confdefs.h <<_ACEOF | |
2661 | #define PACKAGE "$PACKAGE" | |
2662 | _ACEOF | |
2663 | ||
2664 | ||
2665 | cat >>confdefs.h <<_ACEOF | |
2666 | #define VERSION "$VERSION" | |
2667 | _ACEOF | |
2668 | ||
2669 | # Some tools Automake needs. | |
2670 | ||
2671 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2672 | ||
2673 | ||
2674 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2675 | ||
2676 | ||
2677 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2678 | ||
2679 | ||
2680 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2681 | ||
2682 | ||
2683 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2684 | ||
8d138742 CE |
2685 | # We need awk for the "check" target. The system "awk" is bad on |
2686 | # some platforms. | |
2687 | # Always define AMTAR for backward compatibility. | |
d9898ee8 | 2688 | |
2689 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2690 | ||
2691 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2692 | ||
2693 | ||
2694 | ||
2695 | ||
2696 | ||
2697 | >confdefs.h # Kill PACKAGE_ macros | |
2698 | ||
2699 | LPATH="$PATH:/usr/local/bin" | |
2700 | ||
2701 | for ac_prog in gawk mawk nawk awk | |
2702 | do | |
2703 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2704 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
2705 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2706 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2707 | if test "${ac_cv_prog_AWK+set}" = set; then |
8d138742 | 2708 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2709 | else |
2710 | if test -n "$AWK"; then | |
2711 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2712 | else | |
2713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2714 | for as_dir in $PATH | |
2715 | do | |
2716 | IFS=$as_save_IFS | |
2717 | test -z "$as_dir" && as_dir=. | |
2718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2719 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2720 | ac_cv_prog_AWK="$ac_prog" |
8d138742 | 2721 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2722 | break 2 |
2723 | fi | |
2724 | done | |
2725 | done | |
dd184caf | 2726 | IFS=$as_save_IFS |
d9898ee8 | 2727 | |
2728 | fi | |
2729 | fi | |
2730 | AWK=$ac_cv_prog_AWK | |
2731 | if test -n "$AWK"; then | |
8d138742 CE |
2732 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2733 | $as_echo "$AWK" >&6; } | |
d9898ee8 | 2734 | else |
8d138742 CE |
2735 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2736 | $as_echo "no" >&6; } | |
d9898ee8 | 2737 | fi |
2738 | ||
dd184caf | 2739 | |
d9898ee8 | 2740 | test -n "$AWK" && break |
2741 | done | |
2742 | ||
2743 | ac_ext=c | |
2744 | ac_cpp='$CPP $CPPFLAGS' | |
2745 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2746 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2747 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2748 | if test -n "$ac_tool_prefix"; then | |
2749 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2750 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
8d138742 CE |
2751 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2752 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2753 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2754 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2755 | else |
2756 | if test -n "$CC"; then | |
2757 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2758 | else | |
2759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2760 | for as_dir in $PATH | |
2761 | do | |
2762 | IFS=$as_save_IFS | |
2763 | test -z "$as_dir" && as_dir=. | |
2764 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2765 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2766 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
8d138742 | 2767 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2768 | break 2 |
2769 | fi | |
2770 | done | |
2771 | done | |
dd184caf | 2772 | IFS=$as_save_IFS |
d9898ee8 | 2773 | |
2774 | fi | |
2775 | fi | |
2776 | CC=$ac_cv_prog_CC | |
2777 | if test -n "$CC"; then | |
8d138742 CE |
2778 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2779 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2780 | else |
8d138742 CE |
2781 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2782 | $as_echo "no" >&6; } | |
d9898ee8 | 2783 | fi |
2784 | ||
dd184caf | 2785 | |
d9898ee8 | 2786 | fi |
2787 | if test -z "$ac_cv_prog_CC"; then | |
2788 | ac_ct_CC=$CC | |
2789 | # Extract the first word of "gcc", so it can be a program name with args. | |
2790 | set dummy gcc; ac_word=$2 | |
8d138742 CE |
2791 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2792 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2793 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
8d138742 | 2794 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2795 | else |
2796 | if test -n "$ac_ct_CC"; then | |
2797 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2798 | else | |
2799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2800 | for as_dir in $PATH | |
2801 | do | |
2802 | IFS=$as_save_IFS | |
2803 | test -z "$as_dir" && as_dir=. | |
2804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2805 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2806 | ac_cv_prog_ac_ct_CC="gcc" |
8d138742 | 2807 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2808 | break 2 |
2809 | fi | |
2810 | done | |
2811 | done | |
dd184caf | 2812 | IFS=$as_save_IFS |
d9898ee8 | 2813 | |
2814 | fi | |
2815 | fi | |
2816 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2817 | if test -n "$ac_ct_CC"; then | |
8d138742 CE |
2818 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2819 | $as_echo "$ac_ct_CC" >&6; } | |
d9898ee8 | 2820 | else |
8d138742 CE |
2821 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2822 | $as_echo "no" >&6; } | |
d9898ee8 | 2823 | fi |
2824 | ||
dd184caf | 2825 | if test "x$ac_ct_CC" = x; then |
2826 | CC="" | |
2827 | else | |
2828 | case $cross_compiling:$ac_tool_warned in | |
2829 | yes:) | |
8d138742 CE |
2830 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2831 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 2832 | ac_tool_warned=yes ;; |
2833 | esac | |
2834 | CC=$ac_ct_CC | |
2835 | fi | |
d9898ee8 | 2836 | else |
2837 | CC="$ac_cv_prog_CC" | |
2838 | fi | |
2839 | ||
2840 | if test -z "$CC"; then | |
dd184caf | 2841 | if test -n "$ac_tool_prefix"; then |
2842 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 2843 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
8d138742 CE |
2844 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2845 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2846 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2847 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2848 | else |
2849 | if test -n "$CC"; then | |
2850 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2851 | else | |
2852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2853 | for as_dir in $PATH | |
2854 | do | |
2855 | IFS=$as_save_IFS | |
2856 | test -z "$as_dir" && as_dir=. | |
2857 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2858 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2859 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
8d138742 | 2860 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2861 | break 2 |
2862 | fi | |
2863 | done | |
2864 | done | |
dd184caf | 2865 | IFS=$as_save_IFS |
d9898ee8 | 2866 | |
2867 | fi | |
2868 | fi | |
2869 | CC=$ac_cv_prog_CC | |
2870 | if test -n "$CC"; then | |
8d138742 CE |
2871 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2872 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2873 | else |
8d138742 CE |
2874 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2875 | $as_echo "no" >&6; } | |
d9898ee8 | 2876 | fi |
2877 | ||
d9898ee8 | 2878 | |
dd184caf | 2879 | fi |
d9898ee8 | 2880 | fi |
2881 | if test -z "$CC"; then | |
2882 | # Extract the first word of "cc", so it can be a program name with args. | |
2883 | set dummy cc; ac_word=$2 | |
8d138742 CE |
2884 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2885 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2886 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2887 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2888 | else |
2889 | if test -n "$CC"; then | |
2890 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2891 | else | |
2892 | ac_prog_rejected=no | |
2893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2894 | for as_dir in $PATH | |
2895 | do | |
2896 | IFS=$as_save_IFS | |
2897 | test -z "$as_dir" && as_dir=. | |
2898 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2899 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2900 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2901 | ac_prog_rejected=yes | |
2902 | continue | |
2903 | fi | |
2904 | ac_cv_prog_CC="cc" | |
8d138742 | 2905 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2906 | break 2 |
2907 | fi | |
2908 | done | |
2909 | done | |
dd184caf | 2910 | IFS=$as_save_IFS |
d9898ee8 | 2911 | |
2912 | if test $ac_prog_rejected = yes; then | |
2913 | # We found a bogon in the path, so make sure we never use it. | |
2914 | set dummy $ac_cv_prog_CC | |
2915 | shift | |
2916 | if test $# != 0; then | |
2917 | # We chose a different compiler from the bogus one. | |
2918 | # However, it has the same basename, so the bogon will be chosen | |
2919 | # first if we set CC to just the basename; use the full file name. | |
2920 | shift | |
2921 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2922 | fi | |
2923 | fi | |
2924 | fi | |
2925 | fi | |
2926 | CC=$ac_cv_prog_CC | |
2927 | if test -n "$CC"; then | |
8d138742 CE |
2928 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2929 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2930 | else |
8d138742 CE |
2931 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2932 | $as_echo "no" >&6; } | |
d9898ee8 | 2933 | fi |
2934 | ||
dd184caf | 2935 | |
d9898ee8 | 2936 | fi |
2937 | if test -z "$CC"; then | |
2938 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 2939 | for ac_prog in cl.exe |
d9898ee8 | 2940 | do |
2941 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2942 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
8d138742 CE |
2943 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2944 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2945 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2946 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2947 | else |
2948 | if test -n "$CC"; then | |
2949 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2950 | else | |
2951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2952 | for as_dir in $PATH | |
2953 | do | |
2954 | IFS=$as_save_IFS | |
2955 | test -z "$as_dir" && as_dir=. | |
2956 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2957 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2958 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
8d138742 | 2959 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2960 | break 2 |
2961 | fi | |
2962 | done | |
2963 | done | |
dd184caf | 2964 | IFS=$as_save_IFS |
d9898ee8 | 2965 | |
2966 | fi | |
2967 | fi | |
2968 | CC=$ac_cv_prog_CC | |
2969 | if test -n "$CC"; then | |
8d138742 CE |
2970 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2971 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2972 | else |
8d138742 CE |
2973 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2974 | $as_echo "no" >&6; } | |
d9898ee8 | 2975 | fi |
2976 | ||
dd184caf | 2977 | |
d9898ee8 | 2978 | test -n "$CC" && break |
2979 | done | |
2980 | fi | |
2981 | if test -z "$CC"; then | |
2982 | ac_ct_CC=$CC | |
dd184caf | 2983 | for ac_prog in cl.exe |
d9898ee8 | 2984 | do |
2985 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2986 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
2987 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2988 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2989 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
8d138742 | 2990 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2991 | else |
2992 | if test -n "$ac_ct_CC"; then | |
2993 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2994 | else | |
2995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2996 | for as_dir in $PATH | |
2997 | do | |
2998 | IFS=$as_save_IFS | |
2999 | test -z "$as_dir" && as_dir=. | |
3000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 3001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 3002 | ac_cv_prog_ac_ct_CC="$ac_prog" |
8d138742 | 3003 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3004 | break 2 |
3005 | fi | |
3006 | done | |
3007 | done | |
dd184caf | 3008 | IFS=$as_save_IFS |
d9898ee8 | 3009 | |
3010 | fi | |
3011 | fi | |
3012 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3013 | if test -n "$ac_ct_CC"; then | |
8d138742 CE |
3014 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3015 | $as_echo "$ac_ct_CC" >&6; } | |
d9898ee8 | 3016 | else |
8d138742 CE |
3017 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3018 | $as_echo "no" >&6; } | |
d9898ee8 | 3019 | fi |
3020 | ||
dd184caf | 3021 | |
d9898ee8 | 3022 | test -n "$ac_ct_CC" && break |
3023 | done | |
3024 | ||
dd184caf | 3025 | if test "x$ac_ct_CC" = x; then |
3026 | CC="" | |
3027 | else | |
3028 | case $cross_compiling:$ac_tool_warned in | |
3029 | yes:) | |
8d138742 CE |
3030 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3031 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 3032 | ac_tool_warned=yes ;; |
3033 | esac | |
3034 | CC=$ac_ct_CC | |
3035 | fi | |
d9898ee8 | 3036 | fi |
3037 | ||
3038 | fi | |
3039 | ||
3040 | ||
8d138742 CE |
3041 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3042 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3043 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
d9898ee8 | 3044 | See \`config.log' for more details." >&5 |
8d138742 | 3045 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
d9898ee8 | 3046 | See \`config.log' for more details." >&2;} |
8d138742 | 3047 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3048 | |
3049 | # Provide some information about the compiler. | |
8d138742 CE |
3050 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
3051 | set X $ac_compile | |
3052 | ac_compiler=$2 | |
dd184caf | 3053 | { (ac_try="$ac_compiler --version >&5" |
3054 | case "(($ac_try" in | |
3055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3056 | *) ac_try_echo=$ac_try;; | |
3057 | esac | |
8d138742 CE |
3058 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3059 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3060 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 | 3061 | ac_status=$? |
8d138742 | 3062 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3063 | (exit $ac_status); } |
dd184caf | 3064 | { (ac_try="$ac_compiler -v >&5" |
3065 | case "(($ac_try" in | |
3066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3067 | *) ac_try_echo=$ac_try;; | |
3068 | esac | |
8d138742 CE |
3069 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3070 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3071 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 | 3072 | ac_status=$? |
8d138742 | 3073 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3074 | (exit $ac_status); } |
dd184caf | 3075 | { (ac_try="$ac_compiler -V >&5" |
3076 | case "(($ac_try" in | |
3077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3078 | *) ac_try_echo=$ac_try;; | |
3079 | esac | |
8d138742 CE |
3080 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3081 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3082 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 | 3083 | ac_status=$? |
8d138742 | 3084 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3085 | (exit $ac_status); } |
3086 | ||
3087 | cat >conftest.$ac_ext <<_ACEOF | |
3088 | /* confdefs.h. */ | |
3089 | _ACEOF | |
3090 | cat confdefs.h >>conftest.$ac_ext | |
3091 | cat >>conftest.$ac_ext <<_ACEOF | |
3092 | /* end confdefs.h. */ | |
3093 | ||
3094 | int | |
3095 | main () | |
3096 | { | |
3097 | ||
3098 | ; | |
3099 | return 0; | |
3100 | } | |
3101 | _ACEOF | |
3102 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 3103 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 3104 | # Try to create an executable without -o first, disregard a.out. |
3105 | # It will help us diagnose broken compilers, and finding out an intuition | |
3106 | # of exeext. | |
8d138742 CE |
3107 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3108 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3109 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3110 | ||
3111 | # The possible output files: | |
3112 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3113 | ||
dd184caf | 3114 | ac_rmfiles= |
3115 | for ac_file in $ac_files | |
3116 | do | |
3117 | case $ac_file in | |
8d138742 | 3118 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 3119 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3120 | esac | |
3121 | done | |
3122 | rm -f $ac_rmfiles | |
3123 | ||
3124 | if { (ac_try="$ac_link_default" | |
3125 | case "(($ac_try" in | |
3126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3127 | *) ac_try_echo=$ac_try;; | |
3128 | esac | |
8d138742 CE |
3129 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3130 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3131 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 3132 | ac_status=$? |
8d138742 | 3133 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3134 | (exit $ac_status); }; then |
dd184caf | 3135 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3136 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3137 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3138 | # so that the user can short-circuit this test for compilers unknown to | |
3139 | # Autoconf. | |
3140 | for ac_file in $ac_files '' | |
d9898ee8 | 3141 | do |
3142 | test -f "$ac_file" || continue | |
3143 | case $ac_file in | |
8d138742 | 3144 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 3145 | ;; |
3146 | [ab].out ) | |
3147 | # We found the default executable, but exeext='' is most | |
3148 | # certainly right. | |
3149 | break;; | |
3150 | *.* ) | |
dd184caf | 3151 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3152 | then :; else | |
3153 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3154 | fi | |
3155 | # We set ac_cv_exeext here because the later test for it is not | |
3156 | # safe: cross compilers may not add the suffix if given an `-o' | |
3157 | # argument, so we may need to know it at that point already. | |
3158 | # Even if this section looks crufty: it has the advantage of | |
3159 | # actually working. | |
d9898ee8 | 3160 | break;; |
3161 | * ) | |
3162 | break;; | |
3163 | esac | |
3164 | done | |
dd184caf | 3165 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3166 | ||
d9898ee8 | 3167 | else |
dd184caf | 3168 | ac_file='' |
3169 | fi | |
3170 | ||
8d138742 CE |
3171 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
3172 | $as_echo "$ac_file" >&6; } | |
dd184caf | 3173 | if test -z "$ac_file"; then |
8d138742 | 3174 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3175 | sed 's/^/| /' conftest.$ac_ext >&5 |
3176 | ||
8d138742 CE |
3177 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3178 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3179 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
d9898ee8 | 3180 | See \`config.log' for more details." >&5 |
8d138742 | 3181 | $as_echo "$as_me: error: C compiler cannot create executables |
d9898ee8 | 3182 | See \`config.log' for more details." >&2;} |
8d138742 | 3183 | { (exit 77); exit 77; }; }; } |
d9898ee8 | 3184 | fi |
3185 | ||
3186 | ac_exeext=$ac_cv_exeext | |
d9898ee8 | 3187 | |
dd184caf | 3188 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 | 3189 | # the compiler is broken, or we cross compile. |
8d138742 CE |
3190 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3191 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
d9898ee8 | 3192 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3193 | # If not cross compiling, check that we can run a simple program. | |
3194 | if test "$cross_compiling" != yes; then | |
3195 | if { ac_try='./$ac_file' | |
dd184caf | 3196 | { (case "(($ac_try" in |
3197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3198 | *) ac_try_echo=$ac_try;; | |
3199 | esac | |
8d138742 CE |
3200 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3201 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3202 | (eval "$ac_try") 2>&5 |
d9898ee8 | 3203 | ac_status=$? |
8d138742 | 3204 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3205 | (exit $ac_status); }; }; then |
3206 | cross_compiling=no | |
3207 | else | |
3208 | if test "$cross_compiling" = maybe; then | |
3209 | cross_compiling=yes | |
3210 | else | |
8d138742 CE |
3211 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3212 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3213 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
d9898ee8 | 3214 | If you meant to cross compile, use \`--host'. |
3215 | See \`config.log' for more details." >&5 | |
8d138742 | 3216 | $as_echo "$as_me: error: cannot run C compiled programs. |
d9898ee8 | 3217 | If you meant to cross compile, use \`--host'. |
3218 | See \`config.log' for more details." >&2;} | |
8d138742 | 3219 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3220 | fi |
3221 | fi | |
3222 | fi | |
8d138742 CE |
3223 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3224 | $as_echo "yes" >&6; } | |
d9898ee8 | 3225 | |
8d138742 | 3226 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d9898ee8 | 3227 | ac_clean_files=$ac_clean_files_save |
dd184caf | 3228 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 | 3229 | # the compiler is broken, or we cross compile. |
8d138742 CE |
3230 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3231 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3232 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3233 | $as_echo "$cross_compiling" >&6; } | |
dd184caf | 3234 | |
8d138742 CE |
3235 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3236 | $as_echo_n "checking for suffix of executables... " >&6; } | |
dd184caf | 3237 | if { (ac_try="$ac_link" |
3238 | case "(($ac_try" in | |
3239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3240 | *) ac_try_echo=$ac_try;; | |
3241 | esac | |
8d138742 CE |
3242 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3243 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3244 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3245 | ac_status=$? |
8d138742 | 3246 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3247 | (exit $ac_status); }; then |
3248 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3249 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3250 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3251 | # `rm'. | |
3252 | for ac_file in conftest.exe conftest conftest.*; do | |
3253 | test -f "$ac_file" || continue | |
3254 | case $ac_file in | |
8d138742 | 3255 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3256 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3257 | break;; |
3258 | * ) break;; | |
3259 | esac | |
3260 | done | |
3261 | else | |
8d138742 CE |
3262 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3263 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3264 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
d9898ee8 | 3265 | See \`config.log' for more details." >&5 |
8d138742 | 3266 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
d9898ee8 | 3267 | See \`config.log' for more details." >&2;} |
8d138742 | 3268 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3269 | fi |
3270 | ||
3271 | rm -f conftest$ac_cv_exeext | |
8d138742 CE |
3272 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3273 | $as_echo "$ac_cv_exeext" >&6; } | |
d9898ee8 | 3274 | |
3275 | rm -f conftest.$ac_ext | |
3276 | EXEEXT=$ac_cv_exeext | |
3277 | ac_exeext=$EXEEXT | |
8d138742 CE |
3278 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3279 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d9898ee8 | 3280 | if test "${ac_cv_objext+set}" = set; then |
8d138742 | 3281 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3282 | else |
3283 | cat >conftest.$ac_ext <<_ACEOF | |
3284 | /* confdefs.h. */ | |
3285 | _ACEOF | |
3286 | cat confdefs.h >>conftest.$ac_ext | |
3287 | cat >>conftest.$ac_ext <<_ACEOF | |
3288 | /* end confdefs.h. */ | |
3289 | ||
3290 | int | |
3291 | main () | |
3292 | { | |
3293 | ||
3294 | ; | |
3295 | return 0; | |
3296 | } | |
3297 | _ACEOF | |
3298 | rm -f conftest.o conftest.obj | |
dd184caf | 3299 | if { (ac_try="$ac_compile" |
3300 | case "(($ac_try" in | |
3301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3302 | *) ac_try_echo=$ac_try;; | |
3303 | esac | |
8d138742 CE |
3304 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3305 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3306 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3307 | ac_status=$? |
8d138742 | 3308 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3309 | (exit $ac_status); }; then |
dd184caf | 3310 | for ac_file in conftest.o conftest.obj conftest.*; do |
3311 | test -f "$ac_file" || continue; | |
d9898ee8 | 3312 | case $ac_file in |
8d138742 | 3313 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3314 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3315 | break;; | |
3316 | esac | |
3317 | done | |
3318 | else | |
8d138742 | 3319 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3320 | sed 's/^/| /' conftest.$ac_ext >&5 |
3321 | ||
8d138742 CE |
3322 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3323 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3324 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
d9898ee8 | 3325 | See \`config.log' for more details." >&5 |
8d138742 | 3326 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
d9898ee8 | 3327 | See \`config.log' for more details." >&2;} |
8d138742 | 3328 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3329 | fi |
3330 | ||
3331 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3332 | fi | |
8d138742 CE |
3333 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3334 | $as_echo "$ac_cv_objext" >&6; } | |
d9898ee8 | 3335 | OBJEXT=$ac_cv_objext |
3336 | ac_objext=$OBJEXT | |
8d138742 CE |
3337 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3338 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d9898ee8 | 3339 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
8d138742 | 3340 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3341 | else |
3342 | cat >conftest.$ac_ext <<_ACEOF | |
3343 | /* confdefs.h. */ | |
3344 | _ACEOF | |
3345 | cat confdefs.h >>conftest.$ac_ext | |
3346 | cat >>conftest.$ac_ext <<_ACEOF | |
3347 | /* end confdefs.h. */ | |
3348 | ||
3349 | int | |
3350 | main () | |
3351 | { | |
3352 | #ifndef __GNUC__ | |
3353 | choke me | |
3354 | #endif | |
3355 | ||
3356 | ; | |
3357 | return 0; | |
3358 | } | |
3359 | _ACEOF | |
3360 | rm -f conftest.$ac_objext | |
dd184caf | 3361 | if { (ac_try="$ac_compile" |
3362 | case "(($ac_try" in | |
3363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3364 | *) ac_try_echo=$ac_try;; | |
3365 | esac | |
8d138742 CE |
3366 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3367 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3368 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3369 | ac_status=$? |
3370 | grep -v '^ *+' conftest.er1 >conftest.err | |
3371 | rm -f conftest.er1 | |
3372 | cat conftest.err >&5 | |
8d138742 | 3373 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3374 | (exit $ac_status); } && { |
3375 | test -z "$ac_c_werror_flag" || | |
3376 | test ! -s conftest.err | |
3377 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 3378 | ac_compiler_gnu=yes |
3379 | else | |
8d138742 | 3380 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3381 | sed 's/^/| /' conftest.$ac_ext >&5 |
3382 | ||
dd184caf | 3383 | ac_compiler_gnu=no |
d9898ee8 | 3384 | fi |
dd184caf | 3385 | |
3386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 3387 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3388 | ||
3389 | fi | |
8d138742 CE |
3390 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3391 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3392 | if test $ac_compiler_gnu = yes; then | |
3393 | GCC=yes | |
3394 | else | |
3395 | GCC= | |
3396 | fi | |
d9898ee8 | 3397 | ac_test_CFLAGS=${CFLAGS+set} |
3398 | ac_save_CFLAGS=$CFLAGS | |
8d138742 CE |
3399 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3400 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d9898ee8 | 3401 | if test "${ac_cv_prog_cc_g+set}" = set; then |
8d138742 | 3402 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3403 | else |
dd184caf | 3404 | ac_save_c_werror_flag=$ac_c_werror_flag |
3405 | ac_c_werror_flag=yes | |
3406 | ac_cv_prog_cc_g=no | |
3407 | CFLAGS="-g" | |
3408 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 3409 | /* confdefs.h. */ |
3410 | _ACEOF | |
3411 | cat confdefs.h >>conftest.$ac_ext | |
3412 | cat >>conftest.$ac_ext <<_ACEOF | |
3413 | /* end confdefs.h. */ | |
3414 | ||
3415 | int | |
3416 | main () | |
3417 | { | |
3418 | ||
3419 | ; | |
3420 | return 0; | |
3421 | } | |
3422 | _ACEOF | |
3423 | rm -f conftest.$ac_objext | |
dd184caf | 3424 | if { (ac_try="$ac_compile" |
3425 | case "(($ac_try" in | |
3426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3427 | *) ac_try_echo=$ac_try;; | |
3428 | esac | |
8d138742 CE |
3429 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3430 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3431 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3432 | ac_status=$? |
3433 | grep -v '^ *+' conftest.er1 >conftest.err | |
3434 | rm -f conftest.er1 | |
3435 | cat conftest.err >&5 | |
8d138742 | 3436 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3437 | (exit $ac_status); } && { |
3438 | test -z "$ac_c_werror_flag" || | |
3439 | test ! -s conftest.err | |
3440 | } && test -s conftest.$ac_objext; then | |
3441 | ac_cv_prog_cc_g=yes | |
3442 | else | |
8d138742 | 3443 | $as_echo "$as_me: failed program was:" >&5 |
dd184caf | 3444 | sed 's/^/| /' conftest.$ac_ext >&5 |
3445 | ||
3446 | CFLAGS="" | |
3447 | cat >conftest.$ac_ext <<_ACEOF | |
3448 | /* confdefs.h. */ | |
3449 | _ACEOF | |
3450 | cat confdefs.h >>conftest.$ac_ext | |
3451 | cat >>conftest.$ac_ext <<_ACEOF | |
3452 | /* end confdefs.h. */ | |
3453 | ||
3454 | int | |
3455 | main () | |
3456 | { | |
3457 | ||
3458 | ; | |
3459 | return 0; | |
3460 | } | |
3461 | _ACEOF | |
3462 | rm -f conftest.$ac_objext | |
3463 | if { (ac_try="$ac_compile" | |
3464 | case "(($ac_try" in | |
3465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3466 | *) ac_try_echo=$ac_try;; | |
3467 | esac | |
8d138742 CE |
3468 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3469 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3470 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3471 | ac_status=$? |
dd184caf | 3472 | grep -v '^ *+' conftest.er1 >conftest.err |
3473 | rm -f conftest.er1 | |
3474 | cat conftest.err >&5 | |
8d138742 | 3475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3476 | (exit $ac_status); } && { |
3477 | test -z "$ac_c_werror_flag" || | |
3478 | test ! -s conftest.err | |
3479 | } && test -s conftest.$ac_objext; then | |
3480 | : | |
3481 | else | |
8d138742 | 3482 | $as_echo "$as_me: failed program was:" >&5 |
dd184caf | 3483 | sed 's/^/| /' conftest.$ac_ext >&5 |
3484 | ||
3485 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3486 | CFLAGS="-g" | |
3487 | cat >conftest.$ac_ext <<_ACEOF | |
3488 | /* confdefs.h. */ | |
3489 | _ACEOF | |
3490 | cat confdefs.h >>conftest.$ac_ext | |
3491 | cat >>conftest.$ac_ext <<_ACEOF | |
3492 | /* end confdefs.h. */ | |
3493 | ||
3494 | int | |
3495 | main () | |
3496 | { | |
3497 | ||
3498 | ; | |
3499 | return 0; | |
3500 | } | |
3501 | _ACEOF | |
3502 | rm -f conftest.$ac_objext | |
3503 | if { (ac_try="$ac_compile" | |
3504 | case "(($ac_try" in | |
3505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3506 | *) ac_try_echo=$ac_try;; | |
3507 | esac | |
8d138742 CE |
3508 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3509 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3510 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3511 | ac_status=$? |
dd184caf | 3512 | grep -v '^ *+' conftest.er1 >conftest.err |
3513 | rm -f conftest.er1 | |
3514 | cat conftest.err >&5 | |
8d138742 | 3515 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3516 | (exit $ac_status); } && { |
3517 | test -z "$ac_c_werror_flag" || | |
3518 | test ! -s conftest.err | |
3519 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 3520 | ac_cv_prog_cc_g=yes |
3521 | else | |
8d138742 | 3522 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3523 | sed 's/^/| /' conftest.$ac_ext >&5 |
3524 | ||
dd184caf | 3525 | |
d9898ee8 | 3526 | fi |
dd184caf | 3527 | |
3528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3529 | fi | |
3530 | ||
3531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3532 | fi | |
3533 | ||
3534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3535 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3536 | fi |
8d138742 CE |
3537 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3538 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
d9898ee8 | 3539 | if test "$ac_test_CFLAGS" = set; then |
3540 | CFLAGS=$ac_save_CFLAGS | |
3541 | elif test $ac_cv_prog_cc_g = yes; then | |
3542 | if test "$GCC" = yes; then | |
3543 | CFLAGS="-g -O2" | |
3544 | else | |
3545 | CFLAGS="-g" | |
3546 | fi | |
3547 | else | |
3548 | if test "$GCC" = yes; then | |
3549 | CFLAGS="-O2" | |
3550 | else | |
3551 | CFLAGS= | |
3552 | fi | |
3553 | fi | |
8d138742 CE |
3554 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3555 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
dd184caf | 3556 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
8d138742 | 3557 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3558 | else |
dd184caf | 3559 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3560 | ac_save_CC=$CC |
3561 | cat >conftest.$ac_ext <<_ACEOF | |
3562 | /* confdefs.h. */ | |
3563 | _ACEOF | |
3564 | cat confdefs.h >>conftest.$ac_ext | |
3565 | cat >>conftest.$ac_ext <<_ACEOF | |
3566 | /* end confdefs.h. */ | |
3567 | #include <stdarg.h> | |
3568 | #include <stdio.h> | |
3569 | #include <sys/types.h> | |
3570 | #include <sys/stat.h> | |
3571 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3572 | struct buf { int x; }; | |
3573 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3574 | static char *e (p, i) | |
3575 | char **p; | |
3576 | int i; | |
3577 | { | |
3578 | return p[i]; | |
3579 | } | |
3580 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3581 | { | |
3582 | char *s; | |
3583 | va_list v; | |
3584 | va_start (v,p); | |
3585 | s = g (p, va_arg (v,int)); | |
3586 | va_end (v); | |
3587 | return s; | |
3588 | } | |
3589 | ||
3590 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3591 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3592 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3593 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3594 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3595 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3596 | that's true only with -std. */ |
d9898ee8 | 3597 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3598 | ||
dd184caf | 3599 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3600 | inside strings and character constants. */ | |
3601 | #define FOO(x) 'x' | |
3602 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3603 | ||
d9898ee8 | 3604 | int test (int i, double x); |
3605 | struct s1 {int (*f) (int a);}; | |
3606 | struct s2 {int (*f) (double a);}; | |
3607 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3608 | int argc; | |
3609 | char **argv; | |
3610 | int | |
3611 | main () | |
3612 | { | |
3613 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3614 | ; | |
3615 | return 0; | |
3616 | } | |
3617 | _ACEOF | |
dd184caf | 3618 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3619 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3620 | do |
3621 | CC="$ac_save_CC $ac_arg" | |
3622 | rm -f conftest.$ac_objext | |
dd184caf | 3623 | if { (ac_try="$ac_compile" |
3624 | case "(($ac_try" in | |
3625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3626 | *) ac_try_echo=$ac_try;; | |
3627 | esac | |
8d138742 CE |
3628 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3629 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3630 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3631 | ac_status=$? |
3632 | grep -v '^ *+' conftest.er1 >conftest.err | |
3633 | rm -f conftest.er1 | |
3634 | cat conftest.err >&5 | |
8d138742 | 3635 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3636 | (exit $ac_status); } && { |
3637 | test -z "$ac_c_werror_flag" || | |
3638 | test ! -s conftest.err | |
3639 | } && test -s conftest.$ac_objext; then | |
3640 | ac_cv_prog_cc_c89=$ac_arg | |
d9898ee8 | 3641 | else |
8d138742 | 3642 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3643 | sed 's/^/| /' conftest.$ac_ext >&5 |
3644 | ||
dd184caf | 3645 | |
d9898ee8 | 3646 | fi |
dd184caf | 3647 | |
3648 | rm -f core conftest.err conftest.$ac_objext | |
3649 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3650 | done |
dd184caf | 3651 | rm -f conftest.$ac_ext |
d9898ee8 | 3652 | CC=$ac_save_CC |
3653 | ||
3654 | fi | |
dd184caf | 3655 | # AC_CACHE_VAL |
3656 | case "x$ac_cv_prog_cc_c89" in | |
3657 | x) | |
8d138742 CE |
3658 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3659 | $as_echo "none needed" >&6; } ;; | |
dd184caf | 3660 | xno) |
8d138742 CE |
3661 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3662 | $as_echo "unsupported" >&6; } ;; | |
d9898ee8 | 3663 | *) |
dd184caf | 3664 | CC="$CC $ac_cv_prog_cc_c89" |
8d138742 CE |
3665 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3666 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d9898ee8 | 3667 | esac |
3668 | ||
d9898ee8 | 3669 | |
d9898ee8 | 3670 | ac_ext=c |
3671 | ac_cpp='$CPP $CPPFLAGS' | |
3672 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3673 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3674 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3675 | DEPDIR="${am__leading_dot}deps" | |
3676 | ||
dd184caf | 3677 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 | 3678 | |
3679 | ||
3680 | am_make=${MAKE-make} | |
3681 | cat > confinc << 'END' | |
3682 | am__doit: | |
8d138742 | 3683 | @echo this is the am__doit target |
d9898ee8 | 3684 | .PHONY: am__doit |
3685 | END | |
3686 | # If we don't find an include directive, just comment out the code. | |
8d138742 CE |
3687 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3688 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
d9898ee8 | 3689 | am__include="#" |
3690 | am__quote= | |
3691 | _am_result=none | |
3692 | # First try GNU make style include. | |
3693 | echo "include confinc" > confmf | |
8d138742 CE |
3694 | # Ignore all kinds of additional output from `make'. |
3695 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3696 | *the\ am__doit\ target*) | |
3697 | am__include=include | |
3698 | am__quote= | |
3699 | _am_result=GNU | |
3700 | ;; | |
3701 | esac | |
d9898ee8 | 3702 | # Now try BSD make style include. |
3703 | if test "$am__include" = "#"; then | |
3704 | echo '.include "confinc"' > confmf | |
8d138742 CE |
3705 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3706 | *the\ am__doit\ target*) | |
3707 | am__include=.include | |
3708 | am__quote="\"" | |
3709 | _am_result=BSD | |
3710 | ;; | |
3711 | esac | |
d9898ee8 | 3712 | fi |
3713 | ||
3714 | ||
8d138742 CE |
3715 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
3716 | $as_echo "$_am_result" >&6; } | |
d9898ee8 | 3717 | rm -f confinc confmf |
3718 | ||
dd184caf | 3719 | # Check whether --enable-dependency-tracking was given. |
d9898ee8 | 3720 | if test "${enable_dependency_tracking+set}" = set; then |
dd184caf | 3721 | enableval=$enable_dependency_tracking; |
3722 | fi | |
d9898ee8 | 3723 | |
d9898ee8 | 3724 | if test "x$enable_dependency_tracking" != xno; then |
3725 | am_depcomp="$ac_aux_dir/depcomp" | |
3726 | AMDEPBACKSLASH='\' | |
3727 | fi | |
dd184caf | 3728 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 | 3729 | AMDEP_TRUE= |
3730 | AMDEP_FALSE='#' | |
3731 | else | |
3732 | AMDEP_TRUE='#' | |
3733 | AMDEP_FALSE= | |
3734 | fi | |
3735 | ||
3736 | ||
3737 | ||
d9898ee8 | 3738 | depcc="$CC" am_compiler_list= |
3739 | ||
8d138742 CE |
3740 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3741 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
d9898ee8 | 3742 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
8d138742 | 3743 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3744 | else |
3745 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3746 | # We make a subdir and do the tests there. Otherwise we can end up | |
3747 | # making bogus files that we don't know about and never remove. For | |
3748 | # instance it was reported that on HP-UX the gcc test will end up | |
3749 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3750 | # in D'. | |
3751 | mkdir conftest.dir | |
3752 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3753 | # using a relative directory. | |
3754 | cp "$am_depcomp" conftest.dir | |
3755 | cd conftest.dir | |
3756 | # We will build objects and dependencies in a subdirectory because | |
3757 | # it helps to detect inapplicable dependency modes. For instance | |
3758 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3759 | # side effect of compilation, but ICC will put the dependencies in | |
3760 | # the current directory while Tru64 will put them in the object | |
3761 | # directory. | |
3762 | mkdir sub | |
3763 | ||
3764 | am_cv_CC_dependencies_compiler_type=none | |
3765 | if test "$am_compiler_list" = ""; then | |
3766 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3767 | fi | |
8d138742 CE |
3768 | am__universal=false |
3769 | case " $depcc " in #( | |
3770 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3771 | esac | |
3772 | ||
d9898ee8 | 3773 | for depmode in $am_compiler_list; do |
3774 | # Setup a source with many dependencies, because some compilers | |
3775 | # like to wrap large dependency lists on column 80 (with \), and | |
3776 | # we should not choose a depcomp mode which is confused by this. | |
3777 | # | |
3778 | # We need to recreate these files for each test, as the compiler may | |
3779 | # overwrite some of them when testing with obscure command lines. | |
3780 | # This happens at least with the AIX C compiler. | |
3781 | : > sub/conftest.c | |
3782 | for i in 1 2 3 4 5 6; do | |
3783 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3784 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3785 | # Solaris 8's {/usr,}/bin/sh. | |
3786 | touch sub/conftst$i.h | |
3787 | done | |
3788 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3789 | ||
8d138742 CE |
3790 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3791 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3792 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3793 | # versions had trouble with output in subdirs | |
3794 | am__obj=sub/conftest.${OBJEXT-o} | |
3795 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 3796 | case $depmode in |
8d138742 CE |
3797 | gcc) |
3798 | # This depmode causes a compiler race in universal mode. | |
3799 | test "$am__universal" = false || continue | |
3800 | ;; | |
d9898ee8 | 3801 | nosideeffect) |
3802 | # after this tag, mechanisms are not by side-effect, so they'll | |
3803 | # only be used when explicitly requested | |
3804 | if test "x$enable_dependency_tracking" = xyes; then | |
3805 | continue | |
3806 | else | |
3807 | break | |
3808 | fi | |
3809 | ;; | |
8d138742 CE |
3810 | msvisualcpp | msvcmsys) |
3811 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3812 | # not run yet. These depmodes are late enough in the game, and | |
3813 | # so weak that their functioning should not be impacted. | |
3814 | am__obj=conftest.${OBJEXT-o} | |
3815 | am__minus_obj= | |
3816 | ;; | |
d9898ee8 | 3817 | none) break ;; |
3818 | esac | |
d9898ee8 | 3819 | if depmode=$depmode \ |
8d138742 | 3820 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 3821 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 3822 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 3823 | >/dev/null 2>conftest.err && |
dd184caf | 3824 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3825 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 3826 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3827 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3828 | # icc doesn't choke on unknown options, it will just issue warnings | |
3829 | # or remarks (even with -Werror). So we grep stderr for any message | |
3830 | # that says an option was ignored or not supported. | |
3831 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3832 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3833 | # The diagnosis changed in icc 8.0: | |
3834 | # icc: Command line remark: option '-MP' not supported | |
3835 | if (grep 'ignoring option' conftest.err || | |
3836 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3837 | am_cv_CC_dependencies_compiler_type=$depmode | |
3838 | break | |
3839 | fi | |
3840 | fi | |
3841 | done | |
3842 | ||
3843 | cd .. | |
3844 | rm -rf conftest.dir | |
3845 | else | |
3846 | am_cv_CC_dependencies_compiler_type=none | |
3847 | fi | |
3848 | ||
3849 | fi | |
8d138742 CE |
3850 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3851 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
d9898ee8 | 3852 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3853 | ||
dd184caf | 3854 | if |
d9898ee8 | 3855 | test "x$enable_dependency_tracking" != xno \ |
3856 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3857 | am__fastdepCC_TRUE= | |
3858 | am__fastdepCC_FALSE='#' | |
3859 | else | |
3860 | am__fastdepCC_TRUE='#' | |
3861 | am__fastdepCC_FALSE= | |
3862 | fi | |
3863 | ||
3864 | ||
3865 | ac_ext=c | |
3866 | ac_cpp='$CPP $CPPFLAGS' | |
3867 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3868 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3869 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8d138742 CE |
3870 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3871 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d9898ee8 | 3872 | # On Suns, sometimes $CPP names a directory. |
3873 | if test -n "$CPP" && test -d "$CPP"; then | |
3874 | CPP= | |
3875 | fi | |
3876 | if test -z "$CPP"; then | |
3877 | if test "${ac_cv_prog_CPP+set}" = set; then | |
8d138742 | 3878 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3879 | else |
3880 | # Double quotes because CPP needs to be expanded | |
3881 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3882 | do | |
3883 | ac_preproc_ok=false | |
3884 | for ac_c_preproc_warn_flag in '' yes | |
3885 | do | |
3886 | # Use a header file that comes with gcc, so configuring glibc | |
3887 | # with a fresh cross-compiler works. | |
3888 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3889 | # <limits.h> exists even on freestanding compilers. | |
3890 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3891 | # not just through cpp. "Syntax error" is here to catch this case. | |
3892 | cat >conftest.$ac_ext <<_ACEOF | |
3893 | /* confdefs.h. */ | |
3894 | _ACEOF | |
3895 | cat confdefs.h >>conftest.$ac_ext | |
3896 | cat >>conftest.$ac_ext <<_ACEOF | |
3897 | /* end confdefs.h. */ | |
3898 | #ifdef __STDC__ | |
3899 | # include <limits.h> | |
3900 | #else | |
3901 | # include <assert.h> | |
3902 | #endif | |
3903 | Syntax error | |
3904 | _ACEOF | |
dd184caf | 3905 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3906 | case "(($ac_try" in | |
3907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3908 | *) ac_try_echo=$ac_try;; | |
3909 | esac | |
8d138742 CE |
3910 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3911 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3912 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 3913 | ac_status=$? |
3914 | grep -v '^ *+' conftest.er1 >conftest.err | |
3915 | rm -f conftest.er1 | |
3916 | cat conftest.err >&5 | |
8d138742 | 3917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3918 | (exit $ac_status); } >/dev/null && { |
3919 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3920 | test ! -s conftest.err | |
3921 | }; then | |
d9898ee8 | 3922 | : |
3923 | else | |
8d138742 | 3924 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3925 | sed 's/^/| /' conftest.$ac_ext >&5 |
3926 | ||
3927 | # Broken: fails on valid input. | |
3928 | continue | |
3929 | fi | |
dd184caf | 3930 | |
d9898ee8 | 3931 | rm -f conftest.err conftest.$ac_ext |
3932 | ||
dd184caf | 3933 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 | 3934 | # can be detected and how. |
3935 | cat >conftest.$ac_ext <<_ACEOF | |
3936 | /* confdefs.h. */ | |
3937 | _ACEOF | |
3938 | cat confdefs.h >>conftest.$ac_ext | |
3939 | cat >>conftest.$ac_ext <<_ACEOF | |
3940 | /* end confdefs.h. */ | |
3941 | #include <ac_nonexistent.h> | |
3942 | _ACEOF | |
dd184caf | 3943 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3944 | case "(($ac_try" in | |
3945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3946 | *) ac_try_echo=$ac_try;; | |
3947 | esac | |
8d138742 CE |
3948 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3949 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3950 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 3951 | ac_status=$? |
3952 | grep -v '^ *+' conftest.er1 >conftest.err | |
3953 | rm -f conftest.er1 | |
3954 | cat conftest.err >&5 | |
8d138742 | 3955 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3956 | (exit $ac_status); } >/dev/null && { |
3957 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3958 | test ! -s conftest.err | |
3959 | }; then | |
d9898ee8 | 3960 | # Broken: success on invalid input. |
3961 | continue | |
3962 | else | |
8d138742 | 3963 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3964 | sed 's/^/| /' conftest.$ac_ext >&5 |
3965 | ||
3966 | # Passes both tests. | |
3967 | ac_preproc_ok=: | |
3968 | break | |
3969 | fi | |
dd184caf | 3970 | |
d9898ee8 | 3971 | rm -f conftest.err conftest.$ac_ext |
3972 | ||
3973 | done | |
3974 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3975 | rm -f conftest.err conftest.$ac_ext | |
3976 | if $ac_preproc_ok; then | |
3977 | break | |
3978 | fi | |
3979 | ||
3980 | done | |
3981 | ac_cv_prog_CPP=$CPP | |
3982 | ||
3983 | fi | |
3984 | CPP=$ac_cv_prog_CPP | |
3985 | else | |
3986 | ac_cv_prog_CPP=$CPP | |
3987 | fi | |
8d138742 CE |
3988 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3989 | $as_echo "$CPP" >&6; } | |
d9898ee8 | 3990 | ac_preproc_ok=false |
3991 | for ac_c_preproc_warn_flag in '' yes | |
3992 | do | |
3993 | # Use a header file that comes with gcc, so configuring glibc | |
3994 | # with a fresh cross-compiler works. | |
3995 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3996 | # <limits.h> exists even on freestanding compilers. | |
3997 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3998 | # not just through cpp. "Syntax error" is here to catch this case. | |
3999 | cat >conftest.$ac_ext <<_ACEOF | |
4000 | /* confdefs.h. */ | |
4001 | _ACEOF | |
4002 | cat confdefs.h >>conftest.$ac_ext | |
4003 | cat >>conftest.$ac_ext <<_ACEOF | |
4004 | /* end confdefs.h. */ | |
4005 | #ifdef __STDC__ | |
4006 | # include <limits.h> | |
4007 | #else | |
4008 | # include <assert.h> | |
4009 | #endif | |
4010 | Syntax error | |
4011 | _ACEOF | |
dd184caf | 4012 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4013 | case "(($ac_try" in | |
4014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4015 | *) ac_try_echo=$ac_try;; | |
4016 | esac | |
8d138742 CE |
4017 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4018 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 4019 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 4020 | ac_status=$? |
4021 | grep -v '^ *+' conftest.er1 >conftest.err | |
4022 | rm -f conftest.er1 | |
4023 | cat conftest.err >&5 | |
8d138742 | 4024 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 4025 | (exit $ac_status); } >/dev/null && { |
4026 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4027 | test ! -s conftest.err | |
4028 | }; then | |
d9898ee8 | 4029 | : |
4030 | else | |
8d138742 | 4031 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 4032 | sed 's/^/| /' conftest.$ac_ext >&5 |
4033 | ||
4034 | # Broken: fails on valid input. | |
4035 | continue | |
4036 | fi | |
dd184caf | 4037 | |
d9898ee8 | 4038 | rm -f conftest.err conftest.$ac_ext |
4039 | ||
dd184caf | 4040 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 | 4041 | # can be detected and how. |
4042 | cat >conftest.$ac_ext <<_ACEOF | |
4043 | /* confdefs.h. */ | |
4044 | _ACEOF | |
4045 | cat confdefs.h >>conftest.$ac_ext | |
4046 | cat >>conftest.$ac_ext <<_ACEOF | |
4047 | /* end confdefs.h. */ | |
4048 | #include <ac_nonexistent.h> | |
4049 | _ACEOF | |
dd184caf | 4050 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4051 | case "(($ac_try" in | |
4052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4053 | *) ac_try_echo=$ac_try;; | |
4054 | esac | |
8d138742 CE |
4055 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4056 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 4057 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 4058 | ac_status=$? |
4059 | grep -v '^ *+' conftest.er1 >conftest.err | |
4060 | rm -f conftest.er1 | |
4061 | cat conftest.err >&5 | |
8d138742 | 4062 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 4063 | (exit $ac_status); } >/dev/null && { |
4064 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4065 | test ! -s conftest.err | |
4066 | }; then | |
d9898ee8 | 4067 | # Broken: success on invalid input. |
4068 | continue | |
4069 | else | |
8d138742 | 4070 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 4071 | sed 's/^/| /' conftest.$ac_ext >&5 |
4072 | ||
4073 | # Passes both tests. | |
4074 | ac_preproc_ok=: | |
4075 | break | |
4076 | fi | |
dd184caf | 4077 | |
d9898ee8 | 4078 | rm -f conftest.err conftest.$ac_ext |
4079 | ||
4080 | done | |
4081 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4082 | rm -f conftest.err conftest.$ac_ext | |
4083 | if $ac_preproc_ok; then | |
4084 | : | |
4085 | else | |
8d138742 CE |
4086 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
4087 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4088 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d9898ee8 | 4089 | See \`config.log' for more details." >&5 |
8d138742 | 4090 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d9898ee8 | 4091 | See \`config.log' for more details." >&2;} |
8d138742 | 4092 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 4093 | fi |
4094 | ||
4095 | ac_ext=c | |
4096 | ac_cpp='$CPP $CPPFLAGS' | |
4097 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4098 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4099 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4100 | ||
4101 | # Find a good install program. We prefer a C program (faster), | |
4102 | # so one script is as good as another. But avoid the broken or | |
4103 | # incompatible versions: | |
4104 | # SysV /etc/install, /usr/sbin/install | |
4105 | # SunOS /usr/etc/install | |
4106 | # IRIX /sbin/install | |
4107 | # AIX /bin/install | |
4108 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4109 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4110 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4111 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4112 | # OS/2's system install, which has a completely different semantic | |
4113 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 CE |
4114 | # Reject install programs that cannot install multiple files. |
4115 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
4116 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d9898ee8 | 4117 | if test -z "$INSTALL"; then |
4118 | if test "${ac_cv_path_install+set}" = set; then | |
8d138742 | 4119 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4120 | else |
4121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4122 | for as_dir in $PATH | |
4123 | do | |
4124 | IFS=$as_save_IFS | |
4125 | test -z "$as_dir" && as_dir=. | |
4126 | # Account for people who put trailing slashes in PATH elements. | |
4127 | case $as_dir/ in | |
4128 | ./ | .// | /cC/* | \ | |
4129 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4130 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4131 | /usr/ucb/* ) ;; | |
4132 | *) | |
4133 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4134 | # Don't use installbsd from OSF since it installs stuff as root | |
4135 | # by default. | |
4136 | for ac_prog in ginstall scoinst install; do | |
4137 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 4138 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 | 4139 | if test $ac_prog = install && |
4140 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4141 | # AIX install. It has an incompatible calling convention. | |
4142 | : | |
4143 | elif test $ac_prog = install && | |
4144 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4145 | # program-specific install script used by HP pwplus--don't use. | |
4146 | : | |
4147 | else | |
8d138742 CE |
4148 | rm -rf conftest.one conftest.two conftest.dir |
4149 | echo one > conftest.one | |
4150 | echo two > conftest.two | |
4151 | mkdir conftest.dir | |
4152 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4153 | test -s conftest.one && test -s conftest.two && | |
4154 | test -s conftest.dir/conftest.one && | |
4155 | test -s conftest.dir/conftest.two | |
4156 | then | |
4157 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4158 | break 3 | |
4159 | fi | |
d9898ee8 | 4160 | fi |
4161 | fi | |
4162 | done | |
4163 | done | |
4164 | ;; | |
4165 | esac | |
8d138742 | 4166 | |
d9898ee8 | 4167 | done |
dd184caf | 4168 | IFS=$as_save_IFS |
d9898ee8 | 4169 | |
8d138742 | 4170 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 4171 | |
4172 | fi | |
4173 | if test "${ac_cv_path_install+set}" = set; then | |
4174 | INSTALL=$ac_cv_path_install | |
4175 | else | |
dd184caf | 4176 | # As a last resort, use the slow shell script. Don't cache a |
4177 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 4178 | # break other packages using the cache if that directory is |
dd184caf | 4179 | # removed, or if the value is a relative name. |
d9898ee8 | 4180 | INSTALL=$ac_install_sh |
4181 | fi | |
4182 | fi | |
8d138742 CE |
4183 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4184 | $as_echo "$INSTALL" >&6; } | |
d9898ee8 | 4185 | |
4186 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4187 | # It thinks the first close brace ends the variable substitution. | |
4188 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4189 | ||
4190 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4191 | ||
4192 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4193 | ||
8d138742 CE |
4194 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4195 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d9898ee8 | 4196 | LN_S=$as_ln_s |
4197 | if test "$LN_S" = "ln -s"; then | |
8d138742 CE |
4198 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
4199 | $as_echo "yes" >&6; } | |
d9898ee8 | 4200 | else |
8d138742 CE |
4201 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4202 | $as_echo "no, using $LN_S" >&6; } | |
d9898ee8 | 4203 | fi |
4204 | ||
4205 | ||
4206 | ||
4207 | for ac_prog in perl5 perl | |
4208 | do | |
4209 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4210 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
4211 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4212 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 4213 | if test "${ac_cv_path_SYSCONFTOOL_PERL+set}" = set; then |
8d138742 | 4214 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4215 | else |
4216 | case $SYSCONFTOOL_PERL in | |
4217 | [\\/]* | ?:[\\/]*) | |
4218 | ac_cv_path_SYSCONFTOOL_PERL="$SYSCONFTOOL_PERL" # Let the user override the test with a path. | |
4219 | ;; | |
4220 | *) | |
4221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4222 | for as_dir in $PATH | |
4223 | do | |
4224 | IFS=$as_save_IFS | |
4225 | test -z "$as_dir" && as_dir=. | |
4226 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 4227 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 4228 | ac_cv_path_SYSCONFTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" |
8d138742 | 4229 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 4230 | break 2 |
4231 | fi | |
4232 | done | |
4233 | done | |
dd184caf | 4234 | IFS=$as_save_IFS |
d9898ee8 | 4235 | |
4236 | ;; | |
4237 | esac | |
4238 | fi | |
4239 | SYSCONFTOOL_PERL=$ac_cv_path_SYSCONFTOOL_PERL | |
d9898ee8 | 4240 | if test -n "$SYSCONFTOOL_PERL"; then |
8d138742 CE |
4241 | { $as_echo "$as_me:$LINENO: result: $SYSCONFTOOL_PERL" >&5 |
4242 | $as_echo "$SYSCONFTOOL_PERL" >&6; } | |
d9898ee8 | 4243 | else |
8d138742 CE |
4244 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4245 | $as_echo "no" >&6; } | |
d9898ee8 | 4246 | fi |
4247 | ||
dd184caf | 4248 | |
d9898ee8 | 4249 | test -n "$SYSCONFTOOL_PERL" && break |
4250 | done | |
4251 | test -n "$SYSCONFTOOL_PERL" || SYSCONFTOOL_PERL="perl" | |
4252 | ||
4253 | ||
4254 | if test "$SYSCONFTOOL_PERL" = "perl" | |
4255 | then | |
8d138742 CE |
4256 | { { $as_echo "$as_me:$LINENO: error: perl not found - please install perl" >&5 |
4257 | $as_echo "$as_me: error: perl not found - please install perl" >&2;} | |
d9898ee8 | 4258 | { (exit 1); exit 1; }; } |
4259 | fi | |
4260 | ||
8d138742 CE |
4261 | { $as_echo "$as_me:$LINENO: checking for sysconftool..." >&5 |
4262 | $as_echo_n "checking for sysconftool...... " >&6; } | |
d9898ee8 | 4263 | SYSCONFTOOL="" |
4264 | for sysconf_dir in $ac_aux_dir . .. ../.. | |
4265 | do | |
4266 | if test -f $srcdir/$sysconf_dir/sysconftool | |
4267 | then | |
4268 | SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool | |
4269 | break | |
4270 | fi | |
4271 | done | |
4272 | ||
4273 | if test "$SYSCONFTOOL" = "" | |
4274 | then | |
8d138742 CE |
4275 | { { $as_echo "$as_me:$LINENO: error: sysconftool missing - not in the package" >&5 |
4276 | $as_echo "$as_me: error: sysconftool missing - not in the package" >&2;} | |
d9898ee8 | 4277 | { (exit 1); exit 1; }; } |
4278 | fi | |
4279 | ||
8d138742 CE |
4280 | { $as_echo "$as_me:$LINENO: result: $SYSCONFTOOL" >&5 |
4281 | $as_echo "$SYSCONFTOOL" >&6; } | |
d9898ee8 | 4282 | SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL" |
4283 | ||
4284 | ||
4285 | ||
4286 | ||
d9898ee8 | 4287 | |
8d138742 CE |
4288 | |
4289 | ||
4290 | ||
4291 | ||
4292 | ||
4293 | ||
4294 | case `pwd` in | |
4295 | *\ * | *\ *) | |
4296 | { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4297 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
dd184caf | 4298 | esac |
d9898ee8 | 4299 | |
dd184caf | 4300 | |
d9898ee8 | 4301 | |
8d138742 CE |
4302 | macro_version='2.2.6' |
4303 | macro_revision='1.3012' | |
4304 | ||
4305 | ||
4306 | ||
4307 | ||
d9898ee8 | 4308 | |
d9898ee8 | 4309 | |
4310 | ||
4311 | ||
d9898ee8 | 4312 | |
dd184caf | 4313 | |
d9898ee8 | 4314 | |
dd184caf | 4315 | |
dd184caf | 4316 | |
8d138742 | 4317 | ltmain="$ac_aux_dir/ltmain.sh" |
d9898ee8 | 4318 | |
4319 | # Make sure we can run config.sub. | |
dd184caf | 4320 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
8d138742 CE |
4321 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
4322 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
d9898ee8 | 4323 | { (exit 1); exit 1; }; } |
4324 | ||
8d138742 CE |
4325 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
4326 | $as_echo_n "checking build system type... " >&6; } | |
d9898ee8 | 4327 | if test "${ac_cv_build+set}" = set; then |
8d138742 | 4328 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4329 | else |
dd184caf | 4330 | ac_build_alias=$build_alias |
4331 | test "x$ac_build_alias" = x && | |
4332 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4333 | test "x$ac_build_alias" = x && | |
8d138742 CE |
4334 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
4335 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
d9898ee8 | 4336 | { (exit 1); exit 1; }; } |
dd184caf | 4337 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
8d138742 CE |
4338 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
4339 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
d9898ee8 | 4340 | { (exit 1); exit 1; }; } |
4341 | ||
4342 | fi | |
8d138742 CE |
4343 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
4344 | $as_echo "$ac_cv_build" >&6; } | |
dd184caf | 4345 | case $ac_cv_build in |
4346 | *-*-*) ;; | |
8d138742 CE |
4347 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
4348 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
dd184caf | 4349 | { (exit 1); exit 1; }; };; |
4350 | esac | |
d9898ee8 | 4351 | build=$ac_cv_build |
dd184caf | 4352 | ac_save_IFS=$IFS; IFS='-' |
4353 | set x $ac_cv_build | |
4354 | shift | |
4355 | build_cpu=$1 | |
4356 | build_vendor=$2 | |
4357 | shift; shift | |
4358 | # Remember, the first character of IFS is used to create $*, | |
4359 | # except with old shells: | |
4360 | build_os=$* | |
4361 | IFS=$ac_save_IFS | |
4362 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4363 | ||
4364 | ||
8d138742 CE |
4365 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
4366 | $as_echo_n "checking host system type... " >&6; } | |
d9898ee8 | 4367 | if test "${ac_cv_host+set}" = set; then |
8d138742 | 4368 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4369 | else |
dd184caf | 4370 | if test "x$host_alias" = x; then |
4371 | ac_cv_host=$ac_cv_build | |
4372 | else | |
4373 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
8d138742 CE |
4374 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
4375 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
d9898ee8 | 4376 | { (exit 1); exit 1; }; } |
dd184caf | 4377 | fi |
d9898ee8 | 4378 | |
4379 | fi | |
8d138742 CE |
4380 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
4381 | $as_echo "$ac_cv_host" >&6; } | |
dd184caf | 4382 | case $ac_cv_host in |
4383 | *-*-*) ;; | |
8d138742 CE |
4384 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
4385 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
dd184caf | 4386 | { (exit 1); exit 1; }; };; |
4387 | esac | |
d9898ee8 | 4388 | host=$ac_cv_host |
dd184caf | 4389 | ac_save_IFS=$IFS; IFS='-' |
4390 | set x $ac_cv_host | |
4391 | shift | |
4392 | host_cpu=$1 | |
4393 | host_vendor=$2 | |
4394 | shift; shift | |
4395 | # Remember, the first character of IFS is used to create $*, | |
4396 | # except with old shells: | |
4397 | host_os=$* | |
4398 | IFS=$ac_save_IFS | |
4399 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4400 | ||
4401 | ||
8d138742 CE |
4402 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
4403 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4404 | if test "${ac_cv_path_SED+set}" = set; then | |
4405 | $as_echo_n "(cached) " >&6 | |
4406 | else | |
4407 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4408 | for ac_i in 1 2 3 4 5 6 7; do | |
4409 | ac_script="$ac_script$as_nl$ac_script" | |
4410 | done | |
4411 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4412 | $as_unset ac_script || ac_script= | |
4413 | if test -z "$SED"; then | |
4414 | ac_path_SED_found=false | |
4415 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 4417 | for as_dir in $PATH |
4418 | do | |
4419 | IFS=$as_save_IFS | |
4420 | test -z "$as_dir" && as_dir=. | |
8d138742 | 4421 | for ac_prog in sed gsed; do |
d9898ee8 | 4422 | for ac_exec_ext in '' $ac_executable_extensions; do |
8d138742 CE |
4423 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
4424 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4425 | # Check for GNU ac_path_SED and select it if it is found. | |
4426 | # Check for GNU $ac_path_SED | |
4427 | case `"$ac_path_SED" --version 2>&1` in | |
dd184caf | 4428 | *GNU*) |
8d138742 | 4429 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
dd184caf | 4430 | *) |
4431 | ac_count=0 | |
8d138742 | 4432 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4433 | while : |
4434 | do | |
4435 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4436 | mv "conftest.tmp" "conftest.in" | |
4437 | cp "conftest.in" "conftest.nl" | |
8d138742 CE |
4438 | $as_echo '' >> "conftest.nl" |
4439 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
dd184caf | 4440 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4441 | ac_count=`expr $ac_count + 1` | |
8d138742 | 4442 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
dd184caf | 4443 | # Best one so far, save it but keep looking for a better one |
8d138742 CE |
4444 | ac_cv_path_SED="$ac_path_SED" |
4445 | ac_path_SED_max=$ac_count | |
dd184caf | 4446 | fi |
4447 | # 10*(2^10) chars as input seems more than enough | |
4448 | test $ac_count -gt 10 && break | |
4449 | done | |
4450 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4451 | esac | |
4452 | ||
8d138742 CE |
4453 | $ac_path_SED_found && break 3 |
4454 | done | |
dd184caf | 4455 | done |
4456 | done | |
dd184caf | 4457 | IFS=$as_save_IFS |
8d138742 CE |
4458 | if test -z "$ac_cv_path_SED"; then |
4459 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
4460 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
4461 | { (exit 1); exit 1; }; } | |
4462 | fi | |
4463 | else | |
4464 | ac_cv_path_SED=$SED | |
dd184caf | 4465 | fi |
4466 | ||
dd184caf | 4467 | fi |
8d138742 CE |
4468 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
4469 | $as_echo "$ac_cv_path_SED" >&6; } | |
4470 | SED="$ac_cv_path_SED" | |
4471 | rm -f conftest.sed | |
4472 | ||
4473 | test -z "$SED" && SED=sed | |
4474 | Xsed="$SED -e 1s/^X//" | |
4475 | ||
4476 | ||
4477 | ||
4478 | ||
4479 | ||
4480 | ||
4481 | ||
4482 | ||
4483 | ||
4484 | ||
4485 | ||
4486 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
4487 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4488 | if test "${ac_cv_path_GREP+set}" = set; then | |
4489 | $as_echo_n "(cached) " >&6 | |
4490 | else | |
4491 | if test -z "$GREP"; then | |
4492 | ac_path_GREP_found=false | |
4493 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4495 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4496 | do | |
4497 | IFS=$as_save_IFS | |
4498 | test -z "$as_dir" && as_dir=. | |
4499 | for ac_prog in grep ggrep; do | |
4500 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4501 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4502 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4503 | # Check for GNU ac_path_GREP and select it if it is found. | |
4504 | # Check for GNU $ac_path_GREP | |
4505 | case `"$ac_path_GREP" --version 2>&1` in | |
4506 | *GNU*) | |
4507 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4508 | *) | |
4509 | ac_count=0 | |
4510 | $as_echo_n 0123456789 >"conftest.in" | |
4511 | while : | |
4512 | do | |
4513 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4514 | mv "conftest.tmp" "conftest.in" | |
4515 | cp "conftest.in" "conftest.nl" | |
4516 | $as_echo 'GREP' >> "conftest.nl" | |
4517 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4518 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4519 | ac_count=`expr $ac_count + 1` | |
4520 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4521 | # Best one so far, save it but keep looking for a better one | |
4522 | ac_cv_path_GREP="$ac_path_GREP" | |
4523 | ac_path_GREP_max=$ac_count | |
4524 | fi | |
4525 | # 10*(2^10) chars as input seems more than enough | |
4526 | test $ac_count -gt 10 && break | |
4527 | done | |
4528 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4529 | esac | |
dd184caf | 4530 | |
8d138742 CE |
4531 | $ac_path_GREP_found && break 3 |
4532 | done | |
4533 | done | |
4534 | done | |
4535 | IFS=$as_save_IFS | |
4536 | if test -z "$ac_cv_path_GREP"; then | |
4537 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4538 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4539 | { (exit 1); exit 1; }; } | |
4540 | fi | |
dd184caf | 4541 | else |
4542 | ac_cv_path_GREP=$GREP | |
4543 | fi | |
4544 | ||
dd184caf | 4545 | fi |
8d138742 CE |
4546 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
4547 | $as_echo "$ac_cv_path_GREP" >&6; } | |
dd184caf | 4548 | GREP="$ac_cv_path_GREP" |
4549 | ||
d9898ee8 | 4550 | |
8d138742 CE |
4551 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
4552 | $as_echo_n "checking for egrep... " >&6; } | |
dd184caf | 4553 | if test "${ac_cv_path_EGREP+set}" = set; then |
8d138742 | 4554 | $as_echo_n "(cached) " >&6 |
dd184caf | 4555 | else |
4556 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4557 | then ac_cv_path_EGREP="$GREP -E" | |
4558 | else | |
8d138742 | 4559 | if test -z "$EGREP"; then |
dd184caf | 4560 | ac_path_EGREP_found=false |
8d138742 CE |
4561 | # Loop through the user's path and test for each of PROGNAME-LIST |
4562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4563 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4564 | do | |
4565 | IFS=$as_save_IFS | |
4566 | test -z "$as_dir" && as_dir=. | |
4567 | for ac_prog in egrep; do | |
8d138742 CE |
4568 | for ac_exec_ext in '' $ac_executable_extensions; do |
4569 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4570 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4571 | # Check for GNU ac_path_EGREP and select it if it is found. | |
dd184caf | 4572 | # Check for GNU $ac_path_EGREP |
4573 | case `"$ac_path_EGREP" --version 2>&1` in | |
4574 | *GNU*) | |
4575 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4576 | *) | |
4577 | ac_count=0 | |
8d138742 | 4578 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4579 | while : |
4580 | do | |
4581 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4582 | mv "conftest.tmp" "conftest.in" | |
4583 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4584 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4585 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4586 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4587 | ac_count=`expr $ac_count + 1` | |
4588 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4589 | # Best one so far, save it but keep looking for a better one | |
4590 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4591 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4592 | fi |
dd184caf | 4593 | # 10*(2^10) chars as input seems more than enough |
4594 | test $ac_count -gt 10 && break | |
4595 | done | |
4596 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4597 | esac | |
4598 | ||
8d138742 CE |
4599 | $ac_path_EGREP_found && break 3 |
4600 | done | |
dd184caf | 4601 | done |
4602 | done | |
dd184caf | 4603 | IFS=$as_save_IFS |
8d138742 CE |
4604 | if test -z "$ac_cv_path_EGREP"; then |
4605 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4606 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4607 | { (exit 1); exit 1; }; } | |
4608 | fi | |
4609 | else | |
4610 | ac_cv_path_EGREP=$EGREP | |
dd184caf | 4611 | fi |
4612 | ||
8d138742 | 4613 | fi |
dd184caf | 4614 | fi |
8d138742 CE |
4615 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4616 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4617 | EGREP="$ac_cv_path_EGREP" | |
dd184caf | 4618 | |
8d138742 CE |
4619 | |
4620 | { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 | |
4621 | $as_echo_n "checking for fgrep... " >&6; } | |
4622 | if test "${ac_cv_path_FGREP+set}" = set; then | |
4623 | $as_echo_n "(cached) " >&6 | |
dd184caf | 4624 | else |
8d138742 CE |
4625 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4626 | then ac_cv_path_FGREP="$GREP -F" | |
4627 | else | |
4628 | if test -z "$FGREP"; then | |
4629 | ac_path_FGREP_found=false | |
4630 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4632 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4633 | do | |
4634 | IFS=$as_save_IFS | |
4635 | test -z "$as_dir" && as_dir=. | |
4636 | for ac_prog in fgrep; do | |
4637 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4638 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4639 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
4640 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4641 | # Check for GNU $ac_path_FGREP | |
4642 | case `"$ac_path_FGREP" --version 2>&1` in | |
4643 | *GNU*) | |
4644 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4645 | *) | |
4646 | ac_count=0 | |
4647 | $as_echo_n 0123456789 >"conftest.in" | |
4648 | while : | |
4649 | do | |
4650 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4651 | mv "conftest.tmp" "conftest.in" | |
4652 | cp "conftest.in" "conftest.nl" | |
4653 | $as_echo 'FGREP' >> "conftest.nl" | |
4654 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4655 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4656 | ac_count=`expr $ac_count + 1` | |
4657 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4658 | # Best one so far, save it but keep looking for a better one | |
4659 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4660 | ac_path_FGREP_max=$ac_count | |
4661 | fi | |
4662 | # 10*(2^10) chars as input seems more than enough | |
4663 | test $ac_count -gt 10 && break | |
4664 | done | |
4665 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4666 | esac | |
dd184caf | 4667 | |
8d138742 CE |
4668 | $ac_path_FGREP_found && break 3 |
4669 | done | |
4670 | done | |
4671 | done | |
4672 | IFS=$as_save_IFS | |
4673 | if test -z "$ac_cv_path_FGREP"; then | |
4674 | { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4675 | $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4676 | { (exit 1); exit 1; }; } | |
4677 | fi | |
4678 | else | |
4679 | ac_cv_path_FGREP=$FGREP | |
4680 | fi | |
dd184caf | 4681 | |
4682 | fi | |
d9898ee8 | 4683 | fi |
8d138742 CE |
4684 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 |
4685 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4686 | FGREP="$ac_cv_path_FGREP" | |
4687 | ||
4688 | ||
4689 | test -z "$GREP" && GREP=grep | |
4690 | ||
4691 | ||
4692 | ||
4693 | ||
4694 | ||
4695 | ||
4696 | ||
4697 | ||
4698 | ||
4699 | ||
4700 | ||
4701 | ||
4702 | ||
4703 | ||
4704 | ||
4705 | ||
d9898ee8 | 4706 | |
4707 | ||
4708 | ||
dd184caf | 4709 | # Check whether --with-gnu-ld was given. |
d9898ee8 | 4710 | if test "${with_gnu_ld+set}" = set; then |
dd184caf | 4711 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 | 4712 | else |
4713 | with_gnu_ld=no | |
dd184caf | 4714 | fi |
4715 | ||
d9898ee8 | 4716 | ac_prog=ld |
4717 | if test "$GCC" = yes; then | |
4718 | # Check if gcc -print-prog-name=ld gives a path. | |
8d138742 CE |
4719 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4720 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
d9898ee8 | 4721 | case $host in |
4722 | *-*-mingw*) | |
4723 | # gcc leaves a trailing carriage return which upsets mingw | |
4724 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4725 | *) | |
4726 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4727 | esac | |
4728 | case $ac_prog in | |
4729 | # Accept absolute paths. | |
4730 | [\\/]* | ?:[\\/]*) | |
4731 | re_direlt='/[^/][^/]*/\.\./' | |
4732 | # Canonicalize the pathname of ld | |
8d138742 CE |
4733 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4734 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4735 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
d9898ee8 | 4736 | done |
4737 | test -z "$LD" && LD="$ac_prog" | |
4738 | ;; | |
4739 | "") | |
4740 | # If it fails, then pretend we aren't using GCC. | |
4741 | ac_prog=ld | |
4742 | ;; | |
4743 | *) | |
4744 | # If it is relative, then search for the first ld in PATH. | |
4745 | with_gnu_ld=unknown | |
4746 | ;; | |
4747 | esac | |
4748 | elif test "$with_gnu_ld" = yes; then | |
8d138742 CE |
4749 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4750 | $as_echo_n "checking for GNU ld... " >&6; } | |
d9898ee8 | 4751 | else |
8d138742 CE |
4752 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4753 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
d9898ee8 | 4754 | fi |
4755 | if test "${lt_cv_path_LD+set}" = set; then | |
8d138742 | 4756 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4757 | else |
4758 | if test -z "$LD"; then | |
4759 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4760 | for ac_dir in $PATH; do | |
4761 | IFS="$lt_save_ifs" | |
4762 | test -z "$ac_dir" && ac_dir=. | |
4763 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4764 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4765 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4766 | # but apparently some variants of GNU ld only accept -v. | |
4767 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4768 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4769 | *GNU* | *'with BFD'*) | |
4770 | test "$with_gnu_ld" != no && break | |
4771 | ;; | |
4772 | *) | |
4773 | test "$with_gnu_ld" != yes && break | |
4774 | ;; | |
4775 | esac | |
4776 | fi | |
4777 | done | |
4778 | IFS="$lt_save_ifs" | |
4779 | else | |
4780 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4781 | fi | |
4782 | fi | |
4783 | ||
4784 | LD="$lt_cv_path_LD" | |
4785 | if test -n "$LD"; then | |
8d138742 CE |
4786 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
4787 | $as_echo "$LD" >&6; } | |
d9898ee8 | 4788 | else |
8d138742 CE |
4789 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4790 | $as_echo "no" >&6; } | |
d9898ee8 | 4791 | fi |
8d138742 CE |
4792 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4793 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
d9898ee8 | 4794 | { (exit 1); exit 1; }; } |
8d138742 CE |
4795 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4796 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d9898ee8 | 4797 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
8d138742 | 4798 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4799 | else |
4800 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4801 | case `$LD -v 2>&1 </dev/null` in | |
4802 | *GNU* | *'with BFD'*) | |
4803 | lt_cv_prog_gnu_ld=yes | |
4804 | ;; | |
4805 | *) | |
4806 | lt_cv_prog_gnu_ld=no | |
4807 | ;; | |
4808 | esac | |
4809 | fi | |
8d138742 CE |
4810 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4811 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
d9898ee8 | 4812 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4813 | ||
4814 | ||
d9898ee8 | 4815 | |
8d138742 CE |
4816 | |
4817 | ||
4818 | ||
4819 | ||
4820 | ||
4821 | ||
4822 | { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4823 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
d9898ee8 | 4824 | if test "${lt_cv_path_NM+set}" = set; then |
8d138742 | 4825 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4826 | else |
4827 | if test -n "$NM"; then | |
4828 | # Let the user override the test. | |
4829 | lt_cv_path_NM="$NM" | |
4830 | else | |
4831 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4832 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4833 | lt_nm_to_check="$lt_nm_to_check nm" | |
4834 | fi | |
4835 | for lt_tmp_nm in $lt_nm_to_check; do | |
4836 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4837 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4838 | IFS="$lt_save_ifs" | |
4839 | test -z "$ac_dir" && ac_dir=. | |
4840 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4841 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4842 | # Check to see if the nm accepts a BSD-compat flag. | |
4843 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4844 | # nm: unknown option "B" ignored | |
4845 | # Tru64's nm complains that /dev/null is an invalid object file | |
4846 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4847 | */dev/null* | *'Invalid file or object type'*) | |
4848 | lt_cv_path_NM="$tmp_nm -B" | |
4849 | break | |
4850 | ;; | |
4851 | *) | |
4852 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4853 | */dev/null*) | |
4854 | lt_cv_path_NM="$tmp_nm -p" | |
4855 | break | |
4856 | ;; | |
4857 | *) | |
4858 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4859 | continue # so that we can try to find one that supports BSD flags | |
4860 | ;; | |
4861 | esac | |
4862 | ;; | |
4863 | esac | |
4864 | fi | |
4865 | done | |
4866 | IFS="$lt_save_ifs" | |
4867 | done | |
8d138742 | 4868 | : ${lt_cv_path_NM=no} |
d9898ee8 | 4869 | fi |
4870 | fi | |
8d138742 CE |
4871 | { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4872 | $as_echo "$lt_cv_path_NM" >&6; } | |
4873 | if test "$lt_cv_path_NM" != "no"; then | |
4874 | NM="$lt_cv_path_NM" | |
4875 | else | |
4876 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4877 | if test -n "$ac_tool_prefix"; then | |
4878 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4879 | do | |
4880 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4881 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4882 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4883 | $as_echo_n "checking for $ac_word... " >&6; } | |
4884 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
4885 | $as_echo_n "(cached) " >&6 | |
4886 | else | |
4887 | if test -n "$DUMPBIN"; then | |
4888 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4889 | else | |
4890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4891 | for as_dir in $PATH | |
4892 | do | |
4893 | IFS=$as_save_IFS | |
4894 | test -z "$as_dir" && as_dir=. | |
4895 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4897 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4898 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4899 | break 2 | |
4900 | fi | |
4901 | done | |
4902 | done | |
4903 | IFS=$as_save_IFS | |
d9898ee8 | 4904 | |
8d138742 CE |
4905 | fi |
4906 | fi | |
4907 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4908 | if test -n "$DUMPBIN"; then | |
4909 | { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4910 | $as_echo "$DUMPBIN" >&6; } | |
d9898ee8 | 4911 | else |
8d138742 CE |
4912 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4913 | $as_echo "no" >&6; } | |
4914 | fi | |
d9898ee8 | 4915 | |
d9898ee8 | 4916 | |
8d138742 CE |
4917 | test -n "$DUMPBIN" && break |
4918 | done | |
4919 | fi | |
4920 | if test -z "$DUMPBIN"; then | |
4921 | ac_ct_DUMPBIN=$DUMPBIN | |
4922 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4923 | do | |
4924 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4925 | set dummy $ac_prog; ac_word=$2 | |
4926 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4927 | $as_echo_n "checking for $ac_word... " >&6; } | |
4928 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4929 | $as_echo_n "(cached) " >&6 | |
4930 | else | |
4931 | if test -n "$ac_ct_DUMPBIN"; then | |
4932 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4933 | else | |
4934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4935 | for as_dir in $PATH | |
4936 | do | |
4937 | IFS=$as_save_IFS | |
4938 | test -z "$as_dir" && as_dir=. | |
4939 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4940 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4941 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4942 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4943 | break 2 | |
4944 | fi | |
4945 | done | |
4946 | done | |
4947 | IFS=$as_save_IFS | |
d9898ee8 | 4948 | |
8d138742 CE |
4949 | fi |
4950 | fi | |
4951 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4952 | if test -n "$ac_ct_DUMPBIN"; then | |
4953 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4954 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4955 | else | |
4956 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4957 | $as_echo "no" >&6; } | |
4958 | fi | |
d9898ee8 | 4959 | |
d9898ee8 | 4960 | |
8d138742 CE |
4961 | test -n "$ac_ct_DUMPBIN" && break |
4962 | done | |
4963 | ||
4964 | if test "x$ac_ct_DUMPBIN" = x; then | |
4965 | DUMPBIN=":" | |
ac40fd9e | 4966 | else |
8d138742 CE |
4967 | case $cross_compiling:$ac_tool_warned in |
4968 | yes:) | |
4969 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4970 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4971 | ac_tool_warned=yes ;; | |
4972 | esac | |
4973 | DUMPBIN=$ac_ct_DUMPBIN | |
ac40fd9e | 4974 | fi |
8d138742 | 4975 | fi |
d9898ee8 | 4976 | |
d9898ee8 | 4977 | |
8d138742 CE |
4978 | if test "$DUMPBIN" != ":"; then |
4979 | NM="$DUMPBIN" | |
d9898ee8 | 4980 | fi |
8d138742 CE |
4981 | fi |
4982 | test -z "$NM" && NM=nm | |
d9898ee8 | 4983 | |
d9898ee8 | 4984 | |
d9898ee8 | 4985 | |
d9898ee8 | 4986 | |
d9898ee8 | 4987 | |
d9898ee8 | 4988 | |
8d138742 CE |
4989 | { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
4990 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4991 | if test "${lt_cv_nm_interface+set}" = set; then | |
4992 | $as_echo_n "(cached) " >&6 | |
4993 | else | |
4994 | lt_cv_nm_interface="BSD nm" | |
4995 | echo "int some_variable = 0;" > conftest.$ac_ext | |
4996 | (eval echo "\"\$as_me:4996: $ac_compile\"" >&5) | |
4997 | (eval "$ac_compile" 2>conftest.err) | |
4998 | cat conftest.err >&5 | |
4999 | (eval echo "\"\$as_me:4999: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5000 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5001 | cat conftest.err >&5 | |
5002 | (eval echo "\"\$as_me:5002: output\"" >&5) | |
5003 | cat conftest.out >&5 | |
5004 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5005 | lt_cv_nm_interface="MS dumpbin" | |
d9898ee8 | 5006 | fi |
8d138742 CE |
5007 | rm -f conftest* |
5008 | fi | |
5009 | { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
5010 | $as_echo "$lt_cv_nm_interface" >&6; } | |
d9898ee8 | 5011 | |
8d138742 CE |
5012 | # find the maximum length of command line arguments |
5013 | { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
5014 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5015 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
5016 | $as_echo_n "(cached) " >&6 | |
5017 | else | |
5018 | i=0 | |
5019 | teststring="ABCD" | |
d9898ee8 | 5020 | |
8d138742 CE |
5021 | case $build_os in |
5022 | msdosdjgpp*) | |
5023 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5024 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5025 | # during glob expansion). Even if it were fixed, the result of this | |
5026 | # check would be larger than it should be. | |
5027 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5028 | ;; | |
d9898ee8 | 5029 | |
8d138742 CE |
5030 | gnu*) |
5031 | # Under GNU Hurd, this test is not required because there is | |
5032 | # no limit to the length of command line arguments. | |
5033 | # Libtool will interpret -1 as no limit whatsoever | |
5034 | lt_cv_sys_max_cmd_len=-1; | |
5035 | ;; | |
d9898ee8 | 5036 | |
8d138742 CE |
5037 | cygwin* | mingw* | cegcc*) |
5038 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5039 | # about 5 minutes as the teststring grows exponentially. | |
5040 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5041 | # you end up with a "frozen" computer, even though with patience | |
5042 | # the test eventually succeeds (with a max line length of 256k). | |
5043 | # Instead, let's just punt: use the minimum linelength reported by | |
5044 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5045 | lt_cv_sys_max_cmd_len=8192; | |
5046 | ;; | |
ac40fd9e | 5047 | |
8d138742 CE |
5048 | amigaos*) |
5049 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5050 | # So we just punt and use a minimum line length of 8192. | |
5051 | lt_cv_sys_max_cmd_len=8192; | |
5052 | ;; | |
d9898ee8 | 5053 | |
8d138742 CE |
5054 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5055 | # This has been around since 386BSD, at least. Likely further. | |
5056 | if test -x /sbin/sysctl; then | |
5057 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5058 | elif test -x /usr/sbin/sysctl; then | |
5059 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5060 | else | |
5061 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5062 | fi | |
5063 | # And add a safety zone | |
5064 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5065 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
d9898ee8 | 5066 | ;; |
8d138742 CE |
5067 | |
5068 | interix*) | |
5069 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5070 | lt_cv_sys_max_cmd_len=196608 | |
d9898ee8 | 5071 | ;; |
8d138742 CE |
5072 | |
5073 | osf*) | |
5074 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5075 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5076 | # nice to cause kernel panics so lets avoid the loop below. | |
5077 | # First set a reasonable default. | |
5078 | lt_cv_sys_max_cmd_len=16384 | |
5079 | # | |
5080 | if test -x /sbin/sysconfig; then | |
5081 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5082 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5083 | esac | |
5084 | fi | |
d9898ee8 | 5085 | ;; |
8d138742 CE |
5086 | sco3.2v5*) |
5087 | lt_cv_sys_max_cmd_len=102400 | |
d9898ee8 | 5088 | ;; |
8d138742 CE |
5089 | sysv5* | sco5v6* | sysv4.2uw2*) |
5090 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5091 | if test -n "$kargmax"; then | |
5092 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5093 | else | |
5094 | lt_cv_sys_max_cmd_len=32768 | |
5095 | fi | |
d9898ee8 | 5096 | ;; |
8d138742 CE |
5097 | *) |
5098 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5099 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
5100 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5101 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5102 | else | |
5103 | # Make teststring a little bigger before we do anything with it. | |
5104 | # a 1K string should be a reasonable start. | |
5105 | for i in 1 2 3 4 5 6 7 8 ; do | |
5106 | teststring=$teststring$teststring | |
5107 | done | |
5108 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5109 | # If test is not a shell built-in, we'll probably end up computing a | |
5110 | # maximum length that is only half of the actual maximum length, but | |
5111 | # we can't tell. | |
5112 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
5113 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
5114 | test $i != 17 # 1/2 MB should be enough | |
5115 | do | |
5116 | i=`expr $i + 1` | |
5117 | teststring=$teststring$teststring | |
5118 | done | |
5119 | # Only check the string length outside the loop. | |
5120 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5121 | teststring= | |
5122 | # Add a significant safety factor because C++ compilers can tack on | |
5123 | # massive amounts of additional arguments before passing them to the | |
5124 | # linker. It appears as though 1/2 is a usable value. | |
5125 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5126 | fi | |
d9898ee8 | 5127 | ;; |
5128 | esac | |
d9898ee8 | 5129 | |
8d138742 | 5130 | fi |
d9898ee8 | 5131 | |
8d138742 CE |
5132 | if test -n $lt_cv_sys_max_cmd_len ; then |
5133 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
5134 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5135 | else | |
5136 | { $as_echo "$as_me:$LINENO: result: none" >&5 | |
5137 | $as_echo "none" >&6; } | |
d9898ee8 | 5138 | fi |
8d138742 | 5139 | max_cmd_len=$lt_cv_sys_max_cmd_len |
d9898ee8 | 5140 | |
5141 | ||
5142 | ||
5143 | ||
d9898ee8 | 5144 | |
d9898ee8 | 5145 | |
8d138742 CE |
5146 | : ${CP="cp -f"} |
5147 | : ${MV="mv -f"} | |
5148 | : ${RM="rm -f"} | |
d9898ee8 | 5149 | |
8d138742 CE |
5150 | { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
5151 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5152 | # Try some XSI features | |
5153 | xsi_shell=no | |
5154 | ( _lt_dummy="a/b/c" | |
5155 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
5156 | = c,a/b,, \ | |
5157 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5158 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5159 | && xsi_shell=yes | |
5160 | { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
5161 | $as_echo "$xsi_shell" >&6; } | |
5162 | ||
5163 | ||
5164 | { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 | |
5165 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
5166 | lt_shell_append=no | |
5167 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5168 | >/dev/null 2>&1 \ | |
5169 | && lt_shell_append=yes | |
5170 | { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
5171 | $as_echo "$lt_shell_append" >&6; } | |
5172 | ||
5173 | ||
5174 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5175 | lt_unset=unset | |
5176 | else | |
5177 | lt_unset=false | |
dd184caf | 5178 | fi |
d9898ee8 | 5179 | |
d9898ee8 | 5180 | |
8d138742 CE |
5181 | |
5182 | ||
5183 | ||
5184 | # test EBCDIC or ASCII | |
5185 | case `echo X|tr X '\101'` in | |
5186 | A) # ASCII based system | |
5187 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5188 | lt_SP2NL='tr \040 \012' | |
5189 | lt_NL2SP='tr \015\012 \040\040' | |
d9898ee8 | 5190 | ;; |
8d138742 CE |
5191 | *) # EBCDIC based system |
5192 | lt_SP2NL='tr \100 \n' | |
5193 | lt_NL2SP='tr \r\n \100\100' | |
d9898ee8 | 5194 | ;; |
8d138742 | 5195 | esac |
d9898ee8 | 5196 | |
d9898ee8 | 5197 | |
d9898ee8 | 5198 | |
d9898ee8 | 5199 | |
d9898ee8 | 5200 | |
d9898ee8 | 5201 | |
dd184caf | 5202 | |
d9898ee8 | 5203 | |
8d138742 CE |
5204 | |
5205 | { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
5206 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5207 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
5208 | $as_echo_n "(cached) " >&6 | |
5209 | else | |
5210 | lt_cv_ld_reload_flag='-r' | |
d9898ee8 | 5211 | fi |
8d138742 CE |
5212 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
5213 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5214 | reload_flag=$lt_cv_ld_reload_flag | |
5215 | case $reload_flag in | |
5216 | "" | " "*) ;; | |
5217 | *) reload_flag=" $reload_flag" ;; | |
5218 | esac | |
5219 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5220 | case $host_os in | |
5221 | darwin*) | |
5222 | if test "$GCC" = yes; then | |
5223 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5224 | else | |
5225 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5226 | fi | |
5227 | ;; | |
5228 | esac | |
d9898ee8 | 5229 | |
5230 | ||
d9898ee8 | 5231 | |
d9898ee8 | 5232 | |
5233 | ||
5234 | ||
d9898ee8 | 5235 | |
d9898ee8 | 5236 | |
8d138742 CE |
5237 | |
5238 | if test -n "$ac_tool_prefix"; then | |
5239 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5240 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5241 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5242 | $as_echo_n "checking for $ac_word... " >&6; } | |
5243 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
5244 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5245 | else |
8d138742 CE |
5246 | if test -n "$OBJDUMP"; then |
5247 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5248 | else | |
5249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5250 | for as_dir in $PATH | |
5251 | do | |
5252 | IFS=$as_save_IFS | |
5253 | test -z "$as_dir" && as_dir=. | |
5254 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5255 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5256 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5257 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5258 | break 2 | |
5259 | fi | |
5260 | done | |
5261 | done | |
5262 | IFS=$as_save_IFS | |
d9898ee8 | 5263 | |
8d138742 CE |
5264 | fi |
5265 | fi | |
5266 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5267 | if test -n "$OBJDUMP"; then | |
5268 | { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
5269 | $as_echo "$OBJDUMP" >&6; } | |
5270 | else | |
5271 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5272 | $as_echo "no" >&6; } | |
d9898ee8 | 5273 | fi |
dd184caf | 5274 | |
d9898ee8 | 5275 | |
8d138742 CE |
5276 | fi |
5277 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5278 | ac_ct_OBJDUMP=$OBJDUMP | |
5279 | # Extract the first word of "objdump", so it can be a program name with args. | |
5280 | set dummy objdump; ac_word=$2 | |
5281 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5282 | $as_echo_n "checking for $ac_word... " >&6; } | |
5283 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
5284 | $as_echo_n "(cached) " >&6 | |
5285 | else | |
5286 | if test -n "$ac_ct_OBJDUMP"; then | |
5287 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5288 | else | |
5289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5290 | for as_dir in $PATH | |
5291 | do | |
5292 | IFS=$as_save_IFS | |
5293 | test -z "$as_dir" && as_dir=. | |
5294 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5295 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5296 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5297 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5298 | break 2 | |
5299 | fi | |
5300 | done | |
5301 | done | |
5302 | IFS=$as_save_IFS | |
d9898ee8 | 5303 | |
8d138742 CE |
5304 | fi |
5305 | fi | |
5306 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5307 | if test -n "$ac_ct_OBJDUMP"; then | |
5308 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
5309 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
d9898ee8 | 5310 | else |
8d138742 CE |
5311 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5312 | $as_echo "no" >&6; } | |
d9898ee8 | 5313 | fi |
d9898ee8 | 5314 | |
8d138742 CE |
5315 | if test "x$ac_ct_OBJDUMP" = x; then |
5316 | OBJDUMP="false" | |
5317 | else | |
5318 | case $cross_compiling:$ac_tool_warned in | |
5319 | yes:) | |
5320 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5321 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5322 | ac_tool_warned=yes ;; | |
5323 | esac | |
5324 | OBJDUMP=$ac_ct_OBJDUMP | |
5325 | fi | |
5326 | else | |
5327 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
d9898ee8 | 5328 | fi |
5329 | ||
8d138742 | 5330 | test -z "$OBJDUMP" && OBJDUMP=objdump |
d9898ee8 | 5331 | |
d9898ee8 | 5332 | |
d9898ee8 | 5333 | |
d9898ee8 | 5334 | |
d9898ee8 | 5335 | |
dd184caf | 5336 | |
5337 | ||
d9898ee8 | 5338 | |
d9898ee8 | 5339 | |
8d138742 CE |
5340 | { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
5341 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5342 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
5343 | $as_echo_n "(cached) " >&6 | |
5344 | else | |
5345 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5346 | lt_cv_file_magic_test_file= | |
5347 | lt_cv_deplibs_check_method='unknown' | |
5348 | # Need to set the preceding variable on all platforms that support | |
5349 | # interlibrary dependencies. | |
5350 | # 'none' -- dependencies not supported. | |
5351 | # `unknown' -- same as none, but documents that we really don't know. | |
5352 | # 'pass_all' -- all dependencies passed with no checks. | |
5353 | # 'test_compile' -- check by making test program. | |
5354 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5355 | # which responds to the $file_magic_cmd with a given extended regex. | |
5356 | # If you have `file' or equivalent on your system and you're not sure | |
5357 | # whether `pass_all' will *always* work, you probably want this one. | |
d9898ee8 | 5358 | |
8d138742 CE |
5359 | case $host_os in |
5360 | aix[4-9]*) | |
5361 | lt_cv_deplibs_check_method=pass_all | |
5362 | ;; | |
d9898ee8 | 5363 | |
8d138742 CE |
5364 | beos*) |
5365 | lt_cv_deplibs_check_method=pass_all | |
5366 | ;; | |
d9898ee8 | 5367 | |
8d138742 CE |
5368 | bsdi[45]*) |
5369 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5370 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5371 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5372 | ;; | |
d9898ee8 | 5373 | |
8d138742 CE |
5374 | cygwin*) |
5375 | # func_win32_libid is a shell function defined in ltmain.sh | |
5376 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5377 | lt_cv_file_magic_cmd='func_win32_libid' | |
5378 | ;; | |
d9898ee8 | 5379 | |
8d138742 CE |
5380 | mingw* | pw32*) |
5381 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5382 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5383 | # unless we find 'file', for example because we are cross-compiling. | |
5384 | if ( file / ) >/dev/null 2>&1; then | |
5385 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5386 | lt_cv_file_magic_cmd='func_win32_libid' | |
5387 | else | |
5388 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5389 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5390 | fi | |
5391 | ;; | |
d9898ee8 | 5392 | |
8d138742 CE |
5393 | cegcc) |
5394 | # use the weaker test based on 'objdump'. See mingw*. | |
5395 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5396 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5397 | ;; | |
d9898ee8 | 5398 | |
8d138742 CE |
5399 | darwin* | rhapsody*) |
5400 | lt_cv_deplibs_check_method=pass_all | |
5401 | ;; | |
d9898ee8 | 5402 | |
8d138742 CE |
5403 | freebsd* | dragonfly*) |
5404 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5405 | case $host_cpu in | |
5406 | i*86 ) | |
5407 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5408 | # Let's accept both of them until this is cleared up. | |
5409 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5410 | lt_cv_file_magic_cmd=/usr/bin/file | |
5411 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5412 | ;; | |
5413 | esac | |
5414 | else | |
5415 | lt_cv_deplibs_check_method=pass_all | |
5416 | fi | |
5417 | ;; | |
d9898ee8 | 5418 | |
8d138742 CE |
5419 | gnu*) |
5420 | lt_cv_deplibs_check_method=pass_all | |
5421 | ;; | |
d9898ee8 | 5422 | |
8d138742 CE |
5423 | hpux10.20* | hpux11*) |
5424 | lt_cv_file_magic_cmd=/usr/bin/file | |
5425 | case $host_cpu in | |
5426 | ia64*) | |
5427 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5428 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5429 | ;; | |
5430 | hppa*64*) | |
5431 | 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]' | |
5432 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5433 | ;; | |
5434 | *) | |
5435 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
5436 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5437 | ;; | |
5438 | esac | |
5439 | ;; | |
d9898ee8 | 5440 | |
8d138742 CE |
5441 | interix[3-9]*) |
5442 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5443 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5444 | ;; | |
d9898ee8 | 5445 | |
8d138742 CE |
5446 | irix5* | irix6* | nonstopux*) |
5447 | case $LD in | |
5448 | *-32|*"-32 ") libmagic=32-bit;; | |
5449 | *-n32|*"-n32 ") libmagic=N32;; | |
5450 | *-64|*"-64 ") libmagic=64-bit;; | |
5451 | *) libmagic=never-match;; | |
5452 | esac | |
5453 | lt_cv_deplibs_check_method=pass_all | |
5454 | ;; | |
dd184caf | 5455 | |
8d138742 CE |
5456 | # This must be Linux ELF. |
5457 | linux* | k*bsd*-gnu) | |
5458 | lt_cv_deplibs_check_method=pass_all | |
5459 | ;; | |
d9898ee8 | 5460 | |
8d138742 CE |
5461 | netbsd*) |
5462 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5463 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5464 | else | |
5465 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5466 | fi | |
5467 | ;; | |
d9898ee8 | 5468 | |
8d138742 CE |
5469 | newos6*) |
5470 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5471 | lt_cv_file_magic_cmd=/usr/bin/file | |
5472 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5473 | ;; | |
d9898ee8 | 5474 | |
8d138742 CE |
5475 | *nto* | *qnx*) |
5476 | lt_cv_deplibs_check_method=pass_all | |
5477 | ;; | |
d9898ee8 | 5478 | |
8d138742 CE |
5479 | openbsd*) |
5480 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5481 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5482 | else | |
5483 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5484 | fi | |
5485 | ;; | |
d9898ee8 | 5486 | |
8d138742 CE |
5487 | osf3* | osf4* | osf5*) |
5488 | lt_cv_deplibs_check_method=pass_all | |
5489 | ;; | |
d9898ee8 | 5490 | |
8d138742 CE |
5491 | rdos*) |
5492 | lt_cv_deplibs_check_method=pass_all | |
5493 | ;; | |
dd184caf | 5494 | |
8d138742 CE |
5495 | solaris*) |
5496 | lt_cv_deplibs_check_method=pass_all | |
5497 | ;; | |
d9898ee8 | 5498 | |
8d138742 CE |
5499 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5500 | lt_cv_deplibs_check_method=pass_all | |
5501 | ;; | |
d9898ee8 | 5502 | |
8d138742 CE |
5503 | sysv4 | sysv4.3*) |
5504 | case $host_vendor in | |
5505 | motorola) | |
5506 | 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]' | |
5507 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
d9898ee8 | 5508 | ;; |
8d138742 CE |
5509 | ncr) |
5510 | lt_cv_deplibs_check_method=pass_all | |
5511 | ;; | |
5512 | sequent) | |
5513 | lt_cv_file_magic_cmd='/bin/file' | |
5514 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5515 | ;; | |
5516 | sni) | |
5517 | lt_cv_file_magic_cmd='/bin/file' | |
5518 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5519 | lt_cv_file_magic_test_file=/lib/libc.so | |
5520 | ;; | |
5521 | siemens) | |
5522 | lt_cv_deplibs_check_method=pass_all | |
d9898ee8 | 5523 | ;; |
8d138742 CE |
5524 | pc) |
5525 | lt_cv_deplibs_check_method=pass_all | |
5526 | ;; | |
5527 | esac | |
5528 | ;; | |
5529 | ||
5530 | tpf*) | |
5531 | lt_cv_deplibs_check_method=pass_all | |
5532 | ;; | |
d9898ee8 | 5533 | esac |
d9898ee8 | 5534 | |
5535 | fi | |
8d138742 CE |
5536 | { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
5537 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5538 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5539 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5540 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d9898ee8 | 5541 | |
d9898ee8 | 5542 | |
d9898ee8 | 5543 | |
8d138742 CE |
5544 | |
5545 | ||
5546 | ||
5547 | ||
5548 | ||
5549 | ||
5550 | ||
5551 | ||
5552 | ||
5553 | if test -n "$ac_tool_prefix"; then | |
5554 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5555 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5556 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5557 | $as_echo_n "checking for $ac_word... " >&6; } | |
5558 | if test "${ac_cv_prog_AR+set}" = set; then | |
5559 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5560 | else |
8d138742 CE |
5561 | if test -n "$AR"; then |
5562 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
d9898ee8 | 5563 | else |
5564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5565 | for as_dir in $PATH | |
5566 | do | |
5567 | IFS=$as_save_IFS | |
5568 | test -z "$as_dir" && as_dir=. | |
5569 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 5570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
5571 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5572 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 5573 | break 2 |
5574 | fi | |
5575 | done | |
5576 | done | |
dd184caf | 5577 | IFS=$as_save_IFS |
d9898ee8 | 5578 | |
5579 | fi | |
5580 | fi | |
8d138742 CE |
5581 | AR=$ac_cv_prog_AR |
5582 | if test -n "$AR"; then | |
5583 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 | |
5584 | $as_echo "$AR" >&6; } | |
d9898ee8 | 5585 | else |
8d138742 CE |
5586 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5587 | $as_echo "no" >&6; } | |
d9898ee8 | 5588 | fi |
5589 | ||
dd184caf | 5590 | |
d9898ee8 | 5591 | fi |
8d138742 CE |
5592 | if test -z "$ac_cv_prog_AR"; then |
5593 | ac_ct_AR=$AR | |
5594 | # Extract the first word of "ar", so it can be a program name with args. | |
5595 | set dummy ar; ac_word=$2 | |
5596 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5597 | $as_echo_n "checking for $ac_word... " >&6; } | |
5598 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
5599 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5600 | else |
8d138742 CE |
5601 | if test -n "$ac_ct_AR"; then |
5602 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
d9898ee8 | 5603 | else |
5604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5605 | for as_dir in $PATH | |
5606 | do | |
5607 | IFS=$as_save_IFS | |
5608 | test -z "$as_dir" && as_dir=. | |
5609 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 5610 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
5611 | ac_cv_prog_ac_ct_AR="ar" |
5612 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 5613 | break 2 |
5614 | fi | |
5615 | done | |
5616 | done | |
dd184caf | 5617 | IFS=$as_save_IFS |
d9898ee8 | 5618 | |
5619 | fi | |
5620 | fi | |
8d138742 CE |
5621 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5622 | if test -n "$ac_ct_AR"; then | |
5623 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5624 | $as_echo "$ac_ct_AR" >&6; } | |
d9898ee8 | 5625 | else |
8d138742 CE |
5626 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5627 | $as_echo "no" >&6; } | |
d9898ee8 | 5628 | fi |
5629 | ||
8d138742 CE |
5630 | if test "x$ac_ct_AR" = x; then |
5631 | AR="false" | |
dd184caf | 5632 | else |
5633 | case $cross_compiling:$ac_tool_warned in | |
5634 | yes:) | |
8d138742 CE |
5635 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
5636 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 5637 | ac_tool_warned=yes ;; |
5638 | esac | |
8d138742 | 5639 | AR=$ac_ct_AR |
dd184caf | 5640 | fi |
d9898ee8 | 5641 | else |
8d138742 CE |
5642 | AR="$ac_cv_prog_AR" |
5643 | fi | |
d9898ee8 | 5644 | |
8d138742 CE |
5645 | test -z "$AR" && AR=ar |
5646 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d9898ee8 | 5647 | |
d9898ee8 | 5648 | |
dd184caf | 5649 | |
d9898ee8 | 5650 | |
d9898ee8 | 5651 | |
d9898ee8 | 5652 | |
dd184caf | 5653 | |
dd184caf | 5654 | |
d9898ee8 | 5655 | |
dd184caf | 5656 | |
dd184caf | 5657 | |
8d138742 CE |
5658 | if test -n "$ac_tool_prefix"; then |
5659 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5660 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5661 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5662 | $as_echo_n "checking for $ac_word... " >&6; } | |
5663 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
5664 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5665 | else |
8d138742 CE |
5666 | if test -n "$STRIP"; then |
5667 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5668 | else | |
5669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5670 | for as_dir in $PATH | |
5671 | do | |
5672 | IFS=$as_save_IFS | |
5673 | test -z "$as_dir" && as_dir=. | |
5674 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5675 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5676 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5677 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5678 | break 2 | |
5679 | fi | |
5680 | done | |
5681 | done | |
5682 | IFS=$as_save_IFS | |
dd184caf | 5683 | |
d9898ee8 | 5684 | fi |
8d138742 CE |
5685 | fi |
5686 | STRIP=$ac_cv_prog_STRIP | |
5687 | if test -n "$STRIP"; then | |
5688 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5689 | $as_echo "$STRIP" >&6; } | |
5690 | else | |
5691 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5692 | $as_echo "no" >&6; } | |
5693 | fi | |
5694 | ||
dd184caf | 5695 | |
d9898ee8 | 5696 | fi |
8d138742 CE |
5697 | if test -z "$ac_cv_prog_STRIP"; then |
5698 | ac_ct_STRIP=$STRIP | |
5699 | # Extract the first word of "strip", so it can be a program name with args. | |
5700 | set dummy strip; ac_word=$2 | |
5701 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5702 | $as_echo_n "checking for $ac_word... " >&6; } | |
5703 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5704 | $as_echo_n "(cached) " >&6 | |
5705 | else | |
5706 | if test -n "$ac_ct_STRIP"; then | |
5707 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5708 | else | |
5709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5710 | for as_dir in $PATH | |
5711 | do | |
5712 | IFS=$as_save_IFS | |
5713 | test -z "$as_dir" && as_dir=. | |
5714 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5715 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5716 | ac_cv_prog_ac_ct_STRIP="strip" | |
5717 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5718 | break 2 | |
5719 | fi | |
5720 | done | |
5721 | done | |
5722 | IFS=$as_save_IFS | |
d9898ee8 | 5723 | |
8d138742 CE |
5724 | fi |
5725 | fi | |
5726 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5727 | if test -n "$ac_ct_STRIP"; then | |
5728 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5729 | $as_echo "$ac_ct_STRIP" >&6; } | |
5730 | else | |
5731 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5732 | $as_echo "no" >&6; } | |
dd184caf | 5733 | fi |
5734 | ||
8d138742 CE |
5735 | if test "x$ac_ct_STRIP" = x; then |
5736 | STRIP=":" | |
dd184caf | 5737 | else |
8d138742 CE |
5738 | case $cross_compiling:$ac_tool_warned in |
5739 | yes:) | |
5740 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5741 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5742 | ac_tool_warned=yes ;; | |
5743 | esac | |
5744 | STRIP=$ac_ct_STRIP | |
dd184caf | 5745 | fi |
5746 | else | |
8d138742 | 5747 | STRIP="$ac_cv_prog_STRIP" |
dd184caf | 5748 | fi |
d9898ee8 | 5749 | |
8d138742 | 5750 | test -z "$STRIP" && STRIP=: |
d9898ee8 | 5751 | |
d9898ee8 | 5752 | |
d9898ee8 | 5753 | |
d9898ee8 | 5754 | |
8d138742 CE |
5755 | |
5756 | ||
5757 | if test -n "$ac_tool_prefix"; then | |
5758 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5759 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5760 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5761 | $as_echo_n "checking for $ac_word... " >&6; } | |
5762 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5763 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5764 | else |
8d138742 CE |
5765 | if test -n "$RANLIB"; then |
5766 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5767 | else | |
5768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5769 | for as_dir in $PATH | |
5770 | do | |
5771 | IFS=$as_save_IFS | |
5772 | test -z "$as_dir" && as_dir=. | |
5773 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5774 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5775 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5776 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5777 | break 2 | |
5778 | fi | |
5779 | done | |
5780 | done | |
5781 | IFS=$as_save_IFS | |
d9898ee8 | 5782 | |
5783 | fi | |
8d138742 CE |
5784 | fi |
5785 | RANLIB=$ac_cv_prog_RANLIB | |
5786 | if test -n "$RANLIB"; then | |
5787 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5788 | $as_echo "$RANLIB" >&6; } | |
d9898ee8 | 5789 | else |
8d138742 CE |
5790 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5791 | $as_echo "no" >&6; } | |
d9898ee8 | 5792 | fi |
5793 | ||
5794 | ||
8d138742 CE |
5795 | fi |
5796 | if test -z "$ac_cv_prog_RANLIB"; then | |
5797 | ac_ct_RANLIB=$RANLIB | |
5798 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5799 | set dummy ranlib; ac_word=$2 | |
5800 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5801 | $as_echo_n "checking for $ac_word... " >&6; } | |
5802 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5803 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5804 | else |
8d138742 CE |
5805 | if test -n "$ac_ct_RANLIB"; then |
5806 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
d9898ee8 | 5807 | else |
8d138742 CE |
5808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5809 | for as_dir in $PATH | |
5810 | do | |
5811 | IFS=$as_save_IFS | |
5812 | test -z "$as_dir" && as_dir=. | |
5813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5814 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5815 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5816 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5817 | break 2 | |
5818 | fi | |
5819 | done | |
5820 | done | |
5821 | IFS=$as_save_IFS | |
d9898ee8 | 5822 | |
8d138742 CE |
5823 | fi |
5824 | fi | |
5825 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5826 | if test -n "$ac_ct_RANLIB"; then | |
5827 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5828 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5829 | else | |
5830 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5831 | $as_echo "no" >&6; } | |
d9898ee8 | 5832 | fi |
dd184caf | 5833 | |
8d138742 CE |
5834 | if test "x$ac_ct_RANLIB" = x; then |
5835 | RANLIB=":" | |
5836 | else | |
5837 | case $cross_compiling:$ac_tool_warned in | |
5838 | yes:) | |
5839 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5840 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5841 | ac_tool_warned=yes ;; | |
dd184caf | 5842 | esac |
8d138742 CE |
5843 | RANLIB=$ac_ct_RANLIB |
5844 | fi | |
d9898ee8 | 5845 | else |
8d138742 | 5846 | RANLIB="$ac_cv_prog_RANLIB" |
d9898ee8 | 5847 | fi |
dd184caf | 5848 | |
8d138742 | 5849 | test -z "$RANLIB" && RANLIB=: |
d9898ee8 | 5850 | |
d9898ee8 | 5851 | |
d9898ee8 | 5852 | |
d9898ee8 | 5853 | |
dd184caf | 5854 | |
d9898ee8 | 5855 | |
8d138742 CE |
5856 | # Determine commands to create old-style static archives. |
5857 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5858 | old_postinstall_cmds='chmod 644 $oldlib' | |
5859 | old_postuninstall_cmds= | |
d9898ee8 | 5860 | |
8d138742 CE |
5861 | if test -n "$RANLIB"; then |
5862 | case $host_os in | |
5863 | openbsd*) | |
5864 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5865 | ;; | |
5866 | *) | |
5867 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5868 | ;; | |
5869 | esac | |
5870 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
d9898ee8 | 5871 | fi |
dd184caf | 5872 | |
d9898ee8 | 5873 | |
d9898ee8 | 5874 | |
d9898ee8 | 5875 | |
d9898ee8 | 5876 | |
5877 | ||
d9898ee8 | 5878 | |
d9898ee8 | 5879 | |
dd184caf | 5880 | |
d9898ee8 | 5881 | |
d9898ee8 | 5882 | |
dd184caf | 5883 | |
d9898ee8 | 5884 | |
d9898ee8 | 5885 | |
5886 | ||
d9898ee8 | 5887 | |
d9898ee8 | 5888 | |
d9898ee8 | 5889 | |
dd184caf | 5890 | |
d9898ee8 | 5891 | |
d9898ee8 | 5892 | |
5893 | ||
5894 | ||
d9898ee8 | 5895 | |
d9898ee8 | 5896 | |
d9898ee8 | 5897 | |
d9898ee8 | 5898 | |
d9898ee8 | 5899 | |
d9898ee8 | 5900 | |
d9898ee8 | 5901 | |
d9898ee8 | 5902 | |
d9898ee8 | 5903 | |
d9898ee8 | 5904 | |
d9898ee8 | 5905 | |
8d138742 CE |
5906 | # If no C compiler was specified, use CC. |
5907 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 5908 | |
8d138742 CE |
5909 | # If no C compiler flags were specified, use CFLAGS. |
5910 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 5911 | |
8d138742 CE |
5912 | # Allow CC to be a program name with arguments. |
5913 | compiler=$CC | |
d9898ee8 | 5914 | |
ac40fd9e | 5915 | |
d9898ee8 | 5916 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
8d138742 CE |
5917 | { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
5918 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
d9898ee8 | 5919 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
8d138742 | 5920 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5921 | else |
5922 | ||
5923 | # These are sane defaults that work on at least a few old systems. | |
5924 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5925 | ||
5926 | # Character class describing NM global symbol codes. | |
5927 | symcode='[BCDEGRST]' | |
5928 | ||
5929 | # Regexp to match symbols that can be accessed directly from C. | |
5930 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5931 | ||
d9898ee8 | 5932 | # Define system-specific variables. |
5933 | case $host_os in | |
5934 | aix*) | |
5935 | symcode='[BCDT]' | |
5936 | ;; | |
8d138742 | 5937 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 5938 | symcode='[ABCDGISTW]' |
5939 | ;; | |
8d138742 | 5940 | hpux*) |
d9898ee8 | 5941 | if test "$host_cpu" = ia64; then |
5942 | symcode='[ABCDEGRST]' | |
5943 | fi | |
d9898ee8 | 5944 | ;; |
5945 | irix* | nonstopux*) | |
5946 | symcode='[BCDEGRST]' | |
5947 | ;; | |
5948 | osf*) | |
5949 | symcode='[BCDEGQRST]' | |
5950 | ;; | |
5951 | solaris*) | |
5952 | symcode='[BDRT]' | |
5953 | ;; | |
5954 | sco3.2v5*) | |
5955 | symcode='[DT]' | |
5956 | ;; | |
5957 | sysv4.2uw2*) | |
5958 | symcode='[DT]' | |
5959 | ;; | |
5960 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5961 | symcode='[ABDT]' | |
5962 | ;; | |
5963 | sysv4) | |
5964 | symcode='[DFNSTU]' | |
5965 | ;; | |
5966 | esac | |
5967 | ||
8d138742 CE |
5968 | # If we're using GNU nm, then use its standard symbol codes. |
5969 | case `$NM -V 2>&1` in | |
5970 | *GNU* | *'with BFD'*) | |
5971 | symcode='[ABCDGIRSTW]' ;; | |
5972 | esac | |
5973 | ||
5974 | # Transform an extracted symbol line into a proper C declaration. | |
5975 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5976 | # so use this general approach. | |
5977 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5978 | ||
5979 | # Transform an extracted symbol line into symbol name and symbol address | |
5980 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5981 | 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'" | |
5982 | ||
d9898ee8 | 5983 | # Handle CRLF in mingw tool chain |
5984 | opt_cr= | |
5985 | case $build_os in | |
5986 | mingw*) | |
8d138742 | 5987 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
d9898ee8 | 5988 | ;; |
5989 | esac | |
5990 | ||
8d138742 | 5991 | # Try without a prefix underscore, then with it. |
d9898ee8 | 5992 | for ac_symprfx in "" "_"; do |
5993 | ||
5994 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5995 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5996 | ||
5997 | # Write the raw and C identifiers. | |
8d138742 CE |
5998 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
5999 | # Fake it for dumpbin and say T for any non-static function | |
6000 | # and D for any global variable. | |
6001 | # Also find C++ and __fastcall symbols from MSVC++, | |
6002 | # which start with @ or ?. | |
6003 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6004 | " {last_section=section; section=\$ 3};"\ | |
6005 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6006 | " \$ 0!~/External *\|/{next};"\ | |
6007 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6008 | " {if(hide[section]) next};"\ | |
6009 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6010 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6011 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6012 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6013 | " ' prfx=^$ac_symprfx" | |
6014 | else | |
6015 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6016 | fi | |
d9898ee8 | 6017 | |
6018 | # Check to see that the pipe works correctly. | |
6019 | pipe_works=no | |
6020 | ||
6021 | rm -f conftest* | |
8d138742 | 6022 | cat > conftest.$ac_ext <<_LT_EOF |
d9898ee8 | 6023 | #ifdef __cplusplus |
6024 | extern "C" { | |
6025 | #endif | |
6026 | char nm_test_var; | |
8d138742 CE |
6027 | void nm_test_func(void); |
6028 | void nm_test_func(void){} | |
d9898ee8 | 6029 | #ifdef __cplusplus |
6030 | } | |
6031 | #endif | |
6032 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8d138742 | 6033 | _LT_EOF |
d9898ee8 | 6034 | |
6035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6036 | (eval $ac_compile) 2>&5 | |
6037 | ac_status=$? | |
8d138742 | 6038 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 6039 | (exit $ac_status); }; then |
6040 | # Now try to grab the symbols. | |
6041 | nlist=conftest.nm | |
6042 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
6043 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
6044 | ac_status=$? | |
8d138742 | 6045 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 6046 | (exit $ac_status); } && test -s "$nlist"; then |
6047 | # Try sorting and uniquifying the output. | |
6048 | if sort "$nlist" | uniq > "$nlist"T; then | |
6049 | mv -f "$nlist"T "$nlist" | |
6050 | else | |
6051 | rm -f "$nlist"T | |
6052 | fi | |
6053 | ||
6054 | # Make sure that we snagged all the symbols we need. | |
8d138742 CE |
6055 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
6056 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6057 | cat <<_LT_EOF > conftest.$ac_ext | |
d9898ee8 | 6058 | #ifdef __cplusplus |
6059 | extern "C" { | |
6060 | #endif | |
6061 | ||
8d138742 | 6062 | _LT_EOF |
d9898ee8 | 6063 | # Now generate the symbol file. |
8d138742 | 6064 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
d9898ee8 | 6065 | |
8d138742 | 6066 | cat <<_LT_EOF >> conftest.$ac_ext |
d9898ee8 | 6067 | |
8d138742 | 6068 | /* The mapping between symbol names and symbols. */ |
d9898ee8 | 6069 | const struct { |
6070 | const char *name; | |
8d138742 | 6071 | void *address; |
d9898ee8 | 6072 | } |
8d138742 | 6073 | lt__PROGRAM__LTX_preloaded_symbols[] = |
d9898ee8 | 6074 | { |
8d138742 CE |
6075 | { "@PROGRAM@", (void *) 0 }, |
6076 | _LT_EOF | |
6077 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6078 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6079 | {0, (void *) 0} | |
d9898ee8 | 6080 | }; |
6081 | ||
8d138742 CE |
6082 | /* This works around a problem in FreeBSD linker */ |
6083 | #ifdef FREEBSD_WORKAROUND | |
6084 | static const void *lt_preloaded_setup() { | |
6085 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6086 | } | |
6087 | #endif | |
6088 | ||
d9898ee8 | 6089 | #ifdef __cplusplus |
6090 | } | |
6091 | #endif | |
8d138742 | 6092 | _LT_EOF |
d9898ee8 | 6093 | # Now try linking the two files. |
6094 | mv conftest.$ac_objext conftstm.$ac_objext | |
6095 | lt_save_LIBS="$LIBS" | |
6096 | lt_save_CFLAGS="$CFLAGS" | |
6097 | LIBS="conftstm.$ac_objext" | |
6098 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6100 | (eval $ac_link) 2>&5 | |
6101 | ac_status=$? | |
8d138742 | 6102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 6103 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6104 | pipe_works=yes | |
6105 | fi | |
6106 | LIBS="$lt_save_LIBS" | |
6107 | CFLAGS="$lt_save_CFLAGS" | |
6108 | else | |
6109 | echo "cannot find nm_test_func in $nlist" >&5 | |
6110 | fi | |
6111 | else | |
6112 | echo "cannot find nm_test_var in $nlist" >&5 | |
6113 | fi | |
6114 | else | |
6115 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6116 | fi | |
6117 | else | |
6118 | echo "$progname: failed program was:" >&5 | |
6119 | cat conftest.$ac_ext >&5 | |
6120 | fi | |
8d138742 | 6121 | rm -rf conftest* conftst* |
d9898ee8 | 6122 | |
6123 | # Do not use the global_symbol_pipe unless it works. | |
6124 | if test "$pipe_works" = yes; then | |
6125 | break | |
6126 | else | |
6127 | lt_cv_sys_global_symbol_pipe= | |
6128 | fi | |
6129 | done | |
6130 | ||
6131 | fi | |
6132 | ||
6133 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6134 | lt_cv_sys_global_symbol_to_cdecl= | |
6135 | fi | |
6136 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
8d138742 CE |
6137 | { $as_echo "$as_me:$LINENO: result: failed" >&5 |
6138 | $as_echo "failed" >&6; } | |
d9898ee8 | 6139 | else |
8d138742 CE |
6140 | { $as_echo "$as_me:$LINENO: result: ok" >&5 |
6141 | $as_echo "ok" >&6; } | |
d9898ee8 | 6142 | fi |
6143 | ||
d9898ee8 | 6144 | |
6145 | ||
6146 | ||
6147 | ||
6148 | ||
d9898ee8 | 6149 | |
d9898ee8 | 6150 | |
d9898ee8 | 6151 | |
d9898ee8 | 6152 | |
d9898ee8 | 6153 | |
d9898ee8 | 6154 | |
d9898ee8 | 6155 | |
d9898ee8 | 6156 | |
d9898ee8 | 6157 | |
d9898ee8 | 6158 | |
dd184caf | 6159 | |
d9898ee8 | 6160 | |
8d138742 CE |
6161 | |
6162 | ||
6163 | ||
6164 | ||
6165 | ||
6166 | # Check whether --enable-libtool-lock was given. | |
6167 | if test "${enable_libtool_lock+set}" = set; then | |
6168 | enableval=$enable_libtool_lock; | |
d9898ee8 | 6169 | fi |
8d138742 CE |
6170 | |
6171 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6172 | ||
6173 | # Some flags need to be propagated to the compiler or linker for good | |
6174 | # libtool support. | |
6175 | case $host in | |
6176 | ia64-*-hpux*) | |
6177 | # Find out which ABI we are using. | |
6178 | echo 'int i;' > conftest.$ac_ext | |
6179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6180 | (eval $ac_compile) 2>&5 | |
6181 | ac_status=$? | |
6182 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6183 | (exit $ac_status); }; then | |
6184 | case `/usr/bin/file conftest.$ac_objext` in | |
6185 | *ELF-32*) | |
6186 | HPUX_IA64_MODE="32" | |
6187 | ;; | |
6188 | *ELF-64*) | |
6189 | HPUX_IA64_MODE="64" | |
6190 | ;; | |
6191 | esac | |
6192 | fi | |
6193 | rm -rf conftest* | |
6194 | ;; | |
6195 | *-*-irix6*) | |
6196 | # Find out which ABI we are using. | |
6197 | echo '#line 6197 "configure"' > conftest.$ac_ext | |
6198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6199 | (eval $ac_compile) 2>&5 | |
6200 | ac_status=$? | |
6201 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6202 | (exit $ac_status); }; then | |
6203 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6204 | case `/usr/bin/file conftest.$ac_objext` in | |
6205 | *32-bit*) | |
6206 | LD="${LD-ld} -melf32bsmip" | |
6207 | ;; | |
6208 | *N32*) | |
6209 | LD="${LD-ld} -melf32bmipn32" | |
6210 | ;; | |
6211 | *64-bit*) | |
6212 | LD="${LD-ld} -melf64bmip" | |
6213 | ;; | |
6214 | esac | |
6215 | else | |
6216 | case `/usr/bin/file conftest.$ac_objext` in | |
6217 | *32-bit*) | |
6218 | LD="${LD-ld} -32" | |
6219 | ;; | |
6220 | *N32*) | |
6221 | LD="${LD-ld} -n32" | |
6222 | ;; | |
6223 | *64-bit*) | |
6224 | LD="${LD-ld} -64" | |
6225 | ;; | |
6226 | esac | |
6227 | fi | |
6228 | fi | |
6229 | rm -rf conftest* | |
6230 | ;; | |
6231 | ||
6232 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6233 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6234 | # Find out which ABI we are using. | |
6235 | echo 'int i;' > conftest.$ac_ext | |
6236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6237 | (eval $ac_compile) 2>&5 | |
6238 | ac_status=$? | |
6239 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6240 | (exit $ac_status); }; then | |
6241 | case `/usr/bin/file conftest.o` in | |
6242 | *32-bit*) | |
6243 | case $host in | |
6244 | x86_64-*kfreebsd*-gnu) | |
6245 | LD="${LD-ld} -m elf_i386_fbsd" | |
6246 | ;; | |
6247 | x86_64-*linux*) | |
6248 | LD="${LD-ld} -m elf_i386" | |
6249 | ;; | |
6250 | ppc64-*linux*|powerpc64-*linux*) | |
6251 | LD="${LD-ld} -m elf32ppclinux" | |
6252 | ;; | |
6253 | s390x-*linux*) | |
6254 | LD="${LD-ld} -m elf_s390" | |
6255 | ;; | |
6256 | sparc64-*linux*) | |
6257 | LD="${LD-ld} -m elf32_sparc" | |
6258 | ;; | |
6259 | esac | |
6260 | ;; | |
6261 | *64-bit*) | |
6262 | case $host in | |
6263 | x86_64-*kfreebsd*-gnu) | |
6264 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6265 | ;; | |
6266 | x86_64-*linux*) | |
6267 | LD="${LD-ld} -m elf_x86_64" | |
6268 | ;; | |
6269 | ppc*-*linux*|powerpc*-*linux*) | |
6270 | LD="${LD-ld} -m elf64ppc" | |
6271 | ;; | |
6272 | s390*-*linux*|s390*-*tpf*) | |
6273 | LD="${LD-ld} -m elf64_s390" | |
6274 | ;; | |
6275 | sparc*-*linux*) | |
6276 | LD="${LD-ld} -m elf64_sparc" | |
6277 | ;; | |
6278 | esac | |
6279 | ;; | |
6280 | esac | |
6281 | fi | |
6282 | rm -rf conftest* | |
6283 | ;; | |
6284 | ||
6285 | *-*-sco3.2v5*) | |
6286 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6287 | SAVE_CFLAGS="$CFLAGS" | |
6288 | CFLAGS="$CFLAGS -belf" | |
6289 | { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
6290 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6291 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
6292 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6293 | else |
8d138742 CE |
6294 | ac_ext=c |
6295 | ac_cpp='$CPP $CPPFLAGS' | |
6296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 6299 | |
8d138742 CE |
6300 | cat >conftest.$ac_ext <<_ACEOF |
6301 | /* confdefs.h. */ | |
6302 | _ACEOF | |
6303 | cat confdefs.h >>conftest.$ac_ext | |
6304 | cat >>conftest.$ac_ext <<_ACEOF | |
6305 | /* end confdefs.h. */ | |
6306 | ||
6307 | int | |
6308 | main () | |
6309 | { | |
6310 | ||
6311 | ; | |
6312 | return 0; | |
6313 | } | |
6314 | _ACEOF | |
6315 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6316 | if { (ac_try="$ac_link" | |
6317 | case "(($ac_try" in | |
6318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6319 | *) ac_try_echo=$ac_try;; | |
dd184caf | 6320 | esac |
8d138742 CE |
6321 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6322 | $as_echo "$ac_try_echo") >&5 | |
6323 | (eval "$ac_link") 2>conftest.er1 | |
6324 | ac_status=$? | |
6325 | grep -v '^ *+' conftest.er1 >conftest.err | |
6326 | rm -f conftest.er1 | |
6327 | cat conftest.err >&5 | |
6328 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6329 | (exit $ac_status); } && { | |
6330 | test -z "$ac_c_werror_flag" || | |
6331 | test ! -s conftest.err | |
6332 | } && test -s conftest$ac_exeext && { | |
6333 | test "$cross_compiling" = yes || | |
6334 | $as_test_x conftest$ac_exeext | |
6335 | }; then | |
6336 | lt_cv_cc_needs_belf=yes | |
d9898ee8 | 6337 | else |
8d138742 CE |
6338 | $as_echo "$as_me: failed program was:" >&5 |
6339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6340 | ||
6341 | lt_cv_cc_needs_belf=no | |
d9898ee8 | 6342 | fi |
6343 | ||
8d138742 CE |
6344 | rm -rf conftest.dSYM |
6345 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6346 | conftest$ac_exeext conftest.$ac_ext | |
6347 | ac_ext=c | |
6348 | ac_cpp='$CPP $CPPFLAGS' | |
6349 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6350 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6351 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6352 | ||
6353 | fi | |
6354 | { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
6355 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6356 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6357 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6358 | CFLAGS="$SAVE_CFLAGS" | |
6359 | fi | |
6360 | ;; | |
6361 | sparc*-*solaris*) | |
6362 | # Find out which ABI we are using. | |
6363 | echo 'int i;' > conftest.$ac_ext | |
6364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6365 | (eval $ac_compile) 2>&5 | |
6366 | ac_status=$? | |
6367 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6368 | (exit $ac_status); }; then | |
6369 | case `/usr/bin/file conftest.o` in | |
6370 | *64-bit*) | |
6371 | case $lt_cv_prog_gnu_ld in | |
6372 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6373 | *) | |
6374 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6375 | LD="${LD-ld} -64" | |
6376 | fi | |
6377 | ;; | |
6378 | esac | |
6379 | ;; | |
6380 | esac | |
6381 | fi | |
6382 | rm -rf conftest* | |
6383 | ;; | |
6384 | esac | |
6385 | ||
6386 | need_locks="$enable_libtool_lock" | |
6387 | ||
6388 | ||
6389 | case $host_os in | |
6390 | rhapsody* | darwin*) | |
6391 | if test -n "$ac_tool_prefix"; then | |
6392 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6393 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
6394 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6395 | $as_echo_n "checking for $ac_word... " >&6; } | |
6396 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
6397 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6398 | else |
8d138742 CE |
6399 | if test -n "$DSYMUTIL"; then |
6400 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
d9898ee8 | 6401 | else |
6402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6403 | for as_dir in $PATH | |
6404 | do | |
6405 | IFS=$as_save_IFS | |
6406 | test -z "$as_dir" && as_dir=. | |
6407 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6408 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6409 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
6410 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6411 | break 2 |
6412 | fi | |
6413 | done | |
6414 | done | |
dd184caf | 6415 | IFS=$as_save_IFS |
d9898ee8 | 6416 | |
6417 | fi | |
6418 | fi | |
8d138742 CE |
6419 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
6420 | if test -n "$DSYMUTIL"; then | |
6421 | { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
6422 | $as_echo "$DSYMUTIL" >&6; } | |
d9898ee8 | 6423 | else |
8d138742 CE |
6424 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6425 | $as_echo "no" >&6; } | |
d9898ee8 | 6426 | fi |
6427 | ||
dd184caf | 6428 | |
d9898ee8 | 6429 | fi |
8d138742 CE |
6430 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
6431 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6432 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6433 | set dummy dsymutil; ac_word=$2 | |
6434 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6435 | $as_echo_n "checking for $ac_word... " >&6; } | |
6436 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
6437 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6438 | else |
8d138742 CE |
6439 | if test -n "$ac_ct_DSYMUTIL"; then |
6440 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
d9898ee8 | 6441 | else |
6442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6443 | for as_dir in $PATH | |
6444 | do | |
6445 | IFS=$as_save_IFS | |
6446 | test -z "$as_dir" && as_dir=. | |
6447 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6448 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6449 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
6450 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6451 | break 2 |
6452 | fi | |
6453 | done | |
6454 | done | |
dd184caf | 6455 | IFS=$as_save_IFS |
d9898ee8 | 6456 | |
d9898ee8 | 6457 | fi |
6458 | fi | |
8d138742 CE |
6459 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
6460 | if test -n "$ac_ct_DSYMUTIL"; then | |
6461 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
6462 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
d9898ee8 | 6463 | else |
8d138742 CE |
6464 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6465 | $as_echo "no" >&6; } | |
d9898ee8 | 6466 | fi |
6467 | ||
8d138742 CE |
6468 | if test "x$ac_ct_DSYMUTIL" = x; then |
6469 | DSYMUTIL=":" | |
dd184caf | 6470 | else |
6471 | case $cross_compiling:$ac_tool_warned in | |
6472 | yes:) | |
8d138742 CE |
6473 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
6474 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 6475 | ac_tool_warned=yes ;; |
6476 | esac | |
8d138742 | 6477 | DSYMUTIL=$ac_ct_DSYMUTIL |
dd184caf | 6478 | fi |
d9898ee8 | 6479 | else |
8d138742 | 6480 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
d9898ee8 | 6481 | fi |
6482 | ||
8d138742 CE |
6483 | if test -n "$ac_tool_prefix"; then |
6484 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6485 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6486 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6487 | $as_echo_n "checking for $ac_word... " >&6; } | |
6488 | if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
6489 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6490 | else |
8d138742 CE |
6491 | if test -n "$NMEDIT"; then |
6492 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
d9898ee8 | 6493 | else |
6494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6495 | for as_dir in $PATH | |
6496 | do | |
6497 | IFS=$as_save_IFS | |
6498 | test -z "$as_dir" && as_dir=. | |
6499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6500 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6501 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
6502 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6503 | break 2 |
6504 | fi | |
6505 | done | |
6506 | done | |
dd184caf | 6507 | IFS=$as_save_IFS |
d9898ee8 | 6508 | |
6509 | fi | |
6510 | fi | |
8d138742 CE |
6511 | NMEDIT=$ac_cv_prog_NMEDIT |
6512 | if test -n "$NMEDIT"; then | |
6513 | { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
6514 | $as_echo "$NMEDIT" >&6; } | |
d9898ee8 | 6515 | else |
8d138742 CE |
6516 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6517 | $as_echo "no" >&6; } | |
d9898ee8 | 6518 | fi |
6519 | ||
dd184caf | 6520 | |
d9898ee8 | 6521 | fi |
8d138742 CE |
6522 | if test -z "$ac_cv_prog_NMEDIT"; then |
6523 | ac_ct_NMEDIT=$NMEDIT | |
6524 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6525 | set dummy nmedit; ac_word=$2 | |
6526 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6527 | $as_echo_n "checking for $ac_word... " >&6; } | |
6528 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
6529 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6530 | else |
8d138742 CE |
6531 | if test -n "$ac_ct_NMEDIT"; then |
6532 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
d9898ee8 | 6533 | else |
6534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6535 | for as_dir in $PATH | |
6536 | do | |
6537 | IFS=$as_save_IFS | |
6538 | test -z "$as_dir" && as_dir=. | |
6539 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6540 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6541 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
6542 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6543 | break 2 |
6544 | fi | |
6545 | done | |
6546 | done | |
dd184caf | 6547 | IFS=$as_save_IFS |
d9898ee8 | 6548 | |
d9898ee8 | 6549 | fi |
6550 | fi | |
8d138742 CE |
6551 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
6552 | if test -n "$ac_ct_NMEDIT"; then | |
6553 | { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
6554 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
d9898ee8 | 6555 | else |
8d138742 CE |
6556 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6557 | $as_echo "no" >&6; } | |
d9898ee8 | 6558 | fi |
6559 | ||
8d138742 CE |
6560 | if test "x$ac_ct_NMEDIT" = x; then |
6561 | NMEDIT=":" | |
dd184caf | 6562 | else |
6563 | case $cross_compiling:$ac_tool_warned in | |
6564 | yes:) | |
8d138742 CE |
6565 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
6566 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 6567 | ac_tool_warned=yes ;; |
6568 | esac | |
8d138742 | 6569 | NMEDIT=$ac_ct_NMEDIT |
dd184caf | 6570 | fi |
d9898ee8 | 6571 | else |
8d138742 | 6572 | NMEDIT="$ac_cv_prog_NMEDIT" |
d9898ee8 | 6573 | fi |
6574 | ||
8d138742 CE |
6575 | if test -n "$ac_tool_prefix"; then |
6576 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6577 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
6578 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6579 | $as_echo_n "checking for $ac_word... " >&6; } | |
6580 | if test "${ac_cv_prog_LIPO+set}" = set; then | |
6581 | $as_echo_n "(cached) " >&6 | |
6582 | else | |
6583 | if test -n "$LIPO"; then | |
6584 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6585 | else | |
6586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6587 | for as_dir in $PATH | |
6588 | do | |
6589 | IFS=$as_save_IFS | |
6590 | test -z "$as_dir" && as_dir=. | |
6591 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6592 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6593 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
6594 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6595 | break 2 | |
6596 | fi | |
6597 | done | |
6598 | done | |
6599 | IFS=$as_save_IFS | |
d9898ee8 | 6600 | |
8d138742 CE |
6601 | fi |
6602 | fi | |
6603 | LIPO=$ac_cv_prog_LIPO | |
6604 | if test -n "$LIPO"; then | |
6605 | { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 | |
6606 | $as_echo "$LIPO" >&6; } | |
6607 | else | |
6608 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6609 | $as_echo "no" >&6; } | |
6610 | fi | |
d9898ee8 | 6611 | |
d9898ee8 | 6612 | |
d9898ee8 | 6613 | fi |
8d138742 CE |
6614 | if test -z "$ac_cv_prog_LIPO"; then |
6615 | ac_ct_LIPO=$LIPO | |
6616 | # Extract the first word of "lipo", so it can be a program name with args. | |
6617 | set dummy lipo; ac_word=$2 | |
6618 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6619 | $as_echo_n "checking for $ac_word... " >&6; } | |
6620 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
6621 | $as_echo_n "(cached) " >&6 | |
6622 | else | |
6623 | if test -n "$ac_ct_LIPO"; then | |
6624 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6625 | else | |
6626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6627 | for as_dir in $PATH | |
6628 | do | |
6629 | IFS=$as_save_IFS | |
6630 | test -z "$as_dir" && as_dir=. | |
6631 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6632 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6633 | ac_cv_prog_ac_ct_LIPO="lipo" | |
6634 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6635 | break 2 | |
6636 | fi | |
d9898ee8 | 6637 | done |
8d138742 CE |
6638 | done |
6639 | IFS=$as_save_IFS | |
d9898ee8 | 6640 | |
8d138742 CE |
6641 | fi |
6642 | fi | |
6643 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6644 | if test -n "$ac_ct_LIPO"; then | |
6645 | { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
6646 | $as_echo "$ac_ct_LIPO" >&6; } | |
d9898ee8 | 6647 | else |
8d138742 CE |
6648 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6649 | $as_echo "no" >&6; } | |
6650 | fi | |
d9898ee8 | 6651 | |
8d138742 CE |
6652 | if test "x$ac_ct_LIPO" = x; then |
6653 | LIPO=":" | |
6654 | else | |
6655 | case $cross_compiling:$ac_tool_warned in | |
6656 | yes:) | |
6657 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6658 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6659 | ac_tool_warned=yes ;; | |
d9898ee8 | 6660 | esac |
8d138742 CE |
6661 | LIPO=$ac_ct_LIPO |
6662 | fi | |
6663 | else | |
6664 | LIPO="$ac_cv_prog_LIPO" | |
d9898ee8 | 6665 | fi |
6666 | ||
8d138742 CE |
6667 | if test -n "$ac_tool_prefix"; then |
6668 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6669 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
6670 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6671 | $as_echo_n "checking for $ac_word... " >&6; } | |
6672 | if test "${ac_cv_prog_OTOOL+set}" = set; then | |
6673 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6674 | else |
8d138742 CE |
6675 | if test -n "$OTOOL"; then |
6676 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6677 | else | |
6678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6679 | for as_dir in $PATH | |
6680 | do | |
6681 | IFS=$as_save_IFS | |
6682 | test -z "$as_dir" && as_dir=. | |
6683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6685 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
6686 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6687 | break 2 | |
6688 | fi | |
6689 | done | |
6690 | done | |
6691 | IFS=$as_save_IFS | |
d9898ee8 | 6692 | |
8d138742 CE |
6693 | fi |
6694 | fi | |
6695 | OTOOL=$ac_cv_prog_OTOOL | |
6696 | if test -n "$OTOOL"; then | |
6697 | { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
6698 | $as_echo "$OTOOL" >&6; } | |
d9898ee8 | 6699 | else |
8d138742 CE |
6700 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6701 | $as_echo "no" >&6; } | |
6702 | fi | |
d9898ee8 | 6703 | |
d9898ee8 | 6704 | |
d9898ee8 | 6705 | fi |
8d138742 CE |
6706 | if test -z "$ac_cv_prog_OTOOL"; then |
6707 | ac_ct_OTOOL=$OTOOL | |
6708 | # Extract the first word of "otool", so it can be a program name with args. | |
6709 | set dummy otool; ac_word=$2 | |
6710 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6711 | $as_echo_n "checking for $ac_word... " >&6; } | |
6712 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
6713 | $as_echo_n "(cached) " >&6 | |
6714 | else | |
6715 | if test -n "$ac_ct_OTOOL"; then | |
6716 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
6717 | else | |
6718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6719 | for as_dir in $PATH | |
6720 | do | |
6721 | IFS=$as_save_IFS | |
6722 | test -z "$as_dir" && as_dir=. | |
6723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6724 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6725 | ac_cv_prog_ac_ct_OTOOL="otool" | |
6726 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6727 | break 2 | |
6728 | fi | |
6729 | done | |
6730 | done | |
6731 | IFS=$as_save_IFS | |
d9898ee8 | 6732 | |
8d138742 CE |
6733 | fi |
6734 | fi | |
6735 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
6736 | if test -n "$ac_ct_OTOOL"; then | |
6737 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
6738 | $as_echo "$ac_ct_OTOOL" >&6; } | |
d9898ee8 | 6739 | else |
8d138742 CE |
6740 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6741 | $as_echo "no" >&6; } | |
d9898ee8 | 6742 | fi |
6743 | ||
8d138742 CE |
6744 | if test "x$ac_ct_OTOOL" = x; then |
6745 | OTOOL=":" | |
d9898ee8 | 6746 | else |
8d138742 CE |
6747 | case $cross_compiling:$ac_tool_warned in |
6748 | yes:) | |
6749 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6750 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6751 | ac_tool_warned=yes ;; | |
6752 | esac | |
6753 | OTOOL=$ac_ct_OTOOL | |
d9898ee8 | 6754 | fi |
8d138742 CE |
6755 | else |
6756 | OTOOL="$ac_cv_prog_OTOOL" | |
d9898ee8 | 6757 | fi |
6758 | ||
8d138742 CE |
6759 | if test -n "$ac_tool_prefix"; then |
6760 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6761 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
6762 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6763 | $as_echo_n "checking for $ac_word... " >&6; } | |
6764 | if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
6765 | $as_echo_n "(cached) " >&6 | |
6766 | else | |
6767 | if test -n "$OTOOL64"; then | |
6768 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
6769 | else | |
6770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6771 | for as_dir in $PATH | |
6772 | do | |
6773 | IFS=$as_save_IFS | |
6774 | test -z "$as_dir" && as_dir=. | |
6775 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6776 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6777 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
6778 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6779 | break 2 | |
d9898ee8 | 6780 | fi |
8d138742 CE |
6781 | done |
6782 | done | |
6783 | IFS=$as_save_IFS | |
d9898ee8 | 6784 | |
8d138742 CE |
6785 | fi |
6786 | fi | |
6787 | OTOOL64=$ac_cv_prog_OTOOL64 | |
6788 | if test -n "$OTOOL64"; then | |
6789 | { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
6790 | $as_echo "$OTOOL64" >&6; } | |
6791 | else | |
6792 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6793 | $as_echo "no" >&6; } | |
dd184caf | 6794 | fi |
d9898ee8 | 6795 | |
d9898ee8 | 6796 | |
8d138742 CE |
6797 | fi |
6798 | if test -z "$ac_cv_prog_OTOOL64"; then | |
6799 | ac_ct_OTOOL64=$OTOOL64 | |
6800 | # Extract the first word of "otool64", so it can be a program name with args. | |
6801 | set dummy otool64; ac_word=$2 | |
6802 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6803 | $as_echo_n "checking for $ac_word... " >&6; } | |
6804 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
6805 | $as_echo_n "(cached) " >&6 | |
6806 | else | |
6807 | if test -n "$ac_ct_OTOOL64"; then | |
6808 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6809 | else | |
6810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6811 | for as_dir in $PATH | |
6812 | do | |
6813 | IFS=$as_save_IFS | |
6814 | test -z "$as_dir" && as_dir=. | |
6815 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6816 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6817 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
6818 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6819 | break 2 | |
6820 | fi | |
6821 | done | |
6822 | done | |
6823 | IFS=$as_save_IFS | |
d9898ee8 | 6824 | |
8d138742 CE |
6825 | fi |
6826 | fi | |
6827 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
6828 | if test -n "$ac_ct_OTOOL64"; then | |
6829 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
6830 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
d9898ee8 | 6831 | else |
8d138742 CE |
6832 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6833 | $as_echo "no" >&6; } | |
dd184caf | 6834 | fi |
6835 | ||
8d138742 CE |
6836 | if test "x$ac_ct_OTOOL64" = x; then |
6837 | OTOOL64=":" | |
6838 | else | |
6839 | case $cross_compiling:$ac_tool_warned in | |
6840 | yes:) | |
6841 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6842 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6843 | ac_tool_warned=yes ;; | |
6844 | esac | |
6845 | OTOOL64=$ac_ct_OTOOL64 | |
6846 | fi | |
6847 | else | |
6848 | OTOOL64="$ac_cv_prog_OTOOL64" | |
6849 | fi | |
d9898ee8 | 6850 | |
d9898ee8 | 6851 | |
6852 | ||
d9898ee8 | 6853 | |
d9898ee8 | 6854 | |
d9898ee8 | 6855 | |
d9898ee8 | 6856 | |
6857 | ||
d9898ee8 | 6858 | |
d9898ee8 | 6859 | |
d9898ee8 | 6860 | |
6861 | ||
d9898ee8 | 6862 | |
d9898ee8 | 6863 | |
6864 | ||
6865 | ||
d9898ee8 | 6866 | |
d9898ee8 | 6867 | |
6868 | ||
d9898ee8 | 6869 | |
d9898ee8 | 6870 | |
d9898ee8 | 6871 | |
d9898ee8 | 6872 | |
d9898ee8 | 6873 | |
d9898ee8 | 6874 | |
d9898ee8 | 6875 | |
8d138742 CE |
6876 | |
6877 | { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 | |
6878 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
6879 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
6880 | $as_echo_n "(cached) " >&6 | |
6881 | else | |
6882 | lt_cv_apple_cc_single_mod=no | |
6883 | if test -z "${LT_MULTI_MODULE}"; then | |
6884 | # By default we will add the -single_module flag. You can override | |
6885 | # by either setting the environment variable LT_MULTI_MODULE | |
6886 | # non-empty at configure time, or by adding -multi_module to the | |
6887 | # link flags. | |
6888 | rm -rf libconftest.dylib* | |
6889 | echo "int foo(void){return 1;}" > conftest.c | |
6890 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6891 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
6892 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6893 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
6894 | _lt_result=$? | |
6895 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
6896 | lt_cv_apple_cc_single_mod=yes | |
6897 | else | |
6898 | cat conftest.err >&5 | |
6899 | fi | |
6900 | rm -rf libconftest.dylib* | |
6901 | rm -f conftest.* | |
d9898ee8 | 6902 | fi |
8d138742 CE |
6903 | fi |
6904 | { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 | |
6905 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
6906 | { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
6907 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
6908 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
6909 | $as_echo_n "(cached) " >&6 | |
6910 | else | |
6911 | lt_cv_ld_exported_symbols_list=no | |
6912 | save_LDFLAGS=$LDFLAGS | |
6913 | echo "_main" > conftest.sym | |
6914 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
6915 | cat >conftest.$ac_ext <<_ACEOF | |
6916 | /* confdefs.h. */ | |
6917 | _ACEOF | |
6918 | cat confdefs.h >>conftest.$ac_ext | |
6919 | cat >>conftest.$ac_ext <<_ACEOF | |
6920 | /* end confdefs.h. */ | |
d9898ee8 | 6921 | |
8d138742 CE |
6922 | int |
6923 | main () | |
6924 | { | |
d9898ee8 | 6925 | |
8d138742 CE |
6926 | ; |
6927 | return 0; | |
6928 | } | |
6929 | _ACEOF | |
6930 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6931 | if { (ac_try="$ac_link" | |
6932 | case "(($ac_try" in | |
6933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6934 | *) ac_try_echo=$ac_try;; | |
6935 | esac | |
6936 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6937 | $as_echo "$ac_try_echo") >&5 | |
6938 | (eval "$ac_link") 2>conftest.er1 | |
6939 | ac_status=$? | |
6940 | grep -v '^ *+' conftest.er1 >conftest.err | |
6941 | rm -f conftest.er1 | |
6942 | cat conftest.err >&5 | |
6943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6944 | (exit $ac_status); } && { | |
6945 | test -z "$ac_c_werror_flag" || | |
6946 | test ! -s conftest.err | |
6947 | } && test -s conftest$ac_exeext && { | |
6948 | test "$cross_compiling" = yes || | |
6949 | $as_test_x conftest$ac_exeext | |
6950 | }; then | |
6951 | lt_cv_ld_exported_symbols_list=yes | |
6952 | else | |
6953 | $as_echo "$as_me: failed program was:" >&5 | |
6954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6955 | |
8d138742 CE |
6956 | lt_cv_ld_exported_symbols_list=no |
6957 | fi | |
d9898ee8 | 6958 | |
8d138742 CE |
6959 | rm -rf conftest.dSYM |
6960 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6961 | conftest$ac_exeext conftest.$ac_ext | |
6962 | LDFLAGS="$save_LDFLAGS" | |
d9898ee8 | 6963 | |
8d138742 CE |
6964 | fi |
6965 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6966 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
6967 | case $host_os in | |
6968 | rhapsody* | darwin1.[012]) | |
6969 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
6970 | darwin1.*) | |
6971 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6972 | darwin*) # darwin 5.x on | |
6973 | # if running on 10.5 or later, the deployment target defaults | |
6974 | # to the OS version, if on x86, and 10.4, the deployment | |
6975 | # target defaults to 10.4. Don't you love it? | |
6976 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
6977 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
6978 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6979 | 10.[012]*) | |
6980 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6981 | 10.*) | |
6982 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6983 | esac | |
6984 | ;; | |
6985 | esac | |
6986 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6987 | _lt_dar_single_mod='$single_module' | |
6988 | fi | |
6989 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6990 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6991 | else | |
6992 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6993 | fi | |
6994 | if test "$DSYMUTIL" != ":"; then | |
6995 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6996 | else | |
6997 | _lt_dsymutil= | |
6998 | fi | |
6999 | ;; | |
7000 | esac | |
d9898ee8 | 7001 | |
d9898ee8 | 7002 | |
8d138742 CE |
7003 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
7004 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7005 | if test "${ac_cv_header_stdc+set}" = set; then | |
7006 | $as_echo_n "(cached) " >&6 | |
7007 | else | |
7008 | cat >conftest.$ac_ext <<_ACEOF | |
7009 | /* confdefs.h. */ | |
7010 | _ACEOF | |
7011 | cat confdefs.h >>conftest.$ac_ext | |
7012 | cat >>conftest.$ac_ext <<_ACEOF | |
7013 | /* end confdefs.h. */ | |
7014 | #include <stdlib.h> | |
7015 | #include <stdarg.h> | |
7016 | #include <string.h> | |
7017 | #include <float.h> | |
d9898ee8 | 7018 | |
8d138742 CE |
7019 | int |
7020 | main () | |
7021 | { | |
d9898ee8 | 7022 | |
8d138742 CE |
7023 | ; |
7024 | return 0; | |
7025 | } | |
7026 | _ACEOF | |
7027 | rm -f conftest.$ac_objext | |
7028 | if { (ac_try="$ac_compile" | |
7029 | case "(($ac_try" in | |
7030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7031 | *) ac_try_echo=$ac_try;; | |
7032 | esac | |
7033 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7034 | $as_echo "$ac_try_echo") >&5 | |
7035 | (eval "$ac_compile") 2>conftest.er1 | |
7036 | ac_status=$? | |
7037 | grep -v '^ *+' conftest.er1 >conftest.err | |
7038 | rm -f conftest.er1 | |
7039 | cat conftest.err >&5 | |
7040 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7041 | (exit $ac_status); } && { | |
7042 | test -z "$ac_c_werror_flag" || | |
7043 | test ! -s conftest.err | |
7044 | } && test -s conftest.$ac_objext; then | |
7045 | ac_cv_header_stdc=yes | |
7046 | else | |
7047 | $as_echo "$as_me: failed program was:" >&5 | |
7048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 7049 | |
8d138742 CE |
7050 | ac_cv_header_stdc=no |
7051 | fi | |
d9898ee8 | 7052 | |
8d138742 | 7053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 7054 | |
8d138742 CE |
7055 | if test $ac_cv_header_stdc = yes; then |
7056 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7057 | cat >conftest.$ac_ext <<_ACEOF | |
7058 | /* confdefs.h. */ | |
7059 | _ACEOF | |
7060 | cat confdefs.h >>conftest.$ac_ext | |
7061 | cat >>conftest.$ac_ext <<_ACEOF | |
7062 | /* end confdefs.h. */ | |
7063 | #include <string.h> | |
d9898ee8 | 7064 | |
8d138742 CE |
7065 | _ACEOF |
7066 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7067 | $EGREP "memchr" >/dev/null 2>&1; then | |
7068 | : | |
7069 | else | |
7070 | ac_cv_header_stdc=no | |
7071 | fi | |
7072 | rm -f conftest* | |
d9898ee8 | 7073 | |
8d138742 | 7074 | fi |
d9898ee8 | 7075 | |
8d138742 CE |
7076 | if test $ac_cv_header_stdc = yes; then |
7077 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7078 | cat >conftest.$ac_ext <<_ACEOF | |
7079 | /* confdefs.h. */ | |
7080 | _ACEOF | |
7081 | cat confdefs.h >>conftest.$ac_ext | |
7082 | cat >>conftest.$ac_ext <<_ACEOF | |
7083 | /* end confdefs.h. */ | |
7084 | #include <stdlib.h> | |
ac40fd9e | 7085 | |
8d138742 CE |
7086 | _ACEOF |
7087 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7088 | $EGREP "free" >/dev/null 2>&1; then | |
7089 | : | |
7090 | else | |
7091 | ac_cv_header_stdc=no | |
7092 | fi | |
7093 | rm -f conftest* | |
d9898ee8 | 7094 | |
8d138742 | 7095 | fi |
d9898ee8 | 7096 | |
8d138742 CE |
7097 | if test $ac_cv_header_stdc = yes; then |
7098 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7099 | if test "$cross_compiling" = yes; then | |
7100 | : | |
7101 | else | |
7102 | cat >conftest.$ac_ext <<_ACEOF | |
7103 | /* confdefs.h. */ | |
7104 | _ACEOF | |
7105 | cat confdefs.h >>conftest.$ac_ext | |
7106 | cat >>conftest.$ac_ext <<_ACEOF | |
7107 | /* end confdefs.h. */ | |
7108 | #include <ctype.h> | |
7109 | #include <stdlib.h> | |
7110 | #if ((' ' & 0x0FF) == 0x020) | |
7111 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7112 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7113 | #else | |
7114 | # define ISLOWER(c) \ | |
7115 | (('a' <= (c) && (c) <= 'i') \ | |
7116 | || ('j' <= (c) && (c) <= 'r') \ | |
7117 | || ('s' <= (c) && (c) <= 'z')) | |
7118 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7119 | #endif | |
d9898ee8 | 7120 | |
8d138742 CE |
7121 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7122 | int | |
7123 | main () | |
7124 | { | |
7125 | int i; | |
7126 | for (i = 0; i < 256; i++) | |
7127 | if (XOR (islower (i), ISLOWER (i)) | |
7128 | || toupper (i) != TOUPPER (i)) | |
7129 | return 2; | |
7130 | return 0; | |
7131 | } | |
7132 | _ACEOF | |
7133 | rm -f conftest$ac_exeext | |
7134 | if { (ac_try="$ac_link" | |
7135 | case "(($ac_try" in | |
7136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7137 | *) ac_try_echo=$ac_try;; | |
7138 | esac | |
7139 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7140 | $as_echo "$ac_try_echo") >&5 | |
7141 | (eval "$ac_link") 2>&5 | |
7142 | ac_status=$? | |
7143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7144 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7145 | { (case "(($ac_try" in | |
7146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7147 | *) ac_try_echo=$ac_try;; | |
7148 | esac | |
7149 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7150 | $as_echo "$ac_try_echo") >&5 | |
7151 | (eval "$ac_try") 2>&5 | |
7152 | ac_status=$? | |
7153 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7154 | (exit $ac_status); }; }; then | |
7155 | : | |
7156 | else | |
7157 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
7158 | $as_echo "$as_me: failed program was:" >&5 | |
7159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 7160 | |
8d138742 CE |
7161 | ( exit $ac_status ) |
7162 | ac_cv_header_stdc=no | |
7163 | fi | |
7164 | rm -rf conftest.dSYM | |
7165 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7166 | fi | |
d9898ee8 | 7167 | |
d9898ee8 | 7168 | |
8d138742 CE |
7169 | fi |
7170 | fi | |
7171 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
7172 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7173 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 7174 | |
8d138742 CE |
7175 | cat >>confdefs.h <<\_ACEOF |
7176 | #define STDC_HEADERS 1 | |
7177 | _ACEOF | |
d9898ee8 | 7178 | |
8d138742 | 7179 | fi |
d9898ee8 | 7180 | |
8d138742 | 7181 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
d9898ee8 | 7182 | |
d9898ee8 | 7183 | |
d9898ee8 | 7184 | |
d9898ee8 | 7185 | |
d9898ee8 | 7186 | |
d9898ee8 | 7187 | |
d9898ee8 | 7188 | |
d9898ee8 | 7189 | |
7190 | ||
8d138742 CE |
7191 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7192 | inttypes.h stdint.h unistd.h | |
7193 | do | |
7194 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7195 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7196 | $as_echo_n "checking for $ac_header... " >&6; } | |
7197 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7198 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 7199 | else |
8d138742 CE |
7200 | cat >conftest.$ac_ext <<_ACEOF |
7201 | /* confdefs.h. */ | |
7202 | _ACEOF | |
7203 | cat confdefs.h >>conftest.$ac_ext | |
7204 | cat >>conftest.$ac_ext <<_ACEOF | |
7205 | /* end confdefs.h. */ | |
7206 | $ac_includes_default | |
d9898ee8 | 7207 | |
8d138742 CE |
7208 | #include <$ac_header> |
7209 | _ACEOF | |
7210 | rm -f conftest.$ac_objext | |
7211 | if { (ac_try="$ac_compile" | |
7212 | case "(($ac_try" in | |
7213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7214 | *) ac_try_echo=$ac_try;; | |
7215 | esac | |
7216 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7217 | $as_echo "$ac_try_echo") >&5 | |
7218 | (eval "$ac_compile") 2>conftest.er1 | |
7219 | ac_status=$? | |
7220 | grep -v '^ *+' conftest.er1 >conftest.err | |
7221 | rm -f conftest.er1 | |
7222 | cat conftest.err >&5 | |
7223 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7224 | (exit $ac_status); } && { | |
7225 | test -z "$ac_c_werror_flag" || | |
7226 | test ! -s conftest.err | |
7227 | } && test -s conftest.$ac_objext; then | |
7228 | eval "$as_ac_Header=yes" | |
7229 | else | |
7230 | $as_echo "$as_me: failed program was:" >&5 | |
7231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7232 | ||
7233 | eval "$as_ac_Header=no" | |
7234 | fi | |
d9898ee8 | 7235 | |
8d138742 | 7236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 7237 | fi |
8d138742 CE |
7238 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7239 | $as_echo "$as_val"'` | |
7240 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7241 | $as_echo "$ac_res" >&6; } | |
7242 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
7243 | $as_echo "$as_val"'` | |
7244 | if test "x$as_val" = x""yes; then | |
7245 | cat >>confdefs.h <<_ACEOF | |
7246 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7247 | _ACEOF | |
d9898ee8 | 7248 | |
8d138742 | 7249 | fi |
d9898ee8 | 7250 | |
8d138742 CE |
7251 | done |
7252 | ||
7253 | ||
7254 | ||
7255 | for ac_header in dlfcn.h | |
7256 | do | |
7257 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7258 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7259 | $as_echo_n "checking for $ac_header... " >&6; } | |
7260 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7261 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 7262 | else |
8d138742 CE |
7263 | cat >conftest.$ac_ext <<_ACEOF |
7264 | /* confdefs.h. */ | |
7265 | _ACEOF | |
7266 | cat confdefs.h >>conftest.$ac_ext | |
7267 | cat >>conftest.$ac_ext <<_ACEOF | |
7268 | /* end confdefs.h. */ | |
7269 | $ac_includes_default | |
7270 | ||
7271 | #include <$ac_header> | |
7272 | _ACEOF | |
7273 | rm -f conftest.$ac_objext | |
7274 | if { (ac_try="$ac_compile" | |
7275 | case "(($ac_try" in | |
7276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7277 | *) ac_try_echo=$ac_try;; | |
7278 | esac | |
7279 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7280 | $as_echo "$ac_try_echo") >&5 | |
7281 | (eval "$ac_compile") 2>conftest.er1 | |
7282 | ac_status=$? | |
7283 | grep -v '^ *+' conftest.er1 >conftest.err | |
7284 | rm -f conftest.er1 | |
7285 | cat conftest.err >&5 | |
7286 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7287 | (exit $ac_status); } && { | |
7288 | test -z "$ac_c_werror_flag" || | |
7289 | test ! -s conftest.err | |
7290 | } && test -s conftest.$ac_objext; then | |
7291 | eval "$as_ac_Header=yes" | |
7292 | else | |
7293 | $as_echo "$as_me: failed program was:" >&5 | |
7294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7295 | ||
7296 | eval "$as_ac_Header=no" | |
d9898ee8 | 7297 | fi |
7298 | ||
8d138742 CE |
7299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7300 | fi | |
7301 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7302 | $as_echo "$as_val"'` | |
7303 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7304 | $as_echo "$ac_res" >&6; } | |
7305 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
7306 | $as_echo "$as_val"'` | |
7307 | if test "x$as_val" = x""yes; then | |
7308 | cat >>confdefs.h <<_ACEOF | |
7309 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7310 | _ACEOF | |
7311 | ||
7312 | fi | |
d9898ee8 | 7313 | |
d9898ee8 | 7314 | done |
d9898ee8 | 7315 | |
d9898ee8 | 7316 | |
d9898ee8 | 7317 | |
8d138742 CE |
7318 | # Set options |
7319 | enable_dlopen=yes | |
d9898ee8 | 7320 | |
d9898ee8 | 7321 | |
d9898ee8 | 7322 | |
d9898ee8 | 7323 | |
8d138742 | 7324 | enable_win32_dll=no |
d9898ee8 | 7325 | |
d9898ee8 | 7326 | |
8d138742 CE |
7327 | # Check whether --enable-shared was given. |
7328 | if test "${enable_shared+set}" = set; then | |
7329 | enableval=$enable_shared; p=${PACKAGE-default} | |
7330 | case $enableval in | |
7331 | yes) enable_shared=yes ;; | |
7332 | no) enable_shared=no ;; | |
7333 | *) | |
7334 | enable_shared=no | |
7335 | # Look at the argument we got. We use all the common list separators. | |
7336 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7337 | for pkg in $enableval; do | |
7338 | IFS="$lt_save_ifs" | |
7339 | if test "X$pkg" = "X$p"; then | |
7340 | enable_shared=yes | |
7341 | fi | |
7342 | done | |
7343 | IFS="$lt_save_ifs" | |
d9898ee8 | 7344 | ;; |
8d138742 CE |
7345 | esac |
7346 | else | |
7347 | enable_shared=yes | |
7348 | fi | |
7349 | ||
7350 | ||
d9898ee8 | 7351 | |
d9898ee8 | 7352 | |
d9898ee8 | 7353 | |
d9898ee8 | 7354 | |
d9898ee8 | 7355 | |
8d138742 CE |
7356 | |
7357 | ||
7358 | # Check whether --enable-static was given. | |
7359 | if test "${enable_static+set}" = set; then | |
7360 | enableval=$enable_static; p=${PACKAGE-default} | |
7361 | case $enableval in | |
7362 | yes) enable_static=yes ;; | |
7363 | no) enable_static=no ;; | |
7364 | *) | |
7365 | enable_static=no | |
7366 | # Look at the argument we got. We use all the common list separators. | |
7367 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7368 | for pkg in $enableval; do | |
7369 | IFS="$lt_save_ifs" | |
7370 | if test "X$pkg" = "X$p"; then | |
7371 | enable_static=yes | |
d9898ee8 | 7372 | fi |
8d138742 CE |
7373 | done |
7374 | IFS="$lt_save_ifs" | |
d9898ee8 | 7375 | ;; |
8d138742 CE |
7376 | esac |
7377 | else | |
7378 | enable_static=yes | |
7379 | fi | |
d9898ee8 | 7380 | |
d9898ee8 | 7381 | |
d9898ee8 | 7382 | |
d9898ee8 | 7383 | |
d9898ee8 | 7384 | |
d9898ee8 | 7385 | |
d9898ee8 | 7386 | |
d9898ee8 | 7387 | |
d9898ee8 | 7388 | |
8d138742 CE |
7389 | |
7390 | # Check whether --with-pic was given. | |
7391 | if test "${with_pic+set}" = set; then | |
7392 | withval=$with_pic; pic_mode="$withval" | |
7393 | else | |
7394 | pic_mode=default | |
7395 | fi | |
7396 | ||
7397 | ||
7398 | test -z "$pic_mode" && pic_mode=default | |
7399 | ||
7400 | ||
7401 | ||
7402 | ||
7403 | ||
7404 | ||
7405 | ||
7406 | # Check whether --enable-fast-install was given. | |
7407 | if test "${enable_fast_install+set}" = set; then | |
7408 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
7409 | case $enableval in | |
7410 | yes) enable_fast_install=yes ;; | |
7411 | no) enable_fast_install=no ;; | |
d9898ee8 | 7412 | *) |
8d138742 CE |
7413 | enable_fast_install=no |
7414 | # Look at the argument we got. We use all the common list separators. | |
7415 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7416 | for pkg in $enableval; do | |
7417 | IFS="$lt_save_ifs" | |
7418 | if test "X$pkg" = "X$p"; then | |
7419 | enable_fast_install=yes | |
7420 | fi | |
7421 | done | |
7422 | IFS="$lt_save_ifs" | |
d9898ee8 | 7423 | ;; |
7424 | esac | |
8d138742 CE |
7425 | else |
7426 | enable_fast_install=yes | |
7427 | fi | |
d9898ee8 | 7428 | |
d9898ee8 | 7429 | |
d9898ee8 | 7430 | |
d9898ee8 | 7431 | |
d9898ee8 | 7432 | |
d9898ee8 | 7433 | |
d9898ee8 | 7434 | |
d9898ee8 | 7435 | |
d9898ee8 | 7436 | |
d9898ee8 | 7437 | |
d9898ee8 | 7438 | |
8d138742 CE |
7439 | # This can be used to rebuild libtool when needed |
7440 | LIBTOOL_DEPS="$ltmain" | |
d9898ee8 | 7441 | |
8d138742 CE |
7442 | # Always use our own libtool. |
7443 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
dd184caf | 7444 | |
dd184caf | 7445 | |
d9898ee8 | 7446 | |
d9898ee8 | 7447 | |
d9898ee8 | 7448 | |
d9898ee8 | 7449 | |
d9898ee8 | 7450 | |
dd184caf | 7451 | |
dd184caf | 7452 | |
d9898ee8 | 7453 | |
d9898ee8 | 7454 | |
d9898ee8 | 7455 | |
d9898ee8 | 7456 | |
d9898ee8 | 7457 | |
d9898ee8 | 7458 | |
d9898ee8 | 7459 | |
d9898ee8 | 7460 | |
d9898ee8 | 7461 | |
d9898ee8 | 7462 | |
d9898ee8 | 7463 | |
d9898ee8 | 7464 | |
d9898ee8 | 7465 | |
d9898ee8 | 7466 | |
d9898ee8 | 7467 | |
d9898ee8 | 7468 | |
8d138742 | 7469 | test -z "$LN_S" && LN_S="ln -s" |
d9898ee8 | 7470 | |
d9898ee8 | 7471 | |
d9898ee8 | 7472 | |
d9898ee8 | 7473 | |
d9898ee8 | 7474 | |
d9898ee8 | 7475 | |
d9898ee8 | 7476 | |
d9898ee8 | 7477 | |
d9898ee8 | 7478 | |
d9898ee8 | 7479 | |
d9898ee8 | 7480 | |
d9898ee8 | 7481 | |
d9898ee8 | 7482 | |
d9898ee8 | 7483 | |
8d138742 CE |
7484 | if test -n "${ZSH_VERSION+set}" ; then |
7485 | setopt NO_GLOB_SUBST | |
7486 | fi | |
d9898ee8 | 7487 | |
8d138742 CE |
7488 | { $as_echo "$as_me:$LINENO: checking for objdir" >&5 |
7489 | $as_echo_n "checking for objdir... " >&6; } | |
7490 | if test "${lt_cv_objdir+set}" = set; then | |
7491 | $as_echo_n "(cached) " >&6 | |
7492 | else | |
7493 | rm -f .libs 2>/dev/null | |
7494 | mkdir .libs 2>/dev/null | |
7495 | if test -d .libs; then | |
7496 | lt_cv_objdir=.libs | |
7497 | else | |
7498 | # MS-DOS does not allow filenames that begin with a dot. | |
7499 | lt_cv_objdir=_libs | |
7500 | fi | |
7501 | rmdir .libs 2>/dev/null | |
7502 | fi | |
7503 | { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
7504 | $as_echo "$lt_cv_objdir" >&6; } | |
7505 | objdir=$lt_cv_objdir | |
d9898ee8 | 7506 | |
d9898ee8 | 7507 | |
d9898ee8 | 7508 | |
d9898ee8 | 7509 | |
d9898ee8 | 7510 | |
8d138742 CE |
7511 | cat >>confdefs.h <<_ACEOF |
7512 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7513 | _ACEOF | |
d9898ee8 | 7514 | |
d9898ee8 | 7515 | |
d9898ee8 | 7516 | |
d9898ee8 | 7517 | |
d9898ee8 | 7518 | |
8d138742 CE |
7519 | |
7520 | ||
7521 | ||
7522 | ||
7523 | ||
7524 | ||
7525 | ||
7526 | ||
7527 | ||
7528 | ||
7529 | ||
7530 | ||
7531 | case $host_os in | |
7532 | aix3*) | |
7533 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7534 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7535 | # vanish in a puff of smoke. | |
7536 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7537 | COLLECT_NAMES= | |
7538 | export COLLECT_NAMES | |
d9898ee8 | 7539 | fi |
7540 | ;; | |
7541 | esac | |
7542 | ||
8d138742 CE |
7543 | # Sed substitution that helps us do robust quoting. It backslashifies |
7544 | # metacharacters that are still active within double-quoted strings. | |
7545 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
ac40fd9e | 7546 | |
8d138742 CE |
7547 | # Same as above, but do not quote variable references. |
7548 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
7549 | ||
7550 | # Sed substitution to delay expansion of an escaped shell variable in a | |
7551 | # double_quote_subst'ed string. | |
7552 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
7553 | ||
7554 | # Sed substitution to delay expansion of an escaped single quote. | |
7555 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
7556 | ||
7557 | # Sed substitution to avoid accidental globbing in evaled expressions | |
7558 | no_glob_subst='s/\*/\\\*/g' | |
7559 | ||
7560 | # Global variables: | |
7561 | ofile=libtool | |
7562 | can_build_shared=yes | |
7563 | ||
7564 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
7565 | # which needs '.lib'). | |
7566 | libext=a | |
7567 | ||
7568 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7569 | ||
7570 | old_CC="$CC" | |
7571 | old_CFLAGS="$CFLAGS" | |
7572 | ||
7573 | # Set sane defaults for various variables | |
7574 | test -z "$CC" && CC=cc | |
7575 | test -z "$LTCC" && LTCC=$CC | |
7576 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7577 | test -z "$LD" && LD=ld | |
7578 | test -z "$ac_objext" && ac_objext=o | |
7579 | ||
7580 | for cc_temp in $compiler""; do | |
7581 | case $cc_temp in | |
7582 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7583 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7584 | \-*) ;; | |
7585 | *) break;; | |
7586 | esac | |
7587 | done | |
7588 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7589 | ||
7590 | ||
7591 | # Only perform the check for file, if the check method requires it | |
7592 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7593 | case $deplibs_check_method in | |
7594 | file_magic*) | |
7595 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7596 | { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
7597 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7598 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7599 | $as_echo_n "(cached) " >&6 | |
7600 | else | |
7601 | case $MAGIC_CMD in | |
7602 | [\\/*] | ?:[\\/]*) | |
7603 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7604 | ;; | |
7605 | *) | |
7606 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7607 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7608 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7609 | for ac_dir in $ac_dummy; do | |
7610 | IFS="$lt_save_ifs" | |
7611 | test -z "$ac_dir" && ac_dir=. | |
7612 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7613 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7614 | if test -n "$file_magic_test_file"; then | |
7615 | case $deplibs_check_method in | |
7616 | "file_magic "*) | |
7617 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7618 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7619 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7620 | $EGREP "$file_magic_regex" > /dev/null; then | |
7621 | : | |
7622 | else | |
7623 | cat <<_LT_EOF 1>&2 | |
7624 | ||
7625 | *** Warning: the command libtool uses to detect shared libraries, | |
7626 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7627 | *** The result is that libtool may fail to recognize shared libraries | |
7628 | *** as such. This will affect the creation of libtool libraries that | |
7629 | *** depend on shared libraries, but programs linked with such libtool | |
7630 | *** libraries will work regardless of this problem. Nevertheless, you | |
7631 | *** may want to report the problem to your system manager and/or to | |
7632 | *** bug-libtool@gnu.org | |
7633 | ||
7634 | _LT_EOF | |
7635 | fi ;; | |
7636 | esac | |
7637 | fi | |
7638 | break | |
ac40fd9e | 7639 | fi |
7640 | done | |
8d138742 CE |
7641 | IFS="$lt_save_ifs" |
7642 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7643 | ;; | |
7644 | esac | |
7645 | fi | |
7646 | ||
7647 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7648 | if test -n "$MAGIC_CMD"; then | |
7649 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7650 | $as_echo "$MAGIC_CMD" >&6; } | |
d9898ee8 | 7651 | else |
8d138742 CE |
7652 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7653 | $as_echo "no" >&6; } | |
d9898ee8 | 7654 | fi |
d9898ee8 | 7655 | |
d9898ee8 | 7656 | |
d9898ee8 | 7657 | |
8d138742 CE |
7658 | |
7659 | ||
7660 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7661 | if test -n "$ac_tool_prefix"; then | |
7662 | { $as_echo "$as_me:$LINENO: checking for file" >&5 | |
7663 | $as_echo_n "checking for file... " >&6; } | |
7664 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7665 | $as_echo_n "(cached) " >&6 | |
7666 | else | |
7667 | case $MAGIC_CMD in | |
7668 | [\\/*] | ?:[\\/]*) | |
7669 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
d9898ee8 | 7670 | ;; |
8d138742 CE |
7671 | *) |
7672 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7673 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7674 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7675 | for ac_dir in $ac_dummy; do | |
7676 | IFS="$lt_save_ifs" | |
7677 | test -z "$ac_dir" && ac_dir=. | |
7678 | if test -f $ac_dir/file; then | |
7679 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7680 | if test -n "$file_magic_test_file"; then | |
7681 | case $deplibs_check_method in | |
7682 | "file_magic "*) | |
7683 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7684 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7685 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7686 | $EGREP "$file_magic_regex" > /dev/null; then | |
7687 | : | |
7688 | else | |
7689 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 7690 | |
8d138742 CE |
7691 | *** Warning: the command libtool uses to detect shared libraries, |
7692 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7693 | *** The result is that libtool may fail to recognize shared libraries | |
7694 | *** as such. This will affect the creation of libtool libraries that | |
7695 | *** depend on shared libraries, but programs linked with such libtool | |
7696 | *** libraries will work regardless of this problem. Nevertheless, you | |
7697 | *** may want to report the problem to your system manager and/or to | |
7698 | *** bug-libtool@gnu.org | |
7699 | ||
7700 | _LT_EOF | |
7701 | fi ;; | |
7702 | esac | |
d9898ee8 | 7703 | fi |
8d138742 | 7704 | break |
d9898ee8 | 7705 | fi |
8d138742 CE |
7706 | done |
7707 | IFS="$lt_save_ifs" | |
7708 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
d9898ee8 | 7709 | ;; |
8d138742 CE |
7710 | esac |
7711 | fi | |
d9898ee8 | 7712 | |
8d138742 CE |
7713 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7714 | if test -n "$MAGIC_CMD"; then | |
7715 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7716 | $as_echo "$MAGIC_CMD" >&6; } | |
7717 | else | |
7718 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7719 | $as_echo "no" >&6; } | |
7720 | fi | |
d9898ee8 | 7721 | |
d9898ee8 | 7722 | |
8d138742 CE |
7723 | else |
7724 | MAGIC_CMD=: | |
7725 | fi | |
7726 | fi | |
7727 | ||
7728 | fi | |
d9898ee8 | 7729 | ;; |
8d138742 | 7730 | esac |
d9898ee8 | 7731 | |
8d138742 | 7732 | # Use C for the default configuration in the libtool script |
d9898ee8 | 7733 | |
8d138742 CE |
7734 | lt_save_CC="$CC" |
7735 | ac_ext=c | |
7736 | ac_cpp='$CPP $CPPFLAGS' | |
7737 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7738 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7739 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 7740 | |
d9898ee8 | 7741 | |
8d138742 CE |
7742 | # Source file extension for C test sources. |
7743 | ac_ext=c | |
d9898ee8 | 7744 | |
8d138742 CE |
7745 | # Object file extension for compiled C test sources. |
7746 | objext=o | |
7747 | objext=$objext | |
ac40fd9e | 7748 | |
8d138742 CE |
7749 | # Code to be used in simple compile tests |
7750 | lt_simple_compile_test_code="int some_variable = 0;" | |
d9898ee8 | 7751 | |
8d138742 CE |
7752 | # Code to be used in simple link tests |
7753 | lt_simple_link_test_code='int main(){return(0);}' | |
d9898ee8 | 7754 | |
d9898ee8 | 7755 | |
d9898ee8 | 7756 | |
d9898ee8 | 7757 | |
d9898ee8 | 7758 | |
d9898ee8 | 7759 | |
d9898ee8 | 7760 | |
8d138742 CE |
7761 | # If no C compiler was specified, use CC. |
7762 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 7763 | |
8d138742 CE |
7764 | # If no C compiler flags were specified, use CFLAGS. |
7765 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 7766 | |
8d138742 CE |
7767 | # Allow CC to be a program name with arguments. |
7768 | compiler=$CC | |
d9898ee8 | 7769 | |
8d138742 CE |
7770 | # Save the default compiler, since it gets overwritten when the other |
7771 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7772 | compiler_DEFAULT=$CC | |
d9898ee8 | 7773 | |
8d138742 CE |
7774 | # save warnings/boilerplate of simple test code |
7775 | ac_outfile=conftest.$ac_objext | |
7776 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7777 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7778 | _lt_compiler_boilerplate=`cat conftest.err` | |
7779 | $RM conftest* | |
d9898ee8 | 7780 | |
8d138742 CE |
7781 | ac_outfile=conftest.$ac_objext |
7782 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7783 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7784 | _lt_linker_boilerplate=`cat conftest.err` | |
7785 | $RM -r conftest* | |
d9898ee8 | 7786 | |
d9898ee8 | 7787 | |
8d138742 | 7788 | if test -n "$compiler"; then |
d9898ee8 | 7789 | |
8d138742 | 7790 | lt_prog_compiler_no_builtin_flag= |
d9898ee8 | 7791 | |
8d138742 CE |
7792 | if test "$GCC" = yes; then |
7793 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
d9898ee8 | 7794 | |
8d138742 CE |
7795 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7796 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
7797 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
7798 | $as_echo_n "(cached) " >&6 | |
7799 | else | |
7800 | lt_cv_prog_compiler_rtti_exceptions=no | |
7801 | ac_outfile=conftest.$ac_objext | |
7802 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7803 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7804 | # Insert the option either (1) after the last *FLAGS variable, or | |
7805 | # (2) before a word containing "conftest.", or (3) at the end. | |
7806 | # Note that $ac_compile itself does not contain backslashes and begins | |
7807 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7808 | # The option is referenced via a variable to avoid confusing sed. | |
7809 | lt_compile=`echo "$ac_compile" | $SED \ | |
7810 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7811 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7812 | -e 's:$: $lt_compiler_flag:'` | |
7813 | (eval echo "\"\$as_me:7813: $lt_compile\"" >&5) | |
7814 | (eval "$lt_compile" 2>conftest.err) | |
7815 | ac_status=$? | |
7816 | cat conftest.err >&5 | |
7817 | echo "$as_me:7817: \$? = $ac_status" >&5 | |
7818 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
7819 | # The compiler can only warn and ignore the option if not recognized | |
7820 | # So say no if there are warnings other than the usual output. | |
7821 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7822 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7823 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7824 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7825 | fi | |
7826 | fi | |
7827 | $RM conftest* | |
d9898ee8 | 7828 | |
d9898ee8 | 7829 | fi |
8d138742 CE |
7830 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7831 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
d9898ee8 | 7832 | |
8d138742 CE |
7833 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7834 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
d9898ee8 | 7835 | else |
8d138742 | 7836 | : |
d9898ee8 | 7837 | fi |
d9898ee8 | 7838 | |
d9898ee8 | 7839 | fi |
7840 | ||
d9898ee8 | 7841 | |
d9898ee8 | 7842 | |
d9898ee8 | 7843 | |
d9898ee8 | 7844 | |
d9898ee8 | 7845 | |
8d138742 CE |
7846 | lt_prog_compiler_wl= |
7847 | lt_prog_compiler_pic= | |
7848 | lt_prog_compiler_static= | |
d9898ee8 | 7849 | |
8d138742 CE |
7850 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7851 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
d9898ee8 | 7852 | |
8d138742 CE |
7853 | if test "$GCC" = yes; then |
7854 | lt_prog_compiler_wl='-Wl,' | |
7855 | lt_prog_compiler_static='-static' | |
dd184caf | 7856 | |
8d138742 CE |
7857 | case $host_os in |
7858 | aix*) | |
7859 | # All AIX code is PIC. | |
7860 | if test "$host_cpu" = ia64; then | |
7861 | # AIX 5 now supports IA64 processor | |
7862 | lt_prog_compiler_static='-Bstatic' | |
7863 | fi | |
7864 | ;; | |
d9898ee8 | 7865 | |
8d138742 CE |
7866 | amigaos*) |
7867 | case $host_cpu in | |
7868 | powerpc) | |
7869 | # see comment about AmigaOS4 .so support | |
7870 | lt_prog_compiler_pic='-fPIC' | |
7871 | ;; | |
7872 | m68k) | |
7873 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7874 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7875 | # like `-m68040'. | |
7876 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7877 | ;; | |
7878 | esac | |
7879 | ;; | |
d9898ee8 | 7880 | |
8d138742 CE |
7881 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7882 | # PIC is the default for these OSes. | |
7883 | ;; | |
d9898ee8 | 7884 | |
8d138742 CE |
7885 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
7886 | # This hack is so that the source file can tell whether it is being | |
7887 | # built for inclusion in a dll (and should export symbols for example). | |
7888 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7889 | # (--disable-auto-import) libraries | |
7890 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7891 | ;; | |
d9898ee8 | 7892 | |
8d138742 CE |
7893 | darwin* | rhapsody*) |
7894 | # PIC is the default on this platform | |
7895 | # Common symbols not allowed in MH_DYLIB files | |
7896 | lt_prog_compiler_pic='-fno-common' | |
7897 | ;; | |
d9898ee8 | 7898 | |
8d138742 CE |
7899 | hpux*) |
7900 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
7901 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7902 | # sets the default TLS model and affects inlining. | |
7903 | case $host_cpu in | |
7904 | hppa*64*) | |
7905 | # +Z the default | |
7906 | ;; | |
7907 | *) | |
7908 | lt_prog_compiler_pic='-fPIC' | |
7909 | ;; | |
7910 | esac | |
7911 | ;; | |
d9898ee8 | 7912 | |
8d138742 CE |
7913 | interix[3-9]*) |
7914 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7915 | # Instead, we relocate shared libraries at runtime. | |
7916 | ;; | |
d9898ee8 | 7917 | |
8d138742 CE |
7918 | msdosdjgpp*) |
7919 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7920 | # on systems that don't support them. | |
7921 | lt_prog_compiler_can_build_shared=no | |
7922 | enable_shared=no | |
7923 | ;; | |
d9898ee8 | 7924 | |
8d138742 CE |
7925 | *nto* | *qnx*) |
7926 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7927 | # it will coredump. | |
7928 | lt_prog_compiler_pic='-fPIC -shared' | |
7929 | ;; | |
d9898ee8 | 7930 | |
8d138742 CE |
7931 | sysv4*MP*) |
7932 | if test -d /usr/nec; then | |
7933 | lt_prog_compiler_pic=-Kconform_pic | |
7934 | fi | |
7935 | ;; | |
d9898ee8 | 7936 | |
8d138742 CE |
7937 | *) |
7938 | lt_prog_compiler_pic='-fPIC' | |
7939 | ;; | |
7940 | esac | |
7941 | else | |
7942 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7943 | case $host_os in | |
7944 | aix*) | |
7945 | lt_prog_compiler_wl='-Wl,' | |
7946 | if test "$host_cpu" = ia64; then | |
7947 | # AIX 5 now supports IA64 processor | |
7948 | lt_prog_compiler_static='-Bstatic' | |
7949 | else | |
7950 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7951 | fi | |
7952 | ;; | |
dd184caf | 7953 | |
8d138742 CE |
7954 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
7955 | # This hack is so that the source file can tell whether it is being | |
7956 | # built for inclusion in a dll (and should export symbols for example). | |
7957 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7958 | ;; | |
d9898ee8 | 7959 | |
8d138742 CE |
7960 | hpux9* | hpux10* | hpux11*) |
7961 | lt_prog_compiler_wl='-Wl,' | |
7962 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7963 | # not for PA HP-UX. | |
7964 | case $host_cpu in | |
7965 | hppa*64*|ia64*) | |
7966 | # +Z the default | |
7967 | ;; | |
7968 | *) | |
7969 | lt_prog_compiler_pic='+Z' | |
7970 | ;; | |
7971 | esac | |
7972 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7973 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7974 | ;; | |
d9898ee8 | 7975 | |
8d138742 CE |
7976 | irix5* | irix6* | nonstopux*) |
7977 | lt_prog_compiler_wl='-Wl,' | |
7978 | # PIC (with -KPIC) is the default. | |
7979 | lt_prog_compiler_static='-non_shared' | |
7980 | ;; | |
dd184caf | 7981 | |
8d138742 CE |
7982 | linux* | k*bsd*-gnu) |
7983 | case $cc_basename in | |
7984 | # old Intel for x86_64 which still supported -KPIC. | |
7985 | ecc*) | |
7986 | lt_prog_compiler_wl='-Wl,' | |
7987 | lt_prog_compiler_pic='-KPIC' | |
7988 | lt_prog_compiler_static='-static' | |
7989 | ;; | |
7990 | # icc used to be incompatible with GCC. | |
7991 | # ICC 10 doesn't accept -KPIC any more. | |
7992 | icc* | ifort*) | |
7993 | lt_prog_compiler_wl='-Wl,' | |
7994 | lt_prog_compiler_pic='-fPIC' | |
7995 | lt_prog_compiler_static='-static' | |
7996 | ;; | |
7997 | # Lahey Fortran 8.1. | |
7998 | lf95*) | |
7999 | lt_prog_compiler_wl='-Wl,' | |
8000 | lt_prog_compiler_pic='--shared' | |
8001 | lt_prog_compiler_static='--static' | |
8002 | ;; | |
8003 | pgcc* | pgf77* | pgf90* | pgf95*) | |
8004 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8005 | # which looks to be a dead project) | |
8006 | lt_prog_compiler_wl='-Wl,' | |
8007 | lt_prog_compiler_pic='-fpic' | |
8008 | lt_prog_compiler_static='-Bstatic' | |
8009 | ;; | |
8010 | ccc*) | |
8011 | lt_prog_compiler_wl='-Wl,' | |
8012 | # All Alpha code is PIC. | |
8013 | lt_prog_compiler_static='-non_shared' | |
8014 | ;; | |
8015 | xl*) | |
8016 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
8017 | lt_prog_compiler_wl='-Wl,' | |
8018 | lt_prog_compiler_pic='-qpic' | |
8019 | lt_prog_compiler_static='-qstaticlink' | |
8020 | ;; | |
8021 | *) | |
8022 | case `$CC -V 2>&1 | sed 5q` in | |
8023 | *Sun\ C*) | |
8024 | # Sun C 5.9 | |
8025 | lt_prog_compiler_pic='-KPIC' | |
8026 | lt_prog_compiler_static='-Bstatic' | |
8027 | lt_prog_compiler_wl='-Wl,' | |
8028 | ;; | |
8029 | *Sun\ F*) | |
8030 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8031 | lt_prog_compiler_pic='-KPIC' | |
8032 | lt_prog_compiler_static='-Bstatic' | |
8033 | lt_prog_compiler_wl='' | |
8034 | ;; | |
8035 | esac | |
8036 | ;; | |
8037 | esac | |
8038 | ;; | |
d9898ee8 | 8039 | |
8d138742 CE |
8040 | newsos6) |
8041 | lt_prog_compiler_pic='-KPIC' | |
8042 | lt_prog_compiler_static='-Bstatic' | |
8043 | ;; | |
d9898ee8 | 8044 | |
8d138742 CE |
8045 | *nto* | *qnx*) |
8046 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8047 | # it will coredump. | |
8048 | lt_prog_compiler_pic='-fPIC -shared' | |
8049 | ;; | |
d9898ee8 | 8050 | |
8d138742 CE |
8051 | osf3* | osf4* | osf5*) |
8052 | lt_prog_compiler_wl='-Wl,' | |
8053 | # All OSF/1 code is PIC. | |
8054 | lt_prog_compiler_static='-non_shared' | |
8055 | ;; | |
d9898ee8 | 8056 | |
8d138742 CE |
8057 | rdos*) |
8058 | lt_prog_compiler_static='-non_shared' | |
8059 | ;; | |
d9898ee8 | 8060 | |
8d138742 CE |
8061 | solaris*) |
8062 | lt_prog_compiler_pic='-KPIC' | |
8063 | lt_prog_compiler_static='-Bstatic' | |
8064 | case $cc_basename in | |
8065 | f77* | f90* | f95*) | |
8066 | lt_prog_compiler_wl='-Qoption ld ';; | |
8067 | *) | |
8068 | lt_prog_compiler_wl='-Wl,';; | |
8069 | esac | |
8070 | ;; | |
d9898ee8 | 8071 | |
8d138742 CE |
8072 | sunos4*) |
8073 | lt_prog_compiler_wl='-Qoption ld ' | |
8074 | lt_prog_compiler_pic='-PIC' | |
8075 | lt_prog_compiler_static='-Bstatic' | |
8076 | ;; | |
dd184caf | 8077 | |
8d138742 CE |
8078 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8079 | lt_prog_compiler_wl='-Wl,' | |
8080 | lt_prog_compiler_pic='-KPIC' | |
8081 | lt_prog_compiler_static='-Bstatic' | |
8082 | ;; | |
d9898ee8 | 8083 | |
8d138742 CE |
8084 | sysv4*MP*) |
8085 | if test -d /usr/nec ;then | |
8086 | lt_prog_compiler_pic='-Kconform_pic' | |
8087 | lt_prog_compiler_static='-Bstatic' | |
8088 | fi | |
8089 | ;; | |
8090 | ||
8091 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8092 | lt_prog_compiler_wl='-Wl,' | |
8093 | lt_prog_compiler_pic='-KPIC' | |
8094 | lt_prog_compiler_static='-Bstatic' | |
8095 | ;; | |
8096 | ||
8097 | unicos*) | |
8098 | lt_prog_compiler_wl='-Wl,' | |
8099 | lt_prog_compiler_can_build_shared=no | |
8100 | ;; | |
8101 | ||
8102 | uts4*) | |
8103 | lt_prog_compiler_pic='-pic' | |
8104 | lt_prog_compiler_static='-Bstatic' | |
8105 | ;; | |
8106 | ||
8107 | *) | |
8108 | lt_prog_compiler_can_build_shared=no | |
8109 | ;; | |
8110 | esac | |
8111 | fi | |
8112 | ||
8113 | case $host_os in | |
8114 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8115 | *djgpp*) | |
8116 | lt_prog_compiler_pic= | |
8117 | ;; | |
8118 | *) | |
8119 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8120 | ;; | |
dd184caf | 8121 | esac |
8d138742 CE |
8122 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
8123 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d9898ee8 | 8124 | |
dd184caf | 8125 | |
d9898ee8 | 8126 | |
d9898ee8 | 8127 | |
dd184caf | 8128 | |
d9898ee8 | 8129 | |
8d138742 CE |
8130 | # |
8131 | # Check to make sure the PIC flag actually works. | |
8132 | # | |
8133 | if test -n "$lt_prog_compiler_pic"; then | |
8134 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8135 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8136 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then | |
8137 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 8138 | else |
8d138742 CE |
8139 | lt_cv_prog_compiler_pic_works=no |
8140 | ac_outfile=conftest.$ac_objext | |
8141 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8142 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8143 | # Insert the option either (1) after the last *FLAGS variable, or | |
8144 | # (2) before a word containing "conftest.", or (3) at the end. | |
8145 | # Note that $ac_compile itself does not contain backslashes and begins | |
8146 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8147 | # The option is referenced via a variable to avoid confusing sed. | |
8148 | lt_compile=`echo "$ac_compile" | $SED \ | |
8149 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8150 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8151 | -e 's:$: $lt_compiler_flag:'` | |
8152 | (eval echo "\"\$as_me:8152: $lt_compile\"" >&5) | |
8153 | (eval "$lt_compile" 2>conftest.err) | |
8154 | ac_status=$? | |
8155 | cat conftest.err >&5 | |
8156 | echo "$as_me:8156: \$? = $ac_status" >&5 | |
8157 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8158 | # The compiler can only warn and ignore the option if not recognized | |
8159 | # So say no if there are warnings other than the usual output. | |
8160 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8161 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8162 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8163 | lt_cv_prog_compiler_pic_works=yes | |
8164 | fi | |
8165 | fi | |
8166 | $RM conftest* | |
d9898ee8 | 8167 | |
d9898ee8 | 8168 | fi |
8d138742 CE |
8169 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
8170 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
dd184caf | 8171 | |
8d138742 CE |
8172 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
8173 | case $lt_prog_compiler_pic in | |
8174 | "" | " "*) ;; | |
8175 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8176 | esac | |
8177 | else | |
8178 | lt_prog_compiler_pic= | |
8179 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 8180 | fi |
8181 | ||
d9898ee8 | 8182 | fi |
8183 | ||
8184 | ||
d9898ee8 | 8185 | |
8186 | ||
d9898ee8 | 8187 | |
8188 | ||
8d138742 CE |
8189 | # |
8190 | # Check to make sure the static flag actually works. | |
8191 | # | |
8192 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8193 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8194 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8195 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then | |
8196 | $as_echo_n "(cached) " >&6 | |
8197 | else | |
8198 | lt_cv_prog_compiler_static_works=no | |
8199 | save_LDFLAGS="$LDFLAGS" | |
8200 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8201 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8202 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8203 | # The linker can only warn and ignore the option if not recognized | |
8204 | # So say no if there are warnings | |
8205 | if test -s conftest.err; then | |
8206 | # Append any errors to the config.log. | |
8207 | cat conftest.err 1>&5 | |
8208 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8209 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8210 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8211 | lt_cv_prog_compiler_static_works=yes | |
8212 | fi | |
8213 | else | |
8214 | lt_cv_prog_compiler_static_works=yes | |
8215 | fi | |
8216 | fi | |
8217 | $RM -r conftest* | |
8218 | LDFLAGS="$save_LDFLAGS" | |
d9898ee8 | 8219 | |
8d138742 CE |
8220 | fi |
8221 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 | |
8222 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d9898ee8 | 8223 | |
8d138742 CE |
8224 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
8225 | : | |
8226 | else | |
8227 | lt_prog_compiler_static= | |
d9898ee8 | 8228 | fi |
8229 | ||
d9898ee8 | 8230 | |
d9898ee8 | 8231 | |
d9898ee8 | 8232 | |
d9898ee8 | 8233 | |
d9898ee8 | 8234 | |
8d138742 CE |
8235 | |
8236 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8237 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8238 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8239 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 8240 | else |
8d138742 CE |
8241 | lt_cv_prog_compiler_c_o=no |
8242 | $RM -r conftest 2>/dev/null | |
8243 | mkdir conftest | |
8244 | cd conftest | |
8245 | mkdir out | |
8246 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8247 | |
8d138742 CE |
8248 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8249 | # Insert the option either (1) after the last *FLAGS variable, or | |
8250 | # (2) before a word containing "conftest.", or (3) at the end. | |
8251 | # Note that $ac_compile itself does not contain backslashes and begins | |
8252 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8253 | lt_compile=`echo "$ac_compile" | $SED \ | |
8254 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8255 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8256 | -e 's:$: $lt_compiler_flag:'` | |
8257 | (eval echo "\"\$as_me:8257: $lt_compile\"" >&5) | |
8258 | (eval "$lt_compile" 2>out/conftest.err) | |
8259 | ac_status=$? | |
8260 | cat out/conftest.err >&5 | |
8261 | echo "$as_me:8261: \$? = $ac_status" >&5 | |
8262 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8263 | then | |
8264 | # The compiler can only warn and ignore the option if not recognized | |
8265 | # So say no if there are warnings | |
8266 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8267 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8268 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8269 | lt_cv_prog_compiler_c_o=yes | |
8270 | fi | |
8271 | fi | |
8272 | chmod u+w . 2>&5 | |
8273 | $RM conftest* | |
8274 | # SGI C++ compiler will create directory out/ii_files/ for | |
8275 | # template instantiation | |
8276 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8277 | $RM out/* && rmdir out | |
8278 | cd .. | |
8279 | $RM -r conftest | |
8280 | $RM conftest* | |
d9898ee8 | 8281 | |
8d138742 CE |
8282 | fi |
8283 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
8284 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d9898ee8 | 8285 | |
d9898ee8 | 8286 | |
d9898ee8 | 8287 | |
d9898ee8 | 8288 | |
d9898ee8 | 8289 | |
d9898ee8 | 8290 | |
8d138742 CE |
8291 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8292 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8293 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8294 | $as_echo_n "(cached) " >&6 | |
8295 | else | |
8296 | lt_cv_prog_compiler_c_o=no | |
8297 | $RM -r conftest 2>/dev/null | |
8298 | mkdir conftest | |
8299 | cd conftest | |
8300 | mkdir out | |
8301 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8302 | |
8d138742 CE |
8303 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8304 | # Insert the option either (1) after the last *FLAGS variable, or | |
8305 | # (2) before a word containing "conftest.", or (3) at the end. | |
8306 | # Note that $ac_compile itself does not contain backslashes and begins | |
8307 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8308 | lt_compile=`echo "$ac_compile" | $SED \ | |
8309 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8310 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8311 | -e 's:$: $lt_compiler_flag:'` | |
8312 | (eval echo "\"\$as_me:8312: $lt_compile\"" >&5) | |
8313 | (eval "$lt_compile" 2>out/conftest.err) | |
8314 | ac_status=$? | |
8315 | cat out/conftest.err >&5 | |
8316 | echo "$as_me:8316: \$? = $ac_status" >&5 | |
8317 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8318 | then | |
8319 | # The compiler can only warn and ignore the option if not recognized | |
8320 | # So say no if there are warnings | |
8321 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8322 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8323 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8324 | lt_cv_prog_compiler_c_o=yes | |
8325 | fi | |
8326 | fi | |
8327 | chmod u+w . 2>&5 | |
8328 | $RM conftest* | |
8329 | # SGI C++ compiler will create directory out/ii_files/ for | |
8330 | # template instantiation | |
8331 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8332 | $RM out/* && rmdir out | |
8333 | cd .. | |
8334 | $RM -r conftest | |
8335 | $RM conftest* | |
d9898ee8 | 8336 | |
8337 | fi | |
8d138742 CE |
8338 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
8339 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d9898ee8 | 8340 | |
d9898ee8 | 8341 | |
d9898ee8 | 8342 | |
d9898ee8 | 8343 | |
8d138742 CE |
8344 | hard_links="nottested" |
8345 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8346 | # do not overwrite the value of need_locks provided by the user | |
8347 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
8348 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
8349 | hard_links=yes | |
8350 | $RM conftest* | |
8351 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8352 | touch conftest.a | |
8353 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8354 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8355 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 | |
8356 | $as_echo "$hard_links" >&6; } | |
8357 | if test "$hard_links" = no; then | |
8358 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8359 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8360 | need_locks=warn | |
8361 | fi | |
8362 | else | |
8363 | need_locks=no | |
8364 | fi | |
d9898ee8 | 8365 | |
d9898ee8 | 8366 | |
d9898ee8 | 8367 | |
d9898ee8 | 8368 | |
d9898ee8 | 8369 | |
d9898ee8 | 8370 | |
8d138742 CE |
8371 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8372 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d9898ee8 | 8373 | |
8d138742 CE |
8374 | runpath_var= |
8375 | allow_undefined_flag= | |
8376 | always_export_symbols=no | |
8377 | archive_cmds= | |
8378 | archive_expsym_cmds= | |
8379 | compiler_needs_object=no | |
8380 | enable_shared_with_static_runtimes=no | |
8381 | export_dynamic_flag_spec= | |
8382 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8383 | hardcode_automatic=no | |
8384 | hardcode_direct=no | |
8385 | hardcode_direct_absolute=no | |
8386 | hardcode_libdir_flag_spec= | |
8387 | hardcode_libdir_flag_spec_ld= | |
8388 | hardcode_libdir_separator= | |
8389 | hardcode_minus_L=no | |
8390 | hardcode_shlibpath_var=unsupported | |
8391 | inherit_rpath=no | |
8392 | link_all_deplibs=unknown | |
8393 | module_cmds= | |
8394 | module_expsym_cmds= | |
8395 | old_archive_from_new_cmds= | |
8396 | old_archive_from_expsyms_cmds= | |
8397 | thread_safe_flag_spec= | |
8398 | whole_archive_flag_spec= | |
8399 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8400 | # included in the symbol list | |
8401 | include_expsyms= | |
8402 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8403 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8404 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8405 | # as well as any symbol that contains `d'. | |
8406 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
8407 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8408 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8409 | # the symbol is explicitly referenced. Since portable code cannot | |
8410 | # rely on this symbol name, it's probably fine to never include it in | |
8411 | # preloaded symbol tables. | |
8412 | # Exclude shared library initialization/finalization symbols. | |
8413 | extract_expsyms_cmds= | |
d9898ee8 | 8414 | |
8d138742 CE |
8415 | case $host_os in |
8416 | cygwin* | mingw* | pw32* | cegcc*) | |
8417 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8418 | # When not using gcc, we currently assume that we are using | |
8419 | # Microsoft Visual C++. | |
8420 | if test "$GCC" != yes; then | |
8421 | with_gnu_ld=no | |
8422 | fi | |
8423 | ;; | |
8424 | interix*) | |
8425 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8426 | with_gnu_ld=yes | |
8427 | ;; | |
8428 | openbsd*) | |
8429 | with_gnu_ld=no | |
d9898ee8 | 8430 | ;; |
8431 | esac | |
8432 | ||
8d138742 CE |
8433 | ld_shlibs=yes |
8434 | if test "$with_gnu_ld" = yes; then | |
8435 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8436 | wlarc='${wl}' | |
d9898ee8 | 8437 | |
8d138742 CE |
8438 | # Set some defaults for GNU ld with shared library support. These |
8439 | # are reset later if shared libraries are not supported. Putting them | |
8440 | # here allows them to be overridden if necessary. | |
8441 | runpath_var=LD_RUN_PATH | |
8442 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8443 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8444 | # ancient GNU ld didn't support --whole-archive et. al. | |
8445 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8446 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8447 | else | |
8448 | whole_archive_flag_spec= | |
8449 | fi | |
8450 | supports_anon_versioning=no | |
8451 | case `$LD -v 2>&1` in | |
8452 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8453 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8454 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8455 | *\ 2.11.*) ;; # other 2.11 versions | |
8456 | *) supports_anon_versioning=yes ;; | |
8457 | esac | |
d9898ee8 | 8458 | |
8d138742 CE |
8459 | # See if GNU ld supports shared libraries. |
8460 | case $host_os in | |
8461 | aix[3-9]*) | |
8462 | # On AIX/PPC, the GNU linker is very broken | |
8463 | if test "$host_cpu" != ia64; then | |
8464 | ld_shlibs=no | |
8465 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8466 | |
8d138742 CE |
8467 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
8468 | *** to be unable to reliably create shared libraries on AIX. | |
8469 | *** Therefore, libtool is disabling shared libraries support. If you | |
8470 | *** really care for shared libraries, you may want to modify your PATH | |
8471 | *** so that a non-GNU linker is found, and then restart. | |
d9898ee8 | 8472 | |
8d138742 CE |
8473 | _LT_EOF |
8474 | fi | |
8475 | ;; | |
d9898ee8 | 8476 | |
8d138742 CE |
8477 | amigaos*) |
8478 | case $host_cpu in | |
8479 | powerpc) | |
8480 | # see comment about AmigaOS4 .so support | |
8481 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8482 | archive_expsym_cmds='' | |
8483 | ;; | |
8484 | m68k) | |
8485 | 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)' | |
8486 | hardcode_libdir_flag_spec='-L$libdir' | |
8487 | hardcode_minus_L=yes | |
8488 | ;; | |
8489 | esac | |
d9898ee8 | 8490 | ;; |
8d138742 CE |
8491 | |
8492 | beos*) | |
8493 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8494 | allow_undefined_flag=unsupported | |
8495 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8496 | # support --undefined. This deserves some investigation. FIXME | |
8497 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8498 | else | |
8499 | ld_shlibs=no | |
8500 | fi | |
d9898ee8 | 8501 | ;; |
d9898ee8 | 8502 | |
8d138742 CE |
8503 | cygwin* | mingw* | pw32* | cegcc*) |
8504 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8505 | # as there is no search path for DLLs. | |
8506 | hardcode_libdir_flag_spec='-L$libdir' | |
8507 | allow_undefined_flag=unsupported | |
8508 | always_export_symbols=no | |
8509 | enable_shared_with_static_runtimes=yes | |
8510 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
d9898ee8 | 8511 | |
8d138742 CE |
8512 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8513 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8514 | # If the export-symbols file already is a .def file (1st line | |
8515 | # is EXPORTS), use it as is; otherwise, prepend... | |
8516 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8517 | cp $export_symbols $output_objdir/$soname.def; | |
8518 | else | |
8519 | echo EXPORTS > $output_objdir/$soname.def; | |
8520 | cat $export_symbols >> $output_objdir/$soname.def; | |
8521 | fi~ | |
8522 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8523 | else | |
8524 | ld_shlibs=no | |
8525 | fi | |
8526 | ;; | |
d9898ee8 | 8527 | |
8d138742 CE |
8528 | interix[3-9]*) |
8529 | hardcode_direct=no | |
8530 | hardcode_shlibpath_var=no | |
8531 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8532 | export_dynamic_flag_spec='${wl}-E' | |
8533 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8534 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8535 | # default) and relocated if they conflict, which is a slow very memory | |
8536 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8537 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8538 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8539 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8540 | 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' | |
8541 | ;; | |
d9898ee8 | 8542 | |
8d138742 CE |
8543 | gnu* | linux* | tpf* | k*bsd*-gnu) |
8544 | tmp_diet=no | |
8545 | if test "$host_os" = linux-dietlibc; then | |
8546 | case $cc_basename in | |
8547 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8548 | esac | |
8549 | fi | |
8550 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8551 | && test "$tmp_diet" = no | |
8552 | then | |
8553 | tmp_addflag= | |
8554 | tmp_sharedflag='-shared' | |
8555 | case $cc_basename,$host_cpu in | |
8556 | pgcc*) # Portland Group C compiler | |
8557 | 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' | |
8558 | tmp_addflag=' $pic_flag' | |
8559 | ;; | |
8560 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8561 | 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' | |
8562 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8563 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8564 | tmp_addflag=' -i_dynamic' ;; | |
8565 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8566 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8567 | ifc* | ifort*) # Intel Fortran compiler | |
8568 | tmp_addflag=' -nofor_main' ;; | |
8569 | lf95*) # Lahey Fortran 8.1 | |
8570 | whole_archive_flag_spec= | |
8571 | tmp_sharedflag='--shared' ;; | |
8572 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8573 | tmp_sharedflag='-qmkshrobj' | |
8574 | tmp_addflag= ;; | |
8575 | esac | |
8576 | case `$CC -V 2>&1 | sed 5q` in | |
8577 | *Sun\ C*) # Sun C 5.9 | |
8578 | 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' | |
8579 | compiler_needs_object=yes | |
8580 | tmp_sharedflag='-G' ;; | |
8581 | *Sun\ F*) # Sun Fortran 8.3 | |
8582 | tmp_sharedflag='-G' ;; | |
8583 | esac | |
8584 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d9898ee8 | 8585 | |
8d138742 CE |
8586 | if test "x$supports_anon_versioning" = xyes; then |
8587 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8588 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8589 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8590 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8591 | fi | |
d9898ee8 | 8592 | |
8d138742 CE |
8593 | case $cc_basename in |
8594 | xlf*) | |
8595 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8596 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8597 | hardcode_libdir_flag_spec= | |
8598 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8599 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8600 | if test "x$supports_anon_versioning" = xyes; then | |
8601 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8602 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8603 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8604 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8605 | fi | |
8606 | ;; | |
8607 | esac | |
8608 | else | |
8609 | ld_shlibs=no | |
8610 | fi | |
8611 | ;; | |
d9898ee8 | 8612 | |
8d138742 CE |
8613 | netbsd*) |
8614 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8615 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8616 | wlarc= | |
8617 | else | |
8618 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8619 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8620 | fi | |
8621 | ;; | |
d9898ee8 | 8622 | |
8d138742 CE |
8623 | solaris*) |
8624 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8625 | ld_shlibs=no | |
8626 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8627 | |
8d138742 CE |
8628 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8629 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8630 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8631 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8632 | *** your PATH or compiler configuration so that the native linker is | |
8633 | *** used, and then restart. | |
d9898ee8 | 8634 | |
8d138742 CE |
8635 | _LT_EOF |
8636 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8637 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8638 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8639 | else | |
8640 | ld_shlibs=no | |
8641 | fi | |
8642 | ;; | |
d9898ee8 | 8643 | |
8d138742 CE |
8644 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8645 | case `$LD -v 2>&1` in | |
8646 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8647 | ld_shlibs=no | |
8648 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8649 | |
8d138742 CE |
8650 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8651 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8652 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8653 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8654 | *** your PATH or compiler configuration so that the native linker is | |
8655 | *** used, and then restart. | |
d9898ee8 | 8656 | |
8d138742 CE |
8657 | _LT_EOF |
8658 | ;; | |
8659 | *) | |
8660 | # For security reasons, it is highly recommended that you always | |
8661 | # use absolute paths for naming shared libraries, and exclude the | |
8662 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8663 | # requires that you compile everything twice, which is a pain. | |
8664 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8665 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8666 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8667 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8668 | else | |
8669 | ld_shlibs=no | |
8670 | fi | |
8671 | ;; | |
8672 | esac | |
8673 | ;; | |
d9898ee8 | 8674 | |
8d138742 CE |
8675 | sunos4*) |
8676 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8677 | wlarc= | |
8678 | hardcode_direct=yes | |
8679 | hardcode_shlibpath_var=no | |
8680 | ;; | |
d9898ee8 | 8681 | |
8d138742 CE |
8682 | *) |
8683 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8684 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8685 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8686 | else | |
8687 | ld_shlibs=no | |
8688 | fi | |
8689 | ;; | |
8690 | esac | |
d9898ee8 | 8691 | |
8d138742 CE |
8692 | if test "$ld_shlibs" = no; then |
8693 | runpath_var= | |
8694 | hardcode_libdir_flag_spec= | |
8695 | export_dynamic_flag_spec= | |
8696 | whole_archive_flag_spec= | |
8697 | fi | |
8698 | else | |
8699 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8700 | case $host_os in | |
8701 | aix3*) | |
8702 | allow_undefined_flag=unsupported | |
8703 | always_export_symbols=yes | |
8704 | 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' | |
8705 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8706 | # are no directories specified by -L. | |
8707 | hardcode_minus_L=yes | |
8708 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8709 | # Neither direct hardcoding nor static linking is supported with a | |
8710 | # broken collect2. | |
8711 | hardcode_direct=unsupported | |
8712 | fi | |
8713 | ;; | |
d9898ee8 | 8714 | |
8d138742 CE |
8715 | aix[4-9]*) |
8716 | if test "$host_cpu" = ia64; then | |
8717 | # On IA64, the linker does run time linking by default, so we don't | |
8718 | # have to do anything special. | |
8719 | aix_use_runtimelinking=no | |
8720 | exp_sym_flag='-Bexport' | |
8721 | no_entry_flag="" | |
8722 | else | |
8723 | # If we're using GNU nm, then we don't want the "-C" option. | |
8724 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8725 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8726 | 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' | |
8727 | else | |
8728 | 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' | |
8729 | fi | |
8730 | aix_use_runtimelinking=no | |
d9898ee8 | 8731 | |
8d138742 CE |
8732 | # Test if we are trying to use run time linking or normal |
8733 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8734 | # need to do runtime linking. | |
8735 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
8736 | for ld_flag in $LDFLAGS; do | |
8737 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8738 | aix_use_runtimelinking=yes | |
8739 | break | |
8740 | fi | |
8741 | done | |
8742 | ;; | |
8743 | esac | |
d9898ee8 | 8744 | |
8d138742 CE |
8745 | exp_sym_flag='-bexport' |
8746 | no_entry_flag='-bnoentry' | |
8747 | fi | |
d9898ee8 | 8748 | |
8d138742 CE |
8749 | # When large executables or shared objects are built, AIX ld can |
8750 | # have problems creating the table of contents. If linking a library | |
8751 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8752 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8753 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d9898ee8 | 8754 | |
8d138742 CE |
8755 | archive_cmds='' |
8756 | hardcode_direct=yes | |
8757 | hardcode_direct_absolute=yes | |
8758 | hardcode_libdir_separator=':' | |
8759 | link_all_deplibs=yes | |
8760 | file_list_spec='${wl}-f,' | |
d9898ee8 | 8761 | |
8d138742 CE |
8762 | if test "$GCC" = yes; then |
8763 | case $host_os in aix4.[012]|aix4.[012].*) | |
8764 | # We only want to do this on AIX 4.2 and lower, the check | |
8765 | # below for broken collect2 doesn't work under 4.3+ | |
8766 | collect2name=`${CC} -print-prog-name=collect2` | |
8767 | if test -f "$collect2name" && | |
8768 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8769 | then | |
8770 | # We have reworked collect2 | |
8771 | : | |
8772 | else | |
8773 | # We have old collect2 | |
8774 | hardcode_direct=unsupported | |
8775 | # It fails to find uninstalled libraries when the uninstalled | |
8776 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8777 | # to unsupported forces relinking | |
8778 | hardcode_minus_L=yes | |
8779 | hardcode_libdir_flag_spec='-L$libdir' | |
8780 | hardcode_libdir_separator= | |
8781 | fi | |
8782 | ;; | |
8783 | esac | |
8784 | shared_flag='-shared' | |
8785 | if test "$aix_use_runtimelinking" = yes; then | |
8786 | shared_flag="$shared_flag "'${wl}-G' | |
8787 | fi | |
8788 | else | |
8789 | # not using gcc | |
8790 | if test "$host_cpu" = ia64; then | |
8791 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8792 | # chokes on -Wl,-G. The following line is correct: | |
8793 | shared_flag='-G' | |
8794 | else | |
8795 | if test "$aix_use_runtimelinking" = yes; then | |
8796 | shared_flag='${wl}-G' | |
8797 | else | |
8798 | shared_flag='${wl}-bM:SRE' | |
8799 | fi | |
8800 | fi | |
8801 | fi | |
d9898ee8 | 8802 | |
8d138742 CE |
8803 | export_dynamic_flag_spec='${wl}-bexpall' |
8804 | # It seems that -bexpall does not export symbols beginning with | |
8805 | # underscore (_), so it is better to generate a list of symbols to export. | |
8806 | always_export_symbols=yes | |
8807 | if test "$aix_use_runtimelinking" = yes; then | |
8808 | # Warning - without using the other runtime loading flags (-brtl), | |
8809 | # -berok will link without error, but may produce a broken library. | |
8810 | allow_undefined_flag='-berok' | |
8811 | # Determine the default libpath from the value encoded in an | |
8812 | # empty executable. | |
8813 | cat >conftest.$ac_ext <<_ACEOF | |
8814 | /* confdefs.h. */ | |
8815 | _ACEOF | |
8816 | cat confdefs.h >>conftest.$ac_ext | |
8817 | cat >>conftest.$ac_ext <<_ACEOF | |
8818 | /* end confdefs.h. */ | |
d9898ee8 | 8819 | |
8d138742 CE |
8820 | int |
8821 | main () | |
8822 | { | |
d9898ee8 | 8823 | |
8d138742 CE |
8824 | ; |
8825 | return 0; | |
8826 | } | |
8827 | _ACEOF | |
8828 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8829 | if { (ac_try="$ac_link" | |
8830 | case "(($ac_try" in | |
8831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8832 | *) ac_try_echo=$ac_try;; | |
8833 | esac | |
8834 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8835 | $as_echo "$ac_try_echo") >&5 | |
8836 | (eval "$ac_link") 2>conftest.er1 | |
8837 | ac_status=$? | |
8838 | grep -v '^ *+' conftest.er1 >conftest.err | |
8839 | rm -f conftest.er1 | |
8840 | cat conftest.err >&5 | |
8841 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8842 | (exit $ac_status); } && { | |
8843 | test -z "$ac_c_werror_flag" || | |
8844 | test ! -s conftest.err | |
8845 | } && test -s conftest$ac_exeext && { | |
8846 | test "$cross_compiling" = yes || | |
8847 | $as_test_x conftest$ac_exeext | |
8848 | }; then | |
d9898ee8 | 8849 | |
8d138742 CE |
8850 | lt_aix_libpath_sed=' |
8851 | /Import File Strings/,/^$/ { | |
8852 | /^0/ { | |
8853 | s/^0 *\(.*\)$/\1/ | |
8854 | p | |
8855 | } | |
8856 | }' | |
8857 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8858 | # Check for a 64-bit object if we didn't find anything. | |
8859 | if test -z "$aix_libpath"; then | |
8860 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8861 | fi | |
8862 | else | |
8863 | $as_echo "$as_me: failed program was:" >&5 | |
8864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 8865 | |
d9898ee8 | 8866 | |
8d138742 | 8867 | fi |
d9898ee8 | 8868 | |
8d138742 CE |
8869 | rm -rf conftest.dSYM |
8870 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8871 | conftest$ac_exeext conftest.$ac_ext | |
8872 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
d9898ee8 | 8873 | |
8d138742 CE |
8874 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8875 | 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" | |
8876 | else | |
8877 | if test "$host_cpu" = ia64; then | |
8878 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8879 | allow_undefined_flag="-z nodefs" | |
8880 | 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" | |
8881 | else | |
8882 | # Determine the default libpath from the value encoded in an | |
8883 | # empty executable. | |
8884 | cat >conftest.$ac_ext <<_ACEOF | |
8885 | /* confdefs.h. */ | |
8886 | _ACEOF | |
8887 | cat confdefs.h >>conftest.$ac_ext | |
8888 | cat >>conftest.$ac_ext <<_ACEOF | |
8889 | /* end confdefs.h. */ | |
d9898ee8 | 8890 | |
8d138742 CE |
8891 | int |
8892 | main () | |
8893 | { | |
d9898ee8 | 8894 | |
8d138742 CE |
8895 | ; |
8896 | return 0; | |
8897 | } | |
8898 | _ACEOF | |
8899 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8900 | if { (ac_try="$ac_link" | |
8901 | case "(($ac_try" in | |
8902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8903 | *) ac_try_echo=$ac_try;; | |
8904 | esac | |
8905 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8906 | $as_echo "$ac_try_echo") >&5 | |
8907 | (eval "$ac_link") 2>conftest.er1 | |
8908 | ac_status=$? | |
8909 | grep -v '^ *+' conftest.er1 >conftest.err | |
8910 | rm -f conftest.er1 | |
8911 | cat conftest.err >&5 | |
8912 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8913 | (exit $ac_status); } && { | |
8914 | test -z "$ac_c_werror_flag" || | |
8915 | test ! -s conftest.err | |
8916 | } && test -s conftest$ac_exeext && { | |
8917 | test "$cross_compiling" = yes || | |
8918 | $as_test_x conftest$ac_exeext | |
8919 | }; then | |
d9898ee8 | 8920 | |
8d138742 CE |
8921 | lt_aix_libpath_sed=' |
8922 | /Import File Strings/,/^$/ { | |
8923 | /^0/ { | |
8924 | s/^0 *\(.*\)$/\1/ | |
8925 | p | |
8926 | } | |
8927 | }' | |
8928 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8929 | # Check for a 64-bit object if we didn't find anything. | |
8930 | if test -z "$aix_libpath"; then | |
8931 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8932 | fi | |
8933 | else | |
8934 | $as_echo "$as_me: failed program was:" >&5 | |
8935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 8936 | |
d9898ee8 | 8937 | |
8d138742 | 8938 | fi |
d9898ee8 | 8939 | |
8d138742 CE |
8940 | rm -rf conftest.dSYM |
8941 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8942 | conftest$ac_exeext conftest.$ac_ext | |
8943 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
d9898ee8 | 8944 | |
8d138742 CE |
8945 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8946 | # Warning - without using the other run time loading flags, | |
8947 | # -berok will link without error, but may produce a broken library. | |
8948 | no_undefined_flag=' ${wl}-bernotok' | |
8949 | allow_undefined_flag=' ${wl}-berok' | |
8950 | # Exported symbols can be pulled into shared objects from archives | |
8951 | whole_archive_flag_spec='$convenience' | |
8952 | archive_cmds_need_lc=yes | |
8953 | # This is similar to how AIX traditionally builds its shared libraries. | |
8954 | 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' | |
8955 | fi | |
8956 | fi | |
8957 | ;; | |
d9898ee8 | 8958 | |
8d138742 CE |
8959 | amigaos*) |
8960 | case $host_cpu in | |
8961 | powerpc) | |
8962 | # see comment about AmigaOS4 .so support | |
8963 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8964 | archive_expsym_cmds='' | |
8965 | ;; | |
8966 | m68k) | |
8967 | 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)' | |
8968 | hardcode_libdir_flag_spec='-L$libdir' | |
8969 | hardcode_minus_L=yes | |
8970 | ;; | |
8971 | esac | |
8972 | ;; | |
d9898ee8 | 8973 | |
8d138742 CE |
8974 | bsdi[45]*) |
8975 | export_dynamic_flag_spec=-rdynamic | |
8976 | ;; | |
d9898ee8 | 8977 | |
8d138742 CE |
8978 | cygwin* | mingw* | pw32* | cegcc*) |
8979 | # When not using gcc, we currently assume that we are using | |
8980 | # Microsoft Visual C++. | |
8981 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8982 | # no search path for DLLs. | |
8983 | hardcode_libdir_flag_spec=' ' | |
8984 | allow_undefined_flag=unsupported | |
8985 | # Tell ltmain to make .lib files, not .a files. | |
8986 | libext=lib | |
8987 | # Tell ltmain to make .dll files, not .so files. | |
8988 | shrext_cmds=".dll" | |
8989 | # FIXME: Setting linknames here is a bad hack. | |
8990 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8991 | # The linker will automatically build a .lib file if we build a DLL. | |
8992 | old_archive_from_new_cmds='true' | |
8993 | # FIXME: Should let the user specify the lib program. | |
8994 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8995 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8996 | enable_shared_with_static_runtimes=yes | |
8997 | ;; | |
d9898ee8 | 8998 | |
8d138742 | 8999 | darwin* | rhapsody*) |
d9898ee8 | 9000 | |
d9898ee8 | 9001 | |
8d138742 CE |
9002 | archive_cmds_need_lc=no |
9003 | hardcode_direct=no | |
9004 | hardcode_automatic=yes | |
9005 | hardcode_shlibpath_var=unsupported | |
9006 | whole_archive_flag_spec='' | |
9007 | link_all_deplibs=yes | |
9008 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9009 | case $cc_basename in | |
9010 | ifort*) _lt_dar_can_shared=yes ;; | |
9011 | *) _lt_dar_can_shared=$GCC ;; | |
9012 | esac | |
9013 | if test "$_lt_dar_can_shared" = "yes"; then | |
9014 | output_verbose_link_cmd=echo | |
9015 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9016 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9017 | 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}" | |
9018 | 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}" | |
d9898ee8 | 9019 | |
8d138742 CE |
9020 | else |
9021 | ld_shlibs=no | |
9022 | fi | |
d9898ee8 | 9023 | |
8d138742 | 9024 | ;; |
d9898ee8 | 9025 | |
8d138742 CE |
9026 | dgux*) |
9027 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9028 | hardcode_libdir_flag_spec='-L$libdir' | |
9029 | hardcode_shlibpath_var=no | |
9030 | ;; | |
d9898ee8 | 9031 | |
8d138742 CE |
9032 | freebsd1*) |
9033 | ld_shlibs=no | |
9034 | ;; | |
d9898ee8 | 9035 | |
8d138742 CE |
9036 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9037 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9038 | # does not break anything, and helps significantly (at the cost of a little | |
9039 | # extra space). | |
9040 | freebsd2.2*) | |
9041 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9042 | hardcode_libdir_flag_spec='-R$libdir' | |
9043 | hardcode_direct=yes | |
9044 | hardcode_shlibpath_var=no | |
9045 | ;; | |
d9898ee8 | 9046 | |
8d138742 CE |
9047 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
9048 | freebsd2*) | |
9049 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9050 | hardcode_direct=yes | |
9051 | hardcode_minus_L=yes | |
9052 | hardcode_shlibpath_var=no | |
9053 | ;; | |
d9898ee8 | 9054 | |
8d138742 CE |
9055 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9056 | freebsd* | dragonfly*) | |
9057 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9058 | hardcode_libdir_flag_spec='-R$libdir' | |
9059 | hardcode_direct=yes | |
9060 | hardcode_shlibpath_var=no | |
9061 | ;; | |
d9898ee8 | 9062 | |
8d138742 CE |
9063 | hpux9*) |
9064 | if test "$GCC" = yes; then | |
9065 | 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' | |
9066 | else | |
9067 | 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' | |
9068 | fi | |
9069 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9070 | hardcode_libdir_separator=: | |
9071 | hardcode_direct=yes | |
d9898ee8 | 9072 | |
8d138742 CE |
9073 | # hardcode_minus_L: Not really in the search PATH, |
9074 | # but as the default location of the library. | |
9075 | hardcode_minus_L=yes | |
9076 | export_dynamic_flag_spec='${wl}-E' | |
9077 | ;; | |
d9898ee8 | 9078 | |
8d138742 CE |
9079 | hpux10*) |
9080 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9081 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9082 | else | |
9083 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9084 | fi | |
9085 | if test "$with_gnu_ld" = no; then | |
9086 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9087 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9088 | hardcode_libdir_separator=: | |
9089 | hardcode_direct=yes | |
9090 | hardcode_direct_absolute=yes | |
9091 | export_dynamic_flag_spec='${wl}-E' | |
9092 | # hardcode_minus_L: Not really in the search PATH, | |
9093 | # but as the default location of the library. | |
9094 | hardcode_minus_L=yes | |
9095 | fi | |
9096 | ;; | |
d9898ee8 | 9097 | |
8d138742 CE |
9098 | hpux11*) |
9099 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9100 | case $host_cpu in | |
9101 | hppa*64*) | |
9102 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9103 | ;; | |
9104 | ia64*) | |
9105 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9106 | ;; | |
9107 | *) | |
9108 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9109 | ;; | |
9110 | esac | |
9111 | else | |
9112 | case $host_cpu in | |
9113 | hppa*64*) | |
9114 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9115 | ;; | |
9116 | ia64*) | |
9117 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9118 | ;; | |
9119 | *) | |
9120 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9121 | ;; | |
9122 | esac | |
9123 | fi | |
9124 | if test "$with_gnu_ld" = no; then | |
9125 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9126 | hardcode_libdir_separator=: | |
d9898ee8 | 9127 | |
8d138742 CE |
9128 | case $host_cpu in |
9129 | hppa*64*|ia64*) | |
9130 | hardcode_direct=no | |
9131 | hardcode_shlibpath_var=no | |
9132 | ;; | |
9133 | *) | |
9134 | hardcode_direct=yes | |
9135 | hardcode_direct_absolute=yes | |
9136 | export_dynamic_flag_spec='${wl}-E' | |
d9898ee8 | 9137 | |
8d138742 CE |
9138 | # hardcode_minus_L: Not really in the search PATH, |
9139 | # but as the default location of the library. | |
9140 | hardcode_minus_L=yes | |
9141 | ;; | |
9142 | esac | |
9143 | fi | |
9144 | ;; | |
d9898ee8 | 9145 | |
8d138742 CE |
9146 | irix5* | irix6* | nonstopux*) |
9147 | if test "$GCC" = yes; then | |
9148 | 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' | |
9149 | # Try to use the -exported_symbol ld option, if it does not | |
9150 | # work, assume that -exports_file does not work either and | |
9151 | # implicitly export all symbols. | |
9152 | save_LDFLAGS="$LDFLAGS" | |
9153 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9154 | cat >conftest.$ac_ext <<_ACEOF | |
9155 | int foo(void) {} | |
9156 | _ACEOF | |
9157 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9158 | if { (ac_try="$ac_link" | |
9159 | case "(($ac_try" in | |
9160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9161 | *) ac_try_echo=$ac_try;; | |
9162 | esac | |
9163 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9164 | $as_echo "$ac_try_echo") >&5 | |
9165 | (eval "$ac_link") 2>conftest.er1 | |
9166 | ac_status=$? | |
9167 | grep -v '^ *+' conftest.er1 >conftest.err | |
9168 | rm -f conftest.er1 | |
9169 | cat conftest.err >&5 | |
9170 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9171 | (exit $ac_status); } && { | |
9172 | test -z "$ac_c_werror_flag" || | |
9173 | test ! -s conftest.err | |
9174 | } && test -s conftest$ac_exeext && { | |
9175 | test "$cross_compiling" = yes || | |
9176 | $as_test_x conftest$ac_exeext | |
9177 | }; then | |
9178 | 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' | |
d9898ee8 | 9179 | |
8d138742 CE |
9180 | else |
9181 | $as_echo "$as_me: failed program was:" >&5 | |
9182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 9183 | |
d9898ee8 | 9184 | |
8d138742 | 9185 | fi |
d9898ee8 | 9186 | |
8d138742 CE |
9187 | rm -rf conftest.dSYM |
9188 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9189 | conftest$ac_exeext conftest.$ac_ext | |
9190 | LDFLAGS="$save_LDFLAGS" | |
9191 | else | |
9192 | 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' | |
9193 | 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' | |
9194 | fi | |
9195 | archive_cmds_need_lc='no' | |
9196 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9197 | hardcode_libdir_separator=: | |
9198 | inherit_rpath=yes | |
9199 | link_all_deplibs=yes | |
9200 | ;; | |
d9898ee8 | 9201 | |
8d138742 CE |
9202 | netbsd*) |
9203 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9204 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9205 | else | |
9206 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9207 | fi | |
9208 | hardcode_libdir_flag_spec='-R$libdir' | |
9209 | hardcode_direct=yes | |
9210 | hardcode_shlibpath_var=no | |
9211 | ;; | |
d9898ee8 | 9212 | |
8d138742 CE |
9213 | newsos6) |
9214 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9215 | hardcode_direct=yes | |
9216 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9217 | hardcode_libdir_separator=: | |
9218 | hardcode_shlibpath_var=no | |
9219 | ;; | |
d9898ee8 | 9220 | |
8d138742 CE |
9221 | *nto* | *qnx*) |
9222 | ;; | |
d9898ee8 | 9223 | |
8d138742 CE |
9224 | openbsd*) |
9225 | if test -f /usr/libexec/ld.so; then | |
9226 | hardcode_direct=yes | |
9227 | hardcode_shlibpath_var=no | |
9228 | hardcode_direct_absolute=yes | |
9229 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9230 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9231 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9232 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9233 | export_dynamic_flag_spec='${wl}-E' | |
9234 | else | |
9235 | case $host_os in | |
9236 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9237 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9238 | hardcode_libdir_flag_spec='-R$libdir' | |
9239 | ;; | |
9240 | *) | |
9241 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9242 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9243 | ;; | |
9244 | esac | |
9245 | fi | |
9246 | else | |
9247 | ld_shlibs=no | |
9248 | fi | |
9249 | ;; | |
d9898ee8 | 9250 | |
8d138742 CE |
9251 | os2*) |
9252 | hardcode_libdir_flag_spec='-L$libdir' | |
9253 | hardcode_minus_L=yes | |
9254 | allow_undefined_flag=unsupported | |
9255 | 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' | |
9256 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9257 | ;; | |
d9898ee8 | 9258 | |
8d138742 CE |
9259 | osf3*) |
9260 | if test "$GCC" = yes; then | |
9261 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9262 | 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' | |
9263 | else | |
9264 | allow_undefined_flag=' -expect_unresolved \*' | |
9265 | 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' | |
9266 | fi | |
9267 | archive_cmds_need_lc='no' | |
9268 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9269 | hardcode_libdir_separator=: | |
9270 | ;; | |
d9898ee8 | 9271 | |
8d138742 CE |
9272 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9273 | if test "$GCC" = yes; then | |
9274 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9275 | 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' | |
9276 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9277 | else | |
9278 | allow_undefined_flag=' -expect_unresolved \*' | |
9279 | 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' | |
9280 | 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~ | |
9281 | $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' | |
d9898ee8 | 9282 | |
8d138742 CE |
9283 | # Both c and cxx compiler support -rpath directly |
9284 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9285 | fi | |
9286 | archive_cmds_need_lc='no' | |
9287 | hardcode_libdir_separator=: | |
9288 | ;; | |
d9898ee8 | 9289 | |
8d138742 CE |
9290 | solaris*) |
9291 | no_undefined_flag=' -z defs' | |
9292 | if test "$GCC" = yes; then | |
9293 | wlarc='${wl}' | |
9294 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9295 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9296 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9297 | else | |
9298 | case `$CC -V 2>&1` in | |
9299 | *"Compilers 5.0"*) | |
9300 | wlarc='' | |
9301 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9302 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9303 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9304 | ;; | |
9305 | *) | |
9306 | wlarc='${wl}' | |
9307 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9308 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9309 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9310 | ;; | |
9311 | esac | |
9312 | fi | |
9313 | hardcode_libdir_flag_spec='-R$libdir' | |
9314 | hardcode_shlibpath_var=no | |
9315 | case $host_os in | |
9316 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9317 | *) | |
9318 | # The compiler driver will combine and reorder linker options, | |
9319 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9320 | # but is careful enough not to reorder. | |
9321 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9322 | if test "$GCC" = yes; then | |
9323 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9324 | else | |
9325 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9326 | fi | |
9327 | ;; | |
9328 | esac | |
9329 | link_all_deplibs=yes | |
9330 | ;; | |
d9898ee8 | 9331 | |
8d138742 CE |
9332 | sunos4*) |
9333 | if test "x$host_vendor" = xsequent; then | |
9334 | # Use $CC to link under sequent, because it throws in some extra .o | |
9335 | # files that make .init and .fini sections work. | |
9336 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9337 | else | |
9338 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9339 | fi | |
9340 | hardcode_libdir_flag_spec='-L$libdir' | |
9341 | hardcode_direct=yes | |
9342 | hardcode_minus_L=yes | |
9343 | hardcode_shlibpath_var=no | |
9344 | ;; | |
d9898ee8 | 9345 | |
8d138742 CE |
9346 | sysv4) |
9347 | case $host_vendor in | |
9348 | sni) | |
9349 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9350 | hardcode_direct=yes # is this really true??? | |
9351 | ;; | |
9352 | siemens) | |
9353 | ## LD is ld it makes a PLAMLIB | |
9354 | ## CC just makes a GrossModule. | |
9355 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9356 | reload_cmds='$CC -r -o $output$reload_objs' | |
9357 | hardcode_direct=no | |
9358 | ;; | |
9359 | motorola) | |
9360 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9361 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9362 | ;; | |
9363 | esac | |
9364 | runpath_var='LD_RUN_PATH' | |
9365 | hardcode_shlibpath_var=no | |
9366 | ;; | |
d9898ee8 | 9367 | |
8d138742 CE |
9368 | sysv4.3*) |
9369 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9370 | hardcode_shlibpath_var=no | |
9371 | export_dynamic_flag_spec='-Bexport' | |
9372 | ;; | |
d9898ee8 | 9373 | |
8d138742 CE |
9374 | sysv4*MP*) |
9375 | if test -d /usr/nec; then | |
9376 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9377 | hardcode_shlibpath_var=no | |
9378 | runpath_var=LD_RUN_PATH | |
9379 | hardcode_runpath_var=yes | |
9380 | ld_shlibs=yes | |
9381 | fi | |
9382 | ;; | |
d9898ee8 | 9383 | |
8d138742 CE |
9384 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9385 | no_undefined_flag='${wl}-z,text' | |
9386 | archive_cmds_need_lc=no | |
9387 | hardcode_shlibpath_var=no | |
9388 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 9389 | |
8d138742 CE |
9390 | if test "$GCC" = yes; then |
9391 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9392 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9393 | else | |
9394 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9395 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9396 | fi | |
9397 | ;; | |
d9898ee8 | 9398 | |
8d138742 CE |
9399 | sysv5* | sco3.2v5* | sco5v6*) |
9400 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9401 | # link with -lc, and that would cause any symbols used from libc to | |
9402 | # always be unresolved, which means just about no library would | |
9403 | # ever link correctly. If we're not using GNU ld we use -z text | |
9404 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9405 | # as -z defs. | |
9406 | no_undefined_flag='${wl}-z,text' | |
9407 | allow_undefined_flag='${wl}-z,nodefs' | |
9408 | archive_cmds_need_lc=no | |
9409 | hardcode_shlibpath_var=no | |
9410 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9411 | hardcode_libdir_separator=':' | |
9412 | link_all_deplibs=yes | |
9413 | export_dynamic_flag_spec='${wl}-Bexport' | |
9414 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 9415 | |
8d138742 CE |
9416 | if test "$GCC" = yes; then |
9417 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9418 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9419 | else | |
9420 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9421 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9422 | fi | |
9423 | ;; | |
d9898ee8 | 9424 | |
8d138742 CE |
9425 | uts4*) |
9426 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9427 | hardcode_libdir_flag_spec='-L$libdir' | |
9428 | hardcode_shlibpath_var=no | |
9429 | ;; | |
d9898ee8 | 9430 | |
8d138742 CE |
9431 | *) |
9432 | ld_shlibs=no | |
9433 | ;; | |
9434 | esac | |
d9898ee8 | 9435 | |
8d138742 CE |
9436 | if test x$host_vendor = xsni; then |
9437 | case $host in | |
9438 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9439 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9440 | ;; | |
9441 | esac | |
9442 | fi | |
9443 | fi | |
d9898ee8 | 9444 | |
8d138742 CE |
9445 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
9446 | $as_echo "$ld_shlibs" >&6; } | |
9447 | test "$ld_shlibs" = no && can_build_shared=no | |
d9898ee8 | 9448 | |
8d138742 | 9449 | with_gnu_ld=$with_gnu_ld |
d9898ee8 | 9450 | |
9451 | ||
d9898ee8 | 9452 | |
d9898ee8 | 9453 | |
d9898ee8 | 9454 | |
d9898ee8 | 9455 | |
d9898ee8 | 9456 | |
9457 | ||
d9898ee8 | 9458 | |
d9898ee8 | 9459 | |
9460 | ||
dd184caf | 9461 | |
d9898ee8 | 9462 | |
d9898ee8 | 9463 | |
d9898ee8 | 9464 | |
8d138742 CE |
9465 | # |
9466 | # Do we need to explicitly link libc? | |
9467 | # | |
9468 | case "x$archive_cmds_need_lc" in | |
9469 | x|xyes) | |
9470 | # Assume -lc should be added | |
9471 | archive_cmds_need_lc=yes | |
d9898ee8 | 9472 | |
8d138742 CE |
9473 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
9474 | case $archive_cmds in | |
9475 | *'~'*) | |
9476 | # FIXME: we may have to deal with multi-command sequences. | |
9477 | ;; | |
9478 | '$CC '*) | |
9479 | # Test whether the compiler implicitly links with -lc since on some | |
9480 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9481 | # to ld, don't add -lc before -lgcc. | |
9482 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
9483 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9484 | $RM conftest* | |
9485 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9486 | ||
9487 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9488 | (eval $ac_compile) 2>&5 | |
9489 | ac_status=$? | |
9490 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9491 | (exit $ac_status); } 2>conftest.err; then | |
9492 | soname=conftest | |
9493 | lib=conftest | |
9494 | libobjs=conftest.$ac_objext | |
9495 | deplibs= | |
9496 | wl=$lt_prog_compiler_wl | |
9497 | pic_flag=$lt_prog_compiler_pic | |
9498 | compiler_flags=-v | |
9499 | linker_flags=-v | |
9500 | verstring= | |
9501 | output_objdir=. | |
9502 | libname=conftest | |
9503 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9504 | allow_undefined_flag= | |
9505 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
9506 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
9507 | ac_status=$? | |
9508 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9509 | (exit $ac_status); } | |
9510 | then | |
9511 | archive_cmds_need_lc=no | |
9512 | else | |
9513 | archive_cmds_need_lc=yes | |
9514 | fi | |
9515 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9516 | else | |
9517 | cat conftest.err 1>&5 | |
9518 | fi | |
9519 | $RM conftest* | |
9520 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
9521 | $as_echo "$archive_cmds_need_lc" >&6; } | |
9522 | ;; | |
d9898ee8 | 9523 | esac |
8d138742 CE |
9524 | fi |
9525 | ;; | |
9526 | esac | |
d9898ee8 | 9527 | |
d9898ee8 | 9528 | |
d9898ee8 | 9529 | |
d9898ee8 | 9530 | |
d9898ee8 | 9531 | |
d9898ee8 | 9532 | |
d9898ee8 | 9533 | |
d9898ee8 | 9534 | |
d9898ee8 | 9535 | |
9536 | ||
d9898ee8 | 9537 | |
d9898ee8 | 9538 | |
9539 | ||
d9898ee8 | 9540 | |
9541 | ||
d9898ee8 | 9542 | |
d9898ee8 | 9543 | |
9544 | ||
dd184caf | 9545 | |
d9898ee8 | 9546 | |
d9898ee8 | 9547 | |
9548 | ||
9549 | ||
d9898ee8 | 9550 | |
d9898ee8 | 9551 | |
d9898ee8 | 9552 | |
d9898ee8 | 9553 | |
d9898ee8 | 9554 | |
d9898ee8 | 9555 | |
d9898ee8 | 9556 | |
d9898ee8 | 9557 | |
d9898ee8 | 9558 | |
d9898ee8 | 9559 | |
d9898ee8 | 9560 | |
d9898ee8 | 9561 | |
d9898ee8 | 9562 | |
dd184caf | 9563 | |
dd184caf | 9564 | |
d9898ee8 | 9565 | |
d9898ee8 | 9566 | |
d9898ee8 | 9567 | |
d9898ee8 | 9568 | |
d9898ee8 | 9569 | |
d9898ee8 | 9570 | |
dd184caf | 9571 | |
dd184caf | 9572 | |
d9898ee8 | 9573 | |
d9898ee8 | 9574 | |
d9898ee8 | 9575 | |
d9898ee8 | 9576 | |
d9898ee8 | 9577 | |
d9898ee8 | 9578 | |
d9898ee8 | 9579 | |
d9898ee8 | 9580 | |
d9898ee8 | 9581 | |
d9898ee8 | 9582 | |
d9898ee8 | 9583 | |
d9898ee8 | 9584 | |
d9898ee8 | 9585 | |
d9898ee8 | 9586 | |
d9898ee8 | 9587 | |
d9898ee8 | 9588 | |
d9898ee8 | 9589 | |
d9898ee8 | 9590 | |
d9898ee8 | 9591 | |
d9898ee8 | 9592 | |
d9898ee8 | 9593 | |
d9898ee8 | 9594 | |
d9898ee8 | 9595 | |
d9898ee8 | 9596 | |
9597 | ||
d9898ee8 | 9598 | |
d9898ee8 | 9599 | |
d9898ee8 | 9600 | |
d9898ee8 | 9601 | |
d9898ee8 | 9602 | |
d9898ee8 | 9603 | |
d9898ee8 | 9604 | |
d9898ee8 | 9605 | |
d9898ee8 | 9606 | |
ac40fd9e | 9607 | |
ac40fd9e | 9608 | |
d9898ee8 | 9609 | |
9610 | ||
d9898ee8 | 9611 | |
d9898ee8 | 9612 | |
d9898ee8 | 9613 | |
d9898ee8 | 9614 | |
d9898ee8 | 9615 | |
d9898ee8 | 9616 | |
d9898ee8 | 9617 | |
d9898ee8 | 9618 | |
d9898ee8 | 9619 | |
d9898ee8 | 9620 | |
d9898ee8 | 9621 | |
d9898ee8 | 9622 | |
d9898ee8 | 9623 | |
d9898ee8 | 9624 | |
9625 | ||
d9898ee8 | 9626 | |
d9898ee8 | 9627 | |
d9898ee8 | 9628 | |
9629 | ||
d9898ee8 | 9630 | |
d9898ee8 | 9631 | |
d9898ee8 | 9632 | |
d9898ee8 | 9633 | |
d9898ee8 | 9634 | |
d9898ee8 | 9635 | |
d9898ee8 | 9636 | |
ac40fd9e | 9637 | |
d9898ee8 | 9638 | |
d9898ee8 | 9639 | |
d9898ee8 | 9640 | |
d9898ee8 | 9641 | |
d9898ee8 | 9642 | |
d9898ee8 | 9643 | |
d9898ee8 | 9644 | |
8d138742 CE |
9645 | |
9646 | ||
9647 | ||
9648 | ||
9649 | ||
9650 | ||
9651 | ||
9652 | ||
9653 | ||
9654 | ||
9655 | ||
9656 | ||
9657 | ||
9658 | ||
9659 | ||
9660 | ||
9661 | ||
9662 | ||
9663 | ||
9664 | ||
9665 | ||
9666 | ||
9667 | ||
9668 | ||
9669 | ||
9670 | ||
9671 | ||
9672 | ||
9673 | ||
9674 | ||
9675 | ||
9676 | ||
9677 | ||
9678 | ||
9679 | ||
9680 | ||
9681 | ||
9682 | ||
9683 | ||
9684 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
9685 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
9686 | ||
9687 | if test "$GCC" = yes; then | |
9688 | case $host_os in | |
9689 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9690 | *) lt_awk_arg="/^libraries:/" ;; | |
9691 | esac | |
9692 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9693 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9694 | # if the path contains ";" then we assume it to be the separator | |
9695 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9696 | # assumed that no part of a normal pathname contains ";" but that should | |
9697 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9698 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9699 | else | |
9700 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9701 | fi | |
9702 | # Ok, now we have the path, separated by spaces, we can step through it | |
9703 | # and add multilib dir if necessary. | |
9704 | lt_tmp_lt_search_path_spec= | |
9705 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9706 | for lt_sys_path in $lt_search_path_spec; do | |
9707 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9708 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9709 | else | |
9710 | test -d "$lt_sys_path" && \ | |
9711 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9712 | fi | |
9713 | done | |
9714 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9715 | BEGIN {RS=" "; FS="/|\n";} { | |
9716 | lt_foo=""; | |
9717 | lt_count=0; | |
9718 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9719 | if ($lt_i != "" && $lt_i != ".") { | |
9720 | if ($lt_i == "..") { | |
9721 | lt_count++; | |
9722 | } else { | |
9723 | if (lt_count == 0) { | |
9724 | lt_foo="/" $lt_i lt_foo; | |
9725 | } else { | |
9726 | lt_count--; | |
9727 | } | |
9728 | } | |
9729 | } | |
9730 | } | |
9731 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9732 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9733 | }'` | |
9734 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9735 | else | |
9736 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9737 | fi | |
9738 | library_names_spec= | |
9739 | libname_spec='lib$name' | |
9740 | soname_spec= | |
9741 | shrext_cmds=".so" | |
9742 | postinstall_cmds= | |
9743 | postuninstall_cmds= | |
9744 | finish_cmds= | |
9745 | finish_eval= | |
9746 | shlibpath_var= | |
9747 | shlibpath_overrides_runpath=unknown | |
9748 | version_type=none | |
9749 | dynamic_linker="$host_os ld.so" | |
9750 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9751 | need_lib_prefix=unknown | |
9752 | hardcode_into_libs=no | |
9753 | ||
9754 | # when you set need_version to no, make sure it does not cause -set_version | |
9755 | # flags to be left without arguments | |
9756 | need_version=unknown | |
9757 | ||
9758 | case $host_os in | |
9759 | aix3*) | |
9760 | version_type=linux | |
9761 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9762 | shlibpath_var=LIBPATH | |
9763 | ||
9764 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9765 | soname_spec='${libname}${release}${shared_ext}$major' | |
9766 | ;; | |
9767 | ||
9768 | aix[4-9]*) | |
9769 | version_type=linux | |
9770 | need_lib_prefix=no | |
9771 | need_version=no | |
9772 | hardcode_into_libs=yes | |
9773 | if test "$host_cpu" = ia64; then | |
9774 | # AIX 5 supports IA64 | |
9775 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9776 | shlibpath_var=LD_LIBRARY_PATH | |
9777 | else | |
9778 | # With GCC up to 2.95.x, collect2 would create an import file | |
9779 | # for dependence libraries. The import file would start with | |
9780 | # the line `#! .'. This would cause the generated library to | |
9781 | # depend on `.', always an invalid library. This was fixed in | |
9782 | # development snapshots of GCC prior to 3.0. | |
9783 | case $host_os in | |
9784 | aix4 | aix4.[01] | aix4.[01].*) | |
9785 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9786 | echo ' yes ' | |
9787 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9788 | : | |
9789 | else | |
9790 | can_build_shared=no | |
9791 | fi | |
9792 | ;; | |
9793 | esac | |
9794 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9795 | # soname into executable. Probably we can add versioning support to | |
9796 | # collect2, so additional links can be useful in future. | |
9797 | if test "$aix_use_runtimelinking" = yes; then | |
9798 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9799 | # instead of lib<name>.a to let people know that these are not | |
9800 | # typical AIX shared libraries. | |
9801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9802 | else | |
9803 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9804 | # and later when we are not doing run time linking. | |
9805 | library_names_spec='${libname}${release}.a $libname.a' | |
9806 | soname_spec='${libname}${release}${shared_ext}$major' | |
9807 | fi | |
9808 | shlibpath_var=LIBPATH | |
9809 | fi | |
9810 | ;; | |
9811 | ||
9812 | amigaos*) | |
9813 | case $host_cpu in | |
9814 | powerpc) | |
9815 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9816 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9818 | ;; | |
9819 | m68k) | |
9820 | library_names_spec='$libname.ixlibrary $libname.a' | |
9821 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9822 | 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' | |
9823 | ;; | |
9824 | esac | |
9825 | ;; | |
9826 | ||
9827 | beos*) | |
9828 | library_names_spec='${libname}${shared_ext}' | |
9829 | dynamic_linker="$host_os ld.so" | |
9830 | shlibpath_var=LIBRARY_PATH | |
9831 | ;; | |
9832 | ||
9833 | bsdi[45]*) | |
9834 | version_type=linux | |
9835 | need_version=no | |
d9898ee8 | 9836 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9837 | soname_spec='${libname}${release}${shared_ext}$major' | |
9838 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9839 | shlibpath_var=LD_LIBRARY_PATH | |
9840 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9841 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9842 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9843 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9844 | # libtool to hard-code these into programs | |
9845 | ;; | |
9846 | ||
8d138742 | 9847 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 9848 | version_type=windows |
9849 | shrext_cmds=".dll" | |
9850 | need_version=no | |
9851 | need_lib_prefix=no | |
9852 | ||
9853 | case $GCC,$host_os in | |
8d138742 | 9854 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
d9898ee8 | 9855 | library_names_spec='$libname.dll.a' |
9856 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9857 | postinstall_cmds='base_file=`basename \${file}`~ | |
8d138742 | 9858 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
d9898ee8 | 9859 | dldir=$destdir/`dirname \$dlpath`~ |
9860 | test -d \$dldir || mkdir -p \$dldir~ | |
9861 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8d138742 CE |
9862 | chmod a+x \$dldir/$dlname~ |
9863 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9864 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9865 | fi' | |
d9898ee8 | 9866 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
9867 | dlpath=$dir/\$dldll~ | |
8d138742 | 9868 | $RM \$dlpath' |
d9898ee8 | 9869 | shlibpath_overrides_runpath=yes |
9870 | ||
9871 | case $host_os in | |
9872 | cygwin*) | |
9873 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9874 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9875 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
9876 | ;; | |
8d138742 | 9877 | mingw* | cegcc*) |
d9898ee8 | 9878 | # MinGW DLLs use traditional 'lib' prefix |
9879 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8d138742 CE |
9880 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
9881 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
d9898ee8 | 9882 | # It is most probably a Windows format PATH printed by |
9883 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
9884 | # path with ; separators, and with drive letters. We can handle the | |
9885 | # drive letters (cygwin fileutils understands them), so leave them, | |
9886 | # especially as we might pass files found there to a mingw objdump, | |
9887 | # which wouldn't understand a cygwinified path. Ahh. | |
8d138742 | 9888 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
d9898ee8 | 9889 | else |
8d138742 | 9890 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
d9898ee8 | 9891 | fi |
9892 | ;; | |
9893 | pw32*) | |
9894 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9895 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9896 | ;; | |
9897 | esac | |
9898 | ;; | |
9899 | ||
9900 | *) | |
9901 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9902 | ;; | |
9903 | esac | |
9904 | dynamic_linker='Win32 ld.exe' | |
9905 | # FIXME: first we should search . and the directory the executable is in | |
9906 | shlibpath_var=PATH | |
9907 | ;; | |
9908 | ||
9909 | darwin* | rhapsody*) | |
9910 | dynamic_linker="$host_os dyld" | |
9911 | version_type=darwin | |
9912 | need_lib_prefix=no | |
9913 | need_version=no | |
8d138742 | 9914 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
d9898ee8 | 9915 | soname_spec='${libname}${release}${major}$shared_ext' |
9916 | shlibpath_overrides_runpath=yes | |
9917 | shlibpath_var=DYLD_LIBRARY_PATH | |
9918 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
ac40fd9e | 9919 | |
8d138742 | 9920 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 | 9921 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
9922 | ;; | |
9923 | ||
9924 | dgux*) | |
9925 | version_type=linux | |
9926 | need_lib_prefix=no | |
9927 | need_version=no | |
9928 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9929 | soname_spec='${libname}${release}${shared_ext}$major' | |
9930 | shlibpath_var=LD_LIBRARY_PATH | |
9931 | ;; | |
9932 | ||
9933 | freebsd1*) | |
9934 | dynamic_linker=no | |
9935 | ;; | |
9936 | ||
d9898ee8 | 9937 | freebsd* | dragonfly*) |
9938 | # DragonFly does not have aout. When/if they implement a new | |
9939 | # versioning mechanism, adjust this. | |
9940 | if test -x /usr/bin/objformat; then | |
9941 | objformat=`/usr/bin/objformat` | |
9942 | else | |
9943 | case $host_os in | |
9944 | freebsd[123]*) objformat=aout ;; | |
9945 | *) objformat=elf ;; | |
9946 | esac | |
9947 | fi | |
9948 | version_type=freebsd-$objformat | |
9949 | case $version_type in | |
9950 | freebsd-elf*) | |
9951 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9952 | need_version=no | |
9953 | need_lib_prefix=no | |
9954 | ;; | |
9955 | freebsd-*) | |
9956 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9957 | need_version=yes | |
9958 | ;; | |
9959 | esac | |
9960 | shlibpath_var=LD_LIBRARY_PATH | |
9961 | case $host_os in | |
9962 | freebsd2*) | |
9963 | shlibpath_overrides_runpath=yes | |
9964 | ;; | |
9965 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9966 | shlibpath_overrides_runpath=yes | |
9967 | hardcode_into_libs=yes | |
9968 | ;; | |
9969 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9970 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9971 | shlibpath_overrides_runpath=no | |
9972 | hardcode_into_libs=yes | |
9973 | ;; | |
ac40fd9e | 9974 | *) # from 4.6 on, and DragonFly |
d9898ee8 | 9975 | shlibpath_overrides_runpath=yes |
9976 | hardcode_into_libs=yes | |
9977 | ;; | |
9978 | esac | |
9979 | ;; | |
9980 | ||
9981 | gnu*) | |
9982 | version_type=linux | |
9983 | need_lib_prefix=no | |
9984 | need_version=no | |
9985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9986 | soname_spec='${libname}${release}${shared_ext}$major' | |
9987 | shlibpath_var=LD_LIBRARY_PATH | |
9988 | hardcode_into_libs=yes | |
9989 | ;; | |
9990 | ||
9991 | hpux9* | hpux10* | hpux11*) | |
9992 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9993 | # link against other versions. | |
9994 | version_type=sunos | |
9995 | need_lib_prefix=no | |
9996 | need_version=no | |
9997 | case $host_cpu in | |
9998 | ia64*) | |
9999 | shrext_cmds='.so' | |
10000 | hardcode_into_libs=yes | |
10001 | dynamic_linker="$host_os dld.so" | |
10002 | shlibpath_var=LD_LIBRARY_PATH | |
10003 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10004 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10005 | soname_spec='${libname}${release}${shared_ext}$major' | |
10006 | if test "X$HPUX_IA64_MODE" = X32; then | |
10007 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10008 | else | |
10009 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10010 | fi | |
10011 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10012 | ;; | |
8d138742 CE |
10013 | hppa*64*) |
10014 | shrext_cmds='.sl' | |
10015 | hardcode_into_libs=yes | |
10016 | dynamic_linker="$host_os dld.sl" | |
10017 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10018 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10019 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10020 | soname_spec='${libname}${release}${shared_ext}$major' | |
10021 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10022 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10023 | ;; | |
10024 | *) | |
d9898ee8 | 10025 | shrext_cmds='.sl' |
10026 | dynamic_linker="$host_os dld.sl" | |
10027 | shlibpath_var=SHLIB_PATH | |
10028 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10029 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10030 | soname_spec='${libname}${release}${shared_ext}$major' | |
10031 | ;; | |
10032 | esac | |
10033 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10034 | postinstall_cmds='chmod 555 $lib' | |
10035 | ;; | |
10036 | ||
ac40fd9e | 10037 | interix[3-9]*) |
d9898ee8 | 10038 | version_type=linux |
10039 | need_lib_prefix=no | |
10040 | need_version=no | |
10041 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10042 | soname_spec='${libname}${release}${shared_ext}$major' | |
10043 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10044 | shlibpath_var=LD_LIBRARY_PATH | |
10045 | shlibpath_overrides_runpath=no | |
10046 | hardcode_into_libs=yes | |
10047 | ;; | |
10048 | ||
10049 | irix5* | irix6* | nonstopux*) | |
10050 | case $host_os in | |
10051 | nonstopux*) version_type=nonstopux ;; | |
10052 | *) | |
10053 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10054 | version_type=linux | |
10055 | else | |
10056 | version_type=irix | |
10057 | fi ;; | |
10058 | esac | |
10059 | need_lib_prefix=no | |
10060 | need_version=no | |
10061 | soname_spec='${libname}${release}${shared_ext}$major' | |
10062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10063 | case $host_os in | |
10064 | irix5* | nonstopux*) | |
10065 | libsuff= shlibsuff= | |
10066 | ;; | |
10067 | *) | |
10068 | case $LD in # libtool.m4 will add one of these switches to LD | |
10069 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10070 | libsuff= shlibsuff= libmagic=32-bit;; | |
10071 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10072 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10073 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10074 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10075 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10076 | esac | |
10077 | ;; | |
10078 | esac | |
10079 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10080 | shlibpath_overrides_runpath=no | |
10081 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10082 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10083 | hardcode_into_libs=yes | |
10084 | ;; | |
10085 | ||
10086 | # No shared lib support for Linux oldld, aout, or coff. | |
10087 | linux*oldld* | linux*aout* | linux*coff*) | |
10088 | dynamic_linker=no | |
10089 | ;; | |
10090 | ||
10091 | # This must be Linux ELF. | |
ac40fd9e | 10092 | linux* | k*bsd*-gnu) |
d9898ee8 | 10093 | version_type=linux |
10094 | need_lib_prefix=no | |
10095 | need_version=no | |
10096 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10097 | soname_spec='${libname}${release}${shared_ext}$major' | |
10098 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10099 | shlibpath_var=LD_LIBRARY_PATH | |
10100 | shlibpath_overrides_runpath=no | |
8d138742 CE |
10101 | # Some binutils ld are patched to set DT_RUNPATH |
10102 | save_LDFLAGS=$LDFLAGS | |
10103 | save_libdir=$libdir | |
10104 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10105 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10106 | cat >conftest.$ac_ext <<_ACEOF | |
10107 | /* confdefs.h. */ | |
10108 | _ACEOF | |
10109 | cat confdefs.h >>conftest.$ac_ext | |
10110 | cat >>conftest.$ac_ext <<_ACEOF | |
10111 | /* end confdefs.h. */ | |
10112 | ||
10113 | int | |
10114 | main () | |
10115 | { | |
10116 | ||
10117 | ; | |
10118 | return 0; | |
10119 | } | |
10120 | _ACEOF | |
10121 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10122 | if { (ac_try="$ac_link" | |
10123 | case "(($ac_try" in | |
10124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10125 | *) ac_try_echo=$ac_try;; | |
10126 | esac | |
10127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10128 | $as_echo "$ac_try_echo") >&5 | |
10129 | (eval "$ac_link") 2>conftest.er1 | |
10130 | ac_status=$? | |
10131 | grep -v '^ *+' conftest.er1 >conftest.err | |
10132 | rm -f conftest.er1 | |
10133 | cat conftest.err >&5 | |
10134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10135 | (exit $ac_status); } && { | |
10136 | test -z "$ac_c_werror_flag" || | |
10137 | test ! -s conftest.err | |
10138 | } && test -s conftest$ac_exeext && { | |
10139 | test "$cross_compiling" = yes || | |
10140 | $as_test_x conftest$ac_exeext | |
10141 | }; then | |
10142 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then | |
10143 | shlibpath_overrides_runpath=yes | |
10144 | fi | |
10145 | ||
10146 | else | |
10147 | $as_echo "$as_me: failed program was:" >&5 | |
10148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10149 | ||
10150 | ||
10151 | fi | |
10152 | ||
10153 | rm -rf conftest.dSYM | |
10154 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10155 | conftest$ac_exeext conftest.$ac_ext | |
10156 | LDFLAGS=$save_LDFLAGS | |
10157 | libdir=$save_libdir | |
10158 | ||
d9898ee8 | 10159 | # This implies no fast_install, which is unacceptable. |
10160 | # Some rework will be needed to allow for fast_install | |
10161 | # before this can be enabled. | |
10162 | hardcode_into_libs=yes | |
8d138742 CE |
10163 | |
10164 | # Add ABI-specific directories to the system library path. | |
10165 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 10166 | |
10167 | # Append ld.so.conf contents to the search path | |
10168 | if test -f /etc/ld.so.conf; then | |
8d138742 | 10169 | 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' ' '` |
ac40fd9e | 10170 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 | 10171 | fi |
10172 | ||
10173 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10174 | # powerpc, because MkLinux only supported shared libraries with the | |
10175 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10176 | # most powerpc-linux boxes support dynamic linking these days and | |
10177 | # people can always --disable-shared, the test was removed, and we | |
10178 | # assume the GNU/Linux dynamic linker is in use. | |
10179 | dynamic_linker='GNU/Linux ld.so' | |
10180 | ;; | |
10181 | ||
d9898ee8 | 10182 | netbsd*) |
10183 | version_type=sunos | |
10184 | need_lib_prefix=no | |
10185 | need_version=no | |
8d138742 | 10186 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
d9898ee8 | 10187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
10188 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10189 | dynamic_linker='NetBSD (a.out) ld.so' | |
10190 | else | |
10191 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10192 | soname_spec='${libname}${release}${shared_ext}$major' | |
10193 | dynamic_linker='NetBSD ld.elf_so' | |
10194 | fi | |
10195 | shlibpath_var=LD_LIBRARY_PATH | |
10196 | shlibpath_overrides_runpath=yes | |
10197 | hardcode_into_libs=yes | |
10198 | ;; | |
10199 | ||
10200 | newsos6) | |
10201 | version_type=linux | |
10202 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10203 | shlibpath_var=LD_LIBRARY_PATH | |
10204 | shlibpath_overrides_runpath=yes | |
10205 | ;; | |
10206 | ||
8d138742 CE |
10207 | *nto* | *qnx*) |
10208 | version_type=qnx | |
d9898ee8 | 10209 | need_lib_prefix=no |
10210 | need_version=no | |
10211 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10212 | soname_spec='${libname}${release}${shared_ext}$major' | |
10213 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 CE |
10214 | shlibpath_overrides_runpath=no |
10215 | hardcode_into_libs=yes | |
10216 | dynamic_linker='ldqnx.so' | |
d9898ee8 | 10217 | ;; |
10218 | ||
10219 | openbsd*) | |
10220 | version_type=sunos | |
10221 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10222 | need_lib_prefix=no | |
10223 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10224 | case $host_os in | |
8d138742 CE |
10225 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
10226 | *) need_version=no ;; | |
d9898ee8 | 10227 | esac |
10228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10229 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10230 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 | 10231 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
d9898ee8 | 10232 | case $host_os in |
10233 | openbsd2.[89] | openbsd2.[89].*) | |
10234 | shlibpath_overrides_runpath=no | |
10235 | ;; | |
10236 | *) | |
10237 | shlibpath_overrides_runpath=yes | |
10238 | ;; | |
10239 | esac | |
10240 | else | |
10241 | shlibpath_overrides_runpath=yes | |
10242 | fi | |
10243 | ;; | |
10244 | ||
10245 | os2*) | |
10246 | libname_spec='$name' | |
10247 | shrext_cmds=".dll" | |
10248 | need_lib_prefix=no | |
10249 | library_names_spec='$libname${shared_ext} $libname.a' | |
10250 | dynamic_linker='OS/2 ld.exe' | |
10251 | shlibpath_var=LIBPATH | |
10252 | ;; | |
10253 | ||
10254 | osf3* | osf4* | osf5*) | |
10255 | version_type=osf | |
10256 | need_lib_prefix=no | |
10257 | need_version=no | |
10258 | soname_spec='${libname}${release}${shared_ext}$major' | |
10259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10260 | shlibpath_var=LD_LIBRARY_PATH | |
10261 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10262 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10263 | ;; | |
10264 | ||
ac40fd9e | 10265 | rdos*) |
10266 | dynamic_linker=no | |
10267 | ;; | |
10268 | ||
d9898ee8 | 10269 | solaris*) |
10270 | version_type=linux | |
10271 | need_lib_prefix=no | |
10272 | need_version=no | |
10273 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10274 | soname_spec='${libname}${release}${shared_ext}$major' | |
10275 | shlibpath_var=LD_LIBRARY_PATH | |
10276 | shlibpath_overrides_runpath=yes | |
10277 | hardcode_into_libs=yes | |
10278 | # ldd complains unless libraries are executable | |
10279 | postinstall_cmds='chmod +x $lib' | |
10280 | ;; | |
10281 | ||
10282 | sunos4*) | |
10283 | version_type=sunos | |
10284 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10285 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10286 | shlibpath_var=LD_LIBRARY_PATH | |
10287 | shlibpath_overrides_runpath=yes | |
10288 | if test "$with_gnu_ld" = yes; then | |
10289 | need_lib_prefix=no | |
10290 | fi | |
10291 | need_version=yes | |
10292 | ;; | |
10293 | ||
10294 | sysv4 | sysv4.3*) | |
10295 | version_type=linux | |
10296 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10297 | soname_spec='${libname}${release}${shared_ext}$major' | |
10298 | shlibpath_var=LD_LIBRARY_PATH | |
10299 | case $host_vendor in | |
10300 | sni) | |
10301 | shlibpath_overrides_runpath=no | |
10302 | need_lib_prefix=no | |
d9898ee8 | 10303 | runpath_var=LD_RUN_PATH |
10304 | ;; | |
10305 | siemens) | |
10306 | need_lib_prefix=no | |
10307 | ;; | |
10308 | motorola) | |
10309 | need_lib_prefix=no | |
10310 | need_version=no | |
10311 | shlibpath_overrides_runpath=no | |
10312 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10313 | ;; | |
10314 | esac | |
10315 | ;; | |
10316 | ||
10317 | sysv4*MP*) | |
10318 | if test -d /usr/nec ;then | |
10319 | version_type=linux | |
10320 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10321 | soname_spec='$libname${shared_ext}.$major' | |
10322 | shlibpath_var=LD_LIBRARY_PATH | |
10323 | fi | |
10324 | ;; | |
10325 | ||
10326 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10327 | version_type=freebsd-elf | |
10328 | need_lib_prefix=no | |
10329 | need_version=no | |
10330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10331 | soname_spec='${libname}${release}${shared_ext}$major' | |
10332 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 | 10333 | shlibpath_overrides_runpath=yes |
d9898ee8 | 10334 | hardcode_into_libs=yes |
10335 | if test "$with_gnu_ld" = yes; then | |
10336 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
d9898ee8 | 10337 | else |
10338 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
d9898ee8 | 10339 | case $host_os in |
10340 | sco3.2v5*) | |
10341 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10342 | ;; | |
10343 | esac | |
10344 | fi | |
10345 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10346 | ;; | |
10347 | ||
8d138742 CE |
10348 | tpf*) |
10349 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10350 | version_type=linux | |
10351 | need_lib_prefix=no | |
10352 | need_version=no | |
10353 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10354 | shlibpath_var=LD_LIBRARY_PATH | |
10355 | shlibpath_overrides_runpath=no | |
10356 | hardcode_into_libs=yes | |
10357 | ;; | |
10358 | ||
d9898ee8 | 10359 | uts4*) |
10360 | version_type=linux | |
10361 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10362 | soname_spec='${libname}${release}${shared_ext}$major' | |
10363 | shlibpath_var=LD_LIBRARY_PATH | |
10364 | ;; | |
10365 | ||
10366 | *) | |
10367 | dynamic_linker=no | |
10368 | ;; | |
10369 | esac | |
8d138742 CE |
10370 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
10371 | $as_echo "$dynamic_linker" >&6; } | |
d9898ee8 | 10372 | test "$dynamic_linker" = no && can_build_shared=no |
10373 | ||
10374 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10375 | if test "$GCC" = yes; then | |
10376 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10377 | fi | |
10378 | ||
8d138742 CE |
10379 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10380 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10381 | fi | |
10382 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10383 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10384 | fi | |
d9898ee8 | 10385 | |
10386 | ||
d9898ee8 | 10387 | |
d9898ee8 | 10388 | |
d9898ee8 | 10389 | |
d9898ee8 | 10390 | |
d9898ee8 | 10391 | |
d9898ee8 | 10392 | |
d9898ee8 | 10393 | |
d9898ee8 | 10394 | |
d9898ee8 | 10395 | |
d9898ee8 | 10396 | |
d9898ee8 | 10397 | |
d9898ee8 | 10398 | |
d9898ee8 | 10399 | |
d9898ee8 | 10400 | |
d9898ee8 | 10401 | |
d9898ee8 | 10402 | |
d9898ee8 | 10403 | |
d9898ee8 | 10404 | |
d9898ee8 | 10405 | |
d9898ee8 | 10406 | |
d9898ee8 | 10407 | |
d9898ee8 | 10408 | |
d9898ee8 | 10409 | |
d9898ee8 | 10410 | |
d9898ee8 | 10411 | |
d9898ee8 | 10412 | |
d9898ee8 | 10413 | |
d9898ee8 | 10414 | |
d9898ee8 | 10415 | |
d9898ee8 | 10416 | |
d9898ee8 | 10417 | |
d9898ee8 | 10418 | |
d9898ee8 | 10419 | |
d9898ee8 | 10420 | |
d9898ee8 | 10421 | |
d9898ee8 | 10422 | |
d9898ee8 | 10423 | |
d9898ee8 | 10424 | |
d9898ee8 | 10425 | |
d9898ee8 | 10426 | |
d9898ee8 | 10427 | |
d9898ee8 | 10428 | |
d9898ee8 | 10429 | |
d9898ee8 | 10430 | |
d9898ee8 | 10431 | |
d9898ee8 | 10432 | |
d9898ee8 | 10433 | |
d9898ee8 | 10434 | |
d9898ee8 | 10435 | |
d9898ee8 | 10436 | |
d9898ee8 | 10437 | |
d9898ee8 | 10438 | |
d9898ee8 | 10439 | |
d9898ee8 | 10440 | |
d9898ee8 | 10441 | |
d9898ee8 | 10442 | |
d9898ee8 | 10443 | |
d9898ee8 | 10444 | |
d9898ee8 | 10445 | |
d9898ee8 | 10446 | |
d9898ee8 | 10447 | |
d9898ee8 | 10448 | |
d9898ee8 | 10449 | |
d9898ee8 | 10450 | |
d9898ee8 | 10451 | |
d9898ee8 | 10452 | |
d9898ee8 | 10453 | |
d9898ee8 | 10454 | |
d9898ee8 | 10455 | |
d9898ee8 | 10456 | |
d9898ee8 | 10457 | |
d9898ee8 | 10458 | |
d9898ee8 | 10459 | |
d9898ee8 | 10460 | |
d9898ee8 | 10461 | |
d9898ee8 | 10462 | |
d9898ee8 | 10463 | |
d9898ee8 | 10464 | |
d9898ee8 | 10465 | |
d9898ee8 | 10466 | |
d9898ee8 | 10467 | |
d9898ee8 | 10468 | |
d9898ee8 | 10469 | |
d9898ee8 | 10470 | |
d9898ee8 | 10471 | |
8d138742 CE |
10472 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
10473 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
10474 | hardcode_action= | |
10475 | if test -n "$hardcode_libdir_flag_spec" || | |
10476 | test -n "$runpath_var" || | |
10477 | test "X$hardcode_automatic" = "Xyes" ; then | |
d9898ee8 | 10478 | |
8d138742 CE |
10479 | # We can hardcode non-existent directories. |
10480 | if test "$hardcode_direct" != no && | |
10481 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10482 | # have to relink, otherwise we might link with an installed library | |
10483 | # when we should be linking with a yet-to-be-installed one | |
10484 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10485 | test "$hardcode_minus_L" != no; then | |
10486 | # Linking always hardcodes the temporary library directory. | |
10487 | hardcode_action=relink | |
10488 | else | |
10489 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10490 | hardcode_action=immediate | |
10491 | fi | |
10492 | else | |
10493 | # We cannot hardcode anything, or else we can only hardcode existing | |
10494 | # directories. | |
10495 | hardcode_action=unsupported | |
10496 | fi | |
10497 | { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
10498 | $as_echo "$hardcode_action" >&6; } | |
d9898ee8 | 10499 | |
8d138742 CE |
10500 | if test "$hardcode_action" = relink || |
10501 | test "$inherit_rpath" = yes; then | |
10502 | # Fast installation is not supported | |
10503 | enable_fast_install=no | |
10504 | elif test "$shlibpath_overrides_runpath" = yes || | |
10505 | test "$enable_shared" = no; then | |
10506 | # Fast installation is not necessary | |
10507 | enable_fast_install=needless | |
10508 | fi | |
d9898ee8 | 10509 | |
d9898ee8 | 10510 | |
d9898ee8 | 10511 | |
d9898ee8 | 10512 | |
d9898ee8 | 10513 | |
d9898ee8 | 10514 | |
8d138742 CE |
10515 | if test "x$enable_dlopen" != xyes; then |
10516 | enable_dlopen=unknown | |
10517 | enable_dlopen_self=unknown | |
10518 | enable_dlopen_self_static=unknown | |
10519 | else | |
10520 | lt_cv_dlopen=no | |
10521 | lt_cv_dlopen_libs= | |
d9898ee8 | 10522 | |
8d138742 CE |
10523 | case $host_os in |
10524 | beos*) | |
10525 | lt_cv_dlopen="load_add_on" | |
10526 | lt_cv_dlopen_libs= | |
10527 | lt_cv_dlopen_self=yes | |
10528 | ;; | |
d9898ee8 | 10529 | |
8d138742 CE |
10530 | mingw* | pw32* | cegcc*) |
10531 | lt_cv_dlopen="LoadLibrary" | |
10532 | lt_cv_dlopen_libs= | |
10533 | ;; | |
d9898ee8 | 10534 | |
8d138742 CE |
10535 | cygwin*) |
10536 | lt_cv_dlopen="dlopen" | |
10537 | lt_cv_dlopen_libs= | |
10538 | ;; | |
d9898ee8 | 10539 | |
8d138742 CE |
10540 | darwin*) |
10541 | # if libdl is installed we need to link against it | |
10542 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10543 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10544 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10545 | $as_echo_n "(cached) " >&6 | |
10546 | else | |
10547 | ac_check_lib_save_LIBS=$LIBS | |
10548 | LIBS="-ldl $LIBS" | |
10549 | cat >conftest.$ac_ext <<_ACEOF | |
10550 | /* confdefs.h. */ | |
10551 | _ACEOF | |
10552 | cat confdefs.h >>conftest.$ac_ext | |
10553 | cat >>conftest.$ac_ext <<_ACEOF | |
10554 | /* end confdefs.h. */ | |
d9898ee8 | 10555 | |
8d138742 CE |
10556 | /* Override any GCC internal prototype to avoid an error. |
10557 | Use char because int might match the return type of a GCC | |
10558 | builtin and then its argument prototype would still apply. */ | |
10559 | #ifdef __cplusplus | |
10560 | extern "C" | |
10561 | #endif | |
10562 | char dlopen (); | |
10563 | int | |
10564 | main () | |
10565 | { | |
10566 | return dlopen (); | |
10567 | ; | |
10568 | return 0; | |
10569 | } | |
10570 | _ACEOF | |
10571 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10572 | if { (ac_try="$ac_link" | |
10573 | case "(($ac_try" in | |
10574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10575 | *) ac_try_echo=$ac_try;; | |
10576 | esac | |
10577 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10578 | $as_echo "$ac_try_echo") >&5 | |
10579 | (eval "$ac_link") 2>conftest.er1 | |
10580 | ac_status=$? | |
10581 | grep -v '^ *+' conftest.er1 >conftest.err | |
10582 | rm -f conftest.er1 | |
10583 | cat conftest.err >&5 | |
10584 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10585 | (exit $ac_status); } && { | |
10586 | test -z "$ac_c_werror_flag" || | |
10587 | test ! -s conftest.err | |
10588 | } && test -s conftest$ac_exeext && { | |
10589 | test "$cross_compiling" = yes || | |
10590 | $as_test_x conftest$ac_exeext | |
10591 | }; then | |
10592 | ac_cv_lib_dl_dlopen=yes | |
d9898ee8 | 10593 | else |
8d138742 CE |
10594 | $as_echo "$as_me: failed program was:" >&5 |
10595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10596 | ||
10597 | ac_cv_lib_dl_dlopen=no | |
d9898ee8 | 10598 | fi |
10599 | ||
8d138742 CE |
10600 | rm -rf conftest.dSYM |
10601 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10602 | conftest$ac_exeext conftest.$ac_ext | |
10603 | LIBS=$ac_check_lib_save_LIBS | |
10604 | fi | |
10605 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10606 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10607 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
10608 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10609 | else | |
d9898ee8 | 10610 | |
8d138742 CE |
10611 | lt_cv_dlopen="dyld" |
10612 | lt_cv_dlopen_libs= | |
10613 | lt_cv_dlopen_self=yes | |
d9898ee8 | 10614 | |
8d138742 | 10615 | fi |
d9898ee8 | 10616 | |
8d138742 | 10617 | ;; |
d9898ee8 | 10618 | |
8d138742 CE |
10619 | *) |
10620 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10621 | $as_echo_n "checking for shl_load... " >&6; } | |
10622 | if test "${ac_cv_func_shl_load+set}" = set; then | |
10623 | $as_echo_n "(cached) " >&6 | |
10624 | else | |
10625 | cat >conftest.$ac_ext <<_ACEOF | |
10626 | /* confdefs.h. */ | |
10627 | _ACEOF | |
10628 | cat confdefs.h >>conftest.$ac_ext | |
10629 | cat >>conftest.$ac_ext <<_ACEOF | |
10630 | /* end confdefs.h. */ | |
10631 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
10632 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10633 | #define shl_load innocuous_shl_load | |
d9898ee8 | 10634 | |
8d138742 CE |
10635 | /* System header to define __stub macros and hopefully few prototypes, |
10636 | which can conflict with char shl_load (); below. | |
10637 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10638 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 10639 | |
8d138742 CE |
10640 | #ifdef __STDC__ |
10641 | # include <limits.h> | |
10642 | #else | |
10643 | # include <assert.h> | |
10644 | #endif | |
d9898ee8 | 10645 | |
8d138742 | 10646 | #undef shl_load |
d9898ee8 | 10647 | |
8d138742 CE |
10648 | /* Override any GCC internal prototype to avoid an error. |
10649 | Use char because int might match the return type of a GCC | |
10650 | builtin and then its argument prototype would still apply. */ | |
10651 | #ifdef __cplusplus | |
10652 | extern "C" | |
10653 | #endif | |
10654 | char shl_load (); | |
10655 | /* The GNU C library defines this for functions which it implements | |
10656 | to always fail with ENOSYS. Some functions are actually named | |
10657 | something starting with __ and the normal name is an alias. */ | |
10658 | #if defined __stub_shl_load || defined __stub___shl_load | |
10659 | choke me | |
10660 | #endif | |
d9898ee8 | 10661 | |
8d138742 CE |
10662 | int |
10663 | main () | |
10664 | { | |
10665 | return shl_load (); | |
10666 | ; | |
10667 | return 0; | |
10668 | } | |
10669 | _ACEOF | |
10670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10671 | if { (ac_try="$ac_link" | |
10672 | case "(($ac_try" in | |
10673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10674 | *) ac_try_echo=$ac_try;; | |
10675 | esac | |
10676 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10677 | $as_echo "$ac_try_echo") >&5 | |
10678 | (eval "$ac_link") 2>conftest.er1 | |
10679 | ac_status=$? | |
10680 | grep -v '^ *+' conftest.er1 >conftest.err | |
10681 | rm -f conftest.er1 | |
10682 | cat conftest.err >&5 | |
10683 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10684 | (exit $ac_status); } && { | |
10685 | test -z "$ac_c_werror_flag" || | |
10686 | test ! -s conftest.err | |
10687 | } && test -s conftest$ac_exeext && { | |
10688 | test "$cross_compiling" = yes || | |
10689 | $as_test_x conftest$ac_exeext | |
10690 | }; then | |
10691 | ac_cv_func_shl_load=yes | |
10692 | else | |
10693 | $as_echo "$as_me: failed program was:" >&5 | |
10694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10695 | |
8d138742 CE |
10696 | ac_cv_func_shl_load=no |
10697 | fi | |
d9898ee8 | 10698 | |
8d138742 CE |
10699 | rm -rf conftest.dSYM |
10700 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10701 | conftest$ac_exeext conftest.$ac_ext | |
10702 | fi | |
10703 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10704 | $as_echo "$ac_cv_func_shl_load" >&6; } | |
10705 | if test "x$ac_cv_func_shl_load" = x""yes; then | |
10706 | lt_cv_dlopen="shl_load" | |
10707 | else | |
10708 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10709 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10710 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10711 | $as_echo_n "(cached) " >&6 | |
10712 | else | |
10713 | ac_check_lib_save_LIBS=$LIBS | |
10714 | LIBS="-ldld $LIBS" | |
10715 | cat >conftest.$ac_ext <<_ACEOF | |
10716 | /* confdefs.h. */ | |
10717 | _ACEOF | |
10718 | cat confdefs.h >>conftest.$ac_ext | |
10719 | cat >>conftest.$ac_ext <<_ACEOF | |
10720 | /* end confdefs.h. */ | |
d9898ee8 | 10721 | |
8d138742 CE |
10722 | /* Override any GCC internal prototype to avoid an error. |
10723 | Use char because int might match the return type of a GCC | |
10724 | builtin and then its argument prototype would still apply. */ | |
10725 | #ifdef __cplusplus | |
10726 | extern "C" | |
10727 | #endif | |
10728 | char shl_load (); | |
10729 | int | |
10730 | main () | |
10731 | { | |
10732 | return shl_load (); | |
10733 | ; | |
10734 | return 0; | |
10735 | } | |
10736 | _ACEOF | |
10737 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10738 | if { (ac_try="$ac_link" | |
10739 | case "(($ac_try" in | |
10740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10741 | *) ac_try_echo=$ac_try;; | |
10742 | esac | |
10743 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10744 | $as_echo "$ac_try_echo") >&5 | |
10745 | (eval "$ac_link") 2>conftest.er1 | |
10746 | ac_status=$? | |
10747 | grep -v '^ *+' conftest.er1 >conftest.err | |
10748 | rm -f conftest.er1 | |
10749 | cat conftest.err >&5 | |
10750 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10751 | (exit $ac_status); } && { | |
10752 | test -z "$ac_c_werror_flag" || | |
10753 | test ! -s conftest.err | |
10754 | } && test -s conftest$ac_exeext && { | |
10755 | test "$cross_compiling" = yes || | |
10756 | $as_test_x conftest$ac_exeext | |
10757 | }; then | |
10758 | ac_cv_lib_dld_shl_load=yes | |
10759 | else | |
10760 | $as_echo "$as_me: failed program was:" >&5 | |
10761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10762 | |
8d138742 CE |
10763 | ac_cv_lib_dld_shl_load=no |
10764 | fi | |
d9898ee8 | 10765 | |
8d138742 CE |
10766 | rm -rf conftest.dSYM |
10767 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10768 | conftest$ac_exeext conftest.$ac_ext | |
10769 | LIBS=$ac_check_lib_save_LIBS | |
10770 | fi | |
10771 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10772 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10773 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then | |
10774 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10775 | else | |
10776 | { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10777 | $as_echo_n "checking for dlopen... " >&6; } | |
10778 | if test "${ac_cv_func_dlopen+set}" = set; then | |
10779 | $as_echo_n "(cached) " >&6 | |
10780 | else | |
10781 | cat >conftest.$ac_ext <<_ACEOF | |
10782 | /* confdefs.h. */ | |
10783 | _ACEOF | |
10784 | cat confdefs.h >>conftest.$ac_ext | |
10785 | cat >>conftest.$ac_ext <<_ACEOF | |
10786 | /* end confdefs.h. */ | |
10787 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
10788 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10789 | #define dlopen innocuous_dlopen | |
d9898ee8 | 10790 | |
8d138742 CE |
10791 | /* System header to define __stub macros and hopefully few prototypes, |
10792 | which can conflict with char dlopen (); below. | |
10793 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10794 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 10795 | |
8d138742 CE |
10796 | #ifdef __STDC__ |
10797 | # include <limits.h> | |
10798 | #else | |
10799 | # include <assert.h> | |
10800 | #endif | |
d9898ee8 | 10801 | |
8d138742 | 10802 | #undef dlopen |
d9898ee8 | 10803 | |
8d138742 CE |
10804 | /* Override any GCC internal prototype to avoid an error. |
10805 | Use char because int might match the return type of a GCC | |
10806 | builtin and then its argument prototype would still apply. */ | |
10807 | #ifdef __cplusplus | |
10808 | extern "C" | |
10809 | #endif | |
10810 | char dlopen (); | |
10811 | /* The GNU C library defines this for functions which it implements | |
10812 | to always fail with ENOSYS. Some functions are actually named | |
10813 | something starting with __ and the normal name is an alias. */ | |
10814 | #if defined __stub_dlopen || defined __stub___dlopen | |
10815 | choke me | |
10816 | #endif | |
d9898ee8 | 10817 | |
8d138742 CE |
10818 | int |
10819 | main () | |
10820 | { | |
10821 | return dlopen (); | |
10822 | ; | |
10823 | return 0; | |
10824 | } | |
10825 | _ACEOF | |
10826 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10827 | if { (ac_try="$ac_link" | |
10828 | case "(($ac_try" in | |
10829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10830 | *) ac_try_echo=$ac_try;; | |
d9898ee8 | 10831 | esac |
8d138742 CE |
10832 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10833 | $as_echo "$ac_try_echo") >&5 | |
10834 | (eval "$ac_link") 2>conftest.er1 | |
10835 | ac_status=$? | |
10836 | grep -v '^ *+' conftest.er1 >conftest.err | |
10837 | rm -f conftest.er1 | |
10838 | cat conftest.err >&5 | |
10839 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10840 | (exit $ac_status); } && { | |
10841 | test -z "$ac_c_werror_flag" || | |
10842 | test ! -s conftest.err | |
10843 | } && test -s conftest$ac_exeext && { | |
10844 | test "$cross_compiling" = yes || | |
10845 | $as_test_x conftest$ac_exeext | |
10846 | }; then | |
10847 | ac_cv_func_dlopen=yes | |
10848 | else | |
10849 | $as_echo "$as_me: failed program was:" >&5 | |
10850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10851 | |
8d138742 CE |
10852 | ac_cv_func_dlopen=no |
10853 | fi | |
d9898ee8 | 10854 | |
8d138742 CE |
10855 | rm -rf conftest.dSYM |
10856 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10857 | conftest$ac_exeext conftest.$ac_ext | |
10858 | fi | |
10859 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
10860 | $as_echo "$ac_cv_func_dlopen" >&6; } | |
10861 | if test "x$ac_cv_func_dlopen" = x""yes; then | |
10862 | lt_cv_dlopen="dlopen" | |
10863 | else | |
10864 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10865 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10866 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10867 | $as_echo_n "(cached) " >&6 | |
10868 | else | |
10869 | ac_check_lib_save_LIBS=$LIBS | |
10870 | LIBS="-ldl $LIBS" | |
10871 | cat >conftest.$ac_ext <<_ACEOF | |
10872 | /* confdefs.h. */ | |
10873 | _ACEOF | |
10874 | cat confdefs.h >>conftest.$ac_ext | |
10875 | cat >>conftest.$ac_ext <<_ACEOF | |
10876 | /* end confdefs.h. */ | |
d9898ee8 | 10877 | |
8d138742 CE |
10878 | /* Override any GCC internal prototype to avoid an error. |
10879 | Use char because int might match the return type of a GCC | |
10880 | builtin and then its argument prototype would still apply. */ | |
10881 | #ifdef __cplusplus | |
10882 | extern "C" | |
10883 | #endif | |
10884 | char dlopen (); | |
10885 | int | |
10886 | main () | |
10887 | { | |
10888 | return dlopen (); | |
10889 | ; | |
10890 | return 0; | |
10891 | } | |
10892 | _ACEOF | |
10893 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10894 | if { (ac_try="$ac_link" | |
10895 | case "(($ac_try" in | |
10896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10897 | *) ac_try_echo=$ac_try;; | |
10898 | esac | |
10899 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10900 | $as_echo "$ac_try_echo") >&5 | |
10901 | (eval "$ac_link") 2>conftest.er1 | |
10902 | ac_status=$? | |
10903 | grep -v '^ *+' conftest.er1 >conftest.err | |
10904 | rm -f conftest.er1 | |
10905 | cat conftest.err >&5 | |
10906 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10907 | (exit $ac_status); } && { | |
10908 | test -z "$ac_c_werror_flag" || | |
10909 | test ! -s conftest.err | |
10910 | } && test -s conftest$ac_exeext && { | |
10911 | test "$cross_compiling" = yes || | |
10912 | $as_test_x conftest$ac_exeext | |
10913 | }; then | |
10914 | ac_cv_lib_dl_dlopen=yes | |
10915 | else | |
10916 | $as_echo "$as_me: failed program was:" >&5 | |
10917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10918 | |
8d138742 CE |
10919 | ac_cv_lib_dl_dlopen=no |
10920 | fi | |
d9898ee8 | 10921 | |
8d138742 CE |
10922 | rm -rf conftest.dSYM |
10923 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10924 | conftest$ac_exeext conftest.$ac_ext | |
10925 | LIBS=$ac_check_lib_save_LIBS | |
10926 | fi | |
10927 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10928 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10929 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
10930 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10931 | else | |
10932 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
10933 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10934 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
10935 | $as_echo_n "(cached) " >&6 | |
10936 | else | |
10937 | ac_check_lib_save_LIBS=$LIBS | |
10938 | LIBS="-lsvld $LIBS" | |
10939 | cat >conftest.$ac_ext <<_ACEOF | |
10940 | /* confdefs.h. */ | |
10941 | _ACEOF | |
10942 | cat confdefs.h >>conftest.$ac_ext | |
10943 | cat >>conftest.$ac_ext <<_ACEOF | |
10944 | /* end confdefs.h. */ | |
d9898ee8 | 10945 | |
8d138742 CE |
10946 | /* Override any GCC internal prototype to avoid an error. |
10947 | Use char because int might match the return type of a GCC | |
10948 | builtin and then its argument prototype would still apply. */ | |
10949 | #ifdef __cplusplus | |
10950 | extern "C" | |
10951 | #endif | |
10952 | char dlopen (); | |
10953 | int | |
10954 | main () | |
10955 | { | |
10956 | return dlopen (); | |
10957 | ; | |
10958 | return 0; | |
10959 | } | |
10960 | _ACEOF | |
10961 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10962 | if { (ac_try="$ac_link" | |
10963 | case "(($ac_try" in | |
10964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10965 | *) ac_try_echo=$ac_try;; | |
10966 | esac | |
10967 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10968 | $as_echo "$ac_try_echo") >&5 | |
10969 | (eval "$ac_link") 2>conftest.er1 | |
10970 | ac_status=$? | |
10971 | grep -v '^ *+' conftest.er1 >conftest.err | |
10972 | rm -f conftest.er1 | |
10973 | cat conftest.err >&5 | |
10974 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10975 | (exit $ac_status); } && { | |
10976 | test -z "$ac_c_werror_flag" || | |
10977 | test ! -s conftest.err | |
10978 | } && test -s conftest$ac_exeext && { | |
10979 | test "$cross_compiling" = yes || | |
10980 | $as_test_x conftest$ac_exeext | |
10981 | }; then | |
10982 | ac_cv_lib_svld_dlopen=yes | |
10983 | else | |
10984 | $as_echo "$as_me: failed program was:" >&5 | |
10985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10986 | |
8d138742 CE |
10987 | ac_cv_lib_svld_dlopen=no |
10988 | fi | |
d9898ee8 | 10989 | |
8d138742 CE |
10990 | rm -rf conftest.dSYM |
10991 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10992 | conftest$ac_exeext conftest.$ac_ext | |
10993 | LIBS=$ac_check_lib_save_LIBS | |
10994 | fi | |
10995 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
10996 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
10997 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then | |
10998 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10999 | else | |
11000 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
11001 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11002 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
11003 | $as_echo_n "(cached) " >&6 | |
11004 | else | |
11005 | ac_check_lib_save_LIBS=$LIBS | |
11006 | LIBS="-ldld $LIBS" | |
11007 | cat >conftest.$ac_ext <<_ACEOF | |
11008 | /* confdefs.h. */ | |
11009 | _ACEOF | |
11010 | cat confdefs.h >>conftest.$ac_ext | |
11011 | cat >>conftest.$ac_ext <<_ACEOF | |
11012 | /* end confdefs.h. */ | |
d9898ee8 | 11013 | |
8d138742 CE |
11014 | /* Override any GCC internal prototype to avoid an error. |
11015 | Use char because int might match the return type of a GCC | |
11016 | builtin and then its argument prototype would still apply. */ | |
11017 | #ifdef __cplusplus | |
11018 | extern "C" | |
11019 | #endif | |
11020 | char dld_link (); | |
11021 | int | |
11022 | main () | |
11023 | { | |
11024 | return dld_link (); | |
11025 | ; | |
11026 | return 0; | |
11027 | } | |
11028 | _ACEOF | |
11029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11030 | if { (ac_try="$ac_link" | |
11031 | case "(($ac_try" in | |
11032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11033 | *) ac_try_echo=$ac_try;; | |
11034 | esac | |
11035 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11036 | $as_echo "$ac_try_echo") >&5 | |
11037 | (eval "$ac_link") 2>conftest.er1 | |
11038 | ac_status=$? | |
11039 | grep -v '^ *+' conftest.er1 >conftest.err | |
11040 | rm -f conftest.er1 | |
11041 | cat conftest.err >&5 | |
11042 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11043 | (exit $ac_status); } && { | |
11044 | test -z "$ac_c_werror_flag" || | |
11045 | test ! -s conftest.err | |
11046 | } && test -s conftest$ac_exeext && { | |
11047 | test "$cross_compiling" = yes || | |
11048 | $as_test_x conftest$ac_exeext | |
11049 | }; then | |
11050 | ac_cv_lib_dld_dld_link=yes | |
11051 | else | |
11052 | $as_echo "$as_me: failed program was:" >&5 | |
11053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11054 | |
8d138742 CE |
11055 | ac_cv_lib_dld_dld_link=no |
11056 | fi | |
d9898ee8 | 11057 | |
8d138742 CE |
11058 | rm -rf conftest.dSYM |
11059 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11060 | conftest$ac_exeext conftest.$ac_ext | |
11061 | LIBS=$ac_check_lib_save_LIBS | |
11062 | fi | |
11063 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
11064 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11065 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then | |
11066 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
11067 | fi | |
d9898ee8 | 11068 | |
d9898ee8 | 11069 | |
8d138742 | 11070 | fi |
d9898ee8 | 11071 | |
d9898ee8 | 11072 | |
8d138742 | 11073 | fi |
d9898ee8 | 11074 | |
d9898ee8 | 11075 | |
8d138742 | 11076 | fi |
d9898ee8 | 11077 | |
d9898ee8 | 11078 | |
8d138742 | 11079 | fi |
d9898ee8 | 11080 | |
d9898ee8 | 11081 | |
8d138742 | 11082 | fi |
ac40fd9e | 11083 | |
8d138742 CE |
11084 | ;; |
11085 | esac | |
d9898ee8 | 11086 | |
8d138742 CE |
11087 | if test "x$lt_cv_dlopen" != xno; then |
11088 | enable_dlopen=yes | |
11089 | else | |
11090 | enable_dlopen=no | |
11091 | fi | |
d9898ee8 | 11092 | |
8d138742 CE |
11093 | case $lt_cv_dlopen in |
11094 | dlopen) | |
11095 | save_CPPFLAGS="$CPPFLAGS" | |
11096 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
d9898ee8 | 11097 | |
8d138742 CE |
11098 | save_LDFLAGS="$LDFLAGS" |
11099 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
d9898ee8 | 11100 | |
8d138742 CE |
11101 | save_LIBS="$LIBS" |
11102 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
d9898ee8 | 11103 | |
8d138742 CE |
11104 | { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
11105 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11106 | if test "${lt_cv_dlopen_self+set}" = set; then | |
11107 | $as_echo_n "(cached) " >&6 | |
11108 | else | |
11109 | if test "$cross_compiling" = yes; then : | |
11110 | lt_cv_dlopen_self=cross | |
11111 | else | |
11112 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11113 | lt_status=$lt_dlunknown | |
11114 | cat > conftest.$ac_ext <<_LT_EOF | |
11115 | #line 11115 "configure" | |
11116 | #include "confdefs.h" | |
d9898ee8 | 11117 | |
8d138742 CE |
11118 | #if HAVE_DLFCN_H |
11119 | #include <dlfcn.h> | |
11120 | #endif | |
d9898ee8 | 11121 | |
8d138742 | 11122 | #include <stdio.h> |
d9898ee8 | 11123 | |
8d138742 CE |
11124 | #ifdef RTLD_GLOBAL |
11125 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11126 | #else | |
11127 | # ifdef DL_GLOBAL | |
11128 | # define LT_DLGLOBAL DL_GLOBAL | |
11129 | # else | |
11130 | # define LT_DLGLOBAL 0 | |
11131 | # endif | |
11132 | #endif | |
d9898ee8 | 11133 | |
8d138742 CE |
11134 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11135 | find out it does not work in some platform. */ | |
11136 | #ifndef LT_DLLAZY_OR_NOW | |
11137 | # ifdef RTLD_LAZY | |
11138 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11139 | # else | |
11140 | # ifdef DL_LAZY | |
11141 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11142 | # else | |
11143 | # ifdef RTLD_NOW | |
11144 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11145 | # else | |
11146 | # ifdef DL_NOW | |
11147 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11148 | # else | |
11149 | # define LT_DLLAZY_OR_NOW 0 | |
11150 | # endif | |
11151 | # endif | |
11152 | # endif | |
11153 | # endif | |
11154 | #endif | |
d9898ee8 | 11155 | |
8d138742 CE |
11156 | void fnord() { int i=42;} |
11157 | int main () | |
11158 | { | |
11159 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11160 | int status = $lt_dlunknown; | |
d9898ee8 | 11161 | |
8d138742 CE |
11162 | if (self) |
11163 | { | |
11164 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11165 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11166 | /* dlclose (self); */ | |
11167 | } | |
11168 | else | |
11169 | puts (dlerror ()); | |
d9898ee8 | 11170 | |
8d138742 CE |
11171 | return status; |
11172 | } | |
11173 | _LT_EOF | |
11174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11175 | (eval $ac_link) 2>&5 | |
11176 | ac_status=$? | |
11177 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11178 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11179 | (./conftest; exit; ) >&5 2>/dev/null | |
11180 | lt_status=$? | |
11181 | case x$lt_status in | |
11182 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11183 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11184 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11185 | esac | |
11186 | else : | |
11187 | # compilation failed | |
11188 | lt_cv_dlopen_self=no | |
11189 | fi | |
d9898ee8 | 11190 | fi |
8d138742 CE |
11191 | rm -fr conftest* |
11192 | ||
d9898ee8 | 11193 | |
11194 | fi | |
8d138742 CE |
11195 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
11196 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
d9898ee8 | 11197 | |
8d138742 CE |
11198 | if test "x$lt_cv_dlopen_self" = xyes; then |
11199 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11200 | { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
11201 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11202 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
11203 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 11204 | else |
8d138742 CE |
11205 | if test "$cross_compiling" = yes; then : |
11206 | lt_cv_dlopen_self_static=cross | |
11207 | else | |
11208 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11209 | lt_status=$lt_dlunknown | |
11210 | cat > conftest.$ac_ext <<_LT_EOF | |
11211 | #line 11211 "configure" | |
11212 | #include "confdefs.h" | |
d9898ee8 | 11213 | |
8d138742 CE |
11214 | #if HAVE_DLFCN_H |
11215 | #include <dlfcn.h> | |
11216 | #endif | |
d9898ee8 | 11217 | |
8d138742 | 11218 | #include <stdio.h> |
d9898ee8 | 11219 | |
8d138742 CE |
11220 | #ifdef RTLD_GLOBAL |
11221 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11222 | #else | |
11223 | # ifdef DL_GLOBAL | |
11224 | # define LT_DLGLOBAL DL_GLOBAL | |
11225 | # else | |
11226 | # define LT_DLGLOBAL 0 | |
11227 | # endif | |
11228 | #endif | |
d9898ee8 | 11229 | |
8d138742 CE |
11230 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11231 | find out it does not work in some platform. */ | |
11232 | #ifndef LT_DLLAZY_OR_NOW | |
11233 | # ifdef RTLD_LAZY | |
11234 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11235 | # else | |
11236 | # ifdef DL_LAZY | |
11237 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11238 | # else | |
11239 | # ifdef RTLD_NOW | |
11240 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11241 | # else | |
11242 | # ifdef DL_NOW | |
11243 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11244 | # else | |
11245 | # define LT_DLLAZY_OR_NOW 0 | |
11246 | # endif | |
11247 | # endif | |
11248 | # endif | |
11249 | # endif | |
11250 | #endif | |
d9898ee8 | 11251 | |
8d138742 CE |
11252 | void fnord() { int i=42;} |
11253 | int main () | |
11254 | { | |
11255 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11256 | int status = $lt_dlunknown; | |
11257 | ||
11258 | if (self) | |
11259 | { | |
11260 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11261 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11262 | /* dlclose (self); */ | |
11263 | } | |
11264 | else | |
11265 | puts (dlerror ()); | |
d9898ee8 | 11266 | |
8d138742 CE |
11267 | return status; |
11268 | } | |
11269 | _LT_EOF | |
11270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11271 | (eval $ac_link) 2>&5 | |
11272 | ac_status=$? | |
11273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11274 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11275 | (./conftest; exit; ) >&5 2>/dev/null | |
11276 | lt_status=$? | |
11277 | case x$lt_status in | |
11278 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11279 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11280 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11281 | esac | |
11282 | else : | |
11283 | # compilation failed | |
11284 | lt_cv_dlopen_self_static=no | |
11285 | fi | |
d9898ee8 | 11286 | fi |
8d138742 | 11287 | rm -fr conftest* |
d9898ee8 | 11288 | |
11289 | ||
d9898ee8 | 11290 | fi |
8d138742 CE |
11291 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
11292 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11293 | fi | |
d9898ee8 | 11294 | |
8d138742 CE |
11295 | CPPFLAGS="$save_CPPFLAGS" |
11296 | LDFLAGS="$save_LDFLAGS" | |
11297 | LIBS="$save_LIBS" | |
11298 | ;; | |
11299 | esac | |
d9898ee8 | 11300 | |
8d138742 CE |
11301 | case $lt_cv_dlopen_self in |
11302 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11303 | *) enable_dlopen_self=unknown ;; | |
d9898ee8 | 11304 | esac |
d9898ee8 | 11305 | |
8d138742 CE |
11306 | case $lt_cv_dlopen_self_static in |
11307 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11308 | *) enable_dlopen_self_static=unknown ;; | |
11309 | esac | |
11310 | fi | |
11311 | ||
11312 | ||
11313 | ||
11314 | ||
11315 | ||
11316 | ||
11317 | ||
11318 | ||
11319 | ||
11320 | ||
11321 | ||
11322 | ||
11323 | ||
11324 | ||
11325 | ||
11326 | ||
11327 | ||
11328 | striplib= | |
11329 | old_striplib= | |
11330 | { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
11331 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11332 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11333 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11334 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11335 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11336 | $as_echo "yes" >&6; } | |
11337 | else | |
11338 | # FIXME - insert some real tests, host_os isn't really good enough | |
d9898ee8 | 11339 | case $host_os in |
8d138742 CE |
11340 | darwin*) |
11341 | if test -n "$STRIP" ; then | |
11342 | striplib="$STRIP -x" | |
11343 | old_striplib="$STRIP -S" | |
11344 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11345 | $as_echo "yes" >&6; } | |
11346 | else | |
11347 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11348 | $as_echo "no" >&6; } | |
d9898ee8 | 11349 | fi |
11350 | ;; | |
8d138742 CE |
11351 | *) |
11352 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11353 | $as_echo "no" >&6; } | |
d9898ee8 | 11354 | ;; |
11355 | esac | |
8d138742 | 11356 | fi |
d9898ee8 | 11357 | |
d9898ee8 | 11358 | |
8d138742 CE |
11359 | |
11360 | ||
11361 | ||
11362 | ||
11363 | ||
11364 | ||
11365 | ||
11366 | ||
11367 | ||
11368 | ||
11369 | # Report which library types will actually be built | |
11370 | { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
11371 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11372 | { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
11373 | $as_echo "$can_build_shared" >&6; } | |
11374 | ||
11375 | { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
11376 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11377 | test "$can_build_shared" = "no" && enable_shared=no | |
11378 | ||
11379 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11380 | # are all built from PIC. | |
11381 | case $host_os in | |
11382 | aix3*) | |
11383 | test "$enable_shared" = yes && enable_static=no | |
11384 | if test -n "$RANLIB"; then | |
11385 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11386 | postinstall_cmds='$RANLIB $lib' | |
d9898ee8 | 11387 | fi |
8d138742 | 11388 | ;; |
d9898ee8 | 11389 | |
8d138742 CE |
11390 | aix[4-9]*) |
11391 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11392 | test "$enable_shared" = yes && enable_static=no | |
11393 | fi | |
11394 | ;; | |
11395 | esac | |
11396 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
11397 | $as_echo "$enable_shared" >&6; } | |
d9898ee8 | 11398 | |
8d138742 CE |
11399 | { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
11400 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11401 | # Make sure either enable_shared or enable_static is yes. | |
11402 | test "$enable_shared" = yes || enable_static=yes | |
11403 | { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 | |
11404 | $as_echo "$enable_static" >&6; } | |
d9898ee8 | 11405 | |
d9898ee8 | 11406 | |
d9898ee8 | 11407 | |
d9898ee8 | 11408 | |
8d138742 CE |
11409 | fi |
11410 | ac_ext=c | |
11411 | ac_cpp='$CPP $CPPFLAGS' | |
11412 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11413 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11414 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 11415 | |
8d138742 | 11416 | CC="$lt_save_CC" |
d9898ee8 | 11417 | |
d9898ee8 | 11418 | |
d9898ee8 | 11419 | |
d9898ee8 | 11420 | |
d9898ee8 | 11421 | |
d9898ee8 | 11422 | |
d9898ee8 | 11423 | |
d9898ee8 | 11424 | |
d9898ee8 | 11425 | |
d9898ee8 | 11426 | |
d9898ee8 | 11427 | |
d9898ee8 | 11428 | |
d9898ee8 | 11429 | |
8d138742 | 11430 | ac_config_commands="$ac_config_commands libtool" |
d9898ee8 | 11431 | |
d9898ee8 | 11432 | |
d9898ee8 | 11433 | |
d9898ee8 | 11434 | |
8d138742 | 11435 | # Only expand once: |
d9898ee8 | 11436 | |
d9898ee8 | 11437 | |
8d138742 CE |
11438 | { $as_echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5 |
11439 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } | |
11440 | if test "${libltdl_cv_shlibext+set}" = set; then | |
11441 | $as_echo_n "(cached) " >&6 | |
11442 | else | |
d9898ee8 | 11443 | |
8d138742 CE |
11444 | module=yes |
11445 | eval libltdl_cv_shlibext=$shrext_cmds | |
11446 | ||
11447 | fi | |
11448 | { $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 | |
11449 | $as_echo "$libltdl_cv_shlibext" >&6; } | |
11450 | if test -n "$libltdl_cv_shlibext"; then | |
11451 | ||
11452 | cat >>confdefs.h <<_ACEOF | |
11453 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" | |
d9898ee8 | 11454 | _ACEOF |
8d138742 CE |
11455 | |
11456 | fi | |
11457 | ||
11458 | { $as_echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5 | |
11459 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } | |
11460 | if test "${lt_cv_module_path_var+set}" = set; then | |
11461 | $as_echo_n "(cached) " >&6 | |
11462 | else | |
11463 | lt_cv_module_path_var="$shlibpath_var" | |
11464 | fi | |
11465 | { $as_echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5 | |
11466 | $as_echo "$lt_cv_module_path_var" >&6; } | |
11467 | if test -n "$lt_cv_module_path_var"; then | |
11468 | ||
11469 | cat >>confdefs.h <<_ACEOF | |
11470 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" | |
11471 | _ACEOF | |
11472 | ||
11473 | fi | |
11474 | ||
11475 | { $as_echo "$as_me:$LINENO: checking for the default library search path" >&5 | |
11476 | $as_echo_n "checking for the default library search path... " >&6; } | |
11477 | if test "${lt_cv_sys_dlsearch_path+set}" = set; then | |
11478 | $as_echo_n "(cached) " >&6 | |
11479 | else | |
11480 | lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" | |
11481 | fi | |
11482 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5 | |
11483 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } | |
11484 | if test -n "$lt_cv_sys_dlsearch_path"; then | |
11485 | sys_dlsearch_path= | |
11486 | for dir in $lt_cv_sys_dlsearch_path; do | |
11487 | if test -z "$sys_dlsearch_path"; then | |
11488 | sys_dlsearch_path="$dir" | |
11489 | else | |
11490 | sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" | |
11491 | fi | |
11492 | done | |
11493 | ||
11494 | cat >>confdefs.h <<_ACEOF | |
11495 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" | |
11496 | _ACEOF | |
11497 | ||
11498 | fi | |
11499 | ||
11500 | ||
11501 | LT_DLLOADERS= | |
11502 | ||
11503 | ||
11504 | ac_ext=c | |
11505 | ac_cpp='$CPP $CPPFLAGS' | |
11506 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11507 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11508 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11509 | ||
11510 | ||
11511 | LIBADD_DLOPEN= | |
11512 | { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | |
11513 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
11514 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11515 | $as_echo_n "(cached) " >&6 | |
11516 | else | |
11517 | ac_func_search_save_LIBS=$LIBS | |
11518 | cat >conftest.$ac_ext <<_ACEOF | |
11519 | /* confdefs.h. */ | |
11520 | _ACEOF | |
11521 | cat confdefs.h >>conftest.$ac_ext | |
11522 | cat >>conftest.$ac_ext <<_ACEOF | |
11523 | /* end confdefs.h. */ | |
11524 | ||
11525 | /* Override any GCC internal prototype to avoid an error. | |
11526 | Use char because int might match the return type of a GCC | |
11527 | builtin and then its argument prototype would still apply. */ | |
11528 | #ifdef __cplusplus | |
11529 | extern "C" | |
11530 | #endif | |
11531 | char dlopen (); | |
11532 | int | |
11533 | main () | |
11534 | { | |
11535 | return dlopen (); | |
11536 | ; | |
11537 | return 0; | |
11538 | } | |
11539 | _ACEOF | |
11540 | for ac_lib in '' dl; do | |
11541 | if test -z "$ac_lib"; then | |
11542 | ac_res="none required" | |
11543 | else | |
11544 | ac_res=-l$ac_lib | |
11545 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11546 | fi | |
11547 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 11548 | if { (ac_try="$ac_link" |
11549 | case "(($ac_try" in | |
11550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11551 | *) ac_try_echo=$ac_try;; | |
11552 | esac | |
8d138742 CE |
11553 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11554 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 11555 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 11556 | ac_status=$? |
11557 | grep -v '^ *+' conftest.er1 >conftest.err | |
11558 | rm -f conftest.er1 | |
11559 | cat conftest.err >&5 | |
8d138742 | 11560 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 11561 | (exit $ac_status); } && { |
8d138742 | 11562 | test -z "$ac_c_werror_flag" || |
dd184caf | 11563 | test ! -s conftest.err |
8d138742 CE |
11564 | } && test -s conftest$ac_exeext && { |
11565 | test "$cross_compiling" = yes || | |
11566 | $as_test_x conftest$ac_exeext | |
11567 | }; then | |
11568 | ac_cv_search_dlopen=$ac_res | |
d9898ee8 | 11569 | else |
8d138742 | 11570 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 11571 | sed 's/^/| /' conftest.$ac_ext >&5 |
11572 | ||
dd184caf | 11573 | |
d9898ee8 | 11574 | fi |
dd184caf | 11575 | |
8d138742 | 11576 | rm -rf conftest.dSYM |
dd184caf | 11577 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8d138742 CE |
11578 | conftest$ac_exeext |
11579 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11580 | break | |
11581 | fi | |
11582 | done | |
11583 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11584 | : | |
11585 | else | |
11586 | ac_cv_search_dlopen=no | |
11587 | fi | |
11588 | rm conftest.$ac_ext | |
11589 | LIBS=$ac_func_search_save_LIBS | |
11590 | fi | |
11591 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | |
11592 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
11593 | ac_res=$ac_cv_search_dlopen | |
11594 | if test "$ac_res" != no; then | |
11595 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
d9898ee8 | 11596 | |
8d138742 CE |
11597 | cat >>confdefs.h <<\_ACEOF |
11598 | #define HAVE_LIBDL 1 | |
11599 | _ACEOF | |
11600 | ||
11601 | if test "$ac_cv_search_dlopen" != "none required" ; then | |
11602 | LIBADD_DLOPEN="-ldl" | |
11603 | fi | |
11604 | libltdl_cv_lib_dl_dlopen="yes" | |
11605 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
11606 | else | |
11607 | cat >conftest.$ac_ext <<_ACEOF | |
11608 | /* confdefs.h. */ | |
11609 | _ACEOF | |
11610 | cat confdefs.h >>conftest.$ac_ext | |
11611 | cat >>conftest.$ac_ext <<_ACEOF | |
11612 | /* end confdefs.h. */ | |
11613 | #if HAVE_DLFCN_H | |
11614 | # include <dlfcn.h> | |
11615 | #endif | |
d9898ee8 | 11616 | |
8d138742 CE |
11617 | int |
11618 | main () | |
11619 | { | |
11620 | dlopen(0, 0); | |
11621 | ; | |
11622 | return 0; | |
11623 | } | |
d9898ee8 | 11624 | _ACEOF |
11625 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 11626 | if { (ac_try="$ac_link" |
11627 | case "(($ac_try" in | |
11628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11629 | *) ac_try_echo=$ac_try;; | |
11630 | esac | |
8d138742 CE |
11631 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11632 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 11633 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 11634 | ac_status=$? |
11635 | grep -v '^ *+' conftest.er1 >conftest.err | |
11636 | rm -f conftest.er1 | |
11637 | cat conftest.err >&5 | |
8d138742 | 11638 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 11639 | (exit $ac_status); } && { |
8d138742 | 11640 | test -z "$ac_c_werror_flag" || |
dd184caf | 11641 | test ! -s conftest.err |
8d138742 CE |
11642 | } && test -s conftest$ac_exeext && { |
11643 | test "$cross_compiling" = yes || | |
11644 | $as_test_x conftest$ac_exeext | |
11645 | }; then | |
d9898ee8 | 11646 | |
8d138742 CE |
11647 | cat >>confdefs.h <<\_ACEOF |
11648 | #define HAVE_LIBDL 1 | |
11649 | _ACEOF | |
11650 | ||
11651 | libltdl_cv_func_dlopen="yes" | |
11652 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
d9898ee8 | 11653 | else |
8d138742 | 11654 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 11655 | sed 's/^/| /' conftest.$ac_ext >&5 |
11656 | ||
8d138742 CE |
11657 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
11658 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11659 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
11660 | $as_echo_n "(cached) " >&6 | |
11661 | else | |
11662 | ac_check_lib_save_LIBS=$LIBS | |
11663 | LIBS="-lsvld $LIBS" | |
11664 | cat >conftest.$ac_ext <<_ACEOF | |
11665 | /* confdefs.h. */ | |
11666 | _ACEOF | |
11667 | cat confdefs.h >>conftest.$ac_ext | |
11668 | cat >>conftest.$ac_ext <<_ACEOF | |
11669 | /* end confdefs.h. */ | |
11670 | ||
11671 | /* Override any GCC internal prototype to avoid an error. | |
11672 | Use char because int might match the return type of a GCC | |
11673 | builtin and then its argument prototype would still apply. */ | |
11674 | #ifdef __cplusplus | |
11675 | extern "C" | |
11676 | #endif | |
11677 | char dlopen (); | |
11678 | int | |
11679 | main () | |
11680 | { | |
11681 | return dlopen (); | |
11682 | ; | |
11683 | return 0; | |
11684 | } | |
11685 | _ACEOF | |
11686 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11687 | if { (ac_try="$ac_link" | |
11688 | case "(($ac_try" in | |
11689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11690 | *) ac_try_echo=$ac_try;; | |
11691 | esac | |
11692 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11693 | $as_echo "$ac_try_echo") >&5 | |
11694 | (eval "$ac_link") 2>conftest.er1 | |
11695 | ac_status=$? | |
11696 | grep -v '^ *+' conftest.er1 >conftest.err | |
11697 | rm -f conftest.er1 | |
11698 | cat conftest.err >&5 | |
11699 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11700 | (exit $ac_status); } && { | |
11701 | test -z "$ac_c_werror_flag" || | |
11702 | test ! -s conftest.err | |
11703 | } && test -s conftest$ac_exeext && { | |
11704 | test "$cross_compiling" = yes || | |
11705 | $as_test_x conftest$ac_exeext | |
11706 | }; then | |
11707 | ac_cv_lib_svld_dlopen=yes | |
11708 | else | |
11709 | $as_echo "$as_me: failed program was:" >&5 | |
11710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
dd184caf | 11711 | |
8d138742 | 11712 | ac_cv_lib_svld_dlopen=no |
d9898ee8 | 11713 | fi |
dd184caf | 11714 | |
8d138742 | 11715 | rm -rf conftest.dSYM |
dd184caf | 11716 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 11717 | conftest$ac_exeext conftest.$ac_ext |
8d138742 CE |
11718 | LIBS=$ac_check_lib_save_LIBS |
11719 | fi | |
11720 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
11721 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11722 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then | |
d9898ee8 | 11723 | |
8d138742 CE |
11724 | cat >>confdefs.h <<\_ACEOF |
11725 | #define HAVE_LIBDL 1 | |
11726 | _ACEOF | |
d9898ee8 | 11727 | |
8d138742 CE |
11728 | LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
11729 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
11730 | fi | |
d9898ee8 | 11731 | |
8d138742 | 11732 | fi |
d9898ee8 | 11733 | |
8d138742 CE |
11734 | rm -rf conftest.dSYM |
11735 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11736 | conftest$ac_exeext conftest.$ac_ext | |
11737 | fi | |
d9898ee8 | 11738 | |
8d138742 CE |
11739 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
11740 | then | |
11741 | lt_save_LIBS="$LIBS" | |
11742 | LIBS="$LIBS $LIBADD_DLOPEN" | |
d9898ee8 | 11743 | |
8d138742 CE |
11744 | for ac_func in dlerror |
11745 | do | |
11746 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11747 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11748 | $as_echo_n "checking for $ac_func... " >&6; } | |
11749 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
11750 | $as_echo_n "(cached) " >&6 | |
11751 | else | |
11752 | cat >conftest.$ac_ext <<_ACEOF | |
11753 | /* confdefs.h. */ | |
11754 | _ACEOF | |
11755 | cat confdefs.h >>conftest.$ac_ext | |
11756 | cat >>conftest.$ac_ext <<_ACEOF | |
11757 | /* end confdefs.h. */ | |
11758 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11759 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11760 | #define $ac_func innocuous_$ac_func | |
d9898ee8 | 11761 | |
8d138742 CE |
11762 | /* System header to define __stub macros and hopefully few prototypes, |
11763 | which can conflict with char $ac_func (); below. | |
11764 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11765 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 11766 | |
8d138742 CE |
11767 | #ifdef __STDC__ |
11768 | # include <limits.h> | |
11769 | #else | |
11770 | # include <assert.h> | |
11771 | #endif | |
d9898ee8 | 11772 | |
8d138742 | 11773 | #undef $ac_func |
d9898ee8 | 11774 | |
8d138742 CE |
11775 | /* Override any GCC internal prototype to avoid an error. |
11776 | Use char because int might match the return type of a GCC | |
11777 | builtin and then its argument prototype would still apply. */ | |
11778 | #ifdef __cplusplus | |
11779 | extern "C" | |
11780 | #endif | |
11781 | char $ac_func (); | |
11782 | /* The GNU C library defines this for functions which it implements | |
11783 | to always fail with ENOSYS. Some functions are actually named | |
11784 | something starting with __ and the normal name is an alias. */ | |
11785 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
11786 | choke me | |
11787 | #endif | |
d9898ee8 | 11788 | |
8d138742 CE |
11789 | int |
11790 | main () | |
11791 | { | |
11792 | return $ac_func (); | |
11793 | ; | |
11794 | return 0; | |
11795 | } | |
11796 | _ACEOF | |
11797 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11798 | if { (ac_try="$ac_link" | |
11799 | case "(($ac_try" in | |
11800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11801 | *) ac_try_echo=$ac_try;; | |
11802 | esac | |
11803 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11804 | $as_echo "$ac_try_echo") >&5 | |
11805 | (eval "$ac_link") 2>conftest.er1 | |
11806 | ac_status=$? | |
11807 | grep -v '^ *+' conftest.er1 >conftest.err | |
11808 | rm -f conftest.er1 | |
11809 | cat conftest.err >&5 | |
11810 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11811 | (exit $ac_status); } && { | |
11812 | test -z "$ac_c_werror_flag" || | |
11813 | test ! -s conftest.err | |
11814 | } && test -s conftest$ac_exeext && { | |
11815 | test "$cross_compiling" = yes || | |
11816 | $as_test_x conftest$ac_exeext | |
11817 | }; then | |
11818 | eval "$as_ac_var=yes" | |
11819 | else | |
11820 | $as_echo "$as_me: failed program was:" >&5 | |
11821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11822 | |
8d138742 CE |
11823 | eval "$as_ac_var=no" |
11824 | fi | |
d9898ee8 | 11825 | |
8d138742 CE |
11826 | rm -rf conftest.dSYM |
11827 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11828 | conftest$ac_exeext conftest.$ac_ext | |
11829 | fi | |
11830 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
11831 | $as_echo "$as_val"'` | |
11832 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11833 | $as_echo "$ac_res" >&6; } | |
11834 | as_val=`eval 'as_val=${'$as_ac_var'} | |
11835 | $as_echo "$as_val"'` | |
11836 | if test "x$as_val" = x""yes; then | |
11837 | cat >>confdefs.h <<_ACEOF | |
11838 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11839 | _ACEOF | |
d9898ee8 | 11840 | |
8d138742 CE |
11841 | fi |
11842 | done | |
d9898ee8 | 11843 | |
8d138742 CE |
11844 | LIBS="$lt_save_LIBS" |
11845 | fi | |
d9898ee8 | 11846 | |
d9898ee8 | 11847 | |
8d138742 CE |
11848 | LIBADD_SHL_LOAD= |
11849 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 | |
11850 | $as_echo_n "checking for shl_load... " >&6; } | |
11851 | if test "${ac_cv_func_shl_load+set}" = set; then | |
11852 | $as_echo_n "(cached) " >&6 | |
11853 | else | |
11854 | cat >conftest.$ac_ext <<_ACEOF | |
11855 | /* confdefs.h. */ | |
11856 | _ACEOF | |
11857 | cat confdefs.h >>conftest.$ac_ext | |
11858 | cat >>conftest.$ac_ext <<_ACEOF | |
11859 | /* end confdefs.h. */ | |
11860 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
11861 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11862 | #define shl_load innocuous_shl_load | |
d9898ee8 | 11863 | |
8d138742 CE |
11864 | /* System header to define __stub macros and hopefully few prototypes, |
11865 | which can conflict with char shl_load (); below. | |
11866 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11867 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 11868 | |
8d138742 CE |
11869 | #ifdef __STDC__ |
11870 | # include <limits.h> | |
11871 | #else | |
11872 | # include <assert.h> | |
11873 | #endif | |
d9898ee8 | 11874 | |
8d138742 | 11875 | #undef shl_load |
d9898ee8 | 11876 | |
8d138742 CE |
11877 | /* Override any GCC internal prototype to avoid an error. |
11878 | Use char because int might match the return type of a GCC | |
11879 | builtin and then its argument prototype would still apply. */ | |
11880 | #ifdef __cplusplus | |
11881 | extern "C" | |
11882 | #endif | |
11883 | char shl_load (); | |
11884 | /* The GNU C library defines this for functions which it implements | |
11885 | to always fail with ENOSYS. Some functions are actually named | |
11886 | something starting with __ and the normal name is an alias. */ | |
11887 | #if defined __stub_shl_load || defined __stub___shl_load | |
11888 | choke me | |
11889 | #endif | |
d9898ee8 | 11890 | |
8d138742 CE |
11891 | int |
11892 | main () | |
11893 | { | |
11894 | return shl_load (); | |
11895 | ; | |
11896 | return 0; | |
11897 | } | |
11898 | _ACEOF | |
11899 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11900 | if { (ac_try="$ac_link" | |
11901 | case "(($ac_try" in | |
11902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11903 | *) ac_try_echo=$ac_try;; | |
11904 | esac | |
11905 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11906 | $as_echo "$ac_try_echo") >&5 | |
11907 | (eval "$ac_link") 2>conftest.er1 | |
11908 | ac_status=$? | |
11909 | grep -v '^ *+' conftest.er1 >conftest.err | |
11910 | rm -f conftest.er1 | |
11911 | cat conftest.err >&5 | |
11912 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11913 | (exit $ac_status); } && { | |
11914 | test -z "$ac_c_werror_flag" || | |
11915 | test ! -s conftest.err | |
11916 | } && test -s conftest$ac_exeext && { | |
11917 | test "$cross_compiling" = yes || | |
11918 | $as_test_x conftest$ac_exeext | |
11919 | }; then | |
11920 | ac_cv_func_shl_load=yes | |
11921 | else | |
11922 | $as_echo "$as_me: failed program was:" >&5 | |
11923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11924 | |
8d138742 CE |
11925 | ac_cv_func_shl_load=no |
11926 | fi | |
d9898ee8 | 11927 | |
8d138742 CE |
11928 | rm -rf conftest.dSYM |
11929 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11930 | conftest$ac_exeext conftest.$ac_ext | |
11931 | fi | |
11932 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
11933 | $as_echo "$ac_cv_func_shl_load" >&6; } | |
11934 | if test "x$ac_cv_func_shl_load" = x""yes; then | |
d9898ee8 | 11935 | |
8d138742 CE |
11936 | cat >>confdefs.h <<\_ACEOF |
11937 | #define HAVE_SHL_LOAD 1 | |
11938 | _ACEOF | |
d9898ee8 | 11939 | |
8d138742 CE |
11940 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
11941 | else | |
11942 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
11943 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11944 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
11945 | $as_echo_n "(cached) " >&6 | |
11946 | else | |
11947 | ac_check_lib_save_LIBS=$LIBS | |
11948 | LIBS="-ldld $LIBS" | |
11949 | cat >conftest.$ac_ext <<_ACEOF | |
11950 | /* confdefs.h. */ | |
11951 | _ACEOF | |
11952 | cat confdefs.h >>conftest.$ac_ext | |
11953 | cat >>conftest.$ac_ext <<_ACEOF | |
11954 | /* end confdefs.h. */ | |
d9898ee8 | 11955 | |
8d138742 CE |
11956 | /* Override any GCC internal prototype to avoid an error. |
11957 | Use char because int might match the return type of a GCC | |
11958 | builtin and then its argument prototype would still apply. */ | |
11959 | #ifdef __cplusplus | |
11960 | extern "C" | |
11961 | #endif | |
11962 | char shl_load (); | |
11963 | int | |
11964 | main () | |
11965 | { | |
11966 | return shl_load (); | |
11967 | ; | |
11968 | return 0; | |
11969 | } | |
11970 | _ACEOF | |
11971 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11972 | if { (ac_try="$ac_link" | |
11973 | case "(($ac_try" in | |
11974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11975 | *) ac_try_echo=$ac_try;; | |
11976 | esac | |
11977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11978 | $as_echo "$ac_try_echo") >&5 | |
11979 | (eval "$ac_link") 2>conftest.er1 | |
11980 | ac_status=$? | |
11981 | grep -v '^ *+' conftest.er1 >conftest.err | |
11982 | rm -f conftest.er1 | |
11983 | cat conftest.err >&5 | |
11984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11985 | (exit $ac_status); } && { | |
11986 | test -z "$ac_c_werror_flag" || | |
11987 | test ! -s conftest.err | |
11988 | } && test -s conftest$ac_exeext && { | |
11989 | test "$cross_compiling" = yes || | |
11990 | $as_test_x conftest$ac_exeext | |
11991 | }; then | |
11992 | ac_cv_lib_dld_shl_load=yes | |
11993 | else | |
11994 | $as_echo "$as_me: failed program was:" >&5 | |
11995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11996 | |
8d138742 CE |
11997 | ac_cv_lib_dld_shl_load=no |
11998 | fi | |
d9898ee8 | 11999 | |
8d138742 CE |
12000 | rm -rf conftest.dSYM |
12001 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12002 | conftest$ac_exeext conftest.$ac_ext | |
12003 | LIBS=$ac_check_lib_save_LIBS | |
12004 | fi | |
12005 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
12006 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12007 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then | |
d9898ee8 | 12008 | |
8d138742 CE |
12009 | cat >>confdefs.h <<\_ACEOF |
12010 | #define HAVE_SHL_LOAD 1 | |
12011 | _ACEOF | |
d9898ee8 | 12012 | |
8d138742 CE |
12013 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
12014 | LIBADD_SHL_LOAD="-ldld" | |
12015 | fi | |
d9898ee8 | 12016 | |
8d138742 | 12017 | fi |
d9898ee8 | 12018 | |
d9898ee8 | 12019 | |
d9898ee8 | 12020 | |
8d138742 CE |
12021 | case $host_os in |
12022 | darwin[1567].*) | |
12023 | # We only want this for pre-Mac OS X 10.4. | |
12024 | { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 | |
12025 | $as_echo_n "checking for _dyld_func_lookup... " >&6; } | |
12026 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then | |
12027 | $as_echo_n "(cached) " >&6 | |
12028 | else | |
12029 | cat >conftest.$ac_ext <<_ACEOF | |
12030 | /* confdefs.h. */ | |
12031 | _ACEOF | |
12032 | cat confdefs.h >>conftest.$ac_ext | |
12033 | cat >>conftest.$ac_ext <<_ACEOF | |
12034 | /* end confdefs.h. */ | |
12035 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. | |
12036 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12037 | #define _dyld_func_lookup innocuous__dyld_func_lookup | |
d9898ee8 | 12038 | |
8d138742 CE |
12039 | /* System header to define __stub macros and hopefully few prototypes, |
12040 | which can conflict with char _dyld_func_lookup (); below. | |
12041 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12042 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 12043 | |
8d138742 CE |
12044 | #ifdef __STDC__ |
12045 | # include <limits.h> | |
12046 | #else | |
12047 | # include <assert.h> | |
12048 | #endif | |
d9898ee8 | 12049 | |
8d138742 | 12050 | #undef _dyld_func_lookup |
d9898ee8 | 12051 | |
8d138742 CE |
12052 | /* Override any GCC internal prototype to avoid an error. |
12053 | Use char because int might match the return type of a GCC | |
12054 | builtin and then its argument prototype would still apply. */ | |
12055 | #ifdef __cplusplus | |
12056 | extern "C" | |
12057 | #endif | |
12058 | char _dyld_func_lookup (); | |
12059 | /* The GNU C library defines this for functions which it implements | |
12060 | to always fail with ENOSYS. Some functions are actually named | |
12061 | something starting with __ and the normal name is an alias. */ | |
12062 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup | |
12063 | choke me | |
12064 | #endif | |
ac40fd9e | 12065 | |
8d138742 CE |
12066 | int |
12067 | main () | |
12068 | { | |
12069 | return _dyld_func_lookup (); | |
12070 | ; | |
12071 | return 0; | |
12072 | } | |
12073 | _ACEOF | |
12074 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12075 | if { (ac_try="$ac_link" | |
12076 | case "(($ac_try" in | |
12077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12078 | *) ac_try_echo=$ac_try;; | |
12079 | esac | |
12080 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12081 | $as_echo "$ac_try_echo") >&5 | |
12082 | (eval "$ac_link") 2>conftest.er1 | |
12083 | ac_status=$? | |
12084 | grep -v '^ *+' conftest.er1 >conftest.err | |
12085 | rm -f conftest.er1 | |
12086 | cat conftest.err >&5 | |
12087 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12088 | (exit $ac_status); } && { | |
12089 | test -z "$ac_c_werror_flag" || | |
12090 | test ! -s conftest.err | |
12091 | } && test -s conftest$ac_exeext && { | |
12092 | test "$cross_compiling" = yes || | |
12093 | $as_test_x conftest$ac_exeext | |
12094 | }; then | |
12095 | ac_cv_func__dyld_func_lookup=yes | |
12096 | else | |
12097 | $as_echo "$as_me: failed program was:" >&5 | |
12098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12099 | |
8d138742 CE |
12100 | ac_cv_func__dyld_func_lookup=no |
12101 | fi | |
d9898ee8 | 12102 | |
8d138742 CE |
12103 | rm -rf conftest.dSYM |
12104 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12105 | conftest$ac_exeext conftest.$ac_ext | |
12106 | fi | |
12107 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 | |
12108 | $as_echo "$ac_cv_func__dyld_func_lookup" >&6; } | |
12109 | if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then | |
d9898ee8 | 12110 | |
8d138742 CE |
12111 | cat >>confdefs.h <<\_ACEOF |
12112 | #define HAVE_DYLD 1 | |
12113 | _ACEOF | |
d9898ee8 | 12114 | |
8d138742 CE |
12115 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" |
12116 | fi | |
d9898ee8 | 12117 | |
d9898ee8 | 12118 | ;; |
d9898ee8 | 12119 | beos*) |
8d138742 | 12120 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" |
d9898ee8 | 12121 | ;; |
8d138742 CE |
12122 | cygwin* | mingw* | os2* | pw32*) |
12123 | { $as_echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5 | |
12124 | $as_echo_n "checking whether cygwin_conv_path is declared... " >&6; } | |
12125 | if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then | |
12126 | $as_echo_n "(cached) " >&6 | |
12127 | else | |
12128 | cat >conftest.$ac_ext <<_ACEOF | |
12129 | /* confdefs.h. */ | |
12130 | _ACEOF | |
12131 | cat confdefs.h >>conftest.$ac_ext | |
12132 | cat >>conftest.$ac_ext <<_ACEOF | |
12133 | /* end confdefs.h. */ | |
12134 | #include <sys/cygwin.h> | |
d9898ee8 | 12135 | |
8d138742 CE |
12136 | int |
12137 | main () | |
12138 | { | |
12139 | #ifndef cygwin_conv_path | |
12140 | (void) cygwin_conv_path; | |
12141 | #endif | |
d9898ee8 | 12142 | |
8d138742 CE |
12143 | ; |
12144 | return 0; | |
12145 | } | |
12146 | _ACEOF | |
12147 | rm -f conftest.$ac_objext | |
12148 | if { (ac_try="$ac_compile" | |
12149 | case "(($ac_try" in | |
12150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12151 | *) ac_try_echo=$ac_try;; | |
12152 | esac | |
12153 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12154 | $as_echo "$ac_try_echo") >&5 | |
12155 | (eval "$ac_compile") 2>conftest.er1 | |
12156 | ac_status=$? | |
12157 | grep -v '^ *+' conftest.er1 >conftest.err | |
12158 | rm -f conftest.er1 | |
12159 | cat conftest.err >&5 | |
12160 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12161 | (exit $ac_status); } && { | |
12162 | test -z "$ac_c_werror_flag" || | |
12163 | test ! -s conftest.err | |
12164 | } && test -s conftest.$ac_objext; then | |
12165 | ac_cv_have_decl_cygwin_conv_path=yes | |
12166 | else | |
12167 | $as_echo "$as_me: failed program was:" >&5 | |
12168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12169 | |
8d138742 CE |
12170 | ac_cv_have_decl_cygwin_conv_path=no |
12171 | fi | |
d9898ee8 | 12172 | |
8d138742 CE |
12173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12174 | fi | |
12175 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5 | |
12176 | $as_echo "$ac_cv_have_decl_cygwin_conv_path" >&6; } | |
12177 | if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then | |
d9898ee8 | 12178 | |
8d138742 CE |
12179 | cat >>confdefs.h <<_ACEOF |
12180 | #define HAVE_DECL_CYGWIN_CONV_PATH 1 | |
12181 | _ACEOF | |
ac40fd9e | 12182 | |
d9898ee8 | 12183 | |
8d138742 CE |
12184 | else |
12185 | cat >>confdefs.h <<_ACEOF | |
12186 | #define HAVE_DECL_CYGWIN_CONV_PATH 0 | |
12187 | _ACEOF | |
d9898ee8 | 12188 | |
d9898ee8 | 12189 | |
8d138742 | 12190 | fi |
d9898ee8 | 12191 | |
d9898ee8 | 12192 | |
8d138742 | 12193 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" |
d9898ee8 | 12194 | ;; |
8d138742 | 12195 | esac |
d9898ee8 | 12196 | |
8d138742 CE |
12197 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
12198 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12199 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
12200 | $as_echo_n "(cached) " >&6 | |
12201 | else | |
12202 | ac_check_lib_save_LIBS=$LIBS | |
12203 | LIBS="-ldld $LIBS" | |
12204 | cat >conftest.$ac_ext <<_ACEOF | |
12205 | /* confdefs.h. */ | |
12206 | _ACEOF | |
12207 | cat confdefs.h >>conftest.$ac_ext | |
12208 | cat >>conftest.$ac_ext <<_ACEOF | |
12209 | /* end confdefs.h. */ | |
d9898ee8 | 12210 | |
8d138742 CE |
12211 | /* Override any GCC internal prototype to avoid an error. |
12212 | Use char because int might match the return type of a GCC | |
12213 | builtin and then its argument prototype would still apply. */ | |
12214 | #ifdef __cplusplus | |
12215 | extern "C" | |
12216 | #endif | |
12217 | char dld_link (); | |
12218 | int | |
12219 | main () | |
12220 | { | |
12221 | return dld_link (); | |
12222 | ; | |
12223 | return 0; | |
12224 | } | |
12225 | _ACEOF | |
12226 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12227 | if { (ac_try="$ac_link" | |
12228 | case "(($ac_try" in | |
12229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12230 | *) ac_try_echo=$ac_try;; | |
12231 | esac | |
12232 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12233 | $as_echo "$ac_try_echo") >&5 | |
12234 | (eval "$ac_link") 2>conftest.er1 | |
12235 | ac_status=$? | |
12236 | grep -v '^ *+' conftest.er1 >conftest.err | |
12237 | rm -f conftest.er1 | |
12238 | cat conftest.err >&5 | |
12239 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12240 | (exit $ac_status); } && { | |
12241 | test -z "$ac_c_werror_flag" || | |
12242 | test ! -s conftest.err | |
12243 | } && test -s conftest$ac_exeext && { | |
12244 | test "$cross_compiling" = yes || | |
12245 | $as_test_x conftest$ac_exeext | |
12246 | }; then | |
12247 | ac_cv_lib_dld_dld_link=yes | |
12248 | else | |
12249 | $as_echo "$as_me: failed program was:" >&5 | |
12250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12251 | |
8d138742 CE |
12252 | ac_cv_lib_dld_dld_link=no |
12253 | fi | |
d9898ee8 | 12254 | |
8d138742 CE |
12255 | rm -rf conftest.dSYM |
12256 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12257 | conftest$ac_exeext conftest.$ac_ext | |
12258 | LIBS=$ac_check_lib_save_LIBS | |
12259 | fi | |
12260 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
12261 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12262 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then | |
d9898ee8 | 12263 | |
8d138742 CE |
12264 | cat >>confdefs.h <<\_ACEOF |
12265 | #define HAVE_DLD 1 | |
12266 | _ACEOF | |
d9898ee8 | 12267 | |
8d138742 CE |
12268 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" |
12269 | fi | |
d9898ee8 | 12270 | |
d9898ee8 | 12271 | |
d9898ee8 | 12272 | |
d9898ee8 | 12273 | |
8d138742 CE |
12274 | LT_DLPREOPEN= |
12275 | if test -n "$LT_DLLOADERS" | |
12276 | then | |
12277 | for lt_loader in $LT_DLLOADERS; do | |
12278 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " | |
12279 | done | |
d9898ee8 | 12280 | |
8d138742 CE |
12281 | cat >>confdefs.h <<\_ACEOF |
12282 | #define HAVE_LIBDLLOADER 1 | |
12283 | _ACEOF | |
d9898ee8 | 12284 | |
8d138742 | 12285 | fi |
d9898ee8 | 12286 | |
ac40fd9e | 12287 | |
8d138742 | 12288 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
d9898ee8 | 12289 | |
d9898ee8 | 12290 | |
8d138742 CE |
12291 | ac_ext=c |
12292 | ac_cpp='$CPP $CPPFLAGS' | |
12293 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12294 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12295 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 12296 | |
d9898ee8 | 12297 | |
8d138742 CE |
12298 | { $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
12299 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } | |
12300 | if test "${lt_cv_sys_symbol_underscore+set}" = set; then | |
12301 | $as_echo_n "(cached) " >&6 | |
12302 | else | |
12303 | lt_cv_sys_symbol_underscore=no | |
12304 | cat > conftest.$ac_ext <<_LT_EOF | |
12305 | void nm_test_func(){} | |
12306 | int main(){nm_test_func;return 0;} | |
12307 | _LT_EOF | |
12308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12309 | (eval $ac_compile) 2>&5 | |
12310 | ac_status=$? | |
12311 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12312 | (exit $ac_status); }; then | |
12313 | # Now try to grab the symbols. | |
12314 | ac_nlist=conftest.nm | |
12315 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 | |
12316 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | |
12317 | ac_status=$? | |
12318 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12319 | (exit $ac_status); } && test -s "$ac_nlist"; then | |
12320 | # See whether the symbols have a leading underscore. | |
12321 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
12322 | lt_cv_sys_symbol_underscore=yes | |
12323 | else | |
12324 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
12325 | : | |
12326 | else | |
12327 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | |
12328 | fi | |
12329 | fi | |
12330 | else | |
12331 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
12332 | fi | |
d9898ee8 | 12333 | else |
8d138742 CE |
12334 | echo "configure: failed program was:" >&5 |
12335 | cat conftest.c >&5 | |
d9898ee8 | 12336 | fi |
8d138742 | 12337 | rm -rf conftest* |
d9898ee8 | 12338 | |
d9898ee8 | 12339 | fi |
8d138742 CE |
12340 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5 |
12341 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } | |
12342 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore | |
d9898ee8 | 12343 | |
d9898ee8 | 12344 | |
8d138742 CE |
12345 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
12346 | if test x"$libltdl_cv_func_dlopen" = xyes || | |
12347 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | |
12348 | { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 | |
12349 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } | |
12350 | if test "${libltdl_cv_need_uscore+set}" = set; then | |
12351 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 12352 | else |
8d138742 CE |
12353 | libltdl_cv_need_uscore=unknown |
12354 | save_LIBS="$LIBS" | |
12355 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12356 | if test "$cross_compiling" = yes; then : | |
12357 | libltdl_cv_need_uscore=cross | |
12358 | else | |
12359 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12360 | lt_status=$lt_dlunknown | |
12361 | cat > conftest.$ac_ext <<_LT_EOF | |
12362 | #line 12362 "configure" | |
12363 | #include "confdefs.h" | |
d9898ee8 | 12364 | |
8d138742 CE |
12365 | #if HAVE_DLFCN_H |
12366 | #include <dlfcn.h> | |
12367 | #endif | |
d9898ee8 | 12368 | |
8d138742 | 12369 | #include <stdio.h> |
d9898ee8 | 12370 | |
8d138742 CE |
12371 | #ifdef RTLD_GLOBAL |
12372 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12373 | #else | |
12374 | # ifdef DL_GLOBAL | |
12375 | # define LT_DLGLOBAL DL_GLOBAL | |
12376 | # else | |
12377 | # define LT_DLGLOBAL 0 | |
12378 | # endif | |
12379 | #endif | |
d9898ee8 | 12380 | |
8d138742 CE |
12381 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12382 | find out it does not work in some platform. */ | |
12383 | #ifndef LT_DLLAZY_OR_NOW | |
12384 | # ifdef RTLD_LAZY | |
12385 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12386 | # else | |
12387 | # ifdef DL_LAZY | |
12388 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12389 | # else | |
12390 | # ifdef RTLD_NOW | |
12391 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12392 | # else | |
12393 | # ifdef DL_NOW | |
12394 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12395 | # else | |
12396 | # define LT_DLLAZY_OR_NOW 0 | |
12397 | # endif | |
12398 | # endif | |
12399 | # endif | |
12400 | # endif | |
12401 | #endif | |
d9898ee8 | 12402 | |
8d138742 CE |
12403 | void fnord() { int i=42;} |
12404 | int main () | |
12405 | { | |
12406 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12407 | int status = $lt_dlunknown; | |
d9898ee8 | 12408 | |
8d138742 CE |
12409 | if (self) |
12410 | { | |
12411 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12412 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12413 | /* dlclose (self); */ | |
12414 | } | |
12415 | else | |
12416 | puts (dlerror ()); | |
d9898ee8 | 12417 | |
8d138742 CE |
12418 | return status; |
12419 | } | |
12420 | _LT_EOF | |
12421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12422 | (eval $ac_link) 2>&5 | |
12423 | ac_status=$? | |
12424 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12425 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12426 | (./conftest; exit; ) >&5 2>/dev/null | |
12427 | lt_status=$? | |
12428 | case x$lt_status in | |
12429 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | |
12430 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | |
12431 | x$lt_dlunknown|x*) ;; | |
12432 | esac | |
12433 | else : | |
12434 | # compilation failed | |
d9898ee8 | 12435 | |
8d138742 CE |
12436 | fi |
12437 | fi | |
12438 | rm -fr conftest* | |
d9898ee8 | 12439 | |
8d138742 | 12440 | LIBS="$save_LIBS" |
d9898ee8 | 12441 | |
8d138742 CE |
12442 | fi |
12443 | { $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 | |
12444 | $as_echo "$libltdl_cv_need_uscore" >&6; } | |
12445 | fi | |
12446 | fi | |
d9898ee8 | 12447 | |
8d138742 | 12448 | if test x"$libltdl_cv_need_uscore" = xyes; then |
d9898ee8 | 12449 | |
8d138742 CE |
12450 | cat >>confdefs.h <<\_ACEOF |
12451 | #define NEED_USCORE 1 | |
12452 | _ACEOF | |
d9898ee8 | 12453 | |
8d138742 | 12454 | fi |
d9898ee8 | 12455 | |
8d138742 CE |
12456 | { $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
12457 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } | |
12458 | if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then | |
12459 | $as_echo_n "(cached) " >&6 | |
12460 | else | |
12461 | # PORTME does your system automatically load deplibs for dlopen? | |
12462 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | |
12463 | # For now, we just catch OSes we know something about -- in the | |
12464 | # future, we'll try test this programmatically. | |
12465 | lt_cv_sys_dlopen_deplibs=unknown | |
12466 | case $host_os in | |
12467 | aix3*|aix4.1.*|aix4.2.*) | |
12468 | # Unknown whether this is true for these versions of AIX, but | |
12469 | # we want this `case' here to explicitly catch those versions. | |
12470 | lt_cv_sys_dlopen_deplibs=unknown | |
12471 | ;; | |
12472 | aix[4-9]*) | |
12473 | lt_cv_sys_dlopen_deplibs=yes | |
12474 | ;; | |
12475 | amigaos*) | |
12476 | case $host_cpu in | |
12477 | powerpc) | |
12478 | lt_cv_sys_dlopen_deplibs=no | |
12479 | ;; | |
12480 | esac | |
12481 | ;; | |
12482 | darwin*) | |
12483 | # Assuming the user has installed a libdl from somewhere, this is true | |
12484 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | |
12485 | lt_cv_sys_dlopen_deplibs=yes | |
12486 | ;; | |
12487 | freebsd* | dragonfly*) | |
12488 | lt_cv_sys_dlopen_deplibs=yes | |
12489 | ;; | |
12490 | gnu* | linux* | k*bsd*-gnu) | |
12491 | # GNU and its variants, using gnu ld.so (Glibc) | |
12492 | lt_cv_sys_dlopen_deplibs=yes | |
12493 | ;; | |
12494 | hpux10*|hpux11*) | |
12495 | lt_cv_sys_dlopen_deplibs=yes | |
12496 | ;; | |
12497 | interix*) | |
12498 | lt_cv_sys_dlopen_deplibs=yes | |
12499 | ;; | |
12500 | irix[12345]*|irix6.[01]*) | |
12501 | # Catch all versions of IRIX before 6.2, and indicate that we don't | |
12502 | # know how it worked for any of those versions. | |
12503 | lt_cv_sys_dlopen_deplibs=unknown | |
12504 | ;; | |
12505 | irix*) | |
12506 | # The case above catches anything before 6.2, and it's known that | |
12507 | # at 6.2 and later dlopen does load deplibs. | |
12508 | lt_cv_sys_dlopen_deplibs=yes | |
12509 | ;; | |
12510 | netbsd*) | |
12511 | lt_cv_sys_dlopen_deplibs=yes | |
12512 | ;; | |
12513 | openbsd*) | |
12514 | lt_cv_sys_dlopen_deplibs=yes | |
12515 | ;; | |
12516 | osf[1234]*) | |
12517 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | |
12518 | # it did *not* use an RPATH in a shared library to find objects the | |
12519 | # library depends on, so we explicitly say `no'. | |
12520 | lt_cv_sys_dlopen_deplibs=no | |
12521 | ;; | |
12522 | osf5.0|osf5.0a|osf5.1) | |
12523 | # dlopen *does* load deplibs and with the right loader patch applied | |
12524 | # it even uses RPATH in a shared library to search for shared objects | |
12525 | # that the library depends on, but there's no easy way to know if that | |
12526 | # patch is installed. Since this is the case, all we can really | |
12527 | # say is unknown -- it depends on the patch being installed. If | |
12528 | # it is, this changes to `yes'. Without it, it would be `no'. | |
12529 | lt_cv_sys_dlopen_deplibs=unknown | |
12530 | ;; | |
12531 | osf*) | |
12532 | # the two cases above should catch all versions of osf <= 5.1. Read | |
12533 | # the comments above for what we know about them. | |
12534 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | |
12535 | # is used to find them so we can finally say `yes'. | |
12536 | lt_cv_sys_dlopen_deplibs=yes | |
12537 | ;; | |
12538 | qnx*) | |
12539 | lt_cv_sys_dlopen_deplibs=yes | |
12540 | ;; | |
12541 | solaris*) | |
12542 | lt_cv_sys_dlopen_deplibs=yes | |
12543 | ;; | |
12544 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12545 | libltdl_cv_sys_dlopen_deplibs=yes | |
12546 | ;; | |
12547 | esac | |
d9898ee8 | 12548 | |
8d138742 CE |
12549 | fi |
12550 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5 | |
12551 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } | |
12552 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then | |
d9898ee8 | 12553 | |
8d138742 CE |
12554 | cat >>confdefs.h <<\_ACEOF |
12555 | #define LTDL_DLOPEN_DEPLIBS 1 | |
12556 | _ACEOF | |
d9898ee8 | 12557 | |
8d138742 | 12558 | fi |
d9898ee8 | 12559 | |
8d138742 | 12560 | : |
d9898ee8 | 12561 | |
d9898ee8 | 12562 | |
8d138742 CE |
12563 | for ac_header in argz.h |
12564 | do | |
12565 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12566 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12567 | $as_echo_n "checking for $ac_header... " >&6; } | |
12568 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12569 | $as_echo_n "(cached) " >&6 | |
12570 | else | |
12571 | cat >conftest.$ac_ext <<_ACEOF | |
12572 | /* confdefs.h. */ | |
12573 | _ACEOF | |
12574 | cat confdefs.h >>conftest.$ac_ext | |
12575 | cat >>conftest.$ac_ext <<_ACEOF | |
12576 | /* end confdefs.h. */ | |
12577 | $ac_includes_default | |
d9898ee8 | 12578 | |
8d138742 CE |
12579 | #include <$ac_header> |
12580 | _ACEOF | |
12581 | rm -f conftest.$ac_objext | |
12582 | if { (ac_try="$ac_compile" | |
12583 | case "(($ac_try" in | |
12584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12585 | *) ac_try_echo=$ac_try;; | |
12586 | esac | |
12587 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12588 | $as_echo "$ac_try_echo") >&5 | |
12589 | (eval "$ac_compile") 2>conftest.er1 | |
12590 | ac_status=$? | |
12591 | grep -v '^ *+' conftest.er1 >conftest.err | |
12592 | rm -f conftest.er1 | |
12593 | cat conftest.err >&5 | |
12594 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12595 | (exit $ac_status); } && { | |
12596 | test -z "$ac_c_werror_flag" || | |
12597 | test ! -s conftest.err | |
12598 | } && test -s conftest.$ac_objext; then | |
12599 | eval "$as_ac_Header=yes" | |
12600 | else | |
12601 | $as_echo "$as_me: failed program was:" >&5 | |
12602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12603 | |
8d138742 CE |
12604 | eval "$as_ac_Header=no" |
12605 | fi | |
d9898ee8 | 12606 | |
8d138742 CE |
12607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12608 | fi | |
12609 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12610 | $as_echo "$as_val"'` | |
12611 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12612 | $as_echo "$ac_res" >&6; } | |
12613 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12614 | $as_echo "$as_val"'` | |
12615 | if test "x$as_val" = x""yes; then | |
12616 | cat >>confdefs.h <<_ACEOF | |
12617 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12618 | _ACEOF | |
d9898ee8 | 12619 | |
8d138742 | 12620 | fi |
d9898ee8 | 12621 | |
8d138742 | 12622 | done |
d9898ee8 | 12623 | |
d9898ee8 | 12624 | |
8d138742 CE |
12625 | { $as_echo "$as_me:$LINENO: checking for error_t" >&5 |
12626 | $as_echo_n "checking for error_t... " >&6; } | |
12627 | if test "${ac_cv_type_error_t+set}" = set; then | |
12628 | $as_echo_n "(cached) " >&6 | |
12629 | else | |
12630 | ac_cv_type_error_t=no | |
12631 | cat >conftest.$ac_ext <<_ACEOF | |
12632 | /* confdefs.h. */ | |
12633 | _ACEOF | |
12634 | cat confdefs.h >>conftest.$ac_ext | |
12635 | cat >>conftest.$ac_ext <<_ACEOF | |
12636 | /* end confdefs.h. */ | |
12637 | #if defined(HAVE_ARGZ_H) | |
12638 | # include <argz.h> | |
12639 | #endif | |
d9898ee8 | 12640 | |
8d138742 CE |
12641 | int |
12642 | main () | |
12643 | { | |
12644 | if (sizeof (error_t)) | |
12645 | return 0; | |
12646 | ; | |
12647 | return 0; | |
12648 | } | |
12649 | _ACEOF | |
12650 | rm -f conftest.$ac_objext | |
12651 | if { (ac_try="$ac_compile" | |
12652 | case "(($ac_try" in | |
12653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12654 | *) ac_try_echo=$ac_try;; | |
12655 | esac | |
12656 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12657 | $as_echo "$ac_try_echo") >&5 | |
12658 | (eval "$ac_compile") 2>conftest.er1 | |
12659 | ac_status=$? | |
12660 | grep -v '^ *+' conftest.er1 >conftest.err | |
12661 | rm -f conftest.er1 | |
12662 | cat conftest.err >&5 | |
12663 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12664 | (exit $ac_status); } && { | |
12665 | test -z "$ac_c_werror_flag" || | |
12666 | test ! -s conftest.err | |
12667 | } && test -s conftest.$ac_objext; then | |
12668 | cat >conftest.$ac_ext <<_ACEOF | |
12669 | /* confdefs.h. */ | |
12670 | _ACEOF | |
12671 | cat confdefs.h >>conftest.$ac_ext | |
12672 | cat >>conftest.$ac_ext <<_ACEOF | |
12673 | /* end confdefs.h. */ | |
12674 | #if defined(HAVE_ARGZ_H) | |
12675 | # include <argz.h> | |
12676 | #endif | |
d9898ee8 | 12677 | |
8d138742 CE |
12678 | int |
12679 | main () | |
12680 | { | |
12681 | if (sizeof ((error_t))) | |
12682 | return 0; | |
12683 | ; | |
12684 | return 0; | |
12685 | } | |
12686 | _ACEOF | |
12687 | rm -f conftest.$ac_objext | |
12688 | if { (ac_try="$ac_compile" | |
12689 | case "(($ac_try" in | |
12690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12691 | *) ac_try_echo=$ac_try;; | |
12692 | esac | |
12693 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12694 | $as_echo "$ac_try_echo") >&5 | |
12695 | (eval "$ac_compile") 2>conftest.er1 | |
12696 | ac_status=$? | |
12697 | grep -v '^ *+' conftest.er1 >conftest.err | |
12698 | rm -f conftest.er1 | |
12699 | cat conftest.err >&5 | |
12700 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12701 | (exit $ac_status); } && { | |
12702 | test -z "$ac_c_werror_flag" || | |
12703 | test ! -s conftest.err | |
12704 | } && test -s conftest.$ac_objext; then | |
12705 | : | |
12706 | else | |
12707 | $as_echo "$as_me: failed program was:" >&5 | |
12708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12709 | |
8d138742 CE |
12710 | ac_cv_type_error_t=yes |
12711 | fi | |
d9898ee8 | 12712 | |
8d138742 CE |
12713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12714 | else | |
12715 | $as_echo "$as_me: failed program was:" >&5 | |
12716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12717 | |
d9898ee8 | 12718 | |
8d138742 | 12719 | fi |
d9898ee8 | 12720 | |
8d138742 CE |
12721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12722 | fi | |
12723 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 | |
12724 | $as_echo "$ac_cv_type_error_t" >&6; } | |
12725 | if test "x$ac_cv_type_error_t" = x""yes; then | |
d9898ee8 | 12726 | |
8d138742 CE |
12727 | cat >>confdefs.h <<_ACEOF |
12728 | #define HAVE_ERROR_T 1 | |
12729 | _ACEOF | |
d9898ee8 | 12730 | |
d9898ee8 | 12731 | |
8d138742 | 12732 | else |
d9898ee8 | 12733 | |
8d138742 CE |
12734 | cat >>confdefs.h <<\_ACEOF |
12735 | #define error_t int | |
12736 | _ACEOF | |
d9898ee8 | 12737 | |
d9898ee8 | 12738 | |
8d138742 CE |
12739 | cat >>confdefs.h <<\_ACEOF |
12740 | #define __error_t_defined 1 | |
12741 | _ACEOF | |
d9898ee8 | 12742 | |
8d138742 | 12743 | fi |
d9898ee8 | 12744 | |
d9898ee8 | 12745 | |
8d138742 | 12746 | ARGZ_H= |
d9898ee8 | 12747 | |
d9898ee8 | 12748 | |
d9898ee8 | 12749 | |
d9898ee8 | 12750 | |
d9898ee8 | 12751 | |
d9898ee8 | 12752 | |
d9898ee8 | 12753 | |
8d138742 CE |
12754 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ |
12755 | argz_next argz_stringify | |
12756 | do | |
12757 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12758 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12759 | $as_echo_n "checking for $ac_func... " >&6; } | |
12760 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12761 | $as_echo_n "(cached) " >&6 | |
12762 | else | |
12763 | cat >conftest.$ac_ext <<_ACEOF | |
12764 | /* confdefs.h. */ | |
12765 | _ACEOF | |
12766 | cat confdefs.h >>conftest.$ac_ext | |
12767 | cat >>conftest.$ac_ext <<_ACEOF | |
12768 | /* end confdefs.h. */ | |
12769 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12770 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12771 | #define $ac_func innocuous_$ac_func | |
d9898ee8 | 12772 | |
8d138742 CE |
12773 | /* System header to define __stub macros and hopefully few prototypes, |
12774 | which can conflict with char $ac_func (); below. | |
12775 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12776 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 12777 | |
8d138742 CE |
12778 | #ifdef __STDC__ |
12779 | # include <limits.h> | |
12780 | #else | |
12781 | # include <assert.h> | |
12782 | #endif | |
d9898ee8 | 12783 | |
8d138742 | 12784 | #undef $ac_func |
d9898ee8 | 12785 | |
8d138742 CE |
12786 | /* Override any GCC internal prototype to avoid an error. |
12787 | Use char because int might match the return type of a GCC | |
12788 | builtin and then its argument prototype would still apply. */ | |
12789 | #ifdef __cplusplus | |
12790 | extern "C" | |
12791 | #endif | |
12792 | char $ac_func (); | |
12793 | /* The GNU C library defines this for functions which it implements | |
12794 | to always fail with ENOSYS. Some functions are actually named | |
12795 | something starting with __ and the normal name is an alias. */ | |
12796 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
12797 | choke me | |
12798 | #endif | |
d9898ee8 | 12799 | |
8d138742 CE |
12800 | int |
12801 | main () | |
12802 | { | |
12803 | return $ac_func (); | |
12804 | ; | |
12805 | return 0; | |
12806 | } | |
12807 | _ACEOF | |
12808 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12809 | if { (ac_try="$ac_link" | |
12810 | case "(($ac_try" in | |
12811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12812 | *) ac_try_echo=$ac_try;; | |
12813 | esac | |
12814 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12815 | $as_echo "$ac_try_echo") >&5 | |
12816 | (eval "$ac_link") 2>conftest.er1 | |
12817 | ac_status=$? | |
12818 | grep -v '^ *+' conftest.er1 >conftest.err | |
12819 | rm -f conftest.er1 | |
12820 | cat conftest.err >&5 | |
12821 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12822 | (exit $ac_status); } && { | |
12823 | test -z "$ac_c_werror_flag" || | |
12824 | test ! -s conftest.err | |
12825 | } && test -s conftest$ac_exeext && { | |
12826 | test "$cross_compiling" = yes || | |
12827 | $as_test_x conftest$ac_exeext | |
12828 | }; then | |
12829 | eval "$as_ac_var=yes" | |
12830 | else | |
12831 | $as_echo "$as_me: failed program was:" >&5 | |
12832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12833 | |
8d138742 CE |
12834 | eval "$as_ac_var=no" |
12835 | fi | |
d9898ee8 | 12836 | |
8d138742 CE |
12837 | rm -rf conftest.dSYM |
12838 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12839 | conftest$ac_exeext conftest.$ac_ext | |
12840 | fi | |
12841 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
12842 | $as_echo "$as_val"'` | |
12843 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12844 | $as_echo "$ac_res" >&6; } | |
12845 | as_val=`eval 'as_val=${'$as_ac_var'} | |
12846 | $as_echo "$as_val"'` | |
12847 | if test "x$as_val" = x""yes; then | |
12848 | cat >>confdefs.h <<_ACEOF | |
12849 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12850 | _ACEOF | |
d9898ee8 | 12851 | |
8d138742 CE |
12852 | else |
12853 | ARGZ_H=argz.h; | |
d9898ee8 | 12854 | |
8d138742 | 12855 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
d9898ee8 | 12856 | |
8d138742 CE |
12857 | fi |
12858 | done | |
d9898ee8 | 12859 | |
d9898ee8 | 12860 | |
8d138742 CE |
12861 | if test -z "$ARGZ_H"; then |
12862 | { $as_echo "$as_me:$LINENO: checking if argz actually works" >&5 | |
12863 | $as_echo_n "checking if argz actually works... " >&6; } | |
12864 | if test "${lt_cv_sys_argz_works+set}" = set; then | |
12865 | $as_echo_n "(cached) " >&6 | |
12866 | else | |
12867 | case $host_os in #( | |
12868 | *cygwin*) | |
12869 | lt_cv_sys_argz_works=no | |
12870 | if test "$cross_compiling" != no; then | |
12871 | lt_cv_sys_argz_works="guessing no" | |
12872 | else | |
12873 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' | |
12874 | save_IFS=$IFS | |
12875 | IFS=-. | |
12876 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` | |
12877 | IFS=$save_IFS | |
12878 | lt_os_major=${2-0} | |
12879 | lt_os_minor=${3-0} | |
12880 | lt_os_micro=${4-0} | |
12881 | if test "$lt_os_major" -gt 1 \ | |
12882 | || { test "$lt_os_major" -eq 1 \ | |
12883 | && { test "$lt_os_minor" -gt 5 \ | |
12884 | || { test "$lt_os_minor" -eq 5 \ | |
12885 | && test "$lt_os_micro" -gt 24; }; }; }; then | |
12886 | lt_cv_sys_argz_works=yes | |
12887 | fi | |
12888 | fi | |
12889 | ;; #( | |
12890 | *) lt_cv_sys_argz_works=yes ;; | |
12891 | esac | |
12892 | fi | |
12893 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5 | |
12894 | $as_echo "$lt_cv_sys_argz_works" >&6; } | |
12895 | if test $lt_cv_sys_argz_works = yes; then | |
d9898ee8 | 12896 | |
8d138742 CE |
12897 | cat >>confdefs.h <<\_ACEOF |
12898 | #define HAVE_WORKING_ARGZ 1 | |
12899 | _ACEOF | |
d9898ee8 | 12900 | |
8d138742 CE |
12901 | else |
12902 | ARGZ_H=argz.h | |
d9898ee8 | 12903 | |
d9898ee8 | 12904 | |
8d138742 | 12905 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
d9898ee8 | 12906 | |
8d138742 | 12907 | fi |
d9898ee8 | 12908 | |
8d138742 | 12909 | fi |
d9898ee8 | 12910 | |
d9898ee8 | 12911 | |
d9898ee8 | 12912 | |
d9898ee8 | 12913 | |
8d138742 CE |
12914 | { $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
12915 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } | |
12916 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then | |
12917 | $as_echo_n "(cached) " >&6 | |
12918 | else | |
12919 | if test -n "$lt_cv_sys_global_symbol_pipe"; then | |
12920 | libltdl_cv_preloaded_symbols=yes | |
12921 | else | |
12922 | libltdl_cv_preloaded_symbols=no | |
12923 | fi | |
d9898ee8 | 12924 | |
8d138742 CE |
12925 | fi |
12926 | { $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 | |
12927 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } | |
12928 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | |
d9898ee8 | 12929 | |
8d138742 CE |
12930 | cat >>confdefs.h <<\_ACEOF |
12931 | #define HAVE_PRELOADED_SYMBOLS 1 | |
12932 | _ACEOF | |
d9898ee8 | 12933 | |
8d138742 | 12934 | fi |
d9898ee8 | 12935 | |
d9898ee8 | 12936 | |
d9898ee8 | 12937 | |
8d138742 | 12938 | # Set options |
d9898ee8 | 12939 | |
d9898ee8 | 12940 | |
d9898ee8 | 12941 | |
d9898ee8 | 12942 | |
d9898ee8 | 12943 | |
d9898ee8 | 12944 | |
d9898ee8 | 12945 | |
d9898ee8 | 12946 | |
d9898ee8 | 12947 | |
d9898ee8 | 12948 | |
d9898ee8 | 12949 | |
12950 | ||
8d138742 CE |
12951 | # Check whether --with-included_ltdl was given. |
12952 | if test "${with_included_ltdl+set}" = set; then | |
12953 | withval=$with_included_ltdl; | |
d9898ee8 | 12954 | fi |
12955 | ||
12956 | ||
8d138742 CE |
12957 | if test "x$with_included_ltdl" != xyes; then |
12958 | # We are not being forced to use the included libltdl sources, so | |
12959 | # decide whether there is a useful installed version we can use. | |
12960 | { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5 | |
12961 | $as_echo_n "checking for ltdl.h... " >&6; } | |
12962 | if test "${ac_cv_header_ltdl_h+set}" = set; then | |
12963 | $as_echo_n "(cached) " >&6 | |
12964 | else | |
12965 | cat >conftest.$ac_ext <<_ACEOF | |
12966 | /* confdefs.h. */ | |
12967 | _ACEOF | |
12968 | cat confdefs.h >>conftest.$ac_ext | |
12969 | cat >>conftest.$ac_ext <<_ACEOF | |
12970 | /* end confdefs.h. */ | |
12971 | $ac_includes_default | |
d9898ee8 | 12972 | |
d9898ee8 | 12973 | |
8d138742 CE |
12974 | #include <ltdl.h> |
12975 | _ACEOF | |
12976 | rm -f conftest.$ac_objext | |
12977 | if { (ac_try="$ac_compile" | |
12978 | case "(($ac_try" in | |
12979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12980 | *) ac_try_echo=$ac_try;; | |
12981 | esac | |
12982 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12983 | $as_echo "$ac_try_echo") >&5 | |
12984 | (eval "$ac_compile") 2>conftest.er1 | |
12985 | ac_status=$? | |
12986 | grep -v '^ *+' conftest.er1 >conftest.err | |
12987 | rm -f conftest.er1 | |
12988 | cat conftest.err >&5 | |
12989 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12990 | (exit $ac_status); } && { | |
12991 | test -z "$ac_c_werror_flag" || | |
12992 | test ! -s conftest.err | |
12993 | } && test -s conftest.$ac_objext; then | |
12994 | ac_cv_header_ltdl_h=yes | |
12995 | else | |
12996 | $as_echo "$as_me: failed program was:" >&5 | |
12997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12998 | |
8d138742 CE |
12999 | ac_cv_header_ltdl_h=no |
13000 | fi | |
d9898ee8 | 13001 | |
8d138742 CE |
13002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13003 | fi | |
13004 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5 | |
13005 | $as_echo "$ac_cv_header_ltdl_h" >&6; } | |
13006 | if test "x$ac_cv_header_ltdl_h" = x""yes; then | |
13007 | { $as_echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5 | |
13008 | $as_echo_n "checking whether lt_dlinterface_register is declared... " >&6; } | |
13009 | if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then | |
13010 | $as_echo_n "(cached) " >&6 | |
13011 | else | |
13012 | cat >conftest.$ac_ext <<_ACEOF | |
13013 | /* confdefs.h. */ | |
13014 | _ACEOF | |
13015 | cat confdefs.h >>conftest.$ac_ext | |
13016 | cat >>conftest.$ac_ext <<_ACEOF | |
13017 | /* end confdefs.h. */ | |
13018 | $ac_includes_default | |
13019 | #include <ltdl.h> | |
d9898ee8 | 13020 | |
8d138742 CE |
13021 | int |
13022 | main () | |
13023 | { | |
13024 | #ifndef lt_dlinterface_register | |
13025 | (void) lt_dlinterface_register; | |
13026 | #endif | |
d9898ee8 | 13027 | |
8d138742 CE |
13028 | ; |
13029 | return 0; | |
13030 | } | |
13031 | _ACEOF | |
13032 | rm -f conftest.$ac_objext | |
13033 | if { (ac_try="$ac_compile" | |
13034 | case "(($ac_try" in | |
13035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13036 | *) ac_try_echo=$ac_try;; | |
13037 | esac | |
13038 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13039 | $as_echo "$ac_try_echo") >&5 | |
13040 | (eval "$ac_compile") 2>conftest.er1 | |
13041 | ac_status=$? | |
13042 | grep -v '^ *+' conftest.er1 >conftest.err | |
13043 | rm -f conftest.er1 | |
13044 | cat conftest.err >&5 | |
13045 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13046 | (exit $ac_status); } && { | |
13047 | test -z "$ac_c_werror_flag" || | |
13048 | test ! -s conftest.err | |
13049 | } && test -s conftest.$ac_objext; then | |
13050 | ac_cv_have_decl_lt_dlinterface_register=yes | |
13051 | else | |
13052 | $as_echo "$as_me: failed program was:" >&5 | |
13053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 13054 | |
8d138742 CE |
13055 | ac_cv_have_decl_lt_dlinterface_register=no |
13056 | fi | |
d9898ee8 | 13057 | |
8d138742 CE |
13058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13059 | fi | |
13060 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5 | |
13061 | $as_echo "$ac_cv_have_decl_lt_dlinterface_register" >&6; } | |
13062 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then | |
13063 | { $as_echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5 | |
13064 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } | |
13065 | if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then | |
13066 | $as_echo_n "(cached) " >&6 | |
13067 | else | |
13068 | ac_check_lib_save_LIBS=$LIBS | |
13069 | LIBS="-lltdl $LIBS" | |
13070 | cat >conftest.$ac_ext <<_ACEOF | |
13071 | /* confdefs.h. */ | |
13072 | _ACEOF | |
13073 | cat confdefs.h >>conftest.$ac_ext | |
13074 | cat >>conftest.$ac_ext <<_ACEOF | |
13075 | /* end confdefs.h. */ | |
13076 | ||
13077 | /* Override any GCC internal prototype to avoid an error. | |
13078 | Use char because int might match the return type of a GCC | |
13079 | builtin and then its argument prototype would still apply. */ | |
13080 | #ifdef __cplusplus | |
13081 | extern "C" | |
13082 | #endif | |
13083 | char lt_dladvise_preload (); | |
13084 | int | |
13085 | main () | |
13086 | { | |
13087 | return lt_dladvise_preload (); | |
13088 | ; | |
13089 | return 0; | |
13090 | } | |
13091 | _ACEOF | |
13092 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13093 | if { (ac_try="$ac_link" | |
13094 | case "(($ac_try" in | |
13095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13096 | *) ac_try_echo=$ac_try;; | |
13097 | esac | |
13098 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13099 | $as_echo "$ac_try_echo") >&5 | |
13100 | (eval "$ac_link") 2>conftest.er1 | |
13101 | ac_status=$? | |
13102 | grep -v '^ *+' conftest.er1 >conftest.err | |
13103 | rm -f conftest.er1 | |
13104 | cat conftest.err >&5 | |
13105 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13106 | (exit $ac_status); } && { | |
13107 | test -z "$ac_c_werror_flag" || | |
13108 | test ! -s conftest.err | |
13109 | } && test -s conftest$ac_exeext && { | |
13110 | test "$cross_compiling" = yes || | |
13111 | $as_test_x conftest$ac_exeext | |
13112 | }; then | |
13113 | ac_cv_lib_ltdl_lt_dladvise_preload=yes | |
13114 | else | |
13115 | $as_echo "$as_me: failed program was:" >&5 | |
13116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13117 | ||
13118 | ac_cv_lib_ltdl_lt_dladvise_preload=no | |
13119 | fi | |
d9898ee8 | 13120 | |
8d138742 CE |
13121 | rm -rf conftest.dSYM |
13122 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13123 | conftest$ac_exeext conftest.$ac_ext | |
13124 | LIBS=$ac_check_lib_save_LIBS | |
13125 | fi | |
13126 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 | |
13127 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } | |
13128 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then | |
13129 | with_included_ltdl=no | |
13130 | else | |
13131 | with_included_ltdl=yes | |
13132 | fi | |
d9898ee8 | 13133 | |
8d138742 CE |
13134 | else |
13135 | with_included_ltdl=yes | |
13136 | fi | |
d9898ee8 | 13137 | |
8d138742 CE |
13138 | else |
13139 | with_included_ltdl=yes | |
13140 | fi | |
d9898ee8 | 13141 | |
13142 | ||
8d138742 | 13143 | fi |
d9898ee8 | 13144 | |
d9898ee8 | 13145 | |
13146 | ||
d9898ee8 | 13147 | |
8d138742 CE |
13148 | # Check whether --with-ltdl_include was given. |
13149 | if test "${with_ltdl_include+set}" = set; then | |
13150 | withval=$with_ltdl_include; | |
d9898ee8 | 13151 | fi |
d9898ee8 | 13152 | |
8d138742 CE |
13153 | |
13154 | if test -n "$with_ltdl_include"; then | |
13155 | if test -f "$with_ltdl_include/ltdl.h"; then : | |
13156 | else | |
13157 | { { $as_echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5 | |
13158 | $as_echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;} | |
13159 | { (exit 1); exit 1; }; } | |
13160 | fi | |
d9898ee8 | 13161 | else |
8d138742 | 13162 | with_ltdl_include=no |
d9898ee8 | 13163 | fi |
13164 | ||
8d138742 CE |
13165 | |
13166 | # Check whether --with-ltdl_lib was given. | |
13167 | if test "${with_ltdl_lib+set}" = set; then | |
13168 | withval=$with_ltdl_lib; | |
d9898ee8 | 13169 | fi |
13170 | ||
d9898ee8 | 13171 | |
8d138742 CE |
13172 | if test -n "$with_ltdl_lib"; then |
13173 | if test -f "$with_ltdl_lib/libltdl.la"; then : | |
13174 | else | |
13175 | { { $as_echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5 | |
13176 | $as_echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;} | |
13177 | { (exit 1); exit 1; }; } | |
13178 | fi | |
13179 | else | |
13180 | with_ltdl_lib=no | |
13181 | fi | |
d9898ee8 | 13182 | |
8d138742 CE |
13183 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in |
13184 | ,yes,no,no,) | |
13185 | case $enable_ltdl_convenience in | |
13186 | no) { { $as_echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5 | |
13187 | $as_echo "$as_me: error: this package needs a convenience libltdl" >&2;} | |
13188 | { (exit 1); exit 1; }; } ;; | |
13189 | "") enable_ltdl_convenience=yes | |
13190 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
13191 | esac | |
13192 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" | |
13193 | LTDLDEPS=$LIBLTDL | |
13194 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" | |
d9898ee8 | 13195 | |
d9898ee8 | 13196 | |
d9898ee8 | 13197 | |
d9898ee8 | 13198 | |
d9898ee8 | 13199 | |
8d138742 CE |
13200 | # For backwards non-gettext consistent compatibility... |
13201 | INCLTDL="$LTDLINCL" | |
d9898ee8 | 13202 | |
d9898ee8 | 13203 | |
8d138742 CE |
13204 | ;; |
13205 | ,no,no,no,) | |
13206 | # If the included ltdl is not to be used, then use the | |
13207 | # preinstalled libltdl we found. | |
d9898ee8 | 13208 | |
8d138742 CE |
13209 | cat >>confdefs.h <<\_ACEOF |
13210 | #define HAVE_LTDL 1 | |
13211 | _ACEOF | |
d9898ee8 | 13212 | |
8d138742 CE |
13213 | LIBLTDL=-lltdl |
13214 | LTDLDEPS= | |
13215 | LTDLINCL= | |
d9898ee8 | 13216 | ;; |
8d138742 CE |
13217 | ,no*,no,*) |
13218 | { { $as_echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5 | |
13219 | $as_echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;} | |
13220 | { (exit 1); exit 1; }; } | |
d9898ee8 | 13221 | ;; |
8d138742 CE |
13222 | *) with_included_ltdl=no |
13223 | LIBLTDL="-L$with_ltdl_lib -lltdl" | |
13224 | LTDLDEPS= | |
13225 | LTDLINCL="-I$with_ltdl_include" | |
13226 | ;; | |
13227 | esac | |
13228 | INCLTDL="$LTDLINCL" | |
d9898ee8 | 13229 | |
8d138742 CE |
13230 | # Report our decision... |
13231 | { $as_echo "$as_me:$LINENO: checking where to find libltdl headers" >&5 | |
13232 | $as_echo_n "checking where to find libltdl headers... " >&6; } | |
13233 | { $as_echo "$as_me:$LINENO: result: $LTDLINCL" >&5 | |
13234 | $as_echo "$LTDLINCL" >&6; } | |
13235 | { $as_echo "$as_me:$LINENO: checking where to find libltdl library" >&5 | |
13236 | $as_echo_n "checking where to find libltdl library... " >&6; } | |
13237 | { $as_echo "$as_me:$LINENO: result: $LIBLTDL" >&5 | |
13238 | $as_echo "$LIBLTDL" >&6; } | |
d9898ee8 | 13239 | |
d9898ee8 | 13240 | |
d9898ee8 | 13241 | |
8d138742 CE |
13242 | # Check whether --enable-ltdl-install was given. |
13243 | if test "${enable_ltdl_install+set}" = set; then | |
13244 | enableval=$enable_ltdl_install; | |
13245 | fi | |
d9898ee8 | 13246 | |
d9898ee8 | 13247 | |
8d138742 CE |
13248 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in |
13249 | *yes*) ;; | |
13250 | *) enable_ltdl_convenience=yes ;; | |
13251 | esac | |
d9898ee8 | 13252 | |
8d138742 CE |
13253 | if test x"${enable_ltdl_install-no}" != xno; then |
13254 | INSTALL_LTDL_TRUE= | |
13255 | INSTALL_LTDL_FALSE='#' | |
13256 | else | |
13257 | INSTALL_LTDL_TRUE='#' | |
13258 | INSTALL_LTDL_FALSE= | |
13259 | fi | |
d9898ee8 | 13260 | |
8d138742 CE |
13261 | if test x"${enable_ltdl_convenience-no}" != xno; then |
13262 | CONVENIENCE_LTDL_TRUE= | |
13263 | CONVENIENCE_LTDL_FALSE='#' | |
13264 | else | |
13265 | CONVENIENCE_LTDL_TRUE='#' | |
13266 | CONVENIENCE_LTDL_FALSE= | |
13267 | fi | |
ac40fd9e | 13268 | |
d9898ee8 | 13269 | |
d9898ee8 | 13270 | |
8d138742 | 13271 | subdirs="$subdirs libltdl" |
d9898ee8 | 13272 | |
d9898ee8 | 13273 | |
d9898ee8 | 13274 | |
d9898ee8 | 13275 | |
d9898ee8 | 13276 | |
8d138742 CE |
13277 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS |
13278 | # the user used. This is so that ltdl.h can pick up the parent projects | |
13279 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the | |
13280 | # definitions required by ltdl.c. | |
13281 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). | |
d9898ee8 | 13282 | |
d9898ee8 | 13283 | |
d9898ee8 | 13284 | |
d9898ee8 | 13285 | |
d9898ee8 | 13286 | |
d9898ee8 | 13287 | |
d9898ee8 | 13288 | |
d9898ee8 | 13289 | |
d9898ee8 | 13290 | |
8d138742 CE |
13291 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h |
13292 | do | |
13293 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13294 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13295 | $as_echo_n "checking for $ac_header... " >&6; } | |
13296 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13297 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 13298 | else |
8d138742 CE |
13299 | cat >conftest.$ac_ext <<_ACEOF |
13300 | /* confdefs.h. */ | |
13301 | _ACEOF | |
13302 | cat confdefs.h >>conftest.$ac_ext | |
13303 | cat >>conftest.$ac_ext <<_ACEOF | |
13304 | /* end confdefs.h. */ | |
13305 | $ac_includes_default | |
d9898ee8 | 13306 | |
8d138742 CE |
13307 | #include <$ac_header> |
13308 | _ACEOF | |
13309 | rm -f conftest.$ac_objext | |
13310 | if { (ac_try="$ac_compile" | |
13311 | case "(($ac_try" in | |
13312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13313 | *) ac_try_echo=$ac_try;; | |
13314 | esac | |
13315 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13316 | $as_echo "$ac_try_echo") >&5 | |
13317 | (eval "$ac_compile") 2>conftest.er1 | |
13318 | ac_status=$? | |
13319 | grep -v '^ *+' conftest.er1 >conftest.err | |
13320 | rm -f conftest.er1 | |
13321 | cat conftest.err >&5 | |
13322 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13323 | (exit $ac_status); } && { | |
13324 | test -z "$ac_c_werror_flag" || | |
13325 | test ! -s conftest.err | |
13326 | } && test -s conftest.$ac_objext; then | |
13327 | eval "$as_ac_Header=yes" | |
d9898ee8 | 13328 | else |
8d138742 CE |
13329 | $as_echo "$as_me: failed program was:" >&5 |
13330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 13331 | |
8d138742 | 13332 | eval "$as_ac_Header=no" |
d9898ee8 | 13333 | fi |
d9898ee8 | 13334 | |
8d138742 | 13335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 13336 | fi |
8d138742 CE |
13337 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13338 | $as_echo "$as_val"'` | |
13339 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13340 | $as_echo "$ac_res" >&6; } | |
13341 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13342 | $as_echo "$as_val"'` | |
13343 | if test "x$as_val" = x""yes; then | |
13344 | cat >>confdefs.h <<_ACEOF | |
13345 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13346 | _ACEOF | |
d9898ee8 | 13347 | |
8d138742 | 13348 | fi |
d9898ee8 | 13349 | |
d9898ee8 | 13350 | done |
d9898ee8 | 13351 | |
d9898ee8 | 13352 | |
d9898ee8 | 13353 | |
d9898ee8 | 13354 | |
d9898ee8 | 13355 | |
8d138742 CE |
13356 | for ac_func in closedir opendir readdir |
13357 | do | |
13358 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13359 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13360 | $as_echo_n "checking for $ac_func... " >&6; } | |
13361 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13362 | $as_echo_n "(cached) " >&6 | |
13363 | else | |
13364 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 13365 | /* confdefs.h. */ |
13366 | _ACEOF | |
13367 | cat confdefs.h >>conftest.$ac_ext | |
13368 | cat >>conftest.$ac_ext <<_ACEOF | |
13369 | /* end confdefs.h. */ | |
8d138742 CE |
13370 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13371 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13372 | #define $ac_func innocuous_$ac_func | |
13373 | ||
13374 | /* System header to define __stub macros and hopefully few prototypes, | |
13375 | which can conflict with char $ac_func (); below. | |
13376 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13377 | <limits.h> exists even on freestanding compilers. */ | |
13378 | ||
13379 | #ifdef __STDC__ | |
13380 | # include <limits.h> | |
13381 | #else | |
13382 | # include <assert.h> | |
13383 | #endif | |
13384 | ||
13385 | #undef $ac_func | |
13386 | ||
13387 | /* Override any GCC internal prototype to avoid an error. | |
13388 | Use char because int might match the return type of a GCC | |
13389 | builtin and then its argument prototype would still apply. */ | |
13390 | #ifdef __cplusplus | |
13391 | extern "C" | |
13392 | #endif | |
13393 | char $ac_func (); | |
13394 | /* The GNU C library defines this for functions which it implements | |
13395 | to always fail with ENOSYS. Some functions are actually named | |
13396 | something starting with __ and the normal name is an alias. */ | |
13397 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
13398 | choke me | |
13399 | #endif | |
d9898ee8 | 13400 | |
13401 | int | |
13402 | main () | |
13403 | { | |
8d138742 | 13404 | return $ac_func (); |
d9898ee8 | 13405 | ; |
13406 | return 0; | |
13407 | } | |
13408 | _ACEOF | |
13409 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 13410 | if { (ac_try="$ac_link" |
13411 | case "(($ac_try" in | |
13412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13413 | *) ac_try_echo=$ac_try;; | |
13414 | esac | |
8d138742 CE |
13415 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13416 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 13417 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 13418 | ac_status=$? |
13419 | grep -v '^ *+' conftest.er1 >conftest.err | |
13420 | rm -f conftest.er1 | |
13421 | cat conftest.err >&5 | |
8d138742 | 13422 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 13423 | (exit $ac_status); } && { |
13424 | test -z "$ac_c_werror_flag" || | |
13425 | test ! -s conftest.err | |
8d138742 CE |
13426 | } && test -s conftest$ac_exeext && { |
13427 | test "$cross_compiling" = yes || | |
13428 | $as_test_x conftest$ac_exeext | |
13429 | }; then | |
13430 | eval "$as_ac_var=yes" | |
d9898ee8 | 13431 | else |
8d138742 | 13432 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 13433 | sed 's/^/| /' conftest.$ac_ext >&5 |
13434 | ||
8d138742 | 13435 | eval "$as_ac_var=no" |
d9898ee8 | 13436 | fi |
dd184caf | 13437 | |
8d138742 | 13438 | rm -rf conftest.dSYM |
dd184caf | 13439 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 13440 | conftest$ac_exeext conftest.$ac_ext |
8d138742 CE |
13441 | fi |
13442 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
13443 | $as_echo "$as_val"'` | |
13444 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13445 | $as_echo "$ac_res" >&6; } | |
13446 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13447 | $as_echo "$as_val"'` | |
13448 | if test "x$as_val" = x""yes; then | |
13449 | cat >>confdefs.h <<_ACEOF | |
13450 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
d9898ee8 | 13451 | _ACEOF |
d9898ee8 | 13452 | |
8d138742 | 13453 | else |
d9898ee8 | 13454 | |
8d138742 CE |
13455 | |
13456 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" | |
13457 | ||
13458 | fi | |
13459 | done | |
13460 | ||
13461 | ||
13462 | ||
13463 | for ac_func in strlcat strlcpy | |
13464 | do | |
13465 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13466 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13467 | $as_echo_n "checking for $ac_func... " >&6; } | |
13468 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13469 | $as_echo_n "(cached) " >&6 | |
13470 | else | |
13471 | cat >conftest.$ac_ext <<_ACEOF | |
13472 | /* confdefs.h. */ | |
13473 | _ACEOF | |
13474 | cat confdefs.h >>conftest.$ac_ext | |
13475 | cat >>conftest.$ac_ext <<_ACEOF | |
13476 | /* end confdefs.h. */ | |
13477 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13478 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13479 | #define $ac_func innocuous_$ac_func | |
13480 | ||
13481 | /* System header to define __stub macros and hopefully few prototypes, | |
13482 | which can conflict with char $ac_func (); below. | |
13483 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13484 | <limits.h> exists even on freestanding compilers. */ | |
13485 | ||
13486 | #ifdef __STDC__ | |
13487 | # include <limits.h> | |
13488 | #else | |
13489 | # include <assert.h> | |
13490 | #endif | |
13491 | ||
13492 | #undef $ac_func | |
13493 | ||
13494 | /* Override any GCC internal prototype to avoid an error. | |
13495 | Use char because int might match the return type of a GCC | |
13496 | builtin and then its argument prototype would still apply. */ | |
13497 | #ifdef __cplusplus | |
13498 | extern "C" | |
13499 | #endif | |
13500 | char $ac_func (); | |
13501 | /* The GNU C library defines this for functions which it implements | |
13502 | to always fail with ENOSYS. Some functions are actually named | |
13503 | something starting with __ and the normal name is an alias. */ | |
13504 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
13505 | choke me | |
13506 | #endif | |
13507 | ||
13508 | int | |
13509 | main () | |
13510 | { | |
13511 | return $ac_func (); | |
13512 | ; | |
d9898ee8 | 13513 | return 0; |
13514 | } | |
13515 | _ACEOF | |
13516 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 13517 | if { (ac_try="$ac_link" |
13518 | case "(($ac_try" in | |
13519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13520 | *) ac_try_echo=$ac_try;; | |
13521 | esac | |
8d138742 CE |
13522 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13523 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 13524 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 13525 | ac_status=$? |
13526 | grep -v '^ *+' conftest.er1 >conftest.err | |
13527 | rm -f conftest.er1 | |
13528 | cat conftest.err >&5 | |
8d138742 | 13529 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 13530 | (exit $ac_status); } && { |
13531 | test -z "$ac_c_werror_flag" || | |
13532 | test ! -s conftest.err | |
8d138742 CE |
13533 | } && test -s conftest$ac_exeext && { |
13534 | test "$cross_compiling" = yes || | |
13535 | $as_test_x conftest$ac_exeext | |
13536 | }; then | |
13537 | eval "$as_ac_var=yes" | |
d9898ee8 | 13538 | else |
8d138742 | 13539 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 13540 | sed 's/^/| /' conftest.$ac_ext >&5 |
13541 | ||
8d138742 | 13542 | eval "$as_ac_var=no" |
d9898ee8 | 13543 | fi |
dd184caf | 13544 | |
8d138742 | 13545 | rm -rf conftest.dSYM |
dd184caf | 13546 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 13547 | conftest$ac_exeext conftest.$ac_ext |
8d138742 CE |
13548 | fi |
13549 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
13550 | $as_echo "$as_val"'` | |
13551 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13552 | $as_echo "$ac_res" >&6; } | |
13553 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13554 | $as_echo "$as_val"'` | |
13555 | if test "x$as_val" = x""yes; then | |
13556 | cat >>confdefs.h <<_ACEOF | |
13557 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13558 | _ACEOF | |
d9898ee8 | 13559 | |
8d138742 | 13560 | else |
d9898ee8 | 13561 | |
d9898ee8 | 13562 | |
8d138742 | 13563 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" |
d9898ee8 | 13564 | |
8d138742 CE |
13565 | fi |
13566 | done | |
d9898ee8 | 13567 | |
d9898ee8 | 13568 | |
d9898ee8 | 13569 | |
8d138742 CE |
13570 | cat >>confdefs.h <<_ACEOF |
13571 | #define LT_LIBEXT "$libext" | |
13572 | _ACEOF | |
d9898ee8 | 13573 | |
d9898ee8 | 13574 | |
8d138742 CE |
13575 | name=ltdl |
13576 | LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""` | |
d9898ee8 | 13577 | |
d9898ee8 | 13578 | |
d9898ee8 | 13579 | |
d9898ee8 | 13580 | |
d9898ee8 | 13581 | |
d9898ee8 | 13582 | |
d9898ee8 | 13583 | |
d9898ee8 | 13584 | |
8d138742 | 13585 | # Only expand once: |
d9898ee8 | 13586 | |
d9898ee8 | 13587 | |
d9898ee8 | 13588 | |
d9898ee8 | 13589 | |
8d138742 CE |
13590 | for ac_prog in perl5 perl |
13591 | do | |
13592 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13593 | set dummy $ac_prog; ac_word=$2 | |
13594 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13595 | $as_echo_n "checking for $ac_word... " >&6; } | |
13596 | if test "${ac_cv_path_PERL+set}" = set; then | |
13597 | $as_echo_n "(cached) " >&6 | |
13598 | else | |
13599 | case $PERL in | |
13600 | [\\/]* | ?:[\\/]*) | |
13601 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
13602 | ;; | |
13603 | *) | |
13604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13605 | for as_dir in $LPATH | |
13606 | do | |
13607 | IFS=$as_save_IFS | |
13608 | test -z "$as_dir" && as_dir=. | |
13609 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13610 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13611 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | |
13612 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13613 | break 2 | |
13614 | fi | |
13615 | done | |
13616 | done | |
13617 | IFS=$as_save_IFS | |
d9898ee8 | 13618 | |
8d138742 CE |
13619 | ;; |
13620 | esac | |
13621 | fi | |
13622 | PERL=$ac_cv_path_PERL | |
13623 | if test -n "$PERL"; then | |
13624 | { $as_echo "$as_me:$LINENO: result: $PERL" >&5 | |
13625 | $as_echo "$PERL" >&6; } | |
13626 | else | |
13627 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13628 | $as_echo "no" >&6; } | |
13629 | fi | |
d9898ee8 | 13630 | |
d9898ee8 | 13631 | |
8d138742 CE |
13632 | test -n "$PERL" && break |
13633 | done | |
13634 | test -n "$PERL" || PERL="perl" | |
d9898ee8 | 13635 | |
8d138742 CE |
13636 | for ac_prog in courier-config |
13637 | do | |
13638 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13639 | set dummy $ac_prog; ac_word=$2 | |
13640 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13641 | $as_echo_n "checking for $ac_word... " >&6; } | |
13642 | if test "${ac_cv_path_COURIERCONFIG+set}" = set; then | |
13643 | $as_echo_n "(cached) " >&6 | |
13644 | else | |
13645 | case $COURIERCONFIG in | |
13646 | [\\/]* | ?:[\\/]*) | |
13647 | ac_cv_path_COURIERCONFIG="$COURIERCONFIG" # Let the user override the test with a path. | |
13648 | ;; | |
13649 | *) | |
13650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13651 | for as_dir in $LPATH | |
13652 | do | |
13653 | IFS=$as_save_IFS | |
13654 | test -z "$as_dir" && as_dir=. | |
13655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13656 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13657 | ac_cv_path_COURIERCONFIG="$as_dir/$ac_word$ac_exec_ext" | |
13658 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13659 | break 2 | |
13660 | fi | |
13661 | done | |
13662 | done | |
13663 | IFS=$as_save_IFS | |
d9898ee8 | 13664 | |
8d138742 CE |
13665 | ;; |
13666 | esac | |
13667 | fi | |
13668 | COURIERCONFIG=$ac_cv_path_COURIERCONFIG | |
13669 | if test -n "$COURIERCONFIG"; then | |
13670 | { $as_echo "$as_me:$LINENO: result: $COURIERCONFIG" >&5 | |
13671 | $as_echo "$COURIERCONFIG" >&6; } | |
13672 | else | |
13673 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13674 | $as_echo "no" >&6; } | |
13675 | fi | |
d9898ee8 | 13676 | |
d9898ee8 | 13677 | |
8d138742 CE |
13678 | test -n "$COURIERCONFIG" && break |
13679 | done | |
13680 | test -n "$COURIERCONFIG" || COURIERCONFIG="courier-config" | |
d9898ee8 | 13681 | |
d9898ee8 | 13682 | |
8d138742 CE |
13683 | if test "$PERL" = "perl" |
13684 | then | |
13685 | { { $as_echo "$as_me:$LINENO: error: Perl is required" >&5 | |
13686 | $as_echo "$as_me: error: Perl is required" >&2;} | |
13687 | { (exit 1); exit 1; }; } | |
13688 | fi | |
d9898ee8 | 13689 | |
8d138742 CE |
13690 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
13691 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
13692 | eval "prefix=$prefix" | |
13693 | eval "exec_prefix=$exec_prefix" | |
13694 | eval "sysconfdir=$sysconfdir" | |
13695 | eval "bindir=$bindir" | |
13696 | eval "sbindir=$sbindir" | |
13697 | eval "localstatedir=$localstatedir" | |
13698 | eval "libexecdir=$libexecdir" | |
d9898ee8 | 13699 | |
d9898ee8 | 13700 | |
8d138742 CE |
13701 | # Check whether --with-redhat was given. |
13702 | if test "${with_redhat+set}" = set; then | |
13703 | withval=$with_redhat; redhat=$withval | |
13704 | else | |
13705 | redhat=no | |
13706 | fi | |
d9898ee8 | 13707 | |
d9898ee8 | 13708 | |
8d138742 CE |
13709 | if test "$srcdir" = "." |
13710 | then | |
13711 | case `./config.guess` in | |
13712 | *-redhat-*) | |
13713 | if test "$redhat" = "no" | |
13714 | then | |
13715 | hash='#' | |
13716 | { $as_echo "$as_me:$LINENO: WARNING: === I think you are trying to run this configure script" >&5 | |
13717 | $as_echo "$as_me: WARNING: === I think you are trying to run this configure script" >&2;} | |
13718 | { $as_echo "$as_me:$LINENO: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&5 | |
13719 | $as_echo "$as_me: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&2;} | |
13720 | { $as_echo "$as_me:$LINENO: WARNING: === It's much faster to create installable binary RPMs" >&5 | |
13721 | $as_echo "$as_me: WARNING: === It's much faster to create installable binary RPMs" >&2;} | |
13722 | { $as_echo "$as_me:$LINENO: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&5 | |
13723 | $as_echo "$as_me: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&2;} | |
13724 | { $as_echo "$as_me:$LINENO: WARNING: === When you do this you may find that RPM will tell you" >&5 | |
13725 | $as_echo "$as_me: WARNING: === When you do this you may find that RPM will tell you" >&2;} | |
13726 | { $as_echo "$as_me:$LINENO: WARNING: === to install some other software first, before trying to" >&5 | |
13727 | $as_echo "$as_me: WARNING: === to install some other software first, before trying to" >&2;} | |
13728 | { $as_echo "$as_me:$LINENO: WARNING: === build this one, and even tell you the name of RPMs you" >&5 | |
13729 | $as_echo "$as_me: WARNING: === build this one, and even tell you the name of RPMs you" >&2;} | |
13730 | { $as_echo "$as_me:$LINENO: WARNING: === need to install from the distribution CD. That's much" >&5 | |
13731 | $as_echo "$as_me: WARNING: === need to install from the distribution CD. That's much" >&2;} | |
13732 | { $as_echo "$as_me:$LINENO: WARNING: === easier than trying to figure out the same from some" >&5 | |
13733 | $as_echo "$as_me: WARNING: === easier than trying to figure out the same from some" >&2;} | |
13734 | { $as_echo "$as_me:$LINENO: WARNING: === cryptic error message." >&5 | |
13735 | $as_echo "$as_me: WARNING: === cryptic error message." >&2;} | |
13736 | { $as_echo "$as_me:$LINENO: WARNING: " >&5 | |
13737 | $as_echo "$as_me: WARNING: " >&2;} | |
13738 | { $as_echo "$as_me:$LINENO: WARNING: === Even if you don't intend to use everything you need to" >&5 | |
13739 | $as_echo "$as_me: WARNING: === Even if you don't intend to use everything you need to" >&2;} | |
13740 | { $as_echo "$as_me:$LINENO: WARNING: === have in order to build via RPM, you should still do as" >&5 | |
13741 | $as_echo "$as_me: WARNING: === have in order to build via RPM, you should still do as" >&2;} | |
13742 | { $as_echo "$as_me:$LINENO: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&5 | |
13743 | $as_echo "$as_me: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&2;} | |
13744 | { $as_echo "$as_me:$LINENO: WARNING: === goes into RPM sub-packages, which do not need to be" >&5 | |
13745 | $as_echo "$as_me: WARNING: === goes into RPM sub-packages, which do not need to be" >&2;} | |
13746 | { $as_echo "$as_me:$LINENO: WARNING: === installed." >&5 | |
13747 | $as_echo "$as_me: WARNING: === installed." >&2;} | |
13748 | { $as_echo "$as_me:$LINENO: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&5 | |
13749 | $as_echo "$as_me: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&2;} | |
13750 | { $as_echo "$as_me:$LINENO: WARNING: === parameter to this configure script and not see this" >&5 | |
13751 | $as_echo "$as_me: WARNING: === parameter to this configure script and not see this" >&2;} | |
13752 | { $as_echo "$as_me:$LINENO: WARNING: === error message. You should also do this when upgrading" >&5 | |
13753 | $as_echo "$as_me: WARNING: === error message. You should also do this when upgrading" >&2;} | |
13754 | { $as_echo "$as_me:$LINENO: WARNING: === and you didn't use RPM with the older version." >&5 | |
13755 | $as_echo "$as_me: WARNING: === and you didn't use RPM with the older version." >&2;} | |
13756 | { { $as_echo "$as_me:$LINENO: error: ... in either case you better know what you're doing!" >&5 | |
13757 | $as_echo "$as_me: error: ... in either case you better know what you're doing!" >&2;} | |
13758 | { (exit 1); exit 1; }; } | |
13759 | fi | |
13760 | ;; | |
13761 | *) | |
13762 | ;; | |
13763 | esac | |
13764 | fi | |
13765 | for ac_prog in expect | |
13766 | do | |
13767 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13768 | set dummy $ac_prog; ac_word=$2 | |
13769 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13770 | $as_echo_n "checking for $ac_word... " >&6; } | |
13771 | if test "${ac_cv_path_EXPECT+set}" = set; then | |
13772 | $as_echo_n "(cached) " >&6 | |
13773 | else | |
13774 | case $EXPECT in | |
13775 | [\\/]* | ?:[\\/]*) | |
13776 | ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path. | |
13777 | ;; | |
13778 | *) | |
13779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13780 | for as_dir in $LPATH | |
13781 | do | |
13782 | IFS=$as_save_IFS | |
13783 | test -z "$as_dir" && as_dir=. | |
13784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13786 | ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext" | |
13787 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13788 | break 2 | |
d9898ee8 | 13789 | fi |
8d138742 CE |
13790 | done |
13791 | done | |
13792 | IFS=$as_save_IFS | |
d9898ee8 | 13793 | |
8d138742 CE |
13794 | ;; |
13795 | esac | |
13796 | fi | |
13797 | EXPECT=$ac_cv_path_EXPECT | |
13798 | if test -n "$EXPECT"; then | |
13799 | { $as_echo "$as_me:$LINENO: result: $EXPECT" >&5 | |
13800 | $as_echo "$EXPECT" >&6; } | |
13801 | else | |
13802 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13803 | $as_echo "no" >&6; } | |
13804 | fi | |
d9898ee8 | 13805 | |
d9898ee8 | 13806 | |
8d138742 CE |
13807 | test -n "$EXPECT" && break |
13808 | done | |
13809 | test -n "$EXPECT" || EXPECT="expect" | |
d9898ee8 | 13810 | |
8d138742 CE |
13811 | |
13812 | if test "$EXPECT" = "expect" | |
13813 | then | |
13814 | { $as_echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5 | |
13815 | $as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;} | |
13816 | { $as_echo "$as_me:$LINENO: WARNING: expect not found - will not be able to change passwds" >&5 | |
13817 | $as_echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;} | |
13818 | { $as_echo "$as_me:$LINENO: WARNING: in webmail" >&5 | |
13819 | $as_echo "$as_me: WARNING: in webmail" >&2;} | |
13820 | { $as_echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5 | |
13821 | $as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;} | |
13822 | sleep 5 | |
13823 | else | |
13824 | ||
13825 | cat >>confdefs.h <<_ACEOF | |
13826 | #define HAVE_EXPECT 1 | |
13827 | _ACEOF | |
13828 | ||
13829 | fi | |
13830 | ||
13831 | for ac_prog in passwd | |
13832 | do | |
13833 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13834 | set dummy $ac_prog; ac_word=$2 | |
13835 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13836 | $as_echo_n "checking for $ac_word... " >&6; } | |
13837 | if test "${ac_cv_path_PASSWD+set}" = set; then | |
13838 | $as_echo_n "(cached) " >&6 | |
13839 | else | |
13840 | case $PASSWD in | |
13841 | [\\/]* | ?:[\\/]*) | |
13842 | ac_cv_path_PASSWD="$PASSWD" # Let the user override the test with a path. | |
13843 | ;; | |
13844 | *) | |
13845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13846 | for as_dir in $LPATH | |
13847 | do | |
13848 | IFS=$as_save_IFS | |
13849 | test -z "$as_dir" && as_dir=. | |
13850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13851 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13852 | ac_cv_path_PASSWD="$as_dir/$ac_word$ac_exec_ext" | |
13853 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13854 | break 2 | |
d9898ee8 | 13855 | fi |
8d138742 CE |
13856 | done |
13857 | done | |
13858 | IFS=$as_save_IFS | |
13859 | ||
d9898ee8 | 13860 | ;; |
13861 | esac | |
8d138742 CE |
13862 | fi |
13863 | PASSWD=$ac_cv_path_PASSWD | |
13864 | if test -n "$PASSWD"; then | |
13865 | { $as_echo "$as_me:$LINENO: result: $PASSWD" >&5 | |
13866 | $as_echo "$PASSWD" >&6; } | |
13867 | else | |
13868 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13869 | $as_echo "no" >&6; } | |
13870 | fi | |
d9898ee8 | 13871 | |
ac40fd9e | 13872 | |
8d138742 CE |
13873 | test -n "$PASSWD" && break |
13874 | done | |
13875 | test -n "$PASSWD" || PASSWD="passwd" | |
d9898ee8 | 13876 | |
d9898ee8 | 13877 | |
d9898ee8 | 13878 | |
8d138742 CE |
13879 | if test "$GCC" = "yes" |
13880 | then | |
13881 | CFLAGS="$CFLAGS -Wall" | |
13882 | fi | |
d9898ee8 | 13883 | |
8d138742 | 13884 | CFLAGS="$CFLAGS -I.. -I${srcdir}/.." |
d9898ee8 | 13885 | |
8d138742 CE |
13886 | { $as_echo "$as_me:$LINENO: checking whether -lm is needed for floor" >&5 |
13887 | $as_echo_n "checking whether -lm is needed for floor... " >&6; } | |
13888 | cat >conftest.$ac_ext <<_ACEOF | |
13889 | /* confdefs.h. */ | |
13890 | _ACEOF | |
13891 | cat confdefs.h >>conftest.$ac_ext | |
13892 | cat >>conftest.$ac_ext <<_ACEOF | |
13893 | /* end confdefs.h. */ | |
d9898ee8 | 13894 | |
8d138742 CE |
13895 | /* Override any GCC internal prototype to avoid an error. |
13896 | Use char because int might match the return type of a GCC | |
13897 | builtin and then its argument prototype would still apply. */ | |
13898 | #ifdef __cplusplus | |
13899 | extern "C" | |
13900 | #endif | |
13901 | char floor (); | |
13902 | int | |
13903 | main () | |
13904 | { | |
13905 | return floor (); | |
13906 | ; | |
13907 | return 0; | |
13908 | } | |
13909 | _ACEOF | |
13910 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13911 | if { (ac_try="$ac_link" | |
13912 | case "(($ac_try" in | |
13913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13914 | *) ac_try_echo=$ac_try;; | |
13915 | esac | |
13916 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13917 | $as_echo "$ac_try_echo") >&5 | |
13918 | (eval "$ac_link") 2>conftest.er1 | |
13919 | ac_status=$? | |
13920 | grep -v '^ *+' conftest.er1 >conftest.err | |
13921 | rm -f conftest.er1 | |
13922 | cat conftest.err >&5 | |
13923 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13924 | (exit $ac_status); } && { | |
13925 | test -z "$ac_c_werror_flag" || | |
13926 | test ! -s conftest.err | |
13927 | } && test -s conftest$ac_exeext && { | |
13928 | test "$cross_compiling" = yes || | |
13929 | $as_test_x conftest$ac_exeext | |
13930 | }; then | |
13931 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13932 | $as_echo "no" >&6; } | |
13933 | else | |
13934 | $as_echo "$as_me: failed program was:" >&5 | |
13935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 13936 | |
8d138742 CE |
13937 | LIBM="-lm" |
13938 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13939 | $as_echo "yes" >&6; } | |
13940 | fi | |
d9898ee8 | 13941 | |
8d138742 CE |
13942 | rm -rf conftest.dSYM |
13943 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13944 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13945 | |
d9898ee8 | 13946 | |
8d138742 CE |
13947 | # Check whether --with-pkgconfdir was given. |
13948 | if test "${with_pkgconfdir+set}" = set; then | |
13949 | withval=$with_pkgconfdir; pkgconfdir="$withval" | |
13950 | else | |
13951 | pkgconfdir="$sysconfdir/authlib" | |
13952 | fi | |
d9898ee8 | 13953 | |
d9898ee8 | 13954 | |
8d138742 CE |
13955 | saveLIBS="$LIBS" |
13956 | NETLIBS="" | |
13957 | USENSL=no | |
ac40fd9e | 13958 | |
8d138742 CE |
13959 | { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
13960 | $as_echo_n "checking for socket in -lsocket... " >&6; } | |
13961 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
13962 | $as_echo_n "(cached) " >&6 | |
13963 | else | |
13964 | ac_check_lib_save_LIBS=$LIBS | |
13965 | LIBS="-lsocket $LIBS" | |
13966 | cat >conftest.$ac_ext <<_ACEOF | |
13967 | /* confdefs.h. */ | |
13968 | _ACEOF | |
13969 | cat confdefs.h >>conftest.$ac_ext | |
13970 | cat >>conftest.$ac_ext <<_ACEOF | |
13971 | /* end confdefs.h. */ | |
d9898ee8 | 13972 | |
8d138742 CE |
13973 | /* Override any GCC internal prototype to avoid an error. |
13974 | Use char because int might match the return type of a GCC | |
13975 | builtin and then its argument prototype would still apply. */ | |
13976 | #ifdef __cplusplus | |
13977 | extern "C" | |
13978 | #endif | |
13979 | char socket (); | |
13980 | int | |
13981 | main () | |
13982 | { | |
13983 | return socket (); | |
13984 | ; | |
13985 | return 0; | |
13986 | } | |
13987 | _ACEOF | |
13988 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13989 | if { (ac_try="$ac_link" | |
13990 | case "(($ac_try" in | |
13991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13992 | *) ac_try_echo=$ac_try;; | |
13993 | esac | |
13994 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13995 | $as_echo "$ac_try_echo") >&5 | |
13996 | (eval "$ac_link") 2>conftest.er1 | |
13997 | ac_status=$? | |
13998 | grep -v '^ *+' conftest.er1 >conftest.err | |
13999 | rm -f conftest.er1 | |
14000 | cat conftest.err >&5 | |
14001 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14002 | (exit $ac_status); } && { | |
14003 | test -z "$ac_c_werror_flag" || | |
14004 | test ! -s conftest.err | |
14005 | } && test -s conftest$ac_exeext && { | |
14006 | test "$cross_compiling" = yes || | |
14007 | $as_test_x conftest$ac_exeext | |
14008 | }; then | |
14009 | ac_cv_lib_socket_socket=yes | |
14010 | else | |
14011 | $as_echo "$as_me: failed program was:" >&5 | |
14012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 14013 | |
8d138742 CE |
14014 | ac_cv_lib_socket_socket=no |
14015 | fi | |
dd184caf | 14016 | |
8d138742 | 14017 | rm -rf conftest.dSYM |
dd184caf | 14018 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 14019 | conftest$ac_exeext conftest.$ac_ext |
14020 | LIBS=$ac_check_lib_save_LIBS | |
14021 | fi | |
8d138742 CE |
14022 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
14023 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | |
14024 | if test "x$ac_cv_lib_socket_socket" = x""yes; then | |
d9898ee8 | 14025 | result=yes |
14026 | else | |
14027 | result=no | |
14028 | fi | |
14029 | ||
14030 | if test $result = yes; then | |
14031 | NETLIBS="-lsocket" | |
14032 | else | |
8d138742 CE |
14033 | { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
14034 | $as_echo_n "checking for socket in -lsocket... " >&6; } | |
d9898ee8 | 14035 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
8d138742 | 14036 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14037 | else |
14038 | ac_check_lib_save_LIBS=$LIBS | |
14039 | LIBS="-lsocket -lnsl $LIBS" | |
14040 | cat >conftest.$ac_ext <<_ACEOF | |
14041 | /* confdefs.h. */ | |
14042 | _ACEOF | |
14043 | cat confdefs.h >>conftest.$ac_ext | |
14044 | cat >>conftest.$ac_ext <<_ACEOF | |
14045 | /* end confdefs.h. */ | |
14046 | ||
dd184caf | 14047 | /* Override any GCC internal prototype to avoid an error. |
14048 | Use char because int might match the return type of a GCC | |
14049 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14050 | #ifdef __cplusplus |
14051 | extern "C" | |
14052 | #endif | |
d9898ee8 | 14053 | char socket (); |
14054 | int | |
14055 | main () | |
14056 | { | |
dd184caf | 14057 | return socket (); |
d9898ee8 | 14058 | ; |
14059 | return 0; | |
14060 | } | |
14061 | _ACEOF | |
14062 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 14063 | if { (ac_try="$ac_link" |
14064 | case "(($ac_try" in | |
14065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14066 | *) ac_try_echo=$ac_try;; | |
14067 | esac | |
8d138742 CE |
14068 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14069 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 14070 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 14071 | ac_status=$? |
14072 | grep -v '^ *+' conftest.er1 >conftest.err | |
14073 | rm -f conftest.er1 | |
14074 | cat conftest.err >&5 | |
8d138742 | 14075 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 14076 | (exit $ac_status); } && { |
14077 | test -z "$ac_c_werror_flag" || | |
14078 | test ! -s conftest.err | |
8d138742 CE |
14079 | } && test -s conftest$ac_exeext && { |
14080 | test "$cross_compiling" = yes || | |
14081 | $as_test_x conftest$ac_exeext | |
14082 | }; then | |
d9898ee8 | 14083 | ac_cv_lib_socket_socket=yes |
14084 | else | |
8d138742 | 14085 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 14086 | sed 's/^/| /' conftest.$ac_ext >&5 |
14087 | ||
dd184caf | 14088 | ac_cv_lib_socket_socket=no |
d9898ee8 | 14089 | fi |
dd184caf | 14090 | |
8d138742 | 14091 | rm -rf conftest.dSYM |
dd184caf | 14092 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 14093 | conftest$ac_exeext conftest.$ac_ext |
14094 | LIBS=$ac_check_lib_save_LIBS | |
14095 | fi | |
8d138742 CE |
14096 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
14097 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | |
14098 | if test "x$ac_cv_lib_socket_socket" = x""yes; then | |
d9898ee8 | 14099 | result=yes |
14100 | else | |
14101 | result=no | |
14102 | fi | |
14103 | ||
14104 | if test $result = yes; then | |
14105 | NETLIBS = "-lsocket -lnsl" | |
14106 | USENSL=yes | |
14107 | else | |
8d138742 CE |
14108 | { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
14109 | $as_echo_n "checking for connect in -lsocket... " >&6; } | |
d9898ee8 | 14110 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
8d138742 | 14111 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14112 | else |
14113 | ac_check_lib_save_LIBS=$LIBS | |
14114 | LIBS="-lsocket $LIBS" | |
14115 | cat >conftest.$ac_ext <<_ACEOF | |
14116 | /* confdefs.h. */ | |
14117 | _ACEOF | |
14118 | cat confdefs.h >>conftest.$ac_ext | |
14119 | cat >>conftest.$ac_ext <<_ACEOF | |
14120 | /* end confdefs.h. */ | |
14121 | ||
dd184caf | 14122 | /* Override any GCC internal prototype to avoid an error. |
14123 | Use char because int might match the return type of a GCC | |
14124 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14125 | #ifdef __cplusplus |
14126 | extern "C" | |
14127 | #endif | |
d9898ee8 | 14128 | char connect (); |
14129 | int | |
14130 | main () | |
14131 | { | |
dd184caf | 14132 | return connect (); |
d9898ee8 | 14133 | ; |
14134 | return 0; | |
14135 | } | |
14136 | _ACEOF | |
14137 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 14138 | if { (ac_try="$ac_link" |
14139 | case "(($ac_try" in | |
14140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14141 | *) ac_try_echo=$ac_try;; | |
14142 | esac | |
8d138742 CE |
14143 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14144 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 14145 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 14146 | ac_status=$? |
14147 | grep -v '^ *+' conftest.er1 >conftest.err | |
14148 | rm -f conftest.er1 | |
14149 | cat conftest.err >&5 | |
8d138742 | 14150 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 14151 | (exit $ac_status); } && { |
14152 | test -z "$ac_c_werror_flag" || | |
14153 | test ! -s conftest.err | |
8d138742 CE |
14154 | } && test -s conftest$ac_exeext && { |
14155 | test "$cross_compiling" = yes || | |
14156 | $as_test_x conftest$ac_exeext | |
14157 | }; then | |
d9898ee8 | 14158 | ac_cv_lib_socket_connect=yes |
14159 | else | |
8d138742 | 14160 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 14161 | sed 's/^/| /' conftest.$ac_ext >&5 |
14162 | ||
dd184caf | 14163 | ac_cv_lib_socket_connect=no |
d9898ee8 | 14164 | fi |
dd184caf | 14165 | |
8d138742 | 14166 | rm -rf conftest.dSYM |
dd184caf | 14167 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 14168 | conftest$ac_exeext conftest.$ac_ext |
14169 | LIBS=$ac_check_lib_save_LIBS | |
14170 | fi | |
8d138742 CE |
14171 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
14172 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | |
14173 | if test "x$ac_cv_lib_socket_connect" = x""yes; then | |
d9898ee8 | 14174 | result=yes |
14175 | else | |
14176 | result=no | |
14177 | fi | |
14178 | ||
14179 | if test $result = yes; then | |
14180 | NETLIBS="-lsocket" | |
14181 | else | |
8d138742 CE |
14182 | { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
14183 | $as_echo_n "checking for connect in -lsocket... " >&6; } | |
d9898ee8 | 14184 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
8d138742 | 14185 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14186 | else |
14187 | ac_check_lib_save_LIBS=$LIBS | |
14188 | LIBS="-lsocket -lnsl $LIBS" | |
14189 | cat >conftest.$ac_ext <<_ACEOF | |
14190 | /* confdefs.h. */ | |
14191 | _ACEOF | |
14192 | cat confdefs.h >>conftest.$ac_ext | |
14193 | cat >>conftest.$ac_ext <<_ACEOF | |
14194 | /* end confdefs.h. */ | |
14195 | ||
dd184caf | 14196 | /* Override any GCC internal prototype to avoid an error. |
14197 | Use char because int might match the return type of a GCC | |
14198 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14199 | #ifdef __cplusplus |
14200 | extern "C" | |
14201 | #endif | |
d9898ee8 | 14202 | char connect (); |
14203 | int | |
14204 | main () | |
14205 | { | |
dd184caf | 14206 | return connect (); |
d9898ee8 | 14207 | ; |
14208 | return 0; | |
14209 | } | |
14210 | _ACEOF | |
14211 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 14212 | if { (ac_try="$ac_link" |
14213 | case "(($ac_try" in | |
14214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14215 | *) ac_try_echo=$ac_try;; | |
14216 | esac | |
8d138742 CE |
14217 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14218 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 14219 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 14220 | ac_status=$? |
14221 | grep -v '^ *+' conftest.er1 >conftest.err | |
14222 | rm -f conftest.er1 | |
14223 | cat conftest.err >&5 | |
8d138742 | 14224 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 14225 | (exit $ac_status); } && { |
14226 | test -z "$ac_c_werror_flag" || | |
14227 | test ! -s conftest.err | |
8d138742 CE |
14228 | } && test -s conftest$ac_exeext && { |
14229 | test "$cross_compiling" = yes || | |
14230 | $as_test_x conftest$ac_exeext | |
14231 | }; then | |
d9898ee8 | 14232 | ac_cv_lib_socket_connect=yes |
14233 | else | |
8d138742 | 14234 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 14235 | sed 's/^/| /' conftest.$ac_ext >&5 |
14236 | ||
dd184caf | 14237 | ac_cv_lib_socket_connect=no |
d9898ee8 | 14238 | fi |
dd184caf | 14239 | |
8d138742 | 14240 | rm -rf conftest.dSYM |
dd184caf | 14241 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 14242 | conftest$ac_exeext conftest.$ac_ext |
14243 | LIBS=$ac_check_lib_save_LIBS | |
14244 | fi | |
8d138742 CE |
14245 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
14246 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | |
14247 | if test "x$ac_cv_lib_socket_connect" = x""yes; then | |
d9898ee8 | 14248 | result=yes |
14249 | else | |
14250 | result=no | |
14251 | fi | |
14252 | ||
14253 | if test $result = yes; then | |
14254 | NETLIBS="-lsocket -lnsl" | |
14255 | USENSL=yes | |
14256 | fi | |
14257 | fi | |
14258 | fi | |
14259 | fi | |
14260 | ||
14261 | if test $USENSL != yes; then | |
14262 | LIBS="$LIBS $NETLIBS" | |
14263 | cat >conftest.$ac_ext <<_ACEOF | |
14264 | /* confdefs.h. */ | |
14265 | _ACEOF | |
14266 | cat confdefs.h >>conftest.$ac_ext | |
14267 | cat >>conftest.$ac_ext <<_ACEOF | |
14268 | /* end confdefs.h. */ | |
14269 | ||
dd184caf | 14270 | /* Override any GCC internal prototype to avoid an error. |
14271 | Use char because int might match the return type of a GCC | |
14272 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14273 | #ifdef __cplusplus |
14274 | extern "C" | |
14275 | #endif | |
d9898ee8 | 14276 | char inet_addr (); |
14277 | int | |
14278 | main () | |
14279 | { | |
dd184caf | 14280 | return inet_addr (); |
d9898ee8 | 14281 | ; |
14282 | return 0; | |
14283 | } | |
14284 | _ACEOF | |
14285 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 14286 | if { (ac_try="$ac_link" |
14287 | case "(($ac_try" in | |
14288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14289 | *) ac_try_echo=$ac_try;; | |
14290 | esac | |
8d138742 CE |
14291 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14292 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 14293 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 14294 | ac_status=$? |
14295 | grep -v '^ *+' conftest.er1 >conftest.err | |
14296 | rm -f conftest.er1 | |
14297 | cat conftest.err >&5 | |
8d138742 | 14298 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 14299 | (exit $ac_status); } && { |
14300 | test -z "$ac_c_werror_flag" || | |
14301 | test ! -s conftest.err | |
8d138742 CE |
14302 | } && test -s conftest$ac_exeext && { |
14303 | test "$cross_compiling" = yes || | |
14304 | $as_test_x conftest$ac_exeext | |
14305 | }; then | |
d9898ee8 | 14306 | : |
14307 | else | |
8d138742 | 14308 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 14309 | sed 's/^/| /' conftest.$ac_ext >&5 |
14310 | ||
14311 | ||
8d138742 CE |
14312 | { $as_echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 |
14313 | $as_echo_n "checking for inet_addr in -lnsl... " >&6; } | |
d9898ee8 | 14314 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then |
8d138742 | 14315 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14316 | else |
14317 | ac_check_lib_save_LIBS=$LIBS | |
14318 | LIBS="-lnsl $LIBS" | |
14319 | cat >conftest.$ac_ext <<_ACEOF | |
14320 | /* confdefs.h. */ | |
14321 | _ACEOF | |
14322 | cat confdefs.h >>conftest.$ac_ext | |
14323 | cat >>conftest.$ac_ext <<_ACEOF | |
14324 | /* end confdefs.h. */ | |
14325 | ||
dd184caf | 14326 | /* Override any GCC internal prototype to avoid an error. |
14327 | Use char because int might match the return type of a GCC | |
14328 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14329 | #ifdef __cplusplus |
14330 | extern "C" | |
14331 | #endif | |
d9898ee8 | 14332 | char inet_addr (); |
14333 | int | |
14334 | main () | |
14335 | { | |
dd184caf | 14336 | return inet_addr (); |
d9898ee8 | 14337 | ; |
14338 | return 0; | |
14339 | } | |
14340 | _ACEOF | |
14341 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 14342 | if { (ac_try="$ac_link" |
14343 | case "(($ac_try" in | |
14344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14345 | *) ac_try_echo=$ac_try;; | |
14346 | esac | |
8d138742 CE |
14347 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14348 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 14349 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 14350 | ac_status=$? |
14351 | grep -v '^ *+' conftest.er1 >conftest.err | |
14352 | rm -f conftest.er1 | |
14353 | cat conftest.err >&5 | |
8d138742 | 14354 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 14355 | (exit $ac_status); } && { |
14356 | test -z "$ac_c_werror_flag" || | |
14357 | test ! -s conftest.err | |
8d138742 CE |
14358 | } && test -s conftest$ac_exeext && { |
14359 | test "$cross_compiling" = yes || | |
14360 | $as_test_x conftest$ac_exeext | |
14361 | }; then | |
d9898ee8 | 14362 | ac_cv_lib_nsl_inet_addr=yes |
14363 | else | |
8d138742 | 14364 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 14365 | sed 's/^/| /' conftest.$ac_ext >&5 |
14366 | ||
dd184caf | 14367 | ac_cv_lib_nsl_inet_addr=no |
d9898ee8 | 14368 | fi |
dd184caf | 14369 | |
8d138742 | 14370 | rm -rf conftest.dSYM |
dd184caf | 14371 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 14372 | conftest$ac_exeext conftest.$ac_ext |
14373 | LIBS=$ac_check_lib_save_LIBS | |
14374 | fi | |
8d138742 CE |
14375 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 |
14376 | $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; } | |
14377 | if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then | |
d9898ee8 | 14378 | result=yes |
14379 | else | |
14380 | result=no | |
14381 | fi | |
14382 | ||
14383 | if test $result = yes; then | |
14384 | NETLIBS="$NETLIBS -lnsl" | |
14385 | fi | |
14386 | ||
14387 | fi | |
dd184caf | 14388 | |
8d138742 | 14389 | rm -rf conftest.dSYM |
dd184caf | 14390 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 14391 | conftest$ac_exeext conftest.$ac_ext |
14392 | fi | |
14393 | ||
14394 | LIBS="$saveLIBS" | |
14395 | ||
14396 | ||
14397 | ||
14398 | ||
14399 | ||
14400 | ||
14401 | ||
dd184caf | 14402 | # Check whether --with-db was given. |
d9898ee8 | 14403 | if test "${with_db+set}" = set; then |
dd184caf | 14404 | withval=$with_db; db="$withval" |
d9898ee8 | 14405 | else |
14406 | needs_withdb=1 | |
dd184caf | 14407 | fi |
14408 | ||
d9898ee8 | 14409 | |
14410 | case "$db" in | |
14411 | gdbm) | |
14412 | ;; | |
14413 | db) | |
14414 | ;; | |
14415 | "") | |
14416 | ;; | |
14417 | *) | |
8d138742 CE |
14418 | { { $as_echo "$as_me:$LINENO: error: Invalid --with-db option." >&5 |
14419 | $as_echo "$as_me: error: Invalid --with-db option." >&2;} | |
d9898ee8 | 14420 | { (exit 1); exit 1; }; } |
14421 | ;; | |
14422 | esac | |
14423 | ||
14424 | saveLIBS="$LIBS" | |
14425 | ||
14426 | if test "$db" != "db" | |
14427 | then | |
8d138742 CE |
14428 | { $as_echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5 |
14429 | $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } | |
d9898ee8 | 14430 | if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then |
8d138742 | 14431 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14432 | else |
14433 | ac_check_lib_save_LIBS=$LIBS | |
14434 | LIBS="-lgdbm $LIBS" | |
14435 | cat >conftest.$ac_ext <<_ACEOF | |
14436 | /* confdefs.h. */ | |
14437 | _ACEOF | |
14438 | cat confdefs.h >>conftest.$ac_ext | |
14439 | cat >>conftest.$ac_ext <<_ACEOF | |
14440 | /* end confdefs.h. */ | |
14441 | ||
dd184caf | 14442 | /* Override any GCC internal prototype to avoid an error. |
14443 | Use char because int might match the return type of a GCC | |
14444 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14445 | #ifdef __cplusplus |
14446 | extern "C" | |
14447 | #endif | |
d9898ee8 | 14448 | char gdbm_open (); |
14449 | int | |
14450 | main () | |
14451 | { | |
dd184caf | 14452 | return gdbm_open (); |
d9898ee8 | 14453 | ; |
14454 | return 0; | |
14455 | } | |
14456 | _ACEOF | |
14457 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 14458 | if { (ac_try="$ac_link" |
14459 | case "(($ac_try" in | |
14460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14461 | *) ac_try_echo=$ac_try;; | |
14462 | esac | |
8d138742 CE |
14463 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14464 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 14465 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 14466 | ac_status=$? |
14467 | grep -v '^ *+' conftest.er1 >conftest.err | |
14468 | rm -f conftest.er1 | |
14469 | cat conftest.err >&5 | |
8d138742 | 14470 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 14471 | (exit $ac_status); } && { |
14472 | test -z "$ac_c_werror_flag" || | |
14473 | test ! -s conftest.err | |
8d138742 CE |
14474 | } && test -s conftest$ac_exeext && { |
14475 | test "$cross_compiling" = yes || | |
14476 | $as_test_x conftest$ac_exeext | |
14477 | }; then | |
d9898ee8 | 14478 | ac_cv_lib_gdbm_gdbm_open=yes |
14479 | else | |
8d138742 | 14480 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 14481 | sed 's/^/| /' conftest.$ac_ext >&5 |
14482 | ||
dd184caf | 14483 | ac_cv_lib_gdbm_gdbm_open=no |
d9898ee8 | 14484 | fi |
dd184caf | 14485 | |
8d138742 | 14486 | rm -rf conftest.dSYM |
dd184caf | 14487 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 14488 | conftest$ac_exeext conftest.$ac_ext |
14489 | LIBS=$ac_check_lib_save_LIBS | |
14490 | fi | |
8d138742 CE |
14491 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5 |
14492 | $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } | |
14493 | if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then | |
d9898ee8 | 14494 | LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS" |
14495 | fi | |
14496 | ||
8d138742 CE |
14497 | { $as_echo "$as_me:$LINENO: checking for gdbm_open" >&5 |
14498 | $as_echo_n "checking for gdbm_open... " >&6; } | |
d9898ee8 | 14499 | if test "${ac_cv_func_gdbm_open+set}" = set; then |
8d138742 | 14500 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14501 | else |
14502 | cat >conftest.$ac_ext <<_ACEOF | |
14503 | /* confdefs.h. */ | |
14504 | _ACEOF | |
14505 | cat confdefs.h >>conftest.$ac_ext | |
14506 | cat >>conftest.$ac_ext <<_ACEOF | |
14507 | /* end confdefs.h. */ | |
14508 | /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open. | |
14509 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14510 | #define gdbm_open innocuous_gdbm_open | |
14511 | ||
14512 | /* System header to define __stub macros and hopefully few prototypes, | |
14513 | which can conflict with char gdbm_open (); below. | |
14514 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14515 | <limits.h> exists even on freestanding compilers. */ | |
14516 | ||
14517 | #ifdef __STDC__ | |
14518 | # include <limits.h> | |
14519 | #else | |
14520 | # include <assert.h> | |
14521 | #endif | |
14522 | ||
14523 | #undef gdbm_open | |
14524 | ||
dd184caf | 14525 | /* Override any GCC internal prototype to avoid an error. |
14526 | Use char because int might match the return type of a GCC | |
14527 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14528 | #ifdef __cplusplus |
14529 | extern "C" | |
d9898ee8 | 14530 | #endif |
d9898ee8 | 14531 | char gdbm_open (); |
14532 | /* The GNU C library defines this for functions which it implements | |
14533 | to always fail with ENOSYS. Some functions are actually named | |
14534 | something starting with __ and the normal name is an alias. */ | |
dd184caf | 14535 | #if defined __stub_gdbm_open || defined __stub___gdbm_open |
d9898ee8 | 14536 | choke me |
d9898ee8 | 14537 | #endif |
14538 | ||
14539 | int | |
14540 | main () | |
14541 | { | |
dd184caf | 14542 | return gdbm_open (); |
d9898ee8 | 14543 | ; |
14544 | return 0; | |
14545 | } | |
14546 | _ACEOF | |
14547 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 14548 | if { (ac_try="$ac_link" |
14549 | case "(($ac_try" in | |
14550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14551 | *) ac_try_echo=$ac_try;; | |
14552 | esac | |
8d138742 CE |
14553 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14554 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 14555 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 14556 | ac_status=$? |
14557 | grep -v '^ *+' conftest.er1 >conftest.err | |
14558 | rm -f conftest.er1 | |
14559 | cat conftest.err >&5 | |
8d138742 | 14560 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 14561 | (exit $ac_status); } && { |
14562 | test -z "$ac_c_werror_flag" || | |
14563 | test ! -s conftest.err | |
8d138742 CE |
14564 | } && test -s conftest$ac_exeext && { |
14565 | test "$cross_compiling" = yes || | |
14566 | $as_test_x conftest$ac_exeext | |
14567 | }; then | |
d9898ee8 | 14568 | ac_cv_func_gdbm_open=yes |
14569 | else | |
8d138742 | 14570 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 14571 | sed 's/^/| /' conftest.$ac_ext >&5 |
14572 | ||
dd184caf | 14573 | ac_cv_func_gdbm_open=no |
d9898ee8 | 14574 | fi |
dd184caf | 14575 | |
8d138742 | 14576 | rm -rf conftest.dSYM |
dd184caf | 14577 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 14578 | conftest$ac_exeext conftest.$ac_ext |
14579 | fi | |
8d138742 CE |
14580 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5 |
14581 | $as_echo "$ac_cv_func_gdbm_open" >&6; } | |
14582 | if test "x$ac_cv_func_gdbm_open" = x""yes; then | |
d9898ee8 | 14583 | HAVE_GDBM=y |
14584 | fi | |
14585 | ||
14586 | fi | |
14587 | ||
14588 | LIBS="$saveLIBS" | |
14589 | ||
14590 | if test "$db" != "gdbm" | |
14591 | then | |
8d138742 CE |
14592 | { $as_echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5 |
14593 | $as_echo_n "checking for dbopen in -ldb... " >&6; } | |
d9898ee8 | 14594 | if test "${ac_cv_lib_db_dbopen+set}" = set; then |
8d138742 | 14595 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14596 | else |
14597 | ac_check_lib_save_LIBS=$LIBS | |
14598 | LIBS="-ldb $LIBS" | |
14599 | cat >conftest.$ac_ext <<_ACEOF | |
14600 | /* confdefs.h. */ | |
14601 | _ACEOF | |
14602 | cat confdefs.h >>conftest.$ac_ext | |
14603 | cat >>conftest.$ac_ext <<_ACEOF | |
14604 | /* end confdefs.h. */ | |
14605 | ||
dd184caf | 14606 | /* Override any GCC internal prototype to avoid an error. |
14607 | Use char because int might match the return type of a GCC | |
14608 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14609 | #ifdef __cplusplus |
14610 | extern "C" | |
14611 | #endif | |
d9898ee8 | 14612 | char dbopen (); |
14613 | int | |
14614 | main () | |
14615 | { | |
dd184caf | 14616 | return dbopen (); |
d9898ee8 | 14617 | ; |
14618 | return 0; | |
14619 | } | |
14620 | _ACEOF | |
14621 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 14622 | if { (ac_try="$ac_link" |
14623 | case "(($ac_try" in | |
14624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14625 | *) ac_try_echo=$ac_try;; | |
14626 | esac | |
8d138742 CE |
14627 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14628 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 14629 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 14630 | ac_status=$? |
14631 | grep -v '^ *+' conftest.er1 >conftest.err | |
14632 | rm -f conftest.er1 | |
14633 | cat conftest.err >&5 | |
8d138742 | 14634 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 14635 | (exit $ac_status); } && { |
14636 | test -z "$ac_c_werror_flag" || | |
14637 | test ! -s conftest.err | |
8d138742 CE |
14638 | } && test -s conftest$ac_exeext && { |
14639 | test "$cross_compiling" = yes || | |
14640 | $as_test_x conftest$ac_exeext | |
14641 | }; then | |
d9898ee8 | 14642 | ac_cv_lib_db_dbopen=yes |
14643 | else | |
8d138742 | 14644 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 14645 | sed 's/^/| /' conftest.$ac_ext >&5 |
14646 | ||
dd184caf | 14647 | ac_cv_lib_db_dbopen=no |
d9898ee8 | 14648 | fi |
dd184caf | 14649 | |
8d138742 | 14650 | rm -rf conftest.dSYM |
dd184caf | 14651 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 14652 | conftest$ac_exeext conftest.$ac_ext |
14653 | LIBS=$ac_check_lib_save_LIBS | |
14654 | fi | |
8d138742 CE |
14655 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5 |
14656 | $as_echo "$ac_cv_lib_db_dbopen" >&6; } | |
14657 | if test "x$ac_cv_lib_db_dbopen" = x""yes; then | |
d9898ee8 | 14658 | LIBDB=-ldb ; LIBS="-ldb $LIBS" |
14659 | else | |
8d138742 CE |
14660 | { $as_echo "$as_me:$LINENO: checking for db_open in -ldb" >&5 |
14661 | $as_echo_n "checking for db_open in -ldb... " >&6; } | |
d9898ee8 | 14662 | if test "${ac_cv_lib_db_db_open+set}" = set; then |
8d138742 | 14663 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14664 | else |
14665 | ac_check_lib_save_LIBS=$LIBS | |
14666 | LIBS="-ldb $LIBS" | |
14667 | cat >conftest.$ac_ext <<_ACEOF | |
14668 | /* confdefs.h. */ | |
14669 | _ACEOF | |
14670 | cat confdefs.h >>conftest.$ac_ext | |
14671 | cat >>conftest.$ac_ext <<_ACEOF | |
14672 | /* end confdefs.h. */ | |
14673 | ||
dd184caf | 14674 | /* Override any GCC internal prototype to avoid an error. |
14675 | Use char because int might match the return type of a GCC | |
14676 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14677 | #ifdef __cplusplus |
14678 | extern "C" | |
14679 | #endif | |
d9898ee8 | 14680 | char db_open (); |
14681 | int | |
14682 | main () | |
14683 | { | |
dd184caf | 14684 | return db_open (); |
d9898ee8 | 14685 | ; |
14686 | return 0; | |
14687 | } | |
14688 | _ACEOF | |
14689 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 14690 | if { (ac_try="$ac_link" |
14691 | case "(($ac_try" in | |
14692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14693 | *) ac_try_echo=$ac_try;; | |
14694 | esac | |
8d138742 CE |
14695 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14696 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 14697 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 14698 | ac_status=$? |
14699 | grep -v '^ *+' conftest.er1 >conftest.err | |
14700 | rm -f conftest.er1 | |
14701 | cat conftest.err >&5 | |
8d138742 | 14702 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 14703 | (exit $ac_status); } && { |
14704 | test -z "$ac_c_werror_flag" || | |
14705 | test ! -s conftest.err | |
8d138742 CE |
14706 | } && test -s conftest$ac_exeext && { |
14707 | test "$cross_compiling" = yes || | |
14708 | $as_test_x conftest$ac_exeext | |
14709 | }; then | |
d9898ee8 | 14710 | ac_cv_lib_db_db_open=yes |
14711 | else | |
8d138742 | 14712 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 14713 | sed 's/^/| /' conftest.$ac_ext >&5 |
14714 | ||
dd184caf | 14715 | ac_cv_lib_db_db_open=no |
d9898ee8 | 14716 | fi |
dd184caf | 14717 | |
8d138742 | 14718 | rm -rf conftest.dSYM |
dd184caf | 14719 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 14720 | conftest$ac_exeext conftest.$ac_ext |
14721 | LIBS=$ac_check_lib_save_LIBS | |
14722 | fi | |
8d138742 CE |
14723 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5 |
14724 | $as_echo "$ac_cv_lib_db_db_open" >&6; } | |
14725 | if test "x$ac_cv_lib_db_db_open" = x""yes; then | |
d9898ee8 | 14726 | LIBDB=-ldb ; LIBS="-ldb $LIBS" |
14727 | else | |
8d138742 CE |
14728 | { $as_echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5 |
14729 | $as_echo_n "checking for db_env_create in -ldb... " >&6; } | |
d9898ee8 | 14730 | if test "${ac_cv_lib_db_db_env_create+set}" = set; then |
8d138742 | 14731 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14732 | else |
14733 | ac_check_lib_save_LIBS=$LIBS | |
14734 | LIBS="-ldb $LIBS" | |
14735 | cat >conftest.$ac_ext <<_ACEOF | |
14736 | /* confdefs.h. */ | |
14737 | _ACEOF | |
14738 | cat confdefs.h >>conftest.$ac_ext | |
14739 | cat >>conftest.$ac_ext <<_ACEOF | |
14740 | /* end confdefs.h. */ | |
14741 | ||
dd184caf | 14742 | /* Override any GCC internal prototype to avoid an error. |
14743 | Use char because int might match the return type of a GCC | |
14744 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14745 | #ifdef __cplusplus |
14746 | extern "C" | |
14747 | #endif | |
d9898ee8 | 14748 | char db_env_create (); |
14749 | int | |
14750 | main () | |
14751 | { | |
dd184caf | 14752 | return db_env_create (); |
d9898ee8 | 14753 | ; |
14754 | return 0; | |
14755 | } | |
14756 | _ACEOF | |
14757 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 14758 | if { (ac_try="$ac_link" |
14759 | case "(($ac_try" in | |
14760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14761 | *) ac_try_echo=$ac_try;; | |
14762 | esac | |
8d138742 CE |
14763 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14764 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 14765 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 14766 | ac_status=$? |
14767 | grep -v '^ *+' conftest.er1 >conftest.err | |
14768 | rm -f conftest.er1 | |
14769 | cat conftest.err >&5 | |
8d138742 | 14770 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 14771 | (exit $ac_status); } && { |
14772 | test -z "$ac_c_werror_flag" || | |
14773 | test ! -s conftest.err | |
8d138742 CE |
14774 | } && test -s conftest$ac_exeext && { |
14775 | test "$cross_compiling" = yes || | |
14776 | $as_test_x conftest$ac_exeext | |
14777 | }; then | |
d9898ee8 | 14778 | ac_cv_lib_db_db_env_create=yes |
14779 | else | |
8d138742 | 14780 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 14781 | sed 's/^/| /' conftest.$ac_ext >&5 |
14782 | ||
dd184caf | 14783 | ac_cv_lib_db_db_env_create=no |
d9898ee8 | 14784 | fi |
dd184caf | 14785 | |
8d138742 | 14786 | rm -rf conftest.dSYM |
dd184caf | 14787 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 14788 | conftest$ac_exeext conftest.$ac_ext |
14789 | LIBS=$ac_check_lib_save_LIBS | |
14790 | fi | |
8d138742 CE |
14791 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5 |
14792 | $as_echo "$ac_cv_lib_db_db_env_create" >&6; } | |
14793 | if test "x$ac_cv_lib_db_db_env_create" = x""yes; then | |
d9898ee8 | 14794 | LIBDB=-ldb; LIBS="-ldb $LIBS" |
14795 | fi | |
14796 | ||
14797 | ||
14798 | fi | |
14799 | ||
14800 | fi | |
14801 | ||
14802 | ||
8d138742 CE |
14803 | { $as_echo "$as_me:$LINENO: checking for dbopen" >&5 |
14804 | $as_echo_n "checking for dbopen... " >&6; } | |
d9898ee8 | 14805 | if test "${ac_cv_func_dbopen+set}" = set; then |
8d138742 | 14806 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14807 | else |
14808 | cat >conftest.$ac_ext <<_ACEOF | |
14809 | /* confdefs.h. */ | |
14810 | _ACEOF | |
14811 | cat confdefs.h >>conftest.$ac_ext | |
14812 | cat >>conftest.$ac_ext <<_ACEOF | |
14813 | /* end confdefs.h. */ | |
14814 | /* Define dbopen to an innocuous variant, in case <limits.h> declares dbopen. | |
14815 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14816 | #define dbopen innocuous_dbopen | |
14817 | ||
14818 | /* System header to define __stub macros and hopefully few prototypes, | |
14819 | which can conflict with char dbopen (); below. | |
14820 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14821 | <limits.h> exists even on freestanding compilers. */ | |
14822 | ||
14823 | #ifdef __STDC__ | |
14824 | # include <limits.h> | |
14825 | #else | |
14826 | # include <assert.h> | |
14827 | #endif | |
14828 | ||
14829 | #undef dbopen | |
14830 | ||
dd184caf | 14831 | /* Override any GCC internal prototype to avoid an error. |
14832 | Use char because int might match the return type of a GCC | |
14833 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14834 | #ifdef __cplusplus |
14835 | extern "C" | |
d9898ee8 | 14836 | #endif |
d9898ee8 | 14837 | char dbopen (); |
14838 | /* The GNU C library defines this for functions which it implements | |
14839 | to always fail with ENOSYS. Some functions are actually named | |
14840 | something starting with __ and the normal name is an alias. */ | |
dd184caf | 14841 | #if defined __stub_dbopen || defined __stub___dbopen |
d9898ee8 | 14842 | choke me |
d9898ee8 | 14843 | #endif |
14844 | ||
14845 | int | |
14846 | main () | |
14847 | { | |
dd184caf | 14848 | return dbopen (); |
d9898ee8 | 14849 | ; |
14850 | return 0; | |
14851 | } | |
14852 | _ACEOF | |
14853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 14854 | if { (ac_try="$ac_link" |
14855 | case "(($ac_try" in | |
14856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14857 | *) ac_try_echo=$ac_try;; | |
14858 | esac | |
8d138742 CE |
14859 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14860 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 14861 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 14862 | ac_status=$? |
14863 | grep -v '^ *+' conftest.er1 >conftest.err | |
14864 | rm -f conftest.er1 | |
14865 | cat conftest.err >&5 | |
8d138742 | 14866 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 14867 | (exit $ac_status); } && { |
14868 | test -z "$ac_c_werror_flag" || | |
14869 | test ! -s conftest.err | |
8d138742 CE |
14870 | } && test -s conftest$ac_exeext && { |
14871 | test "$cross_compiling" = yes || | |
14872 | $as_test_x conftest$ac_exeext | |
14873 | }; then | |
d9898ee8 | 14874 | ac_cv_func_dbopen=yes |
14875 | else | |
8d138742 | 14876 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 14877 | sed 's/^/| /' conftest.$ac_ext >&5 |
14878 | ||
dd184caf | 14879 | ac_cv_func_dbopen=no |
d9898ee8 | 14880 | fi |
dd184caf | 14881 | |
8d138742 | 14882 | rm -rf conftest.dSYM |
dd184caf | 14883 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 14884 | conftest$ac_exeext conftest.$ac_ext |
14885 | fi | |
8d138742 CE |
14886 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dbopen" >&5 |
14887 | $as_echo "$ac_cv_func_dbopen" >&6; } | |
14888 | if test "x$ac_cv_func_dbopen" = x""yes; then | |
d9898ee8 | 14889 | HAVE_BDB=1 |
14890 | fi | |
14891 | ||
8d138742 CE |
14892 | { $as_echo "$as_me:$LINENO: checking for db_open" >&5 |
14893 | $as_echo_n "checking for db_open... " >&6; } | |
d9898ee8 | 14894 | if test "${ac_cv_func_db_open+set}" = set; then |
8d138742 | 14895 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14896 | else |
14897 | cat >conftest.$ac_ext <<_ACEOF | |
14898 | /* confdefs.h. */ | |
14899 | _ACEOF | |
14900 | cat confdefs.h >>conftest.$ac_ext | |
14901 | cat >>conftest.$ac_ext <<_ACEOF | |
14902 | /* end confdefs.h. */ | |
14903 | /* Define db_open to an innocuous variant, in case <limits.h> declares db_open. | |
14904 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14905 | #define db_open innocuous_db_open | |
14906 | ||
14907 | /* System header to define __stub macros and hopefully few prototypes, | |
14908 | which can conflict with char db_open (); below. | |
14909 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14910 | <limits.h> exists even on freestanding compilers. */ | |
14911 | ||
14912 | #ifdef __STDC__ | |
14913 | # include <limits.h> | |
14914 | #else | |
14915 | # include <assert.h> | |
14916 | #endif | |
14917 | ||
14918 | #undef db_open | |
14919 | ||
dd184caf | 14920 | /* Override any GCC internal prototype to avoid an error. |
14921 | Use char because int might match the return type of a GCC | |
14922 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14923 | #ifdef __cplusplus |
14924 | extern "C" | |
d9898ee8 | 14925 | #endif |
d9898ee8 | 14926 | char db_open (); |
14927 | /* The GNU C library defines this for functions which it implements | |
14928 | to always fail with ENOSYS. Some functions are actually named | |
14929 | something starting with __ and the normal name is an alias. */ | |
dd184caf | 14930 | #if defined __stub_db_open || defined __stub___db_open |
d9898ee8 | 14931 | choke me |
d9898ee8 | 14932 | #endif |
14933 | ||
14934 | int | |
14935 | main () | |
14936 | { | |
dd184caf | 14937 | return db_open (); |
d9898ee8 | 14938 | ; |
14939 | return 0; | |
14940 | } | |
14941 | _ACEOF | |
14942 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 14943 | if { (ac_try="$ac_link" |
14944 | case "(($ac_try" in | |
14945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14946 | *) ac_try_echo=$ac_try;; | |
14947 | esac | |
8d138742 CE |
14948 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14949 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 14950 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 14951 | ac_status=$? |
14952 | grep -v '^ *+' conftest.er1 >conftest.err | |
14953 | rm -f conftest.er1 | |
14954 | cat conftest.err >&5 | |
8d138742 | 14955 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 14956 | (exit $ac_status); } && { |
14957 | test -z "$ac_c_werror_flag" || | |
14958 | test ! -s conftest.err | |
8d138742 CE |
14959 | } && test -s conftest$ac_exeext && { |
14960 | test "$cross_compiling" = yes || | |
14961 | $as_test_x conftest$ac_exeext | |
14962 | }; then | |
d9898ee8 | 14963 | ac_cv_func_db_open=yes |
14964 | else | |
8d138742 | 14965 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 14966 | sed 's/^/| /' conftest.$ac_ext >&5 |
14967 | ||
dd184caf | 14968 | ac_cv_func_db_open=no |
d9898ee8 | 14969 | fi |
dd184caf | 14970 | |
8d138742 | 14971 | rm -rf conftest.dSYM |
dd184caf | 14972 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 14973 | conftest$ac_exeext conftest.$ac_ext |
14974 | fi | |
8d138742 CE |
14975 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_db_open" >&5 |
14976 | $as_echo "$ac_cv_func_db_open" >&6; } | |
14977 | if test "x$ac_cv_func_db_open" = x""yes; then | |
d9898ee8 | 14978 | HAVE_BDB=1 |
14979 | fi | |
14980 | ||
8d138742 CE |
14981 | { $as_echo "$as_me:$LINENO: checking for db_env_create" >&5 |
14982 | $as_echo_n "checking for db_env_create... " >&6; } | |
d9898ee8 | 14983 | if test "${ac_cv_func_db_env_create+set}" = set; then |
8d138742 | 14984 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14985 | else |
14986 | cat >conftest.$ac_ext <<_ACEOF | |
14987 | /* confdefs.h. */ | |
14988 | _ACEOF | |
14989 | cat confdefs.h >>conftest.$ac_ext | |
14990 | cat >>conftest.$ac_ext <<_ACEOF | |
14991 | /* end confdefs.h. */ | |
14992 | /* Define db_env_create to an innocuous variant, in case <limits.h> declares db_env_create. | |
14993 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14994 | #define db_env_create innocuous_db_env_create | |
14995 | ||
14996 | /* System header to define __stub macros and hopefully few prototypes, | |
14997 | which can conflict with char db_env_create (); below. | |
14998 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14999 | <limits.h> exists even on freestanding compilers. */ | |
15000 | ||
15001 | #ifdef __STDC__ | |
15002 | # include <limits.h> | |
15003 | #else | |
15004 | # include <assert.h> | |
15005 | #endif | |
15006 | ||
15007 | #undef db_env_create | |
15008 | ||
dd184caf | 15009 | /* Override any GCC internal prototype to avoid an error. |
15010 | Use char because int might match the return type of a GCC | |
15011 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 15012 | #ifdef __cplusplus |
15013 | extern "C" | |
d9898ee8 | 15014 | #endif |
d9898ee8 | 15015 | char db_env_create (); |
15016 | /* The GNU C library defines this for functions which it implements | |
15017 | to always fail with ENOSYS. Some functions are actually named | |
15018 | something starting with __ and the normal name is an alias. */ | |
dd184caf | 15019 | #if defined __stub_db_env_create || defined __stub___db_env_create |
d9898ee8 | 15020 | choke me |
d9898ee8 | 15021 | #endif |
15022 | ||
15023 | int | |
15024 | main () | |
15025 | { | |
dd184caf | 15026 | return db_env_create (); |
d9898ee8 | 15027 | ; |
15028 | return 0; | |
15029 | } | |
15030 | _ACEOF | |
15031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 15032 | if { (ac_try="$ac_link" |
15033 | case "(($ac_try" in | |
15034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15035 | *) ac_try_echo=$ac_try;; | |
15036 | esac | |
8d138742 CE |
15037 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15038 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 15039 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 15040 | ac_status=$? |
15041 | grep -v '^ *+' conftest.er1 >conftest.err | |
15042 | rm -f conftest.er1 | |
15043 | cat conftest.err >&5 | |
8d138742 | 15044 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 15045 | (exit $ac_status); } && { |
15046 | test -z "$ac_c_werror_flag" || | |
15047 | test ! -s conftest.err | |
8d138742 CE |
15048 | } && test -s conftest$ac_exeext && { |
15049 | test "$cross_compiling" = yes || | |
15050 | $as_test_x conftest$ac_exeext | |
15051 | }; then | |
d9898ee8 | 15052 | ac_cv_func_db_env_create=yes |
15053 | else | |
8d138742 | 15054 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 15055 | sed 's/^/| /' conftest.$ac_ext >&5 |
15056 | ||
dd184caf | 15057 | ac_cv_func_db_env_create=no |
d9898ee8 | 15058 | fi |
dd184caf | 15059 | |
8d138742 | 15060 | rm -rf conftest.dSYM |
dd184caf | 15061 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 15062 | conftest$ac_exeext conftest.$ac_ext |
15063 | fi | |
8d138742 CE |
15064 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_db_env_create" >&5 |
15065 | $as_echo "$ac_cv_func_db_env_create" >&6; } | |
15066 | if test "x$ac_cv_func_db_env_create" = x""yes; then | |
d9898ee8 | 15067 | HAVE_BDB=1 |
15068 | fi | |
15069 | ||
15070 | fi | |
15071 | ||
15072 | LIBS="$saveLIBS" | |
15073 | ||
15074 | if test "$HAVE_GDBM$HAVE_BDB" = "" | |
15075 | then | |
8d138742 CE |
15076 | { { $as_echo "$as_me:$LINENO: error: Cannot find either the gdbm or the db library." >&5 |
15077 | $as_echo "$as_me: error: Cannot find either the gdbm or the db library." >&2;} | |
d9898ee8 | 15078 | { (exit 1); exit 1; }; } |
15079 | fi | |
15080 | ||
15081 | USE_GDBM=0 | |
15082 | USE_DB=0 | |
15083 | ||
15084 | if test "$HAVE_GDBM" = "y" | |
15085 | then | |
15086 | LIBDB="" | |
15087 | USE_GDBM=1 | |
d9898ee8 | 15088 | if test "$needs_withdb" = 1 |
15089 | then | |
15090 | ac_configure_args="$ac_configure_args --with-db=gdbm" | |
15091 | fi | |
15092 | dblibrary=gdbmobj/libgdbmobj.la | |
15093 | else | |
15094 | LIBGDBM="" | |
15095 | USE_DB=1 | |
d9898ee8 | 15096 | if test "$needs_withdb" = 1 |
15097 | then | |
15098 | ac_configure_args="$ac_configure_args --with-db=db" | |
15099 | fi | |
15100 | dblibrary=bdbobj/libbdbobj.la | |
15101 | fi | |
15102 | ||
15103 | ||
15104 | ||
15105 | ||
15106 | ||
dd184caf | 15107 | # Check whether --with-authuserdb was given. |
d9898ee8 | 15108 | if test "${with_authuserdb+set}" = set; then |
dd184caf | 15109 | withval=$with_authuserdb; doauthuserdb="$withval" |
d9898ee8 | 15110 | else |
15111 | doauthuserdb="no" | |
15112 | if test -d ${srcdir}/userdb | |
15113 | then | |
15114 | doauthuserdb="yes" | |
15115 | fi | |
dd184caf | 15116 | fi |
15117 | ||
d9898ee8 | 15118 | |
15119 | if test "$doauthuserdb" = "no" | |
15120 | then | |
15121 | AUTHUSERDB="" | |
15122 | else | |
15123 | AUTHUSERDB="authuserdb" | |
15124 | LIBAUTHUSERDB="libauthuserdb.la" | |
15125 | ||
15126 | fi | |
15127 | ||
15128 | ||
dd184caf | 15129 | # Check whether --with-makedatprog was given. |
d9898ee8 | 15130 | if test "${with_makedatprog+set}" = set; then |
dd184caf | 15131 | withval=$with_makedatprog; : |
d9898ee8 | 15132 | else |
15133 | ||
15134 | ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog" | |
15135 | ||
dd184caf | 15136 | fi |
15137 | ||
d9898ee8 | 15138 | |
15139 | cat >dbobj.config <<EOF | |
15140 | LIBDB=$LIBDB | |
15141 | LIBGDBM=$LIBGDBM | |
15142 | dblibrary=$dblibrary | |
15143 | EOF | |
15144 | ||
15145 | ||
15146 | ||
15147 | ||
15148 | ||
15149 | ||
15150 | ||
15151 | ||
15152 | ||
15153 | userdb="$pkgconfdir/userdb" | |
15154 | ||
dd184caf | 15155 | # Check whether --with-userdb was given. |
d9898ee8 | 15156 | if test "${with_userdb+set}" = set; then |
dd184caf | 15157 | withval=$with_userdb; userdb="$withval" |
d9898ee8 | 15158 | else |
15159 | ac_configure_args="$ac_configure_args '--with-userdb=$userdb'" | |
dd184caf | 15160 | fi |
15161 | ||
d9898ee8 | 15162 | |
15163 | ||
15164 | cat >>confdefs.h <<_ACEOF | |
15165 | #define USERDB "$userdb" | |
15166 | _ACEOF | |
15167 | ||
15168 | ||
15169 | ||
15170 | ||
15171 | for ac_header in stdio.h | |
15172 | do | |
8d138742 | 15173 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf | 15174 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 CE |
15175 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15176 | $as_echo_n "checking for $ac_header... " >&6; } | |
dd184caf | 15177 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 15178 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 15179 | fi |
8d138742 CE |
15180 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15181 | $as_echo "$as_val"'` | |
15182 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15183 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 15184 | else |
15185 | # Is the header compilable? | |
8d138742 CE |
15186 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15187 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d9898ee8 | 15188 | cat >conftest.$ac_ext <<_ACEOF |
15189 | /* confdefs.h. */ | |
15190 | _ACEOF | |
15191 | cat confdefs.h >>conftest.$ac_ext | |
15192 | cat >>conftest.$ac_ext <<_ACEOF | |
15193 | /* end confdefs.h. */ | |
15194 | $ac_includes_default | |
15195 | #include <$ac_header> | |
15196 | _ACEOF | |
15197 | rm -f conftest.$ac_objext | |
dd184caf | 15198 | if { (ac_try="$ac_compile" |
15199 | case "(($ac_try" in | |
15200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15201 | *) ac_try_echo=$ac_try;; | |
15202 | esac | |
8d138742 CE |
15203 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15204 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 15205 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 15206 | ac_status=$? |
15207 | grep -v '^ *+' conftest.er1 >conftest.err | |
15208 | rm -f conftest.er1 | |
15209 | cat conftest.err >&5 | |
8d138742 | 15210 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 15211 | (exit $ac_status); } && { |
15212 | test -z "$ac_c_werror_flag" || | |
15213 | test ! -s conftest.err | |
15214 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 15215 | ac_header_compiler=yes |
15216 | else | |
8d138742 | 15217 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 15218 | sed 's/^/| /' conftest.$ac_ext >&5 |
15219 | ||
dd184caf | 15220 | ac_header_compiler=no |
d9898ee8 | 15221 | fi |
dd184caf | 15222 | |
15223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8d138742 CE |
15224 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15225 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 15226 | |
15227 | # Is the header present? | |
8d138742 CE |
15228 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15229 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d9898ee8 | 15230 | cat >conftest.$ac_ext <<_ACEOF |
15231 | /* confdefs.h. */ | |
15232 | _ACEOF | |
15233 | cat confdefs.h >>conftest.$ac_ext | |
15234 | cat >>conftest.$ac_ext <<_ACEOF | |
15235 | /* end confdefs.h. */ | |
15236 | #include <$ac_header> | |
15237 | _ACEOF | |
dd184caf | 15238 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15239 | case "(($ac_try" in | |
15240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15241 | *) ac_try_echo=$ac_try;; | |
15242 | esac | |
8d138742 CE |
15243 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15244 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 15245 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 15246 | ac_status=$? |
15247 | grep -v '^ *+' conftest.er1 >conftest.err | |
15248 | rm -f conftest.er1 | |
15249 | cat conftest.err >&5 | |
8d138742 | 15250 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 15251 | (exit $ac_status); } >/dev/null && { |
15252 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15253 | test ! -s conftest.err | |
15254 | }; then | |
d9898ee8 | 15255 | ac_header_preproc=yes |
15256 | else | |
8d138742 | 15257 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 15258 | sed 's/^/| /' conftest.$ac_ext >&5 |
15259 | ||
15260 | ac_header_preproc=no | |
15261 | fi | |
dd184caf | 15262 | |
d9898ee8 | 15263 | rm -f conftest.err conftest.$ac_ext |
8d138742 CE |
15264 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15265 | $as_echo "$ac_header_preproc" >&6; } | |
d9898ee8 | 15266 | |
15267 | # So? What about this header? | |
15268 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15269 | yes:no: ) | |
8d138742 CE |
15270 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15271 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15272 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15273 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d9898ee8 | 15274 | ac_header_preproc=yes |
15275 | ;; | |
15276 | no:yes:* ) | |
8d138742 CE |
15277 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15278 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15279 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15280 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15281 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15282 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15283 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15284 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15285 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15286 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15287 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15288 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
dd184caf | 15289 | ( cat <<\_ASBOX |
8d138742 CE |
15290 | ## -------------------------------------------------- ## |
15291 | ## Report this to courier-users@lists.sourceforge.net ## | |
15292 | ## -------------------------------------------------- ## | |
d9898ee8 | 15293 | _ASBOX |
dd184caf | 15294 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 | 15295 | ;; |
15296 | esac | |
8d138742 CE |
15297 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15298 | $as_echo_n "checking for $ac_header... " >&6; } | |
dd184caf | 15299 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 15300 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 15301 | else |
15302 | eval "$as_ac_Header=\$ac_header_preproc" | |
15303 | fi | |
8d138742 CE |
15304 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15305 | $as_echo "$as_val"'` | |
15306 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15307 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 15308 | |
15309 | fi | |
8d138742 CE |
15310 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15311 | $as_echo "$as_val"'` | |
15312 | if test "x$as_val" = x""yes; then | |
d9898ee8 | 15313 | cat >>confdefs.h <<_ACEOF |
8d138742 | 15314 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d9898ee8 | 15315 | _ACEOF |
15316 | ||
15317 | fi | |
15318 | ||
15319 | done | |
15320 | ||
15321 | ||
15322 | ||
15323 | ||
15324 | ||
15325 | ||
dd184caf | 15326 | # Check whether --with-authpam was given. |
d9898ee8 | 15327 | if test "${with_authpam+set}" = set; then |
dd184caf | 15328 | withval=$with_authpam; doauthpam="$withval" |
15329 | fi | |
15330 | ||
d9898ee8 | 15331 | |
15332 | ||
15333 | ||
15334 | for ac_header in security/pam_appl.h Pam/pam_appl.h | |
15335 | do | |
8d138742 | 15336 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf | 15337 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 CE |
15338 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15339 | $as_echo_n "checking for $ac_header... " >&6; } | |
dd184caf | 15340 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 15341 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 15342 | fi |
8d138742 CE |
15343 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15344 | $as_echo "$as_val"'` | |
15345 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15346 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 15347 | else |
15348 | # Is the header compilable? | |
8d138742 CE |
15349 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15350 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d9898ee8 | 15351 | cat >conftest.$ac_ext <<_ACEOF |
15352 | /* confdefs.h. */ | |
15353 | _ACEOF | |
15354 | cat confdefs.h >>conftest.$ac_ext | |
15355 | cat >>conftest.$ac_ext <<_ACEOF | |
15356 | /* end confdefs.h. */ | |
15357 | $ac_includes_default | |
15358 | #include <$ac_header> | |
15359 | _ACEOF | |
15360 | rm -f conftest.$ac_objext | |
dd184caf | 15361 | if { (ac_try="$ac_compile" |
15362 | case "(($ac_try" in | |
15363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15364 | *) ac_try_echo=$ac_try;; | |
15365 | esac | |
8d138742 CE |
15366 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15367 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 15368 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 15369 | ac_status=$? |
15370 | grep -v '^ *+' conftest.er1 >conftest.err | |
15371 | rm -f conftest.er1 | |
15372 | cat conftest.err >&5 | |
8d138742 | 15373 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 15374 | (exit $ac_status); } && { |
15375 | test -z "$ac_c_werror_flag" || | |
15376 | test ! -s conftest.err | |
15377 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 15378 | ac_header_compiler=yes |
15379 | else | |
8d138742 | 15380 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 15381 | sed 's/^/| /' conftest.$ac_ext >&5 |
15382 | ||
dd184caf | 15383 | ac_header_compiler=no |
d9898ee8 | 15384 | fi |
dd184caf | 15385 | |
15386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8d138742 CE |
15387 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15388 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 15389 | |
15390 | # Is the header present? | |
8d138742 CE |
15391 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15392 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d9898ee8 | 15393 | cat >conftest.$ac_ext <<_ACEOF |
15394 | /* confdefs.h. */ | |
15395 | _ACEOF | |
15396 | cat confdefs.h >>conftest.$ac_ext | |
15397 | cat >>conftest.$ac_ext <<_ACEOF | |
15398 | /* end confdefs.h. */ | |
15399 | #include <$ac_header> | |
15400 | _ACEOF | |
dd184caf | 15401 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15402 | case "(($ac_try" in | |
15403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15404 | *) ac_try_echo=$ac_try;; | |
15405 | esac | |
8d138742 CE |
15406 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15407 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 15408 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 15409 | ac_status=$? |
15410 | grep -v '^ *+' conftest.er1 >conftest.err | |
15411 | rm -f conftest.er1 | |
15412 | cat conftest.err >&5 | |
8d138742 | 15413 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 15414 | (exit $ac_status); } >/dev/null && { |
15415 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15416 | test ! -s conftest.err | |
15417 | }; then | |
d9898ee8 | 15418 | ac_header_preproc=yes |
15419 | else | |
8d138742 | 15420 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 15421 | sed 's/^/| /' conftest.$ac_ext >&5 |
15422 | ||
15423 | ac_header_preproc=no | |
15424 | fi | |
dd184caf | 15425 | |
d9898ee8 | 15426 | rm -f conftest.err conftest.$ac_ext |
8d138742 CE |
15427 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15428 | $as_echo "$ac_header_preproc" >&6; } | |
d9898ee8 | 15429 | |
15430 | # So? What about this header? | |
15431 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15432 | yes:no: ) | |
8d138742 CE |
15433 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15434 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15435 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15436 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d9898ee8 | 15437 | ac_header_preproc=yes |
15438 | ;; | |
15439 | no:yes:* ) | |
8d138742 CE |
15440 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15441 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15442 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15443 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15444 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15445 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15446 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15447 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15448 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15449 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15450 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15451 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
dd184caf | 15452 | ( cat <<\_ASBOX |
8d138742 CE |
15453 | ## -------------------------------------------------- ## |
15454 | ## Report this to courier-users@lists.sourceforge.net ## | |
15455 | ## -------------------------------------------------- ## | |
d9898ee8 | 15456 | _ASBOX |
dd184caf | 15457 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 | 15458 | ;; |
15459 | esac | |
8d138742 CE |
15460 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15461 | $as_echo_n "checking for $ac_header... " >&6; } | |
dd184caf | 15462 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 15463 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 15464 | else |
15465 | eval "$as_ac_Header=\$ac_header_preproc" | |
15466 | fi | |
8d138742 CE |
15467 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15468 | $as_echo "$as_val"'` | |
15469 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15470 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 15471 | |
15472 | fi | |
8d138742 CE |
15473 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15474 | $as_echo "$as_val"'` | |
15475 | if test "x$as_val" = x""yes; then | |
d9898ee8 | 15476 | cat >>confdefs.h <<_ACEOF |
8d138742 | 15477 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d9898ee8 | 15478 | _ACEOF |
15479 | ||
15480 | fi | |
15481 | ||
15482 | done | |
15483 | ||
15484 | if test "$doauthpam" = "no" | |
15485 | then | |
15486 | LIBDL="" | |
15487 | else | |
15488 | saveLIBS="$LIBS" | |
15489 | LIBDL="" | |
8d138742 CE |
15490 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
15491 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d9898ee8 | 15492 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8d138742 | 15493 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 15494 | else |
15495 | ac_check_lib_save_LIBS=$LIBS | |
15496 | LIBS="-ldl $LIBS" | |
15497 | cat >conftest.$ac_ext <<_ACEOF | |
15498 | /* confdefs.h. */ | |
15499 | _ACEOF | |
15500 | cat confdefs.h >>conftest.$ac_ext | |
15501 | cat >>conftest.$ac_ext <<_ACEOF | |
15502 | /* end confdefs.h. */ | |
15503 | ||
dd184caf | 15504 | /* Override any GCC internal prototype to avoid an error. |
15505 | Use char because int might match the return type of a GCC | |
15506 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 15507 | #ifdef __cplusplus |
15508 | extern "C" | |
15509 | #endif | |
d9898ee8 | 15510 | char dlopen (); |
15511 | int | |
15512 | main () | |
15513 | { | |
dd184caf | 15514 | return dlopen (); |
d9898ee8 | 15515 | ; |
15516 | return 0; | |
15517 | } | |
15518 | _ACEOF | |
15519 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 15520 | if { (ac_try="$ac_link" |
15521 | case "(($ac_try" in | |
15522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15523 | *) ac_try_echo=$ac_try;; | |
15524 | esac | |
8d138742 CE |
15525 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15526 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 15527 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 15528 | ac_status=$? |
15529 | grep -v '^ *+' conftest.er1 >conftest.err | |
15530 | rm -f conftest.er1 | |
15531 | cat conftest.err >&5 | |
8d138742 | 15532 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 15533 | (exit $ac_status); } && { |
15534 | test -z "$ac_c_werror_flag" || | |
15535 | test ! -s conftest.err | |
8d138742 CE |
15536 | } && test -s conftest$ac_exeext && { |
15537 | test "$cross_compiling" = yes || | |
15538 | $as_test_x conftest$ac_exeext | |
15539 | }; then | |
d9898ee8 | 15540 | ac_cv_lib_dl_dlopen=yes |
15541 | else | |
8d138742 | 15542 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 15543 | sed 's/^/| /' conftest.$ac_ext >&5 |
15544 | ||
dd184caf | 15545 | ac_cv_lib_dl_dlopen=no |
d9898ee8 | 15546 | fi |
dd184caf | 15547 | |
8d138742 | 15548 | rm -rf conftest.dSYM |
dd184caf | 15549 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 15550 | conftest$ac_exeext conftest.$ac_ext |
15551 | LIBS=$ac_check_lib_save_LIBS | |
15552 | fi | |
8d138742 CE |
15553 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
15554 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
15555 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
d9898ee8 | 15556 | LIBDL="-ldl" |
15557 | fi | |
15558 | ||
15559 | LIBS="$saveLIBS" | |
15560 | ||
8d138742 CE |
15561 | { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5 |
15562 | $as_echo_n "checking for pam_start in -lpam... " >&6; } | |
d9898ee8 | 15563 | if test "${ac_cv_lib_pam_pam_start+set}" = set; then |
8d138742 | 15564 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 15565 | else |
15566 | ac_check_lib_save_LIBS=$LIBS | |
15567 | LIBS="-lpam $LIBDL $LIBS" | |
15568 | cat >conftest.$ac_ext <<_ACEOF | |
15569 | /* confdefs.h. */ | |
15570 | _ACEOF | |
15571 | cat confdefs.h >>conftest.$ac_ext | |
15572 | cat >>conftest.$ac_ext <<_ACEOF | |
15573 | /* end confdefs.h. */ | |
15574 | ||
dd184caf | 15575 | /* Override any GCC internal prototype to avoid an error. |
15576 | Use char because int might match the return type of a GCC | |
15577 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 15578 | #ifdef __cplusplus |
15579 | extern "C" | |
15580 | #endif | |
d9898ee8 | 15581 | char pam_start (); |
15582 | int | |
15583 | main () | |
15584 | { | |
dd184caf | 15585 | return pam_start (); |
d9898ee8 | 15586 | ; |
15587 | return 0; | |
15588 | } | |
15589 | _ACEOF | |
15590 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 15591 | if { (ac_try="$ac_link" |
15592 | case "(($ac_try" in | |
15593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15594 | *) ac_try_echo=$ac_try;; | |
15595 | esac | |
8d138742 CE |
15596 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15597 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 15598 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 15599 | ac_status=$? |
15600 | grep -v '^ *+' conftest.er1 >conftest.err | |
15601 | rm -f conftest.er1 | |
15602 | cat conftest.err >&5 | |
8d138742 | 15603 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 15604 | (exit $ac_status); } && { |
15605 | test -z "$ac_c_werror_flag" || | |
15606 | test ! -s conftest.err | |
8d138742 CE |
15607 | } && test -s conftest$ac_exeext && { |
15608 | test "$cross_compiling" = yes || | |
15609 | $as_test_x conftest$ac_exeext | |
15610 | }; then | |
d9898ee8 | 15611 | ac_cv_lib_pam_pam_start=yes |
15612 | else | |
8d138742 | 15613 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 15614 | sed 's/^/| /' conftest.$ac_ext >&5 |
15615 | ||
dd184caf | 15616 | ac_cv_lib_pam_pam_start=no |
d9898ee8 | 15617 | fi |
dd184caf | 15618 | |
8d138742 | 15619 | rm -rf conftest.dSYM |
dd184caf | 15620 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 15621 | conftest$ac_exeext conftest.$ac_ext |
15622 | LIBS=$ac_check_lib_save_LIBS | |
15623 | fi | |
8d138742 CE |
15624 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5 |
15625 | $as_echo "$ac_cv_lib_pam_pam_start" >&6; } | |
15626 | if test "x$ac_cv_lib_pam_pam_start" = x""yes; then | |
d9898ee8 | 15627 | HAVE_PAM=1 |
15628 | LIBS="-lpam $LIBDL $LIBS" | |
15629 | ||
15630 | for ac_func in pam_setcred | |
15631 | do | |
8d138742 CE |
15632 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15633 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15634 | $as_echo_n "checking for $ac_func... " >&6; } | |
dd184caf | 15635 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 15636 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 15637 | else |
15638 | cat >conftest.$ac_ext <<_ACEOF | |
15639 | /* confdefs.h. */ | |
15640 | _ACEOF | |
15641 | cat confdefs.h >>conftest.$ac_ext | |
15642 | cat >>conftest.$ac_ext <<_ACEOF | |
15643 | /* end confdefs.h. */ | |
15644 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15645 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15646 | #define $ac_func innocuous_$ac_func | |
15647 | ||
15648 | /* System header to define __stub macros and hopefully few prototypes, | |
15649 | which can conflict with char $ac_func (); below. | |
15650 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15651 | <limits.h> exists even on freestanding compilers. */ | |
15652 | ||
15653 | #ifdef __STDC__ | |
15654 | # include <limits.h> | |
15655 | #else | |
15656 | # include <assert.h> | |
15657 | #endif | |
15658 | ||
15659 | #undef $ac_func | |
15660 | ||
dd184caf | 15661 | /* Override any GCC internal prototype to avoid an error. |
15662 | Use char because int might match the return type of a GCC | |
15663 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 15664 | #ifdef __cplusplus |
15665 | extern "C" | |
d9898ee8 | 15666 | #endif |
d9898ee8 | 15667 | char $ac_func (); |
15668 | /* The GNU C library defines this for functions which it implements | |
15669 | to always fail with ENOSYS. Some functions are actually named | |
15670 | something starting with __ and the normal name is an alias. */ | |
dd184caf | 15671 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 | 15672 | choke me |
d9898ee8 | 15673 | #endif |
15674 | ||
15675 | int | |
15676 | main () | |
15677 | { | |
dd184caf | 15678 | return $ac_func (); |
d9898ee8 | 15679 | ; |
15680 | return 0; | |
15681 | } | |
15682 | _ACEOF | |
15683 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 15684 | if { (ac_try="$ac_link" |
15685 | case "(($ac_try" in | |
15686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15687 | *) ac_try_echo=$ac_try;; | |
15688 | esac | |
8d138742 CE |
15689 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15690 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 15691 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 15692 | ac_status=$? |
15693 | grep -v '^ *+' conftest.er1 >conftest.err | |
15694 | rm -f conftest.er1 | |
15695 | cat conftest.err >&5 | |
8d138742 | 15696 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 15697 | (exit $ac_status); } && { |
15698 | test -z "$ac_c_werror_flag" || | |
15699 | test ! -s conftest.err | |
8d138742 CE |
15700 | } && test -s conftest$ac_exeext && { |
15701 | test "$cross_compiling" = yes || | |
15702 | $as_test_x conftest$ac_exeext | |
15703 | }; then | |
d9898ee8 | 15704 | eval "$as_ac_var=yes" |
15705 | else | |
8d138742 | 15706 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 15707 | sed 's/^/| /' conftest.$ac_ext >&5 |
15708 | ||
dd184caf | 15709 | eval "$as_ac_var=no" |
d9898ee8 | 15710 | fi |
dd184caf | 15711 | |
8d138742 | 15712 | rm -rf conftest.dSYM |
dd184caf | 15713 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 15714 | conftest$ac_exeext conftest.$ac_ext |
15715 | fi | |
8d138742 CE |
15716 | ac_res=`eval 'as_val=${'$as_ac_var'} |
15717 | $as_echo "$as_val"'` | |
15718 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15719 | $as_echo "$ac_res" >&6; } | |
15720 | as_val=`eval 'as_val=${'$as_ac_var'} | |
15721 | $as_echo "$as_val"'` | |
15722 | if test "x$as_val" = x""yes; then | |
d9898ee8 | 15723 | cat >>confdefs.h <<_ACEOF |
8d138742 | 15724 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d9898ee8 | 15725 | _ACEOF |
15726 | ||
15727 | fi | |
15728 | done | |
15729 | ||
15730 | else | |
15731 | HAVE_PAM=0 | |
15732 | fi | |
15733 | ||
15734 | LIBS="$saveLIBS" | |
15735 | fi | |
15736 | ||
15737 | ||
15738 | LIBAUTHPAM="" | |
15739 | if test "$HAVE_PAM" = 1 | |
15740 | then | |
15741 | LIBAUTHPAM=libauthpam.la | |
15742 | fi | |
15743 | ||
15744 | ||
dd184caf | 15745 | # Check whether --with-authpam-libraries was given. |
d9898ee8 | 15746 | if test "${with_authpam_libraries+set}" = set; then |
dd184caf | 15747 | withval=$with_authpam_libraries; authpamcrypt="$withval" |
15748 | fi | |
15749 | ||
d9898ee8 | 15750 | |
15751 | AUTHPAMCRYPT="$authpamcrypt" | |
15752 | ||
15753 | ||
15754 | ||
15755 | ||
15756 | ||
15757 | ||
15758 | ||
dd184caf | 15759 | # Check whether --with-authldap was given. |
d9898ee8 | 15760 | if test "${with_authldap+set}" = set; then |
dd184caf | 15761 | withval=$with_authldap; doauthldap="$withval" |
d9898ee8 | 15762 | else |
15763 | doauthldap="yes" | |
dd184caf | 15764 | fi |
15765 | ||
d9898ee8 | 15766 | |
15767 | ||
15768 | for ac_header in lber.h | |
15769 | do | |
8d138742 | 15770 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf | 15771 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 CE |
15772 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15773 | $as_echo_n "checking for $ac_header... " >&6; } | |
dd184caf | 15774 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 15775 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 15776 | fi |
8d138742 CE |
15777 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15778 | $as_echo "$as_val"'` | |
15779 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15780 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 15781 | else |
15782 | # Is the header compilable? | |
8d138742 CE |
15783 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15784 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d9898ee8 | 15785 | cat >conftest.$ac_ext <<_ACEOF |
15786 | /* confdefs.h. */ | |
15787 | _ACEOF | |
15788 | cat confdefs.h >>conftest.$ac_ext | |
15789 | cat >>conftest.$ac_ext <<_ACEOF | |
15790 | /* end confdefs.h. */ | |
15791 | $ac_includes_default | |
15792 | #include <$ac_header> | |
15793 | _ACEOF | |
15794 | rm -f conftest.$ac_objext | |
dd184caf | 15795 | if { (ac_try="$ac_compile" |
15796 | case "(($ac_try" in | |
15797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15798 | *) ac_try_echo=$ac_try;; | |
15799 | esac | |
8d138742 CE |
15800 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15801 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 15802 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 15803 | ac_status=$? |
15804 | grep -v '^ *+' conftest.er1 >conftest.err | |
15805 | rm -f conftest.er1 | |
15806 | cat conftest.err >&5 | |
8d138742 | 15807 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 15808 | (exit $ac_status); } && { |
15809 | test -z "$ac_c_werror_flag" || | |
15810 | test ! -s conftest.err | |
15811 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 15812 | ac_header_compiler=yes |
15813 | else | |
8d138742 | 15814 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 15815 | sed 's/^/| /' conftest.$ac_ext >&5 |
15816 | ||
dd184caf | 15817 | ac_header_compiler=no |
d9898ee8 | 15818 | fi |
dd184caf | 15819 | |
15820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8d138742 CE |
15821 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15822 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 15823 | |
15824 | # Is the header present? | |
8d138742 CE |
15825 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15826 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d9898ee8 | 15827 | cat >conftest.$ac_ext <<_ACEOF |
15828 | /* confdefs.h. */ | |
15829 | _ACEOF | |
15830 | cat confdefs.h >>conftest.$ac_ext | |
15831 | cat >>conftest.$ac_ext <<_ACEOF | |
15832 | /* end confdefs.h. */ | |
15833 | #include <$ac_header> | |
15834 | _ACEOF | |
dd184caf | 15835 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15836 | case "(($ac_try" in | |
15837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15838 | *) ac_try_echo=$ac_try;; | |
15839 | esac | |
8d138742 CE |
15840 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15841 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 15842 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 15843 | ac_status=$? |
15844 | grep -v '^ *+' conftest.er1 >conftest.err | |
15845 | rm -f conftest.er1 | |
15846 | cat conftest.err >&5 | |
8d138742 | 15847 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 15848 | (exit $ac_status); } >/dev/null && { |
15849 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15850 | test ! -s conftest.err | |
15851 | }; then | |
d9898ee8 | 15852 | ac_header_preproc=yes |
15853 | else | |
8d138742 | 15854 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 15855 | sed 's/^/| /' conftest.$ac_ext >&5 |
15856 | ||
15857 | ac_header_preproc=no | |
15858 | fi | |
dd184caf | 15859 | |
d9898ee8 | 15860 | rm -f conftest.err conftest.$ac_ext |
8d138742 CE |
15861 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15862 | $as_echo "$ac_header_preproc" >&6; } | |
d9898ee8 | 15863 | |
15864 | # So? What about this header? | |
15865 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15866 | yes:no: ) | |
8d138742 CE |
15867 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15868 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15869 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15870 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d9898ee8 | 15871 | ac_header_preproc=yes |
15872 | ;; | |
15873 | no:yes:* ) | |
8d138742 CE |
15874 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15875 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15876 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15877 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15878 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15879 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15880 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15881 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15882 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15883 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15884 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15885 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
dd184caf | 15886 | ( cat <<\_ASBOX |
8d138742 CE |
15887 | ## -------------------------------------------------- ## |
15888 | ## Report this to courier-users@lists.sourceforge.net ## | |
15889 | ## -------------------------------------------------- ## | |
d9898ee8 | 15890 | _ASBOX |
dd184caf | 15891 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 | 15892 | ;; |
15893 | esac | |
8d138742 CE |
15894 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15895 | $as_echo_n "checking for $ac_header... " >&6; } | |
dd184caf | 15896 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 15897 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 15898 | else |
15899 | eval "$as_ac_Header=\$ac_header_preproc" | |
15900 | fi | |
8d138742 CE |
15901 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15902 | $as_echo "$as_val"'` | |
15903 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15904 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 15905 | |
15906 | fi | |
8d138742 CE |
15907 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15908 | $as_echo "$as_val"'` | |
15909 | if test "x$as_val" = x""yes; then | |
d9898ee8 | 15910 | cat >>confdefs.h <<_ACEOF |
8d138742 | 15911 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d9898ee8 | 15912 | _ACEOF |
15913 | ||
15914 | fi | |
15915 | ||
15916 | done | |
15917 | ||
15918 | ||
15919 | for ac_header in ldap.h | |
15920 | do | |
8d138742 | 15921 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf | 15922 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 CE |
15923 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15924 | $as_echo_n "checking for $ac_header... " >&6; } | |
dd184caf | 15925 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 15926 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 15927 | fi |
8d138742 CE |
15928 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15929 | $as_echo "$as_val"'` | |
15930 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15931 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 15932 | else |
15933 | # Is the header compilable? | |
8d138742 CE |
15934 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15935 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d9898ee8 | 15936 | cat >conftest.$ac_ext <<_ACEOF |
15937 | /* confdefs.h. */ | |
15938 | _ACEOF | |
15939 | cat confdefs.h >>conftest.$ac_ext | |
15940 | cat >>conftest.$ac_ext <<_ACEOF | |
15941 | /* end confdefs.h. */ | |
15942 | $ac_includes_default | |
15943 | #include <$ac_header> | |
15944 | _ACEOF | |
15945 | rm -f conftest.$ac_objext | |
dd184caf | 15946 | if { (ac_try="$ac_compile" |
15947 | case "(($ac_try" in | |
15948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15949 | *) ac_try_echo=$ac_try;; | |
15950 | esac | |
8d138742 CE |
15951 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15952 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 15953 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 15954 | ac_status=$? |
15955 | grep -v '^ *+' conftest.er1 >conftest.err | |
15956 | rm -f conftest.er1 | |
15957 | cat conftest.err >&5 | |
8d138742 | 15958 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 15959 | (exit $ac_status); } && { |
15960 | test -z "$ac_c_werror_flag" || | |
15961 | test ! -s conftest.err | |
15962 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 15963 | ac_header_compiler=yes |
15964 | else | |
8d138742 | 15965 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 15966 | sed 's/^/| /' conftest.$ac_ext >&5 |
15967 | ||
dd184caf | 15968 | ac_header_compiler=no |
d9898ee8 | 15969 | fi |
dd184caf | 15970 | |
15971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8d138742 CE |
15972 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15973 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 15974 | |
15975 | # Is the header present? | |
8d138742 CE |
15976 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15977 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d9898ee8 | 15978 | cat >conftest.$ac_ext <<_ACEOF |
15979 | /* confdefs.h. */ | |
15980 | _ACEOF | |
15981 | cat confdefs.h >>conftest.$ac_ext | |
15982 | cat >>conftest.$ac_ext <<_ACEOF | |
15983 | /* end confdefs.h. */ | |
15984 | #include <$ac_header> | |
15985 | _ACEOF | |
dd184caf | 15986 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15987 | case "(($ac_try" in | |
15988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15989 | *) ac_try_echo=$ac_try;; | |
15990 | esac | |
8d138742 CE |
15991 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15992 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 15993 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 15994 | ac_status=$? |
15995 | grep -v '^ *+' conftest.er1 >conftest.err | |
15996 | rm -f conftest.er1 | |
15997 | cat conftest.err >&5 | |
8d138742 | 15998 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 15999 | (exit $ac_status); } >/dev/null && { |
16000 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16001 | test ! -s conftest.err | |
16002 | }; then | |
d9898ee8 | 16003 | ac_header_preproc=yes |
16004 | else | |
8d138742 | 16005 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 16006 | sed 's/^/| /' conftest.$ac_ext >&5 |
16007 | ||
16008 | ac_header_preproc=no | |
16009 | fi | |
dd184caf | 16010 | |
d9898ee8 | 16011 | rm -f conftest.err conftest.$ac_ext |
8d138742 CE |
16012 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16013 | $as_echo "$ac_header_preproc" >&6; } | |
d9898ee8 | 16014 | |
16015 | # So? What about this header? | |
16016 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16017 | yes:no: ) | |
8d138742 CE |
16018 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16019 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16020 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16021 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d9898ee8 | 16022 | ac_header_preproc=yes |
16023 | ;; | |
16024 | no:yes:* ) | |
8d138742 CE |
16025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16026 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16027 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16028 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16029 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16030 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16031 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16032 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16033 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16034 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16035 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16036 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
dd184caf | 16037 | ( cat <<\_ASBOX |
8d138742 CE |
16038 | ## -------------------------------------------------- ## |
16039 | ## Report this to courier-users@lists.sourceforge.net ## | |
16040 | ## -------------------------------------------------- ## | |
d9898ee8 | 16041 | _ASBOX |
dd184caf | 16042 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 | 16043 | ;; |
16044 | esac | |
8d138742 CE |
16045 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16046 | $as_echo_n "checking for $ac_header... " >&6; } | |
dd184caf | 16047 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 16048 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 16049 | else |
16050 | eval "$as_ac_Header=\$ac_header_preproc" | |
16051 | fi | |
8d138742 CE |
16052 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16053 | $as_echo "$as_val"'` | |
16054 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16055 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 16056 | |
16057 | fi | |
8d138742 CE |
16058 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16059 | $as_echo "$as_val"'` | |
16060 | if test "x$as_val" = x""yes; then | |
d9898ee8 | 16061 | cat >>confdefs.h <<_ACEOF |
8d138742 | 16062 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d9898ee8 | 16063 | _ACEOF |
16064 | ||
16065 | fi | |
16066 | ||
16067 | done | |
16068 | ||
16069 | ||
16070 | for ac_header in netinet/in.h | |
16071 | do | |
8d138742 | 16072 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf | 16073 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 CE |
16074 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16075 | $as_echo_n "checking for $ac_header... " >&6; } | |
dd184caf | 16076 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 16077 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 16078 | fi |
8d138742 CE |
16079 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16080 | $as_echo "$as_val"'` | |
16081 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16082 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 16083 | else |
16084 | # Is the header compilable? | |
8d138742 CE |
16085 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16086 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d9898ee8 | 16087 | cat >conftest.$ac_ext <<_ACEOF |
16088 | /* confdefs.h. */ | |
16089 | _ACEOF | |
16090 | cat confdefs.h >>conftest.$ac_ext | |
16091 | cat >>conftest.$ac_ext <<_ACEOF | |
16092 | /* end confdefs.h. */ | |
16093 | $ac_includes_default | |
16094 | #include <$ac_header> | |
16095 | _ACEOF | |
16096 | rm -f conftest.$ac_objext | |
dd184caf | 16097 | if { (ac_try="$ac_compile" |
16098 | case "(($ac_try" in | |
16099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16100 | *) ac_try_echo=$ac_try;; | |
16101 | esac | |
8d138742 CE |
16102 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16103 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 16104 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 16105 | ac_status=$? |
16106 | grep -v '^ *+' conftest.er1 >conftest.err | |
16107 | rm -f conftest.er1 | |
16108 | cat conftest.err >&5 | |
8d138742 | 16109 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 16110 | (exit $ac_status); } && { |
16111 | test -z "$ac_c_werror_flag" || | |
16112 | test ! -s conftest.err | |
16113 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 16114 | ac_header_compiler=yes |
16115 | else | |
8d138742 | 16116 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 16117 | sed 's/^/| /' conftest.$ac_ext >&5 |
16118 | ||
dd184caf | 16119 | ac_header_compiler=no |
d9898ee8 | 16120 | fi |
dd184caf | 16121 | |
16122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8d138742 CE |
16123 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16124 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 16125 | |
16126 | # Is the header present? | |
8d138742 CE |
16127 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16128 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d9898ee8 | 16129 | cat >conftest.$ac_ext <<_ACEOF |
16130 | /* confdefs.h. */ | |
16131 | _ACEOF | |
16132 | cat confdefs.h >>conftest.$ac_ext | |
16133 | cat >>conftest.$ac_ext <<_ACEOF | |
16134 | /* end confdefs.h. */ | |
16135 | #include <$ac_header> | |
16136 | _ACEOF | |
dd184caf | 16137 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16138 | case "(($ac_try" in | |
16139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16140 | *) ac_try_echo=$ac_try;; | |
16141 | esac | |
8d138742 CE |
16142 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16143 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 16144 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 16145 | ac_status=$? |
16146 | grep -v '^ *+' conftest.er1 >conftest.err | |
16147 | rm -f conftest.er1 | |
16148 | cat conftest.err >&5 | |
8d138742 | 16149 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 16150 | (exit $ac_status); } >/dev/null && { |
16151 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16152 | test ! -s conftest.err | |
16153 | }; then | |
d9898ee8 | 16154 | ac_header_preproc=yes |
16155 | else | |
8d138742 | 16156 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 16157 | sed 's/^/| /' conftest.$ac_ext >&5 |
16158 | ||
16159 | ac_header_preproc=no | |
16160 | fi | |
dd184caf | 16161 | |
d9898ee8 | 16162 | rm -f conftest.err conftest.$ac_ext |
8d138742 CE |
16163 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16164 | $as_echo "$ac_header_preproc" >&6; } | |
d9898ee8 | 16165 | |
16166 | # So? What about this header? | |
16167 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16168 | yes:no: ) | |
8d138742 CE |
16169 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16170 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16171 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16172 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d9898ee8 | 16173 | ac_header_preproc=yes |
16174 | ;; | |
16175 | no:yes:* ) | |
8d138742 CE |
16176 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16177 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16178 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16179 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16180 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16181 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16182 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16183 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16184 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16185 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16186 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16187 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
dd184caf | 16188 | ( cat <<\_ASBOX |
8d138742 CE |
16189 | ## -------------------------------------------------- ## |
16190 | ## Report this to courier-users@lists.sourceforge.net ## | |
16191 | ## -------------------------------------------------- ## | |
d9898ee8 | 16192 | _ASBOX |
dd184caf | 16193 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 | 16194 | ;; |
16195 | esac | |
8d138742 CE |
16196 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16197 | $as_echo_n "checking for $ac_header... " >&6; } | |
dd184caf | 16198 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 16199 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 16200 | else |
16201 | eval "$as_ac_Header=\$ac_header_preproc" | |
16202 | fi | |
8d138742 CE |
16203 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16204 | $as_echo "$as_val"'` | |
16205 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16206 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 16207 | |
16208 | fi | |
8d138742 CE |
16209 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16210 | $as_echo "$as_val"'` | |
16211 | if test "x$as_val" = x""yes; then | |
d9898ee8 | 16212 | cat >>confdefs.h <<_ACEOF |
8d138742 | 16213 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d9898ee8 | 16214 | _ACEOF |
16215 | ||
16216 | fi | |
16217 | ||
16218 | done | |
16219 | ||
16220 | ||
16221 | if test "$doauthldap" = "no" | |
16222 | then | |
16223 | HAVE_LDAP=0 | |
16224 | else | |
16225 | saveLIBS="$LIBS" | |
16226 | LIBS="$NETLIBS $LIBS" | |
16227 | LDAPLIBS="" | |
16228 | ||
8d138742 CE |
16229 | { $as_echo "$as_me:$LINENO: checking whether -lresolv is needed for res_query" >&5 |
16230 | $as_echo_n "checking whether -lresolv is needed for res_query... " >&6; } | |
d9898ee8 | 16231 | cat >conftest.$ac_ext <<_ACEOF |
16232 | /* confdefs.h. */ | |
16233 | _ACEOF | |
16234 | cat confdefs.h >>conftest.$ac_ext | |
16235 | cat >>conftest.$ac_ext <<_ACEOF | |
16236 | /* end confdefs.h. */ | |
16237 | ||
16238 | #include <sys/types.h> | |
16239 | #if HAVE_NETINET_IN_H | |
16240 | #include <netinet/in.h> | |
16241 | #endif | |
16242 | #include <resolv.h> | |
16243 | ||
16244 | void (*func)()= (void (*)())res_query; | |
16245 | ||
16246 | int | |
16247 | main () | |
16248 | { | |
16249 | (*func)(); | |
16250 | ; | |
16251 | return 0; | |
16252 | } | |
16253 | _ACEOF | |
16254 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 16255 | if { (ac_try="$ac_link" |
16256 | case "(($ac_try" in | |
16257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16258 | *) ac_try_echo=$ac_try;; | |
16259 | esac | |
8d138742 CE |
16260 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16261 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 16262 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 16263 | ac_status=$? |
16264 | grep -v '^ *+' conftest.er1 >conftest.err | |
16265 | rm -f conftest.er1 | |
16266 | cat conftest.err >&5 | |
8d138742 | 16267 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 16268 | (exit $ac_status); } && { |
16269 | test -z "$ac_c_werror_flag" || | |
16270 | test ! -s conftest.err | |
8d138742 CE |
16271 | } && test -s conftest$ac_exeext && { |
16272 | test "$cross_compiling" = yes || | |
16273 | $as_test_x conftest$ac_exeext | |
16274 | }; then | |
16275 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16276 | $as_echo "no" >&6; } | |
d9898ee8 | 16277 | else |
8d138742 | 16278 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 16279 | sed 's/^/| /' conftest.$ac_ext >&5 |
16280 | ||
16281 | ||
16282 | LIBS="-lresolv $LIBS" | |
16283 | ||
16284 | cat >conftest.$ac_ext <<_ACEOF | |
16285 | /* confdefs.h. */ | |
16286 | _ACEOF | |
16287 | cat confdefs.h >>conftest.$ac_ext | |
16288 | cat >>conftest.$ac_ext <<_ACEOF | |
16289 | /* end confdefs.h. */ | |
16290 | ||
16291 | #include <sys/types.h> | |
16292 | #if HAVE_NETINET_IN_H | |
16293 | #include <netinet/in.h> | |
16294 | #endif | |
16295 | #include <resolv.h> | |
16296 | ||
16297 | void (*func)()= (void (*)())res_query; | |
16298 | ||
16299 | int | |
16300 | main () | |
16301 | { | |
16302 | (*func)(); | |
16303 | ; | |
16304 | return 0; | |
16305 | } | |
16306 | _ACEOF | |
16307 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 16308 | if { (ac_try="$ac_link" |
16309 | case "(($ac_try" in | |
16310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16311 | *) ac_try_echo=$ac_try;; | |
16312 | esac | |
8d138742 CE |
16313 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16314 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 16315 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 16316 | ac_status=$? |
16317 | grep -v '^ *+' conftest.er1 >conftest.err | |
16318 | rm -f conftest.er1 | |
16319 | cat conftest.err >&5 | |
8d138742 | 16320 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 16321 | (exit $ac_status); } && { |
16322 | test -z "$ac_c_werror_flag" || | |
16323 | test ! -s conftest.err | |
8d138742 CE |
16324 | } && test -s conftest$ac_exeext && { |
16325 | test "$cross_compiling" = yes || | |
16326 | $as_test_x conftest$ac_exeext | |
16327 | }; then | |
d9898ee8 | 16328 | |
16329 | LDAPLIBS="-lresolv $LDAPLIBS" | |
16330 | HAVE_LDAP=1 | |
8d138742 CE |
16331 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16332 | $as_echo "yes" >&6; } | |
d9898ee8 | 16333 | |
16334 | else | |
8d138742 | 16335 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 16336 | sed 's/^/| /' conftest.$ac_ext >&5 |
16337 | ||
8d138742 CE |
16338 | { { $as_echo "$as_me:$LINENO: error: Cannot find function res_query" >&5 |
16339 | $as_echo "$as_me: error: Cannot find function res_query" >&2;} | |
d9898ee8 | 16340 | { (exit 1); exit 1; }; } |
16341 | fi | |
dd184caf | 16342 | |
8d138742 | 16343 | rm -rf conftest.dSYM |
dd184caf | 16344 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 16345 | conftest$ac_exeext conftest.$ac_ext |
16346 | ||
16347 | fi | |
dd184caf | 16348 | |
8d138742 | 16349 | rm -rf conftest.dSYM |
dd184caf | 16350 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 16351 | conftest$ac_exeext conftest.$ac_ext |
16352 | ||
8d138742 CE |
16353 | { $as_echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5 |
16354 | $as_echo_n "checking for ber_scanf in -llber... " >&6; } | |
d9898ee8 | 16355 | if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then |
8d138742 | 16356 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 16357 | else |
16358 | ac_check_lib_save_LIBS=$LIBS | |
16359 | LIBS="-llber $LIBS" | |
16360 | cat >conftest.$ac_ext <<_ACEOF | |
16361 | /* confdefs.h. */ | |
16362 | _ACEOF | |
16363 | cat confdefs.h >>conftest.$ac_ext | |
16364 | cat >>conftest.$ac_ext <<_ACEOF | |
16365 | /* end confdefs.h. */ | |
16366 | ||
dd184caf | 16367 | /* Override any GCC internal prototype to avoid an error. |
16368 | Use char because int might match the return type of a GCC | |
16369 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 16370 | #ifdef __cplusplus |
16371 | extern "C" | |
16372 | #endif | |
d9898ee8 | 16373 | char ber_scanf (); |
16374 | int | |
16375 | main () | |
16376 | { | |
dd184caf | 16377 | return ber_scanf (); |
d9898ee8 | 16378 | ; |
16379 | return 0; | |
16380 | } | |
16381 | _ACEOF | |
16382 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 16383 | if { (ac_try="$ac_link" |
16384 | case "(($ac_try" in | |
16385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16386 | *) ac_try_echo=$ac_try;; | |
16387 | esac | |
8d138742 CE |
16388 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16389 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 16390 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 16391 | ac_status=$? |
16392 | grep -v '^ *+' conftest.er1 >conftest.err | |
16393 | rm -f conftest.er1 | |
16394 | cat conftest.err >&5 | |
8d138742 | 16395 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 16396 | (exit $ac_status); } && { |
16397 | test -z "$ac_c_werror_flag" || | |
16398 | test ! -s conftest.err | |
8d138742 CE |
16399 | } && test -s conftest$ac_exeext && { |
16400 | test "$cross_compiling" = yes || | |
16401 | $as_test_x conftest$ac_exeext | |
16402 | }; then | |
d9898ee8 | 16403 | ac_cv_lib_lber_ber_scanf=yes |
16404 | else | |
8d138742 | 16405 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 16406 | sed 's/^/| /' conftest.$ac_ext >&5 |
16407 | ||
dd184caf | 16408 | ac_cv_lib_lber_ber_scanf=no |
d9898ee8 | 16409 | fi |
dd184caf | 16410 | |
8d138742 | 16411 | rm -rf conftest.dSYM |
dd184caf | 16412 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 16413 | conftest$ac_exeext conftest.$ac_ext |
16414 | LIBS=$ac_check_lib_save_LIBS | |
16415 | fi | |
8d138742 CE |
16416 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5 |
16417 | $as_echo "$ac_cv_lib_lber_ber_scanf" >&6; } | |
16418 | if test "x$ac_cv_lib_lber_ber_scanf" = x""yes; then | |
d9898ee8 | 16419 | LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS" |
16420 | fi | |
16421 | ||
8d138742 CE |
16422 | { $as_echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5 |
16423 | $as_echo_n "checking for ldap_open in -lldap... " >&6; } | |
d9898ee8 | 16424 | if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then |
8d138742 | 16425 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 16426 | else |
16427 | ac_check_lib_save_LIBS=$LIBS | |
16428 | LIBS="-lldap $LIBS" | |
16429 | cat >conftest.$ac_ext <<_ACEOF | |
16430 | /* confdefs.h. */ | |
16431 | _ACEOF | |
16432 | cat confdefs.h >>conftest.$ac_ext | |
16433 | cat >>conftest.$ac_ext <<_ACEOF | |
16434 | /* end confdefs.h. */ | |
16435 | ||
dd184caf | 16436 | /* Override any GCC internal prototype to avoid an error. |
16437 | Use char because int might match the return type of a GCC | |
16438 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 16439 | #ifdef __cplusplus |
16440 | extern "C" | |
16441 | #endif | |
d9898ee8 | 16442 | char ldap_open (); |
16443 | int | |
16444 | main () | |
16445 | { | |
dd184caf | 16446 | return ldap_open (); |
d9898ee8 | 16447 | ; |
16448 | return 0; | |
16449 | } | |
16450 | _ACEOF | |
16451 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 16452 | if { (ac_try="$ac_link" |
16453 | case "(($ac_try" in | |
16454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16455 | *) ac_try_echo=$ac_try;; | |
16456 | esac | |
8d138742 CE |
16457 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16458 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 16459 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 16460 | ac_status=$? |
16461 | grep -v '^ *+' conftest.er1 >conftest.err | |
16462 | rm -f conftest.er1 | |
16463 | cat conftest.err >&5 | |
8d138742 | 16464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 16465 | (exit $ac_status); } && { |
16466 | test -z "$ac_c_werror_flag" || | |
16467 | test ! -s conftest.err | |
8d138742 CE |
16468 | } && test -s conftest$ac_exeext && { |
16469 | test "$cross_compiling" = yes || | |
16470 | $as_test_x conftest$ac_exeext | |
16471 | }; then | |
d9898ee8 | 16472 | ac_cv_lib_ldap_ldap_open=yes |
16473 | else | |
8d138742 | 16474 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 16475 | sed 's/^/| /' conftest.$ac_ext >&5 |
16476 | ||
dd184caf | 16477 | ac_cv_lib_ldap_ldap_open=no |
d9898ee8 | 16478 | fi |
dd184caf | 16479 | |
8d138742 | 16480 | rm -rf conftest.dSYM |
dd184caf | 16481 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 16482 | conftest$ac_exeext conftest.$ac_ext |
16483 | LIBS=$ac_check_lib_save_LIBS | |
16484 | fi | |
8d138742 CE |
16485 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5 |
16486 | $as_echo "$ac_cv_lib_ldap_ldap_open" >&6; } | |
16487 | if test "x$ac_cv_lib_ldap_ldap_open" = x""yes; then | |
d9898ee8 | 16488 | LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS" |
16489 | fi | |
16490 | ||
8d138742 CE |
16491 | { $as_echo "$as_me:$LINENO: checking for ldap_search_st" >&5 |
16492 | $as_echo_n "checking for ldap_search_st... " >&6; } | |
d9898ee8 | 16493 | if test "${ac_cv_func_ldap_search_st+set}" = set; then |
8d138742 | 16494 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 16495 | else |
16496 | cat >conftest.$ac_ext <<_ACEOF | |
16497 | /* confdefs.h. */ | |
16498 | _ACEOF | |
16499 | cat confdefs.h >>conftest.$ac_ext | |
16500 | cat >>conftest.$ac_ext <<_ACEOF | |
16501 | /* end confdefs.h. */ | |
16502 | /* Define ldap_search_st to an innocuous variant, in case <limits.h> declares ldap_search_st. | |
16503 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16504 | #define ldap_search_st innocuous_ldap_search_st | |
16505 | ||
16506 | /* System header to define __stub macros and hopefully few prototypes, | |
16507 | which can conflict with char ldap_search_st (); below. | |
16508 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16509 | <limits.h> exists even on freestanding compilers. */ | |
16510 | ||
16511 | #ifdef __STDC__ | |
16512 | # include <limits.h> | |
16513 | #else | |
16514 | # include <assert.h> | |
16515 | #endif | |
16516 | ||
16517 | #undef ldap_search_st | |
16518 | ||
dd184caf | 16519 | /* Override any GCC internal prototype to avoid an error. |
16520 | Use char because int might match the return type of a GCC | |
16521 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 16522 | #ifdef __cplusplus |
16523 | extern "C" | |
d9898ee8 | 16524 | #endif |
d9898ee8 | 16525 | char ldap_search_st (); |
16526 | /* The GNU C library defines this for functions which it implements | |
16527 | to always fail with ENOSYS. Some functions are actually named | |
16528 | something starting with __ and the normal name is an alias. */ | |
dd184caf | 16529 | #if defined __stub_ldap_search_st || defined __stub___ldap_search_st |
d9898ee8 | 16530 | choke me |
d9898ee8 | 16531 | #endif |
16532 | ||
16533 | int | |
16534 | main () | |
16535 | { | |
dd184caf | 16536 | return ldap_search_st (); |
d9898ee8 | 16537 | ; |
16538 | return 0; | |
16539 | } | |
16540 | _ACEOF | |
16541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 16542 | if { (ac_try="$ac_link" |
16543 | case "(($ac_try" in | |
16544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16545 | *) ac_try_echo=$ac_try;; | |
16546 | esac | |
8d138742 CE |
16547 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16548 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 16549 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 16550 | ac_status=$? |
16551 | grep -v '^ *+' conftest.er1 >conftest.err | |
16552 | rm -f conftest.er1 | |
16553 | cat conftest.err >&5 | |
8d138742 | 16554 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 16555 | (exit $ac_status); } && { |
16556 | test -z "$ac_c_werror_flag" || | |
16557 | test ! -s conftest.err | |
8d138742 CE |
16558 | } && test -s conftest$ac_exeext && { |
16559 | test "$cross_compiling" = yes || | |
16560 | $as_test_x conftest$ac_exeext | |
16561 | }; then | |
d9898ee8 | 16562 | ac_cv_func_ldap_search_st=yes |
16563 | else | |
8d138742 | 16564 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 16565 | sed 's/^/| /' conftest.$ac_ext >&5 |
16566 | ||
dd184caf | 16567 | ac_cv_func_ldap_search_st=no |
d9898ee8 | 16568 | fi |
dd184caf | 16569 | |
8d138742 | 16570 | rm -rf conftest.dSYM |
dd184caf | 16571 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 16572 | conftest$ac_exeext conftest.$ac_ext |
16573 | fi | |
8d138742 CE |
16574 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_search_st" >&5 |
16575 | $as_echo "$ac_cv_func_ldap_search_st" >&6; } | |
16576 | if test "x$ac_cv_func_ldap_search_st" = x""yes; then | |
d9898ee8 | 16577 | HAVE_LDAP=1 |
16578 | else | |
16579 | HAVE_LDAP=0 | |
16580 | fi | |
16581 | ||
8d138742 CE |
16582 | { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5 |
16583 | $as_echo_n "checking for ldap_start_tls_s... " >&6; } | |
d9898ee8 | 16584 | if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then |
8d138742 | 16585 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 16586 | else |
16587 | cat >conftest.$ac_ext <<_ACEOF | |
16588 | /* confdefs.h. */ | |
16589 | _ACEOF | |
16590 | cat confdefs.h >>conftest.$ac_ext | |
16591 | cat >>conftest.$ac_ext <<_ACEOF | |
16592 | /* end confdefs.h. */ | |
16593 | /* Define ldap_start_tls_s to an innocuous variant, in case <limits.h> declares ldap_start_tls_s. | |
16594 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16595 | #define ldap_start_tls_s innocuous_ldap_start_tls_s | |
16596 | ||
16597 | /* System header to define __stub macros and hopefully few prototypes, | |
16598 | which can conflict with char ldap_start_tls_s (); below. | |
16599 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16600 | <limits.h> exists even on freestanding compilers. */ | |
16601 | ||
16602 | #ifdef __STDC__ | |
16603 | # include <limits.h> | |
16604 | #else | |
16605 | # include <assert.h> | |
16606 | #endif | |
16607 | ||
16608 | #undef ldap_start_tls_s | |
16609 | ||
dd184caf | 16610 | /* Override any GCC internal prototype to avoid an error. |
16611 | Use char because int might match the return type of a GCC | |
16612 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 16613 | #ifdef __cplusplus |
16614 | extern "C" | |
d9898ee8 | 16615 | #endif |
d9898ee8 | 16616 | char ldap_start_tls_s (); |
16617 | /* The GNU C library defines this for functions which it implements | |
16618 | to always fail with ENOSYS. Some functions are actually named | |
16619 | something starting with __ and the normal name is an alias. */ | |
dd184caf | 16620 | #if defined __stub_ldap_start_tls_s || defined __stub___ldap_start_tls_s |
d9898ee8 | 16621 | choke me |
d9898ee8 | 16622 | #endif |
16623 | ||
16624 | int | |
16625 | main () | |
16626 | { | |
dd184caf | 16627 | return ldap_start_tls_s (); |
d9898ee8 | 16628 | ; |
16629 | return 0; | |
16630 | } | |
16631 | _ACEOF | |
16632 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 16633 | if { (ac_try="$ac_link" |
16634 | case "(($ac_try" in | |
16635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16636 | *) ac_try_echo=$ac_try;; | |
16637 | esac | |
8d138742 CE |
16638 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16639 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 16640 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 16641 | ac_status=$? |
16642 | grep -v '^ *+' conftest.er1 >conftest.err | |
16643 | rm -f conftest.er1 | |
16644 | cat conftest.err >&5 | |
8d138742 | 16645 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 16646 | (exit $ac_status); } && { |
16647 | test -z "$ac_c_werror_flag" || | |
16648 | test ! -s conftest.err | |
8d138742 CE |
16649 | } && test -s conftest$ac_exeext && { |
16650 | test "$cross_compiling" = yes || | |
16651 | $as_test_x conftest$ac_exeext | |
16652 | }; then | |
d9898ee8 | 16653 | ac_cv_func_ldap_start_tls_s=yes |
16654 | else | |
8d138742 | 16655 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 16656 | sed 's/^/| /' conftest.$ac_ext >&5 |
16657 | ||
dd184caf | 16658 | ac_cv_func_ldap_start_tls_s=no |
d9898ee8 | 16659 | fi |
dd184caf | 16660 | |
8d138742 | 16661 | rm -rf conftest.dSYM |
dd184caf | 16662 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 16663 | conftest$ac_exeext conftest.$ac_ext |
16664 | fi | |
8d138742 CE |
16665 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5 |
16666 | $as_echo "$ac_cv_func_ldap_start_tls_s" >&6; } | |
16667 | if test "x$ac_cv_func_ldap_start_tls_s" = x""yes; then | |
d9898ee8 | 16668 | HAVE_LDAP_TLS=1 |
16669 | else | |
16670 | HAVE_LDAP_TLS=0 | |
16671 | fi | |
16672 | ||
8d138742 CE |
16673 | { $as_echo "$as_me:$LINENO: checking for ldap_result2error" >&5 |
16674 | $as_echo_n "checking for ldap_result2error... " >&6; } | |
d9898ee8 | 16675 | if test "${ac_cv_func_ldap_result2error+set}" = set; then |
8d138742 | 16676 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 16677 | else |
16678 | cat >conftest.$ac_ext <<_ACEOF | |
16679 | /* confdefs.h. */ | |
16680 | _ACEOF | |
16681 | cat confdefs.h >>conftest.$ac_ext | |
16682 | cat >>conftest.$ac_ext <<_ACEOF | |
16683 | /* end confdefs.h. */ | |
16684 | /* Define ldap_result2error to an innocuous variant, in case <limits.h> declares ldap_result2error. | |
16685 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16686 | #define ldap_result2error innocuous_ldap_result2error | |
16687 | ||
16688 | /* System header to define __stub macros and hopefully few prototypes, | |
16689 | which can conflict with char ldap_result2error (); below. | |
16690 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16691 | <limits.h> exists even on freestanding compilers. */ | |
16692 | ||
16693 | #ifdef __STDC__ | |
16694 | # include <limits.h> | |
16695 | #else | |
16696 | # include <assert.h> | |
16697 | #endif | |
16698 | ||
16699 | #undef ldap_result2error | |
16700 | ||
dd184caf | 16701 | /* Override any GCC internal prototype to avoid an error. |
16702 | Use char because int might match the return type of a GCC | |
16703 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 16704 | #ifdef __cplusplus |
16705 | extern "C" | |
d9898ee8 | 16706 | #endif |
d9898ee8 | 16707 | char ldap_result2error (); |
16708 | /* The GNU C library defines this for functions which it implements | |
16709 | to always fail with ENOSYS. Some functions are actually named | |
16710 | something starting with __ and the normal name is an alias. */ | |
dd184caf | 16711 | #if defined __stub_ldap_result2error || defined __stub___ldap_result2error |
d9898ee8 | 16712 | choke me |
d9898ee8 | 16713 | #endif |
16714 | ||
16715 | int | |
16716 | main () | |
16717 | { | |
dd184caf | 16718 | return ldap_result2error (); |
d9898ee8 | 16719 | ; |
16720 | return 0; | |
16721 | } | |
16722 | _ACEOF | |
16723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 16724 | if { (ac_try="$ac_link" |
16725 | case "(($ac_try" in | |
16726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16727 | *) ac_try_echo=$ac_try;; | |
16728 | esac | |
8d138742 CE |
16729 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16730 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 16731 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 16732 | ac_status=$? |
16733 | grep -v '^ *+' conftest.er1 >conftest.err | |
16734 | rm -f conftest.er1 | |
16735 | cat conftest.err >&5 | |
8d138742 | 16736 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 16737 | (exit $ac_status); } && { |
16738 | test -z "$ac_c_werror_flag" || | |
16739 | test ! -s conftest.err | |
8d138742 CE |
16740 | } && test -s conftest$ac_exeext && { |
16741 | test "$cross_compiling" = yes || | |
16742 | $as_test_x conftest$ac_exeext | |
16743 | }; then | |
d9898ee8 | 16744 | ac_cv_func_ldap_result2error=yes |
16745 | else | |
8d138742 | 16746 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 16747 | sed 's/^/| /' conftest.$ac_ext >&5 |
16748 | ||
dd184caf | 16749 | ac_cv_func_ldap_result2error=no |
d9898ee8 | 16750 | fi |
dd184caf | 16751 | |
8d138742 | 16752 | rm -rf conftest.dSYM |
dd184caf | 16753 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 16754 | conftest$ac_exeext conftest.$ac_ext |
16755 | fi | |
8d138742 CE |
16756 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_result2error" >&5 |
16757 | $as_echo "$ac_cv_func_ldap_result2error" >&6; } | |
16758 | if test "x$ac_cv_func_ldap_result2error" = x""yes; then | |
d9898ee8 | 16759 | HAVE_LDAP_RESULT2ERROR=1 |
16760 | else | |
16761 | HAVE_LDAP_RESULT2ERROR=0 | |
16762 | fi | |
16763 | ||
8d138742 CE |
16764 | { $as_echo "$as_me:$LINENO: checking for ldap_parse_result" >&5 |
16765 | $as_echo_n "checking for ldap_parse_result... " >&6; } | |
d9898ee8 | 16766 | if test "${ac_cv_func_ldap_parse_result+set}" = set; then |
8d138742 | 16767 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 16768 | else |
16769 | cat >conftest.$ac_ext <<_ACEOF | |
16770 | /* confdefs.h. */ | |
16771 | _ACEOF | |
16772 | cat confdefs.h >>conftest.$ac_ext | |
16773 | cat >>conftest.$ac_ext <<_ACEOF | |
16774 | /* end confdefs.h. */ | |
16775 | /* Define ldap_parse_result to an innocuous variant, in case <limits.h> declares ldap_parse_result. | |
16776 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16777 | #define ldap_parse_result innocuous_ldap_parse_result | |
16778 | ||
16779 | /* System header to define __stub macros and hopefully few prototypes, | |
16780 | which can conflict with char ldap_parse_result (); below. | |
16781 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16782 | <limits.h> exists even on freestanding compilers. */ | |
16783 | ||
16784 | #ifdef __STDC__ | |
16785 | # include <limits.h> | |
16786 | #else | |
16787 | # include <assert.h> | |
16788 | #endif | |
16789 | ||
16790 | #undef ldap_parse_result | |
16791 | ||
dd184caf | 16792 | /* Override any GCC internal prototype to avoid an error. |
16793 | Use char because int might match the return type of a GCC | |
16794 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 16795 | #ifdef __cplusplus |
16796 | extern "C" | |
d9898ee8 | 16797 | #endif |
d9898ee8 | 16798 | char ldap_parse_result (); |
16799 | /* The GNU C library defines this for functions which it implements | |
16800 | to always fail with ENOSYS. Some functions are actually named | |
16801 | something starting with __ and the normal name is an alias. */ | |
dd184caf | 16802 | #if defined __stub_ldap_parse_result || defined __stub___ldap_parse_result |
d9898ee8 | 16803 | choke me |
d9898ee8 | 16804 | #endif |
16805 | ||
16806 | int | |
16807 | main () | |
16808 | { | |
dd184caf | 16809 | return ldap_parse_result (); |
d9898ee8 | 16810 | ; |
16811 | return 0; | |
16812 | } | |
16813 | _ACEOF | |
16814 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 16815 | if { (ac_try="$ac_link" |
16816 | case "(($ac_try" in | |
16817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16818 | *) ac_try_echo=$ac_try;; | |
16819 | esac | |
8d138742 CE |
16820 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16821 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 16822 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 16823 | ac_status=$? |
16824 | grep -v '^ *+' conftest.er1 >conftest.err | |
16825 | rm -f conftest.er1 | |
16826 | cat conftest.err >&5 | |
8d138742 | 16827 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 16828 | (exit $ac_status); } && { |
16829 | test -z "$ac_c_werror_flag" || | |
16830 | test ! -s conftest.err | |
8d138742 CE |
16831 | } && test -s conftest$ac_exeext && { |
16832 | test "$cross_compiling" = yes || | |
16833 | $as_test_x conftest$ac_exeext | |
16834 | }; then | |
d9898ee8 | 16835 | ac_cv_func_ldap_parse_result=yes |
16836 | else | |
8d138742 | 16837 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 16838 | sed 's/^/| /' conftest.$ac_ext >&5 |
16839 | ||
dd184caf | 16840 | ac_cv_func_ldap_parse_result=no |
d9898ee8 | 16841 | fi |
dd184caf | 16842 | |
8d138742 | 16843 | rm -rf conftest.dSYM |
dd184caf | 16844 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 16845 | conftest$ac_exeext conftest.$ac_ext |
16846 | fi | |
8d138742 CE |
16847 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_parse_result" >&5 |
16848 | $as_echo "$ac_cv_func_ldap_parse_result" >&6; } | |
16849 | if test "x$ac_cv_func_ldap_parse_result" = x""yes; then | |
d9898ee8 | 16850 | HAVE_LDAP_PARSE_RESULT=1 |
16851 | else | |
16852 | HAVE_LDAP_PARSE_RESULT=0 | |
16853 | fi | |
16854 | ||
16855 | LIBS="$saveLIBS" | |
16856 | fi | |
16857 | ||
16858 | ||
dd184caf | 16859 | # Check whether --with-authldaprc was given. |
d9898ee8 | 16860 | if test "${with_authldaprc+set}" = set; then |
dd184caf | 16861 | withval=$with_authldaprc; authldaprc="$withval" |
d9898ee8 | 16862 | else |
16863 | authldaprc="$pkgconfdir/authldaprc" | |
dd184caf | 16864 | fi |
16865 | ||
d9898ee8 | 16866 | |
16867 | ||
16868 | LIBAUTHLDAP="" | |
16869 | if test "$HAVE_LDAP" = 1 | |
16870 | then | |
16871 | LIBAUTHLDAP="libauthldap.la" | |
16872 | else | |
16873 | authldaprc="" | |
16874 | fi | |
16875 | ||
16876 | ||
16877 | ||
dd184caf | 16878 | if test "$HAVE_LDAP" = 1; then |
d9898ee8 | 16879 | HAVE_LDAP_TRUE= |
16880 | HAVE_LDAP_FALSE='#' | |
16881 | else | |
16882 | HAVE_LDAP_TRUE='#' | |
16883 | HAVE_LDAP_FALSE= | |
16884 | fi | |
16885 | ||
16886 | ||
16887 | cat >>confdefs.h <<_ACEOF | |
16888 | #define HAVE_LDAP_TLS $HAVE_LDAP_TLS | |
16889 | _ACEOF | |
16890 | ||
16891 | ||
16892 | cat >>confdefs.h <<_ACEOF | |
16893 | #define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR | |
16894 | _ACEOF | |
16895 | ||
16896 | ||
16897 | cat >>confdefs.h <<_ACEOF | |
16898 | #define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT | |
16899 | _ACEOF | |
16900 | ||
16901 | ||
16902 | ||
16903 | ||
16904 | ||
dd184caf | 16905 | # Check whether --with-authpwd was given. |
d9898ee8 | 16906 | if test "${with_authpwd+set}" = set; then |
dd184caf | 16907 | withval=$with_authpwd; doauthpwd="$withval" |
d9898ee8 | 16908 | else |
16909 | doauthpwd="yes" | |
16910 | test "$HAVE_PAM" = 1 && doauthpwd="no" | |
16911 | test "$HAVE_LDAP" = 1 && doauthpwd="no" | |
16912 | ||
dd184caf | 16913 | fi |
16914 | ||
d9898ee8 | 16915 | |
16916 | HAVE_PWD=1 | |
16917 | if test "$doauthpwd" = "no" | |
16918 | then | |
16919 | HAVE_PWD=0 | |
16920 | fi | |
16921 | ||
16922 | for ac_func in endpwent | |
16923 | do | |
8d138742 CE |
16924 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16925 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16926 | $as_echo_n "checking for $ac_func... " >&6; } | |
dd184caf | 16927 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 16928 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 16929 | else |
16930 | cat >conftest.$ac_ext <<_ACEOF | |
16931 | /* confdefs.h. */ | |
16932 | _ACEOF | |
16933 | cat confdefs.h >>conftest.$ac_ext | |
16934 | cat >>conftest.$ac_ext <<_ACEOF | |
16935 | /* end confdefs.h. */ | |
16936 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16937 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16938 | #define $ac_func innocuous_$ac_func | |
16939 | ||
16940 | /* System header to define __stub macros and hopefully few prototypes, | |
16941 | which can conflict with char $ac_func (); below. | |
16942 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16943 | <limits.h> exists even on freestanding compilers. */ | |
16944 | ||
16945 | #ifdef __STDC__ | |
16946 | # include <limits.h> | |
16947 | #else | |
16948 | # include <assert.h> | |
16949 | #endif | |
16950 | ||
16951 | #undef $ac_func | |
16952 | ||
dd184caf | 16953 | /* Override any GCC internal prototype to avoid an error. |
16954 | Use char because int might match the return type of a GCC | |
16955 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 16956 | #ifdef __cplusplus |
16957 | extern "C" | |
d9898ee8 | 16958 | #endif |
d9898ee8 | 16959 | char $ac_func (); |
16960 | /* The GNU C library defines this for functions which it implements | |
16961 | to always fail with ENOSYS. Some functions are actually named | |
16962 | something starting with __ and the normal name is an alias. */ | |
dd184caf | 16963 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 | 16964 | choke me |
d9898ee8 | 16965 | #endif |
16966 | ||
16967 | int | |
16968 | main () | |
16969 | { | |
dd184caf | 16970 | return $ac_func (); |
d9898ee8 | 16971 | ; |
16972 | return 0; | |
16973 | } | |
16974 | _ACEOF | |
16975 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 16976 | if { (ac_try="$ac_link" |
16977 | case "(($ac_try" in | |
16978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16979 | *) ac_try_echo=$ac_try;; | |
16980 | esac | |
8d138742 CE |
16981 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16982 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 16983 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 16984 | ac_status=$? |
16985 | grep -v '^ *+' conftest.er1 >conftest.err | |
16986 | rm -f conftest.er1 | |
16987 | cat conftest.err >&5 | |
8d138742 | 16988 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 16989 | (exit $ac_status); } && { |
16990 | test -z "$ac_c_werror_flag" || | |
16991 | test ! -s conftest.err | |
8d138742 CE |
16992 | } && test -s conftest$ac_exeext && { |
16993 | test "$cross_compiling" = yes || | |
16994 | $as_test_x conftest$ac_exeext | |
16995 | }; then | |
d9898ee8 | 16996 | eval "$as_ac_var=yes" |
16997 | else | |
8d138742 | 16998 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 16999 | sed 's/^/| /' conftest.$ac_ext >&5 |
17000 | ||
dd184caf | 17001 | eval "$as_ac_var=no" |
d9898ee8 | 17002 | fi |
dd184caf | 17003 | |
8d138742 | 17004 | rm -rf conftest.dSYM |
dd184caf | 17005 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 17006 | conftest$ac_exeext conftest.$ac_ext |
17007 | fi | |
8d138742 CE |
17008 | ac_res=`eval 'as_val=${'$as_ac_var'} |
17009 | $as_echo "$as_val"'` | |
17010 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17011 | $as_echo "$ac_res" >&6; } | |
17012 | as_val=`eval 'as_val=${'$as_ac_var'} | |
17013 | $as_echo "$as_val"'` | |
17014 | if test "x$as_val" = x""yes; then | |
d9898ee8 | 17015 | cat >>confdefs.h <<_ACEOF |
8d138742 | 17016 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d9898ee8 | 17017 | _ACEOF |
17018 | ||
17019 | fi | |
17020 | done | |
17021 | ||
17022 | ||
17023 | ||
17024 | ||
17025 | ||
17026 | ||
dd184caf | 17027 | # Check whether --with-authshadow was given. |
d9898ee8 | 17028 | if test "${with_authshadow+set}" = set; then |
dd184caf | 17029 | withval=$with_authshadow; doauthshadow="$withval" |
d9898ee8 | 17030 | else |
17031 | doauthshadow="yes" | |
17032 | test "$HAVE_PAM" = 1 && doauthshadow="no" | |
17033 | test "$HAVE_LDAP" = 1 && doauthshadow="no" | |
dd184caf | 17034 | fi |
17035 | ||
d9898ee8 | 17036 | |
17037 | ||
17038 | for ac_header in shadow.h | |
17039 | do | |
8d138742 | 17040 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf | 17041 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 CE |
17042 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17043 | $as_echo_n "checking for $ac_header... " >&6; } | |
dd184caf | 17044 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 17045 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 17046 | fi |
8d138742 CE |
17047 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17048 | $as_echo "$as_val"'` | |
17049 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17050 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 17051 | else |
17052 | # Is the header compilable? | |
8d138742 CE |
17053 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17054 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d9898ee8 | 17055 | cat >conftest.$ac_ext <<_ACEOF |
17056 | /* confdefs.h. */ | |
17057 | _ACEOF | |
17058 | cat confdefs.h >>conftest.$ac_ext | |
17059 | cat >>conftest.$ac_ext <<_ACEOF | |
17060 | /* end confdefs.h. */ | |
17061 | $ac_includes_default | |
17062 | #include <$ac_header> | |
17063 | _ACEOF | |
17064 | rm -f conftest.$ac_objext | |
dd184caf | 17065 | if { (ac_try="$ac_compile" |
17066 | case "(($ac_try" in | |
17067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17068 | *) ac_try_echo=$ac_try;; | |
17069 | esac | |
8d138742 CE |
17070 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17071 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 17072 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 17073 | ac_status=$? |
17074 | grep -v '^ *+' conftest.er1 >conftest.err | |
17075 | rm -f conftest.er1 | |
17076 | cat conftest.err >&5 | |
8d138742 | 17077 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 17078 | (exit $ac_status); } && { |
17079 | test -z "$ac_c_werror_flag" || | |
17080 | test ! -s conftest.err | |
17081 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 17082 | ac_header_compiler=yes |
17083 | else | |
8d138742 | 17084 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 17085 | sed 's/^/| /' conftest.$ac_ext >&5 |
17086 | ||
dd184caf | 17087 | ac_header_compiler=no |
d9898ee8 | 17088 | fi |
dd184caf | 17089 | |
17090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8d138742 CE |
17091 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17092 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 17093 | |
17094 | # Is the header present? | |
8d138742 CE |
17095 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17096 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d9898ee8 | 17097 | cat >conftest.$ac_ext <<_ACEOF |
17098 | /* confdefs.h. */ | |
17099 | _ACEOF | |
17100 | cat confdefs.h >>conftest.$ac_ext | |
17101 | cat >>conftest.$ac_ext <<_ACEOF | |
17102 | /* end confdefs.h. */ | |
17103 | #include <$ac_header> | |
17104 | _ACEOF | |
dd184caf | 17105 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17106 | case "(($ac_try" in | |
17107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17108 | *) ac_try_echo=$ac_try;; | |
17109 | esac | |
8d138742 CE |
17110 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17111 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 17112 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 17113 | ac_status=$? |
17114 | grep -v '^ *+' conftest.er1 >conftest.err | |
17115 | rm -f conftest.er1 | |
17116 | cat conftest.err >&5 | |
8d138742 | 17117 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 17118 | (exit $ac_status); } >/dev/null && { |
17119 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17120 | test ! -s conftest.err | |
17121 | }; then | |
d9898ee8 | 17122 | ac_header_preproc=yes |
17123 | else | |
8d138742 | 17124 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 17125 | sed 's/^/| /' conftest.$ac_ext >&5 |
17126 | ||
17127 | ac_header_preproc=no | |
17128 | fi | |
dd184caf | 17129 | |
d9898ee8 | 17130 | rm -f conftest.err conftest.$ac_ext |
8d138742 CE |
17131 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17132 | $as_echo "$ac_header_preproc" >&6; } | |
d9898ee8 | 17133 | |
17134 | # So? What about this header? | |
17135 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17136 | yes:no: ) | |
8d138742 CE |
17137 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17138 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17139 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17140 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d9898ee8 | 17141 | ac_header_preproc=yes |
17142 | ;; | |
17143 | no:yes:* ) | |
8d138742 CE |
17144 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17145 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17146 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17147 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17148 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17149 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17150 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17151 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17152 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17153 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17154 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17155 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
dd184caf | 17156 | ( cat <<\_ASBOX |
8d138742 CE |
17157 | ## -------------------------------------------------- ## |
17158 | ## Report this to courier-users@lists.sourceforge.net ## | |
17159 | ## -------------------------------------------------- ## | |
d9898ee8 | 17160 | _ASBOX |
dd184caf | 17161 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 | 17162 | ;; |
17163 | esac | |
8d138742 CE |
17164 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17165 | $as_echo_n "checking for $ac_header... " >&6; } | |
dd184caf | 17166 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 17167 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 17168 | else |
17169 | eval "$as_ac_Header=\$ac_header_preproc" | |
17170 | fi | |
8d138742 CE |
17171 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17172 | $as_echo "$as_val"'` | |
17173 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17174 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 17175 | |
17176 | fi | |
8d138742 CE |
17177 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17178 | $as_echo "$as_val"'` | |
17179 | if test "x$as_val" = x""yes; then | |
d9898ee8 | 17180 | cat >>confdefs.h <<_ACEOF |
8d138742 | 17181 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d9898ee8 | 17182 | _ACEOF |
17183 | ||
17184 | fi | |
17185 | ||
17186 | done | |
17187 | ||
17188 | saveLIBS="$LIBS" | |
17189 | SHADOWLIBS="" | |
8d138742 CE |
17190 | { $as_echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5 |
17191 | $as_echo_n "checking for getspent in -lshadow... " >&6; } | |
d9898ee8 | 17192 | if test "${ac_cv_lib_shadow_getspent+set}" = set; then |
8d138742 | 17193 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 17194 | else |
17195 | ac_check_lib_save_LIBS=$LIBS | |
17196 | LIBS="-lshadow $LIBS" | |
17197 | cat >conftest.$ac_ext <<_ACEOF | |
17198 | /* confdefs.h. */ | |
17199 | _ACEOF | |
17200 | cat confdefs.h >>conftest.$ac_ext | |
17201 | cat >>conftest.$ac_ext <<_ACEOF | |
17202 | /* end confdefs.h. */ | |
17203 | ||
dd184caf | 17204 | /* Override any GCC internal prototype to avoid an error. |
17205 | Use char because int might match the return type of a GCC | |
17206 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 17207 | #ifdef __cplusplus |
17208 | extern "C" | |
17209 | #endif | |
d9898ee8 | 17210 | char getspent (); |
17211 | int | |
17212 | main () | |
17213 | { | |
dd184caf | 17214 | return getspent (); |
d9898ee8 | 17215 | ; |
17216 | return 0; | |
17217 | } | |
17218 | _ACEOF | |
17219 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 17220 | if { (ac_try="$ac_link" |
17221 | case "(($ac_try" in | |
17222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17223 | *) ac_try_echo=$ac_try;; | |
17224 | esac | |
8d138742 CE |
17225 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17226 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 17227 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 17228 | ac_status=$? |
17229 | grep -v '^ *+' conftest.er1 >conftest.err | |
17230 | rm -f conftest.er1 | |
17231 | cat conftest.err >&5 | |
8d138742 | 17232 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 17233 | (exit $ac_status); } && { |
17234 | test -z "$ac_c_werror_flag" || | |
17235 | test ! -s conftest.err | |
8d138742 CE |
17236 | } && test -s conftest$ac_exeext && { |
17237 | test "$cross_compiling" = yes || | |
17238 | $as_test_x conftest$ac_exeext | |
17239 | }; then | |
d9898ee8 | 17240 | ac_cv_lib_shadow_getspent=yes |
17241 | else | |
8d138742 | 17242 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 17243 | sed 's/^/| /' conftest.$ac_ext >&5 |
17244 | ||
dd184caf | 17245 | ac_cv_lib_shadow_getspent=no |
d9898ee8 | 17246 | fi |
dd184caf | 17247 | |
8d138742 | 17248 | rm -rf conftest.dSYM |
dd184caf | 17249 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 17250 | conftest$ac_exeext conftest.$ac_ext |
17251 | LIBS=$ac_check_lib_save_LIBS | |
17252 | fi | |
8d138742 CE |
17253 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5 |
17254 | $as_echo "$ac_cv_lib_shadow_getspent" >&6; } | |
17255 | if test "x$ac_cv_lib_shadow_getspent" = x""yes; then | |
d9898ee8 | 17256 | SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS" |
17257 | fi | |
17258 | ||
17259 | ||
17260 | ||
17261 | for ac_func in endspent getspent | |
17262 | do | |
8d138742 CE |
17263 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17264 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17265 | $as_echo_n "checking for $ac_func... " >&6; } | |
dd184caf | 17266 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 17267 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 17268 | else |
17269 | cat >conftest.$ac_ext <<_ACEOF | |
17270 | /* confdefs.h. */ | |
17271 | _ACEOF | |
17272 | cat confdefs.h >>conftest.$ac_ext | |
17273 | cat >>conftest.$ac_ext <<_ACEOF | |
17274 | /* end confdefs.h. */ | |
17275 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17276 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17277 | #define $ac_func innocuous_$ac_func | |
17278 | ||
17279 | /* System header to define __stub macros and hopefully few prototypes, | |
17280 | which can conflict with char $ac_func (); below. | |
17281 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17282 | <limits.h> exists even on freestanding compilers. */ | |
17283 | ||
17284 | #ifdef __STDC__ | |
17285 | # include <limits.h> | |
17286 | #else | |
17287 | # include <assert.h> | |
17288 | #endif | |
17289 | ||
17290 | #undef $ac_func | |
17291 | ||
dd184caf | 17292 | /* Override any GCC internal prototype to avoid an error. |
17293 | Use char because int might match the return type of a GCC | |
17294 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 17295 | #ifdef __cplusplus |
17296 | extern "C" | |
d9898ee8 | 17297 | #endif |
d9898ee8 | 17298 | char $ac_func (); |
17299 | /* The GNU C library defines this for functions which it implements | |
17300 | to always fail with ENOSYS. Some functions are actually named | |
17301 | something starting with __ and the normal name is an alias. */ | |
dd184caf | 17302 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 | 17303 | choke me |
d9898ee8 | 17304 | #endif |
17305 | ||
17306 | int | |
17307 | main () | |
17308 | { | |
dd184caf | 17309 | return $ac_func (); |
d9898ee8 | 17310 | ; |
17311 | return 0; | |
17312 | } | |
17313 | _ACEOF | |
17314 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 17315 | if { (ac_try="$ac_link" |
17316 | case "(($ac_try" in | |
17317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17318 | *) ac_try_echo=$ac_try;; | |
17319 | esac | |
8d138742 CE |
17320 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17321 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 17322 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 17323 | ac_status=$? |
17324 | grep -v '^ *+' conftest.er1 >conftest.err | |
17325 | rm -f conftest.er1 | |
17326 | cat conftest.err >&5 | |
8d138742 | 17327 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 17328 | (exit $ac_status); } && { |
17329 | test -z "$ac_c_werror_flag" || | |
17330 | test ! -s conftest.err | |
8d138742 CE |
17331 | } && test -s conftest$ac_exeext && { |
17332 | test "$cross_compiling" = yes || | |
17333 | $as_test_x conftest$ac_exeext | |
17334 | }; then | |
d9898ee8 | 17335 | eval "$as_ac_var=yes" |
17336 | else | |
8d138742 | 17337 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 17338 | sed 's/^/| /' conftest.$ac_ext >&5 |
17339 | ||
dd184caf | 17340 | eval "$as_ac_var=no" |
d9898ee8 | 17341 | fi |
dd184caf | 17342 | |
8d138742 | 17343 | rm -rf conftest.dSYM |
dd184caf | 17344 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 17345 | conftest$ac_exeext conftest.$ac_ext |
17346 | fi | |
8d138742 CE |
17347 | ac_res=`eval 'as_val=${'$as_ac_var'} |
17348 | $as_echo "$as_val"'` | |
17349 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17350 | $as_echo "$ac_res" >&6; } | |
17351 | as_val=`eval 'as_val=${'$as_ac_var'} | |
17352 | $as_echo "$as_val"'` | |
17353 | if test "x$as_val" = x""yes; then | |
d9898ee8 | 17354 | cat >>confdefs.h <<_ACEOF |
8d138742 | 17355 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d9898ee8 | 17356 | _ACEOF |
17357 | ||
17358 | fi | |
17359 | done | |
17360 | ||
17361 | LIBS="$saveLIBS" | |
17362 | ||
17363 | if test "$doauthshadow" = "no" | |
17364 | then | |
17365 | HAVE_SHADOW=0 | |
17366 | else | |
17367 | ||
17368 | saveLIBS="$LIBS" | |
17369 | ||
8d138742 CE |
17370 | { $as_echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5 |
17371 | $as_echo_n "checking for getspent in -lshadow... " >&6; } | |
d9898ee8 | 17372 | if test "${ac_cv_lib_shadow_getspent+set}" = set; then |
8d138742 | 17373 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 17374 | else |
17375 | ac_check_lib_save_LIBS=$LIBS | |
17376 | LIBS="-lshadow $LIBS" | |
17377 | cat >conftest.$ac_ext <<_ACEOF | |
17378 | /* confdefs.h. */ | |
17379 | _ACEOF | |
17380 | cat confdefs.h >>conftest.$ac_ext | |
17381 | cat >>conftest.$ac_ext <<_ACEOF | |
17382 | /* end confdefs.h. */ | |
17383 | ||
dd184caf | 17384 | /* Override any GCC internal prototype to avoid an error. |
17385 | Use char because int might match the return type of a GCC | |
17386 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 17387 | #ifdef __cplusplus |
17388 | extern "C" | |
17389 | #endif | |
d9898ee8 | 17390 | char getspent (); |
17391 | int | |
17392 | main () | |
17393 | { | |
dd184caf | 17394 | return getspent (); |
d9898ee8 | 17395 | ; |
17396 | return 0; | |
17397 | } | |
17398 | _ACEOF | |
17399 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 17400 | if { (ac_try="$ac_link" |
17401 | case "(($ac_try" in | |
17402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17403 | *) ac_try_echo=$ac_try;; | |
17404 | esac | |
8d138742 CE |
17405 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17406 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 17407 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 17408 | ac_status=$? |
17409 | grep -v '^ *+' conftest.er1 >conftest.err | |
17410 | rm -f conftest.er1 | |
17411 | cat conftest.err >&5 | |
8d138742 | 17412 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 17413 | (exit $ac_status); } && { |
17414 | test -z "$ac_c_werror_flag" || | |
17415 | test ! -s conftest.err | |
8d138742 CE |
17416 | } && test -s conftest$ac_exeext && { |
17417 | test "$cross_compiling" = yes || | |
17418 | $as_test_x conftest$ac_exeext | |
17419 | }; then | |
d9898ee8 | 17420 | ac_cv_lib_shadow_getspent=yes |
17421 | else | |
8d138742 | 17422 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 17423 | sed 's/^/| /' conftest.$ac_ext >&5 |
17424 | ||
dd184caf | 17425 | ac_cv_lib_shadow_getspent=no |
d9898ee8 | 17426 | fi |
dd184caf | 17427 | |
8d138742 | 17428 | rm -rf conftest.dSYM |
dd184caf | 17429 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 17430 | conftest$ac_exeext conftest.$ac_ext |
17431 | LIBS=$ac_check_lib_save_LIBS | |
17432 | fi | |
8d138742 CE |
17433 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5 |
17434 | $as_echo "$ac_cv_lib_shadow_getspent" >&6; } | |
17435 | if test "x$ac_cv_lib_shadow_getspent" = x""yes; then | |
d9898ee8 | 17436 | cat >>confdefs.h <<_ACEOF |
17437 | #define HAVE_LIBSHADOW 1 | |
17438 | _ACEOF | |
17439 | ||
17440 | LIBS="-lshadow $LIBS" | |
17441 | ||
17442 | fi | |
17443 | ||
8d138742 CE |
17444 | { $as_echo "$as_me:$LINENO: checking for getspent" >&5 |
17445 | $as_echo_n "checking for getspent... " >&6; } | |
d9898ee8 | 17446 | if test "${ac_cv_func_getspent+set}" = set; then |
8d138742 | 17447 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 17448 | else |
17449 | cat >conftest.$ac_ext <<_ACEOF | |
17450 | /* confdefs.h. */ | |
17451 | _ACEOF | |
17452 | cat confdefs.h >>conftest.$ac_ext | |
17453 | cat >>conftest.$ac_ext <<_ACEOF | |
17454 | /* end confdefs.h. */ | |
17455 | /* Define getspent to an innocuous variant, in case <limits.h> declares getspent. | |
17456 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17457 | #define getspent innocuous_getspent | |
17458 | ||
17459 | /* System header to define __stub macros and hopefully few prototypes, | |
17460 | which can conflict with char getspent (); below. | |
17461 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17462 | <limits.h> exists even on freestanding compilers. */ | |
17463 | ||
17464 | #ifdef __STDC__ | |
17465 | # include <limits.h> | |
17466 | #else | |
17467 | # include <assert.h> | |
17468 | #endif | |
17469 | ||
17470 | #undef getspent | |
17471 | ||
dd184caf | 17472 | /* Override any GCC internal prototype to avoid an error. |
17473 | Use char because int might match the return type of a GCC | |
17474 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 17475 | #ifdef __cplusplus |
17476 | extern "C" | |
d9898ee8 | 17477 | #endif |
d9898ee8 | 17478 | char getspent (); |
17479 | /* The GNU C library defines this for functions which it implements | |
17480 | to always fail with ENOSYS. Some functions are actually named | |
17481 | something starting with __ and the normal name is an alias. */ | |
dd184caf | 17482 | #if defined __stub_getspent || defined __stub___getspent |
d9898ee8 | 17483 | choke me |
d9898ee8 | 17484 | #endif |
17485 | ||
17486 | int | |
17487 | main () | |
17488 | { | |
dd184caf | 17489 | return getspent (); |
d9898ee8 | 17490 | ; |
17491 | return 0; | |
17492 | } | |
17493 | _ACEOF | |
17494 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 17495 | if { (ac_try="$ac_link" |
17496 | case "(($ac_try" in | |
17497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17498 | *) ac_try_echo=$ac_try;; | |
17499 | esac | |
8d138742 CE |
17500 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17501 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 17502 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 17503 | ac_status=$? |
17504 | grep -v '^ *+' conftest.er1 >conftest.err | |
17505 | rm -f conftest.er1 | |
17506 | cat conftest.err >&5 | |
8d138742 | 17507 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 17508 | (exit $ac_status); } && { |
17509 | test -z "$ac_c_werror_flag" || | |
17510 | test ! -s conftest.err | |
8d138742 CE |
17511 | } && test -s conftest$ac_exeext && { |
17512 | test "$cross_compiling" = yes || | |
17513 | $as_test_x conftest$ac_exeext | |
17514 | }; then | |
d9898ee8 | 17515 | ac_cv_func_getspent=yes |
17516 | else | |
8d138742 | 17517 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 17518 | sed 's/^/| /' conftest.$ac_ext >&5 |
17519 | ||
dd184caf | 17520 | ac_cv_func_getspent=no |
d9898ee8 | 17521 | fi |
dd184caf | 17522 | |
8d138742 | 17523 | rm -rf conftest.dSYM |
dd184caf | 17524 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 17525 | conftest$ac_exeext conftest.$ac_ext |
17526 | fi | |
8d138742 CE |
17527 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getspent" >&5 |
17528 | $as_echo "$ac_cv_func_getspent" >&6; } | |
17529 | if test "x$ac_cv_func_getspent" = x""yes; then | |
d9898ee8 | 17530 | HAVE_SHADOW=1 |
17531 | else | |
17532 | HAVE_SHADOW=0 | |
17533 | fi | |
17534 | ||
17535 | LIBS="$saveLIBS" | |
17536 | fi | |
17537 | ||
17538 | LIBAUTHSHADOW="" | |
17539 | if test "$HAVE_SHADOW" = 1 | |
17540 | then | |
17541 | LIBAUTHSHADOW="libauthshadow.la" | |
17542 | fi | |
17543 | ||
17544 | ||
17545 | ||
17546 | LIBAUTHPWD="" | |
17547 | if test "$HAVE_PWD" = 1 | |
17548 | then | |
17549 | LIBAUTHPWD="libauthpwd.la" | |
17550 | fi | |
17551 | ||
17552 | ||
17553 | ||
17554 | ||
17555 | ||
17556 | ||
dd184caf | 17557 | # Check whether --with-authpgsqlrc was given. |
d9898ee8 | 17558 | if test "${with_authpgsqlrc+set}" = set; then |
dd184caf | 17559 | withval=$with_authpgsqlrc; authpgsqlrc="$withval" |
d9898ee8 | 17560 | else |
17561 | authpgsqlrc="$pkgconfdir/authpgsqlrc" | |
dd184caf | 17562 | fi |
d9898ee8 | 17563 | |
17564 | ||
17565 | ||
dd184caf | 17566 | |
17567 | # Check whether --with-authpgsql was given. | |
d9898ee8 | 17568 | if test "${with_authpgsql+set}" = set; then |
dd184caf | 17569 | withval=$with_authpgsql; doauthpgsql="$withval" |
17570 | fi | |
17571 | ||
d9898ee8 | 17572 | |
17573 | for ac_prog in pg_config | |
17574 | do | |
17575 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
17576 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
17577 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
17578 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 17579 | if test "${ac_cv_path_PG_CONFIG+set}" = set; then |
8d138742 | 17580 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 17581 | else |
17582 | case $PG_CONFIG in | |
17583 | [\\/]* | ?:[\\/]*) | |
17584 | ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. | |
17585 | ;; | |
17586 | *) | |
17587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17588 | for as_dir in $LPATH | |
17589 | do | |
17590 | IFS=$as_save_IFS | |
17591 | test -z "$as_dir" && as_dir=. | |
17592 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 17593 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 17594 | ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
8d138742 | 17595 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 17596 | break 2 |
17597 | fi | |
17598 | done | |
17599 | done | |
dd184caf | 17600 | IFS=$as_save_IFS |
d9898ee8 | 17601 | |
17602 | ;; | |
17603 | esac | |
17604 | fi | |
17605 | PG_CONFIG=$ac_cv_path_PG_CONFIG | |
d9898ee8 | 17606 | if test -n "$PG_CONFIG"; then |
8d138742 CE |
17607 | { $as_echo "$as_me:$LINENO: result: $PG_CONFIG" >&5 |
17608 | $as_echo "$PG_CONFIG" >&6; } | |
d9898ee8 | 17609 | else |
8d138742 CE |
17610 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17611 | $as_echo "no" >&6; } | |
d9898ee8 | 17612 | fi |
17613 | ||
dd184caf | 17614 | |
d9898ee8 | 17615 | test -n "$PG_CONFIG" && break |
17616 | done | |
17617 | test -n "$PG_CONFIG" || PG_CONFIG="pg_config" | |
17618 | ||
17619 | ||
17620 | PGSQL_LIBS="-lpq" | |
17621 | ||
dd184caf | 17622 | # Check whether --with-pgsql-libs was given. |
d9898ee8 | 17623 | if test "${with_pgsql_libs+set}" = set; then |
dd184caf | 17624 | withval=$with_pgsql_libs; PGSQL_LIBS="-L$withval $PGSQL_LIBS" |
d9898ee8 | 17625 | else |
17626 | if test -x $PG_CONFIG | |
17627 | then | |
17628 | PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS" | |
17629 | fi | |
17630 | ||
dd184caf | 17631 | fi |
17632 | ||
d9898ee8 | 17633 | |
dd184caf | 17634 | # Check whether --with-pgsql-includes was given. |
d9898ee8 | 17635 | if test "${with_pgsql_includes+set}" = set; then |
dd184caf | 17636 | withval=$with_pgsql_includes; PGSQL_CFLAGS="-I$withval" |
d9898ee8 | 17637 | else |
17638 | if test -x $PG_CONFIG | |
17639 | then | |
17640 | PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`" | |
17641 | fi | |
17642 | ||
dd184caf | 17643 | fi |
17644 | ||
d9898ee8 | 17645 | |
17646 | if test "$doauthpgsql" = "" | |
17647 | then | |
17648 | LIBS="$PGSQL_LIBS $LIBS" | |
8d138742 CE |
17649 | { $as_echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5 |
17650 | $as_echo_n "checking for PQsetdbLogin... " >&6; } | |
d9898ee8 | 17651 | if test "${ac_cv_func_PQsetdbLogin+set}" = set; then |
8d138742 | 17652 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 17653 | else |
17654 | cat >conftest.$ac_ext <<_ACEOF | |
17655 | /* confdefs.h. */ | |
17656 | _ACEOF | |
17657 | cat confdefs.h >>conftest.$ac_ext | |
17658 | cat >>conftest.$ac_ext <<_ACEOF | |
17659 | /* end confdefs.h. */ | |
17660 | /* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin. | |
17661 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17662 | #define PQsetdbLogin innocuous_PQsetdbLogin | |
17663 | ||
17664 | /* System header to define __stub macros and hopefully few prototypes, | |
17665 | which can conflict with char PQsetdbLogin (); below. | |
17666 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17667 | <limits.h> exists even on freestanding compilers. */ | |
17668 | ||
17669 | #ifdef __STDC__ | |
17670 | # include <limits.h> | |
17671 | #else | |
17672 | # include <assert.h> | |
17673 | #endif | |
17674 | ||
17675 | #undef PQsetdbLogin | |
17676 | ||
dd184caf | 17677 | /* Override any GCC internal prototype to avoid an error. |
17678 | Use char because int might match the return type of a GCC | |
17679 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 17680 | #ifdef __cplusplus |
17681 | extern "C" | |
d9898ee8 | 17682 | #endif |
d9898ee8 | 17683 | char PQsetdbLogin (); |
17684 | /* The GNU C library defines this for functions which it implements | |
17685 | to always fail with ENOSYS. Some functions are actually named | |
17686 | something starting with __ and the normal name is an alias. */ | |
dd184caf | 17687 | #if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin |
d9898ee8 | 17688 | choke me |
d9898ee8 | 17689 | #endif |
17690 | ||
17691 | int | |
17692 | main () | |
17693 | { | |
dd184caf | 17694 | return PQsetdbLogin (); |
d9898ee8 | 17695 | ; |
17696 | return 0; | |
17697 | } | |
17698 | _ACEOF | |
17699 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 17700 | if { (ac_try="$ac_link" |
17701 | case "(($ac_try" in | |
17702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17703 | *) ac_try_echo=$ac_try;; | |
17704 | esac | |
8d138742 CE |
17705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17706 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 17707 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 17708 | ac_status=$? |
17709 | grep -v '^ *+' conftest.er1 >conftest.err | |
17710 | rm -f conftest.er1 | |
17711 | cat conftest.err >&5 | |
8d138742 | 17712 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 17713 | (exit $ac_status); } && { |
17714 | test -z "$ac_c_werror_flag" || | |
17715 | test ! -s conftest.err | |
8d138742 CE |
17716 | } && test -s conftest$ac_exeext && { |
17717 | test "$cross_compiling" = yes || | |
17718 | $as_test_x conftest$ac_exeext | |
17719 | }; then | |
d9898ee8 | 17720 | ac_cv_func_PQsetdbLogin=yes |
17721 | else | |
8d138742 | 17722 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 17723 | sed 's/^/| /' conftest.$ac_ext >&5 |
17724 | ||
dd184caf | 17725 | ac_cv_func_PQsetdbLogin=no |
d9898ee8 | 17726 | fi |
dd184caf | 17727 | |
8d138742 | 17728 | rm -rf conftest.dSYM |
dd184caf | 17729 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 17730 | conftest$ac_exeext conftest.$ac_ext |
17731 | fi | |
8d138742 CE |
17732 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5 |
17733 | $as_echo "$ac_cv_func_PQsetdbLogin" >&6; } | |
17734 | if test "x$ac_cv_func_PQsetdbLogin" = x""yes; then | |
d9898ee8 | 17735 | doauthpgsql="yes" |
17736 | ||
17737 | fi | |
17738 | ||
17739 | LIBS="$saveLIBS" | |
17740 | fi | |
17741 | ||
17742 | if test "$doauthpgsql" != "yes" | |
17743 | then | |
17744 | LIBAUTHPGSQL="" | |
17745 | HAVE_AUTHPGSQL=0 | |
17746 | else | |
17747 | saveLIBS="$LIBS" | |
17748 | LIBS="$PGSQL_LIBS $LIBS" | |
8d138742 CE |
17749 | { $as_echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5 |
17750 | $as_echo_n "checking for PQsetdbLogin... " >&6; } | |
d9898ee8 | 17751 | if test "${ac_cv_func_PQsetdbLogin+set}" = set; then |
8d138742 | 17752 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 17753 | else |
17754 | cat >conftest.$ac_ext <<_ACEOF | |
17755 | /* confdefs.h. */ | |
17756 | _ACEOF | |
17757 | cat confdefs.h >>conftest.$ac_ext | |
17758 | cat >>conftest.$ac_ext <<_ACEOF | |
17759 | /* end confdefs.h. */ | |
17760 | /* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin. | |
17761 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17762 | #define PQsetdbLogin innocuous_PQsetdbLogin | |
17763 | ||
17764 | /* System header to define __stub macros and hopefully few prototypes, | |
17765 | which can conflict with char PQsetdbLogin (); below. | |
17766 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17767 | <limits.h> exists even on freestanding compilers. */ | |
17768 | ||
17769 | #ifdef __STDC__ | |
17770 | # include <limits.h> | |
17771 | #else | |
17772 | # include <assert.h> | |
17773 | #endif | |
17774 | ||
17775 | #undef PQsetdbLogin | |
17776 | ||
dd184caf | 17777 | /* Override any GCC internal prototype to avoid an error. |
17778 | Use char because int might match the return type of a GCC | |
17779 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 17780 | #ifdef __cplusplus |
17781 | extern "C" | |
d9898ee8 | 17782 | #endif |
d9898ee8 | 17783 | char PQsetdbLogin (); |
17784 | /* The GNU C library defines this for functions which it implements | |
17785 | to always fail with ENOSYS. Some functions are actually named | |
17786 | something starting with __ and the normal name is an alias. */ | |
dd184caf | 17787 | #if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin |
d9898ee8 | 17788 | choke me |
d9898ee8 | 17789 | #endif |
17790 | ||
17791 | int | |
17792 | main () | |
17793 | { | |
dd184caf | 17794 | return PQsetdbLogin (); |
d9898ee8 | 17795 | ; |
17796 | return 0; | |
17797 | } | |
17798 | _ACEOF | |
17799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 17800 | if { (ac_try="$ac_link" |
17801 | case "(($ac_try" in | |
17802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17803 | *) ac_try_echo=$ac_try;; | |
17804 | esac | |
8d138742 CE |
17805 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17806 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 17807 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 17808 | ac_status=$? |
17809 | grep -v '^ *+' conftest.er1 >conftest.err | |
17810 | rm -f conftest.er1 | |
17811 | cat conftest.err >&5 | |
8d138742 | 17812 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 17813 | (exit $ac_status); } && { |
17814 | test -z "$ac_c_werror_flag" || | |
17815 | test ! -s conftest.err | |
8d138742 CE |
17816 | } && test -s conftest$ac_exeext && { |
17817 | test "$cross_compiling" = yes || | |
17818 | $as_test_x conftest$ac_exeext | |
17819 | }; then | |
d9898ee8 | 17820 | ac_cv_func_PQsetdbLogin=yes |
17821 | else | |
8d138742 | 17822 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 17823 | sed 's/^/| /' conftest.$ac_ext >&5 |
17824 | ||
dd184caf | 17825 | ac_cv_func_PQsetdbLogin=no |
d9898ee8 | 17826 | fi |
dd184caf | 17827 | |
8d138742 | 17828 | rm -rf conftest.dSYM |
dd184caf | 17829 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 17830 | conftest$ac_exeext conftest.$ac_ext |
17831 | fi | |
8d138742 CE |
17832 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5 |
17833 | $as_echo "$ac_cv_func_PQsetdbLogin" >&6; } | |
17834 | if test "x$ac_cv_func_PQsetdbLogin" = x""yes; then | |
d9898ee8 | 17835 | AUTHPGSQL="authpgsql" |
17836 | HAVE_AUTHPGSQL=1 | |
17837 | else | |
8d138742 CE |
17838 | { { $as_echo "$as_me:$LINENO: error: --with-authpgsql specified but no libpq.so" >&5 |
17839 | $as_echo "$as_me: error: --with-authpgsql specified but no libpq.so" >&2;} | |
d9898ee8 | 17840 | { (exit 1); exit 1; }; } |
17841 | fi | |
17842 | ||
17843 | LIBS="$saveLIBS" | |
17844 | HAVE_AUTHPGSQL=1 | |
17845 | CFLAGS="$PGSQL_CFLAGS $CFLAGS" | |
17846 | LIBAUTHPGSQL="libauthpgsql.la" | |
17847 | fi | |
17848 | ||
17849 | ||
17850 | ||
dd184caf | 17851 | if test "$HAVE_AUTHPGSQL" = 1; then |
d9898ee8 | 17852 | HAVE_AUTHPGSQL_TRUE= |
17853 | HAVE_AUTHPGSQL_FALSE='#' | |
17854 | else | |
17855 | HAVE_AUTHPGSQL_TRUE='#' | |
17856 | HAVE_AUTHPGSQL_FALSE= | |
17857 | fi | |
17858 | ||
17859 | ||
17860 | ||
17861 | ||
17862 | ||
17863 | ||
dd184caf | 17864 | # Check whether --with-authmysqlrc was given. |
d9898ee8 | 17865 | if test "${with_authmysqlrc+set}" = set; then |
dd184caf | 17866 | withval=$with_authmysqlrc; authmysqlrc="$withval" |
d9898ee8 | 17867 | else |
17868 | authmysqlrc="$pkgconfdir/authmysqlrc" | |
dd184caf | 17869 | fi |
17870 | ||
d9898ee8 | 17871 | |
17872 | ||
17873 | ||
dd184caf | 17874 | # Check whether --with-authmysql was given. |
d9898ee8 | 17875 | if test "${with_authmysql+set}" = set; then |
dd184caf | 17876 | withval=$with_authmysql; doauthmysql="$withval" |
17877 | fi | |
17878 | ||
d9898ee8 | 17879 | |
dd184caf | 17880 | # Check whether --with-mysql-libs was given. |
d9898ee8 | 17881 | if test "${with_mysql_libs+set}" = set; then |
dd184caf | 17882 | withval=$with_mysql_libs; MYSQL_LIBS="-L$withval -lmysqlclient" |
17883 | ||
17884 | fi | |
d9898ee8 | 17885 | |
d9898ee8 | 17886 | |
dd184caf | 17887 | # Check whether --with-mysql-includes was given. |
d9898ee8 | 17888 | if test "${with_mysql_includes+set}" = set; then |
dd184caf | 17889 | withval=$with_mysql_includes; MYSQL_CFLAGS="-I$withval" |
17890 | ||
17891 | fi | |
d9898ee8 | 17892 | |
d9898ee8 | 17893 | |
17894 | for ac_prog in mysql_config | |
17895 | do | |
17896 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
17897 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
17898 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
17899 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 17900 | if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then |
8d138742 | 17901 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 17902 | else |
17903 | case $MYSQL_CONFIG in | |
17904 | [\\/]* | ?:[\\/]*) | |
17905 | ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. | |
17906 | ;; | |
17907 | *) | |
17908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17909 | for as_dir in $LPATH | |
17910 | do | |
17911 | IFS=$as_save_IFS | |
17912 | test -z "$as_dir" && as_dir=. | |
17913 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 17914 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 17915 | ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
8d138742 | 17916 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 17917 | break 2 |
17918 | fi | |
17919 | done | |
17920 | done | |
dd184caf | 17921 | IFS=$as_save_IFS |
d9898ee8 | 17922 | |
8d138742 CE |
17923 | ;; |
17924 | esac | |
17925 | fi | |
17926 | MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG | |
17927 | if test -n "$MYSQL_CONFIG"; then | |
17928 | { $as_echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5 | |
17929 | $as_echo "$MYSQL_CONFIG" >&6; } | |
17930 | else | |
17931 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17932 | $as_echo "no" >&6; } | |
17933 | fi | |
17934 | ||
17935 | ||
17936 | test -n "$MYSQL_CONFIG" && break | |
17937 | done | |
17938 | test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config" | |
17939 | ||
17940 | ||
17941 | if test -x "$MYSQL_CONFIG" | |
17942 | then | |
17943 | MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`" | |
17944 | MYSQL_LIBS="`$MYSQL_CONFIG --libs`" | |
17945 | ||
17946 | eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\"" | |
17947 | eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\"" | |
17948 | fi | |
17949 | ||
17950 | if test "$doauthmysql" = "" | |
17951 | then | |
17952 | LIBS="$MYSQL_LIBS $LIBS" | |
17953 | { $as_echo "$as_me:$LINENO: checking for mysql_connect" >&5 | |
17954 | $as_echo_n "checking for mysql_connect... " >&6; } | |
17955 | if test "${ac_cv_func_mysql_connect+set}" = set; then | |
17956 | $as_echo_n "(cached) " >&6 | |
17957 | else | |
17958 | cat >conftest.$ac_ext <<_ACEOF | |
17959 | /* confdefs.h. */ | |
17960 | _ACEOF | |
17961 | cat confdefs.h >>conftest.$ac_ext | |
17962 | cat >>conftest.$ac_ext <<_ACEOF | |
17963 | /* end confdefs.h. */ | |
17964 | /* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect. | |
17965 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17966 | #define mysql_connect innocuous_mysql_connect | |
17967 | ||
17968 | /* System header to define __stub macros and hopefully few prototypes, | |
17969 | which can conflict with char mysql_connect (); below. | |
17970 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17971 | <limits.h> exists even on freestanding compilers. */ | |
17972 | ||
17973 | #ifdef __STDC__ | |
17974 | # include <limits.h> | |
17975 | #else | |
17976 | # include <assert.h> | |
17977 | #endif | |
17978 | ||
17979 | #undef mysql_connect | |
17980 | ||
17981 | /* Override any GCC internal prototype to avoid an error. | |
17982 | Use char because int might match the return type of a GCC | |
17983 | builtin and then its argument prototype would still apply. */ | |
17984 | #ifdef __cplusplus | |
17985 | extern "C" | |
17986 | #endif | |
17987 | char mysql_connect (); | |
17988 | /* The GNU C library defines this for functions which it implements | |
17989 | to always fail with ENOSYS. Some functions are actually named | |
17990 | something starting with __ and the normal name is an alias. */ | |
17991 | #if defined __stub_mysql_connect || defined __stub___mysql_connect | |
17992 | choke me | |
17993 | #endif | |
17994 | ||
17995 | int | |
17996 | main () | |
17997 | { | |
17998 | return mysql_connect (); | |
17999 | ; | |
18000 | return 0; | |
18001 | } | |
18002 | _ACEOF | |
18003 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18004 | if { (ac_try="$ac_link" | |
18005 | case "(($ac_try" in | |
18006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18007 | *) ac_try_echo=$ac_try;; | |
18008 | esac | |
18009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18010 | $as_echo "$ac_try_echo") >&5 | |
18011 | (eval "$ac_link") 2>conftest.er1 | |
18012 | ac_status=$? | |
18013 | grep -v '^ *+' conftest.er1 >conftest.err | |
18014 | rm -f conftest.er1 | |
18015 | cat conftest.err >&5 | |
18016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18017 | (exit $ac_status); } && { | |
18018 | test -z "$ac_c_werror_flag" || | |
18019 | test ! -s conftest.err | |
18020 | } && test -s conftest$ac_exeext && { | |
18021 | test "$cross_compiling" = yes || | |
18022 | $as_test_x conftest$ac_exeext | |
18023 | }; then | |
18024 | ac_cv_func_mysql_connect=yes | |
18025 | else | |
18026 | $as_echo "$as_me: failed program was:" >&5 | |
18027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18028 | ||
18029 | ac_cv_func_mysql_connect=no | |
18030 | fi | |
18031 | ||
18032 | rm -rf conftest.dSYM | |
18033 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18034 | conftest$ac_exeext conftest.$ac_ext | |
18035 | fi | |
18036 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5 | |
18037 | $as_echo "$ac_cv_func_mysql_connect" >&6; } | |
18038 | if test "x$ac_cv_func_mysql_connect" = x""yes; then | |
18039 | doauthmysql="yes" | |
18040 | ||
18041 | fi | |
18042 | ||
18043 | { $as_echo "$as_me:$LINENO: checking for mysql_real_connect" >&5 | |
18044 | $as_echo_n "checking for mysql_real_connect... " >&6; } | |
18045 | if test "${ac_cv_func_mysql_real_connect+set}" = set; then | |
18046 | $as_echo_n "(cached) " >&6 | |
18047 | else | |
18048 | cat >conftest.$ac_ext <<_ACEOF | |
18049 | /* confdefs.h. */ | |
18050 | _ACEOF | |
18051 | cat confdefs.h >>conftest.$ac_ext | |
18052 | cat >>conftest.$ac_ext <<_ACEOF | |
18053 | /* end confdefs.h. */ | |
18054 | /* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect. | |
18055 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18056 | #define mysql_real_connect innocuous_mysql_real_connect | |
18057 | ||
18058 | /* System header to define __stub macros and hopefully few prototypes, | |
18059 | which can conflict with char mysql_real_connect (); below. | |
18060 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18061 | <limits.h> exists even on freestanding compilers. */ | |
18062 | ||
18063 | #ifdef __STDC__ | |
18064 | # include <limits.h> | |
18065 | #else | |
18066 | # include <assert.h> | |
18067 | #endif | |
18068 | ||
18069 | #undef mysql_real_connect | |
18070 | ||
18071 | /* Override any GCC internal prototype to avoid an error. | |
18072 | Use char because int might match the return type of a GCC | |
18073 | builtin and then its argument prototype would still apply. */ | |
18074 | #ifdef __cplusplus | |
18075 | extern "C" | |
18076 | #endif | |
18077 | char mysql_real_connect (); | |
18078 | /* The GNU C library defines this for functions which it implements | |
18079 | to always fail with ENOSYS. Some functions are actually named | |
18080 | something starting with __ and the normal name is an alias. */ | |
18081 | #if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect | |
18082 | choke me | |
18083 | #endif | |
18084 | ||
18085 | int | |
18086 | main () | |
18087 | { | |
18088 | return mysql_real_connect (); | |
18089 | ; | |
18090 | return 0; | |
18091 | } | |
18092 | _ACEOF | |
18093 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18094 | if { (ac_try="$ac_link" | |
18095 | case "(($ac_try" in | |
18096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18097 | *) ac_try_echo=$ac_try;; | |
d9898ee8 | 18098 | esac |
8d138742 CE |
18099 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18100 | $as_echo "$ac_try_echo") >&5 | |
18101 | (eval "$ac_link") 2>conftest.er1 | |
18102 | ac_status=$? | |
18103 | grep -v '^ *+' conftest.er1 >conftest.err | |
18104 | rm -f conftest.er1 | |
18105 | cat conftest.err >&5 | |
18106 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18107 | (exit $ac_status); } && { | |
18108 | test -z "$ac_c_werror_flag" || | |
18109 | test ! -s conftest.err | |
18110 | } && test -s conftest$ac_exeext && { | |
18111 | test "$cross_compiling" = yes || | |
18112 | $as_test_x conftest$ac_exeext | |
18113 | }; then | |
18114 | ac_cv_func_mysql_real_connect=yes | |
d9898ee8 | 18115 | else |
8d138742 CE |
18116 | $as_echo "$as_me: failed program was:" >&5 |
18117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
dd184caf | 18118 | |
8d138742 CE |
18119 | ac_cv_func_mysql_real_connect=no |
18120 | fi | |
d9898ee8 | 18121 | |
8d138742 CE |
18122 | rm -rf conftest.dSYM |
18123 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18124 | conftest$ac_exeext conftest.$ac_ext | |
18125 | fi | |
18126 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5 | |
18127 | $as_echo "$ac_cv_func_mysql_real_connect" >&6; } | |
18128 | if test "x$ac_cv_func_mysql_real_connect" = x""yes; then | |
18129 | doauthmysql="yes" | |
d9898ee8 | 18130 | |
8d138742 | 18131 | fi |
d9898ee8 | 18132 | |
8d138742 | 18133 | LIBS="$saveLIBS" |
d9898ee8 | 18134 | fi |
18135 | ||
8d138742 | 18136 | if test "$doauthmysql" != "yes" |
d9898ee8 | 18137 | then |
8d138742 CE |
18138 | LIBAUTHMYSQL="" |
18139 | HAVE_AUTHMYSQL=0 | |
18140 | else | |
18141 | saveLIBS="$LIBS" | |
d9898ee8 | 18142 | LIBS="$MYSQL_LIBS $LIBS" |
8d138742 CE |
18143 | { $as_echo "$as_me:$LINENO: checking for mysql_connect" >&5 |
18144 | $as_echo_n "checking for mysql_connect... " >&6; } | |
d9898ee8 | 18145 | if test "${ac_cv_func_mysql_connect+set}" = set; then |
8d138742 | 18146 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 18147 | else |
18148 | cat >conftest.$ac_ext <<_ACEOF | |
18149 | /* confdefs.h. */ | |
18150 | _ACEOF | |
18151 | cat confdefs.h >>conftest.$ac_ext | |
18152 | cat >>conftest.$ac_ext <<_ACEOF | |
18153 | /* end confdefs.h. */ | |
18154 | /* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect. | |
18155 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18156 | #define mysql_connect innocuous_mysql_connect | |
18157 | ||
18158 | /* System header to define __stub macros and hopefully few prototypes, | |
18159 | which can conflict with char mysql_connect (); below. | |
18160 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18161 | <limits.h> exists even on freestanding compilers. */ | |
18162 | ||
18163 | #ifdef __STDC__ | |
18164 | # include <limits.h> | |
18165 | #else | |
18166 | # include <assert.h> | |
18167 | #endif | |
18168 | ||
18169 | #undef mysql_connect | |
18170 | ||
dd184caf | 18171 | /* Override any GCC internal prototype to avoid an error. |
18172 | Use char because int might match the return type of a GCC | |
18173 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 18174 | #ifdef __cplusplus |
18175 | extern "C" | |
d9898ee8 | 18176 | #endif |
d9898ee8 | 18177 | char mysql_connect (); |
18178 | /* The GNU C library defines this for functions which it implements | |
18179 | to always fail with ENOSYS. Some functions are actually named | |
18180 | something starting with __ and the normal name is an alias. */ | |
dd184caf | 18181 | #if defined __stub_mysql_connect || defined __stub___mysql_connect |
d9898ee8 | 18182 | choke me |
d9898ee8 | 18183 | #endif |
18184 | ||
18185 | int | |
18186 | main () | |
18187 | { | |
dd184caf | 18188 | return mysql_connect (); |
d9898ee8 | 18189 | ; |
18190 | return 0; | |
18191 | } | |
18192 | _ACEOF | |
18193 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 18194 | if { (ac_try="$ac_link" |
18195 | case "(($ac_try" in | |
18196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18197 | *) ac_try_echo=$ac_try;; | |
18198 | esac | |
8d138742 CE |
18199 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18200 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 18201 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 18202 | ac_status=$? |
18203 | grep -v '^ *+' conftest.er1 >conftest.err | |
18204 | rm -f conftest.er1 | |
18205 | cat conftest.err >&5 | |
8d138742 | 18206 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 18207 | (exit $ac_status); } && { |
18208 | test -z "$ac_c_werror_flag" || | |
18209 | test ! -s conftest.err | |
8d138742 CE |
18210 | } && test -s conftest$ac_exeext && { |
18211 | test "$cross_compiling" = yes || | |
18212 | $as_test_x conftest$ac_exeext | |
18213 | }; then | |
d9898ee8 | 18214 | ac_cv_func_mysql_connect=yes |
18215 | else | |
8d138742 | 18216 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 18217 | sed 's/^/| /' conftest.$ac_ext >&5 |
18218 | ||
dd184caf | 18219 | ac_cv_func_mysql_connect=no |
d9898ee8 | 18220 | fi |
dd184caf | 18221 | |
8d138742 | 18222 | rm -rf conftest.dSYM |
dd184caf | 18223 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 18224 | conftest$ac_exeext conftest.$ac_ext |
18225 | fi | |
8d138742 CE |
18226 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5 |
18227 | $as_echo "$ac_cv_func_mysql_connect" >&6; } | |
18228 | if test "x$ac_cv_func_mysql_connect" = x""yes; then | |
18229 | LIBAUTHMYSQL="libauthmysql.la" | |
18230 | HAVE_AUTHMYSQL=1 | |
18231 | else | |
d9898ee8 | 18232 | |
8d138742 CE |
18233 | { $as_echo "$as_me:$LINENO: checking for mysql_real_connect" >&5 |
18234 | $as_echo_n "checking for mysql_real_connect... " >&6; } | |
d9898ee8 | 18235 | if test "${ac_cv_func_mysql_real_connect+set}" = set; then |
8d138742 | 18236 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 18237 | else |
18238 | cat >conftest.$ac_ext <<_ACEOF | |
18239 | /* confdefs.h. */ | |
18240 | _ACEOF | |
18241 | cat confdefs.h >>conftest.$ac_ext | |
18242 | cat >>conftest.$ac_ext <<_ACEOF | |
18243 | /* end confdefs.h. */ | |
18244 | /* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect. | |
18245 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18246 | #define mysql_real_connect innocuous_mysql_real_connect | |
18247 | ||
18248 | /* System header to define __stub macros and hopefully few prototypes, | |
18249 | which can conflict with char mysql_real_connect (); below. | |
18250 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18251 | <limits.h> exists even on freestanding compilers. */ | |
18252 | ||
18253 | #ifdef __STDC__ | |
18254 | # include <limits.h> | |
18255 | #else | |
18256 | # include <assert.h> | |
18257 | #endif | |
18258 | ||
18259 | #undef mysql_real_connect | |
18260 | ||
dd184caf | 18261 | /* Override any GCC internal prototype to avoid an error. |
18262 | Use char because int might match the return type of a GCC | |
18263 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 18264 | #ifdef __cplusplus |
18265 | extern "C" | |
d9898ee8 | 18266 | #endif |
d9898ee8 | 18267 | char mysql_real_connect (); |
18268 | /* The GNU C library defines this for functions which it implements | |
18269 | to always fail with ENOSYS. Some functions are actually named | |
18270 | something starting with __ and the normal name is an alias. */ | |
dd184caf | 18271 | #if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect |
d9898ee8 | 18272 | choke me |
d9898ee8 | 18273 | #endif |
18274 | ||
18275 | int | |
18276 | main () | |
18277 | { | |
dd184caf | 18278 | return mysql_real_connect (); |
d9898ee8 | 18279 | ; |
18280 | return 0; | |
18281 | } | |
18282 | _ACEOF | |
18283 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 18284 | if { (ac_try="$ac_link" |
18285 | case "(($ac_try" in | |
18286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18287 | *) ac_try_echo=$ac_try;; | |
18288 | esac | |
8d138742 CE |
18289 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18290 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 18291 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 18292 | ac_status=$? |
18293 | grep -v '^ *+' conftest.er1 >conftest.err | |
18294 | rm -f conftest.er1 | |
18295 | cat conftest.err >&5 | |
8d138742 | 18296 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 18297 | (exit $ac_status); } && { |
18298 | test -z "$ac_c_werror_flag" || | |
18299 | test ! -s conftest.err | |
8d138742 CE |
18300 | } && test -s conftest$ac_exeext && { |
18301 | test "$cross_compiling" = yes || | |
18302 | $as_test_x conftest$ac_exeext | |
18303 | }; then | |
d9898ee8 | 18304 | ac_cv_func_mysql_real_connect=yes |
18305 | else | |
8d138742 | 18306 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 18307 | sed 's/^/| /' conftest.$ac_ext >&5 |
18308 | ||
dd184caf | 18309 | ac_cv_func_mysql_real_connect=no |
d9898ee8 | 18310 | fi |
dd184caf | 18311 | |
8d138742 | 18312 | rm -rf conftest.dSYM |
dd184caf | 18313 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 18314 | conftest$ac_exeext conftest.$ac_ext |
18315 | fi | |
8d138742 CE |
18316 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5 |
18317 | $as_echo "$ac_cv_func_mysql_real_connect" >&6; } | |
18318 | if test "x$ac_cv_func_mysql_real_connect" = x""yes; then | |
18319 | LIBAUTHMYSQL="libauthmysql.la" | |
18320 | HAVE_AUTHMYSQL=1 | |
18321 | else | |
18322 | { { $as_echo "$as_me:$LINENO: error: --with-authmysql specified but no mysqlclient.so" >&5 | |
18323 | $as_echo "$as_me: error: --with-authmysql specified but no mysqlclient.so" >&2;} | |
18324 | { (exit 1); exit 1; }; } | |
18325 | ||
18326 | fi | |
18327 | ||
18328 | ||
d9898ee8 | 18329 | |
18330 | fi | |
18331 | ||
18332 | LIBS="$saveLIBS" | |
8d138742 CE |
18333 | HAVE_AUTHMYSQL=1 |
18334 | CFLAGS="$MYSQL_CFLAGS $CFLAGS" | |
d9898ee8 | 18335 | fi |
18336 | ||
8d138742 CE |
18337 | |
18338 | if test "$HAVE_AUTHMYSQL" = 1; then | |
18339 | HAVE_AUTHMYSQL_TRUE= | |
18340 | HAVE_AUTHMYSQL_FALSE='#' | |
18341 | else | |
18342 | HAVE_AUTHMYSQL_TRUE='#' | |
18343 | HAVE_AUTHMYSQL_FALSE= | |
18344 | fi | |
18345 | ||
18346 | ||
18347 | ||
18348 | ||
18349 | ||
18350 | ||
18351 | ||
18352 | ||
18353 | # Check whether --with-authcustom was given. | |
18354 | if test "${with_authcustom+set}" = set; then | |
18355 | withval=$with_authcustom; doauthcustom="$withval" | |
18356 | else | |
18357 | doauthcustom=yes | |
18358 | fi | |
18359 | ||
18360 | ||
18361 | LIBAUTHCUSTOM="" | |
18362 | ||
18363 | if test "$doauthcustom" = "yes" | |
d9898ee8 | 18364 | then |
8d138742 CE |
18365 | LIBAUTHCUSTOM="libauthcustom.la" |
18366 | fi | |
18367 | ||
18368 | if test "$AUTHCUSTOM" != ""; then | |
18369 | HAVE_CUSTOM_TRUE= | |
18370 | HAVE_CUSTOM_FALSE='#' | |
d9898ee8 | 18371 | else |
8d138742 CE |
18372 | HAVE_CUSTOM_TRUE='#' |
18373 | HAVE_CUSTOM_FALSE= | |
18374 | fi | |
18375 | ||
18376 | ||
18377 | ||
18378 | ||
18379 | ||
18380 | ||
18381 | ||
18382 | ||
18383 | ||
18384 | # Check whether --with-pipeprog was given. | |
18385 | if test "${with_pipeprog+set}" = set; then | |
18386 | withval=$with_pipeprog; authProg="$withval" | |
18387 | else | |
18388 | authProg="$pkgconfdir/authProg" | |
18389 | fi | |
18390 | ||
18391 | ||
18392 | ||
18393 | ||
18394 | # Check whether --with-authpipe was given. | |
18395 | if test "${with_authpipe+set}" = set; then | |
18396 | withval=$with_authpipe; doauthpipe="$withval" | |
18397 | else | |
18398 | doauthpipe=yes | |
18399 | fi | |
18400 | ||
18401 | ||
18402 | LIBAUTHPIPE="" | |
18403 | ||
18404 | if test "$doauthpipe" = "yes" | |
18405 | then | |
18406 | LIBAUTHPIPE="libauthpipe.la" | |
18407 | fi | |
18408 | ||
18409 | if test "$AUTHPIPE" != ""; then | |
18410 | HAVE_PIPE_TRUE= | |
18411 | HAVE_PIPE_FALSE='#' | |
18412 | else | |
18413 | HAVE_PIPE_TRUE='#' | |
18414 | HAVE_PIPE_FALSE= | |
18415 | fi | |
18416 | ||
18417 | ||
18418 | ||
18419 | ||
18420 | ||
18421 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
18422 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
18423 | if test "${ac_cv_header_stdc+set}" = set; then | |
18424 | $as_echo_n "(cached) " >&6 | |
18425 | else | |
18426 | cat >conftest.$ac_ext <<_ACEOF | |
18427 | /* confdefs.h. */ | |
18428 | _ACEOF | |
18429 | cat confdefs.h >>conftest.$ac_ext | |
18430 | cat >>conftest.$ac_ext <<_ACEOF | |
18431 | /* end confdefs.h. */ | |
18432 | #include <stdlib.h> | |
18433 | #include <stdarg.h> | |
18434 | #include <string.h> | |
18435 | #include <float.h> | |
18436 | ||
18437 | int | |
18438 | main () | |
18439 | { | |
18440 | ||
18441 | ; | |
18442 | return 0; | |
18443 | } | |
18444 | _ACEOF | |
18445 | rm -f conftest.$ac_objext | |
18446 | if { (ac_try="$ac_compile" | |
18447 | case "(($ac_try" in | |
18448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18449 | *) ac_try_echo=$ac_try;; | |
18450 | esac | |
18451 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18452 | $as_echo "$ac_try_echo") >&5 | |
18453 | (eval "$ac_compile") 2>conftest.er1 | |
18454 | ac_status=$? | |
18455 | grep -v '^ *+' conftest.er1 >conftest.err | |
18456 | rm -f conftest.er1 | |
18457 | cat conftest.err >&5 | |
18458 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18459 | (exit $ac_status); } && { | |
18460 | test -z "$ac_c_werror_flag" || | |
18461 | test ! -s conftest.err | |
18462 | } && test -s conftest.$ac_objext; then | |
18463 | ac_cv_header_stdc=yes | |
18464 | else | |
18465 | $as_echo "$as_me: failed program was:" >&5 | |
18466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18467 | ||
18468 | ac_cv_header_stdc=no | |
18469 | fi | |
18470 | ||
18471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18472 | ||
18473 | if test $ac_cv_header_stdc = yes; then | |
18474 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18475 | cat >conftest.$ac_ext <<_ACEOF | |
18476 | /* confdefs.h. */ | |
18477 | _ACEOF | |
18478 | cat confdefs.h >>conftest.$ac_ext | |
18479 | cat >>conftest.$ac_ext <<_ACEOF | |
18480 | /* end confdefs.h. */ | |
18481 | #include <string.h> | |
18482 | ||
18483 | _ACEOF | |
18484 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
18485 | $EGREP "memchr" >/dev/null 2>&1; then | |
18486 | : | |
18487 | else | |
18488 | ac_cv_header_stdc=no | |
18489 | fi | |
18490 | rm -f conftest* | |
18491 | ||
18492 | fi | |
18493 | ||
18494 | if test $ac_cv_header_stdc = yes; then | |
18495 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18496 | cat >conftest.$ac_ext <<_ACEOF | |
18497 | /* confdefs.h. */ | |
18498 | _ACEOF | |
18499 | cat confdefs.h >>conftest.$ac_ext | |
18500 | cat >>conftest.$ac_ext <<_ACEOF | |
18501 | /* end confdefs.h. */ | |
18502 | #include <stdlib.h> | |
18503 | ||
18504 | _ACEOF | |
18505 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
18506 | $EGREP "free" >/dev/null 2>&1; then | |
18507 | : | |
18508 | else | |
18509 | ac_cv_header_stdc=no | |
18510 | fi | |
18511 | rm -f conftest* | |
18512 | ||
18513 | fi | |
18514 | ||
18515 | if test $ac_cv_header_stdc = yes; then | |
18516 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18517 | if test "$cross_compiling" = yes; then | |
18518 | : | |
d9898ee8 | 18519 | else |
18520 | cat >conftest.$ac_ext <<_ACEOF | |
18521 | /* confdefs.h. */ | |
18522 | _ACEOF | |
18523 | cat confdefs.h >>conftest.$ac_ext | |
18524 | cat >>conftest.$ac_ext <<_ACEOF | |
18525 | /* end confdefs.h. */ | |
8d138742 CE |
18526 | #include <ctype.h> |
18527 | #include <stdlib.h> | |
18528 | #if ((' ' & 0x0FF) == 0x020) | |
18529 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
18530 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
d9898ee8 | 18531 | #else |
8d138742 CE |
18532 | # define ISLOWER(c) \ |
18533 | (('a' <= (c) && (c) <= 'i') \ | |
18534 | || ('j' <= (c) && (c) <= 'r') \ | |
18535 | || ('s' <= (c) && (c) <= 'z')) | |
18536 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
d9898ee8 | 18537 | #endif |
18538 | ||
8d138742 | 18539 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
d9898ee8 | 18540 | int |
18541 | main () | |
18542 | { | |
8d138742 CE |
18543 | int i; |
18544 | for (i = 0; i < 256; i++) | |
18545 | if (XOR (islower (i), ISLOWER (i)) | |
18546 | || toupper (i) != TOUPPER (i)) | |
18547 | return 2; | |
d9898ee8 | 18548 | return 0; |
18549 | } | |
18550 | _ACEOF | |
8d138742 | 18551 | rm -f conftest$ac_exeext |
dd184caf | 18552 | if { (ac_try="$ac_link" |
18553 | case "(($ac_try" in | |
18554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18555 | *) ac_try_echo=$ac_try;; | |
18556 | esac | |
8d138742 CE |
18557 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18558 | $as_echo "$ac_try_echo") >&5 | |
18559 | (eval "$ac_link") 2>&5 | |
d9898ee8 | 18560 | ac_status=$? |
8d138742 CE |
18561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18562 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18563 | { (case "(($ac_try" in | |
18564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18565 | *) ac_try_echo=$ac_try;; | |
18566 | esac | |
18567 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18568 | $as_echo "$ac_try_echo") >&5 | |
18569 | (eval "$ac_try") 2>&5 | |
18570 | ac_status=$? | |
18571 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18572 | (exit $ac_status); }; }; then | |
18573 | : | |
d9898ee8 | 18574 | else |
8d138742 CE |
18575 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
18576 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 18577 | sed 's/^/| /' conftest.$ac_ext >&5 |
18578 | ||
8d138742 CE |
18579 | ( exit $ac_status ) |
18580 | ac_cv_header_stdc=no | |
18581 | fi | |
18582 | rm -rf conftest.dSYM | |
18583 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 18584 | fi |
dd184caf | 18585 | |
8d138742 | 18586 | |
d9898ee8 | 18587 | fi |
8d138742 CE |
18588 | fi |
18589 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
18590 | $as_echo "$ac_cv_header_stdc" >&6; } | |
18591 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 18592 | |
8d138742 CE |
18593 | cat >>confdefs.h <<\_ACEOF |
18594 | #define STDC_HEADERS 1 | |
18595 | _ACEOF | |
18596 | ||
18597 | fi | |
18598 | ||
18599 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
18600 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
18601 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
18602 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 18603 | else |
18604 | cat >conftest.$ac_ext <<_ACEOF | |
18605 | /* confdefs.h. */ | |
18606 | _ACEOF | |
18607 | cat confdefs.h >>conftest.$ac_ext | |
18608 | cat >>conftest.$ac_ext <<_ACEOF | |
18609 | /* end confdefs.h. */ | |
8d138742 CE |
18610 | #include <sys/types.h> |
18611 | #include <sys/wait.h> | |
18612 | #ifndef WEXITSTATUS | |
18613 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
d9898ee8 | 18614 | #endif |
8d138742 CE |
18615 | #ifndef WIFEXITED |
18616 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
d9898ee8 | 18617 | #endif |
18618 | ||
18619 | int | |
18620 | main () | |
18621 | { | |
8d138742 CE |
18622 | int s; |
18623 | wait (&s); | |
18624 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
d9898ee8 | 18625 | ; |
18626 | return 0; | |
18627 | } | |
18628 | _ACEOF | |
8d138742 CE |
18629 | rm -f conftest.$ac_objext |
18630 | if { (ac_try="$ac_compile" | |
dd184caf | 18631 | case "(($ac_try" in |
18632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18633 | *) ac_try_echo=$ac_try;; | |
18634 | esac | |
8d138742 CE |
18635 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18636 | $as_echo "$ac_try_echo") >&5 | |
18637 | (eval "$ac_compile") 2>conftest.er1 | |
d9898ee8 | 18638 | ac_status=$? |
18639 | grep -v '^ *+' conftest.er1 >conftest.err | |
18640 | rm -f conftest.er1 | |
18641 | cat conftest.err >&5 | |
8d138742 | 18642 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 18643 | (exit $ac_status); } && { |
18644 | test -z "$ac_c_werror_flag" || | |
18645 | test ! -s conftest.err | |
8d138742 CE |
18646 | } && test -s conftest.$ac_objext; then |
18647 | ac_cv_header_sys_wait_h=yes | |
d9898ee8 | 18648 | else |
8d138742 | 18649 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 18650 | sed 's/^/| /' conftest.$ac_ext >&5 |
18651 | ||
8d138742 | 18652 | ac_cv_header_sys_wait_h=no |
d9898ee8 | 18653 | fi |
18654 | ||
8d138742 | 18655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 18656 | fi |
8d138742 CE |
18657 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
18658 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
18659 | if test $ac_cv_header_sys_wait_h = yes; then | |
d9898ee8 | 18660 | |
8d138742 CE |
18661 | cat >>confdefs.h <<\_ACEOF |
18662 | #define HAVE_SYS_WAIT_H 1 | |
18663 | _ACEOF | |
d9898ee8 | 18664 | |
d9898ee8 | 18665 | fi |
18666 | ||
18667 | ||
18668 | ||
18669 | ||
18670 | ||
18671 | ||
18672 | ||
18673 | ||
d9898ee8 | 18674 | |
8d138742 CE |
18675 | for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h |
18676 | do | |
18677 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
18678 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
18679 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18680 | $as_echo_n "checking for $ac_header... " >&6; } | |
18681 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
18682 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 18683 | fi |
8d138742 CE |
18684 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
18685 | $as_echo "$as_val"'` | |
18686 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18687 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 18688 | else |
8d138742 CE |
18689 | # Is the header compilable? |
18690 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18691 | $as_echo_n "checking $ac_header usability... " >&6; } | |
18692 | cat >conftest.$ac_ext <<_ACEOF | |
18693 | /* confdefs.h. */ | |
18694 | _ACEOF | |
18695 | cat confdefs.h >>conftest.$ac_ext | |
18696 | cat >>conftest.$ac_ext <<_ACEOF | |
18697 | /* end confdefs.h. */ | |
18698 | $ac_includes_default | |
18699 | #include <$ac_header> | |
18700 | _ACEOF | |
18701 | rm -f conftest.$ac_objext | |
18702 | if { (ac_try="$ac_compile" | |
18703 | case "(($ac_try" in | |
18704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18705 | *) ac_try_echo=$ac_try;; | |
18706 | esac | |
18707 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18708 | $as_echo "$ac_try_echo") >&5 | |
18709 | (eval "$ac_compile") 2>conftest.er1 | |
18710 | ac_status=$? | |
18711 | grep -v '^ *+' conftest.er1 >conftest.err | |
18712 | rm -f conftest.er1 | |
18713 | cat conftest.err >&5 | |
18714 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18715 | (exit $ac_status); } && { | |
18716 | test -z "$ac_c_werror_flag" || | |
18717 | test ! -s conftest.err | |
18718 | } && test -s conftest.$ac_objext; then | |
18719 | ac_header_compiler=yes | |
18720 | else | |
18721 | $as_echo "$as_me: failed program was:" >&5 | |
18722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 18723 | |
8d138742 CE |
18724 | ac_header_compiler=no |
18725 | fi | |
d9898ee8 | 18726 | |
8d138742 CE |
18727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18728 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18729 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 18730 | |
8d138742 CE |
18731 | # Is the header present? |
18732 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18733 | $as_echo_n "checking $ac_header presence... " >&6; } | |
18734 | cat >conftest.$ac_ext <<_ACEOF | |
18735 | /* confdefs.h. */ | |
18736 | _ACEOF | |
18737 | cat confdefs.h >>conftest.$ac_ext | |
18738 | cat >>conftest.$ac_ext <<_ACEOF | |
18739 | /* end confdefs.h. */ | |
18740 | #include <$ac_header> | |
18741 | _ACEOF | |
18742 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
18743 | case "(($ac_try" in | |
18744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18745 | *) ac_try_echo=$ac_try;; | |
18746 | esac | |
18747 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18748 | $as_echo "$ac_try_echo") >&5 | |
18749 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
18750 | ac_status=$? | |
18751 | grep -v '^ *+' conftest.er1 >conftest.err | |
18752 | rm -f conftest.er1 | |
18753 | cat conftest.err >&5 | |
18754 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18755 | (exit $ac_status); } >/dev/null && { | |
18756 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
18757 | test ! -s conftest.err | |
18758 | }; then | |
18759 | ac_header_preproc=yes | |
d9898ee8 | 18760 | else |
8d138742 CE |
18761 | $as_echo "$as_me: failed program was:" >&5 |
18762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 18763 | |
8d138742 CE |
18764 | ac_header_preproc=no |
18765 | fi | |
d9898ee8 | 18766 | |
8d138742 CE |
18767 | rm -f conftest.err conftest.$ac_ext |
18768 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18769 | $as_echo "$ac_header_preproc" >&6; } | |
dd184caf | 18770 | |
8d138742 CE |
18771 | # So? What about this header? |
18772 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
18773 | yes:no: ) | |
18774 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18775 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18776 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
18777 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18778 | ac_header_preproc=yes | |
18779 | ;; | |
18780 | no:yes:* ) | |
18781 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
18782 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
18783 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
18784 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18785 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18786 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18787 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18788 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
18789 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
18790 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
18791 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
18792 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
18793 | ( cat <<\_ASBOX | |
18794 | ## -------------------------------------------------- ## | |
18795 | ## Report this to courier-users@lists.sourceforge.net ## | |
18796 | ## -------------------------------------------------- ## | |
18797 | _ASBOX | |
18798 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
18799 | ;; | |
18800 | esac | |
18801 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18802 | $as_echo_n "checking for $ac_header... " >&6; } | |
18803 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
18804 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 18805 | else |
8d138742 | 18806 | eval "$as_ac_Header=\$ac_header_preproc" |
dd184caf | 18807 | fi |
8d138742 CE |
18808 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
18809 | $as_echo "$as_val"'` | |
18810 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18811 | $as_echo "$ac_res" >&6; } | |
dd184caf | 18812 | |
d9898ee8 | 18813 | fi |
8d138742 CE |
18814 | as_val=`eval 'as_val=${'$as_ac_Header'} |
18815 | $as_echo "$as_val"'` | |
18816 | if test "x$as_val" = x""yes; then | |
18817 | cat >>confdefs.h <<_ACEOF | |
18818 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18819 | _ACEOF | |
d9898ee8 | 18820 | |
d9898ee8 | 18821 | fi |
18822 | ||
8d138742 | 18823 | done |
d9898ee8 | 18824 | |
18825 | ||
8d138742 CE |
18826 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
18827 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
18828 | if test "${ac_cv_c_const+set}" = set; then | |
18829 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 18830 | else |
18831 | cat >conftest.$ac_ext <<_ACEOF | |
18832 | /* confdefs.h. */ | |
18833 | _ACEOF | |
18834 | cat confdefs.h >>conftest.$ac_ext | |
18835 | cat >>conftest.$ac_ext <<_ACEOF | |
18836 | /* end confdefs.h. */ | |
d9898ee8 | 18837 | |
18838 | int | |
18839 | main () | |
18840 | { | |
8d138742 CE |
18841 | /* FIXME: Include the comments suggested by Paul. */ |
18842 | #ifndef __cplusplus | |
18843 | /* Ultrix mips cc rejects this. */ | |
18844 | typedef int charset[2]; | |
18845 | const charset cs; | |
18846 | /* SunOS 4.1.1 cc rejects this. */ | |
18847 | char const *const *pcpcc; | |
18848 | char **ppc; | |
18849 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
18850 | struct point {int x, y;}; | |
18851 | static struct point const zero = {0,0}; | |
18852 | /* AIX XL C 1.02.0.0 rejects this. | |
18853 | It does not let you subtract one const X* pointer from another in | |
18854 | an arm of an if-expression whose if-part is not a constant | |
18855 | expression */ | |
18856 | const char *g = "string"; | |
18857 | pcpcc = &g + (g ? g-g : 0); | |
18858 | /* HPUX 7.0 cc rejects these. */ | |
18859 | ++pcpcc; | |
18860 | ppc = (char**) pcpcc; | |
18861 | pcpcc = (char const *const *) ppc; | |
18862 | { /* SCO 3.2v4 cc rejects this. */ | |
18863 | char *t; | |
18864 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
18865 | ||
18866 | *t++ = 0; | |
18867 | if (s) return 0; | |
18868 | } | |
18869 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
18870 | int x[] = {25, 17}; | |
18871 | const int *foo = &x[0]; | |
18872 | ++foo; | |
18873 | } | |
18874 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
18875 | typedef const int *iptr; | |
18876 | iptr p = 0; | |
18877 | ++p; | |
18878 | } | |
18879 | { /* AIX XL C 1.02.0.0 rejects this saying | |
18880 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
18881 | struct s { int j; const int *ap[3]; }; | |
18882 | struct s *b; b->j = 5; | |
18883 | } | |
18884 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
18885 | const int foo = 10; | |
18886 | if (!foo) return 0; | |
18887 | } | |
18888 | return !cs[0] && !zero.x; | |
18889 | #endif | |
d9898ee8 | 18890 | |
18891 | ; | |
18892 | return 0; | |
18893 | } | |
18894 | _ACEOF | |
18895 | rm -f conftest.$ac_objext | |
dd184caf | 18896 | if { (ac_try="$ac_compile" |
18897 | case "(($ac_try" in | |
18898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18899 | *) ac_try_echo=$ac_try;; | |
18900 | esac | |
8d138742 CE |
18901 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18902 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 18903 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 18904 | ac_status=$? |
18905 | grep -v '^ *+' conftest.er1 >conftest.err | |
18906 | rm -f conftest.er1 | |
18907 | cat conftest.err >&5 | |
8d138742 | 18908 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 18909 | (exit $ac_status); } && { |
18910 | test -z "$ac_c_werror_flag" || | |
18911 | test ! -s conftest.err | |
18912 | } && test -s conftest.$ac_objext; then | |
8d138742 | 18913 | ac_cv_c_const=yes |
d9898ee8 | 18914 | else |
8d138742 | 18915 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 18916 | sed 's/^/| /' conftest.$ac_ext >&5 |
18917 | ||
8d138742 | 18918 | ac_cv_c_const=no |
d9898ee8 | 18919 | fi |
dd184caf | 18920 | |
18921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8d138742 CE |
18922 | fi |
18923 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
18924 | $as_echo "$ac_cv_c_const" >&6; } | |
18925 | if test $ac_cv_c_const = no; then | |
d9898ee8 | 18926 | |
8d138742 CE |
18927 | cat >>confdefs.h <<\_ACEOF |
18928 | #define const /**/ | |
d9898ee8 | 18929 | _ACEOF |
d9898ee8 | 18930 | |
18931 | fi | |
18932 | ||
8d138742 CE |
18933 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
18934 | $as_echo_n "checking for pid_t... " >&6; } | |
18935 | if test "${ac_cv_type_pid_t+set}" = set; then | |
18936 | $as_echo_n "(cached) " >&6 | |
18937 | else | |
18938 | ac_cv_type_pid_t=no | |
18939 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 18940 | /* confdefs.h. */ |
18941 | _ACEOF | |
18942 | cat confdefs.h >>conftest.$ac_ext | |
18943 | cat >>conftest.$ac_ext <<_ACEOF | |
18944 | /* end confdefs.h. */ | |
8d138742 CE |
18945 | $ac_includes_default |
18946 | int | |
18947 | main () | |
18948 | { | |
18949 | if (sizeof (pid_t)) | |
18950 | return 0; | |
18951 | ; | |
18952 | return 0; | |
18953 | } | |
d9898ee8 | 18954 | _ACEOF |
8d138742 CE |
18955 | rm -f conftest.$ac_objext |
18956 | if { (ac_try="$ac_compile" | |
18957 | case "(($ac_try" in | |
18958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18959 | *) ac_try_echo=$ac_try;; | |
18960 | esac | |
18961 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18962 | $as_echo "$ac_try_echo") >&5 | |
18963 | (eval "$ac_compile") 2>conftest.er1 | |
18964 | ac_status=$? | |
18965 | grep -v '^ *+' conftest.er1 >conftest.err | |
18966 | rm -f conftest.er1 | |
18967 | cat conftest.err >&5 | |
18968 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18969 | (exit $ac_status); } && { | |
18970 | test -z "$ac_c_werror_flag" || | |
18971 | test ! -s conftest.err | |
18972 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 18973 | cat >conftest.$ac_ext <<_ACEOF |
18974 | /* confdefs.h. */ | |
18975 | _ACEOF | |
18976 | cat confdefs.h >>conftest.$ac_ext | |
18977 | cat >>conftest.$ac_ext <<_ACEOF | |
18978 | /* end confdefs.h. */ | |
8d138742 | 18979 | $ac_includes_default |
d9898ee8 | 18980 | int |
18981 | main () | |
18982 | { | |
8d138742 CE |
18983 | if (sizeof ((pid_t))) |
18984 | return 0; | |
18985 | ; | |
dd184caf | 18986 | return 0; |
d9898ee8 | 18987 | } |
18988 | _ACEOF | |
8d138742 CE |
18989 | rm -f conftest.$ac_objext |
18990 | if { (ac_try="$ac_compile" | |
dd184caf | 18991 | case "(($ac_try" in |
18992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18993 | *) ac_try_echo=$ac_try;; | |
18994 | esac | |
8d138742 CE |
18995 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18996 | $as_echo "$ac_try_echo") >&5 | |
18997 | (eval "$ac_compile") 2>conftest.er1 | |
d9898ee8 | 18998 | ac_status=$? |
8d138742 CE |
18999 | grep -v '^ *+' conftest.er1 >conftest.err |
19000 | rm -f conftest.er1 | |
19001 | cat conftest.err >&5 | |
19002 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19003 | (exit $ac_status); } && { | |
19004 | test -z "$ac_c_werror_flag" || | |
19005 | test ! -s conftest.err | |
19006 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 19007 | : |
19008 | else | |
8d138742 | 19009 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 19010 | sed 's/^/| /' conftest.$ac_ext >&5 |
19011 | ||
8d138742 | 19012 | ac_cv_type_pid_t=yes |
d9898ee8 | 19013 | fi |
8d138742 CE |
19014 | |
19015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19016 | else | |
19017 | $as_echo "$as_me: failed program was:" >&5 | |
19018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19019 | ||
19020 | ||
19021 | fi | |
19022 | ||
19023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19024 | fi | |
19025 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
19026 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
19027 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
19028 | : | |
19029 | else | |
19030 | ||
19031 | cat >>confdefs.h <<_ACEOF | |
19032 | #define pid_t int | |
19033 | _ACEOF | |
19034 | ||
d9898ee8 | 19035 | fi |
dd184caf | 19036 | |
8d138742 CE |
19037 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
19038 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
19039 | if test "${ac_cv_type_uid_t+set}" = set; then | |
19040 | $as_echo_n "(cached) " >&6 | |
19041 | else | |
19042 | cat >conftest.$ac_ext <<_ACEOF | |
19043 | /* confdefs.h. */ | |
19044 | _ACEOF | |
19045 | cat confdefs.h >>conftest.$ac_ext | |
19046 | cat >>conftest.$ac_ext <<_ACEOF | |
19047 | /* end confdefs.h. */ | |
19048 | #include <sys/types.h> | |
dd184caf | 19049 | |
8d138742 CE |
19050 | _ACEOF |
19051 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19052 | $EGREP "uid_t" >/dev/null 2>&1; then | |
19053 | ac_cv_type_uid_t=yes | |
19054 | else | |
19055 | ac_cv_type_uid_t=no | |
d9898ee8 | 19056 | fi |
8d138742 CE |
19057 | rm -f conftest* |
19058 | ||
d9898ee8 | 19059 | fi |
8d138742 CE |
19060 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
19061 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
19062 | if test $ac_cv_type_uid_t = no; then | |
d9898ee8 | 19063 | |
19064 | cat >>confdefs.h <<\_ACEOF | |
8d138742 CE |
19065 | #define uid_t int |
19066 | _ACEOF | |
19067 | ||
19068 | ||
19069 | cat >>confdefs.h <<\_ACEOF | |
19070 | #define gid_t int | |
d9898ee8 | 19071 | _ACEOF |
19072 | ||
19073 | fi | |
19074 | ||
8d138742 CE |
19075 | |
19076 | ||
19077 | for ac_func in setsid setlogin | |
19078 | do | |
19079 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
19080 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
19081 | $as_echo_n "checking for $ac_func... " >&6; } | |
19082 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
19083 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 19084 | else |
19085 | cat >conftest.$ac_ext <<_ACEOF | |
19086 | /* confdefs.h. */ | |
19087 | _ACEOF | |
19088 | cat confdefs.h >>conftest.$ac_ext | |
19089 | cat >>conftest.$ac_ext <<_ACEOF | |
19090 | /* end confdefs.h. */ | |
8d138742 CE |
19091 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19092 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19093 | #define $ac_func innocuous_$ac_func | |
19094 | ||
19095 | /* System header to define __stub macros and hopefully few prototypes, | |
19096 | which can conflict with char $ac_func (); below. | |
19097 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19098 | <limits.h> exists even on freestanding compilers. */ | |
19099 | ||
19100 | #ifdef __STDC__ | |
19101 | # include <limits.h> | |
19102 | #else | |
19103 | # include <assert.h> | |
d9898ee8 | 19104 | #endif |
8d138742 CE |
19105 | |
19106 | #undef $ac_func | |
19107 | ||
19108 | /* Override any GCC internal prototype to avoid an error. | |
19109 | Use char because int might match the return type of a GCC | |
19110 | builtin and then its argument prototype would still apply. */ | |
19111 | #ifdef __cplusplus | |
19112 | extern "C" | |
19113 | #endif | |
19114 | char $ac_func (); | |
19115 | /* The GNU C library defines this for functions which it implements | |
19116 | to always fail with ENOSYS. Some functions are actually named | |
19117 | something starting with __ and the normal name is an alias. */ | |
19118 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
19119 | choke me | |
d9898ee8 | 19120 | #endif |
19121 | ||
19122 | int | |
19123 | main () | |
19124 | { | |
8d138742 | 19125 | return $ac_func (); |
d9898ee8 | 19126 | ; |
19127 | return 0; | |
19128 | } | |
19129 | _ACEOF | |
8d138742 CE |
19130 | rm -f conftest.$ac_objext conftest$ac_exeext |
19131 | if { (ac_try="$ac_link" | |
dd184caf | 19132 | case "(($ac_try" in |
19133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19134 | *) ac_try_echo=$ac_try;; | |
19135 | esac | |
8d138742 CE |
19136 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19137 | $as_echo "$ac_try_echo") >&5 | |
19138 | (eval "$ac_link") 2>conftest.er1 | |
d9898ee8 | 19139 | ac_status=$? |
19140 | grep -v '^ *+' conftest.er1 >conftest.err | |
19141 | rm -f conftest.er1 | |
19142 | cat conftest.err >&5 | |
8d138742 | 19143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 19144 | (exit $ac_status); } && { |
19145 | test -z "$ac_c_werror_flag" || | |
19146 | test ! -s conftest.err | |
8d138742 CE |
19147 | } && test -s conftest$ac_exeext && { |
19148 | test "$cross_compiling" = yes || | |
19149 | $as_test_x conftest$ac_exeext | |
19150 | }; then | |
19151 | eval "$as_ac_var=yes" | |
d9898ee8 | 19152 | else |
8d138742 | 19153 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 19154 | sed 's/^/| /' conftest.$ac_ext >&5 |
19155 | ||
8d138742 | 19156 | eval "$as_ac_var=no" |
d9898ee8 | 19157 | fi |
dd184caf | 19158 | |
8d138742 CE |
19159 | rm -rf conftest.dSYM |
19160 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19161 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 19162 | fi |
8d138742 CE |
19163 | ac_res=`eval 'as_val=${'$as_ac_var'} |
19164 | $as_echo "$as_val"'` | |
19165 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19166 | $as_echo "$ac_res" >&6; } | |
19167 | as_val=`eval 'as_val=${'$as_ac_var'} | |
19168 | $as_echo "$as_val"'` | |
19169 | if test "x$as_val" = x""yes; then | |
19170 | cat >>confdefs.h <<_ACEOF | |
19171 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
d9898ee8 | 19172 | _ACEOF |
19173 | ||
19174 | fi | |
8d138742 | 19175 | done |
d9898ee8 | 19176 | |
8d138742 CE |
19177 | { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 |
19178 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | |
19179 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | |
19180 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 19181 | else |
8d138742 CE |
19182 | ac_check_lib_save_LIBS=$LIBS |
19183 | LIBS="-lcrypt $LIBS" | |
d9898ee8 | 19184 | cat >conftest.$ac_ext <<_ACEOF |
19185 | /* confdefs.h. */ | |
19186 | _ACEOF | |
19187 | cat confdefs.h >>conftest.$ac_ext | |
19188 | cat >>conftest.$ac_ext <<_ACEOF | |
19189 | /* end confdefs.h. */ | |
8d138742 CE |
19190 | |
19191 | /* Override any GCC internal prototype to avoid an error. | |
19192 | Use char because int might match the return type of a GCC | |
19193 | builtin and then its argument prototype would still apply. */ | |
19194 | #ifdef __cplusplus | |
19195 | extern "C" | |
19196 | #endif | |
19197 | char crypt (); | |
19198 | int | |
19199 | main () | |
19200 | { | |
19201 | return crypt (); | |
19202 | ; | |
19203 | return 0; | |
19204 | } | |
d9898ee8 | 19205 | _ACEOF |
8d138742 CE |
19206 | rm -f conftest.$ac_objext conftest$ac_exeext |
19207 | if { (ac_try="$ac_link" | |
dd184caf | 19208 | case "(($ac_try" in |
19209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19210 | *) ac_try_echo=$ac_try;; | |
19211 | esac | |
8d138742 CE |
19212 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19213 | $as_echo "$ac_try_echo") >&5 | |
19214 | (eval "$ac_link") 2>conftest.er1 | |
d9898ee8 | 19215 | ac_status=$? |
19216 | grep -v '^ *+' conftest.er1 >conftest.err | |
19217 | rm -f conftest.er1 | |
19218 | cat conftest.err >&5 | |
8d138742 | 19219 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 19220 | (exit $ac_status); } && { |
19221 | test -z "$ac_c_werror_flag" || | |
19222 | test ! -s conftest.err | |
8d138742 CE |
19223 | } && test -s conftest$ac_exeext && { |
19224 | test "$cross_compiling" = yes || | |
19225 | $as_test_x conftest$ac_exeext | |
19226 | }; then | |
19227 | ac_cv_lib_crypt_crypt=yes | |
d9898ee8 | 19228 | else |
8d138742 | 19229 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 19230 | sed 's/^/| /' conftest.$ac_ext >&5 |
19231 | ||
8d138742 | 19232 | ac_cv_lib_crypt_crypt=no |
d9898ee8 | 19233 | fi |
dd184caf | 19234 | |
8d138742 CE |
19235 | rm -rf conftest.dSYM |
19236 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19237 | conftest$ac_exeext conftest.$ac_ext | |
19238 | LIBS=$ac_check_lib_save_LIBS | |
19239 | fi | |
19240 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | |
19241 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | |
19242 | if test "x$ac_cv_lib_crypt_crypt" = x""yes; then | |
19243 | CRYPTLIBS="-lcrypt" | |
19244 | fi | |
d9898ee8 | 19245 | |
8d138742 CE |
19246 | saveLIBS="$LIBS" |
19247 | LIBS="$CRYPTLIBS $LIBS" | |
19248 | { $as_echo "$as_me:$LINENO: checking for crypt" >&5 | |
19249 | $as_echo_n "checking for crypt... " >&6; } | |
19250 | if test "${ac_cv_func_crypt+set}" = set; then | |
19251 | $as_echo_n "(cached) " >&6 | |
19252 | else | |
19253 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 19254 | /* confdefs.h. */ |
19255 | _ACEOF | |
19256 | cat confdefs.h >>conftest.$ac_ext | |
19257 | cat >>conftest.$ac_ext <<_ACEOF | |
19258 | /* end confdefs.h. */ | |
8d138742 CE |
19259 | /* Define crypt to an innocuous variant, in case <limits.h> declares crypt. |
19260 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19261 | #define crypt innocuous_crypt | |
19262 | ||
19263 | /* System header to define __stub macros and hopefully few prototypes, | |
19264 | which can conflict with char crypt (); below. | |
19265 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19266 | <limits.h> exists even on freestanding compilers. */ | |
19267 | ||
19268 | #ifdef __STDC__ | |
19269 | # include <limits.h> | |
19270 | #else | |
19271 | # include <assert.h> | |
19272 | #endif | |
19273 | ||
19274 | #undef crypt | |
19275 | ||
19276 | /* Override any GCC internal prototype to avoid an error. | |
19277 | Use char because int might match the return type of a GCC | |
19278 | builtin and then its argument prototype would still apply. */ | |
19279 | #ifdef __cplusplus | |
19280 | extern "C" | |
19281 | #endif | |
19282 | char crypt (); | |
19283 | /* The GNU C library defines this for functions which it implements | |
19284 | to always fail with ENOSYS. Some functions are actually named | |
19285 | something starting with __ and the normal name is an alias. */ | |
19286 | #if defined __stub_crypt || defined __stub___crypt | |
19287 | choke me | |
19288 | #endif | |
19289 | ||
19290 | int | |
19291 | main () | |
19292 | { | |
19293 | return crypt (); | |
19294 | ; | |
19295 | return 0; | |
19296 | } | |
d9898ee8 | 19297 | _ACEOF |
8d138742 CE |
19298 | rm -f conftest.$ac_objext conftest$ac_exeext |
19299 | if { (ac_try="$ac_link" | |
dd184caf | 19300 | case "(($ac_try" in |
19301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19302 | *) ac_try_echo=$ac_try;; | |
19303 | esac | |
8d138742 CE |
19304 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19305 | $as_echo "$ac_try_echo") >&5 | |
19306 | (eval "$ac_link") 2>conftest.er1 | |
d9898ee8 | 19307 | ac_status=$? |
19308 | grep -v '^ *+' conftest.er1 >conftest.err | |
19309 | rm -f conftest.er1 | |
19310 | cat conftest.err >&5 | |
8d138742 CE |
19311 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19312 | (exit $ac_status); } && { | |
19313 | test -z "$ac_c_werror_flag" || | |
dd184caf | 19314 | test ! -s conftest.err |
8d138742 CE |
19315 | } && test -s conftest$ac_exeext && { |
19316 | test "$cross_compiling" = yes || | |
19317 | $as_test_x conftest$ac_exeext | |
dd184caf | 19318 | }; then |
8d138742 | 19319 | ac_cv_func_crypt=yes |
d9898ee8 | 19320 | else |
8d138742 | 19321 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 19322 | sed 's/^/| /' conftest.$ac_ext >&5 |
19323 | ||
8d138742 | 19324 | ac_cv_func_crypt=no |
d9898ee8 | 19325 | fi |
dd184caf | 19326 | |
8d138742 CE |
19327 | rm -rf conftest.dSYM |
19328 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19329 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 19330 | fi |
8d138742 CE |
19331 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5 |
19332 | $as_echo "$ac_cv_func_crypt" >&6; } | |
19333 | if test "x$ac_cv_func_crypt" = x""yes; then | |
d9898ee8 | 19334 | |
8d138742 CE |
19335 | cat >>confdefs.h <<_ACEOF |
19336 | #define HAVE_CRYPT 1 | |
d9898ee8 | 19337 | _ACEOF |
19338 | ||
19339 | fi | |
19340 | ||
8d138742 CE |
19341 | LIBS="$saveLIBS" |
19342 | { $as_echo "$as_me:$LINENO: checking for crypt() prototype" >&5 | |
19343 | $as_echo_n "checking for crypt() prototype... " >&6; } | |
19344 | if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then | |
19345 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 19346 | else |
19347 | cat >conftest.$ac_ext <<_ACEOF | |
19348 | /* confdefs.h. */ | |
19349 | _ACEOF | |
19350 | cat confdefs.h >>conftest.$ac_ext | |
19351 | cat >>conftest.$ac_ext <<_ACEOF | |
8d138742 CE |
19352 | /* end confdefs.h. */ |
19353 | ||
19354 | #if HAVE_CRYPT_H | |
19355 | #include <crypt.h> | |
19356 | #endif | |
19357 | #if HAVE_UNISTD_H | |
19358 | #include <unistd.h> | |
19359 | #endif | |
19360 | int crypt(int, int); | |
19361 | ||
19362 | ||
19363 | int | |
19364 | main () | |
19365 | { | |
d9898ee8 | 19366 | |
19367 | ; | |
19368 | return 0; | |
19369 | } | |
19370 | _ACEOF | |
19371 | rm -f conftest.$ac_objext | |
dd184caf | 19372 | if { (ac_try="$ac_compile" |
19373 | case "(($ac_try" in | |
19374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19375 | *) ac_try_echo=$ac_try;; | |
19376 | esac | |
8d138742 CE |
19377 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19378 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 19379 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 19380 | ac_status=$? |
19381 | grep -v '^ *+' conftest.er1 >conftest.err | |
19382 | rm -f conftest.er1 | |
19383 | cat conftest.err >&5 | |
8d138742 | 19384 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 19385 | (exit $ac_status); } && { |
19386 | test -z "$ac_c_werror_flag" || | |
19387 | test ! -s conftest.err | |
19388 | } && test -s conftest.$ac_objext; then | |
8d138742 | 19389 | userdb_cv_NEED_CRYPT_PROTOTYPE=1 |
d9898ee8 | 19390 | else |
8d138742 | 19391 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 19392 | sed 's/^/| /' conftest.$ac_ext >&5 |
19393 | ||
8d138742 | 19394 | userdb_cv_NEED_CRYPT_PROTOTYPE=0 |
d9898ee8 | 19395 | fi |
dd184caf | 19396 | |
19397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8d138742 CE |
19398 | |
19399 | ||
d9898ee8 | 19400 | fi |
8d138742 CE |
19401 | { $as_echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5 |
19402 | $as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; } | |
d9898ee8 | 19403 | |
8d138742 CE |
19404 | |
19405 | cat >>confdefs.h <<_ACEOF | |
19406 | #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE | |
d9898ee8 | 19407 | _ACEOF |
19408 | ||
8d138742 CE |
19409 | |
19410 | ||
19411 | ||
19412 | ||
19413 | ||
19414 | ||
19415 | # Check whether --with-authdaemonrc was given. | |
19416 | if test "${with_authdaemonrc+set}" = set; then | |
19417 | withval=$with_authdaemonrc; authdaemonrc="$withval" | |
19418 | else | |
19419 | authdaemonrc="$pkgconfdir/authdaemonrc" | |
19420 | fi | |
19421 | ||
19422 | ||
19423 | ||
19424 | ||
19425 | # Check whether --with-authdaemonvar was given. | |
19426 | if test "${with_authdaemonvar+set}" = set; then | |
19427 | withval=$with_authdaemonvar; authdaemonvar="$withval" | |
19428 | else | |
19429 | authdaemonvar="$localstatedir/spool/authdaemon" | |
d9898ee8 | 19430 | fi |
19431 | ||
8d138742 CE |
19432 | |
19433 | ||
19434 | ||
19435 | ||
19436 | ||
19437 | rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h | |
19438 | ||
19439 | ||
19440 | result="" | |
19441 | ||
19442 | if test -x "$COURIERCONFIG" | |
19443 | then | |
19444 | $COURIERCONFIG >conftest.out || exit 1 | |
19445 | sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1 | |
19446 | . ./conftest2.out | |
19447 | rm -f conftest.out conftest2.out | |
19448 | ||
19449 | cmailuser="$mailuser" | |
19450 | cmailgroup="$mailgroup" | |
19451 | result=" (from courier-config)" | |
19452 | fi | |
19453 | ||
19454 | if test -x "$bindir/courierauthconfig" | |
19455 | then | |
19456 | $bindir/courierauthconfig --configfiles >conftest.out || exit 1 | |
19457 | sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1 | |
19458 | . ./conftest2.out | |
19459 | rm -f conftest.out conftest2.out | |
19460 | ||
19461 | cmailuser="$mailuser" | |
19462 | cmailgroup="$mailgroup" | |
19463 | result=" (from previous courierauthconfig)" | |
19464 | fi | |
19465 | ||
19466 | ||
19467 | ||
19468 | LB='[' | |
19469 | RB=']' | |
19470 | ||
19471 | ||
19472 | ||
19473 | { $as_echo "$as_me:$LINENO: checking for mail userid" >&5 | |
19474 | $as_echo_n "checking for mail userid... " >&6; } | |
19475 | ||
19476 | ||
19477 | # Check whether --with-mailuser was given. | |
19478 | if test "${with_mailuser+set}" = set; then | |
19479 | withval=$with_mailuser; mailuser="$withval" | |
19480 | else | |
19481 | if test "$cmailuser" = "" | |
19482 | then | |
19483 | if test "$cross_compiling" = yes; then | |
19484 | { { $as_echo "$as_me:$LINENO: error: Must use --with-mailuser when cross compiling." >&5 | |
19485 | $as_echo "$as_me: error: Must use --with-mailuser when cross compiling." >&2;} | |
19486 | { (exit 1); exit 1; }; } | |
d9898ee8 | 19487 | else |
19488 | cat >conftest.$ac_ext <<_ACEOF | |
19489 | /* confdefs.h. */ | |
19490 | _ACEOF | |
19491 | cat confdefs.h >>conftest.$ac_ext | |
19492 | cat >>conftest.$ac_ext <<_ACEOF | |
19493 | /* end confdefs.h. */ | |
8d138742 CE |
19494 | |
19495 | #include <stdio.h> | |
19496 | #include <pwd.h> | |
19497 | #include <stdlib.h> | |
19498 | ||
19499 | static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0}; | |
19500 | ||
19501 | int main() | |
d9898ee8 | 19502 | { |
8d138742 CE |
19503 | int i; |
19504 | FILE *f; | |
19505 | char *p; | |
19506 | ||
19507 | for (i=0; ids $LB i $RB; i++) | |
19508 | if (getpwnam(ids $LB i $RB)) break; | |
19509 | ||
19510 | f=fopen("conftest.out", "w"); | |
19511 | if (f && ids $LB i $RB) | |
19512 | { | |
19513 | fprintf(f, "%s\n", ids $LB i $RB); | |
19514 | fclose(f); | |
19515 | exit(0); | |
19516 | } | |
19517 | fclose(f); | |
19518 | exit (1); | |
19519 | return (1); | |
d9898ee8 | 19520 | } |
8d138742 | 19521 | |
d9898ee8 | 19522 | _ACEOF |
8d138742 CE |
19523 | rm -f conftest$ac_exeext |
19524 | if { (ac_try="$ac_link" | |
dd184caf | 19525 | case "(($ac_try" in |
19526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19527 | *) ac_try_echo=$ac_try;; | |
19528 | esac | |
8d138742 CE |
19529 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19530 | $as_echo "$ac_try_echo") >&5 | |
19531 | (eval "$ac_link") 2>&5 | |
d9898ee8 | 19532 | ac_status=$? |
8d138742 CE |
19533 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19534 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19535 | { (case "(($ac_try" in | |
19536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19537 | *) ac_try_echo=$ac_try;; | |
19538 | esac | |
19539 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19540 | $as_echo "$ac_try_echo") >&5 | |
19541 | (eval "$ac_try") 2>&5 | |
19542 | ac_status=$? | |
19543 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19544 | (exit $ac_status); }; }; then | |
19545 | mailuser=`cat conftest.out` | |
d9898ee8 | 19546 | else |
8d138742 CE |
19547 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
19548 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 19549 | sed 's/^/| /' conftest.$ac_ext >&5 |
19550 | ||
8d138742 CE |
19551 | ( exit $ac_status ) |
19552 | { { $as_echo "$as_me:$LINENO: error: Cannot determine mail user" >&5 | |
19553 | $as_echo "$as_me: error: Cannot determine mail user" >&2;} | |
19554 | { (exit use --with-mailuser.); exit use --with-mailuser.; }; } | |
d9898ee8 | 19555 | fi |
8d138742 CE |
19556 | rm -rf conftest.dSYM |
19557 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 19558 | fi |
d9898ee8 | 19559 | |
d9898ee8 | 19560 | |
8d138742 CE |
19561 | else |
19562 | mailuser="$cmailuser" | |
19563 | fi | |
19564 | ac_configure_args="$ac_configure_args --with-mailuser=$mailuser" | |
d9898ee8 | 19565 | fi |
19566 | ||
8d138742 CE |
19567 | |
19568 | { $as_echo "$as_me:$LINENO: result: $mailuser $result" >&5 | |
19569 | $as_echo "$mailuser $result" >&6; } | |
19570 | ||
19571 | { $as_echo "$as_me:$LINENO: checking for mail group id" >&5 | |
19572 | $as_echo_n "checking for mail group id... " >&6; } | |
19573 | ||
19574 | ||
19575 | # Check whether --with-mailgroup was given. | |
19576 | if test "${with_mailgroup+set}" = set; then | |
19577 | withval=$with_mailgroup; mailgroup="$withval" | |
19578 | else | |
19579 | if test "$cmailgroup" = "" | |
19580 | then | |
19581 | if test "$cross_compiling" = yes; then | |
19582 | { { $as_echo "$as_me:$LINENO: error: Must use --with-mailgroup when cross compiling." >&5 | |
19583 | $as_echo "$as_me: error: Must use --with-mailgroup when cross compiling." >&2;} | |
19584 | { (exit 1); exit 1; }; } | |
d9898ee8 | 19585 | else |
19586 | cat >conftest.$ac_ext <<_ACEOF | |
19587 | /* confdefs.h. */ | |
19588 | _ACEOF | |
19589 | cat confdefs.h >>conftest.$ac_ext | |
19590 | cat >>conftest.$ac_ext <<_ACEOF | |
19591 | /* end confdefs.h. */ | |
8d138742 CE |
19592 | |
19593 | #include <stdio.h> | |
19594 | #include <grp.h> | |
19595 | #include <stdlib.h> | |
19596 | ||
19597 | static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0}; | |
19598 | ||
19599 | int main() | |
19600 | { | |
19601 | int i; | |
19602 | FILE *f; | |
19603 | ||
19604 | for (i=0; ids $LB i $RB; i++) | |
19605 | if (getgrnam(ids $LB i $RB)) break; | |
19606 | ||
19607 | f=fopen("conftest.out", "w"); | |
19608 | if (f && ids $LB i $RB) | |
19609 | { | |
19610 | fprintf(f, "%s\n", ids $LB i $RB); | |
19611 | fclose(f); | |
19612 | exit(0); | |
19613 | } | |
19614 | fclose(f); | |
19615 | exit (1); | |
19616 | return (1); | |
19617 | } | |
d9898ee8 | 19618 | |
19619 | _ACEOF | |
8d138742 CE |
19620 | rm -f conftest$ac_exeext |
19621 | if { (ac_try="$ac_link" | |
19622 | case "(($ac_try" in | |
19623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19624 | *) ac_try_echo=$ac_try;; | |
19625 | esac | |
19626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19627 | $as_echo "$ac_try_echo") >&5 | |
19628 | (eval "$ac_link") 2>&5 | |
19629 | ac_status=$? | |
19630 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19631 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19632 | { (case "(($ac_try" in | |
19633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19634 | *) ac_try_echo=$ac_try;; | |
19635 | esac | |
19636 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19637 | $as_echo "$ac_try_echo") >&5 | |
19638 | (eval "$ac_try") 2>&5 | |
19639 | ac_status=$? | |
19640 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19641 | (exit $ac_status); }; }; then | |
19642 | mailgroup=`cat conftest.out` | |
d9898ee8 | 19643 | else |
8d138742 CE |
19644 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
19645 | $as_echo "$as_me: failed program was:" >&5 | |
19646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19647 | ||
19648 | ( exit $ac_status ) | |
19649 | { { $as_echo "$as_me:$LINENO: error: Cannot determine mail group" >&5 | |
19650 | $as_echo "$as_me: error: Cannot determine mail group" >&2;} | |
19651 | { (exit use --with-mailgroup.); exit use --with-mailgroup.; }; } | |
d9898ee8 | 19652 | fi |
8d138742 CE |
19653 | rm -rf conftest.dSYM |
19654 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19655 | fi | |
19656 | ||
19657 | ||
19658 | else | |
19659 | mailgroup="$cmailgroup" | |
19660 | fi | |
19661 | ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup" | |
d9898ee8 | 19662 | |
19663 | fi | |
d9898ee8 | 19664 | |
8d138742 CE |
19665 | { $as_echo "$as_me:$LINENO: result: $mailgroup $result" >&5 |
19666 | $as_echo "$mailgroup $result" >&6; } | |
d9898ee8 | 19667 | |
19668 | ||
8d138742 CE |
19669 | rm -f conftest.out |
19670 | ||
19671 | ||
19672 | # Check whether --with-stdheaderdir was given. | |
19673 | if test "${with_stdheaderdir+set}" = set; then | |
19674 | withval=$with_stdheaderdir; | |
19675 | if test "$withval" = "no" | |
19676 | then | |
19677 | ||
19678 | cat >>confdefs.h <<_ACEOF | |
19679 | #define HAVE_NOSTDHEADERDIR 1 | |
d9898ee8 | 19680 | _ACEOF |
19681 | ||
8d138742 CE |
19682 | fi |
19683 | ||
d9898ee8 | 19684 | fi |
19685 | ||
8d138742 CE |
19686 | |
19687 | { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 | |
19688 | $as_echo_n "checking for socklen_t... " >&6; } | |
19689 | if test "${authlib_cv_hassocklen_t+set}" = set; then | |
19690 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 19691 | else |
19692 | cat >conftest.$ac_ext <<_ACEOF | |
19693 | /* confdefs.h. */ | |
19694 | _ACEOF | |
19695 | cat confdefs.h >>conftest.$ac_ext | |
19696 | cat >>conftest.$ac_ext <<_ACEOF | |
19697 | /* end confdefs.h. */ | |
8d138742 | 19698 | |
d9898ee8 | 19699 | #include <sys/types.h> |
8d138742 CE |
19700 | #include <sys/socket.h> |
19701 | ||
19702 | socklen_t sl_t; | |
d9898ee8 | 19703 | |
d9898ee8 | 19704 | _ACEOF |
19705 | rm -f conftest.$ac_objext | |
dd184caf | 19706 | if { (ac_try="$ac_compile" |
19707 | case "(($ac_try" in | |
19708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19709 | *) ac_try_echo=$ac_try;; | |
19710 | esac | |
8d138742 CE |
19711 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19712 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 19713 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 19714 | ac_status=$? |
19715 | grep -v '^ *+' conftest.er1 >conftest.err | |
19716 | rm -f conftest.er1 | |
19717 | cat conftest.err >&5 | |
8d138742 | 19718 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 19719 | (exit $ac_status); } && { |
19720 | test -z "$ac_c_werror_flag" || | |
19721 | test ! -s conftest.err | |
19722 | } && test -s conftest.$ac_objext; then | |
8d138742 | 19723 | authlib_cv_hassocklen_t=yes |
d9898ee8 | 19724 | else |
8d138742 | 19725 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 19726 | sed 's/^/| /' conftest.$ac_ext >&5 |
19727 | ||
8d138742 | 19728 | authlib_cv_hassocklen_t=no |
d9898ee8 | 19729 | fi |
dd184caf | 19730 | |
19731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8d138742 | 19732 | |
d9898ee8 | 19733 | fi |
8d138742 CE |
19734 | { $as_echo "$as_me:$LINENO: result: $authlib_cv_hassocklen_t" >&5 |
19735 | $as_echo "$authlib_cv_hassocklen_t" >&6; } | |
19736 | ||
19737 | socklen_t="int" | |
19738 | ||
19739 | if test $authlib_cv_hassocklen_t = yes | |
19740 | then | |
19741 | : | |
19742 | else | |
d9898ee8 | 19743 | |
19744 | cat >>confdefs.h <<_ACEOF | |
8d138742 | 19745 | #define socklen_t int |
d9898ee8 | 19746 | _ACEOF |
19747 | ||
8d138742 CE |
19748 | fi |
19749 | ||
d9898ee8 | 19750 | |
8d138742 CE |
19751 | # Check whether --with-repository was given. |
19752 | if test "${with_repository+set}" = set; then | |
19753 | withval=$with_repository; REPOSITORY="$withval" | |
19754 | fi | |
d9898ee8 | 19755 | |
19756 | ||
19757 | ||
8d138742 CE |
19758 | if test -d ${srcdir}/docbook; then |
19759 | HAVE_SGML_TRUE= | |
19760 | HAVE_SGML_FALSE='#' | |
d9898ee8 | 19761 | else |
8d138742 CE |
19762 | HAVE_SGML_TRUE='#' |
19763 | HAVE_SGML_FALSE= | |
19764 | fi | |
d9898ee8 | 19765 | |
8d138742 | 19766 | subdirs="$subdirs bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb unicode rfc822 random128 liblock liblog" |
d9898ee8 | 19767 | |
d9898ee8 | 19768 | |
8d138742 | 19769 | ac_config_files="$ac_config_files Makefile authdaemond authdaemonrc authsystem.passwd README.authdebug.html dbobj.config dbobj.h authmigrate courier-authlib.spec courier-authlib.lpspec courier-authlib.sysvinit userdb-test-cram-md5.pl" |
d9898ee8 | 19770 | |
8d138742 CE |
19771 | cat >confcache <<\_ACEOF |
19772 | # This file is a shell script that caches the results of configure | |
19773 | # tests run on this system so they can be shared between configure | |
19774 | # scripts and configure runs, see configure's option --config-cache. | |
19775 | # It is not useful on other systems. If it contains results you don't | |
19776 | # want to keep, you may remove or edit it. | |
19777 | # | |
19778 | # config.status only pays attention to the cache file if you give it | |
19779 | # the --recheck option to rerun configure. | |
19780 | # | |
19781 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
19782 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
19783 | # following values. | |
d9898ee8 | 19784 | |
d9898ee8 | 19785 | _ACEOF |
d9898ee8 | 19786 | |
8d138742 CE |
19787 | # The following way of writing the cache mishandles newlines in values, |
19788 | # but we know of no workaround that is simple, portable, and efficient. | |
19789 | # So, we kill variables containing newlines. | |
19790 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19791 | # and sets the high bit in the cache file unless we assign to the vars. | |
19792 | ( | |
19793 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
19794 | eval ac_val=\$$ac_var | |
19795 | case $ac_val in #( | |
19796 | *${as_nl}*) | |
19797 | case $ac_var in #( | |
19798 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
19799 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
19800 | esac | |
19801 | case $ac_var in #( | |
19802 | _ | IFS | as_nl) ;; #( | |
19803 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
19804 | *) $as_unset $ac_var ;; | |
19805 | esac ;; | |
19806 | esac | |
19807 | done | |
dd184caf | 19808 | |
8d138742 CE |
19809 | (set) 2>&1 | |
19810 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
19811 | *${as_nl}ac_space=\ *) | |
19812 | # `set' does not quote correctly, so add quotes (double-quote | |
19813 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
19814 | sed -n \ | |
19815 | "s/'/'\\\\''/g; | |
19816 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
19817 | ;; #( | |
19818 | *) | |
19819 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19820 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
19821 | ;; | |
19822 | esac | | |
19823 | sort | |
19824 | ) | | |
19825 | sed ' | |
19826 | /^ac_cv_env_/b end | |
19827 | t clear | |
19828 | :clear | |
19829 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
19830 | t end | |
19831 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
19832 | :end' >>confcache | |
19833 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
19834 | if test -w "$cache_file"; then | |
19835 | test "x$cache_file" != "x/dev/null" && | |
19836 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
19837 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
19838 | cat confcache >$cache_file | |
19839 | else | |
19840 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
19841 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
19842 | fi | |
d9898ee8 | 19843 | fi |
8d138742 | 19844 | rm -f confcache |
d9898ee8 | 19845 | |
8d138742 CE |
19846 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
19847 | # Let make expand exec_prefix. | |
19848 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
19849 | ||
19850 | DEFS=-DHAVE_CONFIG_H | |
19851 | ||
19852 | ac_libobjs= | |
19853 | ac_ltlibobjs= | |
19854 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
19855 | # 1. Remove the extension, and $U if already installed. | |
19856 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
19857 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
19858 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
19859 | # will be set to the directory where LIBOBJS objects are built. | |
19860 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
19861 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
d9898ee8 | 19862 | done |
8d138742 | 19863 | LIBOBJS=$ac_libobjs |
d9898ee8 | 19864 | |
8d138742 | 19865 | LTLIBOBJS=$ac_ltlibobjs |
d9898ee8 | 19866 | |
8d138742 CE |
19867 | |
19868 | if test -n "$EXEEXT"; then | |
19869 | am__EXEEXT_TRUE= | |
19870 | am__EXEEXT_FALSE='#' | |
d9898ee8 | 19871 | else |
8d138742 CE |
19872 | am__EXEEXT_TRUE='#' |
19873 | am__EXEEXT_FALSE= | |
19874 | fi | |
d9898ee8 | 19875 | |
8d138742 CE |
19876 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
19877 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
19878 | Usually this means the macro was only invoked conditionally." >&5 | |
19879 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
19880 | Usually this means the macro was only invoked conditionally." >&2;} | |
19881 | { (exit 1); exit 1; }; } | |
19882 | fi | |
19883 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
19884 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
19885 | Usually this means the macro was only invoked conditionally." >&5 | |
19886 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
19887 | Usually this means the macro was only invoked conditionally." >&2;} | |
19888 | { (exit 1); exit 1; }; } | |
19889 | fi | |
19890 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | |
19891 | { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. | |
19892 | Usually this means the macro was only invoked conditionally." >&5 | |
19893 | $as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. | |
19894 | Usually this means the macro was only invoked conditionally." >&2;} | |
19895 | { (exit 1); exit 1; }; } | |
19896 | fi | |
19897 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | |
19898 | { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. | |
19899 | Usually this means the macro was only invoked conditionally." >&5 | |
19900 | $as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. | |
19901 | Usually this means the macro was only invoked conditionally." >&2;} | |
19902 | { (exit 1); exit 1; }; } | |
19903 | fi | |
19904 | LT_CONFIG_H=courier_auth_config.h | |
19905 | ||
19906 | _ltdl_libobjs= | |
19907 | _ltdl_ltlibobjs= | |
19908 | if test -n "$_LT_LIBOBJS"; then | |
19909 | # Remove the extension. | |
19910 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' | |
19911 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do | |
19912 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" | |
19913 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" | |
19914 | done | |
19915 | fi | |
19916 | ltdl_LIBOBJS=$_ltdl_libobjs | |
19917 | ||
19918 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs | |
19919 | ||
19920 | ||
19921 | if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then | |
19922 | { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LDAP\" was never defined. | |
19923 | Usually this means the macro was only invoked conditionally." >&5 | |
19924 | $as_echo "$as_me: error: conditional \"HAVE_LDAP\" was never defined. | |
19925 | Usually this means the macro was only invoked conditionally." >&2;} | |
19926 | { (exit 1); exit 1; }; } | |
d9898ee8 | 19927 | fi |
8d138742 CE |
19928 | if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then |
19929 | { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHPGSQL\" was never defined. | |
19930 | Usually this means the macro was only invoked conditionally." >&5 | |
19931 | $as_echo "$as_me: error: conditional \"HAVE_AUTHPGSQL\" was never defined. | |
19932 | Usually this means the macro was only invoked conditionally." >&2;} | |
19933 | { (exit 1); exit 1; }; } | |
d9898ee8 | 19934 | fi |
8d138742 CE |
19935 | if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then |
19936 | { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHMYSQL\" was never defined. | |
19937 | Usually this means the macro was only invoked conditionally." >&5 | |
19938 | $as_echo "$as_me: error: conditional \"HAVE_AUTHMYSQL\" was never defined. | |
19939 | Usually this means the macro was only invoked conditionally." >&2;} | |
19940 | { (exit 1); exit 1; }; } | |
19941 | fi | |
19942 | if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then | |
19943 | { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CUSTOM\" was never defined. | |
19944 | Usually this means the macro was only invoked conditionally." >&5 | |
19945 | $as_echo "$as_me: error: conditional \"HAVE_CUSTOM\" was never defined. | |
19946 | Usually this means the macro was only invoked conditionally." >&2;} | |
19947 | { (exit 1); exit 1; }; } | |
19948 | fi | |
19949 | if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then | |
19950 | { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PIPE\" was never defined. | |
19951 | Usually this means the macro was only invoked conditionally." >&5 | |
19952 | $as_echo "$as_me: error: conditional \"HAVE_PIPE\" was never defined. | |
19953 | Usually this means the macro was only invoked conditionally." >&2;} | |
19954 | { (exit 1); exit 1; }; } | |
19955 | fi | |
19956 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then | |
19957 | { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined. | |
19958 | Usually this means the macro was only invoked conditionally." >&5 | |
19959 | $as_echo "$as_me: error: conditional \"HAVE_SGML\" was never defined. | |
19960 | Usually this means the macro was only invoked conditionally." >&2;} | |
19961 | { (exit 1); exit 1; }; } | |
d9898ee8 | 19962 | fi |
19963 | ||
8d138742 CE |
19964 | : ${CONFIG_STATUS=./config.status} |
19965 | ac_write_fail=0 | |
19966 | ac_clean_files_save=$ac_clean_files | |
19967 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
19968 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
19969 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
19970 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19971 | #! $SHELL | |
19972 | # Generated by $as_me. | |
19973 | # Run this file to recreate the current configuration. | |
19974 | # Compiler output produced by configure, useful for debugging | |
19975 | # configure, is in config.log if it exists. | |
19976 | ||
19977 | debug=false | |
19978 | ac_cs_recheck=false | |
19979 | ac_cs_silent=false | |
19980 | SHELL=\${CONFIG_SHELL-$SHELL} | |
d9898ee8 | 19981 | _ACEOF |
d9898ee8 | 19982 | |
8d138742 CE |
19983 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19984 | ## --------------------- ## | |
19985 | ## M4sh Initialization. ## | |
19986 | ## --------------------- ## | |
d9898ee8 | 19987 | |
8d138742 CE |
19988 | # Be more Bourne compatible |
19989 | DUALCASE=1; export DUALCASE # for MKS sh | |
19990 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
19991 | emulate sh | |
19992 | NULLCMD=: | |
19993 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
19994 | # is contrary to our usage. Disable this feature. | |
19995 | alias -g '${1+"$@"}'='"$@"' | |
19996 | setopt NO_GLOB_SUBST | |
19997 | else | |
19998 | case `(set -o) 2>/dev/null` in | |
19999 | *posix*) set -o posix ;; | |
20000 | esac | |
d9898ee8 | 20001 | |
8d138742 | 20002 | fi |
d9898ee8 | 20003 | |
d9898ee8 | 20004 | |
d9898ee8 | 20005 | |
dd184caf | 20006 | |
8d138742 CE |
20007 | # PATH needs CR |
20008 | # Avoid depending upon Character Ranges. | |
20009 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
20010 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
20011 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
20012 | as_cr_digits='0123456789' | |
20013 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 20014 | |
8d138742 CE |
20015 | as_nl=' |
20016 | ' | |
20017 | export as_nl | |
20018 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
20019 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
20020 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
20021 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
20022 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
20023 | as_echo='printf %s\n' | |
20024 | as_echo_n='printf %s' | |
20025 | else | |
20026 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
20027 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
20028 | as_echo_n='/usr/ucb/echo -n' | |
20029 | else | |
20030 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
20031 | as_echo_n_body='eval | |
20032 | arg=$1; | |
20033 | case $arg in | |
20034 | *"$as_nl"*) | |
20035 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
20036 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
20037 | esac; | |
20038 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
20039 | ' | |
20040 | export as_echo_n_body | |
20041 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
20042 | fi | |
20043 | export as_echo_body | |
20044 | as_echo='sh -c $as_echo_body as_echo' | |
20045 | fi | |
d9898ee8 | 20046 | |
8d138742 CE |
20047 | # The user is always right. |
20048 | if test "${PATH_SEPARATOR+set}" != set; then | |
20049 | PATH_SEPARATOR=: | |
20050 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
20051 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
20052 | PATH_SEPARATOR=';' | |
20053 | } | |
d9898ee8 | 20054 | fi |
20055 | ||
8d138742 CE |
20056 | # Support unset when possible. |
20057 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
20058 | as_unset=unset | |
d9898ee8 | 20059 | else |
8d138742 CE |
20060 | as_unset=false |
20061 | fi | |
d9898ee8 | 20062 | |
d9898ee8 | 20063 | |
8d138742 CE |
20064 | # IFS |
20065 | # We need space, tab and new line, in precisely that order. Quoting is | |
20066 | # there to prevent editors from complaining about space-tab. | |
20067 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
20068 | # splitting by setting IFS to empty value.) | |
20069 | IFS=" "" $as_nl" | |
d9898ee8 | 20070 | |
8d138742 CE |
20071 | # Find who we are. Look in the path if we contain no directory separator. |
20072 | case $0 in | |
20073 | *[\\/]* ) as_myself=$0 ;; | |
20074 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20075 | for as_dir in $PATH | |
20076 | do | |
20077 | IFS=$as_save_IFS | |
20078 | test -z "$as_dir" && as_dir=. | |
20079 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
20080 | done | |
20081 | IFS=$as_save_IFS | |
d9898ee8 | 20082 | |
8d138742 | 20083 | ;; |
dd184caf | 20084 | esac |
8d138742 CE |
20085 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
20086 | # in which case we are not to be found in the path. | |
20087 | if test "x$as_myself" = x; then | |
20088 | as_myself=$0 | |
20089 | fi | |
20090 | if test ! -f "$as_myself"; then | |
20091 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
20092 | { (exit 1); exit 1; } | |
d9898ee8 | 20093 | fi |
dd184caf | 20094 | |
8d138742 CE |
20095 | # Work around bugs in pre-3.0 UWIN ksh. |
20096 | for as_var in ENV MAIL MAILPATH | |
20097 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
20098 | done | |
20099 | PS1='$ ' | |
20100 | PS2='> ' | |
20101 | PS4='+ ' | |
d9898ee8 | 20102 | |
8d138742 CE |
20103 | # NLS nuisances. |
20104 | LC_ALL=C | |
20105 | export LC_ALL | |
20106 | LANGUAGE=C | |
20107 | export LANGUAGE | |
20108 | ||
20109 | # Required to use basename. | |
20110 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
20111 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
20112 | as_expr=expr | |
20113 | else | |
20114 | as_expr=false | |
20115 | fi | |
d9898ee8 | 20116 | |
8d138742 CE |
20117 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
20118 | as_basename=basename | |
20119 | else | |
20120 | as_basename=false | |
d9898ee8 | 20121 | fi |
d9898ee8 | 20122 | |
20123 | ||
8d138742 CE |
20124 | # Name of the executable. |
20125 | as_me=`$as_basename -- "$0" || | |
20126 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
20127 | X"$0" : 'X\(//\)$' \| \ | |
20128 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
20129 | $as_echo X/"$0" | | |
20130 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
20131 | s//\1/ | |
20132 | q | |
20133 | } | |
20134 | /^X\/\(\/\/\)$/{ | |
20135 | s//\1/ | |
20136 | q | |
20137 | } | |
20138 | /^X\/\(\/\).*/{ | |
20139 | s//\1/ | |
20140 | q | |
20141 | } | |
20142 | s/.*/./; q'` | |
20143 | ||
20144 | # CDPATH. | |
20145 | $as_unset CDPATH | |
d9898ee8 | 20146 | |
20147 | ||
20148 | ||
8d138742 CE |
20149 | as_lineno_1=$LINENO |
20150 | as_lineno_2=$LINENO | |
20151 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
20152 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
d9898ee8 | 20153 | |
8d138742 CE |
20154 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
20155 | # uniformly replaced by the line number. The first 'sed' inserts a | |
20156 | # line-number line after each line using $LINENO; the second 'sed' | |
20157 | # does the real work. The second script uses 'N' to pair each | |
20158 | # line-number line with the line containing $LINENO, and appends | |
20159 | # trailing '-' during substitution so that $LINENO is not a special | |
20160 | # case at line end. | |
20161 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
20162 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
20163 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
20164 | sed -n ' | |
20165 | p | |
20166 | /[$]LINENO/= | |
20167 | ' <$as_myself | | |
20168 | sed ' | |
20169 | s/[$]LINENO.*/&-/ | |
20170 | t lineno | |
20171 | b | |
20172 | :lineno | |
20173 | N | |
20174 | :loop | |
20175 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
20176 | t loop | |
20177 | s/-\n.*// | |
20178 | ' >$as_me.lineno && | |
20179 | chmod +x "$as_me.lineno" || | |
20180 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
20181 | { (exit 1); exit 1; }; } | |
d9898ee8 | 20182 | |
8d138742 CE |
20183 | # Don't try to exec as it changes $[0], causing all sort of problems |
20184 | # (the dirname of $[0] is not the place where we might find the | |
20185 | # original and so on. Autoconf is especially sensitive to this). | |
20186 | . "./$as_me.lineno" | |
20187 | # Exit status is that of the last command. | |
20188 | exit | |
20189 | } | |
d9898ee8 | 20190 | |
20191 | ||
8d138742 CE |
20192 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
20193 | as_dirname=dirname | |
d9898ee8 | 20194 | else |
8d138742 | 20195 | as_dirname=false |
dd184caf | 20196 | fi |
d9898ee8 | 20197 | |
8d138742 CE |
20198 | ECHO_C= ECHO_N= ECHO_T= |
20199 | case `echo -n x` in | |
20200 | -n*) | |
20201 | case `echo 'x\c'` in | |
20202 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
20203 | *) ECHO_C='\c';; | |
20204 | esac;; | |
20205 | *) | |
20206 | ECHO_N='-n';; | |
20207 | esac | |
20208 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
20209 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
20210 | as_expr=expr | |
d9898ee8 | 20211 | else |
8d138742 | 20212 | as_expr=false |
dd184caf | 20213 | fi |
20214 | ||
8d138742 CE |
20215 | rm -f conf$$ conf$$.exe conf$$.file |
20216 | if test -d conf$$.dir; then | |
20217 | rm -f conf$$.dir/conf$$.file | |
20218 | else | |
20219 | rm -f conf$$.dir | |
20220 | mkdir conf$$.dir 2>/dev/null | |
20221 | fi | |
20222 | if (echo >conf$$.file) 2>/dev/null; then | |
20223 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
20224 | as_ln_s='ln -s' | |
20225 | # ... but there are two gotchas: | |
20226 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
20227 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
20228 | # In both cases, we have to default to `cp -p'. | |
20229 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
20230 | as_ln_s='cp -p' | |
20231 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
20232 | as_ln_s=ln | |
20233 | else | |
20234 | as_ln_s='cp -p' | |
20235 | fi | |
20236 | else | |
20237 | as_ln_s='cp -p' | |
20238 | fi | |
20239 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
20240 | rmdir conf$$.dir 2>/dev/null | |
d9898ee8 | 20241 | |
8d138742 CE |
20242 | if mkdir -p . 2>/dev/null; then |
20243 | as_mkdir_p=: | |
20244 | else | |
20245 | test -d ./-p && rmdir ./-p | |
20246 | as_mkdir_p=false | |
20247 | fi | |
d9898ee8 | 20248 | |
8d138742 CE |
20249 | if test -x / >/dev/null 2>&1; then |
20250 | as_test_x='test -x' | |
20251 | else | |
20252 | if ls -dL / >/dev/null 2>&1; then | |
20253 | as_ls_L_option=L | |
20254 | else | |
20255 | as_ls_L_option= | |
20256 | fi | |
20257 | as_test_x=' | |
20258 | eval sh -c '\'' | |
20259 | if test -d "$1"; then | |
20260 | test -d "$1/."; | |
20261 | else | |
20262 | case $1 in | |
20263 | -*)set "./$1";; | |
20264 | esac; | |
20265 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
20266 | ???[sx]*):;;*)false;;esac;fi | |
20267 | '\'' sh | |
20268 | ' | |
20269 | fi | |
20270 | as_executable_p=$as_test_x | |
d9898ee8 | 20271 | |
8d138742 CE |
20272 | # Sed expression to map a string onto a valid CPP name. |
20273 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 20274 | |
8d138742 CE |
20275 | # Sed expression to map a string onto a valid variable name. |
20276 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 20277 | |
d9898ee8 | 20278 | |
8d138742 | 20279 | exec 6>&1 |
d9898ee8 | 20280 | |
8d138742 CE |
20281 | # Save the log message, to keep $[0] and so on meaningful, and to |
20282 | # report actual input values of CONFIG_FILES etc. instead of their | |
20283 | # values after options handling. | |
20284 | ac_log=" | |
20285 | This file was extended by courier-authlib $as_me 0.63.0, which was | |
20286 | generated by GNU Autoconf 2.63. Invocation command line was | |
d9898ee8 | 20287 | |
8d138742 CE |
20288 | CONFIG_FILES = $CONFIG_FILES |
20289 | CONFIG_HEADERS = $CONFIG_HEADERS | |
20290 | CONFIG_LINKS = $CONFIG_LINKS | |
20291 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
20292 | $ $0 $@ | |
d9898ee8 | 20293 | |
8d138742 CE |
20294 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
20295 | " | |
d9898ee8 | 20296 | |
8d138742 | 20297 | _ACEOF |
d9898ee8 | 20298 | |
8d138742 CE |
20299 | case $ac_config_files in *" |
20300 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
20301 | esac | |
d9898ee8 | 20302 | |
8d138742 CE |
20303 | case $ac_config_headers in *" |
20304 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
20305 | esac | |
d9898ee8 | 20306 | |
20307 | ||
8d138742 CE |
20308 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
20309 | # Files that config.status was made for. | |
20310 | config_files="$ac_config_files" | |
20311 | config_headers="$ac_config_headers" | |
20312 | config_commands="$ac_config_commands" | |
d9898ee8 | 20313 | |
8d138742 | 20314 | _ACEOF |
d9898ee8 | 20315 | |
8d138742 CE |
20316 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
20317 | ac_cs_usage="\ | |
20318 | \`$as_me' instantiates files from templates according to the | |
20319 | current configuration. | |
d9898ee8 | 20320 | |
8d138742 | 20321 | Usage: $0 [OPTION]... [FILE]... |
d9898ee8 | 20322 | |
8d138742 CE |
20323 | -h, --help print this help, then exit |
20324 | -V, --version print version number and configuration settings, then exit | |
20325 | -q, --quiet, --silent | |
20326 | do not print progress messages | |
20327 | -d, --debug don't remove temporary files | |
20328 | --recheck update $as_me by reconfiguring in the same conditions | |
20329 | --file=FILE[:TEMPLATE] | |
20330 | instantiate the configuration file FILE | |
20331 | --header=FILE[:TEMPLATE] | |
20332 | instantiate the configuration header FILE | |
d9898ee8 | 20333 | |
8d138742 CE |
20334 | Configuration files: |
20335 | $config_files | |
d9898ee8 | 20336 | |
8d138742 CE |
20337 | Configuration headers: |
20338 | $config_headers | |
d9898ee8 | 20339 | |
8d138742 CE |
20340 | Configuration commands: |
20341 | $config_commands | |
d9898ee8 | 20342 | |
8d138742 | 20343 | Report bugs to <bug-autoconf@gnu.org>." |
d9898ee8 | 20344 | |
8d138742 CE |
20345 | _ACEOF |
20346 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20347 | ac_cs_version="\\ | |
20348 | courier-authlib config.status 0.63.0 | |
20349 | configured by $0, generated by GNU Autoconf 2.63, | |
20350 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
d9898ee8 | 20351 | |
8d138742 CE |
20352 | Copyright (C) 2008 Free Software Foundation, Inc. |
20353 | This config.status script is free software; the Free Software Foundation | |
20354 | gives unlimited permission to copy, distribute and modify it." | |
d9898ee8 | 20355 | |
8d138742 CE |
20356 | ac_pwd='$ac_pwd' |
20357 | srcdir='$srcdir' | |
20358 | INSTALL='$INSTALL' | |
20359 | MKDIR_P='$MKDIR_P' | |
20360 | AWK='$AWK' | |
20361 | test -n "\$AWK" || AWK=awk | |
d9898ee8 | 20362 | _ACEOF |
d9898ee8 | 20363 | |
8d138742 CE |
20364 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
20365 | # The default lists apply if the user does not specify any file. | |
20366 | ac_need_defaults=: | |
20367 | while test $# != 0 | |
20368 | do | |
20369 | case $1 in | |
20370 | --*=*) | |
20371 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
20372 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
20373 | ac_shift=: | |
20374 | ;; | |
20375 | *) | |
20376 | ac_option=$1 | |
20377 | ac_optarg=$2 | |
20378 | ac_shift=shift | |
20379 | ;; | |
20380 | esac | |
20381 | ||
20382 | case $ac_option in | |
20383 | # Handling of the options. | |
20384 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
20385 | ac_cs_recheck=: ;; | |
20386 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
20387 | $as_echo "$ac_cs_version"; exit ;; | |
20388 | --debug | --debu | --deb | --de | --d | -d ) | |
20389 | debug=: ;; | |
20390 | --file | --fil | --fi | --f ) | |
20391 | $ac_shift | |
20392 | case $ac_optarg in | |
20393 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20394 | esac | |
20395 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
20396 | ac_need_defaults=false;; | |
20397 | --header | --heade | --head | --hea ) | |
20398 | $ac_shift | |
20399 | case $ac_optarg in | |
20400 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20401 | esac | |
20402 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
20403 | ac_need_defaults=false;; | |
20404 | --he | --h) | |
20405 | # Conflict between --help and --header | |
20406 | { $as_echo "$as_me: error: ambiguous option: $1 | |
20407 | Try \`$0 --help' for more information." >&2 | |
20408 | { (exit 1); exit 1; }; };; | |
20409 | --help | --hel | -h ) | |
20410 | $as_echo "$ac_cs_usage"; exit ;; | |
20411 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
20412 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
20413 | ac_cs_silent=: ;; | |
dd184caf | 20414 | |
8d138742 CE |
20415 | # This is an error. |
20416 | -*) { $as_echo "$as_me: error: unrecognized option: $1 | |
20417 | Try \`$0 --help' for more information." >&2 | |
20418 | { (exit 1); exit 1; }; } ;; | |
dd184caf | 20419 | |
8d138742 CE |
20420 | *) ac_config_targets="$ac_config_targets $1" |
20421 | ac_need_defaults=false ;; | |
d9898ee8 | 20422 | |
8d138742 CE |
20423 | esac |
20424 | shift | |
20425 | done | |
d9898ee8 | 20426 | |
8d138742 | 20427 | ac_configure_extra_args= |
d9898ee8 | 20428 | |
8d138742 CE |
20429 | if $ac_cs_silent; then |
20430 | exec 6>/dev/null | |
20431 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
20432 | fi | |
d9898ee8 | 20433 | |
8d138742 CE |
20434 | _ACEOF |
20435 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20436 | if \$ac_cs_recheck; then | |
20437 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
20438 | shift | |
20439 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
20440 | CONFIG_SHELL='$SHELL' | |
20441 | export CONFIG_SHELL | |
20442 | exec "\$@" | |
20443 | fi | |
dd184caf | 20444 | |
d9898ee8 | 20445 | _ACEOF |
8d138742 CE |
20446 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
20447 | exec 5>>config.log | |
20448 | { | |
20449 | echo | |
20450 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
20451 | ## Running $as_me. ## | |
20452 | _ASBOX | |
20453 | $as_echo "$ac_log" | |
20454 | } >&5 | |
d9898ee8 | 20455 | |
8d138742 CE |
20456 | _ACEOF |
20457 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20458 | # | |
20459 | # INIT-COMMANDS | |
20460 | # | |
20461 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
d9898ee8 | 20462 | |
d9898ee8 | 20463 | |
8d138742 CE |
20464 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
20465 | # if CDPATH is set. | |
20466 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
d9898ee8 | 20467 | |
8d138742 CE |
20468 | sed_quote_subst='$sed_quote_subst' |
20469 | double_quote_subst='$double_quote_subst' | |
20470 | delay_variable_subst='$delay_variable_subst' | |
20471 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
20472 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
20473 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
20474 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
20475 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
20476 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
20477 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
20478 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
20479 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
20480 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
20481 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
20482 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
20483 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
20484 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
20485 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
20486 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
20487 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
20488 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
20489 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
20490 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
20491 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
20492 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
20493 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
20494 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
20495 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
20496 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
20497 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
20498 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20499 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
20500 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
20501 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
20502 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
20503 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
20504 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
20505 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
20506 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20507 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20508 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20509 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
20510 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
20511 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
20512 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
20513 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
20514 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
20515 | 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"`' | |
20516 | 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"`' | |
20517 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
20518 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
20519 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
20520 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
20521 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
20522 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
20523 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
20524 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
20525 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
20526 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
20527 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
20528 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
20529 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
20530 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
20531 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
20532 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
20533 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20534 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20535 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
20536 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
20537 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20538 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20539 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
20540 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20541 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20542 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20543 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20544 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20545 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20546 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
20547 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
20548 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
20549 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20550 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
20551 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
20552 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
20553 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
20554 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
20555 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
20556 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
20557 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
20558 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
20559 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
20560 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
20561 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20562 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
20563 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
20564 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20565 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20566 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
20567 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
20568 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
20569 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
20570 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
20571 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
20572 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
20573 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20574 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20575 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20576 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20577 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20578 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20579 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
20580 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
20581 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20582 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20583 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
20584 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
20585 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
20586 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
20587 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
20588 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
20589 | ||
20590 | LTCC='$LTCC' | |
20591 | LTCFLAGS='$LTCFLAGS' | |
20592 | compiler='$compiler_DEFAULT' | |
20593 | ||
20594 | # Quote evaled strings. | |
20595 | for var in SED \ | |
20596 | GREP \ | |
20597 | EGREP \ | |
20598 | FGREP \ | |
20599 | LD \ | |
20600 | NM \ | |
20601 | LN_S \ | |
20602 | lt_SP2NL \ | |
20603 | lt_NL2SP \ | |
20604 | reload_flag \ | |
20605 | OBJDUMP \ | |
20606 | deplibs_check_method \ | |
20607 | file_magic_cmd \ | |
20608 | AR \ | |
20609 | AR_FLAGS \ | |
20610 | STRIP \ | |
20611 | RANLIB \ | |
20612 | CC \ | |
20613 | CFLAGS \ | |
20614 | compiler \ | |
20615 | lt_cv_sys_global_symbol_pipe \ | |
20616 | lt_cv_sys_global_symbol_to_cdecl \ | |
20617 | lt_cv_sys_global_symbol_to_c_name_address \ | |
20618 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
20619 | SHELL \ | |
20620 | ECHO \ | |
20621 | lt_prog_compiler_no_builtin_flag \ | |
20622 | lt_prog_compiler_wl \ | |
20623 | lt_prog_compiler_pic \ | |
20624 | lt_prog_compiler_static \ | |
20625 | lt_cv_prog_compiler_c_o \ | |
20626 | need_locks \ | |
20627 | DSYMUTIL \ | |
20628 | NMEDIT \ | |
20629 | LIPO \ | |
20630 | OTOOL \ | |
20631 | OTOOL64 \ | |
20632 | shrext_cmds \ | |
20633 | export_dynamic_flag_spec \ | |
20634 | whole_archive_flag_spec \ | |
20635 | compiler_needs_object \ | |
20636 | with_gnu_ld \ | |
20637 | allow_undefined_flag \ | |
20638 | no_undefined_flag \ | |
20639 | hardcode_libdir_flag_spec \ | |
20640 | hardcode_libdir_flag_spec_ld \ | |
20641 | hardcode_libdir_separator \ | |
20642 | fix_srcfile_path \ | |
20643 | exclude_expsyms \ | |
20644 | include_expsyms \ | |
20645 | file_list_spec \ | |
20646 | variables_saved_for_relink \ | |
20647 | libname_spec \ | |
20648 | library_names_spec \ | |
20649 | soname_spec \ | |
20650 | finish_eval \ | |
20651 | old_striplib \ | |
20652 | striplib; do | |
20653 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
20654 | *[\\\\\\\`\\"\\\$]*) | |
20655 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
20656 | ;; | |
20657 | *) | |
20658 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
20659 | ;; | |
20660 | esac | |
20661 | done | |
d9898ee8 | 20662 | |
8d138742 CE |
20663 | # Double-quote double-evaled strings. |
20664 | for var in reload_cmds \ | |
20665 | old_postinstall_cmds \ | |
20666 | old_postuninstall_cmds \ | |
20667 | old_archive_cmds \ | |
20668 | extract_expsyms_cmds \ | |
20669 | old_archive_from_new_cmds \ | |
20670 | old_archive_from_expsyms_cmds \ | |
20671 | archive_cmds \ | |
20672 | archive_expsym_cmds \ | |
20673 | module_cmds \ | |
20674 | module_expsym_cmds \ | |
20675 | export_symbols_cmds \ | |
20676 | prelink_cmds \ | |
20677 | postinstall_cmds \ | |
20678 | postuninstall_cmds \ | |
20679 | finish_cmds \ | |
20680 | sys_lib_search_path_spec \ | |
20681 | sys_lib_dlsearch_path_spec; do | |
20682 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
20683 | *[\\\\\\\`\\"\\\$]*) | |
20684 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
20685 | ;; | |
20686 | *) | |
20687 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
20688 | ;; | |
20689 | esac | |
20690 | done | |
d9898ee8 | 20691 | |
8d138742 CE |
20692 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
20693 | case \$lt_ECHO in | |
20694 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
20695 | ;; | |
dd184caf | 20696 | esac |
d9898ee8 | 20697 | |
8d138742 CE |
20698 | ac_aux_dir='$ac_aux_dir' |
20699 | xsi_shell='$xsi_shell' | |
20700 | lt_shell_append='$lt_shell_append' | |
20701 | ||
20702 | # See if we are running on zsh, and set the options which allow our | |
20703 | # commands through without removal of \ escapes INIT. | |
20704 | if test -n "\${ZSH_VERSION+set}" ; then | |
20705 | setopt NO_GLOB_SUBST | |
d9898ee8 | 20706 | fi |
dd184caf | 20707 | |
20708 | ||
8d138742 CE |
20709 | PACKAGE='$PACKAGE' |
20710 | VERSION='$VERSION' | |
20711 | TIMESTAMP='$TIMESTAMP' | |
20712 | RM='$RM' | |
20713 | ofile='$ofile' | |
d9898ee8 | 20714 | |
dd184caf | 20715 | |
d9898ee8 | 20716 | |
20717 | ||
8d138742 | 20718 | _ACEOF |
d9898ee8 | 20719 | |
8d138742 | 20720 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d9898ee8 | 20721 | |
8d138742 CE |
20722 | # Handling of arguments. |
20723 | for ac_config_target in $ac_config_targets | |
20724 | do | |
20725 | case $ac_config_target in | |
20726 | "courier_auth_config.h") CONFIG_HEADERS="$CONFIG_HEADERS courier_auth_config.h" ;; | |
20727 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
20728 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
20729 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
20730 | "authdaemond") CONFIG_FILES="$CONFIG_FILES authdaemond" ;; | |
20731 | "authdaemonrc") CONFIG_FILES="$CONFIG_FILES authdaemonrc" ;; | |
20732 | "authsystem.passwd") CONFIG_FILES="$CONFIG_FILES authsystem.passwd" ;; | |
20733 | "README.authdebug.html") CONFIG_FILES="$CONFIG_FILES README.authdebug.html" ;; | |
20734 | "dbobj.config") CONFIG_FILES="$CONFIG_FILES dbobj.config" ;; | |
20735 | "dbobj.h") CONFIG_FILES="$CONFIG_FILES dbobj.h" ;; | |
20736 | "authmigrate") CONFIG_FILES="$CONFIG_FILES authmigrate" ;; | |
20737 | "courier-authlib.spec") CONFIG_FILES="$CONFIG_FILES courier-authlib.spec" ;; | |
20738 | "courier-authlib.lpspec") CONFIG_FILES="$CONFIG_FILES courier-authlib.lpspec" ;; | |
20739 | "courier-authlib.sysvinit") CONFIG_FILES="$CONFIG_FILES courier-authlib.sysvinit" ;; | |
20740 | "userdb-test-cram-md5.pl") CONFIG_FILES="$CONFIG_FILES userdb-test-cram-md5.pl" ;; | |
d9898ee8 | 20741 | |
8d138742 CE |
20742 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
20743 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
20744 | { (exit 1); exit 1; }; };; | |
20745 | esac | |
20746 | done | |
d9898ee8 | 20747 | |
d9898ee8 | 20748 | |
8d138742 CE |
20749 | # If the user did not use the arguments to specify the items to instantiate, |
20750 | # then the envvar interface is used. Set only those that are not. | |
20751 | # We use the long form for the default assignment because of an extremely | |
20752 | # bizarre bug on SunOS 4.1.3. | |
20753 | if $ac_need_defaults; then | |
20754 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
20755 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
20756 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
dd184caf | 20757 | fi |
20758 | ||
8d138742 CE |
20759 | # Have a temporary directory for convenience. Make it in the build tree |
20760 | # simply because there is no reason against having it here, and in addition, | |
20761 | # creating and moving files from /tmp can sometimes cause problems. | |
20762 | # Hook for its removal unless debugging. | |
20763 | # Note that there is a small window in which the directory will not be cleaned: | |
20764 | # after its creation but before its name has been assigned to `$tmp'. | |
20765 | $debug || | |
20766 | { | |
20767 | tmp= | |
20768 | trap 'exit_status=$? | |
20769 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
20770 | ' 0 | |
20771 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
20772 | } | |
20773 | # Create a (secure) tmp directory for tmp files. | |
d9898ee8 | 20774 | |
8d138742 CE |
20775 | { |
20776 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
20777 | test -n "$tmp" && test -d "$tmp" | |
20778 | } || | |
20779 | { | |
20780 | tmp=./conf$$-$RANDOM | |
20781 | (umask 077 && mkdir "$tmp") | |
20782 | } || | |
20783 | { | |
20784 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
20785 | { (exit 1); exit 1; } | |
20786 | } | |
d9898ee8 | 20787 | |
8d138742 CE |
20788 | # Set up the scripts for CONFIG_FILES section. |
20789 | # No need to generate them if there are no CONFIG_FILES. | |
20790 | # This happens for instance with `./config.status config.h'. | |
20791 | if test -n "$CONFIG_FILES"; then | |
d9898ee8 | 20792 | |
d9898ee8 | 20793 | |
8d138742 CE |
20794 | ac_cr='\r' |
20795 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
20796 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
20797 | ac_cs_awk_cr='\\r' | |
d9898ee8 | 20798 | else |
8d138742 | 20799 | ac_cs_awk_cr=$ac_cr |
d9898ee8 | 20800 | fi |
dd184caf | 20801 | |
8d138742 CE |
20802 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
20803 | _ACEOF | |
d9898ee8 | 20804 | |
d9898ee8 | 20805 | |
8d138742 CE |
20806 | { |
20807 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
20808 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
20809 | echo "_ACEOF" | |
20810 | } >conf$$subs.sh || | |
20811 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
20812 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
20813 | { (exit 1); exit 1; }; } | |
20814 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
20815 | ac_delim='%!_!# ' | |
20816 | for ac_last_try in false false false false false :; do | |
20817 | . ./conf$$subs.sh || | |
20818 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
20819 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
20820 | { (exit 1); exit 1; }; } | |
20821 | ||
20822 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
20823 | if test $ac_delim_n = $ac_delim_num; then | |
20824 | break | |
20825 | elif $ac_last_try; then | |
20826 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
20827 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
20828 | { (exit 1); exit 1; }; } | |
20829 | else | |
20830 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
20831 | fi | |
20832 | done | |
20833 | rm -f conf$$subs.sh | |
20834 | ||
20835 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20836 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
20837 | _ACEOF | |
20838 | sed -n ' | |
20839 | h | |
20840 | s/^/S["/; s/!.*/"]=/ | |
20841 | p | |
20842 | g | |
20843 | s/^[^!]*!// | |
20844 | :repl | |
20845 | t repl | |
20846 | s/'"$ac_delim"'$// | |
20847 | t delim | |
20848 | :nl | |
20849 | h | |
20850 | s/\(.\{148\}\).*/\1/ | |
20851 | t more1 | |
20852 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
20853 | p | |
20854 | n | |
20855 | b repl | |
20856 | :more1 | |
20857 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
20858 | p | |
20859 | g | |
20860 | s/.\{148\}// | |
20861 | t nl | |
20862 | :delim | |
20863 | h | |
20864 | s/\(.\{148\}\).*/\1/ | |
20865 | t more2 | |
20866 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
20867 | p | |
20868 | b | |
20869 | :more2 | |
20870 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
20871 | p | |
20872 | g | |
20873 | s/.\{148\}// | |
20874 | t delim | |
20875 | ' <conf$$subs.awk | sed ' | |
20876 | /^[^""]/{ | |
20877 | N | |
20878 | s/\n// | |
20879 | } | |
20880 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
20881 | rm -f conf$$subs.awk | |
20882 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20883 | _ACAWK | |
20884 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
20885 | for (key in S) S_is_set[key] = 1 | |
20886 | FS = "\a" | |
20887 | ||
20888 | } | |
20889 | { | |
20890 | line = $ 0 | |
20891 | nfields = split(line, field, "@") | |
20892 | substed = 0 | |
20893 | len = length(field[1]) | |
20894 | for (i = 2; i < nfields; i++) { | |
20895 | key = field[i] | |
20896 | keylen = length(key) | |
20897 | if (S_is_set[key]) { | |
20898 | value = S[key] | |
20899 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
20900 | len += length(value) + length(field[++i]) | |
20901 | substed = 1 | |
20902 | } else | |
20903 | len += 1 + keylen | |
20904 | } | |
20905 | ||
20906 | print line | |
20907 | } | |
d9898ee8 | 20908 | |
8d138742 CE |
20909 | _ACAWK |
20910 | _ACEOF | |
20911 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20912 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
20913 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
d9898ee8 | 20914 | else |
8d138742 CE |
20915 | cat |
20916 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
20917 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
20918 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
20919 | { (exit 1); exit 1; }; } | |
d9898ee8 | 20920 | _ACEOF |
20921 | ||
8d138742 CE |
20922 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
20923 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
20924 | # trailing colons and then remove the whole line if VPATH becomes empty | |
20925 | # (actually we leave an empty line to preserve line numbers). | |
20926 | if test "x$srcdir" = x.; then | |
20927 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
20928 | s/:*\$(srcdir):*/:/ | |
20929 | s/:*\${srcdir}:*/:/ | |
20930 | s/:*@srcdir@:*/:/ | |
20931 | s/^\([^=]*=[ ]*\):*/\1/ | |
20932 | s/:*$// | |
20933 | s/^[^=]*=[ ]*$// | |
20934 | }' | |
d9898ee8 | 20935 | fi |
20936 | ||
8d138742 CE |
20937 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
20938 | fi # test -n "$CONFIG_FILES" | |
d9898ee8 | 20939 | |
8d138742 CE |
20940 | # Set up the scripts for CONFIG_HEADERS section. |
20941 | # No need to generate them if there are no CONFIG_HEADERS. | |
20942 | # This happens for instance with `./config.status Makefile'. | |
20943 | if test -n "$CONFIG_HEADERS"; then | |
20944 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
20945 | BEGIN { | |
20946 | _ACEOF | |
d9898ee8 | 20947 | |
8d138742 CE |
20948 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
20949 | # here-document in config.status, that substitutes the proper values into | |
20950 | # config.h.in to produce config.h. | |
d9898ee8 | 20951 | |
8d138742 CE |
20952 | # Create a delimiter string that does not exist in confdefs.h, to ease |
20953 | # handling of long lines. | |
20954 | ac_delim='%!_!# ' | |
20955 | for ac_last_try in false false :; do | |
20956 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
20957 | if test -z "$ac_t"; then | |
20958 | break | |
20959 | elif $ac_last_try; then | |
20960 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
20961 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
20962 | { (exit 1); exit 1; }; } | |
20963 | else | |
20964 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
20965 | fi | |
20966 | done | |
d9898ee8 | 20967 | |
8d138742 CE |
20968 | # For the awk script, D is an array of macro values keyed by name, |
20969 | # likewise P contains macro parameters if any. Preserve backslash | |
20970 | # newline sequences. | |
d9898ee8 | 20971 | |
8d138742 CE |
20972 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
20973 | sed -n ' | |
20974 | s/.\{148\}/&'"$ac_delim"'/g | |
20975 | t rset | |
20976 | :rset | |
20977 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
20978 | t def | |
20979 | d | |
20980 | :def | |
20981 | s/\\$// | |
20982 | t bsnl | |
20983 | s/["\\]/\\&/g | |
20984 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
20985 | D["\1"]=" \3"/p | |
20986 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
20987 | d | |
20988 | :bsnl | |
20989 | s/["\\]/\\&/g | |
20990 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
20991 | D["\1"]=" \3\\\\\\n"\\/p | |
20992 | t cont | |
20993 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
20994 | t cont | |
20995 | d | |
20996 | :cont | |
20997 | n | |
20998 | s/.\{148\}/&'"$ac_delim"'/g | |
20999 | t clear | |
21000 | :clear | |
21001 | s/\\$// | |
21002 | t bsnlc | |
21003 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
21004 | d | |
21005 | :bsnlc | |
21006 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
21007 | b cont | |
21008 | ' <confdefs.h | sed ' | |
21009 | s/'"$ac_delim"'/"\\\ | |
21010 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
21011 | ||
21012 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21013 | for (key in D) D_is_set[key] = 1 | |
21014 | FS = "\a" | |
21015 | } | |
21016 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
21017 | line = \$ 0 | |
21018 | split(line, arg, " ") | |
21019 | if (arg[1] == "#") { | |
21020 | defundef = arg[2] | |
21021 | mac1 = arg[3] | |
21022 | } else { | |
21023 | defundef = substr(arg[1], 2) | |
21024 | mac1 = arg[2] | |
21025 | } | |
21026 | split(mac1, mac2, "(") #) | |
21027 | macro = mac2[1] | |
21028 | prefix = substr(line, 1, index(line, defundef) - 1) | |
21029 | if (D_is_set[macro]) { | |
21030 | # Preserve the white space surrounding the "#". | |
21031 | print prefix "define", macro P[macro] D[macro] | |
21032 | next | |
21033 | } else { | |
21034 | # Replace #undef with comments. This is necessary, for example, | |
21035 | # in the case of _POSIX_SOURCE, which is predefined and required | |
21036 | # on some systems where configure will not decide to define it. | |
21037 | if (defundef == "undef") { | |
21038 | print "/*", prefix defundef, macro, "*/" | |
21039 | next | |
21040 | } | |
21041 | } | |
21042 | } | |
21043 | { print } | |
21044 | _ACAWK | |
21045 | _ACEOF | |
21046 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21047 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
21048 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
21049 | { (exit 1); exit 1; }; } | |
21050 | fi # test -n "$CONFIG_HEADERS" | |
d9898ee8 | 21051 | |
21052 | ||
8d138742 CE |
21053 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
21054 | shift | |
21055 | for ac_tag | |
21056 | do | |
21057 | case $ac_tag in | |
21058 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
21059 | esac | |
21060 | case $ac_mode$ac_tag in | |
21061 | :[FHL]*:*);; | |
21062 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
21063 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
21064 | { (exit 1); exit 1; }; };; | |
21065 | :[FH]-) ac_tag=-:-;; | |
21066 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
21067 | esac | |
21068 | ac_save_IFS=$IFS | |
21069 | IFS=: | |
21070 | set x $ac_tag | |
21071 | IFS=$ac_save_IFS | |
21072 | shift | |
21073 | ac_file=$1 | |
21074 | shift | |
d9898ee8 | 21075 | |
8d138742 CE |
21076 | case $ac_mode in |
21077 | :L) ac_source=$1;; | |
21078 | :[FH]) | |
21079 | ac_file_inputs= | |
21080 | for ac_f | |
21081 | do | |
21082 | case $ac_f in | |
21083 | -) ac_f="$tmp/stdin";; | |
21084 | *) # Look for the file first in the build tree, then in the source tree | |
21085 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
21086 | # because $ac_f cannot contain `:'. | |
21087 | test -f "$ac_f" || | |
21088 | case $ac_f in | |
21089 | [\\/$]*) false;; | |
21090 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
21091 | esac || | |
21092 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
21093 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
21094 | { (exit 1); exit 1; }; };; | |
21095 | esac | |
21096 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
21097 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
21098 | done | |
d9898ee8 | 21099 | |
8d138742 CE |
21100 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
21101 | # use $as_me), people would be surprised to read: | |
21102 | # /* config.h. Generated by config.status. */ | |
21103 | configure_input='Generated from '` | |
21104 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
21105 | `' by configure.' | |
21106 | if test x"$ac_file" != x-; then | |
21107 | configure_input="$ac_file. $configure_input" | |
21108 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
21109 | $as_echo "$as_me: creating $ac_file" >&6;} | |
21110 | fi | |
21111 | # Neutralize special characters interpreted by sed in replacement strings. | |
21112 | case $configure_input in #( | |
21113 | *\&* | *\|* | *\\* ) | |
21114 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
21115 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
21116 | *) ac_sed_conf_input=$configure_input;; | |
21117 | esac | |
d9898ee8 | 21118 | |
8d138742 CE |
21119 | case $ac_tag in |
21120 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
21121 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
21122 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
21123 | { (exit 1); exit 1; }; } ;; | |
dd184caf | 21124 | esac |
8d138742 CE |
21125 | ;; |
21126 | esac | |
dd184caf | 21127 | |
8d138742 CE |
21128 | ac_dir=`$as_dirname -- "$ac_file" || |
21129 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21130 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
21131 | X"$ac_file" : 'X\(//\)$' \| \ | |
21132 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
21133 | $as_echo X"$ac_file" | | |
21134 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21135 | s//\1/ | |
21136 | q | |
21137 | } | |
21138 | /^X\(\/\/\)[^/].*/{ | |
21139 | s//\1/ | |
21140 | q | |
21141 | } | |
21142 | /^X\(\/\/\)$/{ | |
21143 | s//\1/ | |
21144 | q | |
21145 | } | |
21146 | /^X\(\/\).*/{ | |
21147 | s//\1/ | |
21148 | q | |
21149 | } | |
21150 | s/.*/./; q'` | |
21151 | { as_dir="$ac_dir" | |
21152 | case $as_dir in #( | |
21153 | -*) as_dir=./$as_dir;; | |
21154 | esac | |
21155 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
21156 | as_dirs= | |
21157 | while :; do | |
21158 | case $as_dir in #( | |
21159 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
21160 | *) as_qdir=$as_dir;; | |
21161 | esac | |
21162 | as_dirs="'$as_qdir' $as_dirs" | |
21163 | as_dir=`$as_dirname -- "$as_dir" || | |
21164 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21165 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
21166 | X"$as_dir" : 'X\(//\)$' \| \ | |
21167 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
21168 | $as_echo X"$as_dir" | | |
21169 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21170 | s//\1/ | |
21171 | q | |
21172 | } | |
21173 | /^X\(\/\/\)[^/].*/{ | |
21174 | s//\1/ | |
21175 | q | |
21176 | } | |
21177 | /^X\(\/\/\)$/{ | |
21178 | s//\1/ | |
21179 | q | |
21180 | } | |
21181 | /^X\(\/\).*/{ | |
21182 | s//\1/ | |
21183 | q | |
21184 | } | |
21185 | s/.*/./; q'` | |
21186 | test -d "$as_dir" && break | |
21187 | done | |
21188 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
21189 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
21190 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
21191 | { (exit 1); exit 1; }; }; } | |
21192 | ac_builddir=. | |
21193 | ||
21194 | case "$ac_dir" in | |
21195 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21196 | *) | |
21197 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
21198 | # A ".." for each directory in $ac_dir_suffix. | |
21199 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
21200 | case $ac_top_builddir_sub in | |
21201 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21202 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
21203 | esac ;; | |
21204 | esac | |
21205 | ac_abs_top_builddir=$ac_pwd | |
21206 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
21207 | # for backward compatibility: | |
21208 | ac_top_builddir=$ac_top_build_prefix | |
21209 | ||
21210 | case $srcdir in | |
21211 | .) # We are building in place. | |
21212 | ac_srcdir=. | |
21213 | ac_top_srcdir=$ac_top_builddir_sub | |
21214 | ac_abs_top_srcdir=$ac_pwd ;; | |
21215 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
21216 | ac_srcdir=$srcdir$ac_dir_suffix; | |
21217 | ac_top_srcdir=$srcdir | |
21218 | ac_abs_top_srcdir=$srcdir ;; | |
21219 | *) # Relative name. | |
21220 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
21221 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
21222 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
21223 | esac | |
21224 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
d9898ee8 | 21225 | |
d9898ee8 | 21226 | |
8d138742 CE |
21227 | case $ac_mode in |
21228 | :F) | |
21229 | # | |
21230 | # CONFIG_FILE | |
21231 | # | |
d9898ee8 | 21232 | |
8d138742 CE |
21233 | case $INSTALL in |
21234 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
21235 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
21236 | esac | |
21237 | ac_MKDIR_P=$MKDIR_P | |
21238 | case $MKDIR_P in | |
21239 | [\\/$]* | ?:[\\/]* ) ;; | |
21240 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
21241 | esac | |
21242 | _ACEOF | |
d9898ee8 | 21243 | |
8d138742 CE |
21244 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
21245 | # If the template does not know about datarootdir, expand it. | |
21246 | # FIXME: This hack should be removed a few years after 2.60. | |
21247 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
d9898ee8 | 21248 | |
8d138742 CE |
21249 | ac_sed_dataroot=' |
21250 | /datarootdir/ { | |
21251 | p | |
21252 | q | |
21253 | } | |
21254 | /@datadir@/p | |
21255 | /@docdir@/p | |
21256 | /@infodir@/p | |
21257 | /@localedir@/p | |
21258 | /@mandir@/p | |
21259 | ' | |
21260 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
21261 | *datarootdir*) ac_datarootdir_seen=yes;; | |
21262 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
21263 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
21264 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
21265 | _ACEOF | |
21266 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21267 | ac_datarootdir_hack=' | |
21268 | s&@datadir@&$datadir&g | |
21269 | s&@docdir@&$docdir&g | |
21270 | s&@infodir@&$infodir&g | |
21271 | s&@localedir@&$localedir&g | |
21272 | s&@mandir@&$mandir&g | |
21273 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
21274 | esac | |
21275 | _ACEOF | |
d9898ee8 | 21276 | |
8d138742 CE |
21277 | # Neutralize VPATH when `$srcdir' = `.'. |
21278 | # Shell code in configure.ac might set extrasub. | |
21279 | # FIXME: do we really want to maintain this feature? | |
21280 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21281 | ac_sed_extra="$ac_vpsub | |
21282 | $extrasub | |
21283 | _ACEOF | |
21284 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21285 | :t | |
21286 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
21287 | s|@configure_input@|$ac_sed_conf_input|;t t | |
21288 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
21289 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
21290 | s&@srcdir@&$ac_srcdir&;t t | |
21291 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
21292 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
21293 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
21294 | s&@builddir@&$ac_builddir&;t t | |
21295 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
21296 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
21297 | s&@INSTALL@&$ac_INSTALL&;t t | |
21298 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
21299 | $ac_datarootdir_hack | |
21300 | " | |
21301 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
21302 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
21303 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
d9898ee8 | 21304 | { (exit 1); exit 1; }; } |
8d138742 CE |
21305 | |
21306 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
21307 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
21308 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
21309 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
21310 | which seems to be undefined. Please make sure it is defined." >&5 | |
21311 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
21312 | which seems to be undefined. Please make sure it is defined." >&2;} | |
21313 | ||
21314 | rm -f "$tmp/stdin" | |
21315 | case $ac_file in | |
21316 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
21317 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
21318 | esac \ | |
21319 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
21320 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
d9898ee8 | 21321 | { (exit 1); exit 1; }; } |
8d138742 CE |
21322 | ;; |
21323 | :H) | |
21324 | # | |
21325 | # CONFIG_HEADER | |
21326 | # | |
21327 | if test x"$ac_file" != x-; then | |
21328 | { | |
21329 | $as_echo "/* $configure_input */" \ | |
21330 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
21331 | } >"$tmp/config.h" \ | |
21332 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
21333 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
d9898ee8 | 21334 | { (exit 1); exit 1; }; } |
8d138742 CE |
21335 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
21336 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
21337 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
21338 | else | |
21339 | rm -f "$ac_file" | |
21340 | mv "$tmp/config.h" "$ac_file" \ | |
21341 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
21342 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
d9898ee8 | 21343 | { (exit 1); exit 1; }; } |
8d138742 CE |
21344 | fi |
21345 | else | |
21346 | $as_echo "/* $configure_input */" \ | |
21347 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
21348 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
21349 | $as_echo "$as_me: error: could not create -" >&2;} | |
d9898ee8 | 21350 | { (exit 1); exit 1; }; } |
8d138742 CE |
21351 | fi |
21352 | # Compute "$ac_file"'s index in $config_headers. | |
21353 | _am_arg="$ac_file" | |
21354 | _am_stamp_count=1 | |
21355 | for _am_header in $config_headers :; do | |
21356 | case $_am_header in | |
21357 | $_am_arg | $_am_arg:* ) | |
21358 | break ;; | |
21359 | * ) | |
21360 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
21361 | esac | |
21362 | done | |
21363 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
21364 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21365 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
21366 | X"$_am_arg" : 'X\(//\)$' \| \ | |
21367 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
21368 | $as_echo X"$_am_arg" | | |
21369 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21370 | s//\1/ | |
21371 | q | |
21372 | } | |
21373 | /^X\(\/\/\)[^/].*/{ | |
21374 | s//\1/ | |
21375 | q | |
21376 | } | |
21377 | /^X\(\/\/\)$/{ | |
21378 | s//\1/ | |
21379 | q | |
21380 | } | |
21381 | /^X\(\/\).*/{ | |
21382 | s//\1/ | |
21383 | q | |
21384 | } | |
21385 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
21386 | ;; | |
21387 | ||
21388 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 | |
21389 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
21390 | ;; | |
21391 | esac | |
21392 | ||
21393 | ||
21394 | case $ac_file$ac_mode in | |
21395 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
21396 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
21397 | # are listed without --file. Let's play safe and only enable the eval | |
21398 | # if we detect the quoting. | |
21399 | case $CONFIG_FILES in | |
21400 | *\'*) eval set x "$CONFIG_FILES" ;; | |
21401 | *) set x $CONFIG_FILES ;; | |
21402 | esac | |
21403 | shift | |
21404 | for mf | |
21405 | do | |
21406 | # Strip MF so we end up with the name of the file. | |
21407 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
21408 | # Check whether this is an Automake generated Makefile or not. | |
21409 | # We used to match only the files named `Makefile.in', but | |
21410 | # some people rename them; so instead we look at the file content. | |
21411 | # Grep'ing the first line is not enough: some people post-process | |
21412 | # each Makefile.in and add a new line on top of each file to say so. | |
21413 | # Grep'ing the whole file is not good either: AIX grep has a line | |
21414 | # limit of 2048, but all sed's we know have understand at least 4000. | |
21415 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
21416 | dirpart=`$as_dirname -- "$mf" || | |
21417 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21418 | X"$mf" : 'X\(//\)[^/]' \| \ | |
21419 | X"$mf" : 'X\(//\)$' \| \ | |
21420 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
21421 | $as_echo X"$mf" | | |
21422 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21423 | s//\1/ | |
21424 | q | |
21425 | } | |
21426 | /^X\(\/\/\)[^/].*/{ | |
21427 | s//\1/ | |
21428 | q | |
21429 | } | |
21430 | /^X\(\/\/\)$/{ | |
21431 | s//\1/ | |
21432 | q | |
21433 | } | |
21434 | /^X\(\/\).*/{ | |
21435 | s//\1/ | |
21436 | q | |
21437 | } | |
21438 | s/.*/./; q'` | |
21439 | else | |
21440 | continue | |
21441 | fi | |
21442 | # Extract the definition of DEPDIR, am__include, and am__quote | |
21443 | # from the Makefile without running `make'. | |
21444 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
21445 | test -z "$DEPDIR" && continue | |
21446 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
21447 | test -z "am__include" && continue | |
21448 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
21449 | # When using ansi2knr, U may be empty or an underscore; expand it | |
21450 | U=`sed -n 's/^U = //p' < "$mf"` | |
21451 | # Find all dependency output files, they are included files with | |
21452 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
21453 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
21454 | # expansion. | |
21455 | for file in `sed -n " | |
21456 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
21457 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
21458 | # Make sure the directory exists. | |
21459 | test -f "$dirpart/$file" && continue | |
21460 | fdir=`$as_dirname -- "$file" || | |
21461 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21462 | X"$file" : 'X\(//\)[^/]' \| \ | |
21463 | X"$file" : 'X\(//\)$' \| \ | |
21464 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
21465 | $as_echo X"$file" | | |
21466 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21467 | s//\1/ | |
21468 | q | |
21469 | } | |
21470 | /^X\(\/\/\)[^/].*/{ | |
21471 | s//\1/ | |
21472 | q | |
21473 | } | |
21474 | /^X\(\/\/\)$/{ | |
21475 | s//\1/ | |
21476 | q | |
21477 | } | |
21478 | /^X\(\/\).*/{ | |
21479 | s//\1/ | |
21480 | q | |
21481 | } | |
21482 | s/.*/./; q'` | |
21483 | { as_dir=$dirpart/$fdir | |
21484 | case $as_dir in #( | |
21485 | -*) as_dir=./$as_dir;; | |
21486 | esac | |
21487 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
21488 | as_dirs= | |
21489 | while :; do | |
21490 | case $as_dir in #( | |
21491 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
21492 | *) as_qdir=$as_dir;; | |
21493 | esac | |
21494 | as_dirs="'$as_qdir' $as_dirs" | |
21495 | as_dir=`$as_dirname -- "$as_dir" || | |
21496 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21497 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
21498 | X"$as_dir" : 'X\(//\)$' \| \ | |
21499 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
21500 | $as_echo X"$as_dir" | | |
21501 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21502 | s//\1/ | |
21503 | q | |
21504 | } | |
21505 | /^X\(\/\/\)[^/].*/{ | |
21506 | s//\1/ | |
21507 | q | |
21508 | } | |
21509 | /^X\(\/\/\)$/{ | |
21510 | s//\1/ | |
21511 | q | |
21512 | } | |
21513 | /^X\(\/\).*/{ | |
21514 | s//\1/ | |
21515 | q | |
21516 | } | |
21517 | s/.*/./; q'` | |
21518 | test -d "$as_dir" && break | |
21519 | done | |
21520 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
21521 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
21522 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
21523 | { (exit 1); exit 1; }; }; } | |
21524 | # echo "creating $dirpart/$file" | |
21525 | echo '# dummy' > "$dirpart/$file" | |
21526 | done | |
21527 | done | |
21528 | } | |
21529 | ;; | |
21530 | "libtool":C) | |
d9898ee8 | 21531 | |
8d138742 CE |
21532 | # See if we are running on zsh, and set the options which allow our |
21533 | # commands through without removal of \ escapes. | |
21534 | if test -n "${ZSH_VERSION+set}" ; then | |
21535 | setopt NO_GLOB_SUBST | |
21536 | fi | |
21537 | ||
21538 | cfgfile="${ofile}T" | |
21539 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
21540 | $RM "$cfgfile" | |
21541 | ||
21542 | cat <<_LT_EOF >> "$cfgfile" | |
d9898ee8 | 21543 | #! $SHELL |
d9898ee8 | 21544 | |
8d138742 CE |
21545 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
21546 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
21547 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
21548 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
21549 | # | |
21550 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
21551 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
21552 | # Written by Gordon Matzigkeit, 1996 | |
21553 | # | |
21554 | # This file is part of GNU Libtool. | |
21555 | # | |
21556 | # GNU Libtool is free software; you can redistribute it and/or | |
21557 | # modify it under the terms of the GNU General Public License as | |
21558 | # published by the Free Software Foundation; either version 2 of | |
21559 | # the License, or (at your option) any later version. | |
21560 | # | |
21561 | # As a special exception to the GNU General Public License, | |
21562 | # if you distribute this file as part of a program or library that | |
21563 | # is built using GNU Libtool, you may include this file under the | |
21564 | # same distribution terms that you use for the rest of that program. | |
21565 | # | |
21566 | # GNU Libtool is distributed in the hope that it will be useful, | |
21567 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
21568 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21569 | # GNU General Public License for more details. | |
21570 | # | |
21571 | # You should have received a copy of the GNU General Public License | |
21572 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
21573 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
21574 | # obtained by writing to the Free Software Foundation, Inc., | |
21575 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d9898ee8 | 21576 | |
d9898ee8 | 21577 | |
8d138742 CE |
21578 | # The names of the tagged configurations supported by this script. |
21579 | available_tags="" | |
dd184caf | 21580 | |
8d138742 | 21581 | # ### BEGIN LIBTOOL CONFIG |
dd184caf | 21582 | |
8d138742 CE |
21583 | # Which release of libtool.m4 was used? |
21584 | macro_version=$macro_version | |
21585 | macro_revision=$macro_revision | |
dd184caf | 21586 | |
8d138742 CE |
21587 | # Whether or not to build shared libraries. |
21588 | build_libtool_libs=$enable_shared | |
dd184caf | 21589 | |
8d138742 CE |
21590 | # Whether or not to build static libraries. |
21591 | build_old_libs=$enable_static | |
dd184caf | 21592 | |
8d138742 CE |
21593 | # What type of objects to build. |
21594 | pic_mode=$pic_mode | |
dd184caf | 21595 | |
8d138742 CE |
21596 | # Whether or not to optimize for fast installation. |
21597 | fast_install=$enable_fast_install | |
d9898ee8 | 21598 | |
8d138742 CE |
21599 | # The host system. |
21600 | host_alias=$host_alias | |
21601 | host=$host | |
21602 | host_os=$host_os | |
d9898ee8 | 21603 | |
8d138742 CE |
21604 | # The build system. |
21605 | build_alias=$build_alias | |
21606 | build=$build | |
21607 | build_os=$build_os | |
d9898ee8 | 21608 | |
8d138742 CE |
21609 | # A sed program that does not truncate output. |
21610 | SED=$lt_SED | |
dd184caf | 21611 | |
8d138742 CE |
21612 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
21613 | Xsed="\$SED -e 1s/^X//" | |
dd184caf | 21614 | |
8d138742 CE |
21615 | # A grep program that handles long lines. |
21616 | GREP=$lt_GREP | |
dd184caf | 21617 | |
8d138742 CE |
21618 | # An ERE matcher. |
21619 | EGREP=$lt_EGREP | |
d9898ee8 | 21620 | |
8d138742 CE |
21621 | # A literal string matcher. |
21622 | FGREP=$lt_FGREP | |
d9898ee8 | 21623 | |
8d138742 CE |
21624 | # A BSD- or MS-compatible name lister. |
21625 | NM=$lt_NM | |
d9898ee8 | 21626 | |
8d138742 CE |
21627 | # Whether we need soft or hard links. |
21628 | LN_S=$lt_LN_S | |
d9898ee8 | 21629 | |
8d138742 CE |
21630 | # What is the maximum length of a command? |
21631 | max_cmd_len=$max_cmd_len | |
d9898ee8 | 21632 | |
8d138742 CE |
21633 | # Object file suffix (normally "o"). |
21634 | objext=$ac_objext | |
d9898ee8 | 21635 | |
8d138742 CE |
21636 | # Executable file suffix (normally ""). |
21637 | exeext=$exeext | |
d9898ee8 | 21638 | |
8d138742 CE |
21639 | # whether the shell understands "unset". |
21640 | lt_unset=$lt_unset | |
d9898ee8 | 21641 | |
8d138742 CE |
21642 | # turn spaces into newlines. |
21643 | SP2NL=$lt_lt_SP2NL | |
d9898ee8 | 21644 | |
8d138742 CE |
21645 | # turn newlines into spaces. |
21646 | NL2SP=$lt_lt_NL2SP | |
d9898ee8 | 21647 | |
8d138742 CE |
21648 | # How to create reloadable object files. |
21649 | reload_flag=$lt_reload_flag | |
21650 | reload_cmds=$lt_reload_cmds | |
d9898ee8 | 21651 | |
8d138742 CE |
21652 | # An object symbol dumper. |
21653 | OBJDUMP=$lt_OBJDUMP | |
d9898ee8 | 21654 | |
8d138742 CE |
21655 | # Method to check whether dependent libraries are shared objects. |
21656 | deplibs_check_method=$lt_deplibs_check_method | |
d9898ee8 | 21657 | |
8d138742 CE |
21658 | # Command to use when deplibs_check_method == "file_magic". |
21659 | file_magic_cmd=$lt_file_magic_cmd | |
dd184caf | 21660 | |
8d138742 CE |
21661 | # The archiver. |
21662 | AR=$lt_AR | |
21663 | AR_FLAGS=$lt_AR_FLAGS | |
d9898ee8 | 21664 | |
8d138742 CE |
21665 | # A symbol stripping program. |
21666 | STRIP=$lt_STRIP | |
21667 | ||
21668 | # Commands used to install an old-style archive. | |
21669 | RANLIB=$lt_RANLIB | |
21670 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
21671 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
21672 | ||
21673 | # A C compiler. | |
21674 | LTCC=$lt_CC | |
21675 | ||
21676 | # LTCC compiler flags. | |
21677 | LTCFLAGS=$lt_CFLAGS | |
21678 | ||
21679 | # Take the output of nm and produce a listing of raw symbols and C names. | |
21680 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
21681 | ||
21682 | # Transform the output of nm in a proper C declaration. | |
21683 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
21684 | ||
21685 | # Transform the output of nm in a C name address pair. | |
21686 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
21687 | ||
21688 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
21689 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
21690 | ||
21691 | # The name of the directory that contains temporary libtool files. | |
21692 | objdir=$objdir | |
21693 | ||
21694 | # Shell to use when invoking shell scripts. | |
21695 | SHELL=$lt_SHELL | |
21696 | ||
21697 | # An echo program that does not interpret backslashes. | |
21698 | ECHO=$lt_ECHO | |
21699 | ||
21700 | # Used to examine libraries when file_magic_cmd begins with "file". | |
21701 | MAGIC_CMD=$MAGIC_CMD | |
21702 | ||
21703 | # Must we lock files when doing compilation? | |
21704 | need_locks=$lt_need_locks | |
d9898ee8 | 21705 | |
8d138742 CE |
21706 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
21707 | DSYMUTIL=$lt_DSYMUTIL | |
d9898ee8 | 21708 | |
8d138742 CE |
21709 | # Tool to change global to local symbols on Mac OS X. |
21710 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 21711 | |
8d138742 CE |
21712 | # Tool to manipulate fat objects and archives on Mac OS X. |
21713 | LIPO=$lt_LIPO | |
d9898ee8 | 21714 | |
8d138742 CE |
21715 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
21716 | OTOOL=$lt_OTOOL | |
d9898ee8 | 21717 | |
8d138742 CE |
21718 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
21719 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 21720 | |
8d138742 CE |
21721 | # Old archive suffix (normally "a"). |
21722 | libext=$libext | |
d9898ee8 | 21723 | |
8d138742 CE |
21724 | # Shared library suffix (normally ".so"). |
21725 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 21726 | |
8d138742 CE |
21727 | # The commands to extract the exported symbol list from a shared archive. |
21728 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
d9898ee8 | 21729 | |
8d138742 CE |
21730 | # Variables whose values should be saved in libtool wrapper scripts and |
21731 | # restored at link time. | |
21732 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
d9898ee8 | 21733 | |
8d138742 CE |
21734 | # Do we need the "lib" prefix for modules? |
21735 | need_lib_prefix=$need_lib_prefix | |
dd184caf | 21736 | |
8d138742 CE |
21737 | # Do we need a version for libraries? |
21738 | need_version=$need_version | |
d9898ee8 | 21739 | |
8d138742 CE |
21740 | # Library versioning type. |
21741 | version_type=$version_type | |
d9898ee8 | 21742 | |
8d138742 CE |
21743 | # Shared library runtime path variable. |
21744 | runpath_var=$runpath_var | |
d9898ee8 | 21745 | |
8d138742 CE |
21746 | # Shared library path variable. |
21747 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 21748 | |
8d138742 CE |
21749 | # Is shlibpath searched before the hard-coded library search path? |
21750 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 21751 | |
8d138742 CE |
21752 | # Format of library name prefix. |
21753 | libname_spec=$lt_libname_spec | |
d9898ee8 | 21754 | |
8d138742 CE |
21755 | # List of archive names. First name is the real one, the rest are links. |
21756 | # The last name is the one that the linker finds with -lNAME | |
21757 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 21758 | |
8d138742 CE |
21759 | # The coded name of the library, if different from the real name. |
21760 | soname_spec=$lt_soname_spec | |
d9898ee8 | 21761 | |
8d138742 CE |
21762 | # Command to use after installation of a shared archive. |
21763 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 21764 | |
8d138742 CE |
21765 | # Command to use after uninstallation of a shared archive. |
21766 | postuninstall_cmds=$lt_postuninstall_cmds | |
d9898ee8 | 21767 | |
8d138742 CE |
21768 | # Commands used to finish a libtool library installation in a directory. |
21769 | finish_cmds=$lt_finish_cmds | |
d9898ee8 | 21770 | |
8d138742 CE |
21771 | # As "finish_cmds", except a single script fragment to be evaled but |
21772 | # not shown. | |
21773 | finish_eval=$lt_finish_eval | |
dd184caf | 21774 | |
8d138742 CE |
21775 | # Whether we should hardcode library paths into libraries. |
21776 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 21777 | |
8d138742 CE |
21778 | # Compile-time system search path for libraries. |
21779 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 21780 | |
8d138742 CE |
21781 | # Run-time system search path for libraries. |
21782 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
d9898ee8 | 21783 | |
8d138742 CE |
21784 | # Whether dlopen is supported. |
21785 | dlopen_support=$enable_dlopen | |
d9898ee8 | 21786 | |
8d138742 CE |
21787 | # Whether dlopen of programs is supported. |
21788 | dlopen_self=$enable_dlopen_self | |
d9898ee8 | 21789 | |
8d138742 CE |
21790 | # Whether dlopen of statically linked programs is supported. |
21791 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 21792 | |
8d138742 CE |
21793 | # Commands to strip libraries. |
21794 | old_striplib=$lt_old_striplib | |
21795 | striplib=$lt_striplib | |
d9898ee8 | 21796 | |
d9898ee8 | 21797 | |
8d138742 CE |
21798 | # The linker used to build libraries. |
21799 | LD=$lt_LD | |
d9898ee8 | 21800 | |
8d138742 CE |
21801 | # Commands used to build an old-style archive. |
21802 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 21803 | |
8d138742 CE |
21804 | # A language specific compiler. |
21805 | CC=$lt_compiler | |
d9898ee8 | 21806 | |
8d138742 CE |
21807 | # Is the compiler the GNU compiler? |
21808 | with_gcc=$GCC | |
d9898ee8 | 21809 | |
8d138742 CE |
21810 | # Compiler flag to turn off builtin functions. |
21811 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dd184caf | 21812 | |
8d138742 CE |
21813 | # How to pass a linker flag through the compiler. |
21814 | wl=$lt_lt_prog_compiler_wl | |
dd184caf | 21815 | |
8d138742 CE |
21816 | # Additional compiler flags for building library objects. |
21817 | pic_flag=$lt_lt_prog_compiler_pic | |
d9898ee8 | 21818 | |
8d138742 CE |
21819 | # Compiler flag to prevent dynamic linking. |
21820 | link_static_flag=$lt_lt_prog_compiler_static | |
dd184caf | 21821 | |
8d138742 CE |
21822 | # Does compiler simultaneously support -c and -o options? |
21823 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
d9898ee8 | 21824 | |
8d138742 CE |
21825 | # Whether or not to add -lc for building shared libraries. |
21826 | build_libtool_need_lc=$archive_cmds_need_lc | |
21827 | ||
21828 | # Whether or not to disallow shared libs when runtime libs are static. | |
21829 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
21830 | ||
21831 | # Compiler flag to allow reflexive dlopens. | |
21832 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
21833 | ||
21834 | # Compiler flag to generate shared objects directly from archives. | |
21835 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 21836 | |
8d138742 CE |
21837 | # Whether the compiler copes with passing no objects directly. |
21838 | compiler_needs_object=$lt_compiler_needs_object | |
d9898ee8 | 21839 | |
8d138742 CE |
21840 | # Create an old-style archive from a shared archive. |
21841 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
d9898ee8 | 21842 | |
8d138742 CE |
21843 | # Create a temporary old-style archive to link instead of a shared archive. |
21844 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dd184caf | 21845 | |
8d138742 CE |
21846 | # Commands used to build a shared archive. |
21847 | archive_cmds=$lt_archive_cmds | |
21848 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
dd184caf | 21849 | |
8d138742 CE |
21850 | # Commands used to build a loadable module if different from building |
21851 | # a shared archive. | |
21852 | module_cmds=$lt_module_cmds | |
21853 | module_expsym_cmds=$lt_module_expsym_cmds | |
dd184caf | 21854 | |
8d138742 CE |
21855 | # Whether we are building with GNU ld or not. |
21856 | with_gnu_ld=$lt_with_gnu_ld | |
dd184caf | 21857 | |
8d138742 CE |
21858 | # Flag that allows shared libraries with undefined symbols to be built. |
21859 | allow_undefined_flag=$lt_allow_undefined_flag | |
d9898ee8 | 21860 | |
8d138742 CE |
21861 | # Flag that enforces no undefined symbols. |
21862 | no_undefined_flag=$lt_no_undefined_flag | |
dd184caf | 21863 | |
8d138742 CE |
21864 | # Flag to hardcode \$libdir into a binary during linking. |
21865 | # This must work even if \$libdir does not exist | |
21866 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
dd184caf | 21867 | |
8d138742 CE |
21868 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
21869 | # during linking. This must work even if \$libdir does not exist. | |
21870 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
dd184caf | 21871 | |
8d138742 CE |
21872 | # Whether we need a single "-rpath" flag with a separated argument. |
21873 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
dd184caf | 21874 | |
8d138742 CE |
21875 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
21876 | # DIR into the resulting binary. | |
21877 | hardcode_direct=$hardcode_direct | |
dd184caf | 21878 | |
8d138742 CE |
21879 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
21880 | # DIR into the resulting binary and the resulting library dependency is | |
21881 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
21882 | # library is relocated. | |
21883 | hardcode_direct_absolute=$hardcode_direct_absolute | |
dd184caf | 21884 | |
8d138742 CE |
21885 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
21886 | # into the resulting binary. | |
21887 | hardcode_minus_L=$hardcode_minus_L | |
dd184caf | 21888 | |
8d138742 CE |
21889 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
21890 | # into the resulting binary. | |
21891 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
dd184caf | 21892 | |
8d138742 CE |
21893 | # Set to "yes" if building a shared library automatically hardcodes DIR |
21894 | # into the library and all subsequent libraries and executables linked | |
21895 | # against it. | |
21896 | hardcode_automatic=$hardcode_automatic | |
dd184caf | 21897 | |
8d138742 CE |
21898 | # Set to yes if linker adds runtime paths of dependent libraries |
21899 | # to runtime path list. | |
21900 | inherit_rpath=$inherit_rpath | |
dd184caf | 21901 | |
8d138742 CE |
21902 | # Whether libtool must link a program against all its dependency libraries. |
21903 | link_all_deplibs=$link_all_deplibs | |
dd184caf | 21904 | |
8d138742 CE |
21905 | # Fix the shell variable \$srcfile for the compiler. |
21906 | fix_srcfile_path=$lt_fix_srcfile_path | |
dd184caf | 21907 | |
8d138742 CE |
21908 | # Set to "yes" if exported symbols are required. |
21909 | always_export_symbols=$always_export_symbols | |
dd184caf | 21910 | |
8d138742 CE |
21911 | # The commands to list exported symbols. |
21912 | export_symbols_cmds=$lt_export_symbols_cmds | |
d9898ee8 | 21913 | |
8d138742 CE |
21914 | # Symbols that should not be listed in the preloaded symbols. |
21915 | exclude_expsyms=$lt_exclude_expsyms | |
d9898ee8 | 21916 | |
8d138742 CE |
21917 | # Symbols that must always be exported. |
21918 | include_expsyms=$lt_include_expsyms | |
d9898ee8 | 21919 | |
8d138742 CE |
21920 | # Commands necessary for linking programs (against libraries) with templates. |
21921 | prelink_cmds=$lt_prelink_cmds | |
d9898ee8 | 21922 | |
8d138742 CE |
21923 | # Specify filename containing input files. |
21924 | file_list_spec=$lt_file_list_spec | |
d9898ee8 | 21925 | |
8d138742 CE |
21926 | # How to hardcode a shared library path into an executable. |
21927 | hardcode_action=$hardcode_action | |
d9898ee8 | 21928 | |
8d138742 CE |
21929 | # ### END LIBTOOL CONFIG |
21930 | ||
21931 | _LT_EOF | |
21932 | ||
21933 | case $host_os in | |
21934 | aix3*) | |
21935 | cat <<\_LT_EOF >> "$cfgfile" | |
21936 | # AIX sometimes has problems with the GCC collect2 program. For some | |
21937 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
21938 | # vanish in a puff of smoke. | |
21939 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
21940 | COLLECT_NAMES= | |
21941 | export COLLECT_NAMES | |
21942 | fi | |
21943 | _LT_EOF | |
21944 | ;; | |
d9898ee8 | 21945 | esac |
8d138742 CE |
21946 | |
21947 | ||
21948 | ltmain="$ac_aux_dir/ltmain.sh" | |
21949 | ||
21950 | ||
21951 | # We use sed instead of cat because bash on DJGPP gets confused if | |
21952 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
21953 | # text mode, it properly converts lines to CR/LF. This bash problem | |
21954 | # is reportedly fixed, but why not run on old versions too? | |
21955 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
21956 | || (rm -f "$cfgfile"; exit 1) | |
21957 | ||
21958 | case $xsi_shell in | |
21959 | yes) | |
21960 | cat << \_LT_EOF >> "$cfgfile" | |
21961 | ||
21962 | # func_dirname file append nondir_replacement | |
21963 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
21964 | # otherwise set result to NONDIR_REPLACEMENT. | |
21965 | func_dirname () | |
21966 | { | |
21967 | case ${1} in | |
21968 | */*) func_dirname_result="${1%/*}${2}" ;; | |
21969 | * ) func_dirname_result="${3}" ;; | |
dd184caf | 21970 | esac |
8d138742 | 21971 | } |
d9898ee8 | 21972 | |
8d138742 CE |
21973 | # func_basename file |
21974 | func_basename () | |
21975 | { | |
21976 | func_basename_result="${1##*/}" | |
21977 | } | |
dd184caf | 21978 | |
8d138742 CE |
21979 | # func_dirname_and_basename file append nondir_replacement |
21980 | # perform func_basename and func_dirname in a single function | |
21981 | # call: | |
21982 | # dirname: Compute the dirname of FILE. If nonempty, | |
21983 | # add APPEND to the result, otherwise set result | |
21984 | # to NONDIR_REPLACEMENT. | |
21985 | # value returned in "$func_dirname_result" | |
21986 | # basename: Compute filename of FILE. | |
21987 | # value retuned in "$func_basename_result" | |
21988 | # Implementation must be kept synchronized with func_dirname | |
21989 | # and func_basename. For efficiency, we do not delegate to | |
21990 | # those functions but instead duplicate the functionality here. | |
21991 | func_dirname_and_basename () | |
21992 | { | |
21993 | case ${1} in | |
21994 | */*) func_dirname_result="${1%/*}${2}" ;; | |
21995 | * ) func_dirname_result="${3}" ;; | |
21996 | esac | |
21997 | func_basename_result="${1##*/}" | |
dd184caf | 21998 | } |
dd184caf | 21999 | |
8d138742 CE |
22000 | # func_stripname prefix suffix name |
22001 | # strip PREFIX and SUFFIX off of NAME. | |
22002 | # PREFIX and SUFFIX must not contain globbing or regex special | |
22003 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
22004 | # dot (in which case that matches only a dot). | |
22005 | func_stripname () | |
22006 | { | |
22007 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
22008 | # positional parameters, so assign one to ordinary parameter first. | |
22009 | func_stripname_result=${3} | |
22010 | func_stripname_result=${func_stripname_result#"${1}"} | |
22011 | func_stripname_result=${func_stripname_result%"${2}"} | |
22012 | } | |
dd184caf | 22013 | |
8d138742 CE |
22014 | # func_opt_split |
22015 | func_opt_split () | |
22016 | { | |
22017 | func_opt_split_opt=${1%%=*} | |
22018 | func_opt_split_arg=${1#*=} | |
22019 | } | |
dd184caf | 22020 | |
8d138742 CE |
22021 | # func_lo2o object |
22022 | func_lo2o () | |
22023 | { | |
22024 | case ${1} in | |
22025 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
22026 | *) func_lo2o_result=${1} ;; | |
d9898ee8 | 22027 | esac |
8d138742 | 22028 | } |
d9898ee8 | 22029 | |
8d138742 CE |
22030 | # func_xform libobj-or-source |
22031 | func_xform () | |
22032 | { | |
22033 | func_xform_result=${1%.*}.lo | |
22034 | } | |
d9898ee8 | 22035 | |
8d138742 CE |
22036 | # func_arith arithmetic-term... |
22037 | func_arith () | |
22038 | { | |
22039 | func_arith_result=$(( $* )) | |
22040 | } | |
22041 | ||
22042 | # func_len string | |
22043 | # STRING may not start with a hyphen. | |
22044 | func_len () | |
22045 | { | |
22046 | func_len_result=${#1} | |
22047 | } | |
22048 | ||
22049 | _LT_EOF | |
22050 | ;; | |
22051 | *) # Bourne compatible functions. | |
22052 | cat << \_LT_EOF >> "$cfgfile" | |
22053 | ||
22054 | # func_dirname file append nondir_replacement | |
22055 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
22056 | # otherwise set result to NONDIR_REPLACEMENT. | |
22057 | func_dirname () | |
22058 | { | |
22059 | # Extract subdirectory from the argument. | |
22060 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
22061 | if test "X$func_dirname_result" = "X${1}"; then | |
22062 | func_dirname_result="${3}" | |
d9898ee8 | 22063 | else |
8d138742 | 22064 | func_dirname_result="$func_dirname_result${2}" |
d9898ee8 | 22065 | fi |
8d138742 | 22066 | } |
d9898ee8 | 22067 | |
8d138742 CE |
22068 | # func_basename file |
22069 | func_basename () | |
22070 | { | |
22071 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
22072 | } | |
22073 | ||
22074 | ||
22075 | # func_stripname prefix suffix name | |
22076 | # strip PREFIX and SUFFIX off of NAME. | |
22077 | # PREFIX and SUFFIX must not contain globbing or regex special | |
22078 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
22079 | # dot (in which case that matches only a dot). | |
22080 | # func_strip_suffix prefix name | |
22081 | func_stripname () | |
22082 | { | |
22083 | case ${2} in | |
22084 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
22085 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
22086 | *) func_stripname_result=`$ECHO "X${3}" \ | |
22087 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
dd184caf | 22088 | esac |
8d138742 | 22089 | } |
d9898ee8 | 22090 | |
8d138742 CE |
22091 | # sed scripts: |
22092 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
22093 | my_sed_long_arg='1s/^-[^=]*=//' | |
d9898ee8 | 22094 | |
8d138742 CE |
22095 | # func_opt_split |
22096 | func_opt_split () | |
22097 | { | |
22098 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
22099 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
22100 | } | |
22101 | ||
22102 | # func_lo2o object | |
22103 | func_lo2o () | |
22104 | { | |
22105 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
22106 | } | |
22107 | ||
22108 | # func_xform libobj-or-source | |
22109 | func_xform () | |
22110 | { | |
22111 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
22112 | } | |
22113 | ||
22114 | # func_arith arithmetic-term... | |
22115 | func_arith () | |
22116 | { | |
22117 | func_arith_result=`expr "$@"` | |
22118 | } | |
22119 | ||
22120 | # func_len string | |
22121 | # STRING may not start with a hyphen. | |
22122 | func_len () | |
22123 | { | |
22124 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
22125 | } | |
22126 | ||
22127 | _LT_EOF | |
22128 | esac | |
22129 | ||
22130 | case $lt_shell_append in | |
22131 | yes) | |
22132 | cat << \_LT_EOF >> "$cfgfile" | |
22133 | ||
22134 | # func_append var value | |
22135 | # Append VALUE to the end of shell variable VAR. | |
22136 | func_append () | |
22137 | { | |
22138 | eval "$1+=\$2" | |
22139 | } | |
22140 | _LT_EOF | |
22141 | ;; | |
22142 | *) | |
22143 | cat << \_LT_EOF >> "$cfgfile" | |
22144 | ||
22145 | # func_append var value | |
22146 | # Append VALUE to the end of shell variable VAR. | |
22147 | func_append () | |
22148 | { | |
22149 | eval "$1=\$$1\$2" | |
22150 | } | |
22151 | ||
22152 | _LT_EOF | |
22153 | ;; | |
dd184caf | 22154 | esac |
8d138742 CE |
22155 | |
22156 | ||
22157 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
22158 | || (rm -f "$cfgfile"; exit 1) | |
22159 | ||
22160 | mv -f "$cfgfile" "$ofile" || | |
22161 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
22162 | chmod +x "$ofile" | |
22163 | ||
d9898ee8 | 22164 | ;; |
dd184caf | 22165 | |
d9898ee8 | 22166 | esac |
dd184caf | 22167 | done # for ac_tag |
d9898ee8 | 22168 | |
d9898ee8 | 22169 | |
22170 | { (exit 0); exit 0; } | |
22171 | _ACEOF | |
22172 | chmod +x $CONFIG_STATUS | |
22173 | ac_clean_files=$ac_clean_files_save | |
22174 | ||
8d138742 CE |
22175 | test $ac_write_fail = 0 || |
22176 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
22177 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
22178 | { (exit 1); exit 1; }; } | |
22179 | ||
d9898ee8 | 22180 | |
22181 | # configure is writing to config.log, and then calls config.status. | |
22182 | # config.status does its own redirection, appending to config.log. | |
22183 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
22184 | # by configure, so config.status won't be able to write to it; its | |
22185 | # output is simply discarded. So we exec the FD to /dev/null, | |
22186 | # effectively closing config.log, so it can be properly (re)opened and | |
22187 | # appended to by config.status. When coming back to configure, we | |
22188 | # need to make the FD available again. | |
22189 | if test "$no_create" != yes; then | |
22190 | ac_cs_success=: | |
22191 | ac_config_status_args= | |
22192 | test "$silent" = yes && | |
22193 | ac_config_status_args="$ac_config_status_args --quiet" | |
22194 | exec 5>/dev/null | |
22195 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
22196 | exec 5>>config.log | |
22197 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
22198 | # would make configure fail if this is the last instruction. | |
22199 | $ac_cs_success || { (exit 1); exit 1; } | |
22200 | fi | |
22201 | ||
22202 | # | |
22203 | # CONFIG_SUBDIRS section. | |
22204 | # | |
22205 | if test "$no_recursion" != yes; then | |
22206 | ||
8d138742 CE |
22207 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
22208 | # so they do not pile up. | |
d9898ee8 | 22209 | ac_sub_configure_args= |
22210 | ac_prev= | |
dd184caf | 22211 | eval "set x $ac_configure_args" |
22212 | shift | |
22213 | for ac_arg | |
22214 | do | |
d9898ee8 | 22215 | if test -n "$ac_prev"; then |
22216 | ac_prev= | |
22217 | continue | |
22218 | fi | |
22219 | case $ac_arg in | |
22220 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
22221 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
22222 | ac_prev=cache_file ;; | |
22223 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
22224 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
22225 | | --c=*) | |
22226 | ;; | |
22227 | --config-cache | -C) | |
22228 | ;; | |
22229 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
22230 | ac_prev=srcdir ;; | |
22231 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
22232 | ;; | |
22233 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
22234 | ac_prev=prefix ;; | |
22235 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
22236 | ;; | |
8d138742 CE |
22237 | --disable-option-checking) |
22238 | ;; | |
dd184caf | 22239 | *) |
22240 | case $ac_arg in | |
8d138742 | 22241 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
dd184caf | 22242 | esac |
22243 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | |
d9898ee8 | 22244 | esac |
22245 | done | |
22246 | ||
22247 | # Always prepend --prefix to ensure using the same prefix | |
22248 | # in subdir configurations. | |
dd184caf | 22249 | ac_arg="--prefix=$prefix" |
22250 | case $ac_arg in | |
8d138742 | 22251 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
dd184caf | 22252 | esac |
22253 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
22254 | ||
22255 | # Pass --silent | |
22256 | if test "$silent" = yes; then | |
22257 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
22258 | fi | |
d9898ee8 | 22259 | |
8d138742 CE |
22260 | # Always prepend --disable-option-checking to silence warnings, since |
22261 | # different subdirs can have different --enable and --with options. | |
22262 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
22263 | ||
d9898ee8 | 22264 | ac_popdir=`pwd` |
22265 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
22266 | ||
22267 | # Do not complain, so a configure script can configure whichever | |
22268 | # parts of a large source tree are present. | |
dd184caf | 22269 | test -d "$srcdir/$ac_dir" || continue |
22270 | ||
22271 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
8d138742 CE |
22272 | $as_echo "$as_me:$LINENO: $ac_msg" >&5 |
22273 | $as_echo "$ac_msg" >&6 | |
dd184caf | 22274 | { as_dir="$ac_dir" |
22275 | case $as_dir in #( | |
22276 | -*) as_dir=./$as_dir;; | |
22277 | esac | |
22278 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
d9898ee8 | 22279 | as_dirs= |
dd184caf | 22280 | while :; do |
22281 | case $as_dir in #( | |
8d138742 | 22282 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
dd184caf | 22283 | *) as_qdir=$as_dir;; |
22284 | esac | |
22285 | as_dirs="'$as_qdir' $as_dirs" | |
22286 | as_dir=`$as_dirname -- "$as_dir" || | |
d9898ee8 | 22287 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
22288 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22289 | X"$as_dir" : 'X\(//\)$' \| \ | |
dd184caf | 22290 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
8d138742 | 22291 | $as_echo X"$as_dir" | |
dd184caf | 22292 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
22293 | s//\1/ | |
22294 | q | |
22295 | } | |
22296 | /^X\(\/\/\)[^/].*/{ | |
22297 | s//\1/ | |
22298 | q | |
22299 | } | |
22300 | /^X\(\/\/\)$/{ | |
22301 | s//\1/ | |
22302 | q | |
22303 | } | |
22304 | /^X\(\/\).*/{ | |
22305 | s//\1/ | |
22306 | q | |
22307 | } | |
22308 | s/.*/./; q'` | |
22309 | test -d "$as_dir" && break | |
d9898ee8 | 22310 | done |
dd184caf | 22311 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
8d138742 CE |
22312 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
22313 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
d9898ee8 | 22314 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 22315 | ac_builddir=. |
22316 | ||
dd184caf | 22317 | case "$ac_dir" in |
22318 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
22319 | *) | |
8d138742 | 22320 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
dd184caf | 22321 | # A ".." for each directory in $ac_dir_suffix. |
8d138742 | 22322 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
dd184caf | 22323 | case $ac_top_builddir_sub in |
22324 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
22325 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
22326 | esac ;; | |
22327 | esac | |
22328 | ac_abs_top_builddir=$ac_pwd | |
22329 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
22330 | # for backward compatibility: | |
22331 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 22332 | |
22333 | case $srcdir in | |
dd184caf | 22334 | .) # We are building in place. |
d9898ee8 | 22335 | ac_srcdir=. |
dd184caf | 22336 | ac_top_srcdir=$ac_top_builddir_sub |
22337 | ac_abs_top_srcdir=$ac_pwd ;; | |
22338 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
d9898ee8 | 22339 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf | 22340 | ac_top_srcdir=$srcdir |
22341 | ac_abs_top_srcdir=$srcdir ;; | |
22342 | *) # Relative name. | |
22343 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
22344 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
22345 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
d9898ee8 | 22346 | esac |
dd184caf | 22347 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 | 22348 | |
22349 | ||
dd184caf | 22350 | cd "$ac_dir" |
d9898ee8 | 22351 | |
22352 | # Check for guested configure; otherwise get Cygnus style configure. | |
dd184caf | 22353 | if test -f "$ac_srcdir/configure.gnu"; then |
22354 | ac_sub_configure=$ac_srcdir/configure.gnu | |
22355 | elif test -f "$ac_srcdir/configure"; then | |
22356 | ac_sub_configure=$ac_srcdir/configure | |
22357 | elif test -f "$ac_srcdir/configure.in"; then | |
22358 | # This should be Cygnus configure. | |
22359 | ac_sub_configure=$ac_aux_dir/configure | |
d9898ee8 | 22360 | else |
8d138742 CE |
22361 | { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
22362 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
d9898ee8 | 22363 | ac_sub_configure= |
22364 | fi | |
22365 | ||
22366 | # The recursion is here. | |
22367 | if test -n "$ac_sub_configure"; then | |
22368 | # Make the cache file name correct relative to the subdirectory. | |
22369 | case $cache_file in | |
22370 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
dd184caf | 22371 | *) # Relative name. |
22372 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
d9898ee8 | 22373 | esac |
22374 | ||
8d138742 CE |
22375 | { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
22376 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
d9898ee8 | 22377 | # The eval makes quoting arguments work. |
dd184caf | 22378 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
22379 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
8d138742 CE |
22380 | { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
22381 | $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
d9898ee8 | 22382 | { (exit 1); exit 1; }; } |
22383 | fi | |
22384 | ||
dd184caf | 22385 | cd "$ac_popdir" |
d9898ee8 | 22386 | done |
22387 | fi | |
8d138742 CE |
22388 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
22389 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
22390 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
22391 | fi | |
d9898ee8 | 22392 | |
22393 |